MCPcopy
hub / github.com/antlr/antlr4 / enterRecursionRule

Method enterRecursionRule

runtime/JavaScript/src/antlr4/Parser.js:425–431  ·  view source on GitHub ↗
(localctx, state, ruleIndex, precedence)

Source from the content-addressed store, hash-verified

423 }
424
425 enterRecursionRule(localctx, state, ruleIndex, precedence) {
426 this.state = state;
427 this._precedenceStack.push(precedence);
428 this._ctx = localctx;
429 this._ctx.start = this._input.LT(1);
430 this.triggerEnterRuleEvent(); // simulates rule entry for left-recursive rules
431 }
432
433 // Like {@link //enterRule} but for recursive rules.
434 pushNewRecursionContext(localctx, state, ruleIndex) {

Callers

nothing calls this directly

Calls 3

triggerEnterRuleEventMethod · 0.95
pushMethod · 0.80
LTMethod · 0.65

Tested by

no test coverage detected