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

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

Issue 10869012: Revert "Support sourceing files in patches." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Re-introduce the refactor in scanner_task. 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/scanner/scanner_task.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/patch_parser.dart
diff --git a/lib/compiler/implementation/patch_parser.dart b/lib/compiler/implementation/patch_parser.dart
index 4ea29b45cbeef6b9e44b3472f1f9bf186d2ef70c..c975ca0a343a36c722142099b64402dc4c0ed473 100644
--- a/lib/compiler/implementation/patch_parser.dart
+++ b/lib/compiler/implementation/patch_parser.dart
@@ -37,12 +37,7 @@ 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.ScriptTag tag in imports.toLink()) {
- if (tag.isSource()) {
- Uri resolved = patchUri.resolve(tag.argument.dartString.slowToString());
- compiler.scanner.sourceTagInLibrary(tag, resolved, library);
- } else {
- compiler.scanner.importLibraryFromTag(tag, compilationUnit);
- }
+ compiler.scanner.importLibraryFromTag(tag, compilationUnit);
}
}
« no previous file with comments | « no previous file | lib/compiler/implementation/scanner/scanner_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698