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

Unified Diff: lib/compiler/implementation/apiimpl.dart

Issue 10824347: Make top-level patch injections be compilation unit under library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Offline discussed changes. 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
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/apiimpl.dart
diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
index 73a2ab718ac82568a2e2cbad373af6624bf0fd2b..5e4ae29c1540832fbd5dead258c7f14fce268ec0 100644
--- a/lib/compiler/implementation/apiimpl.dart
+++ b/lib/compiler/implementation/apiimpl.dart
@@ -34,7 +34,14 @@ class Compiler extends leg.Compiler {
elements.LibraryElement scanBuiltinLibrary(String path) {
Uri uri = libraryRoot.resolve(DART2JS_LIBRARY_MAP[path].libraryPath);
- elements.LibraryElement library = scanner.loadLibrary(uri, null);
+ Uri canonicalUri;
+ if (path.startsWith("_")) {
+ canonicalUri = uri;
+ } else {
+ canonicalUri = new Uri.fromComponents(scheme: "dart", path: path);
+ }
+ elements.LibraryElement library =
+ scanner.loadLibrary(uri, null, canonicalUri);
return library;
}
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698