parseSelectorGroup function

SelectorGroup? parseSelectorGroup(
  1. Object input, {
  2. List<Message>? errors,
})

Implementation

SelectorGroup? parseSelectorGroup(Object input, {List<Message>? errors}) {
  var source = _inputAsString(input);

  _createMessages(errors: errors);

  var file = SourceFile.fromString(source);
  return (_Parser(file, source)
        // TODO(jmesserly): this fix should be applied to the parser. It's
        // tricky because by the time the flag is set one token has already
        // been fetched.
        ..tokenizer.inSelector = true)
      .processSelectorGroup();
}