diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-06-14 00:38:30 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-04 15:49:06 +0200 |
commit | 62c8f90f3105b8f19a9f29f104ff232438372c73 (patch) | |
tree | 0540ae1ba8aece6fdaffd0210719c979c36d02b3 /test/junit/scala/tools/nsc | |
parent | 98216be3f3e546fc320ab5182ac5c129707db1ce (diff) | |
download | scala-62c8f90f3105b8f19a9f29f104ff232438372c73.tar.gz scala-62c8f90f3105b8f19a9f29f104ff232438372c73.tar.bz2 scala-62c8f90f3105b8f19a9f29f104ff232438372c73.zip |
Uniformly route reporting through reporter.
Sharpen interfaces, reduce footprint of Reporting trait.
Ideally, all reporting should indirect through reporter,
and the `Reporting` trait itself should be restricted to
a single method that retrieves the current `reporter`.
Pull up some more reporting to reflect.internal.
Would like to do more, but need to move partest to the
reflect.internal interface first.
(Its `errorCount` relies on `ERROR.count` in `tools.nsc.Reporter`.)
Diffstat (limited to 'test/junit/scala/tools/nsc')
-rw-r--r-- | test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala b/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala index 25d8c4667f..6b87a99e6f 100644 --- a/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala +++ b/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala @@ -72,6 +72,11 @@ class SymbolTableForUnitTesting extends SymbolTable { def picklerPhase: scala.reflect.internal.Phase = SomePhase def erasurePhase: scala.reflect.internal.Phase = SomePhase + // Members declared in scala.reflect.internal.Reporting + def reporter = new scala.reflect.internal.ReporterImpl { + protected def info0(pos: Position, msg: String, severity: Severity, force: Boolean): Unit = println(msg) + } + // Members declared in scala.reflect.internal.SymbolTable def currentRunId: Int = 1 def log(msg: => AnyRef): Unit = println(msg) |