Lines Matching refs:token
160 $token = $this->stream->next();
161 $rv[] = new TextNode($token->getValue(), $token->getLine());
165 $token = $this->stream->next();
168 $rv[] = new PrintNode($expr, $token->getLine());
173 $token = $this->getCurrentToken();
175 if (Token::NAME_TYPE !== $token->getType()) {
176 …throw new SyntaxError('A block must start with a tag name.', $token->getLine(), $this->stream->get…
179 if (null !== $test && \call_user_func($test, $token)) {
191 $subparser = $this->handlers->getTokenParser($token->getValue());
194 …$e = new SyntaxError(sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this-…
200 …$e = new SyntaxError(sprintf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->s…
201 … $e->addSuggestions($token->getValue(), array_keys($this->env->getTags()));
209 $node = $subparser->parse($token);