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

Unified Diff: pkg/compiler/lib/src/tree/prettyprint.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/nodes.dart ('k') | pkg/compiler/lib/src/tree/unparser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree/prettyprint.dart
diff --git a/pkg/compiler/lib/src/tree/prettyprint.dart b/pkg/compiler/lib/src/tree/prettyprint.dart
index 0fc2fa574323d806a84c7365db1278097699e69b..dceffaf6f1112b4b5270757417efbd003eb58437 100644
--- a/pkg/compiler/lib/src/tree/prettyprint.dart
+++ b/pkg/compiler/lib/src/tree/prettyprint.dart
@@ -122,14 +122,19 @@ class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor {
visitNodeWithChildren(node, "For");
}
+ visitForIn(ForIn node) {
+ node.visitChildren(this);
+ closeNode();
+ }
+
visitAsyncForIn(AsyncForIn node) {
openNode(node, "AsyncForIn");
+ visitForIn(node);
}
visitSyncForIn(SyncForIn node) {
- openNode(node, "ForIn");
- node.visitChildren(this);
- closeNode();
+ openNode(node, "SyncForIn");
+ visitForIn(node);
}
visitFunctionDeclaration(FunctionDeclaration node) {
« no previous file with comments | « pkg/compiler/lib/src/tree/nodes.dart ('k') | pkg/compiler/lib/src/tree/unparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698