Lines Matching defs:localctx
585 public function enterRule(ParserRuleContext $localctx, int $state, int $ruleIndex) : void
588 $this->ctx = $localctx;
619 public function enterOuterAlt(ParserRuleContext $localctx, int $altNum) : void
621 $localctx->setAltNumber($altNum);
623 // if we have new localctx, make sure we replace existing ctx
625 if ($this->buildParseTree && $this->ctx !== $localctx) {
631 $parent->addChild($localctx);
635 $this->ctx = $localctx;
649 public function enterRecursionRule(ParserRuleContext $localctx, int $state, int $ruleIndex, int $precedence) : void
653 $this->ctx = $localctx;
662 * Make the current context the child of the incoming `localctx`.
664 public function pushNewRecursionContext(ParserRuleContext $localctx, int $state, int $ruleIndex) : void
667 $previous->setParent($localctx);
671 $this->ctx = $localctx;
752 public function precpred(RuleContext $localctx, int $precedence) : bool