aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting/Reporter.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/reporting/Reporter.scala')
-rw-r--r--src/dotty/tools/dotc/reporting/Reporter.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/reporting/Reporter.scala b/src/dotty/tools/dotc/reporting/Reporter.scala
index 086575fb4..7c9d1fa79 100644
--- a/src/dotty/tools/dotc/reporting/Reporter.scala
+++ b/src/dotty/tools/dotc/reporting/Reporter.scala
@@ -173,8 +173,6 @@ trait Reporting { this: Context =>
throw ex
}
}
-
- def errorsReported: Boolean = outersIterator exists (_.reporter.hasErrors)
}
/**
@@ -213,6 +211,11 @@ abstract class Reporter {
def hasErrors = errorCount > 0
def hasWarnings = warningCount > 0
+ /** Have errors been reported by this reporter, or in the
+ * case where this is a StoreReporter, by an outer reporter?
+ */
+ def errorsReported = hasErrors
+
val unreportedWarnings = new mutable.HashMap[String, Int] {
override def default(key: String) = 0
}