visitMethodDeclaration method
Implementation
@override
void visitMethodDeclaration(MethodDeclaration node) {
if (!node.isSetter &&
node.returnType == null &&
node.name2.type != TokenType.INDEX_EQ) {
reportToken(node.name2,
message:
"The method ${node.name2.lexeme} should have a return type but doesn't.",
correction: 'Try adding a return type to the method.');
}
}