Skip to content

Commit 0afe35b

Browse files
committed
wip
1 parent a9b60b6 commit 0afe35b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/Atn/ATNDeserializer.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)