OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |