    # File lib/yard/code_objects/base.rb, line 456
          def namespace=(obj)
            if @namespace
              @namespace.children.delete(self)
              Registry.delete(self)
            end

            @namespace = (obj == :root ? Registry.root : obj)

            if @namespace
              reg_obj = Registry.at(path)
              return if reg_obj && reg_obj.class == self.class
              @namespace.children << self unless @namespace.is_a?(Proxy)
              Registry.register(self)
            end
          end