Implemented interface member:
46 references to Count
Microsoft.CodeAnalysis (21)
Syntax\CommonSyntaxNodeRemover.cs (1)
39nodeIndex + 1 < nodesAndSeparators.Count &&
Syntax\SeparatedSyntaxList.cs (7)
58int allCount = list.Count; 68for (int i = 0; i < list.Count; i++) 410int insertionIndex = index < this.Count ? nodesWithSeps.IndexOf(this[index]) : nodesWithSeps.Count; 413if (insertionIndex > 0 && insertionIndex < nodesWithSeps.Count) 439if (insertionIndex < nodesWithSeps.Count && nodesWithSeps[insertionIndex] is { IsNode: true } nodeOrToken) 488if (index >= 0 && index <= nodesWithSeps.Count) 493if (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)
227return this[this.Count - 1]; 236? this[this.Count - 1] 291return Insert(this.Count, nodeOrToken); 300return InsertRange(this.Count, nodesOrTokens); 325if (index < 0 || index > this.Count) 370if (index < 0 || index >= this.Count) 387if (index >= 0 && index < this.Count) 418if (index >= 0 && index < this.Count) 558if (_index < _list.Count) 563return _index < _list.Count;
Syntax\SyntaxNodeOrTokenListBuilder.cs (1)
89this.Add(list, 0, list.Count);
Microsoft.CodeAnalysis.CSharp (3)
Syntax\SyntaxFactory.cs (2)
1481for (int i = 0, n = list.Count; i < n; i++) 1495for (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.CSharp.Syntax.UnitTests (7)
Syntax\SyntaxNodeOrTokenListTests.cs (6)
183Assert.Equal(0, list.Count); 189Assert.Equal(1, newList.Count); 193Assert.Equal(2, newList.Count); 197Assert.Equal(1, newList.Count); 201Assert.Equal(2, newList.Count); 205Assert.Equal(0, newList.Count);
Syntax\SyntaxNodeTests.cs (1)
3369Assert.Equal(0, list.Count);
Microsoft.CodeAnalysis.Features (4)
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (4)
310for (var i = 0; i < itemsAndSeparators.Count; i += 2) 337if (i + 1 < itemsAndSeparators.Count) 441for (var i = 1; i < itemsAndSeparators.Count; i += 2) 448if (i < itemsAndSeparators.Count - 1)
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\SyntaxNodeFactories.vb (2)
987Dim n = list.Count 998For i = 0 To list.Count - 1
Syntax\SyntaxNodeRemover.vb (1)
141Dim n = withSeps.Count
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
TestSyntaxNodes.vb (5)
264If list.Count > 0 Then 267Assert.Equal(expectedFullSpan.End, list(list.Count - 1).FullSpan.End) 269For i = 0 To list.Count - 1 274If i < list.Count - 1 Then 411VerifyListSpans(statements, TextSpan.FromBounds(statements(0).FullSpan.Start, statements(statements.Count - 1).FullSpan.End))