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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import '../tokens/token.dart' show BeginGroupToken, Token; 5 import '../tokens/token.dart' show BeginGroupToken, Token;
6 import '../util/util.dart'; 6 import '../util/util.dart';
7 import 'nodes.dart'; 7 import 'nodes.dart';
8 8
9 /** 9 /**
10 * Pretty-prints Node tree in XML-like format. 10 * Pretty-prints Node tree in XML-like format.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 visitExpressionStatement(ExpressionStatement node) { 117 visitExpressionStatement(ExpressionStatement node) {
118 visitNodeWithChildren(node, "ExpressionStatement"); 118 visitNodeWithChildren(node, "ExpressionStatement");
119 } 119 }
120 120
121 visitFor(For node) { 121 visitFor(For node) {
122 visitNodeWithChildren(node, "For"); 122 visitNodeWithChildren(node, "For");
123 } 123 }
124 124
125 visitForIn(ForIn node) {
126 node.visitChildren(this);
127 closeNode();
128 }
129
125 visitAsyncForIn(AsyncForIn node) { 130 visitAsyncForIn(AsyncForIn node) {
126 openNode(node, "AsyncForIn"); 131 openNode(node, "AsyncForIn");
132 visitForIn(node);
127 } 133 }
128 134
129 visitSyncForIn(SyncForIn node) { 135 visitSyncForIn(SyncForIn node) {
130 openNode(node, "ForIn"); 136 openNode(node, "SyncForIn");
131 node.visitChildren(this); 137 visitForIn(node);
132 closeNode();
133 } 138 }
134 139
135 visitFunctionDeclaration(FunctionDeclaration node) { 140 visitFunctionDeclaration(FunctionDeclaration node) {
136 visitNodeWithChildren(node, "FunctionDeclaration"); 141 visitNodeWithChildren(node, "FunctionDeclaration");
137 } 142 }
138 143
139 visitFunctionExpression(FunctionExpression node) { 144 visitFunctionExpression(FunctionExpression node) {
140 openNode(node, "FunctionExpression", 145 openNode(node, "FunctionExpression",
141 {"getOrSet": tokenToStringOrNull(node.getOrSet)}); 146 {"getOrSet": tokenToStringOrNull(node.getOrSet)});
142 visitChildNode(node.modifiers, "modifiers"); 147 visitChildNode(node.modifiers, "modifiers");
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 469 }
465 470
466 visitGotoStatement(GotoStatement node) { 471 visitGotoStatement(GotoStatement node) {
467 unimplemented('visitNode', node: node); 472 unimplemented('visitNode', node: node);
468 } 473 }
469 474
470 unimplemented(String message, {Node node}) { 475 unimplemented(String message, {Node node}) {
471 throw message; 476 throw message;
472 } 477 }
473 } 478 }
OLDNEW
« 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