Lines Matching refs:tokenType
130 public function getLiteralName(int $tokenType) : ?string
132 if ($tokenType >= 0 && $tokenType < \count($this->literalNames)) {
133 return $this->literalNames[$tokenType];
139 public function getSymbolicName(int $tokenType) : ?string
141 if ($tokenType >= 0 && $tokenType < \count($this->symbolicNames)) {
142 return $this->symbolicNames[$tokenType];
145 if ($tokenType === Token::EOF) {
152 public function getDisplayName(int $tokenType) : string
154 if ($tokenType >= 0 && $tokenType < \count($this->displayNames)) {
155 $displayName = $this->displayNames[$tokenType];
162 $literalName = $this->getLiteralName($tokenType);
168 $symbolicName = $this->getSymbolicName($tokenType);
174 return (string) $tokenType;