diff options
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index b29584e2dc..d08bd9b79a 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -277,17 +277,6 @@ public abstract class Symbol implements Modifiers, Kinds { } /** - * Creates a new error class owned by this symbol and initializes - * it with an error type. - */ - public ClassSymbol newErrorClass(Name name) { - ClassSymbol symbol = newClass(pos, SYNTHETIC, name, IS_ERROR, NONE); - symbol.setInfo(Type.ErrorType); - symbol.allConstructors().setInfo(Type.ErrorType); - return symbol; - } - - /** * Creates a new class with a dual module class, both owned by * this symbol, initializes them with the loader and enters the * class and the module in the scope if it's non-null. @@ -307,6 +296,17 @@ public abstract class Symbol implements Modifiers, Kinds { return clasz; } + /** + * Creates a new error class owned by this symbol and initializes + * it with an error type. + */ + public ClassSymbol newErrorClass(Name name) { + ClassSymbol symbol = newClass(pos, SYNTHETIC, name, IS_ERROR, NONE); + symbol.setInfo(Type.ErrorType); + symbol.allConstructors().setInfo(Type.ErrorType); + return symbol; + } + /** Creates a new term owned by this symbol. */ final Symbol newTerm(int pos, int flags, Name name, int attrs) { return new TermSymbol(pos, name, this, flags, attrs, null); |