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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart

Issue 698563005: Support parsing of enums in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add unparser test. Created 6 years, 1 month 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 visitDoWhile(DoWhile node) { 167 visitDoWhile(DoWhile node) {
168 visitNodeWithChildren(node, "DoWhile"); 168 visitNodeWithChildren(node, "DoWhile");
169 } 169 }
170 170
171 visitEmptyStatement(EmptyStatement node) { 171 visitEmptyStatement(EmptyStatement node) {
172 visitNodeWithChildren(node, "EmptyStatement"); 172 visitNodeWithChildren(node, "EmptyStatement");
173 } 173 }
174 174
175 visitEnum(Enum node) {
176 visitNodeWithChildren(node, "Enum");
177 }
178
175 visitExpressionStatement(ExpressionStatement node) { 179 visitExpressionStatement(ExpressionStatement node) {
176 visitNodeWithChildren(node, "ExpressionStatement"); 180 visitNodeWithChildren(node, "ExpressionStatement");
177 } 181 }
178 182
179 visitFor(For node) { 183 visitFor(For node) {
180 visitNodeWithChildren(node, "For"); 184 visitNodeWithChildren(node, "For");
181 } 185 }
182 186
183 visitForIn(ForIn node) { 187 visitForIn(ForIn node) {
184 visitNodeWithChildren(node, "ForIn"); 188 visitNodeWithChildren(node, "ForIn");
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 } 510 }
507 511
508 visitGotoStatement(GotoStatement node) { 512 visitGotoStatement(GotoStatement node) {
509 unimplemented('visitNode', node: node); 513 unimplemented('visitNode', node: node);
510 } 514 }
511 515
512 unimplemented(String message, {Node node}) { 516 unimplemented(String message, {Node node}) {
513 throw message; 517 throw message;
514 } 518 }
515 } 519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698