(self, parent)
Changes the parent of this code object.

    Args:
      parent: (CodeObject) the new parent.
Changes the parent of this code object.
Changes the parent of this code object .
def SetParent(self, parent):
    """Changes the parent of this code object.

    Args:
      parent: (CodeObject) the new parent.
    """
    if self._parent:
      self._parent.children.remove(self)
    self._parent = parent
    if self._parent:
      self._parent.children.append(self)
def SetParent ( self , parent ) : if self . _parent : self . _parent . children . remove ( self ) self . _parent = parent if self . _parent : self . _parent . children . append ( self )