Chromium Code Reviews| 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.elements.forEach((SourceString _, Element element) { |
|
ahe
2012/03/10 19:45:41
I think this would lead to re-exporting imported e
ngeoffray
2012/03/10 20:57:32
Good point. Done.
|
| + compiler.withCurrentElement(element, () { |
| + library.define(element, compiler); |
| + }); |
| + }); |
| } |
| } |
| } |