| Index: pkg/analyzer2dart/lib/src/cps_generator.dart
|
| diff --git a/pkg/analyzer2dart/lib/src/cps_generator.dart b/pkg/analyzer2dart/lib/src/cps_generator.dart
|
| index a2dc9e677271b78fe81a0469a625146d5c77c1c2..879b308631b91cac754d98cb6bf0f23ffd92a027 100644
|
| --- a/pkg/analyzer2dart/lib/src/cps_generator.dart
|
| +++ b/pkg/analyzer2dart/lib/src/cps_generator.dart
|
| @@ -219,7 +219,7 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
|
| dart2js.Element element = converter.convertElement(staticElement);
|
| ir.Primitive receiver = irBuilder.buildLocalGet(element);
|
| List<ir.Definition> arguments = visitArguments(node.argumentList);
|
| - return irBuilder.buildFunctionExpressionInvocation(
|
| + return irBuilder.buildCallInvocation(
|
| receiver,
|
| createSelectorFromMethodInvocation(
|
| node.argumentList, node.methodName.name),
|
| @@ -243,7 +243,7 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
|
| FunctionExpressionInvocation node) {
|
| ir.Primitive target = build(node.function);
|
| List<ir.Definition> arguments = visitArguments(node.argumentList);
|
| - return irBuilder.buildFunctionExpressionInvocation(
|
| + return irBuilder.buildCallInvocation(
|
| target,
|
| createSelectorFromMethodInvocation(node.argumentList, 'call'),
|
| arguments);
|
|
|