| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 360 } |
| 361 | 361 |
| 362 visitSwitchCase(SwitchCase node) { | 362 visitSwitchCase(SwitchCase node) { |
| 363 visitNodeWithChildren(node, "SwitchCase"); | 363 visitNodeWithChildren(node, "SwitchCase"); |
| 364 } | 364 } |
| 365 | 365 |
| 366 visitSwitchStatement(SwitchStatement node) { | 366 visitSwitchStatement(SwitchStatement node) { |
| 367 visitNodeWithChildren(node, "SwitchStatement"); | 367 visitNodeWithChildren(node, "SwitchStatement"); |
| 368 } | 368 } |
| 369 | 369 |
| 370 visitLiteralSymbol(LiteralSymbol node) { |
| 371 openNode(node, "LiteralSymbol"); |
| 372 visitChildNode(node.identifiers, "identifiers"); |
| 373 closeNode(); |
| 374 } |
| 375 |
| 370 visitThrow(Throw node) { | 376 visitThrow(Throw node) { |
| 371 visitNodeWithChildren(node, "Throw"); | 377 visitNodeWithChildren(node, "Throw"); |
| 372 } | 378 } |
| 373 | 379 |
| 374 visitTryStatement(TryStatement node) { | 380 visitTryStatement(TryStatement node) { |
| 375 visitNodeWithChildren(node, "TryStatement"); | 381 visitNodeWithChildren(node, "TryStatement"); |
| 376 } | 382 } |
| 377 | 383 |
| 378 visitTypeAnnotation(TypeAnnotation node) { | 384 visitTypeAnnotation(TypeAnnotation node) { |
| 379 openNode(node, "TypeAnnotation"); | 385 openNode(node, "TypeAnnotation"); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 } | 476 } |
| 471 | 477 |
| 472 visitStringNode(StringNode node) { | 478 visitStringNode(StringNode node) { |
| 473 unimplemented('visitNode', node: node); | 479 unimplemented('visitNode', node: node); |
| 474 } | 480 } |
| 475 | 481 |
| 476 unimplemented(String message, {Node node}) { | 482 unimplemented(String message, {Node node}) { |
| 477 throw message; | 483 throw message; |
| 478 } | 484 } |
| 479 } | 485 } |
| OLD | NEW |