summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-04-04 13:06:11 +0000
committerpaltherr <paltherr@epfl.ch>2004-04-04 13:06:11 +0000
commit4931414ab41236551cd3c364c630a29b5e93c8ba (patch)
treefa95fc62cfc503410be9d7167e77a1389db2d1f0 /sources
parent8cbb56700d3de57b9d4d0f8bc4afd5e6240e997d (diff)
downloadscala-4931414ab41236551cd3c364c630a29b5e93c8ba.tar.gz
scala-4931414ab41236551cd3c364c630a29b5e93c8ba.tar.bz2
scala-4931414ab41236551cd3c364c630a29b5e93c8ba.zip
- Moved newErrorClass
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/symtab/Symbol.java22
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);