visitFunctionDeclaration method
Record the parameters of the function or method declaration we last encountered before seeing the Intl.message call.
Implementation
@override
void visitFunctionDeclaration(FunctionDeclaration node) {
setFields(
name: node.name.lexeme,
parameters: node.functionExpression.parameters?.parameters,
documentation: node.documentationComment,
);
super.visitFunctionDeclaration(node);
resetFields();
}