summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/SourceCompleter.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-21 16:49:06 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-21 16:49:06 +0000
commit1e69dfd7774211aa276479d7b031bcee5557d0e2 (patch)
tree5424a7250392e8203b37a25f17e8cccb9aea0f5e /sources/scalac/symtab/SourceCompleter.java
parent5ed2fb0f5d44522925e737198aba3249f091d13c (diff)
downloadscala-1e69dfd7774211aa276479d7b031bcee5557d0e2.tar.gz
scala-1e69dfd7774211aa276479d7b031bcee5557d0e2.tar.bz2
scala-1e69dfd7774211aa276479d7b031bcee5557d0e2.zip
- Simplified method lateEnter in Analyzer and A...
- Simplified method lateEnter in Analyzer and AnalyzerPhase Added - Global.compileLate Changed SourceCompleter and Analyer to use it - Removed mixinOnly from SourceCompleter
Diffstat (limited to 'sources/scalac/symtab/SourceCompleter.java')
-rw-r--r--sources/scalac/symtab/SourceCompleter.java15
1 files changed, 1 insertions, 14 deletions
diff --git a/sources/scalac/symtab/SourceCompleter.java b/sources/scalac/symtab/SourceCompleter.java
index e70023c935..b9456a4b10 100644
--- a/sources/scalac/symtab/SourceCompleter.java
+++ b/sources/scalac/symtab/SourceCompleter.java
@@ -20,28 +20,15 @@ import java.io.*;
public class SourceCompleter extends SymbolLoader {
- private final boolean mixinOnly;
-
public SourceCompleter(Global global) {
- this(global, false);
- }
-
- public SourceCompleter(Global global, boolean mixinOnly) {
super(global);
- this.mixinOnly = mixinOnly;
}
/** complete class symbol c by loading the unit
*/
public String doComplete(Symbol clasz) throws IOException {
SourceFile source = global.getSourceFile(clasz);
- Unit unit = new Unit(global, source, false, mixinOnly);
- Phase phase = global.currentPhase;
- global.currentPhase = global.PHASE.PARSER.phase();
- global.PHASE.PARSER.phase().apply(new Unit[] {unit});
- global.currentPhase = global.PHASE.ANALYZER.phase();
- ((AnalyzerPhase)global.PHASE.ANALYZER.phase()).lateEnter(global, unit, clasz);
- global.currentPhase = phase;
+ global.compileLate(source, false);
return "source file '" + source + "'";
}