diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-27 14:08:46 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-27 14:08:46 +0000 |
commit | f4308ff5f3dae9500ec89898e70a8cc9347e633f (patch) | |
tree | e77f165bec2b50c81a928564955c48139ee45a52 /sources/scalac/Global.java | |
parent | 31238c61f5df549e2d5e5e78d08d25ef5c6e4d9d (diff) | |
download | scala-f4308ff5f3dae9500ec89898e70a8cc9347e633f.tar.gz scala-f4308ff5f3dae9500ec89898e70a8cc9347e633f.tar.bz2 scala-f4308ff5f3dae9500ec89898e70a8cc9347e633f.zip |
- Removed Global.firstPos & Symbol.setFirstInfo
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r-- | sources/scalac/Global.java | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index f581dac326..320886e914 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -113,10 +113,6 @@ public abstract class Global { */ public HashMap/*<Symbol,Sourcefile>*/ compiledNow = new HashMap(); - /** the first phase - */ - private final Phase firstPhase; - /** the current phase */ public Phase currentPhase; @@ -234,20 +230,14 @@ public abstract class Global { } PHASE.freeze(); PhaseDescriptor[] descriptors = PHASE.phases(); - this.firstPhase = descriptors[0].create(this); - for (int i = 1; i <= PHASE.ANALYZER.id(); i++) + for (int i = 0; i <= PHASE.ANALYZER.id(); i++) if (!descriptors[i].hasSkipFlag()) descriptors[i].create(this); this.treeGen = ((AnalyzerPhase)PHASE.ANALYZER.phase()).gen; this.primitives = new Primitives(this); assert !descriptors[0].hasSkipFlag(); for (int i = PHASE.ANALYZER.id() + 1; i < descriptors.length; i++) if (!descriptors[i].hasSkipFlag()) descriptors[i].create(this); - this.currentPhase = firstPhase; - } - - /** Returns the first compilation phase. */ - public Phase getFirstPhase() { - return firstPhase; + this.currentPhase = PHASE.INITIAL.phase(); } /** @@ -304,7 +294,7 @@ public abstract class Global { private void compile() { treePrinter.begin(); - currentPhase = firstPhase; + currentPhase = PHASE.INITIAL.phase(); // apply successive phases and pray that it works while (currentPhase.next != null && reporter.errors() == 0) { currentPhase = currentPhase.next; |