summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-08-04 19:56:48 +0000
committerPaul Phillips <paulp@improving.org>2011-08-04 19:56:48 +0000
commitc18878ab71d64b91adbfc3cff5778a0f340be520 (patch)
tree5d81c424a1b5fd8aa8e7662cbb9c204e0fdbef3c /src/compiler/scala/tools/nsc/Global.scala
parente02eecbbadff2d5feccdfc81f8013e7433f10f4c (diff)
downloadscala-c18878ab71d64b91adbfc3cff5778a0f340be520.tar.gz
scala-c18878ab71d64b91adbfc3cff5778a0f340be520.tar.bz2
scala-c18878ab71d64b91adbfc3cff5778a0f340be520.zip
Cleanups in synthetic method generation, no rev...
Cleanups in synthetic method generation, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 2845ee8e03..83f4ce438f 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -179,6 +179,10 @@ class Global(var currentSettings: Settings, var reporter: Reporter) extends Symb
def inform[T](msg: String, value: T): T = returning(value)(x => inform(msg + x))
def informTime(msg: String, start: Long) = informProgress(elapsedMessage(msg, start))
+ def logResult[T](msg: String)(result: T): T = {
+ log(msg + ": " + result)
+ result
+ }
def logError(msg: String, t: Throwable): Unit = ()
// Over 200 closure objects are eliminated by inlining this.
@inline final def log(msg: => AnyRef): Unit =