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

Unified Diff: pkg/compiler/lib/src/library_loader.dart

Issue 1309743006: Move common URIs to common/names.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/js_backend.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/library_loader.dart
diff --git a/pkg/compiler/lib/src/library_loader.dart b/pkg/compiler/lib/src/library_loader.dart
index 23202238eca2b6d485aedbdebfb972a33761855e..62ad6c6659e49a8bd818ffc4255e43048386471a 100644
--- a/pkg/compiler/lib/src/library_loader.dart
+++ b/pkg/compiler/lib/src/library_loader.dart
@@ -6,6 +6,8 @@ library dart2js.library_loader;
import 'dart:async';
+import 'common/names.dart' show
+ Uris;
import 'common/tasks.dart' show
CompilerTask;
import 'compiler.dart' show
@@ -411,8 +413,8 @@ class _LibraryLoaderTask extends CompilerTask implements LibraryLoaderTask {
checkDuplicatedLibraryName(library);
// Import dart:core if not already imported.
- if (!importsDartCore && library.canonicalUri != Compiler.DART_CORE) {
- return createLibrary(handler, null, Compiler.DART_CORE)
+ if (!importsDartCore && library.canonicalUri != Uris.dart_core) {
+ return createLibrary(handler, null, Uris.dart_core)
.then((LibraryElement coreLibrary) {
handler.registerDependency(library, null, coreLibrary);
});
« no previous file with comments | « pkg/compiler/lib/src/js_backend/js_backend.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698