slang::syntax::ListChildInfo struct

Reflection metadata for a single list-typed child slot of a SyntaxNode.

Used by SyntaxRewriter to identify list members during cloning so that list-level edits (insertAtFront/insertAtBack, separator token edits) can be applied generically without per-type helper methods.

Public variables

void* listPtr
Address of the list member; used as a stable identity key for list-level edits in the rewriter.
size_t flatStart
Flat child index at which this list begins.
size_t size
Number of flat child slots this list currently contributes.
void(* resetAll
Type-erased thunk that replaces the list's contents with the provided children, allocating in alloc.

Variable documentation

void(* slang::syntax::ListChildInfo::resetAll

Type-erased thunk that replaces the list's contents with the provided children, allocating in alloc.

Only meaningful when applied to a mutable destination node.