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

Unified Diff: pkg/compiler/lib/src/inferrer/closure_tracer.dart

Issue 2656073002: Fix query to isFunctionApplyMethod (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/closure_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/closure_tracer.dart b/pkg/compiler/lib/src/inferrer/closure_tracer.dart
index 0d0072219917e76b71d08dbbea232831a51c731e..cd76db6f4ff669ebec32a7b7fffc3b65da6a9f9e 100644
--- a/pkg/compiler/lib/src/inferrer/closure_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/closure_tracer.dart
@@ -100,8 +100,10 @@ class ClosureTracerVisitor extends TracerVisitor {
bool _checkIfCurrentUser(element) =>
inferrer.types.getInferredTypeOf(element) == currentUser;
- bool _checkIfFunctionApply(element) =>
- compiler.commonElements.isFunctionApplyMethod(element);
+ bool _checkIfFunctionApply(Element element) {
+ return element is MemberElement &&
+ compiler.commonElements.isFunctionApplyMethod(element);
+ }
@override
visitDynamicCallSiteTypeInformation(DynamicCallSiteTypeInformation info) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698