4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * Evaluates an expression, discarding the returned value.
17 class Twig_TokenParser_Do extends Twig_TokenParser
19 public function parse(Twig_Token $token)
21 $expr = $this->parser->getExpressionParser()->parseExpression();
23 $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
25 return new Twig_Node_Do($expr, $token->getLine(), $this->getTag());
28 public function getTag()
34 class_alias('Twig_TokenParser_Do', 'Twig\TokenParser\DoTokenParser', false);