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

Unified Diff: frog/leg/typechecker.dart

Issue 9863037: Generate prettier loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 9 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/tree/visitors.dart ('k') | frog/tests/leg/src/LoopTest.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 ef555b2a420e88e1cba9224a75c35fbeffce3301..11ba1ee98ed0a6b5b955afa72898735a494c67ed 100644
--- a/frog/leg/typechecker.dart
+++ b/frog/leg/typechecker.dart
@@ -668,7 +668,7 @@ class TypeCheckerVisitor implements Visitor<Type> {
return StatementType.NOT_RETURNING;
}
- visitForInStatement(ForInStatement node) {
+ visitForIn(ForIn node) {
analyze(node.expression);
StatementType bodyType = analyze(node.body);
return bodyType.join(StatementType.NOT_RETURNING);
« no previous file with comments | « frog/leg/tree/visitors.dart ('k') | frog/tests/leg/src/LoopTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698