diff options
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r-- | sources/scalac/symtab/Kinds.java | 4 | ||||
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 47 | ||||
-rw-r--r-- | sources/scalac/symtab/SymbolTablePrinter.java | 3 |
3 files changed, 0 insertions, 54 deletions
diff --git a/sources/scalac/symtab/Kinds.java b/sources/scalac/symtab/Kinds.java index 8902ff4699..b99c8fa8d0 100644 --- a/sources/scalac/symtab/Kinds.java +++ b/sources/scalac/symtab/Kinds.java @@ -11,10 +11,6 @@ package scalac.symtab; public interface Kinds { - /** kind of error symbol - */ - int ERROR = 0; - /** kind of non-existent symbol */ int NONE = 1; 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 { diff --git a/sources/scalac/symtab/SymbolTablePrinter.java b/sources/scalac/symtab/SymbolTablePrinter.java index 3c30ad34ba..d70d62d3c2 100644 --- a/sources/scalac/symtab/SymbolTablePrinter.java +++ b/sources/scalac/symtab/SymbolTablePrinter.java @@ -247,7 +247,6 @@ public class SymbolTablePrinter { */ public String getSymbolKind(Symbol symbol) { switch (symbol.kind) { - case Kinds.ERROR: case Kinds.NONE: return null; case Kinds.CLASS: @@ -279,7 +278,6 @@ public class SymbolTablePrinter { public String getSymbolKeyword(Symbol symbol) { if (symbol.isParameter()) return null; switch (symbol.kind) { - case Kinds.ERROR: case Kinds.NONE: return null; case Kinds.CLASS: @@ -309,7 +307,6 @@ public class SymbolTablePrinter { /** Returns the inner string of the given symbol. */ public String getSymbolInnerString(Symbol symbol) { switch (symbol.kind) { - case Kinds.ERROR: return ":"; case Kinds.NONE : return ":"; case Kinds.ALIAS: return "="; case Kinds.CLASS: return "extends"; |