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

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

Issue 2722223006: Move all main methods to tool/. (Closed)
Patch Set: Update tools/patch_sdk.dart. Created 3 years, 9 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/analyzer/compile_platform_dartk.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/analyzer/compile_platform_dartk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698