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 class AnalyzerCompileTask extends CompileTask { | 47 class AnalyzerCompileTask extends CompileTask { |
48 AnalyzerCompileTask(CompilerContext c, Ticker ticker) : super(c, ticker); | 48 AnalyzerCompileTask(CompilerContext c, Ticker ticker) : super(c, ticker); |
49 | 49 |
50 AnalyzerTarget createKernelTarget( | 50 AnalyzerTarget createKernelTarget( |
51 DillTarget dillTarget, TranslateUri uriTranslator) { | 51 DillTarget dillTarget, TranslateUri uriTranslator) { |
52 return new AnalyzerTarget(dillTarget, uriTranslator, c.uriToSource); | 52 return new AnalyzerTarget(dillTarget, uriTranslator, c.uriToSource); |
53 } | 53 } |
54 } | 54 } |
55 | 55 |
56 main(List<String> arguments) async { | 56 mainEntryPoint(List<String> arguments) async { |
57 for (int i = 0; i < iterations; i++) { | 57 for (int i = 0; i < iterations; i++) { |
58 if (i > 0) { | 58 if (i > 0) { |
59 print("\n"); | 59 print("\n"); |
60 } | 60 } |
61 await compile(arguments); | 61 await compile(arguments); |
62 } | 62 } |
63 } | 63 } |
OLD | NEW |