1 write to _builder
Microsoft.CodeAnalysis (1)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
60
_builder
= ImmutableArray.CreateBuilder<T>(size);
65 references to _builder
Microsoft.CodeAnalysis (65)
src\Dependencies\PooledObjects\ArrayBuilder.cs (65)
78
return
_builder
.ToImmutable();
91
else if (
_builder
.Capacity == Count)
93
result =
_builder
.MoveToImmutable();
108
return
_builder
.Count;
112
_builder
.Count = value;
120
return
_builder
.Capacity;
125
_builder
.Capacity = value;
133
return
_builder
[index];
138
_builder
[index] = value;
154
while (index >
_builder
.Count)
156
_builder
.Add(default!);
159
if (index ==
_builder
.Count)
161
_builder
.Add(value);
165
_builder
[index] = value;
171
_builder
.Add(item);
176
_builder
.Insert(index, item);
181
if (
_builder
.Capacity < capacity)
183
_builder
.Capacity = capacity;
189
_builder
.Clear();
194
return
_builder
.Contains(item);
199
return
_builder
.IndexOf(item);
204
return
_builder
.IndexOf(item, 0,
_builder
.Count, equalityComparer);
209
return
_builder
.IndexOf(item, startIndex, count);
223
if (match(
_builder
[i]))
243
if (match(
_builder
[i], arg))
254
return
_builder
.Remove(element);
259
_builder
.RemoveAt(index);
264
_builder
.RemoveRange(index, length);
269
_builder
.RemoveAt(
_builder
.Count - 1);
274
_builder
.RemoveAll(match);
280
for (var j = 0; j <
_builder
.Count; j++)
282
if (!match(
_builder
[j], arg))
286
_builder
[i] =
_builder
[j];
298
_builder
.Reverse();
303
_builder
.Sort();
308
_builder
.Sort(comparer);
321
_builder
.Sort(startIndex,
_builder
.Count - startIndex, comparer);
326
return
_builder
.ToArray();
331
_builder
.CopyTo(array, start);
335
=>
_builder
[
_builder
.Count - 1];
342
return
_builder
[0];
347
return
_builder
.Count > 0;
402
else if (
_builder
.Capacity == Count)
404
result =
_builder
.MoveToImmutable();
440
if (
_builder
.Capacity < PooledArrayLengthLimitExclusive)
508
return
_builder
.GetEnumerator();
513
return
_builder
.GetEnumerator();
561
_builder
.AddRange(items.
_builder
);
568
_builder
.Add(selector(item));
574
_builder
.AddRange(items.
_builder
);
589
_builder
.AddRange(items);
594
_builder
.AddRange(items, length);
624
_builder
.AddRange(items);
629
_builder
.AddRange(items);
634
_builder
.AddRange(items, length);
647
_builder
.Count = limit;
652
_builder
.Clear();
653
_builder
.Count = count;