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

Unified Diff: pkg/compiler/lib/src/tree/unparser.dart

Issue 1873823002: Update elements, nodes and visitors for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix LocalVariableElementZ.constant Created 4 years, 8 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: pkg/compiler/lib/src/tree/unparser.dart
diff --git a/pkg/compiler/lib/src/tree/unparser.dart b/pkg/compiler/lib/src/tree/unparser.dart
index b9e67841c37fed686ad741b209c8aa98dcdd69bd..36643594be1842b6a5e503e4639aa4c65b450402 100644
--- a/pkg/compiler/lib/src/tree/unparser.dart
+++ b/pkg/compiler/lib/src/tree/unparser.dart
@@ -636,9 +636,7 @@ class Unparser extends Indentation implements Visitor {
visitGotoStatement(node);
}
- visitAsyncForIn(AsyncForIn node) {
- write(node.awaitToken.value);
- write(' ');
+ visitForIn(ForIn node) {
write(node.forToken.value);
space();
write('(');
@@ -651,18 +649,14 @@ class Unparser extends Indentation implements Visitor {
visit(node.body);
}
+ visitAsyncForIn(AsyncForIn node) {
+ write(node.awaitToken.value);
+ write(' ');
+ visitForIn(node);
+ }
visitSyncForIn(SyncForIn node) {
- write(node.forToken.value);
- space();
- write('(');
- visit(node.declaredIdentifier);
- write(' ');
- addToken(node.inToken);
- visit(node.expression);
- write(')');
- space();
- visit(node.body);
+ visitForIn(node);
}
visitLabel(Label node) {

Powered by Google App Engine
This is Rietveld 408576698