aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting/StoreReporter.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-02-23 00:13:32 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-02-23 17:21:26 +0100
commit03486df4053ec75bce0ec4b6e5f16ceafcbf66e9 (patch)
treec8e93e6f96b0ae543a880c5c818ff980342423c7 /src/dotty/tools/dotc/reporting/StoreReporter.scala
parent9d24583b44e4b59d07d61c5f051c8e9a8a832148 (diff)
downloaddotty-03486df4053ec75bce0ec4b6e5f16ceafcbf66e9.tar.gz
dotty-03486df4053ec75bce0ec4b6e5f16ceafcbf66e9.tar.bz2
dotty-03486df4053ec75bce0ec4b6e5f16ceafcbf66e9.zip
ConsoleReporter: handling of non-sensical messages is now reusable
This is now handled by a separate trait HideNonSensicalMessages that can be mixed in, similar to UniqueMessagePositions. This way we'll be able to reuse this functionality for other kind of Reporters. This also means that we don't need `doReport` to return a Boolean anymore, so we change it to return a Unit as it did before 065a0026924f722e9844c8e314180bb4cebca236
Diffstat (limited to 'src/dotty/tools/dotc/reporting/StoreReporter.scala')
-rw-r--r--src/dotty/tools/dotc/reporting/StoreReporter.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/reporting/StoreReporter.scala b/src/dotty/tools/dotc/reporting/StoreReporter.scala
index 53f03f1fe..d19e8cf5c 100644
--- a/src/dotty/tools/dotc/reporting/StoreReporter.scala
+++ b/src/dotty/tools/dotc/reporting/StoreReporter.scala
@@ -14,11 +14,10 @@ class StoreReporter(outer: Reporter) extends Reporter {
private var infos: mutable.ListBuffer[Diagnostic] = null
- def doReport(d: Diagnostic)(implicit ctx: Context): Boolean = {
+ def doReport(d: Diagnostic)(implicit ctx: Context): Unit = {
typr.println(s">>>> StoredError: ${d.msg}") // !!! DEBUG
if (infos == null) infos = new mutable.ListBuffer
infos += d
- true
}
override def hasPending: Boolean = infos != null && {