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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.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/ResolutionContext.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
index b1ed06f2db06942411e081219c15887e4e4b5934..c199c828190c67cd948f2fa3fb4db88923ad795e 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
@@ -385,8 +385,8 @@ public class ResolutionContext implements ResolutionErrorListener {
Element element = node.getQualifier().accept(this);
if (element != null) {
switch (element.getKind()) {
- case LIBRARY :
- Scope elementScope = ((LibraryElement) element).getScope();
+ case LIBRARY_PREFIX :
+ Scope elementScope = ((LibraryPrefixElement) element).getScope();
return elementScope.findElement(scope.getLibrary(), node.getPropertyName());
case CLASS :
return Elements.findElement((ClassElement) element, node.getPropertyName());

Powered by Google App Engine
This is Rietveld 408576698