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

Side by Side Diff: pkg/compiler/lib/src/tree/prettyprint.dart

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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 import '../tokens/token.dart' show BeginGroupToken, Token;
6 import '../util/util.dart';
7 import 'nodes.dart';
6 8
7 /** 9 /**
8 * Pretty-prints Node tree in XML-like format. 10 * Pretty-prints Node tree in XML-like format.
9 * 11 *
10 * 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
11 * .dart file. 13 * .dart file.
12 */ 14 */
13 class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { 15 class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor {
14 @override 16 @override
15 void addDefaultParameters(Node node, Map params) { 17 void addDefaultParameters(Node node, Map params) {
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 472 }
471 473
472 visitGotoStatement(GotoStatement node) { 474 visitGotoStatement(GotoStatement node) {
473 unimplemented('visitNode', node: node); 475 unimplemented('visitNode', node: node);
474 } 476 }
475 477
476 unimplemented(String message, {Node node}) { 478 unimplemented(String message, {Node node}) {
477 throw message; 479 throw message;
478 } 480 }
479 } 481 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698