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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10826259: Collect referenced classes recursively. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | tests/language/language.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index a896995c3fefa1892d43c17421cce5ac131b485d..86745d56cd3640ba0fbdd0c67212975d8890dc12 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -152,7 +152,12 @@ class ReferencedElementCollector extends AbstractVisitor {
compiler, typeElement, new TreeElementMapping(), typedefs, classes)
.collect();
}
- if (typeElement.isClass()) classes.add(typeElement);
+ if (typeElement.isClass() && !classes.contains(typeElement)) {
+ classes.add(typeElement);
+ new ReferencedElementCollector(
Anton Muhin 2012/08/13 08:01:01 please, do not duplicate the code, but move it bel
Roman 2012/08/13 08:14:06 Done.
+ compiler, typeElement, new TreeElementMapping(), typedefs, classes)
+ .collect();
+ }
typeAnnotation.visitChildren(this);
}
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | tests/language/language.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698