[Nice-commit] Nice/src/nice/tools/code Gen.java,1.16,1.17
Brought to you by:
bonniot
From: <bo...@us...> - 2003-11-27 21:02:16
|
Update of /cvsroot/nice/Nice/src/nice/tools/code In directory sc8-pr-cvs1:/tmp/cvs-serv16784/src/nice/tools/code Modified Files: Gen.java Log Message: Allow 'this' to be captured in initializers. Index: Gen.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/code/Gen.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Gen.java 17 Jun 2003 12:03:05 -0000 1.16 --- Gen.java 27 Nov 2003 21:02:13 -0000 1.17 *************** *** 133,140 **** public static ConstructorExp createConstructor ! (ClassType classType, Type[] argTypes, MonoSymbol[] args) { ! ConstructorExp res = new ConstructorExp(classType); ! createMethod(res, "<init>", argTypes, Type.void_type, args, true, false, true); return res; } --- 133,141 ---- public static ConstructorExp createConstructor ! (Declaration thisDecl, Type[] argTypes, MonoSymbol[] args) { ! ConstructorExp res = new ConstructorExp(thisDecl); ! createMethod(res, "<init>", argTypes, Type.void_type, args, ! true, false, true); return res; } |