This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: EXPR_WITH_FILE_LOCATION Tree Nodes


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]