4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (4)
104
_stack
= null;
107
if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out
_stack
))
109
_stack
= SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
154
_stack
= null;
12 references to _stack
System.Collections.Immutable (12)
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (12)
148
if (
_stack
!= null &&
_stack
.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack))
151
SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this,
_stack
!);
166
if (
_stack
!= null)
168
Stack<RefAsValueType<ImmutableList<T>.Node>> stack =
_stack
.Use(ref this);
192
if (
_stack
!= null)
201
Debug.Assert(
_stack
!= null);
202
Stack<RefAsValueType<ImmutableList<T>.Node>> stack =
_stack
.Use(ref this);
248
if (_root == null || (
_stack
!= null && !
_stack
.IsOwned(ref this)))
275
Debug.Assert(
_stack
!= null);
276
Stack<RefAsValueType<ImmutableList<T>.Node>> stack =
_stack
.Use(ref this);