docs: def take_parenting(self, inst):
          """
          Takes parenting from inst and transfers it to self.
  
          Args:
              inst (namespace_t): a namespace declaration
  
          """
  
          if self is inst:
              return
          for decl in inst.declarations:
              decl.parent = self
              self.declarations.append(decl)
          inst.declarations = []