OperationBlockAnalysisContext 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 an operation block action or operation block end action. An operation block action or operation block end action can use an OperationAnalysisContext to report Diagnostics about an operation block.
public value class OperationBlockAnalysisContext
public struct OperationBlockAnalysisContext
public readonly struct OperationBlockAnalysisContext
type OperationBlockAnalysisContext = struct
Public Structure OperationBlockAnalysisContext
- Inheritance
-
OperationBlockAnalysisContext
Constructors
OperationBlockAnalysisContext(ImmutableArray<IOperation>, ISymbol, Compilation, AnalyzerOptions, Action<Diagnostic>, Func<Diagnostic, Boolean>, CancellationToken) |
Properties
CancellationToken |
Token to check for requested cancellation of the analysis. |
Compilation |
Compilation containing the OperationBlocks. |
FilterSpan |
Optional filter span within the FilterTree for which to compute diagnostics.
|
FilterTree |
Syntax tree for the OperationBlocks being analyzed. |
IsGeneratedCode |
Indicates if the OperationBlocks is generated code. |
OperationBlocks |
One or more operation blocks that are the subject of the analysis. This includes all blocks associated with the OwningSymbol, such as method body, field/property/constructor/parameter initializer(s), attributes, etc. |
Options |
Options specified for the analysis. |
OwningSymbol |
ISymbol for which the OperationBlocks provides a definition or value. |
Methods
GetControlFlowGraph(IOperation) |
Gets a ControlFlowGraph for a given |
ReportDiagnostic(Diagnostic) |
Report a Diagnostic about a code block. |