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