| Index: sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
|
| index 4906aaaaaf0a1b4780e0234bb492cd6977a940dc..42febb740c68a2e2cf8aa2e6dd10979bb936e5d7 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
|
| @@ -389,8 +389,7 @@ class ASTEmitter extends tree.Visitor<dynamic, Expression> {
|
| }
|
| }
|
|
|
| - Expression visitInvokeMethod(tree.InvokeMethod exp) {
|
| - Expression receiver = visitExpression(exp.receiver);
|
| + Expression emitMethodCall(tree.Invoke exp, Receiver receiver) {
|
| List<Argument> args = emitArguments(exp);
|
| switch (exp.selector.kind) {
|
| case SelectorKind.CALL:
|
| @@ -429,6 +428,15 @@ class ASTEmitter extends tree.Visitor<dynamic, Expression> {
|
| }
|
| }
|
|
|
| + Expression visitInvokeMethod(tree.InvokeMethod exp) {
|
| + Expression receiver = visitExpression(exp.receiver);
|
| + return emitMethodCall(exp, receiver);
|
| + }
|
| +
|
| + Expression visitInvokeSuperMethod(tree.InvokeSuperMethod exp) {
|
| + return emitMethodCall(exp, new SuperReceiver());
|
| + }
|
| +
|
| Expression visitInvokeConstructor(tree.InvokeConstructor exp) {
|
| List args = emitArguments(exp);
|
| FunctionElement constructor = exp.target;
|
|
|