Represents a compiler or analyzer diagnostic that can be selectively suppressed using filtered suppressions.
Namespace: Metalama.Framework.Diagnostics
Assembly: Metalama.Framework.dll
Syntax
[InternalImplement]
[CompileTime]
public interface ISuppressibleDiagnosticRemarks
This interface provides access to diagnostic properties that can be used in suppression filters created with WithFilter(Func<ISuppressibleDiagnostic, bool>). When a suppression has a filter, each diagnostic matching the suppression ID is passed to the filter predicate as an ISuppressibleDiagnostic, allowing the filter to inspect the diagnostic's message, arguments, or location to decide whether to suppress it.
Properties
| Name | Description |
|---|---|
| Arguments | Gets the arguments passed to the diagnostic message formatter. |
| Id | Gets the diagnostic ID (e.g., |
| InvariantMessage | Gets the diagnostic message formatted in the invariant (English) culture. |
| Span | Gets the source location (file, line, and column) of the diagnostic, when available. |