Lines Matching full:context
86 * specified `context`.
88 * If `context` is `null` and the end of the rule containing
90 * If `context` is not `null` and the end of the outermost rule is
97 * @param RuleContext|null $context The complete parser context, or `null`
98 * if the context should be ignored.
101 * in the specified `context`.
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) :
128 * specified `context`.
130 * If `context` is `null` and `stopState` or the end of the
132 * the result set. If `context` is not `null` and `addEOF` is
142 * @param PredictionContext|null $context The outer context, or `null`
143 * if the outer context should
169 * the outermost context is
171 * has no effect if `context`
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,