Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10834270: Implement call operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 1556604510ef10e1cbcc23df93d4c0ac91e69f10..df399a5948f7964cbc4dd1409e26b9bfdf254963 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -1142,14 +1142,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;
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/js_helper.dart » ('j') | lib/compiler/implementation/namer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698