OperationBlockStartAnalysisContext.RegisterOperationAction Method

Definition

Overloads

RegisterOperationAction(Action<OperationAnalysisContext>, OperationKind[])

Register an action to be executed at completion of semantic analysis of an operation with an appropriate Kind. An operation action can report Diagnostics about IOperations, and can also collect state information to be used by other operation actions or operation block end actions.

RegisterOperationAction(Action<OperationAnalysisContext>, ImmutableArray<OperationKind>)

Register an action to be executed at completion of semantic analysis of an IOperation with an appropriate Kind. An operation action can report Diagnostics about IOperations, and can also collect state information to be used by other operation actions or operation block end actions.

RegisterOperationAction(Action<OperationAnalysisContext>, OperationKind[])

Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs

Register an action to be executed at completion of semantic analysis of an operation with an appropriate Kind. An operation action can report Diagnostics about IOperations, and can also collect state information to be used by other operation actions or operation block end actions.

public:
 void RegisterOperationAction(Action<Microsoft::CodeAnalysis::Diagnostics::OperationAnalysisContext> ^ action, ... cli::array <Microsoft::CodeAnalysis::OperationKind> ^ operationKinds);
public void RegisterOperationAction (Action<Microsoft.CodeAnalysis.Diagnostics.OperationAnalysisContext> action, params Microsoft.CodeAnalysis.OperationKind[] operationKinds);
member this.RegisterOperationAction : Action<Microsoft.CodeAnalysis.Diagnostics.OperationAnalysisContext> * Microsoft.CodeAnalysis.OperationKind[] -> unit
Public Sub RegisterOperationAction (action As Action(Of OperationAnalysisContext), ParamArray operationKinds As OperationKind())

Parameters

action
Action<OperationAnalysisContext>

Action to be executed at completion of semantic analysis of an IOperation.

operationKinds
OperationKind[]

Action will be executed only if an IOperation's Kind matches one of the operation kind values.

Applies to

RegisterOperationAction(Action<OperationAnalysisContext>, ImmutableArray<OperationKind>)

Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs
Source:
DiagnosticAnalysisContext.cs

Register an action to be executed at completion of semantic analysis of an IOperation with an appropriate Kind. An operation action can report Diagnostics about IOperations, and can also collect state information to be used by other operation actions or operation block end actions.

public:
 abstract void RegisterOperationAction(Action<Microsoft::CodeAnalysis::Diagnostics::OperationAnalysisContext> ^ action, System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::OperationKind> operationKinds);
public abstract void RegisterOperationAction (Action<Microsoft.CodeAnalysis.Diagnostics.OperationAnalysisContext> action, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.OperationKind> operationKinds);
abstract member RegisterOperationAction : Action<Microsoft.CodeAnalysis.Diagnostics.OperationAnalysisContext> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.OperationKind> -> unit
Public MustOverride Sub RegisterOperationAction (action As Action(Of OperationAnalysisContext), operationKinds As ImmutableArray(Of OperationKind))

Parameters

action
Action<OperationAnalysisContext>

Action to be executed at completion of semantic analysis of an IOperation.

operationKinds
ImmutableArray<OperationKind>

Action will be executed only if an IOperation's Kind matches one of the operation kind values.

Applies to