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

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: Update test status 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
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | frog/tests/leg/src/ClosureCodegenTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/typechecker.dart
diff --git a/frog/leg/typechecker.dart b/frog/leg/typechecker.dart
index b37b953ff062e003154c271de31f2e9aada752cf..fe476aa3354f9de079f362062388abc164cf49d2 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;
+ if (Elements.isClosureSend(node, elements)) {
+ // TODO(karlklose): Finish implementation.
+ return types.dynamicType;
+ }
+
+ Identifier selector = node.selector.asIdentifier();
String name = selector.source.stringValue;
if (node.isOperator) {
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | frog/tests/leg/src/ClosureCodegenTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698