parseParameters method
// 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;
}