visitArgumentInvocation method

  1. @protected
void 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
void visitArgumentInvocation(ArgumentInvocation invocation) {
  for (var expression in invocation.positional) {
    visitExpression(expression);
  }
  for (var expression in invocation.named.values) {
    visitExpression(expression);
  }
  invocation.rest.andThen(visitExpression);
  invocation.keywordRest.andThen(visitExpression);
}