diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-06-24 15:54:10 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-04 15:49:08 +0200 |
commit | 9fc68e19309cef139c4827fbed76952011995e10 (patch) | |
tree | 789f30eb129b93efe74d7a026a005fc4a6c53330 /test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala | |
parent | b7242013830510776fbb93bbf0e883532133030c (diff) | |
download | scala-9fc68e19309cef139c4827fbed76952011995e10.tar.gz scala-9fc68e19309cef139c4827fbed76952011995e10.tar.bz2 scala-9fc68e19309cef139c4827fbed76952011995e10.zip |
Remove deprecationWarning, currentReporting from Reporting
This moves us a bit closer to the goal of having a single
entry point to reporting.
Must modularize Reporting a bit so it can be used in Variances
(need a reference to `currentRun` in `reflect.internal.Reporting`).
Diffstat (limited to 'test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala')
-rw-r--r-- | test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala b/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala index 6b87a99e6f..91868a5683 100644 --- a/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala +++ b/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala @@ -77,6 +77,13 @@ class SymbolTableForUnitTesting extends SymbolTable { protected def info0(pos: Position, msg: String, severity: Severity, force: Boolean): Unit = println(msg) } + // minimal Run to get Reporting wired + def currentRun = new RunReporting {} + class PerRunReporting extends PerRunReportingBase { + def deprecationWarning(pos: Position, msg: String): Unit = reporter.warning(pos, msg) + } + protected def PerRunReporting = new PerRunReporting + // Members declared in scala.reflect.internal.SymbolTable def currentRunId: Int = 1 def log(msg: => AnyRef): Unit = println(msg) |