Report(IDiagnostic)
Reports a diagnostic to the default location of this scoped sink.
Declaration
public void Report(IDiagnostic diagnostic)Parameters
| Type | Name | Description |
|---|---|---|
| IDiagnostic | diagnostic | The diagnostic to report, created from a DiagnosticDefinition or DiagnosticDefinition<T>. |
Implements
Report(IDiagnostic, IDiagnosticLocation?)
Reports a diagnostic to a specific location instead of the default location.
Declaration
public void Report(IDiagnostic diagnostic, IDiagnosticLocation? location)Parameters
| Type | Name | Description |
|---|---|---|
| IDiagnostic | diagnostic | The diagnostic to report. |
| IDiagnosticLocation | location | The location where the diagnostic should be reported. |