6 references to IndexOf
Microsoft.CodeAnalysis.CSharp.Features (5)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
317var firstConstructorIndex = currentTypeDeclaration.Members.IndexOf(m => m is ConstructorDeclarationSyntax c && !c.Modifiers.Any(SyntaxKind.StaticKeyword));
InitializeParameter\InitializeParameterHelpers.cs (1)
84var indexToAddAfter = block.Statements.IndexOf(s => s == statementToAddAfterOpt);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
105var firstFieldIndex = oldMembers.IndexOf(member => member is FieldDeclarationSyntax);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (2)
347var firstStatementAffectedIndex = GetFirstStatementAffectedIndex(innermostCommonBlock, matches, GetStatements(innermostCommonBlock).IndexOf(allAffectedStatements.Contains)); 412var earliestLocalFunctionCallIndex = statementsInBlock.IndexOf(s => s.Span.Contains(earliestLocalFunctionCall));
Microsoft.CodeAnalysis.VisualBasic.Features (1)
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
125Dim firstFieldIndex = oldMembers.IndexOf(Function(member) TypeOf member Is FieldDeclarationSyntax)