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

Unified Diff: compiler/java/com/google/dart/compiler/LibraryDepsVisitor.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/LibraryDepsVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java b/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
index 31237321dc929b903abd55234b92e85b854f5fa9..c49de612848becc9fe4d66ce275bda932c167bd1 100644
--- a/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
+++ b/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
@@ -77,7 +77,7 @@ public class LibraryDepsVisitor extends ASTVisitor<Void> {
if (node.getQualifier() instanceof DartIdentifier) {
DartIdentifier qualifier = (DartIdentifier) node.getQualifier();
Element target = qualifier.getElement();
- if (target != null && target.getKind() == ElementKind.LIBRARY) {
+ if (target != null && target.getKind() == ElementKind.LIBRARY_PREFIX) {
// Handle library prefixes normally.
// The prefix part of the qualifier doesn't contain any resolvable library source info.
return super.visitPropertyAccess(node);

Powered by Google App Engine
This is Rietveld 408576698