[Nice-commit] Nice/src/bossa/syntax call.nice,1.9,1.10 constructor.nice,1.5,1.6 defaultMethod.nice,1
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2005-01-13 23:56:18
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6384/F:/nice/src/bossa/syntax Modified Files: call.nice constructor.nice defaultMethod.nice javaclass.nice monotype.nice typeIdent.nice Log Message: Removed dead code. Index: typeIdent.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/typeIdent.nice,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** typeIdent.nice 12 Jan 2005 22:06:54 -0000 1.3 --- typeIdent.nice 13 Jan 2005 23:56:06 -0000 1.4 *************** *** 129,144 **** } - - public Monotype createTypeIdent(LocatedString name) - { - return new TypeIdent(name: name); - } - /* - public mlsub.typing.Interface[?] resolveToItf(TypeMap scope, ?List<TypeIdent> idents) - { - if (idents==null || idents.size()==0) - return null; - - return idents.mapToArray(TypeIdent ti => ti.resolveToItf(scope)); - } - */ \ No newline at end of file --- 129,130 ---- Index: monotype.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/monotype.nice,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** monotype.nice 12 Jan 2005 22:06:53 -0000 1.8 --- monotype.nice 13 Jan 2005 23:56:06 -0000 1.9 *************** *** 76,82 **** /** called instead of toString if parenthesis are unnecessary */ public String toStringExtern() = this.toString(); - - /** don't print type parameters */ - public String toStringBase() = this.toString(); } --- 76,79 ---- Index: javaclass.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/javaclass.nice,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** javaclass.nice 20 Dec 2004 20:25:53 -0000 1.4 --- javaclass.nice 13 Jan 2005 23:56:06 -0000 1.5 *************** *** 81,104 **** } - - /** - * Returns a java type constructor with the given name - * and the given java type. - * <p> - * Usefull for primitive types. - */ - TypeConstructor makeJavaClass(bossa.modules.Compilation compilation, String name, - gnu.bytecode.Type javaType) - { - ?TypeConstructor tc = compilation.javaTypeConstructors.get(javaType); - if(tc!=null) - return tc; - - // we put the new JTC in the hashtable in the constructor - // and not after it returned, to avoid infinite loop - // if the code of the constructor does a lookup. - return createJavaType(compilation, name, javaType); - } - /** * @return null, except if javaName already had an --- 81,84 ---- Index: call.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/call.nice,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** call.nice 13 Jan 2005 16:47:34 -0000 1.9 --- call.nice 13 Jan 2005 23:56:06 -0000 1.10 *************** *** 254,266 **** } - public Expression createCallExp(Expression function, - Expression param1, Expression param2, - Expression param3) - { - let res = new CallExp(function:function, arguments:new Arguments(arguments: [new Argument(value: param1), new Argument(value: param2), new Argument(value: param3)])); - res.setLocation(function.location()); - return res; - } - public Expression createCallExp(Expression func, Arguments args, boolean infix, boolean hasBrackets) { --- 254,257 ---- Index: defaultMethod.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/defaultMethod.nice,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** defaultMethod.nice 3 Jan 2005 01:24:28 -0000 1.6 --- defaultMethod.nice 13 Jan 2005 23:56:06 -0000 1.7 *************** *** 85,93 **** } - void typedResolve() - { - notNull(declaration).typedResolve(); - } - void innerTypecheck() { --- 85,88 ---- Index: constructor.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/constructor.nice,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** constructor.nice 4 Jan 2005 21:20:39 -0000 1.5 --- constructor.nice 13 Jan 2005 23:56:06 -0000 1.6 *************** *** 14,19 **** import bossa.util.*; - //import mlsub.typing.Constraint; - //import mlsub.typing.Monotype; /** --- 14,17 ---- |