Fix #3052
This commit is contained in:
parent
3c67a9d4ea
commit
8bcc12de28
|
@ -453,7 +453,7 @@ class Parser (Recognizer):
|
|||
def getInvokingContext(self, ruleIndex:int):
|
||||
ctx = self._ctx
|
||||
while ctx is not None:
|
||||
if ctx.ruleIndex == ruleIndex:
|
||||
if ctx.getRuleIndex() == ruleIndex:
|
||||
return ctx
|
||||
ctx = ctx.parentCtx
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue