xo-interpreter2 stack: + reason arg to visit_gco_children()

Helps streamline DX1Collector in xo-gc/.
Want both forward and verify entry points for the same
representation.
This commit is contained in:
Roland Conybeare 2026-04-10 01:10:03 -04:00
commit d14f119a37
102 changed files with 258 additions and 167 deletions

View file

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