@@ -115,12 +115,11 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
115115 * or we need to assemble phases on each run, and take -Yskip, -Ystop into
116116 * account. I think the latter would be preferable.
117117 */
118- def compileSources (sources : List [SourceFile ]): Unit = {
118+ def compileSources (sources : List [SourceFile ]): Unit =
119119 if (sources forall (_.exists)) {
120120 units = sources.map(CompilationUnit (_))
121121 compileUnits()
122122 }
123- }
124123
125124 def compileUnits (us : List [CompilationUnit ]): Unit = {
126125 units = us
@@ -152,7 +151,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
152151 var lastPrintedTree : PrintedTree = NoPrintedTree
153152 val profiler = ctx.profiler
154153
155- for (phase <- ctx.base.allPhases) {
154+ for (phase <- ctx.base.allPhases)
156155 if (phase.isRunnable)
157156 Stats .trackTime(s " $phase ms " ) {
158157 val start = System .currentTimeMillis
@@ -168,7 +167,6 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
168167 for (unit <- units)
169168 Stats .record(s " retained typed trees at end of $phase" , unit.tpdTree.treeSize)
170169 }
171- }
172170
173171 profiler.finished()
174172 }
@@ -190,7 +188,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
190188 * If `typeCheck = true`, also run typer on the compilation unit, and set
191189 * `rootTreeOrProvider`.
192190 */
193- def lateCompile (file : AbstractFile , typeCheck : Boolean )(implicit ctx : Context ): Unit = {
191+ def lateCompile (file : AbstractFile , typeCheck : Boolean )(implicit ctx : Context ): Unit =
194192 if (! files.contains(file) && ! lateFiles.contains(file)) {
195193 lateFiles += file
196194 val unit = CompilationUnit (ctx.getSource(file.path))
@@ -209,7 +207,6 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
209207 }
210208 process()(runContext.fresh.setCompilationUnit(unit))
211209 }
212- }
213210
214211 private sealed trait PrintedTree
215212 private /* final*/ case class SomePrintedTree (phase : String , tree : String ) extends PrintedTree
0 commit comments