enterRecursionRule method

void enterRecursionRule(
  1. ParserRuleContext localctx,
  2. int state,
  3. int ruleIndex,
  4. int precedence,
)
inherited

Implementation

void enterRecursionRule(
    ParserRuleContext localctx, int state, int ruleIndex, int precedence) {
  this.state = state;
  _precedenceStack.add(precedence);
  context = localctx;
  context!.start = _input.LT(1)!;
  if (_parseListeners != null) {
    triggerEnterRuleEvent(); // simulates rule entry for left-recursive rules
  }
}