芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/vendor/twig/twig/src/Node/SandboxedPrintNode.php
*/ class SandboxedPrintNode extends PrintNode { public function compile(Compiler $compiler) { $compiler ->addDebugInfo($this) ->write('echo ') ; $expr = $this->getNode('expr'); if ($expr instanceof ConstantExpression) { $compiler ->subcompile($expr) ->raw(";\n") ; } else { $compiler ->write('$this->env->getExtension(\'\Twig\Extension\SandboxExtension\')->ensureToStringAllowed(') ->subcompile($expr) ->raw(");\n") ; } } /** * Removes node filters. * * This is mostly needed when another visitor adds filters (like the escaper one). * * @return Node */ protected function removeNodeFilter(Node $node) { if ($node instanceof FilterExpression) { return $this->removeNodeFilter($node->getNode('node')); } return $node; } } class_alias('Twig\Node\SandboxedPrintNode', 'Twig_Node_SandboxedPrint');