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

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: Add test file. 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..3efc6631d17644237b3d8e93bab59df8442a5c84 100644
--- a/frog/leg/typechecker.dart
+++ b/frog/leg/typechecker.dart
@@ -307,7 +307,12 @@ class TypeCheckerVisitor implements Visitor<Type> {
}
Type visitSend(Send node) {
- Identifier selector = node.selector;
+ Identifier selector = node.selector.asIdentifier();
+ if (selector === null) {
kasperl 2012/01/05 07:01:52 Use node.selector.isClosureCall or isClosureInvoca
floitsch 2012/01/05 12:18:38 Done.
+ // Closure invocation.
+ // TODO(karlklose): Finish implementation;
kasperl 2012/01/05 07:01:52 ; -> .
floitsch 2012/01/05 12:18:38 Done.
+ return types.dynamicType;
+ }
String name = selector.source.stringValue;
if (node.isOperator) {

Powered by Google App Engine
This is Rietveld 408576698