Click or drag to resize

CodeBlockAnalysisContext Class



Context for a code block action or code block end action. A code block action or code block end action can use a CodeBlockAnalysisContext to report Diagnostics about a code block.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.DiagnosticsCodeBlockAnalysisContext

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

The CodeBlockAnalysisContext type exposes the following members.

Constructors
  NameDescription
Public methodCodeBlockAnalysisContext
Initializes a new instance of the CodeBlockAnalysisContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
Token to check for requested cancellation of the analysis.
Public propertyCodeBlock
Code block that is the subject of the analysis.
Public propertyOptions
Options specified for the analysis.
Public propertyOwningSymbol
ISymbol for which the code block provides a definition or value.
Public propertySemanticModel
SemanticModel that can provide semantic information about the SyntaxNodes in the code block.
Top
Methods
  NameDescription
Public methodReportDiagnostic
Report a Diagnostic about a code block.
Top
See Also