SymbolAnalysisContext Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
|
FilterTree |
Optional filter tree being analyzed.
|
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. |