Lines Matching refs:state
35 /** @var DFAState $state */
36 foreach ($this->dfa->getStates() as $state) {
37 $count = $state->edges === null ? 0 : $state->edges->count();
41 $t = $state->edges[$i];
44 $string .= $this->getStateString($state);
61 protected function getStateString(DFAState $state) : string
63 if ($state->equals(ATNSimulator::error())) {
69 $state->isAcceptState ? ':' : '',
70 $state->stateNumber,
71 $state->requiresFullContext ? '^' : ''
74 if ($state->isAcceptState) {
75 if ($state->predicates !== null) {
76 return $baseStateStr . '=>[' . \implode(', ', $state->predicates) . ']';
79 return $baseStateStr . '=>' . $state->prediction;