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

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

Issue 22947008: Refine the type of a local after it has been used as the receiver of a call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/world.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/world.dart (revision 26339)
+++ sdk/lib/_internal/compiler/implementation/world.dart (working copy)
@@ -47,6 +47,11 @@
return _typesImplementedBySubclasses[cls.declaration];
}
+ bool hasSubclasses(ClassElement cls) {
+ Set<ClassElement> subclasses = compiler.world.subclassesOf(cls);
+ return subclasses != null && !subclasses.isEmpty;
+ }
+
World(Compiler compiler)
: allFunctions = new FunctionSet(compiler),
this.compiler = compiler;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/universe/function_set.dart ('k') | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698