| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart_tree_printer; | 5 library dart_tree_printer; |
| 6 | 6 |
| 7 import '../constants/values.dart' as values; | 7 import '../constants/values.dart' as values; |
| 8 import '../dart_types.dart' as types; | 8 import '../dart_types.dart' as types; |
| 9 import '../diagnostics/invariant.dart' show | 9 import '../diagnostics/invariant.dart' show |
| 10 invariant; | 10 invariant; |
| 11 import '../elements/elements.dart' as elements; | 11 import '../elements/elements.dart' as elements; |
| 12 import '../resolution/tree_elements.dart' show | 12 import '../resolution/tree_elements.dart' show |
| 13 TreeElementMapping; | 13 TreeElementMapping; |
| 14 import '../tokens/token.dart'; |
| 14 import '../tree/tree.dart' as tree; | 15 import '../tree/tree.dart' as tree; |
| 15 import '../scanner/token.dart'; | |
| 16 import '../util/util.dart'; | 16 import '../util/util.dart'; |
| 17 import 'backend_ast_nodes.dart'; | 17 import 'backend_ast_nodes.dart'; |
| 18 import 'backend_ast_emitter.dart' show TypeGenerator; | 18 import 'backend_ast_emitter.dart' show TypeGenerator; |
| 19 | 19 |
| 20 /// Translates the backend AST to Dart frontend AST. | 20 /// Translates the backend AST to Dart frontend AST. |
| 21 tree.Node emit(TreeElementMapping treeElements, | 21 tree.Node emit(TreeElementMapping treeElements, |
| 22 RootNode root) { | 22 RootNode root) { |
| 23 return new TreePrinter(treeElements).makeDefinition(root); | 23 return new TreePrinter(treeElements).makeDefinition(root); |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 printStringChunk(chunk.previous), | 1334 printStringChunk(chunk.previous), |
| 1335 node); | 1335 node); |
| 1336 } else { | 1336 } else { |
| 1337 return node; | 1337 return node; |
| 1338 } | 1338 } |
| 1339 } | 1339 } |
| 1340 return printStringChunk(output.chunk); | 1340 return printStringChunk(output.chunk); |
| 1341 } | 1341 } |
| 1342 | 1342 |
| 1343 } | 1343 } |
| OLD | NEW |