public function parse(Parser $parser, Stream $stream) { $node = $this->helper->createRenderBlockNode($parser->getCurrentBlock(), $this->helper->createContext($stream->next()->test(Token::IDENTIFIER, 'using'), $stream, $parser)); $expression = $node->getChild('expression'); if (!$expression instanceof FunctionNode) { throw new \UnexpectedValueException("An instance of FunctionNode was expected"); } $expression->addArgument(new DataNode(true)); return $node; }