xo-reader2: + SyntaxStateMachine.forward_children method
Support gc traversal with goal of making ParserStateMachine a gc root
This commit is contained in:
parent
ed3e26e718
commit
3af72fec64
91 changed files with 626 additions and 39 deletions
|
|
@ -32,6 +32,7 @@ namespace xo {
|
|||
|
||||
class ParserResult {
|
||||
public:
|
||||
using ACollector = xo::mm::ACollector;
|
||||
using ppindentinfo = xo::print::ppindentinfo;
|
||||
|
||||
public:
|
||||
|
|
@ -67,6 +68,9 @@ namespace xo {
|
|||
/** pretty-printing support **/
|
||||
bool pretty(const ppindentinfo & ppii) const;
|
||||
|
||||
/** gc support: forward gc-eligible children **/
|
||||
void forward_children(obj<ACollector> gc) noexcept;
|
||||
|
||||
public:
|
||||
/** none|expression|error_description
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue