processSelectorGroup method

SelectorGroup? processSelectorGroup()

Implementation

SelectorGroup? processSelectorGroup() {
  var selectors = <Selector>[];

  tokenizer.inSelector = true;
  do {
    var selector = processSelector();
    if (selector != null) {
      selectors.add(selector);
    }
  } while (_maybeEat(TokenKind.COMMA));
  tokenizer.inSelector = false;

  if (selectors.isNotEmpty) {
    return SelectorGroup(selectors);
  }
  return null;
}