21 parent::__construct(array(
'expr' => $expr,
'var' => $var), array(),
$lineno,
$tag);
34 ->subcompile($this->
getNode(
'var'))
39 $compiler->
raw(
"\$this");
42 ->
raw(
'$this->env->loadTemplate(')
43 ->subcompile($this->
getNode(
'expr'))
48 $compiler->
raw(
";\n");
__construct(Twig_Node_Expression $expr, Twig_Node_Expression $var, $lineno, $tag=null)
Compiles a node to PHP code.
Represents a node in the AST.
getAttribute($name)
Gets an attribute.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Abstract class for all nodes that represents an expression.
Represents an import node.
raw($string)
Adds a raw string to the compiled code.
getNode($name)
Gets a node by name.