visitArgumentInvocation method

  1. @protected
T? visitArgumentInvocation(
  1. ArgumentInvocation invocation
)

Visits each expression in an invocation.

The default implementation of the visit methods calls this to visit any argument invocation in a statement.

Implementation

@protected
T? visitArgumentInvocation(ArgumentInvocation invocation) =>
    invocation.positional
        .search((expression) => visitExpression(expression)) ??
    invocation.named.values
        .search((expression) => visitExpression(expression)) ??
    invocation.rest.andThen(visitExpression) ??
    invocation.keywordRest.andThen(visitExpression);