slang/ast/ASTVisitor.h file

AST traversal.

Namespaces

namespace slang
Root namespace.
namespace slang::ast
The SystemVerilog AST.

Classes

struct slang::ast::InvalidSymbol
A placeholder symbol type that represents an unknown or invalid symbol.
template<typename TDerived, VisitFlags Flags = VisitFlags::Symbols>
class slang::ast::ASTVisitor
A base class for AST visitors.

Enums

enum class VisitFlags { Symbols = 0, Statements = 1 << 0, Expressions = 1 << 1, Bad = 1 << 2, Canonical = 1 << 3, AllGood = Symbols | Statements | Expressions, AllCanonical = AllGood | Canonical, StatementsCanonical = Symbols | Statements | Canonical }
Flags that control what kinds of things ASTVisitor will visit.

Functions

template<typename... Functions>
auto makeVisitor(Functions... funcs)
Creates an ASTVisitor out of the provided handler functions.