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

Side by Side Diff: pkg/front_end/tool/_fasta/analyzer_compile.dart

Issue 2981693002: Start copying resolution/inference data from front end to analyzer ASTs. (Closed)
Patch Set: Address code review comments. Created 3 years, 5 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_compile; 5 library fasta.analyzer_compile;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'dart:io' show exitCode; 9 import 'dart:io' show exitCode;
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 } 47 }
48 48
49 class AnalyzerCompileTask extends CompileTask { 49 class AnalyzerCompileTask extends CompileTask {
50 AnalyzerCompileTask(CompilerContext c, Ticker ticker) : super(c, ticker); 50 AnalyzerCompileTask(CompilerContext c, Ticker ticker) : super(c, ticker);
51 51
52 @override 52 @override
53 AnalyzerTarget createKernelTarget( 53 AnalyzerTarget createKernelTarget(
54 DillTarget dillTarget, UriTranslator uriTranslator, bool strongMode) { 54 DillTarget dillTarget, UriTranslator uriTranslator, bool strongMode) {
55 return new AnalyzerTarget( 55 return new AnalyzerTarget(
56 dillTarget, uriTranslator, strongMode, c.uriToSource); 56 dillTarget, uriTranslator, strongMode, true, false, c.uriToSource);
57 } 57 }
58 } 58 }
59 59
60 main(List<String> arguments) async { 60 main(List<String> arguments) async {
61 for (int i = 0; i < iterations; i++) { 61 for (int i = 0; i < iterations; i++) {
62 if (i > 0) { 62 if (i > 0) {
63 print("\n"); 63 print("\n");
64 } 64 }
65 await compile(arguments); 65 await compile(arguments);
66 } 66 }
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698