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

Unified Diff: frog/leg/scanner/scanner_task.dart

Issue 9662035: When importing a library without a prefix, add the elements from the element map instead of the lis… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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: frog/leg/scanner/scanner_task.dart
===================================================================
--- frog/leg/scanner/scanner_task.dart (revision 5283)
+++ frog/leg/scanner/scanner_task.dart (working copy)
@@ -105,12 +105,11 @@
if (prefix !== null) {
library.define(new PrefixElement(prefix, imported, library), compiler);
} else {
- for (Link<Element> link = imported.topLevelElements; !link.isEmpty();
- link = link.tail) {
- compiler.withCurrentElement(link.head, () {
- library.define(link.head, compiler);
- });
- }
+ imported.forEachExport((Element element) {
+ compiler.withCurrentElement(element, () {
+ library.define(element, compiler);
+ });
+ });
}
}
}

Powered by Google App Engine
This is Rietveld 408576698