Report(IDiagnostic)
Reports the same diagnostic to the all references in the current context.
Declaration
public void Report(IDiagnostic diagnostic)Parameters
| Type | Name | Description |
|---|---|---|
| IDiagnostic | diagnostic |
Implements
Report(Func<ReferenceDetail, IDiagnostic?>, Func<ReferenceDetail, IDiagnosticLocation?>?)
Reports a different diagnostic for each reference in the current context.
Declaration
public void Report(Func<ReferenceDetail, IDiagnostic?> getDiagnostic, Func<ReferenceDetail, IDiagnosticLocation?>? getLocation = null)Parameters
| Type | Name | Description |
|---|---|---|
| Func<ReferenceDetail, IDiagnostic> | getDiagnostic | A delegate returning a diagnostic or |
| Func<ReferenceDetail, IDiagnosticLocation> | getLocation | An optional delegate returning the location of the diagnostic. If |
Report(IDiagnostic, IDiagnosticLocation)
Reports a parametric diagnostic by specifying its location.
Declaration
public void Report(IDiagnostic diagnostic, IDiagnosticLocation location)Parameters
| Type | Name | Description |
|---|---|---|
| IDiagnostic | diagnostic | |
| IDiagnosticLocation | location |