refactor: rename GCObject.shallow_copy -> shallow_move

resolve conflict since relying on move constructor in std_copy_for
This commit is contained in:
Roland Conybeare 2026-04-04 15:00:53 -04:00
commit 2003c3c6f9
44 changed files with 66 additions and 66 deletions

View file

@ -110,7 +110,7 @@ namespace xo {
}
DApplyExpr *
DApplyExpr::shallow_copy(obj<AAllocator> mm) const noexcept {
DApplyExpr::shallow_move(obj<AAllocator> mm) const noexcept {
DApplyExpr * copy = (DApplyExpr *)mm.alloc_copy((std::byte *)this);
if (copy) {

View file

@ -78,7 +78,7 @@ namespace xo {
}
DConstant *
DConstant::shallow_copy(obj<AAllocator> mm) const noexcept
DConstant::shallow_move(obj<AAllocator> mm) const noexcept
{
DConstant * copy = (DConstant *)mm.alloc_copy((std::byte *)this);

View file

@ -85,7 +85,7 @@ namespace xo {
}
DDefineExpr *
DDefineExpr::shallow_copy(obj<AAllocator> mm) noexcept
DDefineExpr::shallow_move(obj<AAllocator> mm) noexcept
{
return mm.std_copy_for(this);
}

View file

@ -261,7 +261,7 @@ namespace xo {
}
DGlobalSymtab *
DGlobalSymtab::shallow_copy(obj<AAllocator> mm) const noexcept
DGlobalSymtab::shallow_move(obj<AAllocator> mm) const noexcept
{
/** can't use std_copy_for because of non-copyable dp<repr_type>
*

View file

@ -89,7 +89,7 @@ namespace xo {
}
DIfElseExpr *
DIfElseExpr::shallow_copy(obj<AAllocator> mm) const noexcept
DIfElseExpr::shallow_move(obj<AAllocator> mm) const noexcept
{
DIfElseExpr * copy = (DIfElseExpr *)mm.alloc_copy((std::byte *)this);

View file

@ -140,7 +140,7 @@ namespace xo {
}
DLambdaExpr *
DLambdaExpr::shallow_copy(obj<AAllocator> mm) const noexcept {
DLambdaExpr::shallow_move(obj<AAllocator> mm) const noexcept {
DLambdaExpr * copy = (DLambdaExpr *)mm.alloc_copy((std::byte *)this);
if (copy) {

View file

@ -119,7 +119,7 @@ namespace xo {
}
DLocalSymtab *
DLocalSymtab::shallow_copy(obj<AAllocator> mm) noexcept
DLocalSymtab::shallow_move(obj<AAllocator> mm) noexcept
{
return mm.std_copy_for(this);
}

View file

@ -120,7 +120,7 @@ namespace xo {
}
DSequenceExpr *
DSequenceExpr::shallow_copy(obj<AAllocator> mm) const noexcept
DSequenceExpr::shallow_move(obj<AAllocator> mm) const noexcept
{
DSequenceExpr * copy = (DSequenceExpr *)mm.alloc_copy((std::byte *)this);

View file

@ -47,7 +47,7 @@ namespace xo {
}
DTypename *
DTypename::shallow_copy(obj<AAllocator> mm) noexcept
DTypename::shallow_move(obj<AAllocator> mm) noexcept
{
return mm.std_copy_for(this);
}

View file

@ -65,7 +65,7 @@ namespace xo {
}
DVarRef *
DVarRef::shallow_copy(obj<AAllocator> mm) const noexcept
DVarRef::shallow_move(obj<AAllocator> mm) const noexcept
{
DVarRef * copy = (DVarRef *)mm.alloc_copy((std::byte *)this);

View file

@ -45,7 +45,7 @@ namespace xo {
}
DVariable *
DVariable::shallow_copy(obj<AAllocator> mm) const noexcept
DVariable::shallow_move(obj<AAllocator> mm) const noexcept
{
DVariable * copy = (DVariable *)mm.alloc_copy((std::byte *)this);

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DApplyExpr::shallow_copy(DApplyExpr & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DApplyExpr::shallow_move(DApplyExpr & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DApplyExpr::forward_children(DApplyExpr & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DConstant::shallow_copy(DConstant & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DConstant::shallow_move(DConstant & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DConstant::forward_children(DConstant & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DDefineExpr::shallow_copy(DDefineExpr & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DDefineExpr::shallow_move(DDefineExpr & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DDefineExpr::forward_children(DDefineExpr & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DGlobalSymtab::shallow_copy(DGlobalSymtab & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DGlobalSymtab::shallow_move(DGlobalSymtab & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DGlobalSymtab::forward_children(DGlobalSymtab & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DIfElseExpr::shallow_copy(DIfElseExpr & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DIfElseExpr::shallow_move(DIfElseExpr & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DIfElseExpr::forward_children(DIfElseExpr & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DLambdaExpr::shallow_copy(DLambdaExpr & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DLambdaExpr::shallow_move(DLambdaExpr & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DLambdaExpr::forward_children(DLambdaExpr & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DLocalSymtab::shallow_copy(DLocalSymtab & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DLocalSymtab::shallow_move(DLocalSymtab & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DLocalSymtab::forward_children(DLocalSymtab & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DSequenceExpr::shallow_copy(DSequenceExpr & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DSequenceExpr::shallow_move(DSequenceExpr & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DSequenceExpr::forward_children(DSequenceExpr & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DTypename::shallow_copy(DTypename & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DTypename::shallow_move(DTypename & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DTypename::forward_children(DTypename & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DVarRef::shallow_copy(DVarRef & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DVarRef::shallow_move(DVarRef & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DVarRef::forward_children(DVarRef & self, obj<ACollector> gc) noexcept -> size_type

View file

@ -22,9 +22,9 @@ namespace xo {
}
auto
IGCObject_DVariable::shallow_copy(DVariable & self, obj<AAllocator> mm) noexcept -> Opaque
IGCObject_DVariable::shallow_move(DVariable & self, obj<AAllocator> mm) noexcept -> Opaque
{
return self.shallow_copy(mm);
return self.shallow_move(mm);
}
auto
IGCObject_DVariable::forward_children(DVariable & self, obj<ACollector> gc) noexcept -> size_type