visitFunctionDeclaration method
void
visitFunctionDeclaration(
- FunctionDeclaration node
override
Record the parameters of the function or method declaration we last encountered before seeing the Intl.message call.
Implementation
void visitFunctionDeclaration(FunctionDeclaration node) {
name = node.name.lexeme;
parameters = node.functionExpression.parameters;
if (parameters == null && node.propertyKeyword?.lexeme == 'get') {
parameters = _emptyParameterList;
}
super.visitFunctionDeclaration(node);
name = '';
parameters = null;
}