private function Parser::parseSelectorList in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Parser/Parser.php \Symfony\Component\CssSelector\Parser\Parser::parseSelectorList()
Parses selector nodes.
Parameters
TokenStream $stream:
Return value
array
1 call to Parser::parseSelectorList()
- Parser::parse in vendor/
symfony/ css-selector/ Parser/ Parser.php - Parses given selector source into an array of tokens.
File
- vendor/
symfony/ css-selector/ Parser/ Parser.php, line 110
Class
- Parser
- CSS selector parser.
Namespace
Symfony\Component\CssSelector\ParserCode
private function parseSelectorList(TokenStream $stream) {
$stream
->skipWhitespace();
$selectors = array();
while (true) {
$selectors[] = $this
->parserSelectorNode($stream);
if ($stream
->getPeek()
->isDelimiter(array(
',',
))) {
$stream
->getNext();
$stream
->skipWhitespace();
}
else {
break;
}
}
return $selectors;
}