22 parent::__construct(array(
'tests' => $tests,
'else' => $else), array(),
$lineno,
$tag);
58 ->subcompile($this->
getNode(
'else'))
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
hasNode($name)
Returns true if the node with the given identifier exists.
Compiles a node to PHP code.
outdent($step=1)
Outdents the generated code.
Represents a node in the AST.
__construct(Twig_NodeInterface $tests, Twig_NodeInterface $else=null, $lineno, $tag=null)
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
subcompile(Twig_NodeInterface $node, $raw=true)
Represents a node in the AST.
write()
Writes a string to the compiled code by adding indentation.
getNode($name)
Gets a node by name.