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

Side by Side Diff: pkg/compiler/lib/src/tree/prettyprint.dart

Issue 1077093002: Revert "Model 'await for' as an explicit node in tree and fix its handling." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
« 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 part of tree; 5 part of tree;
6 6
7 /** 7 /**
8 * Pretty-prints Node tree in XML-like format. 8 * Pretty-prints Node tree in XML-like format.
9 * 9 *
10 * TODO(smok): Add main() to run from command-line to print out tree for given 10 * TODO(smok): Add main() to run from command-line to print out tree for given
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 visitExpressionStatement(ExpressionStatement node) { 185 visitExpressionStatement(ExpressionStatement node) {
186 visitNodeWithChildren(node, "ExpressionStatement"); 186 visitNodeWithChildren(node, "ExpressionStatement");
187 } 187 }
188 188
189 visitFor(For node) { 189 visitFor(For node) {
190 visitNodeWithChildren(node, "For"); 190 visitNodeWithChildren(node, "For");
191 } 191 }
192 192
193 visitAsyncForIn(AsyncForIn node) { 193 visitForIn(ForIn node) {
194 openNode(node, "AsyncForIn"); 194 openNode(node, "ForIn", {'await': node.awaitToken});
195 }
196
197 visitSyncForIn(SyncForIn node) {
198 openNode(node, "ForIn");
199 node.visitChildren(this); 195 node.visitChildren(this);
200 closeNode(); 196 closeNode();
201 } 197 }
202 198
203 visitFunctionDeclaration(FunctionDeclaration node) { 199 visitFunctionDeclaration(FunctionDeclaration node) {
204 visitNodeWithChildren(node, "FunctionDeclaration"); 200 visitNodeWithChildren(node, "FunctionDeclaration");
205 } 201 }
206 202
207 visitFunctionExpression(FunctionExpression node) { 203 visitFunctionExpression(FunctionExpression node) {
208 openNode(node, "FunctionExpression", { 204 openNode(node, "FunctionExpression", {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 } 528 }
533 529
534 visitGotoStatement(GotoStatement node) { 530 visitGotoStatement(GotoStatement node) {
535 unimplemented('visitNode', node: node); 531 unimplemented('visitNode', node: node);
536 } 532 }
537 533
538 unimplemented(String message, {Node node}) { 534 unimplemented(String message, {Node node}) {
539 throw message; 535 throw message;
540 } 536 }
541 } 537 }
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