6 writes to Count
Microsoft.CodeAnalysis (6)
Syntax\SyntaxListBuilder.cs (6)
22
this.
Count
= 0;
42
_nodes[
Count
++].Value = item;
63
Count
+= length;
99
Count
+= count;
133
Count
+= count;
203
this.
Count
-= 1;
27 references to Count
Microsoft.CodeAnalysis (27)
Syntax\SeparatedSyntaxListBuilder.cs (3)
43
return _builder.
Count
;
90
_expectedSeparator = ((_builder.
Count
& 1) != 0);
99
_expectedSeparator = ((_builder.
Count
& 1) != 0);
Syntax\SyntaxListBuilder.cs (22)
37
if (
Count
>= _nodes.Length)
39
this.Grow(
Count
== 0 ? 8 : _nodes.Length * 2);
52
if (
Count
+ length > _nodes.Length)
54
this.Grow(
Count
+ length);
57
for (int i = offset, j =
Count
; i < offset + length; ++i, ++j)
62
int start =
Count
;
64
Validate(start,
Count
);
86
if (this.
Count
+ count > _nodes.Length)
88
this.Grow(
Count
+ count);
91
var dst = this.
Count
;
98
int start =
Count
;
100
Validate(start,
Count
);
120
if (this.
Count
+ count > _nodes.Length)
122
this.Grow(
Count
+ count);
125
var dst = this.
Count
;
132
int start =
Count
;
134
Validate(start,
Count
);
157
for (int i = 0; i <
Count
; i++)
170
switch (this.
Count
)
181
var tmp = new ArrayElement<GreenNode>[this.
Count
];
182
for (int i = 0; i < this.
Count
; i++)
204
this._nodes[
Count
] = default;
Syntax\SyntaxListBuilder`1.cs (1)
38
return _builder!.
Count
;
Syntax\SyntaxListBuilderExtensions.cs (1)
11
if (builder == null || builder.
Count
== 0)