共用方式為


SyntaxNode.FindTrivia 方法

定義

多載

FindTrivia(Int32, Boolean)

尋找此節點的子系子系,其範圍包含提供的位置。

FindTrivia(Int32, Func<SyntaxTrivia,Boolean>)

在指定的位置尋找這個節點的子系子系,其中位置在節點的範圍內。

FindTrivia(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

尋找此節點的子系子系,其範圍包含提供的位置。

public Microsoft.CodeAnalysis.SyntaxTrivia FindTrivia (int position, bool findInsideTrivia = false);
member this.FindTrivia : int * bool -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Function FindTrivia (position As Integer, Optional findInsideTrivia As Boolean = false) As SyntaxTrivia

參數

position
Int32

與檔案開頭相對的 Trivia 字元位置。

findInsideTrivia
Boolean

True 是表示 傳回屬於 Trivia 的權杖。 如果為 false,則會尋找其完整範圍 (包括 trivia) 包含位置的權杖。

傳回

適用於

FindTrivia(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

在指定的位置尋找這個節點的子系子系,其中位置在節點的範圍內。

public:
 Microsoft::CodeAnalysis::SyntaxTrivia FindTrivia(int position, Func<Microsoft::CodeAnalysis::SyntaxTrivia, bool> ^ stepInto);
public Microsoft.CodeAnalysis.SyntaxTrivia FindTrivia (int position, Func<Microsoft.CodeAnalysis.SyntaxTrivia,bool> stepInto);
public Microsoft.CodeAnalysis.SyntaxTrivia FindTrivia (int position, Func<Microsoft.CodeAnalysis.SyntaxTrivia,bool>? stepInto);
member this.FindTrivia : int * Func<Microsoft.CodeAnalysis.SyntaxTrivia, bool> -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Function FindTrivia (position As Integer, stepInto As Func(Of SyntaxTrivia, Boolean)) As SyntaxTrivia

參數

position
Int32

與檔案開頭相對的 Trivia 字元位置。

stepInto
Func<SyntaxTrivia,Boolean>

指定函式,決定每個 Trivia 節點,是否要遞減到該節點的結構化 Trivia。

傳回

適用於