10 references to IndexOf
Microsoft.CodeAnalysis.CSharp (2)
CSharpExtensions.cs (2)
157return list.IndexOf(kind) >= 0; 162int index = list.IndexOf(kind);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
RemoveAsyncModifierHelpers.cs (1)
35var 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)
35var asyncTokenIndex = modifiers.IndexOf(SyntaxKind.AsyncKeyword);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTokenListTests.cs (4)
246Assert.Equal(0, list.IndexOf(SyntaxKind.SizeOfKeyword)); 249Assert.Equal(1, list.IndexOf(SyntaxKind.StringLiteralToken)); 252Assert.Equal(2, list.IndexOf(SyntaxKind.DotToken)); 255Assert.Equal(-1, list.IndexOf(SyntaxKind.NullKeyword));