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 Token; | 5 import 'package:dart_scanner/dart_scanner.dart' show Token; |
6 import '../tokens/token_constants.dart' as Tokens | 6 import 'package:dart_scanner/src/token_constants.dart' as Tokens |
7 show IDENTIFIER_TOKEN, KEYWORD_TOKEN, PLUS_TOKEN; | 7 show IDENTIFIER_TOKEN, KEYWORD_TOKEN, PLUS_TOKEN; |
8 import '../util/util.dart'; | 8 import '../util/util.dart'; |
9 import 'nodes.dart'; | 9 import 'nodes.dart'; |
10 | 10 |
11 String unparse(Node node, {minify: true}) { | 11 String unparse(Node node, {minify: true}) { |
12 Unparser unparser = new Unparser(minify: minify); | 12 Unparser unparser = new Unparser(minify: minify); |
13 unparser.unparse(node); | 13 unparser.unparse(node); |
14 return unparser.result; | 14 return unparser.result; |
15 } | 15 } |
16 | 16 |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 } | 898 } |
899 | 899 |
900 visitStatement(Statement node) { | 900 visitStatement(Statement node) { |
901 throw 'internal error'; // Should not be called. | 901 throw 'internal error'; // Should not be called. |
902 } | 902 } |
903 | 903 |
904 visitStringNode(StringNode node) { | 904 visitStringNode(StringNode node) { |
905 throw 'internal error'; // Should not be called. | 905 throw 'internal error'; // Should not be called. |
906 } | 906 } |
907 } | 907 } |
OLD | NEW |