Click or drag to resize

SyntaxNodeAnalysisContext Class



Context for a syntax node action. A syntax node action can use a SyntaxNodeAnalysisContext to report Diagnostics for a SyntaxNode.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.DiagnosticsSyntaxNodeAnalysisContext

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 SyntaxNodeAnalysisContext : ValueType

The SyntaxNodeAnalysisContext type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCancellationToken
Token to check for requested cancellation of the analysis.
Public propertyCompilation
Compilation containing the SyntaxNode.
Public propertyContainingSymbol
ISymbol for the declaration containing the syntax node.
Public propertyNode
SyntaxNode that is the subject of the analysis.
Public propertyOptions
Options specified for the analysis.
Public propertySemanticModel
SemanticModel that can provide semantic information about the SyntaxNode.
Top
Methods
  NameDescription
Public methodReportDiagnostic
Report a Diagnostic about a SyntaxNode.
Top
See Also