aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting/ThrowingReporter.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-16 13:34:57 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-10 13:25:33 +0200
commit18a69f7bd230bc06696e41be53a6735aa6e94ccc (patch)
treec21f0dc527194048b2195f2a1c4d98b1149cd3cf /src/dotty/tools/dotc/reporting/ThrowingReporter.scala
parent12ac3054bf4288403babb172c125cdc98cfff012 (diff)
downloaddotty-18a69f7bd230bc06696e41be53a6735aa6e94ccc.tar.gz
dotty-18a69f7bd230bc06696e41be53a6735aa6e94ccc.tar.bz2
dotty-18a69f7bd230bc06696e41be53a6735aa6e94ccc.zip
Rename Diagnostic to diagnostic.Message
Diffstat (limited to 'src/dotty/tools/dotc/reporting/ThrowingReporter.scala')
-rw-r--r--src/dotty/tools/dotc/reporting/ThrowingReporter.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/reporting/ThrowingReporter.scala b/src/dotty/tools/dotc/reporting/ThrowingReporter.scala
index 026453036..25adc6a41 100644
--- a/src/dotty/tools/dotc/reporting/ThrowingReporter.scala
+++ b/src/dotty/tools/dotc/reporting/ThrowingReporter.scala
@@ -4,6 +4,7 @@ package reporting
import core.Contexts.Context
import collection.mutable
+import diagnostic.Message
import Reporter._
/**
@@ -11,8 +12,8 @@ import Reporter._
* info to the underlying reporter.
*/
class ThrowingReporter(reportInfo: Reporter) extends Reporter {
- def doReport(d: Diagnostic)(implicit ctx: Context): Unit = d match {
- case _: Error => throw d
- case _ => reportInfo.doReport(d)
+ def doReport(m: Message)(implicit ctx: Context): Unit = m match {
+ case _: Error => throw m
+ case _ => reportInfo.doReport(m)
}
}