2 writes to _stack
System.Text.Json (2)
System\Text\Json\Serialization\WriteStack.cs (2)
136
_stack
= new WriteStackFrame[4];
140
Array.Resize(ref
_stack
, 2 * _stack.Length);
15 references to _stack
System.Text.Json (15)
System\Text\Json\Serialization\WriteStack.cs (15)
36
Debug.Assert(
_stack
is not null);
37
return ref
_stack
[_count - _indexOffset - 1];
134
if (
_stack
is null)
138
else if (_count - _indexOffset ==
_stack
.Length)
140
Array.Resize(ref _stack, 2 *
_stack
.Length);
203
_stack
[_count - _indexOffset] = Current;
218
Current =
_stack
[_count - _indexOffset];
263
_stack
[currentIndex + 1] = Current;
264
Current =
_stack
[currentIndex];
272
Current =
_stack
[_count - _indexOffset];
320
Debug.Assert(
_stack
[i].AsyncDisposable is null);
321
DisposeFrame(
_stack
[i].CollectionEnumerator, ref exception);
358
exception = await DisposeFrame(
_stack
[i].CollectionEnumerator,
_stack
[i].AsyncDisposable, exception).ConfigureAwait(false);
406
AppendStackFrame(sb, ref
_stack
[i - _indexOffset]);