Implemented interface member:
61 references to IndexOf
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
324var index = methodSymbol.Parameters.IndexOf(parameterSymbol);
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (1)
89parameterInsertIndex = routeUsage.UsageContext.Parameters.IndexOf(ip.ExistingParameter);
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorDriver.cs (1)
101var existingIndex = _state.Generators.IndexOf(generator);
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
54var ifIndex = parentBlock.Operations.IndexOf(ifOperation);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (3)
142var ifOperationIndex = statements.IndexOf(ifOperation); 143var expressionStatementIndex = statements.IndexOf(expressionStatement); 172var ifOperationIndex = containingBlock.Operations.IndexOf(ifOperation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1129if (signature1Parameters.IndexOf(parameter1) != signature2Parameters.IndexOf(parameter2))
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
195var ifIndex = parentBlock.Operations.IndexOf(ifOperation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
180var statementIndex = blockStatement!.Operations.IndexOf(statement);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
22var parameterIndex = method.Parameters.IndexOf(parameter);
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Invocation.cs (1)
1712: argsToParamsOpt.IndexOf(parameterIndex);
FlowAnalysis\NullableWalker.cs (4)
6585: (argsToParamsOpt.IndexOf(2), argsToParamsOpt.IndexOf(1), argsToParamsOpt.IndexOf(0)); 8562var index = argsToParamsOpt.IsDefault ? parameterOrdinal : argsToParamsOpt.IndexOf(parameterOrdinal);
Operations\CSharpOperationFactory.cs (2)
2388var alignmentIndex = argumentNamesOpt.IndexOf("alignment"); 2390var formatIndex = argumentNamesOpt.IndexOf("format");
Symbols\Tuples\TupleTypeSymbol.cs (1)
1084Debug.Assert(TupleUnderlyingType.GetMembers(underlyingAssociatedField.Name).IndexOf(underlyingAssociatedField) < 0);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
61var firstUnreachableStatementIndex = siblingStatements.IndexOf(firstUnreachableStatement);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
215.OrderBy(property => parameters.IndexOf(assignmentValues[property]))
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
61var firstUnreachableStatementIndex = siblingStatements.IndexOf(firstUnreachableStatement);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
215.OrderBy(property => parameters.IndexOf(assignmentValues[property]))
Microsoft.CodeAnalysis.EditorFeatures (3)
IntelliSense\AsyncCompletion\CommitManager.cs (1)
381return completionRules.DefaultCommitCharacters.IndexOf(ch) >= 0;
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
318var defaultIndex = _snapshotData.Defaults.IndexOf(completionItem.FilterText);
IntelliSense\AsyncCompletion\RecentItemsManager.cs (1)
50return RecentItems.IndexOf(item.FilterText);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractArgumentProviderTests`1.cs (1)
106? arguments.IndexOf(arguments.Single(argument => argument.FullSpan.Start <= position && argument.FullSpan.End >= position))
Microsoft.CodeAnalysis.Features (21)
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (1)
49matchingDirective = matchingDirectives[(matchingDirectives.IndexOf(directive) + 1) % matchingDirectives.Length];
ChangeSignature\AbstractChangeSignatureService.cs (4)
491var originalIndex = declarationParameters.IndexOf(decl); 514var actualIndex = updatedSignature.GetUpdatedIndex(declarationParameters.IndexOf(param)); 618if (match == null || originalParameters.IndexOf(match) <= position) 624position = originalParameters.IndexOf(match);
Common\AbstractProjectExtensionProvider.cs (1)
101if (extensionInfo.DocumentKinds.IndexOf(document.Kind) < 0)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
93var index = operations.IndexOf(ifOperation);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (2)
279return namedAndUnnamedArguments.IndexOf(arg1) - namedAndUnnamedArguments.IndexOf(arg2);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
417var parameterIndex = methodSymbol.Parameters.IndexOf(parameter); 437var statementIndex = blockStatement.Operations.IndexOf(checkStatement);
SignatureHelp\AbstractSignatureHelpProvider.cs (1)
344var found = candidates.IndexOf(matched);
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
54var ifIndex = parentBlock.Operations.IndexOf(ifOperation);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (3)
142var ifOperationIndex = statements.IndexOf(ifOperation); 143var expressionStatementIndex = statements.IndexOf(expressionStatement); 172var ifOperationIndex = containingBlock.Operations.IndexOf(ifOperation);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
195var ifIndex = parentBlock.Operations.IndexOf(ifOperation);
Wrapping\WrapItemsAction.cs (4)
60var mruIndex1 = mostRecentlyUsedKeys.IndexOf(getKey(d1)); 61var mruIndex2 = mostRecentlyUsedKeys.IndexOf(getKey(d2)); 75var index1 = items.IndexOf(d1); 76var index2 = items.IndexOf(d2);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Tuples\TupleTypeSymbol.vb (1)
903Debug.Assert(Me._underlyingType.GetMembers(associatedField.Name).IndexOf(associatedField) < 0)
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
27var ordinal = method.TypeParameters.IndexOf(symbol);
Recommendations\AbstractRecommendationServiceRunner.cs (1)
159var index = typeParameters.IndexOf(typeParameter);
Rename\RenameUtilities.cs (1)
338var ordinal = containingMethod.Parameters.IndexOf((IParameterSymbol)symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1129if (signature1Parameters.IndexOf(parameter1) != signature2Parameters.IndexOf(parameter2))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
180var statementIndex = blockStatement!.Operations.IndexOf(statement);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
22var parameterIndex = method.Parameters.IndexOf(parameter);
Microsoft.ML.Tests (2)
PermutationFeatureImportanceTests.cs (2)
962return metricsDelta.IndexOf(min); 970return metricsDelta.IndexOf(max);
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableArray_1.cs (2)
290return this.IndexOf(item) >= 0; 1248return self.IndexOf((T)value!);