| Index: sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/elements/elements.dart (revision 21192)
|
| +++ sdk/lib/_internal/compiler/implementation/elements/elements.dart (working copy)
|
| @@ -321,8 +321,11 @@
|
| static bool isClosureSend(Send send, Element element) {
|
| if (send.isPropertyAccess) return false;
|
| if (send.receiver != null) return false;
|
| + Node selector = send.selector;
|
| + // this().
|
| + if (selector.isThis()) return true;
|
| // (o)() or foo()().
|
| - if (element == null && send.selector.asIdentifier() == null) return true;
|
| + if (element == null && selector.asIdentifier() == null) return true;
|
| if (element == null) return false;
|
| // foo() with foo a local or a parameter.
|
| return isLocal(element);
|
|
|