* Always called by generated parsers upon entry to a rule. Access field * //_ctx get the current context.
(localctx, state, ruleIndex)
| 378 | * {@link //_ctx} get the current context. |
| 379 | */ |
| 380 | enterRule(localctx, state, ruleIndex) { |
| 381 | this.state = state; |
| 382 | this._ctx = localctx; |
| 383 | this._ctx.start = this._input.LT(1); |
| 384 | if (this.buildParseTrees) { |
| 385 | this.addContextToParseTree(); |
| 386 | } |
| 387 | this.triggerEnterRuleEvent(); |
| 388 | } |
| 389 | |
| 390 | exitRule() { |
| 391 | this._ctx.stop = this._input.LT(-1); |
no test coverage detected