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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 10832321: Issue 4048. Support for revised library/import syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index f8142b4e1430cd1eb15d63dc500bb57d9f84274b..6560536484bd85e079188959752236de3e1ea4f1 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -390,7 +390,7 @@ public class DartCompiler {
// Check that the current library is not the embedded library, and
// that the current library does not already import the embedded
// library.
- if (lib != imp && !lib.hasImport(null, imp)) {
+ if (lib != imp && !lib.hasImport(imp)) {
lib.addImport(imp, null);
}
}

Powered by Google App Engine
This is Rietveld 408576698