MetalamaAPI documentationAdvanced APIMetalama.​CompilerTransformer­ContextReport­Diagnostic
Open sandboxFocus

TransformerContext.ReportDiagnostic Method

ReportDiagnostic(Diagnostic)

Adds a Diagnostic to the user's compilation.

Declaration
public void ReportDiagnostic(Diagnostic diagnostic)
Parameters
Type Name Description
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.