(self, variable: SimVariable, same_name: bool=False)
return [ ]
Get a list of all references to the given variable.

        :param variable:        The variable.
        :param same_name:       Whether to include all variables with the same variable name, or just based on the
                                variable identifier.
        :return:                All references to the variable.
Get a list of all references to the given variable.
Get a list of all references to the given variable .
def get_variable_accesses(self, variable: SimVariable, same_name: bool=False) -> List[VariableAccess]:
        """
        Get a list of all references to the given variable.

        :param variable:        The variable.
        :param same_name:       Whether to include all variables with the same variable name, or just based on the
                                variable identifier.
        :return:                All references to the variable.
        """

        if variable.region == 'global':
            return self.global_manager.get_variable_accesses(variable, same_name=same_name)

        elif variable.region in self.function_managers:
            return self.function_managers[variable.region].get_variable_accesses(variable, same_name=same_name)

        l.warning('get_variable_accesses(): Region %s is not found.', variable.region)
        return [ ]
def get_variable_accesses ( self , variable : SimVariable , same_name : bool = False ) -> List [ VariableAccess ] : if variable . region == 'global' : return self . global_manager . get_variable_accesses ( variable , same_name = same_name ) elif variable . region in self . function_managers : return self . function_managers [ variable . region ] . get_variable_accesses ( variable , same_name = same_name ) l . warning ( 'get_variable_accesses(): Region %s is not found.' , variable . region ) return [ ]