Asm89\Twig\Lint\TokenParser\CatchAll::parse PHP Method

parse() public method

{@inheritDoc}
public parse ( Twig_Token $token )
$token Twig_Token
    public function parse(Twig_Token $token)
    {
        $stream = $this->parser->getStream();
        while ($stream->getCurrent()->getType() !== Twig_Token::BLOCK_END_TYPE) {
            $stream->next();
        }
        $stream->expect(Twig_Token::BLOCK_END_TYPE);
        if ($this->hasBody($stream)) {
            $this->parser->subparse(array($this, 'decideEnd'), true);
            $stream->expect(Twig_Token::BLOCK_END_TYPE);
        }
        return null;
    }