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