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