Lines Matching refs:to
11 * {@see TokenSource} on-demand, and places the tokens in a buffer to provide
12 * access to any previous token by index.
15 * parser requires the token stream filter tokens to only those on a particular
32 * {@see BufferedTokenStream::fetchedEOF()} is set to `true`.
40 * (next token to {@see BufferedTokenStream::consume()}).
44 * This field is set to -1 when the stream is first constructed or when
56 * {@see BufferedTokenStream::tokenSource()} and added to
61 * {@see BufferedTokenStream::consume()} to prevent consuming the
66 * - {@see BufferedTokenStream::fetch()}: The check to prevent adding multiple
96 // no resources to release
238 * Allowed derived classes to modify the behavior of operations which change
244 * For example, {@see CommonTokenStream} overrides this method to ensure
357 * index is returned. This is due to the fact that the EOF token is treated
370 * Collect all tokens on specified channel to the right of the current token
386 // if none onchannel to right, nextOnChannel=-1 so set to = last token
387 $to = $nextOnChannel === -1 ? \count($this->tokens) - 1 : $nextOnChannel;
389 return $this->filterForChannel($from_, $to, $channel);
393 * Collect all tokens on specified channel to the left of the current token
413 // if none on channel to left, prevOnChannel=-1 then from=0
415 $to = $tokenIndex - 1;
417 return $this->filterForChannel($from, $to, $channel);