anchor.diff:  }
   
   class _Visitor extends SimpleAstVisitor<void> {
  +  static const LintCode functionCode = const LintCode(
  +      "always_declare_return_types",
  +      "The function {0} should have a return type but doesn't.",
  +      correction: "Try adding a return type to the function.");
  +
  +  static const LintCode methodCode = const LintCode(
  +      "always_declare_return_types",
  +      "The method {0} should have a return type but doesn't.",
  +      correction: "Try adding a return type to the method.");
  +
     final LintRule rule;
   
     _Visitor(this.rule);
  
positive.code: import 'package:analyzer/dart/ast/ast.dart';
  import 'package:analyzer/dart/ast/token.dart';
  import 'package:analyzer/dart/ast/visitor.dart';
  import 'package:linter/src/analyzer.dart';
  
  const _desc = r'Declare method return types.';
  
negative.code:     if (!node.isSetter &&
          node.returnType == null &&
          node.name.token.type != TokenType.INDEX_EQ) {
        rule.reportLint(node.name,
            arguments: [node.name.name], errorCode: methodCode);
      }
    }
  }
  