def set_location(self, location: Location) -> None: Locatable.set_location(self, location) self.locations.append(location)
def copy_location(self, statement: Locatable) -> None: """ Copy the location of this statement in the given statement """ statement.set_location(self.location)