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

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

Issue 2828583003: remove dependencies to analyzer from lib/src/fasta (Closed)
Patch Set: rebase Created 3 years, 7 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/patched_sdk_location.dart'
14 show computeDartVm, computePatchedSdk;
14 15
15 import 'compiler_context.dart' show CompilerContext; 16 import 'compiler_context.dart' show CompilerContext;
16 17
17 import 'compiler_command_line.dart' show CompilerCommandLine; 18 import 'compiler_command_line.dart' show CompilerCommandLine;
18 19
19 import 'fasta.dart' show CompileTask; 20 import 'fasta.dart' show CompileTask;
20 21
21 import 'errors.dart' show InputError; 22 import 'errors.dart' show InputError;
22 23
23 import 'ticker.dart' show Ticker; 24 import 'ticker.dart' show Ticker;
(...skipping 29 matching lines...) Expand all
53 Uri dartVm = computeDartVm(sdk); 54 Uri dartVm = computeDartVm(sdk);
54 List<String> arguments = <String>["${uri.toFilePath()}"] 55 List<String> arguments = <String>["${uri.toFilePath()}"]
55 ..addAll(c.options.arguments.skip(1)); 56 ..addAll(c.options.arguments.skip(1));
56 if (c.options.verbose) { 57 if (c.options.verbose) {
57 print("Running ${dartVm.toFilePath()} ${arguments.join(' ')}"); 58 print("Running ${dartVm.toFilePath()} ${arguments.join(' ')}");
58 } 59 }
59 StdioProcess result = await StdioProcess.run(dartVm.toFilePath(), arguments); 60 StdioProcess result = await StdioProcess.run(dartVm.toFilePath(), arguments);
60 stdout.write(result.output); 61 stdout.write(result.output);
61 return result.exitCode; 62 return result.exitCode;
62 } 63 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/lib/src/fasta/testing/environment_variable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698