| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |