Click or drag to resize

VisualBasicSyntaxNodeGetLeadingTrivia Method

Get the preceding trivia nodes of this node. If this node is a token, returns the preceding trivia associated with this node. If this is a non-terminal, returns the preceding trivia of the first token of this node.

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public SyntaxTriviaList GetLeadingTrivia()

Return Value

Type: SyntaxTriviaList
A list of the preceding trivia.
If this node is a non-terminal, the parents of the trivia will be the first token of this non-terminal; NOT this node.
See Also