template<typename T>
slang::syntax::SyntaxList class

A syntax node that represents a list of child syntax nodes.

Base classes

class SyntaxListBase
A base class for syntax nodes that represent a list of items.

Private functions

TokenOrSyntax getChild(size_t index) final
Gets the child (token or node) at the given index.
ConstTokenOrSyntax getChild(size_t index) const final
Gets the child (token or node) at the given index.
void setChild(size_t index, TokenOrSyntax child) final
Sets the child (token or node) at the given index.
SyntaxListBase* clone(BumpAllocator& alloc) const final
Clones the list into a new node using the provided allocator.
void resetAll(BumpAllocator& alloc, std::span<const TokenOrSyntax> children) final
Overwrites all children with the new set of provided children (and making a copy with the provided allocator).