20 references to Count
Microsoft.CodeAnalysis (9)
Syntax\InternalSyntax\SeparatedSyntaxList.cs (3)
23
for (int i = 0; i < list.
Count
; i++)
43
return (_list.
Count
+ 1) >> 1;
51
return _list.
Count
>> 1;
Syntax\InternalSyntax\SeparatedSyntaxListBuilder.cs (1)
94
_builder!.AddRange(list, this.Count, Math.Min(count * 2, list.
Count
));
Syntax\InternalSyntax\SyntaxList`1.cs (2)
99
var arr = new TNode[this.
Count
];
100
for (int i = 0; i < this.
Count
; i++)
Syntax\InternalSyntax\SyntaxList`1.Enumerator.cs (1)
23
if (newIndex < _list.
Count
)
Syntax\InternalSyntax\SyntaxListBuilder.cs (2)
100
this.AddRange(list, 0, list.
Count
);
120
this.AddRange(list, 0, list.
Count
);
Microsoft.CodeAnalysis.CSharp (11)
Parser\DocumentationCommentParser.cs (2)
88
isTerminated = !_isDelimited || (eoc.LeadingTrivia.
Count
> 0 && eoc.LeadingTrivia[eoc.LeadingTrivia.
Count
- 1].ToString() == "*/");
Parser\LanguageParser.cs (8)
2530
bool haveAttributes = attributes.
Count
> 0;
2985
if (attributes.
Count
== 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.RefType)
6513
if (attrs.
Count
> 0)
8152
attributes.
Count
== 0)
8771
attributes.
Count
== 0)
8811
if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.Block && attributes.
Count
== 0)
10195
if (attributes.
Count
== 0 && mods.Count > 0 && IsAccessibilityModifier(((SyntaxToken)mods[0]).ContextualKind))
10601
for (int i = 0; i < modifiers.
Count
; i++)
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (1)
45
for (int i = 0, n = list.
Count
; i < n; i++)