slang/syntax/SyntaxVisitor.h file

Syntax tree visitor support.

Namespaces

namespace slang
Root namespace.
namespace slang::syntax
Syntax tree manipulation.

Classes

template<typename TDerived>
struct slang::syntax::SyntaxVisitor
Use this type as a base class for syntax tree visitors.
struct slang::syntax::AllSyntaxVisitor
Simple visitors with kinds that are left to the user to evaluate.
template<typename TDerived>
class slang::syntax::SyntaxRewriter
A helper class that assists in rewriting syntax trees – useful for automated refactoring tools.

Functions

template<typename... Functions>
auto makeSyntaxVisitor(Functions... funcs) -> auto
Creates a SyntaxVisitor out of the provided handler functions.