PATH:
home
/
lab2454c
/
carbonbullion.com
/
wp-content
/
plugins
/
mailpoet
/
vendor-prefixed
/
twig
/
twig
/
src
/
Node
<?php namespace MailPoetVendor\Twig\Node; if (!defined('ABSPATH')) exit; use MailPoetVendor\Twig\Compiler; use MailPoetVendor\Twig\Node\Expression\AbstractExpression; use MailPoetVendor\Twig\Node\Expression\NameExpression; class ImportNode extends Node { public function __construct(AbstractExpression $expr, AbstractExpression $var, int $lineno, string $tag = null, bool $global = \true) { parent::__construct(['expr' => $expr, 'var' => $var], ['global' => $global], $lineno, $tag); } public function compile(Compiler $compiler) : void { $compiler->addDebugInfo($this)->write('$macros[')->repr($this->getNode('var')->getAttribute('name'))->raw('] = '); if ($this->getAttribute('global')) { $compiler->raw('$this->macros[')->repr($this->getNode('var')->getAttribute('name'))->raw('] = '); } if ($this->getNode('expr') instanceof NameExpression && '_self' === $this->getNode('expr')->getAttribute('name')) { $compiler->raw('$this'); } else { $compiler->raw('$this->loadTemplate(')->subcompile($this->getNode('expr'))->raw(', ')->repr($this->getTemplateName())->raw(', ')->repr($this->getTemplateLine())->raw(')->unwrap()'); } $compiler->raw(";\n"); } }
[-] BodyNode.php
[edit]
[-] FlushNode.php
[edit]
[-] IfNode.php
[edit]
[-] AutoEscapeNode.php
[edit]
[-] NodeCaptureInterface.php
[edit]
[+]
Expression
[-] BlockReferenceNode.php
[edit]
[-] NodeOutputInterface.php
[edit]
[-] BlockNode.php
[edit]
[-] TextNode.php
[edit]
[-] index.php
[edit]
[-] CheckSecurityNode.php
[edit]
[+]
..
[-] WithNode.php
[edit]
[-] ForNode.php
[edit]
[-] ImportNode.php
[edit]
[-] MacroNode.php
[edit]
[-] DeprecatedNode.php
[edit]
[-] CheckSecurityCallNode.php
[edit]
[-] EmbedNode.php
[edit]
[-] SandboxNode.php
[edit]
[-] Node.php
[edit]
[-] IncludeNode.php
[edit]
[-] ModuleNode.php
[edit]
[-] DoNode.php
[edit]
[-] SetNode.php
[edit]
[-] ForLoopNode.php
[edit]
[-] CheckToStringNode.php
[edit]
[-] PrintNode.php
[edit]