summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/internal/Reporting.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-06-10 12:32:06 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-07-04 15:49:07 +0200
commite08735380e8cba8f4b7230f5615e528782a0111a (patch)
treec1719135c315a32db4f921aebbb6d6e0f56eb0a8 /src/reflect/scala/reflect/internal/Reporting.scala
parent62c8f90f3105b8f19a9f29f104ff232438372c73 (diff)
downloadscala-e08735380e8cba8f4b7230f5615e528782a0111a.tar.gz
scala-e08735380e8cba8f4b7230f5615e528782a0111a.tar.bz2
scala-e08735380e8cba8f4b7230f5615e528782a0111a.zip
Track symbol that caused a deprecation warning.
So that we can filter deprecations based on defining package. Configurable error reporting will support a rule like: "In compilation unit X, escalate deprecation warnings that result from accessing members in package P that have been deprecated since version V. Report an error instead of a warning for those." TODO: remove deprecationWarning overload that doesn't take a `Symbol`? (Replace by a default value of `NoSymbol` for the deprecated symbol arg?)
Diffstat (limited to 'src/reflect/scala/reflect/internal/Reporting.scala')
-rw-r--r--src/reflect/scala/reflect/internal/Reporting.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/Reporting.scala b/src/reflect/scala/reflect/internal/Reporting.scala
index baeed1357d..0670e9bd8e 100644
--- a/src/reflect/scala/reflect/internal/Reporting.scala
+++ b/src/reflect/scala/reflect/internal/Reporting.scala
@@ -10,6 +10,9 @@ package internal
/** Provides delegates to the reporter doing the actual work.
* All forwarding methods should be marked final,
* but some subclasses out of our reach stil override them.
+ *
+ * Eventually, this interface should be reduced to one method: `reporter`,
+ * and clients should indirect themselves (reduce duplication of forwarders).
*/
trait Reporting { self : Positions =>
def reporter: Reporter