Lines Matching refs:Token
159 * {@see Parser::createErrorNode(ParserRuleContext, Token)} then
164 * @return Token the matched symbol
171 public function match(int $ttype) : Token
176 if ($ttype === Token::EOF) {
206 * {@see Parser::createErrorNode(ParserRuleContext, Token)}. then
209 * @return Token The matched symbol.
215 public function matchWildcard() : ?Token
463 public function getCurrentToken() : ?Token
468 private function token() : Token
481 ?Token $offendingToken = null,
516 public function consume() : Token
552 public function createTerminalNode(ParserRuleContext $parent, Token $t) : TerminalNode
562 public function createErrorNode(ParserRuleContext $parent, Token $t) : ErrorNode
790 if (!$following->contains(Token::EPSILON)) {
794 while ($ctx !== null && $ctx->invokingState >= 0 && $following->contains(Token::EPSILON)) {
809 return $following->contains(Token::EPSILON) && $symbol === Token::EOF;