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:
parent
31df51ac8e
commit
d14f119a37
102 changed files with 258 additions and 167 deletions
|
|
@ -10,9 +10,10 @@ namespace xo {
|
|||
|
||||
namespace scm {
|
||||
void
|
||||
ReaderResult::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
ReaderResult::visit_gco_children(VisitReason reason,
|
||||
obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
gc.visit_poly_child(&expr_);
|
||||
gc.visit_poly_child(reason, &expr_);
|
||||
}
|
||||
|
||||
// ----- SchematikaReader -----
|
||||
|
|
@ -208,12 +209,13 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
SchematikaReader::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
SchematikaReader::visit_gco_children(VisitReason reason,
|
||||
obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
// tokenizer doesn't contain any gc-aware pointers.
|
||||
|
||||
parser_.visit_gco_children(gc);
|
||||
result_.visit_gco_children(gc);
|
||||
parser_.visit_gco_children(reason, gc);
|
||||
result_.visit_gco_children(reason, gc);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue