@@ -115,12 +115,11 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
115
115
* or we need to assemble phases on each run, and take -Yskip, -Ystop into
116
116
* account. I think the latter would be preferable.
117
117
*/
118
- def compileSources (sources : List [SourceFile ]): Unit = {
118
+ def compileSources (sources : List [SourceFile ]): Unit =
119
119
if (sources forall (_.exists)) {
120
120
units = sources.map(CompilationUnit (_))
121
121
compileUnits()
122
122
}
123
- }
124
123
125
124
def compileUnits (us : List [CompilationUnit ]): Unit = {
126
125
units = us
@@ -152,7 +151,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
152
151
var lastPrintedTree : PrintedTree = NoPrintedTree
153
152
val profiler = ctx.profiler
154
153
155
- for (phase <- ctx.base.allPhases) {
154
+ for (phase <- ctx.base.allPhases)
156
155
if (phase.isRunnable)
157
156
Stats .trackTime(s " $phase ms " ) {
158
157
val start = System .currentTimeMillis
@@ -168,7 +167,6 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
168
167
for (unit <- units)
169
168
Stats .record(s " retained typed trees at end of $phase" , unit.tpdTree.treeSize)
170
169
}
171
- }
172
170
173
171
profiler.finished()
174
172
}
@@ -190,7 +188,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
190
188
* If `typeCheck = true`, also run typer on the compilation unit, and set
191
189
* `rootTreeOrProvider`.
192
190
*/
193
- def lateCompile (file : AbstractFile , typeCheck : Boolean )(implicit ctx : Context ): Unit = {
191
+ def lateCompile (file : AbstractFile , typeCheck : Boolean )(implicit ctx : Context ): Unit =
194
192
if (! files.contains(file) && ! lateFiles.contains(file)) {
195
193
lateFiles += file
196
194
val unit = CompilationUnit (ctx.getSource(file.path))
@@ -209,7 +207,6 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
209
207
}
210
208
process()(runContext.fresh.setCompilationUnit(unit))
211
209
}
212
- }
213
210
214
211
private sealed trait PrintedTree
215
212
private /* final*/ case class SomePrintedTree (phase : String , tree : String ) extends PrintedTree
0 commit comments