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

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

Issue 282453004: Dart2js enum parsing. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allow trailing comma. Created 6 years, 7 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 visitDoWhile(DoWhile node) { 168 visitDoWhile(DoWhile node) {
169 visitNodeWithChildren(node, "DoWhile"); 169 visitNodeWithChildren(node, "DoWhile");
170 } 170 }
171 171
172 visitEmptyStatement(EmptyStatement node) { 172 visitEmptyStatement(EmptyStatement node) {
173 visitNodeWithChildren(node, "EmptyStatement"); 173 visitNodeWithChildren(node, "EmptyStatement");
174 } 174 }
175 175
176 visitEnum(Enum node) {
177 visitNodeWithChildren(node, "Enum");
178 }
179
176 visitExpressionStatement(ExpressionStatement node) { 180 visitExpressionStatement(ExpressionStatement node) {
177 visitNodeWithChildren(node, "ExpressionStatement"); 181 visitNodeWithChildren(node, "ExpressionStatement");
178 } 182 }
179 183
180 visitFor(For node) { 184 visitFor(For node) {
181 visitNodeWithChildren(node, "For"); 185 visitNodeWithChildren(node, "For");
182 } 186 }
183 187
184 visitForIn(ForIn node) { 188 visitForIn(ForIn node) {
185 visitNodeWithChildren(node, "ForIn"); 189 visitNodeWithChildren(node, "ForIn");
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 } 505 }
502 506
503 visitGotoStatement(GotoStatement node) { 507 visitGotoStatement(GotoStatement node) {
504 unimplemented('visitNode', node: node); 508 unimplemented('visitNode', node: node);
505 } 509 }
506 510
507 unimplemented(String message, {Node node}) { 511 unimplemented(String message, {Node node}) {
508 throw message; 512 throw message;
509 } 513 }
510 } 514 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698