visitMethodDeclaration method

  1. @override
void visitMethodDeclaration(
  1. MethodDeclaration node
)
override

Record the parameters of the function or method declaration we last encountered before seeing the Intl.message call.

Implementation

@override
void visitMethodDeclaration(MethodDeclaration node) {
  setFields(
    name: node.name.lexeme,
    parameters: node.parameters?.parameters,
    documentation: node.documentationComment,
  );
  super.visitMethodDeclaration(node);
  resetFields();
}