File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -138,11 +138,6 @@ private function readStates(ATN $atn): void
138138 }
139139
140140 $ ruleIndex = $ this ->readInt ();
141-
142- if ($ ruleIndex === 0xFFFF ) {
143- $ ruleIndex = -1 ;
144- }
145-
146141 $ s = $ this ->stateFactory ($ stype , $ ruleIndex );
147142
148143 if ($ stype === ATNState::LOOP_END ) {
@@ -222,11 +217,6 @@ private function readRules(ATN $atn): void
222217
223218 if ($ atn ->grammarType === ATN ::ATN_TYPE_LEXER ) {
224219 $ tokenType = $ this ->readInt ();
225-
226- if ($ tokenType === 0xFFFF ) {
227- $ tokenType = Token::EOF ;
228- }
229-
230220 $ atn ->ruleToTokenType [$ i ] = $ tokenType ;
231221 }
232222 }
@@ -380,17 +370,7 @@ private function readLexerActions(ATN $atn): void
380370 for ($ i = 0 ; $ i < $ count ; $ i ++) {
381371 $ actionType = $ this ->readInt ();
382372 $ data1 = $ this ->readInt ();
383-
384- if ($ data1 === 0xFFFF ) {
385- $ data1 = -1 ;
386- }
387-
388373 $ data2 = $ this ->readInt ();
389-
390- if ($ data2 === 0xFFFF ) {
391- $ data2 = -1 ;
392- }
393-
394374 $ lexerAction = $ this ->lexerActionFactory ($ actionType , $ data1 , $ data2 );
395375 $ atn ->lexerActions [$ i ] = $ lexerAction ;
396376 }
You can’t perform that action at this time.
0 commit comments