CompilationStartAnalysisContext.RegisterOperationBlockStartAction Method
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.
Register an action to be executed at the start of semantic analysis of a method body or an expression appearing outside a method body. An operation block start action can register other actions and/or collect state information to be used in diagnostic analysis, but cannot itself report any Diagnostics.
public:
virtual void RegisterOperationBlockStartAction(Action<Microsoft::CodeAnalysis::Diagnostics::OperationBlockStartAnalysisContext ^> ^ action);
public virtual void RegisterOperationBlockStartAction (Action<Microsoft.CodeAnalysis.Diagnostics.OperationBlockStartAnalysisContext> action);
abstract member RegisterOperationBlockStartAction : Action<Microsoft.CodeAnalysis.Diagnostics.OperationBlockStartAnalysisContext> -> unit
override this.RegisterOperationBlockStartAction : Action<Microsoft.CodeAnalysis.Diagnostics.OperationBlockStartAnalysisContext> -> unit
Public Overridable Sub RegisterOperationBlockStartAction (action As Action(Of OperationBlockStartAnalysisContext))
Parameters
Action to be executed at the start of semantic analysis of an operation block.