32 $template = $this->parser->getExpressionParser()->parseExpression();
33 $stream = $this->parser->getStream();
36 throw new Twig_Error_Syntax(
'The template references in a "use" statement must be a string.',
$stream->getCurrent()->getLine(),
$stream->getSourceContext());
70class_alias(
'Twig_TokenParser_Use',
'Twig\TokenParser\UseTokenParser',
false);
An exception for terminatinating execution or to throw for unit testing.
Exception thrown when a syntax error occurs during lexing or parsing of a template.
Represents a node in the AST.
Imports blocks defined in another template into the current template.
getTag()
Gets the tag name associated with this token parser.
parse(Twig_Token $token)
Parses a token and returns a node.
Base class for all token parsers.
$stream
PHP stream implementation.