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

Unified Diff: frog/leg/typechecker.dart

Issue 9086010: closure calls (just the invocation part). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 12 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: frog/leg/typechecker.dart
diff --git a/frog/leg/typechecker.dart b/frog/leg/typechecker.dart
index eb66109af2e1a7039636b0a498533df5155f2755..d8eb06d1cb83c77d70600e9c4ff9a8786f279c6e 100644
--- a/frog/leg/typechecker.dart
+++ b/frog/leg/typechecker.dart
@@ -307,7 +307,15 @@ class TypeCheckerVisitor implements Visitor<Type> {
}
Type visitSend(Send node) {
- Identifier selector = node.selector;
+ if (Elements.isClosureSend(node, elements)) {
+ print(new Unparser(true).unparse(node));
+ print(node.receiver);
+ print(node.selector);
+ // TODO(karlklose): Finish implementation.
+ return types.dynamicType;
+ }
+
+ Identifier selector = node.selector.asIdentifier();
String name = selector.source.stringValue;
if (node.isOperator) {

Powered by Google App Engine
This is Rietveld 408576698