arguments method

List<Expression> arguments()

The arguments of a call, between parentheses.

Implementation

List<Expression> arguments() {
  expectToken('(', '"(" and the arguments');
  final arguments = <Expression>[];
  if (!skipIf(')')) {
    do {
      arguments.add(parseExpression());
    } while (skipIf(','));
    expectToken(')', '")" after the arguments');
  }
  return arguments;
}