anchor.diff:    // TODO(rnystrom): Running the analyzer command line each time is very slow.
     // Either import the analyzer as a library, or at least invoke it in a batch
     // mode.
  -  var result = await Process.run(_analyzerPath, [
  +  var result = await Process.run(_dartPath, [
  +    _analyzerPath,
       ...options,
       "--format=json",
       file.absolute.path,
  
positive.code: /// Invoke dart2js on [file] and gather all static errors it reports.
  Future<List<StaticError>> runDart2js(
      File file, List<String> options, List<StaticError> cfeErrors) async {
    var result = await Process.run(_dart2jsPath, [
      ...options,
      "-o",
      "dev:null", // Output is only created for file URIs.
  
negative.code:     "Usage: dart update_static_error_tests.dart [flags...] <path glob>";
  
  final _dartPath = _findBinary("dart", "exe");
  final _analyzerPath = p.join('pkg', 'analyzer_cli', 'bin', 'analyzer.dart');
  
  Future<void> main(List<String> args) async {
    var sources = ErrorSource.all.map((e) => e.marker).toList();
  