SymbolAnalysisContext Struct

Definition

Context for a symbol action. A symbol action can use a SymbolAnalysisContext to report Diagnostics about an ISymbol.

public value class SymbolAnalysisContext
public struct SymbolAnalysisContext
public readonly struct SymbolAnalysisContext
type SymbolAnalysisContext = struct
Public Structure SymbolAnalysisContext
Inheritance
SymbolAnalysisContext

Constructors

SymbolAnalysisContext(ISymbol, Compilation, AnalyzerOptions, Action<Diagnostic>, Func<Diagnostic,Boolean>, CancellationToken)

Properties

CancellationToken

Token to check for requested cancellation of the analysis.

Compilation

Compilation containing the ISymbol.

FilterSpan

Optional filter span within the FilterTree for which to compute diagnostics. null if we are analyzing the entire FilterTree or the entire compilation.

FilterTree

Optional filter tree being analyzed. null if we are analyzing the entire compilation.

IsGeneratedCode

Indicates if the Symbol is generated code.

Options

Options specified for the analysis.

Symbol

ISymbol that is the subject of the analysis.

Methods

ReportDiagnostic(Diagnostic)

Report a Diagnostic about an ISymbol.

Applies to