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 --- .../Twig/Node/Expression/BlockReference.php | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 inc/contrib/Twig/Node/Expression/BlockReference.php (limited to 'inc/contrib/Twig/Node/Expression/BlockReference.php') diff --git a/inc/contrib/Twig/Node/Expression/BlockReference.php b/inc/contrib/Twig/Node/Expression/BlockReference.php deleted file mode 100644 index 174d9097..00000000 --- a/inc/contrib/Twig/Node/Expression/BlockReference.php +++ /dev/null @@ -1,52 +0,0 @@ - - */ -class Twig_Node_Expression_BlockReference extends Twig_Node_Expression -{ - public function __construct(Twig_NodeInterface $name, $asString = false, $lineno, $tag = null) - { - parent::__construct(array('name' => $name), array('as_string' => $asString, 'output' => false), $lineno, $tag); - } - - /** - * Compiles the node to PHP. - * - * @param Twig_Compiler A Twig_Compiler instance - */ - public function compile(Twig_Compiler $compiler) - { - if ($this->getAttribute('as_string')) { - $compiler->raw('(string) '); - } - - if ($this->getAttribute('output')) { - $compiler - ->addDebugInfo($this) - ->write("\$this->displayBlock(") - ->subcompile($this->getNode('name')) - ->raw(", \$context, \$blocks);\n") - ; - } else { - $compiler - ->raw("\$this->renderBlock(") - ->subcompile($this->getNode('name')) - ->raw(", \$context, \$blocks)") - ; - } - } -} -- cgit v1.3