public ParserRuleContext getInvokingContext(int ruleIndex) {ParserRuleContext p = _ctx;while ( p!=null ) {if ( p.getRuleIndex() == ruleIndex ) return p;p = (ParserRuleContext)p.parent;}return null;}
public virtual ParserRuleContext GetInvokingContext(int ruleIndex){ParserRuleContext p = _ctx;while (p != null){if (p.RuleIndex == ruleIndex){return p;}p = (ParserRuleContext)p.Parent;}return null;}