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

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: 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/prettyprint.dart
diff --git a/pkg/compiler/lib/src/tree/prettyprint.dart b/pkg/compiler/lib/src/tree/prettyprint.dart
index 1b17b7ab75dded52c39e54fa190996f2e88855d5..3ad26bd4f1c6b0c151dd5e20ddad89ca4e666e9b 100644
--- a/pkg/compiler/lib/src/tree/prettyprint.dart
+++ b/pkg/compiler/lib/src/tree/prettyprint.dart
@@ -124,14 +124,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) {

Powered by Google App Engine
This is Rietveld 408576698