Share via


AnalysisContext.RegisterOperationBlockStartAction Method

Definition

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
Action<OperationBlockStartAnalysisContext>

Action to be executed at the start of semantic analysis of an operation block.

Applies to