diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-10 02:29:56 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-10 02:29:56 +0000 |
commit | 98bd45db839f0ec470d1fdbd42d5c748e428f4b5 (patch) | |
tree | 7cc9c1111515fa57b4a8917b87b61ae1cdf54282 /sources/scalac/symtab/classfile/ClassfileParser.java | |
parent | 70d535ae7b9e689b699a5327cdee747464874420 (diff) | |
download | scala-98bd45db839f0ec470d1fdbd42d5c748e428f4b5.tar.gz scala-98bd45db839f0ec470d1fdbd42d5c748e428f4b5.tar.bz2 scala-98bd45db839f0ec470d1fdbd42d5c748e428f4b5.zip |
- Added new factory methods in class Symbol
- Removed hack from ClassSymbol.dualClass
- Rewrote PackageParser and adapted other parsers and analyzer to use
the new factory method
- Replaced some unsound calls to Symbol.module by calls to Symbol.dualClass
Diffstat (limited to 'sources/scalac/symtab/classfile/ClassfileParser.java')
-rw-r--r-- | sources/scalac/symtab/classfile/ClassfileParser.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/scalac/symtab/classfile/ClassfileParser.java b/sources/scalac/symtab/classfile/ClassfileParser.java index f966d331a2..3ee3f61b1e 100644 --- a/sources/scalac/symtab/classfile/ClassfileParser.java +++ b/sources/scalac/symtab/classfile/ClassfileParser.java @@ -102,11 +102,11 @@ public class ClassfileParser implements ClassfileConstants { Type classType = Type.compoundType(basetpes, locals, c); c.setInfo(classType); // set type of statics - Symbol staticsClass = c.module().moduleClass(); + Symbol staticsClass = c.dualClass(); if (staticsClass.isModuleClass()) { Type staticsInfo = Type.compoundType(Type.EMPTY_ARRAY, statics, staticsClass); staticsClass.setInfo(staticsInfo); - c.module().setInfo(Type.typeRef(staticsClass.owner().thisType(), + staticsClass.module().setInfo(Type.typeRef(staticsClass.owner().thisType(), staticsClass, Type.EMPTY_ARRAY)); } basetpes[0] = supertpe; @@ -193,7 +193,7 @@ public class ClassfileParser implements ClassfileConstants { mods |= Modifiers.MUTABLE; Symbol owner = c; if ((flags & JAVA_ACC_STATIC) != 0) - owner = c.module().moduleClass(); + owner = c.dualClass(); Symbol s = new TermSymbol(Position.NOPOS, name, owner, mods); s.setInfo(type); attrib.readAttributes(s, type, FIELD_ATTR); @@ -236,7 +236,7 @@ public class ClassfileParser implements ClassfileConstants { } else { Symbol s = new TermSymbol( Position.NOPOS, name, - ((flags & JAVA_ACC_STATIC) != 0) ? c.module().moduleClass() : c, + ((flags & JAVA_ACC_STATIC) != 0) ? c.dualClass() : c, sflags); setParamOwners(type, s); s.setInfo(type); |