(self, variable, locations, size_threshold=32)
return new_defs_added
Add a collection of new definitions of a variable.

        :param SimVariable variable: The variable being defined.
        :param iterable locations: A collection of locations where the variable was defined.
        :param int size_threshold: The maximum bytes to consider for the variable.
        :return: True if any of the definition was new, False otherwise
        :rtype: bool
Add a collection of new definitions of a variable.
Add a collection of new definitions of a variable .
def add_defs(self, variable, locations, size_threshold=32):
        """
        Add a collection of new definitions of a variable.

        :param SimVariable variable: The variable being defined.
        :param iterable locations: A collection of locations where the variable was defined.
        :param int size_threshold: The maximum bytes to consider for the variable.
        :return: True if any of the definition was new, False otherwise
        :rtype: bool
        """

        new_defs_added = False

        for loc in locations:
            new_defs_added |= self.add_def(variable, loc, size_threshold=size_threshold)

        return new_defs_added
def add_defs ( self , variable , locations , size_threshold = 32 ) : new_defs_added = False for loc in locations : new_defs_added |= self . add_def ( variable , loc , size_threshold = size_threshold ) return new_defs_added