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

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

Issue 1315483006: Split scannerlib.dart into several libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update try tests 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
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 '../tree/tree.dart' as tree; 14 import '../tree/tree.dart' as tree;
15 import '../scanner/scannerlib.dart'; 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698