[Nice-commit] Nice/src/nice/tools/code Gen.java,1.17,1.18
Brought to you by:
bonniot
From: <ar...@us...> - 2003-12-14 08:40:42
|
Update of /cvsroot/nice/Nice/src/nice/tools/code In directory sc8-pr-cvs1:/tmp/cvs-serv20832/F:/nice/src/nice/tools/code Modified Files: Gen.java Log Message: Codegeneration part for custom constructors. Index: Gen.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/code/Gen.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Gen.java 27 Nov 2003 21:02:13 -0000 1.17 --- Gen.java 13 Dec 2003 17:52:01 -0000 1.18 *************** *** 141,144 **** --- 141,153 ---- } + public static ConstructorExp createCustomConstructor + (ClassType classType, Type[] argTypes, MonoSymbol[] args) + { + ConstructorExp res = new ConstructorExp(classType); + createMethod(res, "<init>", argTypes, Type.void_type, args, + true, false, true); + return res; + } + /** Create a lambda expression to generate code for the method. |