SyntaxTreeAnalysisContext 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 a syntax tree action. A syntax tree action can use a SyntaxTreeAnalysisContext to report Diagnostics about a SyntaxTree for a code document.
public value class SyntaxTreeAnalysisContext
public struct SyntaxTreeAnalysisContext
public readonly struct SyntaxTreeAnalysisContext
type SyntaxTreeAnalysisContext = struct
Public Structure SyntaxTreeAnalysisContext
- Inheritance
-
SyntaxTreeAnalysisContext
Constructors
SyntaxTreeAnalysisContext(SyntaxTree, AnalyzerOptions, Action<Diagnostic>, Func<Diagnostic,Boolean>, CancellationToken) |
Properties
CancellationToken |
Token to check for requested cancellation of the analysis. |
FilterSpan |
Optional filter span within the Tree for which to compute diagnostics.
|
IsGeneratedCode |
Indicates if the Tree is generated code. |
Options |
Options specified for the analysis. |
Tree |
SyntaxTree that is the subject of the analysis. |
Methods
ReportDiagnostic(Diagnostic) |
Report a Diagnostic about a SyntaxTree. |