anchor.diff:      var client = http.Client();
       var req = await client.get(
           'https://raw.githubusercontent.com/dart-lang/sdk/master/pkg/analysis_server/lib/src/services/correction/fix_internal.dart');
  -    var lintsWithFixes = <String>[];
  -    for (var word in req.body.split(RegExp('\\s+'))) {
  -      if (word.startsWith('LintNames.')) {
  -        var lintName = word.substring(10);
  -        if (lintName.endsWith(')')) {
  -          lintName = lintName.substring(0, lintName.length - 1);
  -        }
  -        lintsWithFixes.add(lintName);
  -      }
  -    }
  -    return lintsWithFixes;
  +
  +    var parser = new CompilationUnitParser();
  +    var cu = parser.parse(contents: req.body, name: 'fix_internal.dart');
  +    var lintNamesClass = cu.declarations
  +        .firstWhere((m) => m is ClassDeclaration && m.name.name == 'LintNames');
  +
  +    var collector = new _FixCollector();
  +    lintNamesClass.accept(collector);
  +    return collector.lintNames;
     }
   
     static Future<List<String>> _getLintsWithAssists() async {
  
positive.code:   }
    return _registeredLints;
  }
  
  main() async {
    var scorecard = await ScoreCard.calculate();
  
negative.code:   void visitNamedExpression(NamedExpression node) {
      if (node.name.toString() == 'associatedErrorCodes:') {
        ListLiteral list = node.expression;
        for (var element in list.elements2) {
          var name =
              element.toString().substring(1, element.toString().length - 1);
          lintNames.add(name);
          if (!registeredLintNames.contains(name)) {
            print('WARNING: unrecognized lint in assists: $name');
          }
        }
      }
    }
  }
  
  class _FixCollector extends GeneralizingAstVisitor<void> {
    final List<String> lintNames = <String>[];
  
    @override
    void visitFieldDeclaration(FieldDeclaration node) {
      for (var v in node.fields.variables) {
        var name = v.name.name;
        lintNames.add(name);
        if (!registeredLintNames.contains(name)) {
          print('WARNING: unrecognized lint in fixes: $name');
        }
      }
    }
  