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);
36 parent::__construct(
$nodes, array(
'is_defined_test' =>
false,
'output' =>
false),
$lineno,
$tag);
48 ->compileTemplateCall($compiler,
'displayBlock')
58 if (!$this->
hasNode(
'template')) {
59 $compiler->
write(
'$this');
62 ->
write(
'$this->loadTemplate(')
63 ->subcompile($this->
getNode(
'template'))
82 ->subcompile($this->
getNode(
'name'))
85 if (!$this->
hasNode(
'template')) {
86 $compiler->
raw(
', $blocks');
89 return $compiler->
raw(
')');
93class_alias(
'Twig_Node_Expression_BlockReference',
'Twig\Node\Expression\BlockReferenceExpression',
false);
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Compiles a node to PHP code.
raw($string)
Adds a raw string to the compiled code.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
write()
Writes a string to the compiled code by adding indentation.
Represents a block call node.
compileBlockArguments(Twig_Compiler $compiler)
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
__construct(Twig_NodeInterface $name, $template=null, $lineno, $tag=null)
compileTemplateCall(Twig_Compiler $compiler, $method)
Abstract class for all nodes that represents an expression.
Represents a node in the AST.