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