| Index: lib/compiler/implementation/elements/elements.dart
|
| diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
|
| index 58d44411abd83516d40d5f554f55dc2b1edeaf92..2344018ca6a1811693d957a920efa8c961bbed8d 100644
|
| --- a/lib/compiler/implementation/elements/elements.dart
|
| +++ b/lib/compiler/implementation/elements/elements.dart
|
| @@ -1150,14 +1150,13 @@ class Elements {
|
|
|
| static bool isInstanceSend(Send send, TreeElements elements) {
|
| Element element = elements[send];
|
| - if (element === null) return !isClosureSend(send, elements);
|
| + if (element === null) return !isClosureSend(send, element);
|
| return isInstanceMethod(element) || isInstanceField(element);
|
| }
|
|
|
| - static bool isClosureSend(Send send, TreeElements elements) {
|
| + static bool isClosureSend(Send send, Element element) {
|
| if (send.isPropertyAccess) return false;
|
| if (send.receiver !== null) return false;
|
| - Element element = elements[send];
|
| // (o)() or foo()().
|
| if (element === null && send.selector.asIdentifier() === null) return true;
|
| if (element === null) return false;
|
|
|