Udostępnij za pośrednictwem


CodeBlockStartAnalysisContext<TLanguageKindEnum>.RegisterSyntaxNodeAction Method

Definition

Overloads

RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext>, ImmutableArray<TLanguageKindEnum>)

Register an action to be executed at completion of semantic analysis of a SyntaxNode with an appropriate Kind. A syntax node action can report Diagnostics about SyntaxNodes, and can also collect state information to be used by other syntax node actions or code block end actions.

RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext>, TLanguageKindEnum[])

Register an action to be executed at completion of semantic analysis of a SyntaxNode with an appropriate Kind. A syntax node action can report Diagnostics about SyntaxNodes, and can also collect state information to be used by other syntax node actions or code block end actions.

RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext>, ImmutableArray<TLanguageKindEnum>)

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 a SyntaxNode with an appropriate Kind. A syntax node action can report Diagnostics about SyntaxNodes, and can also collect state information to be used by other syntax node actions or code block end actions.

public:
 abstract void RegisterSyntaxNodeAction(Action<Microsoft::CodeAnalysis::Diagnostics::SyntaxNodeAnalysisContext> ^ action, System::Collections::Immutable::ImmutableArray<TLanguageKindEnum> syntaxKinds);
public abstract void RegisterSyntaxNodeAction (Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> action, System.Collections.Immutable.ImmutableArray<TLanguageKindEnum> syntaxKinds);
abstract member RegisterSyntaxNodeAction : Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> * System.Collections.Immutable.ImmutableArray<'LanguageKindEnum (requires 'LanguageKindEnum : struct)> -> unit
Public MustOverride Sub RegisterSyntaxNodeAction (action As Action(Of SyntaxNodeAnalysisContext), syntaxKinds As ImmutableArray(Of TLanguageKindEnum))

Parameters

action
Action<SyntaxNodeAnalysisContext>

Action to be executed at completion of semantic analysis of a SyntaxNode.

syntaxKinds
ImmutableArray<TLanguageKindEnum>

Action will be executed only if a SyntaxNode's Kind matches one of the syntax kind values.

Applies to

RegisterSyntaxNodeAction(Action<SyntaxNodeAnalysisContext>, TLanguageKindEnum[])

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 a SyntaxNode with an appropriate Kind. A syntax node action can report Diagnostics about SyntaxNodes, and can also collect state information to be used by other syntax node actions or code block end actions.

public:
 void RegisterSyntaxNodeAction(Action<Microsoft::CodeAnalysis::Diagnostics::SyntaxNodeAnalysisContext> ^ action, ... cli::array <TLanguageKindEnum> ^ syntaxKinds);
public void RegisterSyntaxNodeAction (Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> action, params TLanguageKindEnum[] syntaxKinds);
member this.RegisterSyntaxNodeAction : Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> * 'LanguageKindEnum[] -> unit
Public Sub RegisterSyntaxNodeAction (action As Action(Of SyntaxNodeAnalysisContext), ParamArray syntaxKinds As TLanguageKindEnum())

Parameters

action
Action<SyntaxNodeAnalysisContext>

Action to be executed at completion of semantic analysis of a SyntaxNode.

syntaxKinds
TLanguageKindEnum[]

Action will be executed only if a SyntaxNode's Kind matches one of the syntax kind values.

Applies to