AdditionalFileAnalysisContext.ReportDiagnostic(Diagnostic) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Report a diagnostic for the given AdditionalFile. A diagnostic in a non-source document should be created with a non-source Location, which can be created using Create(String, TextSpan, LinePositionSpan) API.
public void ReportDiagnostic (Microsoft.CodeAnalysis.Diagnostic diagnostic);
member this.ReportDiagnostic : Microsoft.CodeAnalysis.Diagnostic -> unit
Public Sub ReportDiagnostic (diagnostic As Diagnostic)
Parameters
- diagnostic
- Diagnostic