Lines Matching refs:Token
16 use Antlr\Antlr4\Runtime\Token;
277 if ($nextTokens->contains(Token::EPSILON)) {
335 if ($startToken->getType() === Token::EOF) {
515 public function recoverInline(Parser $recognizer) : Token
610 * @return Token The successfully matched {@see Token} instance if
614 protected function singleTokenDeletion(Parser $recognizer) : ?Token
657 protected function getMissingSymbol(Parser $recognizer) : Token
679 $expectedTokenType = Token::INVALID_TYPE;
685 if ($expectedTokenType === Token::EOF) {
694 if ($current->getType() === Token::EOF && $lookback !== null) {
705 Token::DEFAULT_CHANNEL,
727 protected function getTokenErrorDisplay(?Token $t) : string
736 if ($this->getSymbolType($t) === Token::EOF) {
746 protected function getSymbolText(Token $symbol) : ?string
751 protected function getSymbolType(Token $symbol) : int
878 $recoverSet->removeOne(Token::EPSILON);
896 while ($ttype !== Token::EOF && !$set->contains($ttype)) {