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

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

Issue 11783089: Fix VariableDefinitions.endToken for formal parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle for-in. Created 7 years, 10 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: sdk/lib/_internal/compiler/implementation/tree/unparser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
index eee95d4e9a2b79e05a5937d39f173294a7452c7a..9c20f2d347124722a2063ae4e07c3ca4f462b61e 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -123,7 +123,7 @@ class Unparser implements Visitor {
add(node.forToken.value);
sb.add('(');
visit(node.initializer);
- if (node.initializer is !Statement) sb.add(';');
+ sb.add(';');
visit(node.conditionStatement);
visit(node.update);
sb.add(')');
@@ -366,9 +366,6 @@ class Unparser implements Visitor {
sb.add(' ');
}
visit(node.definitions);
- if (node.endToken.value == const SourceString(';')) {
- add(node.endToken.value);
- }
}
visitDoWhile(DoWhile node) {

Powered by Google App Engine
This is Rietveld 408576698