summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-03-21 15:48:37 +0000
committerMartin Odersky <odersky@gmail.com>2003-03-21 15:48:37 +0000
commit787d4bb9dbc540a61632c1f234a54ab74a69609c (patch)
treeb09ef894e8f03e68f3defd96ad71c362741bf76c /sources/scalac/symtab
parent54952ba17e2c99e3c842068b7b091ebbf4093921 (diff)
downloadscala-787d4bb9dbc540a61632c1f234a54ab74a69609c.tar.gz
scala-787d4bb9dbc540a61632c1f234a54ab74a69609c.tar.bz2
scala-787d4bb9dbc540a61632c1f234a54ab74a69609c.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r--sources/scalac/symtab/Symbol.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java
index 35ceb28e36..3beeb0b0db 100644
--- a/sources/scalac/symtab/Symbol.java
+++ b/sources/scalac/symtab/Symbol.java
@@ -1148,13 +1148,6 @@ public class ClassSymbol extends TypeSymbol {
*/
final private Type thistp = Type.ThisType(this);
- /** The sourcefile name form where the class symbol was or
- * needs to be loaded. only defined for Scala source library classes;
- * not for classes that exist in class files, or classes compiled
- * from the command line.
- */
- public String sourcefile = null;
-
/** Principal Constructor
*/
public ClassSymbol(int pos, Name name, Symbol owner, int flags) {
@@ -1177,7 +1170,6 @@ public class ClassSymbol extends TypeSymbol {
this.module = TermSymbol.newCompanionModule(this, 0, parser);
this.mangled = name;
this.setInfo(parser);
- this.sourcefile = parser.filename;
}
/** Constructor for classes to load as class files.
@@ -1198,7 +1190,6 @@ public class ClassSymbol extends TypeSymbol {
other.constructor.setInfo(constructor.info());
other.mangled = mangled;
other.module = module;
- other.sourcefile = sourcefile;
if (thisSym != this) other.setTypeOfThis(typeOfThis());
return other;
}
@@ -1354,6 +1345,9 @@ public final class ErrorSymbol extends Symbol {
public Symbol enclClass() {
return this;
}
+
+ public void reset(Type completer) {
+ }
}
/** The class of Symbol.NONE
@@ -1400,6 +1394,9 @@ public final class NoSymbol extends Symbol {
public Symbol owner() {
throw new ApplicationError();
}
+
+ public void reset(Type completer) {
+ }
}
/** A class for symbols generated in label definitions.