[Nice-commit] Nice/src/bossa/modules Package.java,1.115,1.116
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2004-06-11 15:59:08
|
Update of /cvsroot/nice/Nice/src/bossa/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2062/src/bossa/modules Modified Files: Package.java Log Message: Removed obsolte method, and cleanup. Index: Package.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/modules/Package.java,v retrieving revision 1.115 retrieving revision 1.116 diff -C2 -d -r1.115 -r1.116 *** Package.java 20 Mar 2004 15:49:24 -0000 1.115 --- Package.java 11 Jun 2004 15:58:58 -0000 1.116 *************** *** 330,334 **** if (!isRoot) return; ! // If at least one package is recompiled, the root will also be recompiled if (compiling()) --- 330,334 ---- if (!isRoot) return; ! // If at least one package is recompiled, the root will also be recompiled if (compiling()) *************** *** 336,342 **** compilation.progress(this, "linking"); bossa.link.Dispatch.test(this); ! finishCompilation(); ! compilation.exitIfErrors(); } --- 336,342 ---- compilation.progress(this, "linking"); bossa.link.Dispatch.test(this); ! finishCompilation(); ! compilation.exitIfErrors(); } *************** *** 428,432 **** } f.println(); ! for(int i = 0; i < opens.length; i++) { --- 428,432 ---- } f.println(); ! for(int i = 0; i < opens.length; i++) { *************** *** 664,677 **** private ClassExp implementationClass, dispatchClass; - private static ModuleExp createModule(String name) - { - ModuleExp res = new ModuleExp(); - res.setName(name); - res.body = QuoteExp.voidExp; - res.setFlag(ModuleExp.STATIC_SPECIFIED); - res.setSuperType(gnu.bytecode.Type.pointer_type); - return res; - } - private ClassExp createClassExp(String name) { --- 664,667 ---- *************** *** 724,728 **** { if (compiling()) ! compilation.progress(this, "generating code"); ast.compile(compiling()); --- 714,718 ---- { if (compiling()) ! compilation.progress(this, "generating code"); ast.compile(compiling()); *************** *** 736,740 **** String className = this.name + "." + name; ! ClassType res; try{ res = ClassType.make(className); --- 726,730 ---- String className = this.name + "." + name; ! ClassType res; try{ res = ClassType.make(className); *************** *** 755,759 **** String attribute, String value) { ! if (clas == null) return null; --- 745,749 ---- String attribute, String value) { ! if (clas == null) return null; *************** *** 766,770 **** // but names appended with "$$..." may not be matched because // that are escape characters ! || m.getName().startsWith(name) && m.getName().charAt(name.length()) == '$' && m.getName().charAt(name.length()+1) != '$') --- 756,760 ---- // but names appended with "$$..." may not be matched because // that are escape characters ! || m.getName().startsWith(name) && m.getName().charAt(name.length()) == '$' && m.getName().charAt(name.length()+1) != '$') *************** *** 794,798 **** as the precise types are found during typechecking. */ ! Method meth = lookupClassMethod(source.getDispatch(), name, "id", def.getFullName()); if (meth != null) // Reuse existing dispatch method header --- 784,788 ---- as the precise types are found during typechecking. */ ! Method meth = lookupClassMethod(source.getDispatch(), name, "id", def.getFullName()); if (meth != null) // Reuse existing dispatch method header *************** *** 800,804 **** // The dispatch code will have to be regenerated anyway meth.eraseCode(); ! argTypes = meth.arg_types; retType = meth.return_type; --- 790,794 ---- // The dispatch code will have to be regenerated anyway meth.eraseCode(); ! argTypes = meth.arg_types; retType = meth.return_type; |