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

相对于文件的开头的琐事的字符位置。

findInsideTrivia
Boolean

如果返回属于琐事的令牌,则为 True。 如果 false 找到其完整跨度 (包括琐事) 包含位置的令牌。

返回

适用于

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

相对于文件的开头的琐事的字符位置。

stepInto
Func<SyntaxTrivia,Boolean>

指定一个函数,用于确定每个琐碎节点是否降到该节点的结构化琐事中。

返回

适用于