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

Side by Side Diff: pkg/compiler/lib/src/tree/unparser.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 '../tokens/token_constants.dart' as Tokens show IDENTIFIER_TOKEN, KEYWORD _TOKEN, PLUS_TOKEN;
7 import '../util/util.dart';
8 import 'nodes.dart';
6 9
7 String unparse(Node node, {minify: true}) { 10 String unparse(Node node, {minify: true}) {
8 Unparser unparser = new Unparser(minify: minify); 11 Unparser unparser = new Unparser(minify: minify);
9 unparser.unparse(node); 12 unparser.unparse(node);
10 return unparser.result; 13 return unparser.result;
11 } 14 }
12 15
13 class Unparser extends Indentation implements Visitor { 16 class Unparser extends Indentation implements Visitor {
14 final StringBuffer sb = new StringBuffer(); 17 final StringBuffer sb = new StringBuffer();
15 18
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 } 898 }
896 899
897 visitStatement(Statement node) { 900 visitStatement(Statement node) {
898 throw 'internal error'; // Should not be called. 901 throw 'internal error'; // Should not be called.
899 } 902 }
900 903
901 visitStringNode(StringNode node) { 904 visitStringNode(StringNode node) {
902 throw 'internal error'; // Should not be called. 905 throw 'internal error'; // Should not be called.
903 } 906 }
904 } 907 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698