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

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

Issue 11615031: Tweak to support 'dart.core' as core library name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 9e1995da296ca039a928554a55d5c3a9f790d2c1..98493b2062ab7ea961c5cd2204cc28969dc9cdf1 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -1380,7 +1380,11 @@ public class DartCompiler {
}
public static LibraryUnit getCoreLib(LibraryUnit libraryUnit) {
- return findLibrary(libraryUnit, "dart:core", new HashSet<LibraryElement>());
+ LibraryUnit coreLib = findLibrary(libraryUnit, "dart.core", new HashSet<LibraryElement>());
+ if (coreLib == null) {
+ coreLib = findLibrary(libraryUnit, "dart:core", new HashSet<LibraryElement>());
+ }
+ return coreLib;
}
private static void showVersion(CompilerOptions options) {
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698