$nodes =
['name' =>
$name];
if (null !==
$template) { $nodes['template'
] =
$template;
} parent::
__construct($nodes,
['is_defined_test' => false, 'output' => false
],
$lineno,
$tag);
} public function compile(Compiler
$compiler): void
{ if ($this->
getAttribute('is_defined_test'
)) { $this->
compileTemplateCall($compiler, 'hasBlock'
);
} else { if ($this->
getAttribute('output'
)) { $compiler->
addDebugInfo($this);
$this ->
compileTemplateCall($compiler, 'displayBlock'
) ->
raw(";\n"
);
} else { $this->
compileTemplateCall($compiler, 'renderBlock'
);
} } }