21 parent::__construct(array(
'expr' => $expr,
'var' => $var), array(),
$lineno,
$tag);
29 ->subcompile($this->
getNode(
'var'))
34 $compiler->
raw(
'$this');
37 ->
raw(
'$this->loadTemplate(')
38 ->subcompile($this->
getNode(
'expr'))
47 $compiler->
raw(
";\n");
51class_alias(
'Twig_Node_Import',
'Twig\Node\ImportNode',
false);
An exception for terminatinating execution or to throw for unit testing.
Compiles a node to PHP code.
raw($string)
Adds a raw string to the compiled code.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
Abstract class for all nodes that represents an expression.
Represents an import node.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
__construct(Twig_Node_Expression $expr, Twig_Node_Expression $var, $lineno, $tag=null)
Represents a node in the AST.