5 references to IndexOf
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
158
=> throw new ArgumentNullException(MakeIndexedArgumentName(argumentName, sequence.
IndexOf
(null!)));
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
140
IndexOfDeclarationStatementInInnermostBlock = InnermostBlockStatements.
IndexOf
(DeclarationStatement);
141
IndexOfFirstStatementAffectedInInnermostBlock = InnermostBlockStatements.
IndexOf
(FirstStatementAffectedInInnermostBlock);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
261
var ifIndex = blockStatements.
IndexOf
(ifStatement);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
521
expression => objectCreationExpression.Initializer!.Expressions.
IndexOf
(expression.Parent));