Click or drag to resize

VisualBasicSyntaxNodeFindToken Method

Finds a token according to the following rules: 1) If position matches the End of the node's Span, then its last token is returned. 2) If node.FullSpan.Contains(position) then the token that contains given position is returned. 3) Otherwise an IndexOutOfRange is thrown

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 SyntaxToken FindToken(
	int position,
	bool findInsideTrivia = false


Type: SystemInt32
findInsideTrivia (Optional)
Type: SystemBoolean

Return Value

Type: SyntaxToken
See Also