refactor: void return type for Collector.forward_children()

This commit is contained in:
Roland Conybeare 2026-04-04 16:54:46 -04:00
commit 6b8ac3dcd2
24 changed files with 42 additions and 34 deletions

View file

@ -44,7 +44,7 @@ namespace xo {
dp<repr_type> type_map, DArray * types);
/** move constructor (needed because dp<> deletes copy ctor) **/
DGlobalSymtab(DGlobalSymtab && other) = default;
DGlobalSymtab(DGlobalSymtab && other);
/** create instance.
* Use memory from @p fixed_mm for @ref map_.

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DDefineExpr & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DDefineExpr & self, obj<ACollector> gc) noexcept;
static void forward_children(DDefineExpr & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DApplyExpr & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DApplyExpr & self, obj<ACollector> gc) noexcept;
static void forward_children(DApplyExpr & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DConstant & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DConstant & self, obj<ACollector> gc) noexcept;
static void forward_children(DConstant & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DIfElseExpr & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DIfElseExpr & self, obj<ACollector> gc) noexcept;
static void forward_children(DIfElseExpr & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DLambdaExpr & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DLambdaExpr & self, obj<ACollector> gc) noexcept;
static void forward_children(DLambdaExpr & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DSequenceExpr & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DSequenceExpr & self, obj<ACollector> gc) noexcept;
static void forward_children(DSequenceExpr & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DVarRef & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DVarRef & self, obj<ACollector> gc) noexcept;
static void forward_children(DVarRef & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DGlobalSymtab & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DGlobalSymtab & self, obj<ACollector> gc) noexcept;
static void forward_children(DGlobalSymtab & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DLocalSymtab & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DLocalSymtab & self, obj<ACollector> gc) noexcept;
static void forward_children(DLocalSymtab & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -55,7 +55,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DTypename & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DTypename & self, obj<ACollector> gc) noexcept;
static void forward_children(DTypename & self, obj<ACollector> gc) noexcept;
///@}
};

View file

@ -57,7 +57,7 @@ namespace xo {
/** move instance using allocator **/
static Opaque shallow_move(DVariable & self, obj<ACollector> gc) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DVariable & self, obj<ACollector> gc) noexcept;
static void forward_children(DVariable & self, obj<ACollector> gc) noexcept;
///@}
};