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

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

Issue 10704080: Revert "Make patch file import declarations apply to the patched library too." (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 a1ed5fb6ba1faf9dd96d814c8bd959a64ad8bda7..3d7b3cdec94d2579294bb052d7277a1f093c815e 100644
--- a/lib/compiler/implementation/scanner/scanner_task.dart
+++ b/lib/compiler/implementation/scanner/scanner_task.dart
@@ -130,7 +130,7 @@ class ScannerTask extends CompilerTask {
}
void importLibrary(LibraryElement library, LibraryElement imported,
- ScriptTag tag, [CompilationUnitElement patch]) {
+ ScriptTag tag) {
if (!imported.hasLibraryName()) {
compiler.withCurrentElement(library, () {
compiler.reportError(tag === null ? null : tag.argument,
@@ -142,7 +142,7 @@ class ScannerTask extends CompilerTask {
new SourceString(tag.prefix.dartString.slowToString());
Element e = library.find(prefix);
if (e === null) {
- e = new PrefixElement(prefix, library, tag.getBeginToken(), patch);
+ e = new PrefixElement(prefix, library, tag.getBeginToken());
library.define(e, compiler);
}
if (e.kind !== ElementKind.PREFIX) {
« no previous file with comments | « lib/compiler/implementation/library_map.dart ('k') | tests/compiler/dart2js_extra/math_lib_prefix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698