def exitRule(self, listener: ParseTreeListener):
    if hasattr(listener, 'exitMethod_declr'):
        listener.exitMethod_declr(self)
def exitRule(self, listener: ParseTreeListener):
    if hasattr(listener, 'exitMethod_declr'):
        listener.exitMethod_declr(self)