10 references to IndexOf
Microsoft.CodeAnalysis.CSharp (2)
CSharpExtensions.cs (2)
157
return list.
IndexOf
(kind) >= 0;
162
int index = list.
IndexOf
(kind);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
RemoveAsyncModifierHelpers.cs (1)
35
var asyncTokenIndex = modifiers.
IndexOf
(SyntaxKind.AsyncKeyword);
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1339
=> (oldModifiers.
IndexOf
(SyntaxKind.ReadOnlyKeyword) >= 0) != (newModifiers.
IndexOf
(SyntaxKind.ReadOnlyKeyword) >= 0);
RemoveAsyncModifierHelpers.cs (1)
35
var asyncTokenIndex = modifiers.
IndexOf
(SyntaxKind.AsyncKeyword);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTokenListTests.cs (4)
246
Assert.Equal(0, list.
IndexOf
(SyntaxKind.SizeOfKeyword));
249
Assert.Equal(1, list.
IndexOf
(SyntaxKind.StringLiteralToken));
252
Assert.Equal(2, list.
IndexOf
(SyntaxKind.DotToken));
255
Assert.Equal(-1, list.
IndexOf
(SyntaxKind.NullKeyword));