summaryrefslogtreecommitdiff
path: root/sources/scala/tools/nsc/Main.scala
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2005-12-02 15:34:31 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2005-12-02 15:34:31 +0000
commitd4a7e14e41a918cd6de0a5efc1002c9d87fb7708 (patch)
treed284894da803392db21b910ab1518c5be2153976 /sources/scala/tools/nsc/Main.scala
parent4720d45a832b3a8c818ae81cb0a15353fd16e372 (diff)
downloadscala-d4a7e14e41a918cd6de0a5efc1002c9d87fb7708.tar.gz
scala-d4a7e14e41a918cd6de0a5efc1002c9d87fb7708.tar.bz2
scala-d4a7e14e41a918cd6de0a5efc1002c9d87fb7708.zip
Revamped reporter classes to make them more fri...
Revamped reporter classes to make them more friendly with the plugin.
Diffstat (limited to 'sources/scala/tools/nsc/Main.scala')
-rwxr-xr-xsources/scala/tools/nsc/Main.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/scala/tools/nsc/Main.scala b/sources/scala/tools/nsc/Main.scala
index 016590fd36..58b352db61 100755
--- a/sources/scala/tools/nsc/Main.scala
+++ b/sources/scala/tools/nsc/Main.scala
@@ -26,7 +26,7 @@ object Main extends Object with EvalLoop {
reporter.error(new Position(PRODUCT),
msg + "\n " + PRODUCT + " -help gives more information");
- def errors() = reporter.errors();
+ def errors() = reporter.errors;
def resident(compiler: Global): unit = {
loop(line => {
@@ -39,7 +39,7 @@ object Main extends Object with EvalLoop {
def process(args: Array[String]): unit = {
reporter = new ConsoleReporter();
val command = new CompilerCommand(List.fromArray(args), error, false);
- reporter.prompt(command.settings.prompt.value);
+ reporter.prompt = command.settings.prompt.value;
if (command.settings.version.value)
reporter.info(null, versionMsg, true)
else if (command.settings.help.value)
@@ -65,7 +65,7 @@ object Main extends Object with EvalLoop {
def main(args: Array[String]): unit = {
process(args);
- System.exit(if (reporter.errors() > 0) 1 else 0);
+ System.exit(if (reporter.errors > 0) 1 else 0);
}
}