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

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

Issue 10001008: Many type fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 505ed81c8e6151f40e9f9deed4c1beeaab20b47b..7a25e29efc77ca29a8d527f0e60e641a033a9b46 100644
--- a/lib/compiler/implementation/scanner/scanner_task.dart
+++ b/lib/compiler/implementation/scanner/scanner_task.dart
@@ -146,8 +146,10 @@ class ScannerTask extends CompilerTask {
});
compiler.reportError(tag.prefix, 'duplicate defintion');
}
+ PrefixElement prefixElement = e;
imported.forEachExport((Element element) {
- Element existing = e.imported.putIfAbsent(element.name, () => element);
+ Element existing =
+ prefixElement.imported.putIfAbsent(element.name, () => element);
if (existing !== element) {
compiler.withCurrentElement(existing, () {
compiler.reportWarning(new Identifier(existing.position()),

Powered by Google App Engine
This is Rietveld 408576698