slang::analysis::AnalysisContext class

Holds various bits of state needed to perform analysis.

Constructors, destructors, conversion operators

AnalysisContext(AnalysisManager& manager) explicit
Constructs a new AnalysisContext object.

Public functions

auto addDiag(const ast::Symbol& symbol, DiagCode code, SourceLocation location) -> Diagnostic&
Issues a new diagnostic.
auto addDiag(const ast::Symbol& symbol, DiagCode code, SourceRange sourceRange) -> Diagnostic&
Issues a new diagnostic.

Public variables

not_null<AnalysisManager*> manager
The analysis manager that owns this context.
BumpAllocator alloc
An allocator used for analysis-specific data structures.
Diagnostics diagnostics
Diagnostics collected during analysis.