Lines Matching refs:token
135 $token = $this->stream->next();
136 $rv[] = new TextNode($token->getValue(), $token->getLine());
140 $token = $this->stream->next();
143 $rv[] = new PrintNode($expr, $token->getLine());
148 $token = $this->getCurrentToken();
150 if (/* Token::NAME_TYPE */ 5 !== $token->getType()) {
151 …throw new SyntaxError('A block must start with a tag name.', $token->getLine(), $this->stream->get…
154 if (null !== $test && $test($token)) {
166 if (!isset($this->handlers[$token->getValue()])) {
168 …$e = new SyntaxError(sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this-…
174 …$e = new SyntaxError(sprintf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->s…
175 … $e->addSuggestions($token->getValue(), array_keys($this->env->getTags()));
183 $subparser = $this->handlers[$token->getValue()];
184 $node = $subparser->parse($token);