visitMethodDeclaration method

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

void visitMethodDeclaration(MethodDeclaration node) {
  name = node.name.lexeme;
  parameters = node.parameters;
  if (parameters == null && node.propertyKeyword?.lexeme == 'get') {
    parameters = _emptyParameterList;
  }
  super.visitMethodDeclaration(node);
  name = '';
  parameters = null;
}