Click or drag to resize

OperationAnalysisContext Class



Context for an operation action. An operation action can use an OperationAnalysisContext to report Diagnostics for an IOperation.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.DiagnosticsOperationAnalysisContext

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

The OperationAnalysisContext type exposes the following members.

Constructors
  NameDescription
Public methodOperationAnalysisContext
Initializes a new instance of the OperationAnalysisContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
Token to check for requested cancellation of the analysis.
Public propertyCompilation
Compilation containing the IOperation.
Public propertyContainingSymbol
ISymbol for the declaration containing the operation.
Public propertyOperation
IOperation that is the subject of the analysis.
Public propertyOptions
Options specified for the analysis.
Top
Methods
  NameDescription
Public methodReportDiagnostic
Report a Diagnostic about a SyntaxNode.
Top
See Also