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

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: Rebased 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
« no previous file with comments | « pkg/compiler/lib/src/tree/prettyprint.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65689160f7ed716e3d160b8c230a014fa144c626..bb1d38ee410d2374a27ed52c0b7073f427f6b0ee 100644
--- a/pkg/compiler/lib/src/tree/unparser.dart
+++ b/pkg/compiler/lib/src/tree/unparser.dart
@@ -639,9 +639,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('(');
@@ -654,17 +652,14 @@ class Unparser extends Indentation implements Visitor {
visit(node.body);
}
- visitSyncForIn(SyncForIn node) {
- write(node.forToken.value);
- space();
- write('(');
- visit(node.declaredIdentifier);
+ visitAsyncForIn(AsyncForIn node) {
+ write(node.awaitToken.value);
write(' ');
- addToken(node.inToken);
- visit(node.expression);
- write(')');
- space();
- visit(node.body);
+ visitForIn(node);
+ }
+
+ visitSyncForIn(SyncForIn node) {
+ visitForIn(node);
}
visitLabel(Label node) {
« no previous file with comments | « pkg/compiler/lib/src/tree/prettyprint.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698