summaryrefslogtreecommitdiff
path: root/sources/scala/tools/nsc/Main.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scala/tools/nsc/Main.scala')
-rwxr-xr-xsources/scala/tools/nsc/Main.scala28
1 files changed, 14 insertions, 14 deletions
diff --git a/sources/scala/tools/nsc/Main.scala b/sources/scala/tools/nsc/Main.scala
index 3f96e66799..02b758b662 100755
--- a/sources/scala/tools/nsc/Main.scala
+++ b/sources/scala/tools/nsc/Main.scala
@@ -59,7 +59,7 @@ object Main {
})
}
- def interprete(gCompiler: Global): unit = {
+ def interpret(gCompiler: Global): unit = {
val interpreter = new Interpreter {
val compiler: gCompiler.type = gCompiler
};
@@ -76,20 +76,20 @@ object Main {
reporter.info(null, command.usageMsg, true)
else {
try {
- val compiler = new Global(command.settings, reporter);
- if (command.settings.resident.value)
- resident(compiler);
- else if (command.settings.interprete.value)
- interprete(compiler);
- else if (command.files.isEmpty)
- reporter.info(null, command.usageMsg, true)
- else
- (new compiler.Run) compile command.files;
+ val compiler = new Global(command.settings, reporter);
+ if (command.settings.resident.value)
+ resident(compiler);
+ else if (command.settings.interpret.value)
+ interpret(compiler);
+ else if (command.files.isEmpty)
+ reporter.info(null, command.usageMsg, true)
+ else
+ (new compiler.Run) compile command.files;
} catch {
- case ex @ FatalError(msg) =>
- if (command.settings.debug.value)
- ex.printStackTrace();
- reporter.error(null, "fatal error: " + msg);
+ case ex @ FatalError(msg) =>
+ if (command.settings.debug.value)
+ ex.printStackTrace();
+ reporter.error(null, "fatal error: " + msg);
}
reporter.printSummary()
}