(self, obj)
Add object to local and app environment storage

        :param obj: Instance of a AutoAPI object
Add object to local and app environment storage
Add object to local and app environment storage
def add_object(self, obj):
        """
        Add object to local and app environment storage

        :param obj: Instance of a AutoAPI object
        """
        self.objects[obj.id] = obj
        self.all_objects[obj.id] = obj
        child_stack = list(obj.children)
        while child_stack:
            child = child_stack.pop()
            self.all_objects[child.id] = child
            child_stack.extend(getattr(child, "children", ()))
def add_object ( self , obj ) : self . objects [ obj . id ] = obj self . all_objects [ obj . id ] = obj child_stack = list ( obj . children ) while child_stack : child = child_stack . pop ( ) self . all_objects [ child . id ] = child child_stack . extend ( getattr ( child , "children" , ( ) ) )