26 $stream = $this->parser->getStream();
28 if (!$this->parser->isMainScope()) {
32 if (null !== $this->parser->getParent()) {
35 $this->parser->setParent($this->parser->getExpressionParser()->parseExpression());
46 class_alias(
'Twig_TokenParser_Extends',
'Twig\TokenParser\ExtendsTokenParser',
false);
parse(Twig_Token $token)
Parses a token and returns a node.
$stream
PHP stream implementation.
Exception thrown when a syntax error occurs during lexing or parsing of a template.
Base class for all token parsers.
getTag()
Gets the tag name associated with this token parser.
Extends a template by another one.