This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: EXPR_WITH_FILE_LOCATION Tree Nodes
- From: Per Bothner <per at bothner dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 08 Feb 2005 23:13:00 -0800
- Subject: Re: EXPR_WITH_FILE_LOCATION Tree Nodes
- References: <cuc96v$ek8$1@sea.gmane.org>
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/