Lines Matching defs:s
40 * outgoing transition in `s`. If the closure from transition
44 * @param ATNState|null $s The ATN state
47 * each outgoing transition of `s`.
49 public function getDecisionLookahead(?ATNState $s) : ?array
51 if ($s === null) {
56 for ($alt = 0; $alt < $s->getNumberOfTransitions(); $alt++) {
62 $s->getTransition($alt)->target,
85 * Compute set of tokens that can follow `s` in the ATN in the
89 * `s` is reached, {@see Token::EPSILON} is added to the result set.
93 * @param ATNState $s The ATN state.
100 * @return IntervalSet The set of tokens that can follow `s` in the ATN
103 public function look(ATNState $s, ?ATNState $stopState, ?RuleContext $context) : IntervalSet
108 $lookContext = $context !== null && $s->atn !== null ?
109 PredictionContext::fromRuleContext($s->atn, $context) :
113 $s,
127 * Compute set of tokens that can follow `s` in the ATN in the
131 * rule containing `s` is reached, {@see Token::EPSILON} is added to
136 * @param ATNState $s The ATN state.
175 ATNState $s,
184 $c = new ATNConfig(null, $s, $context, null, 0);
190 if ($stopState !== null && $s->equals($stopState)) {
204 if ($s instanceof RuleStopState) {
219 $removed = $calledRuleStack->contains($s->ruleIndex);
222 $calledRuleStack->remove($s->ruleIndex);
238 $calledRuleStack->add($s->ruleIndex);
247 foreach ($s->getTransitions() as $t) {