visitCallableDeclaration method

  1. @protected
T? visitCallableDeclaration(
  1. CallableDeclaration node
)
override

Visits each of node's expressions and children.

The default implementations of visitFunctionRule and visitMixinRule call this.

Implementation

@protected
T? visitCallableDeclaration(CallableDeclaration node) =>
    node.arguments.arguments.search(
        (argument) => argument.defaultValue.andThen(visitExpression)) ??
    super.visitCallableDeclaration(node);