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
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "ExpectQDictSsm.hpp"
|
||||
#include "ExpectQLiteralSsm.hpp"
|
||||
#include <xo/stringtable2/String.hpp>
|
||||
#include <xo/alloc2/GCObject.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::print::APrintable;
|
||||
|
|
@ -264,6 +266,13 @@ namespace xo {
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
DExpectQDictSsm::forward_children(obj<ACollector> gc) noexcept
|
||||
{
|
||||
gc.forward_inplace(const_cast<DString **>(&key_));
|
||||
gc.forward_inplace(&dict_);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue