Lines Matching refs:current
27 protected $current = 0; variable in Twig\\TokenStream
61 …y_merge(\array_slice($this->tokens, 0, $this->current), $tokens, \array_slice($this->tokens, $this…
71 if (!isset($this->tokens[++$this->current])) {
72 …throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current - 1]->getLine(),…
75 return $this->tokens[$this->current - 1];
85 if ($this->tokens[$this->current]->test($primary, $secondary)) {
97 $token = $this->tokens[$this->current];
122 if (!isset($this->tokens[$this->current + $number])) {
123 …throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current + $number - 1]->…
126 return $this->tokens[$this->current + $number];
136 return $this->tokens[$this->current]->test($primary, $secondary);
146 return Token::EOF_TYPE === $this->tokens[$this->current]->getType();
154 return $this->tokens[$this->current];