6 references to IndexOf
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToRecordEngine.cs (1)
497expression => objectCreationExpression.Initializer!.Expressions.IndexOf(expression.Parent));
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\CodeStyleSetting`1.cs (1)
49=> _valueDescriptions[_possibleValues.IndexOf(_value.Value)];
Microsoft.CodeAnalysis.Features (1)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
147var localDeclarationIndex = siblings.IndexOf(localDeclaration);
Microsoft.CodeAnalysis.Workspaces (3)
AbstractMoveDeclarationNearReferenceService.State.cs (2)
140IndexOfDeclarationStatementInInnermostBlock = InnermostBlockStatements.IndexOf(DeclarationStatement); 141IndexOfFirstStatementAffectedInInnermostBlock = InnermostBlockStatements.IndexOf(FirstStatementAffectedInInnermostBlock);
PublicContract.cs (1)
158=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.IndexOf(null!)));