visitArgumentInvocation method

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

Replaces each expression in an invocation.

The default implementation of the visit methods calls this to replace any argument invocation in an expression.

Implementation

@protected
ArgumentInvocation visitArgumentInvocation(ArgumentInvocation invocation) =>
    ArgumentInvocation(
        invocation.positional.map((expression) => expression.accept(this)),
        {
          for (var (name, value) in invocation.named.pairs)
            name: value.accept(this)
        },
        invocation.span,
        rest: invocation.rest?.accept(this),
        keywordRest: invocation.keywordRest?.accept(this));