Lines Matching refs:s
44 * @param ATNState|null $s The ATN state
49 public function getDecisionLookahead(?ATNState $s) : ?array argument
51 if ($s === null) {
56 for ($alt = 0; $alt < $s->getNumberOfTransitions(); $alt++) {
62 $s->getTransition($alt)->target,
93 * @param ATNState $s The ATN state.
103 public function look(ATNState $s, ?ATNState $stopState, ?RuleContext $context) : IntervalSet argument
108 $lookContext = $context !== null && $s->atn !== null ?
109 PredictionContext::fromRuleContext($s->atn, $context) :
113 $s,
136 * @param ATNState $s The ATN state.
175 ATNState $s, argument
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) {