| 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; |
| 6 |
| 5 /** | 7 /** |
| 6 * Pretty-prints Node tree in XML-like format. | 8 * Pretty-prints Node tree in XML-like format. |
| 7 * | 9 * |
| 8 * 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 |
| 9 * .dart file. | 11 * .dart file. |
| 10 */ | 12 */ |
| 11 class PrettyPrinter implements Visitor { | 13 class PrettyPrinter implements Visitor { |
| 12 | 14 |
| 13 /** String used to represent one level of indent. */ | 15 /** String used to represent one level of indent. */ |
| 14 static const String INDENT = " "; | 16 static const String INDENT = " "; |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 } | 463 } |
| 462 | 464 |
| 463 visitStringNode(StringNode node) { | 465 visitStringNode(StringNode node) { |
| 464 unimplemented('visitNode', node: node); | 466 unimplemented('visitNode', node: node); |
| 465 } | 467 } |
| 466 | 468 |
| 467 unimplemented(String message, {Node node}) { | 469 unimplemented(String message, {Node node}) { |
| 468 throw message; | 470 throw message; |
| 469 } | 471 } |
| 470 } | 472 } |
| OLD | NEW |