[Nice-commit] Nice/src/bossa/syntax NiceClass.java,1.44,1.45
Brought to you by:
bonniot
From: <bo...@us...> - 2003-05-19 18:49:59
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv30282/src/bossa/syntax Modified Files: NiceClass.java Log Message: Made method declarations inside classes be listed as toplevel definitions. As a side effect, closes #736280. Index: NiceClass.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/NiceClass.java,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** NiceClass.java 22 Apr 2003 17:56:09 -0000 1.44 --- NiceClass.java 19 May 2003 18:49:56 -0000 1.45 *************** *** 46,50 **** public String getName() { return definition.getName().toString(); } ! public void setFieldsAndMethods(List fields, List methods) { if (fields == null || fields.size() == 0) --- 46,50 ---- public String getName() { return definition.getName().toString(); } ! public void setFields(List fields) { if (fields == null || fields.size() == 0) *************** *** 65,71 **** } } - - if(methods != null) - this.methods = definition.addChildren(methods); } --- 65,68 ---- *************** *** 194,208 **** } - void resolveBody() - { - if (methods != null) - for (Iterator i = methods.iterator(); i.hasNext();) - { - Object child = i.next(); - if (child instanceof ToplevelFunction) - ((ToplevelFunction) child).resolveBody(); - } - } - /**************************************************************** * Type checking --- 191,194 ---- *************** *** 258,262 **** + "}\n\n" ); - Definition.printInterface(methods, s); } --- 244,247 ---- *************** *** 442,453 **** public void compile() { - if (methods != null) - for (Iterator i = methods.iterator(); i.hasNext();) - { - Object child = i.next(); - if (child instanceof ToplevelFunction) - ((ToplevelFunction) child).compile(); - } - recompile(); } --- 427,430 ---- *************** *** 562,565 **** private Field[] fields; - private List methods; } --- 539,541 ---- |