aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting/Reporter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-04-19 14:41:11 +0200
committerMartin Odersky <odersky@gmail.com>2013-04-19 14:41:11 +0200
commit6b58c275293b2c2b0bf3390eaee94ec31bcbdab9 (patch)
tree74c264e1483b9a346821c53ad09df10c69e5f8bd /src/dotty/tools/dotc/reporting/Reporter.scala
parent344450ffcde551af8406fa1b873a6cb9dd430eb0 (diff)
downloaddotty-6b58c275293b2c2b0bf3390eaee94ec31bcbdab9.tar.gz
dotty-6b58c275293b2c2b0bf3390eaee94ec31bcbdab9.tar.bz2
dotty-6b58c275293b2c2b0bf3390eaee94ec31bcbdab9.zip
Added TreeBuilder and TreeInfo classes.
Also changed Untyped from Nothing to Null, because it avoids type inference problems.
Diffstat (limited to 'src/dotty/tools/dotc/reporting/Reporter.scala')
-rw-r--r--src/dotty/tools/dotc/reporting/Reporter.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/reporting/Reporter.scala b/src/dotty/tools/dotc/reporting/Reporter.scala
index 3e7eaecde..86dfb96d8 100644
--- a/src/dotty/tools/dotc/reporting/Reporter.scala
+++ b/src/dotty/tools/dotc/reporting/Reporter.scala
@@ -30,13 +30,16 @@ trait Reporting { this: Context =>
" in " + (currentTimeMillis - start) + "ms"
def informProgress(msg: => String) =
- if (ctx.settings.verbose.value) inform("[" + msg + "]")
+ if (this.settings.verbose.value) inform("[" + msg + "]")
def trace[T](msg: => String)(value: T) = {
log(msg + " " + value)
value
}
+ def debugwarn(msg: String, pos: SourcePosition = NoSourcePosition): Unit =
+ if (this.settings.debug.value) warning(msg, pos)
+
def debugTraceIndented[T](question: => String)(op: => T): T =
if (this.settings.debugTrace.value) traceIndented(question)(op)
else op