Symfony\Component\CssSelector\Parser::parseSelectorGroup PHP Method

parseSelectorGroup() protected method

protected parseSelectorGroup ( $stream )
    protected function parseSelectorGroup($stream)
    {
        $result = array();
        while (1) {
            $result[] = $this->parseSelector($stream);
            if ($stream->peek() == ',') {
                $stream->next();
            } else {
                break;
            }
        }
        if (count($result) == 1) {
            return $result[0];
        }
        return new Node\OrNode($result);
    }