22 parent::__construct(array(
'body' => $body), array(
'name' => $name),
$lineno,
$tag);
34 ->write(sprintf(
"public function block_%s(\$context, array \$blocks = array())\n", $this->
getAttribute(
'name')),
"{\n")
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.
subcompile(Twig_NodeInterface $node, $raw=true)
__construct($name, Twig_NodeInterface $body, $lineno, $tag=null)
Represents a node in the AST.
getNode($name)
Gets a node by name.