diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-02-24 22:35:56 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-02-24 22:41:15 +0100 |
commit | e7ab2f4a978e244cdd4c8c03170caa2a44c7adea (patch) | |
tree | d13d92d880836e009aebcc20b73da81dc45a2f5b /src/compiler/scala/tools/nsc/Global.scala | |
parent | d1b16c4dc484d5f431bc4635148b065e722b2315 (diff) | |
download | scala-e7ab2f4a978e244cdd4c8c03170caa2a44c7adea.tar.gz scala-e7ab2f4a978e244cdd4c8c03170caa2a44c7adea.tar.bz2 scala-e7ab2f4a978e244cdd4c8c03170caa2a44c7adea.zip |
Be explicit about empty param list calls.
With the exception of toString and the odd JavaBean getter.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index c5184eeae8..7c8dbc211e 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -409,7 +409,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) currentRun.informUnitStarting(this, unit) apply(unit) } - currentRun.advanceUnit + currentRun.advanceUnit() } finally { //assert(currentUnit == unit) currentRun.currentUnit = unit0 @@ -1200,7 +1200,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) // Flush the cache in the terminal phase: the chain could have been built // before without being used. (This happens in the interpreter.) - terminal.reset + terminal.reset() // Each subcomponent supplies a phase, which are chained together. // If -Ystop:phase is given, neither that phase nor any beyond it is added. @@ -1283,14 +1283,14 @@ class Global(var currentSettings: Settings, var reporter: Reporter) def advancePhase() { unitc = 0 phasec += 1 - refreshProgress + refreshProgress() } /** take note that a phase on a unit is completed * (for progress reporting) */ def advanceUnit() { unitc += 1 - refreshProgress + refreshProgress() } def cancel() { reporter.cancelled = true } @@ -1400,8 +1400,8 @@ class Global(var currentSettings: Settings, var reporter: Reporter) if (canCheck) { phase = globalPhase - if (globalPhase.id >= icodePhase.id) icodeChecker.checkICodes - else treeChecker.checkTrees + if (globalPhase.id >= icodePhase.id) icodeChecker.checkICodes() + else treeChecker.checkTrees() } } @@ -1451,7 +1451,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) } } else { - allConditionalWarnings foreach (_.summarize) + allConditionalWarnings foreach (_.summarize()) if (seenMacroExpansionsFallingBack) warning("some macros could not be expanded and code fell back to overridden methods;"+ @@ -1502,7 +1502,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) while (globalPhase.hasNext && !reporter.hasErrors) { val startTime = currentTime phase = globalPhase - globalPhase.run + globalPhase.run() // progress update informTime(globalPhase.description, startTime) @@ -1542,7 +1542,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) if (settings.Ystatistics.value) statistics.print(phase) - advancePhase + advancePhase() } if (traceSymbolActivity) @@ -1602,7 +1602,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) val maxId = math.max(globalPhase.id, typerPhase.id) firstPhase.iterator takeWhile (_.id < maxId) foreach (ph => enteringPhase(ph)(ph.asInstanceOf[GlobalPhase] applyPhase unit)) - refreshProgress + refreshProgress() } } |