[Nice-commit] Nice/src/bossa/syntax javaMethod.nice,1.15,1.16 javaFieldAccess.nice,1.9,1.10
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2005-06-18 12:47:01
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3311/src/bossa/syntax Modified Files: javaMethod.nice javaFieldAccess.nice Log Message: Check when a field's name is used only when trying to import all fields from a class, not when explicitely importing a given field (saves time, and useful for static import). Index: javaMethod.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/javaMethod.nice,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** javaMethod.nice 2 Apr 2005 09:09:08 -0000 1.15 --- javaMethod.nice 18 Jun 2005 12:46:47 -0000 1.16 *************** *** 234,237 **** --- 234,240 ---- continue; + if (! usedIdentifiers.contains(f.getName())) + continue; + if (retyped.get(f) == null) addJavaSymbol(f, makeJavaFieldAccess(f)); Index: javaFieldAccess.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/javaFieldAccess.nice,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** javaFieldAccess.nice 1 Apr 2005 00:09:23 -0000 1.9 --- javaFieldAccess.nice 18 Jun 2005 12:46:47 -0000 1.10 *************** *** 145,151 **** ?MethodDeclaration makeJavaFieldAccess(gnu.bytecode.Field f) { - if (! usedIdentifiers.contains(f.getName())) - return null; - try { mlsub.typing.Monotype[?] params; --- 145,148 ---- |