__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Twig\Node\Expression; use Twig\Compiler; use Twig\Node\Expression\Variable\TemplateVariable; /** * Represents a macro call node. * * @author Fabien Potencier <[email protected]> */ class MacroReferenceExpression extends AbstractExpression { public function __construct(TemplateVariable $template, string $name, AbstractExpression $arguments, int $lineno) { parent::__construct(['template' => $template, 'arguments' => $arguments], ['name' => $name, 'is_defined_test' => false], $lineno); } public function compile(Compiler $compiler): void { if ($this->getAttribute('is_defined_test')) { $compiler ->subcompile($this->getNode('template')) ->raw('->hasMacro(') ->repr($this->getAttribute('name')) ->raw(', $context') ->raw(')') ; return; } $compiler ->subcompile($this->getNode('template')) ->raw('->getTemplateForMacro(') ->repr($this->getAttribute('name')) ->raw(', $context, ') ->repr($this->getTemplateLine()) ->raw(', $this->getSourceContext())') ->raw(\sprintf('->%s', $this->getAttribute('name'))) ->raw('(...') ->subcompile($this->getNode('arguments')) ->raw(')') ; } }