template<typename TDerived>
slang::SyntaxVisitor class

Contents

Use this type as a base class for syntax tree visitors. It will default to traversing all children of each node. Add implementations for any specific node types you want to handle.

Derived classes

template<typename TDerived>
class SyntaxRewriter

Public functions

template<typename T>
void visit(const T& t)
Visit the provided node, of static type T.
void visitDefault(const SyntaxNode& node)
void visitInvalid(const SyntaxNode&)
The default handler invoked when visiting an invalid node.

Function documentation

template<typename TDerived>
void slang::SyntaxVisitor<TDerived>::visitDefault(const SyntaxNode& node)

The default handler invoked when no visit() method is overriden for a particular type. Will visit all child nodes by default.