Share via


SyntaxWalker.VisitTrivia(SyntaxTrivia) Method

Definition

Called when the walker visits a trivia syntax. This method may be overridden if subclasses want to handle the token. Overrides should call back into this base method if they want the children of this trivia syntax to be visited.

protected:
 virtual void VisitTrivia(Microsoft::CodeAnalysis::SyntaxTrivia trivia);
protected virtual void VisitTrivia (Microsoft.CodeAnalysis.SyntaxTrivia trivia);
abstract member VisitTrivia : Microsoft.CodeAnalysis.SyntaxTrivia -> unit
override this.VisitTrivia : Microsoft.CodeAnalysis.SyntaxTrivia -> unit
Protected Overridable Sub VisitTrivia (trivia As SyntaxTrivia)

Parameters

trivia
SyntaxTrivia

The current trivia syntax that the walker is visiting.

Applies to