@@ -72,8 +72,6 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
72
72
private [this ] var myUnits : List [CompilationUnit ] = _
73
73
private [this ] var myUnitsCached : List [CompilationUnit ] = _
74
74
private [this ] var myFiles : Set [AbstractFile ] = _
75
- private [this ] val myLateUnits = mutable.ListBuffer [CompilationUnit ]()
76
- private [this ] var myLateFiles = mutable.Set [AbstractFile ]()
77
75
78
76
/** The compilation units currently being compiled, this may return different
79
77
* results over time.
@@ -95,11 +93,8 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
95
93
myFiles
96
94
}
97
95
98
- /** Units that are added from source completers but that are not compiled in current run. */
99
- def lateUnits : List [CompilationUnit ] = myLateUnits.toList
100
-
101
- /** The source files of all late units, as a set */
102
- def lateFiles : collection.Set [AbstractFile ] = myLateFiles
96
+ /** The source files of all late entered symbols, as a set */
97
+ private [this ] var lateFiles = mutable.Set [AbstractFile ]()
103
98
104
99
def getSource (fileName : String ): SourceFile = {
105
100
val f = new PlainFile (io.Path (fileName))
@@ -196,9 +191,8 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
196
191
*/
197
192
def enterRoots (file : AbstractFile )(implicit ctx : Context ): Unit =
198
193
if (! files.contains(file) && ! lateFiles.contains(file)) {
194
+ lateFiles += file
199
195
val unit = new CompilationUnit (getSource(file.path))
200
- myLateUnits += unit
201
- myLateFiles += file
202
196
enterRoots(unit)(runContext.fresh.setCompilationUnit(unit))
203
197
}
204
198
0 commit comments