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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java

Issue 10139017: Support for same prefix for multiple imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Detect top-level duplicates in libraries with same prefix Created 8 years, 8 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: compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
index c6e0651fc0465b88f422fb0b35e6e02825c2a428..35abfc85661c703c14b1b5cf1b3a20f748da420d 100644
--- a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
@@ -320,7 +320,7 @@ public class CompileTimeConstantAnalyzer {
switch (ElementKind.of(element)) {
case CLASS:
case PARAMETER:
- case LIBRARY:
+ case LIBRARY_PREFIX:
break;
case FIELD:
@@ -432,7 +432,7 @@ public class CompileTimeConstantAnalyzer {
x.visitChildren(this);
switch (ElementKind.of(x.getQualifier().getElement())) {
case CLASS:
- case LIBRARY:
+ case LIBRARY_PREFIX:
case NONE:
// OK.
break;

Powered by Google App Engine
This is Rietveld 408576698