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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart

Issue 131403007: Version 1.1.0-dev.5.6 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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 | dart/sdk/lib/_internal/compiler/implementation/js_emitter/js_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
===================================================================
--- dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart (revision 31659)
+++ dart/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart (working copy)
@@ -603,6 +603,15 @@
if (variables.head.element == variable) return index;
}
}
+
+ /// Return all classes that are referenced in the type of the function, i.e.,
+ /// in the return type or the argument types.
+ Set<ClassElement> getReferencedClasses(FunctionType type) {
+ FunctionArgumentCollector collector =
+ new FunctionArgumentCollector(backend);
+ collector.collect(type);
+ return collector.classes;
+ }
}
class TypeRepresentationGenerator extends DartTypeVisitor {
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/js_emitter/js_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698