芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/vendor/twig/twig/src/TokenParser/ApplyTokenParser.php
getLine(); $name = $this->parser->getVarName(); $ref = new TempNameExpression($name, $lineno); $ref->setAttribute('always_defined', true); $filter = $this->parser->getExpressionParser()->parseFilterExpressionRaw($ref, $this->getTag()); $this->parser->getStream()->expect(Token::BLOCK_END_TYPE); $body = $this->parser->subparse([$this, 'decideApplyEnd'], true); $this->parser->getStream()->expect(Token::BLOCK_END_TYPE); return new Node([ new SetNode(true, $ref, $body, $lineno, $this->getTag()), new PrintNode($filter, $lineno, $this->getTag()), ]); } public function decideApplyEnd(Token $token) { return $token->test('endapply'); } public function getTag() { return 'apply'; } }