TransformerContext.ReportDiagnostic Method
ReportDiagnostic(Diagnostic)
Adds a Microsoft.CodeAnalysis.Diagnostic to the user's compilation.
Declaration
public void ReportDiagnostic(Diagnostic diagnostic)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.CodeAnalysis.Diagnostic | diagnostic | The diagnostic that should be added to the compilation |
Remarks
The severity of the diagnostic may cause the compilation to fail, depending on the Compilation settings.