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

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

Issue 10990060: Added support for exports and re-exports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase (again) Created 8 years, 2 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/patch_parser.dart
diff --git a/lib/compiler/implementation/patch_parser.dart b/lib/compiler/implementation/patch_parser.dart
index f400c869e6c92c2149f4a740317a885f1ed132a4..ec15171f316028911c77cc3f4209770605f06c2f 100644
--- a/lib/compiler/implementation/patch_parser.dart
+++ b/lib/compiler/implementation/patch_parser.dart
@@ -130,9 +130,12 @@ class PatchParserTask extends leg.CompilerTask {
* injections to the library, and returns a list of class
* patches.
*/
- void patchLibrary(Uri patchUri, LibraryElement originLibrary) {
+ void patchLibrary(leg.LibraryDependencyHandler handler,
+ Uri patchUri, LibraryElement originLibrary) {
+
leg.Script script = compiler.readScript(patchUri, null);
var patchLibrary = new LibraryElement(script, patchUri, originLibrary);
+ handler.registerNewLibrary(patchLibrary);
LinkBuilder<tree.LibraryTag> imports = new LinkBuilder<tree.LibraryTag>();
compiler.withCurrentElement(patchLibrary.entryCompilationUnit, () {
// This patches the elements of the patch library into [library].
@@ -145,8 +148,7 @@ class PatchParserTask extends leg.CompilerTask {
// scope for the original methods too. This should be fixed.
compiler.importHelperLibrary(originLibrary);
for (tree.LibraryTag tag in imports.toLink()) {
- compiler.scanner.importLibraryFromTag(tag,
- patchLibrary.entryCompilationUnit);
+ compiler.libraryLoader.loadLibraryFromTag(handler, patchLibrary, tag);
}
}

Powered by Google App Engine
This is Rietveld 408576698