From 4931414ab41236551cd3c364c630a29b5e93c8ba Mon Sep 17 00:00:00 2001 From: paltherr Date: Sun, 4 Apr 2004 13:06:11 +0000 Subject: - Moved newErrorClass --- sources/scalac/symtab/Symbol.java | 22 +++++++++++----------- 1 file 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 @@ -276,17 +276,6 @@ public abstract class Symbol implements Modifiers, Kinds { return newClass(pos, 0, name, IS_ANONYMOUS, NONE); } - /** - * 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 @@ -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); -- cgit v1.2.3