Lines Matching refs:context
97 * @param RuleContext|null $context The complete parser context, or `null`
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) :
142 * @param PredictionContext|null $context The outer context, or `null`
177 ?PredictionContext $context, argument
184 $c = new ATNConfig(null, $s, $context, null, 0);
191 if ($context === null) {
197 if ($context->isEmpty() && $addEOF) {
205 if ($context === null) {
211 if ($context->isEmpty() && $addEOF) {
217 if ($context !== PredictionContext::empty()) {
223 for ($i = 0; $i < $context->getLength(); $i++) {
224 $returnState = $this->atn->states[$context->getReturnState($i)];
228 $context->getParent($i),
253 … $newContext = SingletonPredictionContext::create($context, $t->followState->stateNumber);
275 $context,
289 $context,