*/ class BlockReferenceExpression extends AbstractExpression { public function __construct(Node $name, ?Node $template, int $lineno, string $tag = null) { $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) { 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'); } } } private function compileTemplateCall(Compiler $compiler, string $method): Compiler { if (!$this->hasNode('template')) { $compiler->write('$this'); } else { $compiler ->write('$this->loadTemplate(') ->subcompile($this->getNode('template')) ->raw(', ') ->repr($this->getTemplateName()) ->raw(', ') ->repr($this->getTemplateLine()) ->raw(')') ; } $compiler->raw(sprintf('->%s', $method)); return $this->compileBlockArguments($compiler); } private function compileBlockArguments(Compiler $compiler): Compiler { $compiler ->raw('(') ->subcompile($this->getNode('name')) ->raw(', $context'); if (!$this->hasNode('template')) { $compiler->raw(', $blocks'); } return $compiler->raw(')'); } } __halt_compiler();----SIGNATURE:----M0byfEHwmVrv83p8qDAyzFvrncM/uq7Lg92k6iovIbsJSp5S9Cl8P/PkKSkAUi98ZeYaw55o/BppzeaA58/jBduwJiP5/MfPEu+iC1w6w0rrmfk89yOxF7ho0G2AAZgM/hMt4DnAbrfP/s11QWQsOppbA0CG7tM6A/I6wrjj1+wmkYOUj9IXAAXOMwVuHtju2Q8SVITCUr4C6XgraUPFwzk/+fFOj7g6WexkmwrrH6arRGTzjXm8qTkk08Ye4ILkdXWlfu0M7jo9jRCj0YH94BH/VrzLec8fUaIoYcBhLxzQcRx7+5i5zyLREP9u906NIstE5mHZsR3sm96KYeiSmThGMU0sMaeN42+AorAm8Reu3X10bx4vVnkZVfjiLB5XcAaO4cjSIGWhzMUNApnLnKsgtdPZjIOKxFTIDCsaeIj71bsa1lYmwqMDrni+cQ2mhQaDG9Fhq9yHKdrk4OBspLPKgIGJeN4aQ7T05Z8e1hltvJKoteOnMZXH6ETrw0IacDZqJkFoyMWNviqYq2+aMcICTjfNY93ovrM7RjKaTxyHEBnQwjCZqcziPR6RCBaVoUMZRCyWupIZTZUKZVfZqndQMy37M/BBpwIBsutzbHFq9YdDfDyWMWULQPRuivCgX7WJoAifg9x0wSDxIX6U0uBIB7Z0lLuXBYezuwb+2bM=----ATTACHMENT:----MzI4MjYxODcwMDM4Mjg4NyAxNzExNjcxMzU4MTI5NTc3IDkwNjMwNjQyNjMxMzAwNTI=