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