[Nice-commit] Nice/src/gnu/expr Expression.java,1.5,1.6
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-02-22 16:57:30
|
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() |