xo-reader2: + SyntaxStateMachine.forward_children method
Support gc traversal with goal of making ParserStateMachine a gc root
This commit is contained in:
parent
b0b14d4e41
commit
263999efdb
92 changed files with 633 additions and 43 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "ParenSsm.hpp"
|
||||
#include "ExpectExprSsm.hpp"
|
||||
#include "syntaxstatetype.hpp"
|
||||
#include <xo/alloc2/GCObject.hpp>
|
||||
#include <string_view>
|
||||
|
||||
namespace xo {
|
||||
|
|
@ -457,6 +458,11 @@ namespace xo {
|
|||
refrtag("expect", this->get_expect_str()));
|
||||
}
|
||||
|
||||
void
|
||||
DParenSsm::forward_children(obj<ACollector> gc) noexcept
|
||||
{
|
||||
gc.forward_pivot_inplace(&expr_);
|
||||
}
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue