3 writes to Count
Microsoft.CodeAnalysis (3)
Syntax\InternalSyntax\SyntaxListBuilder.cs (3)
27
this.
Count
= 0;
63
_nodes[
Count
++].Value = item;
128
Count
--;
39 references to Count
Microsoft.CodeAnalysis (13)
Syntax\InternalSyntax\SeparatedSyntaxListBuilder.cs (1)
43
return _builder!.
Count
;
Syntax\InternalSyntax\SyntaxListBuilder.cs (11)
77
int oldCount = this.
Count
;
84
Validate(oldCount, this.
Count
);
106
int oldCount = this.
Count
;
113
Validate(oldCount, this.
Count
);
129
_nodes[
Count
].Value = null;
135
int requiredSize = this.
Count
+ additionalCount;
150
for (int i = 0; i <
Count
; i++)
163
var array = new GreenNode[this.
Count
];
174
switch (this.
Count
)
185
var tmp = new ArrayElement<GreenNode>[this.
Count
];
186
Array.Copy(_nodes, tmp, this.
Count
);
Syntax\InternalSyntax\SyntaxListBuilder`1.cs (1)
40
return _builder.
Count
;
Microsoft.CodeAnalysis.CSharp (16)
Parser\DocumentationCommentParser.cs (3)
417
if (list == null || list.
Count
== 0)
423
list[list.
Count
- 1] = AddTrailingSkippedSyntax((CSharpSyntaxNode)list[list.
Count
- 1], badTokens.ToListNode());
Parser\DocumentationCommentXmlTokens.cs (1)
50
return syntax.
Count
== 1 && SyntaxFactory.Space.IsEquivalentTo(syntax[0]);
Parser\LanguageParser.cs (9)
1698
if (members.
Count
> 0)
2229
bool haveModifiers = (modifiers.
Count
> 0);
2611
if (attributes.Count == 0 && modifiers.
Count
== 0 && type.IsMissing && type.Kind != SyntaxKind.RefType)
3903
if (list.
Count
== 0)
9441
if (attributes.Count == 0 && mods.
Count
> 0 && IsAccessibilityModifier(((SyntaxToken)mods[0]).ContextualKind))
9454
for (int i = 0; i < mods.
Count
; i++)
11416
hasModifier = modifiers.
Count
!= 0;
12166
if (commas.
Count
== 0)
12535
var paramType = modifiers.
Count
!= 0 || ShouldParseLambdaParameterType()
Parser\Lexer.cs (1)
292
for (int i = 0; i < builder.
Count
; i++)
Parser\SyntaxParser.cs (2)
860
list[list.
Count
- 1] = AddTrailingSkippedSyntax((CSharpSyntaxNode)list[list.
Count
- 1], skippedSyntax);
Microsoft.CodeAnalysis.VisualBasic (10)
Scanner\Scanner.vb (2)
932
Dim n = more.
Count
952
Dim n = tList.
Count
Scanner\ScannerXml.vb (1)
48
Debug.Assert(builder.
Count
> 0)
Scanner\TokenFactories.vb (5)
63
For i = 0 To builder.
Count
- 1
73
If builder.
Count
<> list.Count Then
77
For i = 0 To builder.
Count
- 1
138
For i = 0 To trivia.
Count
- 1
227
If builder.
Count
= 0 Then
Scanner\TokenStream.vb (2)
292
Debug.Assert(tList.
Count
> 0)
293
Dim lastTrivia = DirectCast(tList(tList.
Count
- 1), SyntaxTrivia)