Partager via


SymbolStartAnalysisContext.RegisterSyntaxNodeAction Method

Definition

Overloads

RegisterSyntaxNodeAction<TLanguageKindEnum>(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<TLanguageKindEnum>(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<TLanguageKindEnum>(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<TLanguageKindEnum> (Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> action, System.Collections.Immutable.ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
abstract member RegisterSyntaxNodeAction : Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> * System.Collections.Immutable.ImmutableArray<'LanguageKindEnum (requires 'LanguageKindEnum : struct)> -> unit (requires 'LanguageKindEnum : struct)
Public MustOverride Sub RegisterSyntaxNodeAction(Of TLanguageKindEnum As Structure) (action As Action(Of SyntaxNodeAnalysisContext), syntaxKinds As ImmutableArray(Of TLanguageKindEnum))

Type Parameters

TLanguageKindEnum

Enum type giving the syntax node kinds of the source language for which the action applies.

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<TLanguageKindEnum>(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<TLanguageKindEnum> (Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct;
member this.RegisterSyntaxNodeAction : Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext> * 'LanguageKindEnum[] -> unit (requires 'LanguageKindEnum : struct)
Public Sub RegisterSyntaxNodeAction(Of TLanguageKindEnum As Structure) (action As Action(Of SyntaxNodeAnalysisContext), ParamArray syntaxKinds As TLanguageKindEnum())

Type Parameters

TLanguageKindEnum

Enum type giving the syntax node kinds of the source language for which the action applies.

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