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

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

Issue 10854093: Revert "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
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | tests/compiler/dart2js/closure_codegen_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index 290b68a73e5f58d783a688d94943537d26df3484..9344d233a888ae4952a10597793b9728a97218d7 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -421,9 +421,7 @@ class TypeCheckerVisitor implements Visitor<Type> {
}
Type visitSend(Send node) {
- Element element = elements[node];
-
- if (Elements.isClosureSend(node, element)) {
+ if (Elements.isClosureSend(node, elements)) {
// TODO(karlklose): Finish implementation.
return types.dynamicType;
}
@@ -466,6 +464,7 @@ class TypeCheckerVisitor implements Visitor<Type> {
// TODO(karlklose): we cannot handle fields.
return unhandledExpression();
}
+ Element element = elements[node];
if (element === null) return types.dynamicType;
return computeType(element);
@@ -503,6 +502,7 @@ class TypeCheckerVisitor implements Visitor<Type> {
if (memberType.element === compiler.dynamicClass) return null;
return memberType;
} else {
+ Element element = elements[node];
if (element === null) {
fail(node, 'unresolved ${node.selector}');
} else if (element.kind === ElementKind.FUNCTION) {
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | tests/compiler/dart2js/closure_codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698