Open sandboxFocus

Method Report

Report(IDiagnostic, IDiagnosticLocation?, IDiagnosticSource)

Reports a diagnostic at a specific location.

Declaration
void Report(IDiagnostic diagnostic, IDiagnosticLocation? location, IDiagnosticSource source)
Parameters
Type Name Description
IDiagnostic diagnostic

The diagnostic to report, typically created from a DiagnosticDefinition.

IDiagnosticLocation location

The location where the diagnostic should be reported, or null to use a default location.

IDiagnosticSource source

The source reporting the diagnostic.