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

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: Simplify nested loop and add TODO.p 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
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698