Click or drag to resize

CompilationStartAnalysisContext Class



Context for a compilation start action. A compilation start action can use a CompilationStartAnalysisContext to register actions to be executed at any of:
  • compilation end,
  • completion of parsing a code document,
  • completion of semantic analysis of a code document,
  • completion of semantic analysis of a symbol,
  • start of semantic analysis of a method body or an expression appearing outside a method body,
  • completion of semantic analysis of a method body or an expression appearing outside a method body, or
  • completion of semantic analysis of a syntax node.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.DiagnosticsCompilationStartAnalysisContext

Namespace:  Microsoft.CodeAnalysis.Diagnostics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class CompilationStartAnalysisContext

The CompilationStartAnalysisContext type exposes the following members.

Constructors
  NameDescription
Protected methodCompilationStartAnalysisContext
Initializes a new instance of the CompilationStartAnalysisContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
Token to check for requested cancellation of the analysis.
Public propertyCompilation
Compilation that is the subject of the analysis.
Public propertyOptions
Options specified for the analysis.
Top
Methods
  NameDescription
Public methodRegisterCodeBlockAction
Public methodRegisterCodeBlockStartActionTLanguageKindEnum
Public methodRegisterCompilationEndAction
Public methodRegisterOperationAction(ActionT, Void)
Public methodRegisterOperationBlockAction
Public methodRegisterOperationBlockStartAction
Public methodRegisterSemanticModelAction
Public methodRegisterSymbolAction(ActionT, Void)
Public methodRegisterSyntaxNodeActionTLanguageKindEnum(ActionT, Void)
Public methodRegisterSyntaxTreeAction
Public methodTryGetValueTValue(SourceText, SourceTextValueProviderTValue, TValue)
Attempts to compute or get the cached value provided by the given valueProvider for the given text. Note that the pair {valueProvider, text} acts as the key. Reusing the same valueProvider instance across analyzer actions and/or analyzer instances can improve the overall analyzer performance by avoiding recomputation of the values.
Public methodTryGetValueTValue(SyntaxTree, SyntaxTreeValueProviderTValue, TValue)
Attempts to compute or get the cached value provided by the given valueProvider for the given tree. Note that the pair {valueProvider, tree} acts as the key. Reusing the same valueProvider instance across analyzer actions and/or analyzer instances can improve the overall analyzer performance by avoiding recomputation of the values.
Top
See Also