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

Side by Side Diff: pkg/compiler/lib/src/kernel/fasta_support.dart

Issue 2890523002: merge fasta.Token into analyzer.Token (Closed)
Patch Set: Created 3 years, 7 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Additions to Fasta for generating .dill (Kernel IR) files with dart2js patch 5 /// Additions to Fasta for generating .dill (Kernel IR) files with dart2js patch
6 /// files and native hooks. 6 /// files and native hooks.
7 library compiler.src.kernel.fasta_support; 7 library compiler.src.kernel.fasta_support;
8 8
9 // TODO(sigmund): get rid of this file. Fasta should be agnostic of the 9 // TODO(sigmund): get rid of this file. Fasta should be agnostic of the
10 // target platform, at which point this should not be necessary. In particular, 10 // target platform, at which point this should not be necessary. In particular,
(...skipping 10 matching lines...) Expand all
21 import 'package:front_end/physical_file_system.dart'; 21 import 'package:front_end/physical_file_system.dart';
22 import 'package:kernel/ast.dart' show Source; 22 import 'package:kernel/ast.dart' show Source;
23 23
24 import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext; 24 import 'package:front_end/src/fasta/compiler_context.dart' show CompilerContext;
25 import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget; 25 import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget;
26 import 'package:front_end/src/fasta/fasta.dart' show CompileTask; 26 import 'package:front_end/src/fasta/fasta.dart' show CompileTask;
27 import 'package:front_end/src/fasta/kernel/kernel_target.dart' 27 import 'package:front_end/src/fasta/kernel/kernel_target.dart'
28 show KernelTarget; 28 show KernelTarget;
29 import 'package:front_end/src/fasta/loader.dart' show Loader; 29 import 'package:front_end/src/fasta/loader.dart' show Loader;
30 import 'package:front_end/src/fasta/parser/parser.dart' show optional; 30 import 'package:front_end/src/fasta/parser/parser.dart' show optional;
31 import 'package:front_end/src/fasta/scanner/token.dart' show Token; 31 import 'package:front_end/src/scanner/token.dart' show Token;
32 import 'package:front_end/src/fasta/ticker.dart' show Ticker; 32 import 'package:front_end/src/fasta/ticker.dart' show Ticker;
33 import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri; 33 import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri;
34 34
35 /// Generates a platform.dill file containing the compiled Kernel IR of the 35 /// Generates a platform.dill file containing the compiled Kernel IR of the
36 /// dart2js SDK. 36 /// dart2js SDK.
37 Future compilePlatform(Uri patchedSdk, Uri fullOutput, 37 Future compilePlatform(Uri patchedSdk, Uri fullOutput,
38 {Uri outlineOutput, Uri packages}) async { 38 {Uri outlineOutput, Uri packages}) async {
39 Uri deps = Uri.base.resolveUri(new Uri.file("${fullOutput.toFilePath()}.d")); 39 Uri deps = Uri.base.resolveUri(new Uri.file("${fullOutput.toFilePath()}.d"));
40 TranslateUri uriTranslator = await TranslateUri.parse( 40 TranslateUri uriTranslator = await TranslateUri.parse(
41 PhysicalFileSystem.instance, patchedSdk, packages); 41 PhysicalFileSystem.instance, patchedSdk, packages);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'dart:_native_typed_data', 143 'dart:_native_typed_data',
144 'dart:_internal', 144 'dart:_internal',
145 'dart:_js_helper', 145 'dart:_js_helper',
146 'dart:_interceptors', 146 'dart:_interceptors',
147 'dart:_foreign_helper', 147 'dart:_foreign_helper',
148 'dart:_js_mirrors', 148 'dart:_js_mirrors',
149 'dart:_js_names', 149 'dart:_js_names',
150 'dart:_js_embedded_names', 150 'dart:_js_embedded_names',
151 'dart:_isolate_helper', 151 'dart:_isolate_helper',
152 ]; 152 ];
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/mini_ast.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698