refactor: + narrower interface for gc pointer forwarding

add AGCObjectVisitor, instead of requiring ACollector.
This commit is contained in:
Roland Conybeare 2026-04-05 23:53:02 -04:00
commit 801bb9e39d
266 changed files with 952 additions and 947 deletions

View file

@ -106,12 +106,12 @@ namespace xo {
}
void
ParserResult::forward_children(obj<ACollector> gc) noexcept
ParserResult::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
{
// {result_type_, error_src_fn_}: pod, ignore
gc.forward_pivot_inplace(&result_expr_);
gc.forward_inplace(const_cast<DString **>(&error_description_));
gc.visit_poly_child(&result_expr_);
gc.visit_child(&error_description_);
}
} /*namespace scm*/
} /*namespace xo*/