From 874b8cbf002e9d8bf0ff39671e1501165016320a Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 9 Apr 2012 20:52:26 +1000 Subject: inc/contrib -> inc/lib --- inc/contrib/Twig/Node/Expression/Name.php | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 inc/contrib/Twig/Node/Expression/Name.php (limited to 'inc/contrib/Twig/Node/Expression/Name.php') diff --git a/inc/contrib/Twig/Node/Expression/Name.php b/inc/contrib/Twig/Node/Expression/Name.php deleted file mode 100644 index fceda2b7..00000000 --- a/inc/contrib/Twig/Node/Expression/Name.php +++ /dev/null @@ -1,41 +0,0 @@ - $name), $lineno); - } - - public function compile(Twig_Compiler $compiler) - { - static $specialVars = array( - '_self' => '$this', - '_context' => '$context', - '_charset' => '$this->env->getCharset()', - ); - - $name = $this->getAttribute('name'); - - if ($this->hasAttribute('is_defined_test')) { - if (isset($specialVars[$name])) { - $compiler->repr(true); - } else { - $compiler->raw('array_key_exists(')->repr($name)->raw(', $context)'); - } - } elseif (isset($specialVars[$name])) { - $compiler->raw($specialVars[$name]); - } else { - $compiler->raw(sprintf('$this->getContext($context, \'%s\')', $name)); - } - } -} -- cgit v1.3