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

Unified Diff: pkg/compiler/lib/src/universe/function_set.dart

Issue 2423953002: Change TypeInference to handle super calls as direct invocations. (Closed)
Patch Set: Register instance methods from direct invocation. Created 4 years, 2 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: pkg/compiler/lib/src/universe/function_set.dart
diff --git a/pkg/compiler/lib/src/universe/function_set.dart b/pkg/compiler/lib/src/universe/function_set.dart
index ac25450a6b9688515cbfe0994f1c727bd279b3f9..677ffc53d6d967e3cf92f8e872b39f91ca27cfa7 100644
--- a/pkg/compiler/lib/src/universe/function_set.dart
+++ b/pkg/compiler/lib/src/universe/function_set.dart
@@ -51,8 +51,10 @@ class FunctionSet {
return (node != null) ? node.contains(element) : false;
}
- /// Returns an object that allows iterating over all the functions
- /// that may be invoked with the given [selector].
+ /// Returns all the functions that may be invoked with the [selector] on a
+ /// receiver with the given [constraint]. The returned elements may include
+ /// noSuchMethod handlers that are potential targets indirectly through the
+ /// noSuchMethod mechanism.
Iterable<Element> filter(Selector selector, ReceiverConstraint constraint) {
return query(selector, constraint).functions;
}

Powered by Google App Engine
This is Rietveld 408576698