AdditionalFileAnalysisContext Struct
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.
Context for an additional file action. An additional file action can use an AdditionalFileAnalysisContext to report Diagnostics about a non-source AdditionalText document.
public readonly struct AdditionalFileAnalysisContext
type AdditionalFileAnalysisContext = struct
Public Structure AdditionalFileAnalysisContext
- Inheritance
-
AdditionalFileAnalysisContext
Properties
AdditionalFile |
AdditionalText that is the subject of the analysis. |
CancellationToken |
Token to check for requested cancellation of the analysis. |
Compilation |
Compilation being analyzed. |
FilterSpan |
Optional filter span within the AdditionalFile for which to compute diagnostics.
|
Options |
Options specified for the analysis. |
Methods
ReportDiagnostic(Diagnostic) |
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. |