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

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

Issue 2739213004: Improve detection of compile-time errors. (Closed)
Patch Set: dartfmt 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library fasta.run; 5 library fasta.run;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'dart:io' show stdout, exit, exitCode; 9 import 'dart:io' show stdout, exit, exitCode;
10 10
11 import 'package:testing/testing.dart' show StdioProcess; 11 import 'package:testing/testing.dart' show StdioProcess;
12 12
13 import 'testing/kernel_chain.dart' show computeDartVm, computePatchedSdk; 13 import 'testing/kernel_chain.dart' show computeDartVm, computePatchedSdk;
14 14
15 import 'compiler_context.dart' show CompilerContext; 15 import 'compiler_context.dart' show CompilerContext;
16 16
17 import 'compiler_command_line.dart' show CompilerCommandLine; 17 import 'compiler_command_line.dart' show CompilerCommandLine;
18 18
19 import 'outline.dart' show CompileTask; 19 import 'fasta.dart' show CompileTask;
20 20
21 import 'errors.dart' show InputError; 21 import 'errors.dart' show InputError;
22 22
23 import 'ticker.dart' show Ticker; 23 import 'ticker.dart' show Ticker;
24 24
25 const int iterations = const int.fromEnvironment("iterations", defaultValue: 1); 25 const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
26 26
27 mainEntryPoint(List<String> arguments) async { 27 mainEntryPoint(List<String> arguments) async {
28 Uri uri; 28 Uri uri;
29 for (int i = 0; i < iterations; i++) { 29 for (int i = 0; i < iterations; i++) {
(...skipping 23 matching lines...) Expand all
53 Uri dartVm = computeDartVm(sdk); 53 Uri dartVm = computeDartVm(sdk);
54 List<String> arguments = <String>["${uri.toFilePath()}"] 54 List<String> arguments = <String>["${uri.toFilePath()}"]
55 ..addAll(c.options.arguments.skip(1)); 55 ..addAll(c.options.arguments.skip(1));
56 if (c.options.verbose) { 56 if (c.options.verbose) {
57 print("Running ${dartVm.toFilePath()} ${arguments.join(' ')}"); 57 print("Running ${dartVm.toFilePath()} ${arguments.join(' ')}");
58 } 58 }
59 StdioProcess result = await StdioProcess.run(dartVm.toFilePath(), arguments); 59 StdioProcess result = await StdioProcess.run(dartVm.toFilePath(), arguments);
60 stdout.write(result.output); 60 stdout.write(result.output);
61 return result.exitCode; 61 return result.exitCode;
62 } 62 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/outline.dart ('k') | pkg/front_end/lib/src/fasta/source/source_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698