| Index: pkg/front_end/lib/src/fasta/outline.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/outline.dart b/pkg/front_end/lib/src/fasta/outline.dart
|
| index 104c0756856818aa15d838486684a26e4ce249f5..128afb78d8b30d180e8e9b0437feb0a3ba26f8d8 100644
|
| --- a/pkg/front_end/lib/src/fasta/outline.dart
|
| +++ b/pkg/front_end/lib/src/fasta/outline.dart
|
| @@ -4,49 +4,37 @@
|
|
|
| library fasta.outline;
|
|
|
| -import 'dart:async' show
|
| - Future;
|
| +import 'dart:async' show Future;
|
|
|
| -import 'dart:io' show
|
| - exitCode;
|
| +import 'dart:io' show exitCode;
|
|
|
| -import 'kernel/verifier.dart' show
|
| - verifyProgram;
|
| +import 'kernel/verifier.dart' show verifyProgram;
|
|
|
| -import 'compiler_command_line.dart' show
|
| - CompilerCommandLine;
|
| +import 'compiler_command_line.dart' show CompilerCommandLine;
|
|
|
| -import 'compiler_context.dart' show
|
| - CompilerContext;
|
| +import 'compiler_context.dart' show CompilerContext;
|
|
|
| -import 'errors.dart' show
|
| - InputError,
|
| - inputError;
|
| +import 'errors.dart' show InputError, inputError;
|
|
|
| -import 'kernel/kernel_target.dart' show
|
| - KernelTarget;
|
| +import 'kernel/kernel_target.dart' show KernelTarget;
|
|
|
| -import 'dill/dill_target.dart' show
|
| - DillTarget;
|
| +import 'dill/dill_target.dart' show DillTarget;
|
|
|
| -import 'ticker.dart' show
|
| - Ticker;
|
| +import 'ticker.dart' show Ticker;
|
|
|
| -import 'translate_uri.dart' show
|
| - TranslateUri;
|
| +import 'translate_uri.dart' show TranslateUri;
|
|
|
| -import 'ast_kind.dart' show
|
| - AstKind;
|
| +import 'ast_kind.dart' show AstKind;
|
|
|
| Future<KernelTarget> outline(List<String> arguments) async {
|
| try {
|
| - return await CompilerCommandLine.withGlobalOptions(
|
| - "outline", arguments, (CompilerContext c) async {
|
| + return await CompilerCommandLine.withGlobalOptions("outline", arguments,
|
| + (CompilerContext c) async {
|
| if (c.options.verbose) {
|
| print("Building outlines for ${arguments.join(' ')}");
|
| }
|
| - return await doOutline(c, new Ticker(isVerbose: c.options.verbose),
|
| - c.options.output);
|
| + return await doOutline(
|
| + c, new Ticker(isVerbose: c.options.verbose), c.options.output);
|
| });
|
| } on InputError catch (e) {
|
| exitCode = 1;
|
| @@ -57,13 +45,13 @@ Future<KernelTarget> outline(List<String> arguments) async {
|
|
|
| Future<Uri> compile(List<String> arguments) async {
|
| try {
|
| - return await CompilerCommandLine.withGlobalOptions(
|
| - "compile", arguments, (CompilerContext c) async {
|
| + return await CompilerCommandLine.withGlobalOptions("compile", arguments,
|
| + (CompilerContext c) async {
|
| if (c.options.verbose) {
|
| print("Compiling directly to Kernel: ${arguments.join(' ')}");
|
| }
|
| - return await doCompile(c, new Ticker(isVerbose: c.options.verbose),
|
| - AstKind.Kernel);
|
| + return await doCompile(
|
| + c, new Ticker(isVerbose: c.options.verbose), AstKind.Kernel);
|
| });
|
| } on InputError catch (e) {
|
| exitCode = 1;
|
| @@ -74,13 +62,13 @@ Future<Uri> compile(List<String> arguments) async {
|
|
|
| Future<Uri> kompile(List<String> arguments) async {
|
| try {
|
| - return await CompilerCommandLine.withGlobalOptions(
|
| - "kompile", arguments, (CompilerContext c) async {
|
| + return await CompilerCommandLine.withGlobalOptions("kompile", arguments,
|
| + (CompilerContext c) async {
|
| if (c.options.verbose) {
|
| print("Compiling via analyzer: ${arguments.join(' ')}");
|
| }
|
| - return await doCompile(c, new Ticker(isVerbose: c.options.verbose),
|
| - AstKind.Analyzer);
|
| + return await doCompile(
|
| + c, new Ticker(isVerbose: c.options.verbose), AstKind.Analyzer);
|
| });
|
| } on InputError catch (e) {
|
| exitCode = 1;
|
|
|