Click or drag to resize

SyntaxNodeFindTokenCore Method (Int32, Boolean)

Finds a descendant token of this node whose span includes the supplied position.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
protected virtual SyntaxToken FindTokenCore(
	int position,
	bool findInsideTrivia


Type: SystemInt32
The character position of the token relative to the beginning of the file.
Type: SystemBoolean
True to return tokens that are part of trivia. If false finds the token whose full span (including trivia) includes the position.

Return Value

Type: SyntaxToken
See Also