Implemented interface member:
34 references to Count
Microsoft.CodeAnalysis (21)
Syntax\CommonSyntaxNodeRemover.cs (1)
39
nodeIndex + 1 < nodesAndSeparators.
Count
&&
Syntax\SeparatedSyntaxList.cs (7)
59
int allCount = list.
Count
;
69
for (int i = 0; i < list.
Count
; i++)
411
int insertionIndex = index < this.Count ? nodesWithSeps.IndexOf(this[index]) : nodesWithSeps.
Count
;
414
if (insertionIndex > 0 && insertionIndex < nodesWithSeps.
Count
)
440
if (insertionIndex < nodesWithSeps.
Count
&& nodesWithSeps[insertionIndex] is { IsNode: true } nodeOrToken)
489
if (index >= 0 && index <= nodesWithSeps.
Count
)
494
if (index < nodesWithSeps.
Count
&& nodesWithSeps[index].IsToken)
Syntax\SeparatedSyntaxListBuilder.cs (1)
98
_builder.AddRange(list, this.Count, Math.Min(count << 1, list.
Count
));
Syntax\SyntaxListBuilder.cs (1)
115
this.AddRange(list, 0, list.
Count
);
Syntax\SyntaxNodeOrTokenList.cs (10)
228
return this[this.
Count
- 1];
237
? this[this.
Count
- 1]
292
return Insert(this.
Count
, nodeOrToken);
301
return InsertRange(this.
Count
, nodesOrTokens);
326
if (index < 0 || index > this.
Count
)
371
if (index < 0 || index >= this.
Count
)
388
if (index >= 0 && index < this.
Count
)
419
if (index >= 0 && index < this.
Count
)
559
if (_index < _list.
Count
)
564
return _index < _list.
Count
;
Syntax\SyntaxNodeOrTokenListBuilder.cs (1)
89
this.Add(list, 0, list.
Count
);
Microsoft.CodeAnalysis.CSharp (3)
Syntax\SyntaxFactory.cs (2)
1510
for (int i = 0, n = list.
Count
; i < n; i++)
1524
for (int i = 0, n = list.
Count
; i < n; i++)
Syntax\SyntaxNodeRemover.cs (1)
213
for (int i = 0, n = withSeps.
Count
; i < n; i++)
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertAnonymousType\CSharpConvertAnonymousTypeToClassCodeRefactoringProvider.cs (3)
53
if (list.
Count
== 0 || list.
Count
% 2 == 1)
65
.RemoveAt(list.
Count
- 1);
Microsoft.CodeAnalysis.Features (4)
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (4)
309
for (var i = 0; i < itemsAndSeparators.
Count
; i += 2)
336
if (i + 1 < itemsAndSeparators.
Count
)
440
for (var i = 1; i < itemsAndSeparators.
Count
; i += 2)
447
if (i < itemsAndSeparators.
Count
- 1)
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\SyntaxNodeFactories.vb (2)
1002
Dim n = list.
Count
1013
For i = 0 To list.
Count
- 1
Syntax\SyntaxNodeRemover.vb (1)
141
Dim n = withSeps.
Count