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

Unified Diff: pkg/front_end/lib/src/fasta/bin/run.dart

Issue 2722223006: Move all main methods to tool/. (Closed)
Patch Set: Update tools/patch_sdk.dart. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/bin/outline.dart ('k') | pkg/front_end/lib/src/fasta/compile_platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/bin/run.dart
diff --git a/pkg/front_end/lib/src/fasta/bin/run.dart b/pkg/front_end/lib/src/fasta/bin/run.dart
deleted file mode 100644
index e9da76922eebb6a51552ec7cbd7b41dccd263478..0000000000000000000000000000000000000000
--- a/pkg/front_end/lib/src/fasta/bin/run.dart
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'dart:io' show exit, exitCode;
-
-import '../compiler_command_line.dart' show CompilerCommandLine;
-
-import '../compiler_context.dart' show CompilerContext;
-
-import '../outline.dart' show CompileTask;
-
-import '../errors.dart' show InputError;
-
-import '../run.dart' show run;
-
-import '../ticker.dart' show Ticker;
-
-const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
-
-main(List<String> arguments) async {
- Uri uri;
- for (int i = 0; i < iterations; i++) {
- await CompilerCommandLine.withGlobalOptions("run", arguments,
- (CompilerContext c) async {
- if (i > 0) {
- print("\n");
- }
- try {
- CompileTask task =
- new CompileTask(c, new Ticker(isVerbose: c.options.verbose));
- uri = await task.compile();
- } on InputError catch (e) {
- print(e.format());
- exit(1);
- }
- if (exitCode != 0) exit(exitCode);
- if (i + 1 == iterations) {
- exit(await run(uri, c));
- }
- });
- }
-}
« no previous file with comments | « pkg/front_end/lib/src/fasta/bin/outline.dart ('k') | pkg/front_end/lib/src/fasta/compile_platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698