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