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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart

Issue 21110003: Implement MirrorUsed.targets for libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r25609 and added test. Created 7 years, 5 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: dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart b/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart
index 7745460b2e600ad4f9a5b66e662c62f18f490d6c..53eca9743ed7c90cbebcf36cd64e57b6d68b5c56 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart
@@ -194,6 +194,8 @@ class DeferredLoadTask extends CompilerTask {
Link<LibraryElement> findDeferredLibraries(LibraryElement library) {
Link<LibraryElement> link = const Link<LibraryElement>();
for (LibraryTag tag in library.tags) {
+ // TODO(ahe): This iterates over parts and exports as well, but should
+ // only iterate over imports.
Link<MetadataAnnotation> metadata = tag.metadata;
if (metadata == null) continue;
for (MetadataAnnotation metadata in tag.metadata) {

Powered by Google App Engine
This is Rietveld 408576698