summaryrefslogtreecommitdiff
path: root/test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-06-24 15:54:10 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-07-04 15:49:08 +0200
commit9fc68e19309cef139c4827fbed76952011995e10 (patch)
tree789f30eb129b93efe74d7a026a005fc4a6c53330 /test/junit/scala/tools/nsc/symtab/SymbolTableForUnitTesting.scala
parentb7242013830510776fbb93bbf0e883532133030c (diff)
downloadscala-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.scala7
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)