22 parent::__construct(array(
'body' => $body), array(
'name' =>
$name),
$lineno,
$tag);
29 ->write(sprintf(
"public function block_%s(\$context, array \$blocks = array())\n", $this->
getAttribute(
'name')),
"{\n")
41class_alias(
'Twig_Node_Block',
'Twig\Node\BlockNode',
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.
subcompile(Twig_NodeInterface $node, $raw=true)
__construct($name, Twig_NodeInterface $body, $lineno, $tag=null)
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Represents a node in the AST.
Represents a node in the AST.