Lines Matching refs:index
52 protected $index = -1; variable in Antlr\\Antlr4\\Runtime\\BufferedTokenStream
86 return $this->index;
99 public function seek(int $index) : void argument
103 $this->index = $this->adjustSeekIndex($index);
115 if ($this->index >= 0) {
119 $skipEofCheck = $this->index < \count($this->tokens) - 1;
122 $skipEofCheck = $this->index < \count($this->tokens);
130 if ($this->sync($this->index + 1)) {
131 $this->index = $this->adjustSeekIndex($this->index + 1);
179 public function get(int $index) : Token argument
183 if ($index < 0 || $index >= $count) {
186 $index,
193 return $this->tokens[$index];
205 if ($this->index - $k < 0) {
209 return $this->tokens[$this->index - $k];
224 $i = $this->index + $k - 1;
258 if ($this->index === -1) {
267 $this->index = $this->adjustSeekIndex(0);
277 $this->index = -1;