PhpCss\Parser::delegate PHP Method

delegate() protected method

The result of the subparser is returned Only the name of the subparser is expected here, the method takes care of providing the current token stream as well as instantiating the subparser.
protected delegate ( string $parserClass ) : Ast
$parserClass string
return Ast
    protected function delegate($parserClass)
    {
        $parser = new $parserClass($this->_tokens);
        /**
         * @var Parser $parser
         */
        return $parser->parse();
    }