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