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

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

Issue 9581004: Update method used by analyzeLibrary to correctly identify dart:core (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
===================================================================
--- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 4840)
+++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
@@ -1149,6 +1149,9 @@
return null;
}
seen.add(libraryUnit.getElement());
+ if (uri.equals(libraryUnit.getName())) {
+ return libraryUnit;
+ }
for (LibraryNode src : libraryUnit.getSourcePaths()) {
if (src.getText().equals(uri)) {
return libraryUnit;
@@ -1164,6 +1167,6 @@
}
public static LibraryUnit getCoreLib(LibraryUnit libraryUnit) {
- return findLibrary(libraryUnit, "corelib.dart", new HashSet<LibraryElement>());
+ return findLibrary(libraryUnit, "dart:core", new HashSet<LibraryElement>());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698