Lines Matching refs:Token
14 * This token stream ignores the value of {@see Token::getChannel()}. If your
16 * channel, such as {@see Token::DEFAULT_CHANNEL} or
17 * {@see Token::HIDDEN_CHANNEL}, use a filtering token stream such a
34 * @var array<Token>
55 * Indicates whether the {@see Token::EOF} token has been fetched from
126 if (!$skipEofCheck && $this->LA(1) === Token::EOF) {
169 if ($token->getType() === Token::EOF) {
179 public function get(int $index) : Token
185 'Token index %d out of range 0..%d.',
200 return $token === null ? Token::INVALID_TYPE : $token->getType();
203 protected function LB(int $k) : ?Token
212 public function LT(int $k) : ?Token
282 * @return array<Token>
292 * @return array<Token>|null
310 if ($t->getType() === Token::EOF) {
337 if ($token->getType() === Token::EOF) {
374 * @return array<Token>
397 * @return array<Token>
421 * @return array<Token>|null
472 if ($t->getType() === Token::EOF) {
487 public function getTextByTokens(?Token $start = null, ?Token $stop = null) : string