Lines Matching refs:tokens

36     protected $tokens = [];  variable in Antlr\\Antlr4\\Runtime\\BufferedTokenStream
108 return \count($this->tokens);
119 $skipEofCheck = $this->index < \count($this->tokens) - 1;
122 $skipEofCheck = $this->index < \count($this->tokens);
145 $n = $i - \count($this->tokens) + 1; // how many more elements we need?
165 $token->setTokenIndex(\count($this->tokens));
167 $this->tokens[] = $token;
181 $count = \count($this->tokens);
193 return $this->tokens[$index];
209 return $this->tokens[$this->index - $k];
228 if ($i >= \count($this->tokens)) {
231 return $this->tokens[\count($this->tokens) - 1];
234 return $this->tokens[$i];
276 $this->tokens = [];
286 return $this->tokens;
303 if ($stop >= \count($this->tokens)) {
304 $stop = \count($this->tokens) - 1;
308 $t = $this->tokens[$i];
331 if ($i >= \count($this->tokens)) {
335 $token = $this->tokens[$i];
345 $token = $this->tokens[$i];
362 while ($i >= 0 && $this->tokens[$i]->getChannel() !== $channel) {
380 if ($tokenIndex < 0 || $tokenIndex >= \count($this->tokens)) {
381 … throw new \RuntimeException(\sprintf('%d not in 0..%d', $tokenIndex, \count($this->tokens) - 1));
387 $to = $nextOnChannel === -1 ? \count($this->tokens) - 1 : $nextOnChannel;
403 if ($tokenIndex < 0 || $tokenIndex >= \count($this->tokens)) {
404 … throw new \RuntimeException(\sprintf('%d not in 0..%d', $tokenIndex, \count($this->tokens) - 1));
427 $t = $this->tokens[$i];
464 if ($stop >= \count($this->tokens)) {
465 $stop = \count($this->tokens) - 1;
470 $t = $this->tokens[$i];
484 return $this->getTextByInterval(new Interval(0, \count($this->tokens) - 1));
490 $stopIndex = $stop === null ? \count($this->tokens) - 1 : $stop->getTokenIndex();