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

Unified Diff: lib/compiler/implementation/scanner/scanner_task.dart

Issue 10689036: First step towards having patch files for generic libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: lib/compiler/implementation/scanner/scanner_task.dart
diff --git a/lib/compiler/implementation/scanner/scanner_task.dart b/lib/compiler/implementation/scanner/scanner_task.dart
index 178a4798f801734249b3d618941aba4be2bbab96..3d7b3cdec94d2579294bb052d7277a1f093c815e 100644
--- a/lib/compiler/implementation/scanner/scanner_task.dart
+++ b/lib/compiler/implementation/scanner/scanner_task.dart
@@ -80,7 +80,11 @@ class ScannerTask extends CompilerTask {
if (resolved.toString() == "dart:core") {
implicitlyImportCoreLibrary = false;
}
- importLibrary(library, loadLibrary(resolved, argument), tag);
+ LibraryElement importedLibrary = loadLibrary(resolved, argument);
+ importLibrary(library, importedLibrary, tag);
+ if (resolved.scheme == "dart") {
+ compiler.patchDartLibrary(importedLibrary, resolved.path);
+ }
}
if (implicitlyImportCoreLibrary) {
importLibrary(library, compiler.coreLibrary, null);

Powered by Google App Engine
This is Rietveld 408576698