| 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 import '../tokens/token.dart' show BeginGroupToken, Token; | 5 import '../tokens/token.dart' show Token; |
| 6 import '../util/util.dart'; | 6 import '../util/util.dart'; |
| 7 import 'nodes.dart'; | 7 import 'nodes.dart'; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Pretty-prints Node tree in XML-like format. | 10 * Pretty-prints Node tree in XML-like format. |
| 11 * | 11 * |
| 12 * TODO(smok): Add main() to run from command-line to print out tree for given | 12 * TODO(smok): Add main() to run from command-line to print out tree for given |
| 13 * .dart file. | 13 * .dart file. |
| 14 */ | 14 */ |
| 15 class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { | 15 class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 469 } |
| 470 | 470 |
| 471 visitGotoStatement(GotoStatement node) { | 471 visitGotoStatement(GotoStatement node) { |
| 472 unimplemented('visitNode', node: node); | 472 unimplemented('visitNode', node: node); |
| 473 } | 473 } |
| 474 | 474 |
| 475 unimplemented(String message, {Node node}) { | 475 unimplemented(String message, {Node node}) { |
| 476 throw message; | 476 throw message; |
| 477 } | 477 } |
| 478 } | 478 } |
| OLD | NEW |