File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/dotty/tools/dotc/reporting Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ trait Reporting { this: Context =>
182
182
abstract class Reporter {
183
183
184
184
/** Report a diagnostic */
185
- protected def doReport (d : Diagnostic )(implicit ctx : Context ): Unit
185
+ def doReport (d : Diagnostic )(implicit ctx : Context ): Unit
186
186
187
187
/** Whether very long lines can be truncated. This exists so important
188
188
* debugging information (like printing the classpath) is not rendered
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class StoreReporter extends Reporter {
14
14
15
15
private var infos : mutable.ListBuffer [Diagnostic ] = null
16
16
17
- protected def doReport (d : Diagnostic )(implicit ctx : Context ): Unit = {
17
+ def doReport (d : Diagnostic )(implicit ctx : Context ): Unit = {
18
18
typr.println(s " >>>> StoredError: ${d.msg}" ) // !!! DEBUG
19
19
if (infos == null ) infos = new mutable.ListBuffer
20
20
infos += d
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import Reporter._
11
11
* info to the underlying reporter.
12
12
*/
13
13
class ThrowingReporter (reportInfo : Reporter ) extends Reporter {
14
- protected def doReport (d : Diagnostic )(implicit ctx : Context ): Unit = d match {
14
+ def doReport (d : Diagnostic )(implicit ctx : Context ): Unit = d match {
15
15
case _ : Error => throw d
16
- case _ => reportInfo.report (d)
16
+ case _ => reportInfo.doReport (d)
17
17
}
18
18
}
You can’t perform that action at this time.
0 commit comments