27 references to IndexOf
Microsoft.CodeAnalysis (5)
Syntax\SeparatedSyntaxList.cs (3)
411
int insertionIndex = index < this.Count ? nodesWithSeps.
IndexOf
(this[index]) : nodesWithSeps.Count;
487
int index = nodesWithSeps.
IndexOf
(node);
573
var index = nodesWithSeps.
IndexOf
(separatorToken);
Syntax\SyntaxNodeOrTokenList.cs (2)
387
var index = this.
IndexOf
(nodeOrTokenInList);
418
var index = this.
IndexOf
(nodeOrTokenInList);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
163
var index = originalArgumentListChildren.
IndexOf
(argument);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1089
var commaIndex = parameterList2.Parameters.GetWithSeparators().
IndexOf
(token);
1098
var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().
IndexOf
(token);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
339
var index = list.GetWithSeparators().
IndexOf
(token);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
353
var commaIndex = argsAndCommas.
IndexOf
(previousToken);
925
var tokenIndex = argumentList.Arguments.GetWithSeparators().
IndexOf
(previousToken);
944
var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().
IndexOf
(previousToken);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
85
return (tupleExpr.Arguments.GetWithSeparators().
IndexOf
(context.TargetToken) + 1) / 2;
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
121
var index = argumentList.Arguments.GetWithSeparators().
IndexOf
(context.TargetToken);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
163
var index = originalArgumentListChildren.
IndexOf
(argument);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1089
var commaIndex = parameterList2.Parameters.GetWithSeparators().
IndexOf
(token);
1098
var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().
IndexOf
(token);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
339
var index = list.GetWithSeparators().
IndexOf
(token);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
353
var commaIndex = argsAndCommas.
IndexOf
(previousToken);
925
var tokenIndex = argumentList.Arguments.GetWithSeparators().
IndexOf
(previousToken);
944
var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().
IndexOf
(previousToken);
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1089
var commaIndex = parameterList2.Parameters.GetWithSeparators().
IndexOf
(token);
1098
var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().
IndexOf
(token);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
339
var index = list.GetWithSeparators().
IndexOf
(token);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
353
var commaIndex = argsAndCommas.
IndexOf
(previousToken);
925
var tokenIndex = argumentList.Arguments.GetWithSeparators().
IndexOf
(previousToken);
944
var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().
IndexOf
(previousToken);