5 references to IndexOf
Microsoft.CodeAnalysis.CSharp (1)
CSharpExtensions.cs (1)
116
return list.
IndexOf
(kind) >= 0;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SeparatedSyntaxListTests.cs (4)
287
Assert.Equal(0, list.
IndexOf
(SyntaxKind.AddExpression));
290
Assert.Equal(1, list.
IndexOf
(SyntaxKind.IdentifierName));
293
Assert.Equal(2, list.
IndexOf
(SyntaxKind.NumericLiteralExpression));
296
Assert.Equal(-1, list.
IndexOf
(SyntaxKind.WhereClause));