Nice/src/gnu/expr Expression.java,1.5,1.6
Daniel Bonniot <[email protected]>
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/src/gnu/expr
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19762/src/gnu/expr
Modified Files:
Expression.java
Log Message:
Avoid to set an imprecise bytecode location when a more precise one is
available.
Index: Expression.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/expr/Expression.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Expression.java 3 Nov 2003 18:32:06 -0000 1.5
--- Expression.java 22 Feb 2005 16:57:18 -0000 1.6
***************
*** 166,169 ****
--- 166,174 ----
}
+ public boolean hasLocation()
+ {
+ return getFile() != null && position != 0;
+ }
+
/** Return the Type used to represent the values of this Expression. */
public Type getType()
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click