Click or drag to resize

SymbolAnalysisContext Class



Context for a symbol action. A symbol action can use a SymbolAnalysisContext to report Diagnostics about an ISymbol.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.DiagnosticsSymbolAnalysisContext

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

The SymbolAnalysisContext type exposes the following members.

Constructors
  NameDescription
Public methodSymbolAnalysisContext
Initializes a new instance of the SymbolAnalysisContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
Token to check for requested cancellation of the analysis.
Public propertyCompilation
Compilation containing the ISymbol.
Public propertyOptions
Options specified for the analysis.
Public propertySymbol
ISymbol that is the subject of the analysis.
Top
Methods
  NameDescription
Public methodReportDiagnostic
Report a Diagnostic about an ISymbol.
Top
See Also