AnalysisContext.RegisterSyntaxTreeAction Method

Definition

Register an action to be executed at completion of parsing of a code document. A syntax tree action reports Diagnostics about the SyntaxTree of a document.

public:
 abstract void RegisterSyntaxTreeAction(Action<Microsoft::CodeAnalysis::Diagnostics::SyntaxTreeAnalysisContext> ^ action);
public abstract void RegisterSyntaxTreeAction (Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext> action);
abstract member RegisterSyntaxTreeAction : Action<Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext> -> unit
Public MustOverride Sub RegisterSyntaxTreeAction (action As Action(Of SyntaxTreeAnalysisContext))

Parameters

action
Action<SyntaxTreeAnalysisContext>

Action to be executed at completion of parsing of a document.

Applies to