#include <slang/syntax/SyntaxNode.h>
template<typename T>
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
-
auto getChild(size_
t index) -> TokenOrSyntax final - Gets the child (token or node) at the given index.
-
auto getChild(size_
t index) const -> ConstTokenOrSyntax 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.
- auto clone(BumpAllocator& alloc) const -> SyntaxListBase* 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).