3 writes to _builder
Microsoft.CodeAnalysis (3)
Collections\TemporaryArray`1.cs (3)
98_builder = ArrayBuilder<T>.GetInstance(capacity) 153Interlocked.Exchange(ref _builder, null)?.Free(); 349_builder = builder;
31 references to _builder
Microsoft.CodeAnalysis (31)
Collections\TemporaryArray`1.cs (31)
42/// This field is only used when <see cref="_builder"/> is <see langword="null"/>. In other words, this type 43/// stores elements inline <em>or</em> stores them in <see cref="_builder"/>, but does not use both approaches 67/// The number of inline elements held in the array. This value is only used when <see cref="_builder"/> is 77/// needs to store more than four elements. From that point, <see cref="_builder"/> is used instead of inline 104public readonly int Count => _builder?.Count ?? _count; 111if (_builder is not null) 112return _builder[index]; 129if (_builder is not null) 131_builder[index] = value; 158if (_builder is not null) 160_builder.Add(item); 172_builder.Add(item); 178if (_builder is not null) 180_builder.AddRange(items); 194_builder.AddRange(items); 213_builder.Add(item); 219if (_builder is not null) 222_builder.Clear(); 237if (_builder != null) 239_builder.Count--; 256if (_builder != null) 257return _builder.IndexOf(value, equalityComparer); 301if (_builder is not null) 303return _builder.ToImmutableAndClear(); 330[MemberNotNull(nameof(_builder))] 333Debug.Assert(_builder is null); 354if (_builder is not null) 356_builder.ReverseContents(); 382if (_builder is not null) 384_builder.Sort(compare); 480=> array._builder is not null;