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.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/reporting/Reporter.scala b/src/dotty/tools/dotc/reporting/Reporter.scala
index 95c6d7ae6..f4eb551a1 100644
--- a/src/dotty/tools/dotc/reporting/Reporter.scala
+++ b/src/dotty/tools/dotc/reporting/Reporter.scala
@@ -159,10 +159,8 @@ trait Reporting { this: Context =>
*/
abstract class Reporter {
- /** Report a diagnostic, unless it is suppressed because it is nonsensical
- * @return a diagnostic was reported.
- */
- def doReport(d: Diagnostic)(implicit ctx: Context): Boolean
+ /** Report a diagnostic */
+ def doReport(d: Diagnostic)(implicit ctx: Context): Unit
/** Whether very long lines can be truncated. This exists so important
* debugging information (like printing the classpath) is not rendered
@@ -203,7 +201,8 @@ abstract class Reporter {
}
def report(d: Diagnostic)(implicit ctx: Context): Unit =
- if (!isHidden(d) && doReport(d)(ctx.addMode(Mode.Printing)))
+ if (!isHidden(d)) {
+ doReport(d)(ctx.addMode(Mode.Printing))
d match {
case d: ConditionalWarning if !d.enablingOption.value => unreportedWarnings(d.enablingOption.name) += 1
case d: Warning => warningCount += 1
@@ -213,6 +212,7 @@ abstract class Reporter {
case d: Info => // nothing to do here
// match error if d is something else
}
+ }
def incomplete(d: Diagnostic)(implicit ctx: Context): Unit =
incompleteHandler(d)(ctx)