Share via


SyntaxWalker.VisitToken(SyntaxToken) Method

Definition

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

protected:
 virtual void VisitToken(Microsoft::CodeAnalysis::SyntaxToken token);
protected virtual void VisitToken (Microsoft.CodeAnalysis.SyntaxToken token);
abstract member VisitToken : Microsoft.CodeAnalysis.SyntaxToken -> unit
override this.VisitToken : Microsoft.CodeAnalysis.SyntaxToken -> unit
Protected Overridable Sub VisitToken (token As SyntaxToken)

Parameters

token
SyntaxToken

The current token that the walker is visiting.

Applies to