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