Click or drag to resize

SyntaxTreeAnalysisContext Class



Context for a syntax tree action. A syntax tree action can use a SyntaxTreeAnalysisContext to report Diagnostics about a SyntaxTree for a code document.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.DiagnosticsSyntaxTreeAnalysisContext

Namespace:  Microsoft.CodeAnalysis.Diagnostics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class SyntaxTreeAnalysisContext : ValueType

The SyntaxTreeAnalysisContext type exposes the following members.

Constructors
  NameDescription
Public methodSyntaxTreeAnalysisContext
Initializes a new instance of the SyntaxTreeAnalysisContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
Token to check for requested cancellation of the analysis.
Public propertyOptions
Options specified for the analysis.
Public propertyTree
SyntaxTree that is the subject of the analysis.
Top
Methods
  NameDescription
Public methodReportDiagnostic
Report a Diagnostic about a SyntaxTree.
Top
See Also