diff options
author | paltherr <paltherr@epfl.ch> | 2003-08-18 15:58:45 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-08-18 15:58:45 +0000 |
commit | 87210b8f1092065be1b7cfaf13a3852fe861abe4 (patch) | |
tree | 0e2ee43a75d151a74cec60e0025876082f2d7bc5 /sources/scalac/symtab/SourceCompleter.java | |
parent | c4e1967d6c99021400b8fa906f51f0bcba984fd4 (diff) | |
download | scala-87210b8f1092065be1b7cfaf13a3852fe861abe4.tar.gz scala-87210b8f1092065be1b7cfaf13a3852fe861abe4.tar.bz2 scala-87210b8f1092065be1b7cfaf13a3852fe861abe4.zip |
- rewrote the phase creation process
- replace PhaseRepository by CompilerPhases
Diffstat (limited to 'sources/scalac/symtab/SourceCompleter.java')
-rw-r--r-- | sources/scalac/symtab/SourceCompleter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/scalac/symtab/SourceCompleter.java b/sources/scalac/symtab/SourceCompleter.java index 43a8ec8a10..51e5d7437f 100644 --- a/sources/scalac/symtab/SourceCompleter.java +++ b/sources/scalac/symtab/SourceCompleter.java @@ -12,7 +12,7 @@ import ch.epfl.lamp.util.SourceFile; import scalac.*; import scalac.ast.parser.*; -import scalac.typechecker.Analyzer; +import scalac.typechecker.AnalyzerPhase; import java.io.*; @@ -39,8 +39,8 @@ public class SourceCompleter extends Type.LazyType { c.fullName()) + ".scala"; java.io.File f = global.classPath.openJavaFile(filename); Unit unit = new Unit(global, new SourceFile(f), false); - global.PHASE.PARSER.apply(unit); - global.PHASE.ANALYZER.lateEnter(global, unit, c); + global.PHASE.PARSER.phase().apply(new Unit[] {unit}); + ((AnalyzerPhase)global.PHASE.ANALYZER.phase()).lateEnter(global, unit, c); global.operation("added " + filename + " in " + (System.currentTimeMillis() - msec) + "ms"); } catch (IOException e) { |