SyntaxNode.FindTokenCore Method

Definition

Overloads

FindTokenCore(Int32, Boolean)

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

FindTokenCore(Int32, Func<SyntaxTrivia,Boolean>)

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

FindTokenCore(Int32, Boolean)

Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs

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

protected:
 virtual Microsoft::CodeAnalysis::SyntaxToken FindTokenCore(int position, bool findInsideTrivia);
protected virtual Microsoft.CodeAnalysis.SyntaxToken FindTokenCore (int position, bool findInsideTrivia);
abstract member FindTokenCore : int * bool -> Microsoft.CodeAnalysis.SyntaxToken
override this.FindTokenCore : int * bool -> Microsoft.CodeAnalysis.SyntaxToken
Protected Overridable Function FindTokenCore (position As Integer, findInsideTrivia As Boolean) As SyntaxToken

Parameters

position
Int32

The character position of the token relative to the beginning of the file.

findInsideTrivia
Boolean

True to return tokens that are part of trivia. If false finds the token whose full span (including trivia) includes the position.

Returns

Applies to

FindTokenCore(Int32, Func<SyntaxTrivia,Boolean>)

Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs

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

protected:
 virtual Microsoft::CodeAnalysis::SyntaxToken FindTokenCore(int position, Func<Microsoft::CodeAnalysis::SyntaxTrivia, bool> ^ stepInto);
protected virtual Microsoft.CodeAnalysis.SyntaxToken FindTokenCore (int position, Func<Microsoft.CodeAnalysis.SyntaxTrivia,bool> stepInto);
abstract member FindTokenCore : int * Func<Microsoft.CodeAnalysis.SyntaxTrivia, bool> -> Microsoft.CodeAnalysis.SyntaxToken
override this.FindTokenCore : int * Func<Microsoft.CodeAnalysis.SyntaxTrivia, bool> -> Microsoft.CodeAnalysis.SyntaxToken
Protected Overridable Function FindTokenCore (position As Integer, stepInto As Func(Of SyntaxTrivia, Boolean)) As SyntaxToken

Parameters

position
Int32

The character position of the token relative to the beginning of the file.

stepInto
Func<SyntaxTrivia,Boolean>

Applied on every structured trivia. Return false if the tokens included in the trivia should be skipped. Pass null to skip all structured trivia.

Returns

Applies to