5 references to IndexOf
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
190var indexToAddAfter = block.Statements.IndexOf(s => s == statementToAddAfterOpt);
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
317var firstConstructorIndex = currentTypeDeclaration.Members.IndexOf(m => m is ConstructorDeclarationSyntax c && !c.Modifiers.Any(SyntaxKind.StaticKeyword));
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
105var firstFieldIndex = oldMembers.IndexOf(member => member is FieldDeclarationSyntax);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
190var indexToAddAfter = block.Statements.IndexOf(s => s == statementToAddAfterOpt);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
125Dim firstFieldIndex = oldMembers.IndexOf(Function(member) TypeOf member Is FieldDeclarationSyntax)