parseSelector method
Main entry point for parsing a simple selector sequence.
Implementation
List<Selector> parseSelector() {
var productions = <Selector>[];
while (!_maybeEat(TokenKind.END_OF_FILE) && !_peekKind(TokenKind.RBRACE)) {
var selector = processSelector();
if (selector != null) {
productions.add(selector);
} else {
break; // Prevent infinite loop if we can't parse something.
}
}
checkEndOfFile();
return productions;
}