VisualBasicExtensions.IndexOf 方法

定义

重载

IndexOf(SyntaxTokenList, SyntaxKind)

返回令牌列表中指定类型的第一个标记的索引。

IndexOf(SyntaxTriviaList, SyntaxKind)

返回琐事列表中的指定类型的第一个琐事的索引。

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

返回节点列表中指定类型的第一个节点的索引。

IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)

返回节点列表中指定类型的第一个节点的索引。

IndexOf(SyntaxTokenList, SyntaxKind)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回令牌列表中指定类型的第一个标记的索引。

public:
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SyntaxTokenList list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf (this Microsoft.CodeAnalysis.SyntaxTokenList list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind);
static member IndexOf : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int
<Extension()>
Public Function IndexOf (list As SyntaxTokenList, kind As SyntaxKind) As Integer

参数

list
SyntaxTokenList

令牌列表。

kind
SyntaxKind

要查找的 SyntaxKind

返回

如果列表包含匹配 kind的标记,则返回非负索引,否则返回 -1。

适用于

IndexOf(SyntaxTriviaList, SyntaxKind)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回琐事列表中的指定类型的第一个琐事的索引。

public:
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SyntaxTriviaList list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf (this Microsoft.CodeAnalysis.SyntaxTriviaList list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind);
static member IndexOf : Microsoft.CodeAnalysis.SyntaxTriviaList * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int
<Extension()>
Public Function IndexOf (list As SyntaxTriviaList, kind As SyntaxKind) As Integer

参数

list
SyntaxTriviaList

琐碎列表。

kind
SyntaxKind

要查找的 SyntaxKind

返回

如果列表包含匹配 kind的琐事,则返回非负索引,否则返回 -1。

适用于

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回节点列表中指定类型的第一个节点的索引。

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf<TNode> (this Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member IndexOf : Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function IndexOf(Of TNode As SyntaxNode) (list As SeparatedSyntaxList(Of TNode), kind As SyntaxKind) As Integer

类型参数

TNode

参数

list
SeparatedSyntaxList<TNode>

节点列表。

kind
SyntaxKind

要查找的 SyntaxKind

返回

如果列表包含匹配 kind的节点,则返回非负索引,否则返回 -1。

适用于

IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

返回节点列表中指定类型的第一个节点的索引。

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static int IndexOf(Microsoft::CodeAnalysis::SyntaxList<TNode> list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf<TNode> (this Microsoft.CodeAnalysis.SyntaxList<TNode> list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member IndexOf : Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function IndexOf(Of TNode As SyntaxNode) (list As SyntaxList(Of TNode), kind As SyntaxKind) As Integer

类型参数

TNode

参数

list
SyntaxList<TNode>

节点列表。

kind
SyntaxKind

要查找的 SyntaxKind

返回

如果列表包含匹配 kind的节点,则返回非负索引,否则返回 -1。

适用于