22 parent::__construct(array(
'name' => $name), array(
'as_string' => $asString,
'output' =>
false),
$lineno,
$tag);
33 $compiler->
raw(
'(string) ');
39 ->write(
"\$this->displayBlock(")
40 ->subcompile($this->
getNode(
'name'))
41 ->raw(
", \$context, \$blocks);\n")
45 ->
raw(
"\$this->renderBlock(")
46 ->subcompile($this->
getNode(
'name'))
47 ->raw(
", \$context, \$blocks)")
Compiles a node to PHP code.
getAttribute($name)
Gets an attribute.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Abstract class for all nodes that represents an expression.
Represents a node in the AST.
raw($string)
Adds a raw string to the compiled code.
Represents a block call node.
__construct(Twig_NodeInterface $name, $asString=false, $lineno, $tag=null)
getNode($name)
Gets a node by name.