Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 6c3c8355ebc4c14999b9e2caeb76287d1ea4dae9..719b3464011e4c4afa886e37edc269fc1b4b797d 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -100,13 +100,14 @@ class KernelAstAdapter { |
return new Selector(kind, name, callStructure); |
} |
- TypeMask getTypeMask(ir.MethodInvocation invocation) { |
- return _elements.getTypeMask(getNode(invocation)); |
+ TypeMask typeOfInvocation(ir.MethodInvocation invocation) { |
+ return _compiler.globalInference.results |
+ .typeOfSend(getNode(invocation), _elements); |
} |
TypeMask selectorTypeOf(ir.MethodInvocation invocation) { |
return TypeMaskFactory.inferredTypeForSelector( |
- getSelector(invocation), getTypeMask(invocation), _compiler); |
+ getSelector(invocation), typeOfInvocation(invocation), _compiler); |
} |
bool isIntercepted(ir.MethodInvocation invocation) { |