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

Side by Side Diff: pkg/analyzer/lib/src/fasta/analyzer_target.dart

Issue 2919003003: Reapply "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: Follow dartanalyzer suggestions Created 3 years, 6 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 library fasta.analyzer_target; 5 library fasta.analyzer_target;
6 6
7 import 'package:front_end/physical_file_system.dart'; 7 import 'package:front_end/physical_file_system.dart';
8 import 'package:kernel/ast.dart' show Library, Source; 8 import 'package:kernel/ast.dart' show Library, Source;
9 9
10 import 'package:front_end/src/fasta/kernel/kernel_target.dart' 10 import 'package:front_end/src/fasta/kernel/kernel_target.dart'
11 show KernelTarget; 11 show KernelTarget;
12 12
13 import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri; 13 import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri;
14 14
15 import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget; 15 import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget;
16 16
17 import 'analyzer_loader.dart' show AnalyzerLoader; 17 import 'analyzer_loader.dart' show AnalyzerLoader;
18 18
19 class AnalyzerTarget extends KernelTarget { 19 class AnalyzerTarget extends KernelTarget {
20 AnalyzerTarget( 20 AnalyzerTarget(
21 DillTarget dillTarget, TranslateUri uriTranslator, bool strongMode, 21 DillTarget dillTarget, TranslateUri uriTranslator, bool strongMode,
22 [Map<String, Source> uriToSource]) 22 [Map<String, Source> uriToSource])
23 : super(PhysicalFileSystem.instance, dillTarget, uriTranslator, 23 : super(PhysicalFileSystem.instance, dillTarget, uriTranslator,
24 strongMode, uriToSource); 24 uriToSource);
25 25
26 @override 26 @override
27 AnalyzerLoader<Library> createLoader() => new AnalyzerLoader<Library>(this); 27 AnalyzerLoader<Library> createLoader() => new AnalyzerLoader<Library>(this);
28 } 28 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/fasta_support.dart » ('j') | pkg/front_end/lib/src/fasta/dill/dill_target.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698