22 $nodes = array(
'tests' => $tests);
58 ->subcompile($this->
getNode(
'else'))
68 class_alias(
'Twig_Node_If',
'Twig\Node\IfNode',
false);
Represents a node in the AST.
outdent($step=1)
Outdents the generated code.
subcompile(Twig_NodeInterface $node, $raw=true)
Represents a node in the AST.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
__construct(Twig_NodeInterface $tests, Twig_NodeInterface $else=null, $lineno, $tag=null)
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
write()
Writes a string to the compiled code by adding indentation.