summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/SourceCompleter.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-11-18 12:04:17 +0000
committerMartin Odersky <odersky@gmail.com>2003-11-18 12:04:17 +0000
commit79dfd483ebf2d901d93e161436b515e075537dc1 (patch)
treecdf702e9ba556623f3595c0ed2d4df6d2158bba5 /sources/scalac/symtab/SourceCompleter.java
parent3ad58546502ae51ae7c7904f242ec568a6b77fb1 (diff)
downloadscala-79dfd483ebf2d901d93e161436b515e075537dc1.tar.gz
scala-79dfd483ebf2d901d93e161436b515e075537dc1.tar.bz2
scala-79dfd483ebf2d901d93e161436b515e075537dc1.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab/SourceCompleter.java')
-rw-r--r--sources/scalac/symtab/SourceCompleter.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/sources/scalac/symtab/SourceCompleter.java b/sources/scalac/symtab/SourceCompleter.java
index 23dbbceaf1..7aeda28d05 100644
--- a/sources/scalac/symtab/SourceCompleter.java
+++ b/sources/scalac/symtab/SourceCompleter.java
@@ -20,11 +20,18 @@ public class SourceCompleter extends Type.LazyType {
/** the global compilation environment
*/
- protected Global global;
+ protected final Global global;
+ private final boolean mixinOnly;
+
private boolean completed = false;
public SourceCompleter(Global global) {
+ this(global, false);
+ }
+
+ public SourceCompleter(Global global, boolean mixinOnly) {
this.global = global;
+ this.mixinOnly = mixinOnly;
}
/** complete class symbol c by loading the unit
@@ -38,7 +45,7 @@ public class SourceCompleter extends Type.LazyType {
String filename = SourceRepresentation.externalizeFileName(
c.fullName()) + ".scala";
java.io.File f = global.classPath.openJavaFile(filename);
- Unit unit = new Unit(global, new SourceFile(f), false);
+ Unit unit = new Unit(global, new SourceFile(f), false, mixinOnly);
Phase phase = global.currentPhase;
global.currentPhase = global.PHASE.PARSER.phase();
global.PHASE.PARSER.phase().apply(new Unit[] {unit});