(self, localctx:ParserRuleContext, altNum:int)
| 386 | self._ctx = self._ctx.parentCtx |
| 387 | |
| 388 | def enterOuterAlt(self, localctx:ParserRuleContext, altNum:int): |
| 389 | localctx.setAltNumber(altNum) |
| 390 | # if we have new localctx, make sure we replace existing ctx |
| 391 | # that is previous child of parse tree |
| 392 | if self.buildParseTrees and self._ctx != localctx: |
| 393 | if self._ctx.parentCtx is not None: |
| 394 | self._ctx.parentCtx.removeLastChild() |
| 395 | self._ctx.parentCtx.addChild(localctx) |
| 396 | self._ctx = localctx |
| 397 | |
| 398 | # Get the precedence level for the top-most precedence rule. |
| 399 | # |
no test coverage detected