5 references to IndexOf
Microsoft.CodeAnalysis.CSharp (1)
CSharpExtensions.cs (1)
95
return list.
IndexOf
(kind) >= 0;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxListTests.cs (4)
274
Assert.Equal(0, list.
IndexOf
(SyntaxKind.AddExpression));
277
Assert.Equal(1, list.
IndexOf
(SyntaxKind.IdentifierName));
280
Assert.Equal(2, list.
IndexOf
(SyntaxKind.NumericLiteralExpression));
283
Assert.Equal(-1, list.
IndexOf
(SyntaxKind.WhereClause));