Home
last modified time | relevance | path

Searched refs:tokenNames (Results 1 – 1 of 1) sorted by relevance

/plugin/combo/vendor/antlr/antlr4-php-runtime/src/
H A DVocabularyImpl.php75 * `tokenNames` array generated by previous releases of ANTLR.
79 * and the value from `tokenNames` for the display names.
81 * @param array<string|null> $tokenNames The token names, or `null` if
84 * @return Vocabulary A {@see Vocabulary} instance which uses `tokenNames`
87 public static function fromTokenNames(array $tokenNames = []) : Vocabulary argument
89 if (\count($tokenNames) === 0) {
93 $literalNames = $tokenNames; // copy array
94 $symbolicNames = $tokenNames; // copy array
96 foreach ($tokenNames as $i => $tokenName) {
122 return new VocabularyImpl($literalNames, $symbolicNames, $tokenNames);
[all...]