diff options
author | paltherr <paltherr@epfl.ch> | 2004-04-04 22:26:41 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-04-04 22:26:41 +0000 |
commit | 50273683038b23a2e2ae3fb5dfc02ce6f682c4b7 (patch) | |
tree | eef9eb547ee381c68c6f668eac6a93fe69775dd1 /sources/scalac/symtab/Symbol.java | |
parent | 5f69afd077a95e2e3d1f9f0eefa4800b7286ffda (diff) | |
download | scala-50273683038b23a2e2ae3fb5dfc02ce6f682c4b7.tar.gz scala-50273683038b23a2e2ae3fb5dfc02ce6f682c4b7.tar.bz2 scala-50273683038b23a2e2ae3fb5dfc02ce6f682c4b7.zip |
- Removed Symbol.ERROR and Kinds.ERROR
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index fccd84c12d..c0aeecaa8f 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -31,9 +31,6 @@ public abstract class Symbol implements Modifiers, Kinds { /** An empty array of symbol arrays */ public static final Symbol[][] EMPTY_ARRAY_ARRAY = new Symbol[0][]; - /** The error symbol */ - public static final Symbol ERROR = new ErrorSymbol(); - /** The absent symbol */ public static final Symbol NONE = new NoSymbol(); @@ -1949,50 +1946,6 @@ public final class ClassSymbol extends TypeSymbol { } -/** A class for error symbols. - */ -final class ErrorSymbol extends Symbol { - - /** Constructor */ - public ErrorSymbol() { - super(Kinds.ERROR, Position.NOPOS, Names.ERROR, null, 0, IS_ERROR); - super.setInfo(Type.ErrorType); - } - - /** Set type */ - public Symbol setInfo(Type info) { - assert info == Type.ErrorType : info; - return this; - } - - /** Get primary constructor */ - public Symbol primaryConstructor() { - return newConstructor(pos, 0).setInfo(Type.ErrorType); - } - - /** Return the next enclosing class */ - public Symbol enclClass() { - return this; - } - - /** Return the next enclosing method */ - public Symbol enclMethod() { - return this; - } - - public Type loBound() { - return Type.ErrorType; - } - - public void reset(Type completer) { - } - - protected Symbol cloneSymbolImpl(Symbol owner, int attrs) { - throw Debug.abort("illegal clone", this); - } - -} - /** The class of Symbol.NONE */ final class NoSymbol extends Symbol { |