1 write to _builder
Microsoft.CodeAnalysis.PooledObjects.Package (1)
ArrayBuilder.cs (1)
60_builder = ImmutableArray.CreateBuilder<T>(size);
65 references to _builder
Microsoft.CodeAnalysis.PooledObjects.Package (65)
ArrayBuilder.cs (65)
78return _builder.ToImmutable(); 91else if (_builder.Capacity == Count) 93result = _builder.MoveToImmutable(); 108return _builder.Count; 112_builder.Count = value; 120return _builder.Capacity; 125_builder.Capacity = value; 133return _builder[index]; 138_builder[index] = value; 154while (index > _builder.Count) 156_builder.Add(default!); 159if (index == _builder.Count) 161_builder.Add(value); 165_builder[index] = value; 171_builder.Add(item); 176_builder.Insert(index, item); 181if (_builder.Capacity < capacity) 183_builder.Capacity = capacity; 189_builder.Clear(); 194return _builder.Contains(item); 199return _builder.IndexOf(item); 204return _builder.IndexOf(item, 0, _builder.Count, equalityComparer); 209return _builder.IndexOf(item, startIndex, count); 223if (match(_builder[i])) 243if (match(_builder[i], arg)) 254return _builder.Remove(element); 259_builder.RemoveAt(index); 264_builder.RemoveRange(index, length); 269_builder.RemoveAt(_builder.Count - 1); 274_builder.RemoveAll(match); 280for (var j = 0; j < _builder.Count; j++) 282if (!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); 326return _builder.ToArray(); 331_builder.CopyTo(array, start); 335=> _builder[_builder.Count - 1]; 342return _builder[0]; 347return _builder.Count > 0; 402else if (_builder.Capacity == Count) 404result = _builder.MoveToImmutable(); 440if (_builder.Capacity < PooledArrayLengthLimitExclusive) 508return _builder.GetEnumerator(); 513return _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;