Lines Matching refs:target

208             // If the previous target was already part of the DFA, we might
224 $target = $this->getExistingTargetState($s, $t);
226 if ($target === null) {
227 $target = $this->computeTargetState($input, $s, $t);
230 if ($target === ATNSimulator::error()) {
242 if ($target->isAcceptState) {
243 $this->captureSimState($this->prevAccept, $input, $target);
250 $s = $target; // flip; current DFA target becomes new src/from state
257 * Get an existing target state for an edge in the DFA. If the target state
264 * @return DFAState|null The existing target DFA state for the given input symbol
265 * `t`, or `null` if the target state for this edg
274 $target = $s->edges[$t - self::MIN_DFA_EDGE] ?? null;
276 if ($this->debug && $target !== null) {
277 $this->log[] = \sprintf('reuse state %d edge to %d', $s->stateNumber, $target->stateNumber);
280 return $target;
284 * Compute a target state for an edge in the DFA, and attempt to add the
291 * @return DFAState The computed target DFA state for the given input symbol
315 // Add an edge from s to target DFA found/created for reach
388 $target = $this->getReachableTarget($trans, $t);
390 if ($target !== null) {
398 $config = new LexerATNConfig($cfg, $target, null, $lexerExecutor);
442 return $trans->target;
454 $target = $t->target;
455 $cfg = new LexerATNConfig(null, $target, $initialContext, null, $i + 1);
575 $cfg = new LexerATNConfig($config, $t->target, $newContext);
596 // competition), but should not create target of ID state. The
599 // test them, we cannot cash the DFA state target of ID.
612 $cfg = new LexerATNConfig($config, $t->target);
640 $cfg = new LexerATNConfig($config, $t->target, null, $lexerActionExecutor);
643 $cfg = new LexerATNConfig($config, $t->target);
649 $cfg = new LexerATNConfig($config, $t->target);
658 $cfg = new LexerATNConfig($config, $t->target);
732 * DFA should be omitted. The target DFAState is still created since