anchor.diff:  
   import 'package:args/args.dart';
   import 'package:glob/glob.dart';
  +import 'package:path/path.dart' as p;
   
   import 'package:test_runner/src/command_output.dart';
   import 'package:test_runner/src/path.dart';
  
positive.code: 
  const _usage =
      "Usage: dart update_static_error_tests.dart [flags...] <path glob>";
  
  Future<void> main(List<String> args) async {
    var sources = ErrorSource.all.map((e) => e.marker).toList();
  
negative.code:   FastaCommandOutput.parseErrors(result.stdout as String, errors);
    return errors;
  }
  
  /// Find the most recently-built analyzer.
  String _findAnalyzer() {
    String newestAnalyzer;
    DateTime newestAnalyzerTime;
  
    var buildDirectory = Directory(Platform.isMacOS ? "xcodebuild" : "out");
    if (buildDirectory.existsSync()) {
      for (var config in buildDirectory.listSync()) {
        var analyzerPath = p.join(config.path, "dart-sdk", "bin", "dartanalyzer");
        var analyzerFile = File(analyzerPath);
        if (!analyzerFile.existsSync()) continue;
        var modified = analyzerFile.lastModifiedSync();
  
        if (newestAnalyzerTime == null || modified.isAfter(newestAnalyzerTime)) {
          newestAnalyzer = analyzerPath;
          newestAnalyzerTime = modified;
        }
      }
    }
  
    if (newestAnalyzer == null) {
      // Clear the current line since we're in the middle of a progress line.
      print("");
      print("Could not find a built SDK with a dartanalyzer to run.");
      print("Make sure to build the Dart SDK before running this tool.");
      exit(1);
    }
  
    return newestAnalyzer;
  }
  