visitFunctionTypeAlias method
Implementation
@override
void visitFunctionTypeAlias(FunctionTypeAlias node) {
if (node.returnType == null) {
reportToken(node.name2,
message:
"The function ${node.name2.lexeme} should have a return type but doesn't.",
correction: 'Try adding a return type to the function.');
}
}