SyntaxWalker.VisitTrivia(SyntaxTrivia) 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.
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
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.