25 $macro = $this->parser->getExpressionParser()->parseExpression();
26 $this->parser->getStream()->expect(
'as');
30 $this->parser->addImportedSymbol(
'template', $var->getAttribute(
'name'));
41 class_alias(
'Twig_TokenParser_Import',
'Twig\TokenParser\ImportTokenParser',
false);
parse(Twig_Token $token)
Parses a token and returns a node.
Base class for all token parsers.
Represents an import node.
getTag()
Gets the tag name associated with this token parser.