10 references to LastIndexOf
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
509var insertionIndex = compilationUnit.Members.LastIndexOf(memberDeclaration => memberDeclaration.IsKind(SyntaxKind.GlobalStatement)) + 1;
Microsoft.CodeAnalysis.CSharp.Features (5)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (2)
325var lastFieldOrProperty = currentTypeDeclaration.Members.LastIndexOf(m => m is FieldDeclarationSyntax); 327lastFieldOrProperty = currentTypeDeclaration.Members.LastIndexOf(m => m is PropertyDeclarationSyntax);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (3)
97var lastConstantIndex = oldMembers.LastIndexOf(IsConstantField); 137var lastFieldIndex = oldMembers.LastIndexOf(member => member is FieldDeclarationSyntax); 144var lastConstantIndex = oldMembers.LastIndexOf(IsConstantField);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
509var insertionIndex = compilationUnit.Members.LastIndexOf(memberDeclaration => memberDeclaration.IsKind(SyntaxKind.GlobalStatement)) + 1;
Microsoft.CodeAnalysis.VisualBasic.Features (3)
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (3)
121Dim lastConstantIndex = oldMembers.LastIndexOf(AddressOf IsConstantField) 155Dim lastFieldIndex = oldMembers.LastIndexOf(Function(member) TypeOf member Is FieldDeclarationSyntax) 159Dim lastConstantIndex = oldMembers.LastIndexOf(AddressOf IsConstantField)