26 @trigger_error(sprintf(
'The %s method "$asString" argument is deprecated since version 1.28 and will be removed in 2.0.', __METHOD__), E_USER_DEPRECATED);
48 ->compileTemplateCall($compiler,
'displayBlock')
58 if (!$this->
hasNode(
'template')) {
59 $compiler->
write(
'$this');
62 ->
write(
'$this->loadTemplate(')
63 ->subcompile($this->
getNode(
'template'))
72 $compiler->
raw(sprintf(
'->%s', $method));
82 ->subcompile($this->
getNode(
'name'))
85 if (!$this->
hasNode(
'template')) {
86 $compiler->
raw(
', $blocks');
89 return $compiler->
raw(
')');
93 class_alias(
'Twig_Node_Expression_BlockReference',
'Twig\Node\Expression\BlockReferenceExpression',
false);
compileBlockArguments(Twig_Compiler $compiler)
raw($string)
Adds a raw string to the compiled code.
Represents a node in the AST.
__construct(Twig_NodeInterface $name, $template=null, $lineno, $tag=null)
Abstract class for all nodes that represents an expression.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Create styles array
The data for the language used.
compileTemplateCall(Twig_Compiler $compiler, $method)
Represents a block call node.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
write()
Writes a string to the compiled code by adding indentation.