diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/Main.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Main.scala | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/compiler/scala/tools/nsc/Main.scala b/src/compiler/scala/tools/nsc/Main.scala index 712fb38704..eb0f61def0 100644 --- a/src/compiler/scala/tools/nsc/Main.scala +++ b/src/compiler/scala/tools/nsc/Main.scala @@ -28,6 +28,7 @@ object Main extends AnyRef with EvalLoop { reporter.error(/*new Position */FakePos(PRODUCT), msg + "\n " + PRODUCT + " -help gives more information") + /* needed ?? */ def errors() = reporter.errors def resident(compiler: Global): unit = @@ -37,19 +38,6 @@ object Main extends AnyRef with EvalLoop { (new compiler.Run) compile command.files } -/* - def forever(compiler: Global): unit = { - var cnt = 0 - while (true) { - Console.println("Iteration: "+cnt) - cnt = cnt + 1 - val args = List("Global.scala") - val command = new CompilerCommand(args, error, true) - (new compiler.Run) compile command.files - } - } -*/ - def process(args: Array[String]): unit = { reporter = new ConsoleReporter(); val command = new CompilerCommand(List.fromArray(args), error, false); @@ -61,10 +49,6 @@ object Main extends AnyRef with EvalLoop { else { try { object compiler extends Global(command.settings, reporter); -/* - if (command.settings.Xgenerics.value) - forever(compiler) -*/ if (command.settings.resident.value) resident(compiler) else if (command.files.isEmpty) @@ -94,7 +78,7 @@ object Main extends AnyRef with EvalLoop { def main(args: Array[String]): unit = { process(args) - exit(if (reporter.errors > 0) 1 else 0) + exit(if (reporter.hasErrors) 1 else 0) } } |