Open sandboxFocus

Interface ISuppression

Represents an instance of a diagnostic suppression that can be applied to declarations.

Namespace: Metalama.Framework.Diagnostics
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
[InternalImplement]
public interface ISuppression
Remarks

This interface represents a suppression instance, which may be a SuppressionDefinition directly, or a filtered suppression created by WithFilter(Func<ISuppressibleDiagnostic, bool>).

Suppressions are applied using Suppress(ISuppression) or Suppress(ISuppression, IDeclaration, IDiagnosticSource) to prevent specific diagnostics from being reported within a declaration scope.

Properties

Name Description
Definition

Gets the SuppressionDefinition that defines which diagnostic ID to suppress.

Filter

Gets an optional filter predicate that determines which diagnostics should be suppressed.

Extension Methods

See Also