tablePairsList method
Implementation
List<KeyValStmt> tablePairsList() {
List<KeyValStmt> pairs = [];
Token? next = peek();
while (!eof() && next?.type != TokenType.kRCurly) {
pairs.add(tablePairExpr());
next = peek();
if (next.type == TokenType.kComma) {
advance();
next = peek();
}
}
consume(TokenType.kRCurly, 'Expected closing curly brace.');
return pairs;
}