2 writes to _stack
System.Text.Json (2)
System\Text\Json\Serialization\WriteStack.cs (2)
133_stack = new WriteStackFrame[4]; 137Array.Resize(ref _stack, 2 * _stack.Length);
15 references to _stack
System.Text.Json (15)
System\Text\Json\Serialization\WriteStack.cs (15)
35Debug.Assert(_stack is not null); 36return ref _stack[_count - _indexOffset - 1]; 131if (_stack is null) 135else if (_count - _indexOffset == _stack.Length) 137Array.Resize(ref _stack, 2 * _stack.Length); 200_stack[_count - _indexOffset] = Current; 215Current = _stack[_count - _indexOffset]; 260_stack[currentIndex + 1] = Current; 261Current = _stack[currentIndex]; 269Current = _stack[_count - _indexOffset]; 317Debug.Assert(_stack[i].AsyncDisposable is null); 318DisposeFrame(_stack[i].CollectionEnumerator, ref exception); 355exception = await DisposeFrame(_stack[i].CollectionEnumerator, _stack[i].AsyncDisposable, exception).ConfigureAwait(false); 403AppendStackFrame(sb, ref _stack[i - _indexOffset]);