Lines Matching defs:parent
121 parent::__construct();
548 * How to create a token leaf node associated with a parent.
550 * Typically, the terminal node to create is not a function of the parent.
552 public function createTerminalNode(ParserRuleContext $parent, Token $t) : TerminalNode
557 /** How to create an error node, given a token, associated with a parent.
558 * Typically, the error node to create is not a function of the parent.
562 public function createErrorNode(ParserRuleContext $parent, Token $t) : ErrorNode
569 $parent = $this->context()->getParent();
571 if ($parent === null) {
575 // add current context to parent if we have a parent
576 if ($parent instanceof ParserRuleContext) {
577 $parent->addChild($this->context());
607 // trigger event on _ctx, before it reverts to parent
612 $parent = $this->context()->getParent();
614 if ($parent === null || $parent instanceof ParserRuleContext) {
615 $this->ctx = $parent;
626 /** @var ParserRuleContext $parent */
627 $parent = $this->context()->getParent();
629 if ($parent !== null) {
630 $parent->removeLastChild();
631 $parent->addChild($localctx);
693 $parent = $this->context()->getParent();
695 if ($parent !== null && !$parent instanceof ParserRuleContext) {
699 $this->ctx = $parent;