AnalysisContext.RegisterSyntaxTreeAction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.