class
#include <slang/ast/ASTDiagMap.h>
ASTDiagMap A helper class that maintains a map of issued diagnostics keyed by their code and location to aid in deduplicating diagnostics across an AST hierarchy.
Public functions
- Diagnostic& add(Diagnostic diag, bool& isNew)
- Adds a diagnostic to the map, deduplicating if needed.
- Diagnostics coalesce(const SourceManager* sourceManager)
- Coalesces all issued diagnostics into a set that is ready for presenting.
Function documentation
Diagnostics slang:: ast:: ASTDiagMap:: coalesce(const SourceManager* sourceManager)
Coalesces all issued diagnostics into a set that is ready for presenting.
If the sourceManager is provided it will be used to sort the diagnostics.