Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart

Issue 14031011: Print the location of duplicated elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart b/dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
index 1d0c2b9800e3725ea3509c4f1fb8d25f11e65ab6..ff9595fc2b2a36f490d58de09351b7b409996ac7 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
@@ -23,6 +23,14 @@ abstract class DiagnosticListener {
// TODO(ahe): Rename to reportError when that method has been removed.
void reportErrorCode(Spannable node, MessageKind errorCode, [Map arguments]);
+ void reportInfo(Spannable node, MessageKind errorCode, [Map arguments]);
+
/// Returns true if a diagnostic was emitted.
bool onDeprecatedFeature(Spannable span, String feature);
+
+ // TODO(ahe): We should not expose this here. Perhaps a
+ // [SourceSpan] should implement [Spannable], and we should have a
+ // way to construct a [SourceSpan] from a [Spannable] and an
+ // [Element].
+ withCurrentElement(Element element, f());
}

Powered by Google App Engine
This is Rietveld 408576698