class
ASTDiagMapA 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
- auto add(Diagnostic diag, bool& isNew) -> Diagnostic&
- Adds a diagnostic to the map, deduplicating if needed.
- auto coalesce(const SourceManager* sourceManager) -> Diagnostics
- 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.