EXPR_WITH_FILE_LOCATION Tree Nodes

Per Bothner per@bothner.com
Wed Feb 9 13:55:00 GMT 2005


Ranjit Mathew wrote:
> Hi,
>> While parsing Java source files, the current front-end
> creates EWFL wrapper nodes for identifiers, etc. Do I
> understand correctly that every statement/expression must
> have a wrapper EWFL node?

No, only those for while line number information is desired.
And in any case, EXPR_WITH_FILE_LOCATION should go away.
It won't be needed with the new USE_MAPPED_LOCATION code
- except that EXPR_WITH_FILE_LOCATION is used in some rather
complex ways. But hopefully gcjx will make it moot.
> If yes, why don't methods like build_assignment() return
> a MODIFY_EXPR wrapped in an EWFL? And shouldn't setting
> EXPR_WFL_LINECOL be valid then only for EWFL nodes?

No, EXPR_WFL_LINECOL was used for all expressions. It used
the complexcity field, was otherwise unuased - and which will
also probably soon go away.
> If not, why does parse_error_context() expect an EWFL
> always and barfs when it doesn't get it? (See PR8608, for
> example.)

Who knows. EXPR_WITH_FILE_LOCATION is used in some rather
strange ways.
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /