32 references to
Microsoft.CodeAnalysis (17)
Syntax\CommonSyntaxNodeRemover.cs (3)
35var node = nodesAndSeparators[nodeIndex].AsNode(); 40nodesAndSeparators[nodeIndex + 1].IsToken; 44nodesAndSeparators[nodeIndex + 1].AsToken() is var nextSeparator &&
Syntax\SeparatedSyntaxList.cs (9)
70var item = list[i]; 415var previous = nodesWithSeps[insertionIndex - 1]; 429if (nodesToInsertWithSeparators.Count > 0 || (insertionIndex > 0 && nodesWithSeps[insertionIndex - 1].IsNode)) 439if (insertionIndex < nodesWithSeps.Count && nodesWithSeps[insertionIndex] is { IsNode: true } nodeOrToken) 441var node = nodesWithSeps[insertionIndex].AsNode(); 493if (index < nodesWithSeps.Count && nodesWithSeps[index].IsToken) 497else if (index > 0 && nodesWithSeps[index - 1].IsToken) 578if (newSeparator.RawKind != nodesWithSeps[index].RawKind || 579newSeparator.Language != nodesWithSeps[index].Language)
Syntax\SyntaxListBuilder.cs (1)
128_nodes[dst].Value = list[i].UnderlyingNode;
Syntax\SyntaxNodeOrTokenList.cs (4)
227return this[this.Count - 1]; 236? this[this.Count - 1] 281array[arrayOffset + i] = this[i + offset].UnderlyingNode; 569public SyntaxNodeOrToken Current => _list[_index];
Microsoft.CodeAnalysis.CSharp (4)
Syntax\SyntaxFactory.cs (2)
1483var element = list[i]; 1497var element = list[i];
Syntax\SyntaxNodeRemover.cs (2)
215var item = withSeps[i]; 256var separator = withSeps[i + 1].AsToken();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
171nodesAndTokens.Add(originalArgumentListChildren[index - 1]);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
350return InferTypeInTupleExpression(tupleExpression, (ArgumentSyntax)argsAndCommas[commaIndex + 1]);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
171nodesAndTokens.Add(originalArgumentListChildren[index - 1]);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
350return InferTypeInTupleExpression(tupleExpression, (ArgumentSyntax)argsAndCommas[commaIndex + 1]);
Microsoft.CodeAnalysis.Features (7)
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (7)
312var item = itemsAndSeparators[i].AsNode()!; 324result.Add(Edit.UpdateBetween(itemsAndSeparators[i - 1], SingleWhitespaceTrivia, NoTrivia, item)); 331result.Add(Edit.UpdateBetween(itemsAndSeparators[i - 1], NewLineTrivia, indentationTrivia, item)); 339var comma = itemsAndSeparators[i + 1]; 443var comma = itemsAndSeparators[i].AsToken(); 445var item = itemsAndSeparators[i - 1]; 452comma, NewLineTrivia, indentationTrivia, itemsAndSeparators[i + 1]));