parseParameters method

List<Name> parseParameters()

// FUNCTIONS //////

Implementation

List<Name> parseParameters() {
  consume(Token.LPAREN);
  List<Name> list = <Name>[];
  while (token?.type != Token.RPAREN) {
    if (list.isNotEmpty) {
      consume(Token.COMMA);
    }
    list.add(parseName());
  }
  consume(Token.RPAREN);
  return list;
}