Index: pkg/compiler/lib/src/elements/elements.dart |
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart |
index ecf63709dba607ff83a360e8feb364e33559c471..d10bf45eb1a984303ee4d2f21f279b0da1514a4d 100644 |
--- a/pkg/compiler/lib/src/elements/elements.dart |
+++ b/pkg/compiler/lib/src/elements/elements.dart |
@@ -427,7 +427,7 @@ class Elements { |
/// Unwraps [element] reporting any warnings attached to it, if any. |
static Element unwrap(Element element, |
- DiagnosticListener listener, |
+ DiagnosticReporter listener, |
Spannable spannable) { |
if (element != null && element.isWarnOnUse) { |
WarnOnUseElement wrappedElement = element; |
@@ -806,7 +806,7 @@ abstract class WarnOnUseElement extends Element { |
/// Reports the attached warning and returns the wrapped element. |
/// [usageSpannable] is used to report messages on the reference of |
/// [wrappedElement]. |
- Element unwrap(DiagnosticListener listener, Spannable usageSpannable); |
+ Element unwrap(DiagnosticReporter listener, Spannable usageSpannable); |
} |
/// An ambiguous element represents multiple elements accessible by the same |
@@ -823,7 +823,7 @@ abstract class AmbiguousElement extends Element { |
/// Compute the info messages associated with an error/warning on [context]. |
List<DiagnosticMessage> computeInfos( |
- Element context, DiagnosticListener listener); |
+ Element context, DiagnosticReporter listener); |
} |
// TODO(kasperl): This probably shouldn't be called an element. It's |