summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/Symbol.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-09 17:31:22 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-09 17:31:22 +0000
commit774209bb21ac348acfaec6be004d0b3fa37d56ef (patch)
tree40561670e8bacfe94736c32f632454fd36caa56b /sources/scalac/symtab/Symbol.java
parenta736bd41400de7e33b8c58678406cbe0b9ffdeb0 (diff)
downloadscala-774209bb21ac348acfaec6be004d0b3fa37d56ef.tar.gz
scala-774209bb21ac348acfaec6be004d0b3fa37d56ef.tar.bz2
scala-774209bb21ac348acfaec6be004d0b3fa37d56ef.zip
- Removed staticsParser and aliasParser in Clas...
- Removed staticsParser and aliasParser in ClassParser Changed - superclass of CLRPackageParser and CLRClassParser to SymbolLoader - Adapted Symbol.preInitialize and ClassSymbol constructor
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-rw-r--r--sources/scalac/symtab/Symbol.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index dd8b5fb70f..29f9a134e2 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -815,9 +815,7 @@ public abstract class Symbol implements Modifiers, Kinds {
*/
public final void preInitialize() {
//todo: clean up
- if (infos.info instanceof ClassParser ||
- infos.info instanceof SourceCompleter ||
- infos.info instanceof ClassParser.StaticsParser)
+ if (infos.info instanceof SymbolLoader)
infos.info.complete(this);
}
@@ -1797,9 +1795,9 @@ public class ClassSymbol extends TypeSymbol {
/** Constructor for classes to load as class files.
*/
- public ClassSymbol(Name name, Symbol owner, ClassParser parser) {
+ public ClassSymbol(Name name, Symbol owner, SymbolLoader parser) {
this(Position.NOPOS, name, owner, JAVA);
- this.module = TermSymbol.newCompanionModule(this, JAVA, parser.staticsParser(this));
+ this.module = TermSymbol.newCompanionModule(this, JAVA, parser);
this.setInfo(parser);
}