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

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: Removed redundant check. Created 8 years, 3 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 13725dbc5dc24bf3f0002a4952094c724346a33d..3cfc1de452899c29c176e9333cbacd381a591bfa 100644
--- a/lib/compiler/implementation/patch_parser.dart
+++ b/lib/compiler/implementation/patch_parser.dart
@@ -131,7 +131,8 @@ class PatchParserTask extends leg.CompilerTask {
* injections to the library, and returns a list of class
* patches.
*/
- void patchLibrary(Uri patchUri, LibraryElement library) {
+ void patchLibrary(ImportExportHandler handler,
+ Uri patchUri, LibraryElement library) {
leg.Script script = compiler.readScript(patchUri, null);
CompilationUnitElement compilationUnit =
new CompilationUnitElement(script, library);
@@ -146,7 +147,8 @@ class PatchParserTask extends leg.CompilerTask {
// TODO(lrn): These imports end up in the original library and are in
// scope for the original methods too. This should be fixed.
for (tree.LibraryTag tag in imports.toLink()) {
- compiler.scanner.importLibraryFromTag(tag, compilationUnit);
+ compiler.scanner.loadLibraryFromTag(
+ handler, library, tag, compilationUnit);
}
}

Powered by Google App Engine
This is Rietveld 408576698