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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 10543051: Fix unparse for empty initializer or conditionStatement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebasing Created 8 years, 6 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/tests/leg/unparser_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index a00b514b20057419f211e8e334a3591eebdfabac..67df031e46cd78c9fe67c3c20cac0b7aaf25dcf6 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -70,6 +70,7 @@ class Unparser implements Visitor {
add(node.forToken.value);
sb.add('(');
visit(node.initializer);
+ if (node.initializer is !Statement) sb.add(';');
visit(node.conditionStatement);
visit(node.update);
sb.add(')');
« no previous file with comments | « frog/tests/leg/unparser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698