diff options
author | Martin Odersky <odersky@gmail.com> | 2003-07-31 09:57:59 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-07-31 09:57:59 +0000 |
commit | 03449ed20a3cca9e8d974c7efeff6b4e01ecb66d (patch) | |
tree | db1153ac4bffac098d6d6d053f727992f1a2e4da /sources/scalac/symtab/classfile/PackageParser.java | |
parent | be21ca1267f48e8fd14d5e32f3c7a4d814005eef (diff) | |
download | scala-03449ed20a3cca9e8d974c7efeff6b4e01ecb66d.tar.gz scala-03449ed20a3cca9e8d974c7efeff6b4e01ecb66d.tar.bz2 scala-03449ed20a3cca9e8d974c7efeff6b4e01ecb66d.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab/classfile/PackageParser.java')
-rw-r--r-- | sources/scalac/symtab/classfile/PackageParser.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sources/scalac/symtab/classfile/PackageParser.java b/sources/scalac/symtab/classfile/PackageParser.java index 80191c79ba..e523bc4dbb 100644 --- a/sources/scalac/symtab/classfile/PackageParser.java +++ b/sources/scalac/symtab/classfile/PackageParser.java @@ -77,11 +77,11 @@ public class PackageParser extends Type.LazyType { .toTypeName(); if (locals.lookup(n) == Symbol.NONE) { ClassSymbol clazz = new ClassSymbol(n, p, classCompletion); - clazz.constructor().setInfo( + // todo: needed? + clazz.allConstructors().setInfo( classCompletion.staticsParser(clazz)); // enter class locals.enter(clazz); - locals.enter(clazz.constructor()); // enter module, except for scala.Object class // todo: why not there also?. if (!(n == Names.Object.toTypeName() && @@ -110,10 +110,10 @@ public class PackageParser extends Type.LazyType { sym.rawInfoAt(Symbol.FIRST_ID) instanceof ClassParser && !(sym.rawInfoAt(Symbol.FIRST_ID) instanceof SymblParser)) { ClassSymbol clazz = new ClassSymbol(n, p, symblCompletion); - clazz.constructor().setInfo(symblCompletion); + //todo: needed + clazz.allConstructors().setInfo(symblCompletion); clazz.module().setInfo(symblCompletion); locals.enter(clazz); - locals.enter(clazz.constructor()); locals.enter(clazz.module()); } } else if (inclClasses && fname.endsWith(".scala")) { @@ -126,11 +126,11 @@ public class PackageParser extends Type.LazyType { SourceCompleter completer = new SourceCompleter(global, dir.getPath() + File.separatorChar + fname); ClassSymbol clazz = new ClassSymbol(n, p, completer); - clazz.constructor().setInfo(completer); + //todo: needed? + clazz.allConstructors().setInfo(completer); clazz.module().setInfo(completer); // enter class locals.enter(clazz); - locals.enter(clazz.constructor()); locals.enter(clazz.module()); } } |