3 writes to _stack
Microsoft.CodeAnalysis (3)
Syntax\SyntaxNode.Iterators.cs (3)
56
_stack
= s_stackPool.Allocate();
62
_stack
= null;
106
Array.Resize(ref
_stack
, checked(_stackPtr * 2));
12 references to _stack
Microsoft.CodeAnalysis (12)
Syntax\SyntaxNode.Iterators.cs (12)
58
_stack
[0].InitializeFrom(startingNode);
71
Debug.Assert(
_stack
is object);
72
while (
_stack
[_stackPtr].TryMoveNextAndGetCurrent(out value))
86
Debug.Assert(
_stack
is object);
88
while ((nodeValue =
_stack
[_stackPtr].TryMoveNextAndGetCurrentAsNode()) != null)
102
Debug.Assert(
_stack
is object);
103
if (++_stackPtr >=
_stack
.Length)
109
_stack
[_stackPtr].InitializeFrom(node);
123
if (
_stack
?.Length < 256)
125
Array.Clear(
_stack
, 0,
_stack
.Length);
126
s_stackPool.Free(
_stack
);