Represents an instance of a diagnostic, including its parameters and its optional code fixes.
Namespace: Metalama.Framework.Diagnostics
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IDiagnostic
Properties
Name | Description |
---|---|
Arguments | Gets the arguments of the current diagnostic. |
CodeFixes | Gets the set of code fixes for the current diagnostic. |
Definition | Gets the IDiagnosticDefinition from which the current diagnostic has been created. |
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. |