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

Side by Side Diff: pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart

Issue 1311783012: Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller l… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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) 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 '../tokens/token.dart';
15 import '../tokens/token_constants.dart';
16 import '../tokens/precedence.dart';
17 import '../tokens/precedence_constants.dart';
15 import '../tree/tree.dart' as tree; 18 import '../tree/tree.dart' as tree;
16 import '../util/util.dart'; 19 import '../util/util.dart';
17 import 'backend_ast_nodes.dart'; 20 import 'backend_ast_nodes.dart';
18 import 'backend_ast_emitter.dart' show TypeGenerator; 21 import 'backend_ast_emitter.dart' show TypeGenerator;
19 22
20 /// Translates the backend AST to Dart frontend AST. 23 /// Translates the backend AST to Dart frontend AST.
21 tree.Node emit(TreeElementMapping treeElements, 24 tree.Node emit(TreeElementMapping treeElements,
22 RootNode root) { 25 RootNode root) {
23 return new TreePrinter(treeElements).makeDefinition(root); 26 return new TreePrinter(treeElements).makeDefinition(root);
24 } 27 }
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 printStringChunk(chunk.previous), 1337 printStringChunk(chunk.previous),
1335 node); 1338 node);
1336 } else { 1339 } else {
1337 return node; 1340 return node;
1338 } 1341 }
1339 } 1342 }
1340 return printStringChunk(output.chunk); 1343 return printStringChunk(output.chunk);
1341 } 1344 }
1342 1345
1343 } 1346 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698