Lines Matching defs:context
102 * If `context` is null, the set of tokens will not include what can follow
106 public function nextTokensInContext(ATNState $state, ?RuleContext $context) : IntervalSet
108 return (new LL1Analyzer($this))->look($state, null, $context);
171 * `stateNumber` in the specified full `context`. This method
172 * considers the complete parser context, but does not evaluate semantic
175 * {@see RuleStopState} of the outermost context without matching any
178 * If `context` is `null`, it is treated as {@see ParserRuleContext::EMPTY}.
181 * @param RuleContext $context The full parse context
184 * follow the specified state in the specified context.
188 public function getExpectedTokens(int $stateNumber, ?RuleContext $context) : IntervalSet
206 if ($context === null) {
207 $context = ParserRuleContext::emptyContext();
210 while ($context !== null && $context->invokingState >= 0 && $following->contains(Token::EPSILON)) {
211 $invokingState = $this->states[$context->invokingState];
223 $context = $context->getParent();