anchor.diff:  import 'package:analyzer/src/codegen/tools.dart';
   import 'package:analyzer/src/dart/error/syntactic_errors.dart';
   import 'package:front_end/src/testing/package_root.dart' as pkgRoot;
  +import 'package:front_end/src/fasta/scanner.dart';
   import 'package:path/path.dart';
   import 'package:yaml/yaml.dart' show loadYaml;
   
  
positive.code: List<String> nameForEntry(Map entry) {
    final analyzerCode = entry['analyzerCode'];
    if (analyzerCode is String) {
      // TODO(danrubel): Revise to handle others such as ScannerErrorCode.
      if (!analyzerCode.startsWith('ParserErrorCode.')) {
        throw invalidAnalyzerCode;
      }
  
negative.code:         print('  ${analyzerToFasta.length} total');
        }
      }
  
      // List error codes in the parser that have not been translated.
      final untranslatedFastaErrorCodes = new Set<String>();
      Token token = scanString(parserSource).tokens;
      while (!token.isEof) {
        if (token.isIdentifier) {
          String fastaErrorCode;
          String lexeme = token.lexeme;
          if (lexeme.length > 7) {
            if (lexeme.startsWith('message')) {
              fastaErrorCode = lexeme.substring(7);
            } else if (lexeme.length > 8) {
              if (lexeme.startsWith('template')) {
                fastaErrorCode = lexeme.substring(8);
              }
            }
          }
          if (fastaErrorCode != null &&
              !translatedFastaErrorCodes.contains(fastaErrorCode)) {
            untranslatedFastaErrorCodes.add(fastaErrorCode);
          }
        }
        token = token.next;
      }
      if (untranslatedFastaErrorCodes.isNotEmpty) {
        print('');
        print('The following error codes in the parser are not auto generated:');
        final sorted = untranslatedFastaErrorCodes.toList()..sort();
        for (String fastaErrorCode in sorted) {
          String analyzerCode = '';
          String template = '';
          var entry = messagesYaml[fastaErrorCode];
          if (entry is Map) {
            if (entry['index'] is! int && entry['analyzerCode'] is String) {
              analyzerCode = entry['analyzerCode'];
              template = entry['template'];
            }
          }
          print('  ${fastaErrorCode.padRight(30)} --> $analyzerCode'
              '\n      $template');
        }
      }
    }
  }
  