Open sandboxFocus

Class DiagnosticDefinition

Defines a diagnostic that does not accept any parameters. For a diagnostic that accepts parameters, use DiagnosticDefinition<T>.

Inheritance
DiagnosticDefinition
Namespace: Metalama.Framework.Diagnostics
Assembly: Metalama.Framework.dll
Syntax
public sealed class DiagnosticDefinition : DiagnosticDefinition<None>, IDiagnosticDefinition, IDiagnostic

Constructors

Name Description
DiagnosticDefinition(string, Severity, string, string?, string?)

Methods

Name Description
WithCodeFixes(params CodeFix[])

Adds a set of code fixes to the current instance, and returns the current augmented instance. To create a one-step code fix, use the CodeFixFactory class.

Extension Methods

See Also