getInvokingContext method

ParserRuleContext? getInvokingContext(
  1. int ruleIndex
)
inherited

Implementation

ParserRuleContext? getInvokingContext(int ruleIndex) {
  var p = context;
  while (p != null) {
    if (p.ruleIndex == ruleIndex) return p;
    p = p.parent;
  }
  return null;
}