[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user