[flutter_tools] remove globals from compilers (#59184)

Refactors KernelCompiler and ResidentCompiler to no longer use globals (except as a fallback for g3 migration). Improves the compilation error when running flutter test on a package without a flutter_test dependency.

Updates machine mode to output trace text to stderr
This commit is contained in:
Jonah Williams
2020-06-18 10:33:17 -07:00
committed by GitHub
parent e1f4cfb4f4
commit 447e3d3f38
17 changed files with 281 additions and 162 deletions

View File

@@ -244,11 +244,11 @@ class FakeProcess implements Process {
FakeProcess({
this.pid = 1,
Future<int> exitCode,
Stream<List<int>> stdin,
IOSink stdin,
this.stdout = const Stream<List<int>>.empty(),
this.stderr = const Stream<List<int>>.empty(),
}) : exitCode = exitCode ?? Future<int>.value(0),
stdin = stdin as IOSink ?? MemoryIOSink();
stdin = stdin ?? MemoryIOSink();
@override
final int pid;