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

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

Issue 14031011: Print the location of duplicated elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix type warnings 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/elements/elements.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 3d7982b191f17fd7909a0e599a38c726e250ab87..4bed073adc4c281328a1a09f86aac046b1e78e0a 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -253,6 +253,8 @@ abstract class Element implements Spannable {
/// the generative constructor that the forwarding constructor points to
/// (possibly via other forwarding constructors).
FunctionElement get targetConstructor;
+
+ void diagnose(Element context, DiagnosticListener listener) {}
}
class Elements {
@@ -626,7 +628,7 @@ abstract class LibraryElement extends Element implements ScopeContainerElement {
void addCompilationUnit(CompilationUnitElement element);
void addTag(LibraryTag tag, DiagnosticListener listener);
- void addImport(Element element, DiagnosticListener listener);
+ void addImport(Element element, Import import, DiagnosticListener listener);
/// Record which element an import or export tag resolved to.
/// (Belongs on builder object).

Powered by Google App Engine
This is Rietveld 408576698