1 write to _bitStack
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
379_bitStack = default;
13 references to _bitStack
System.Text.Json (13)
System\Text\Json\Writer\Utf8JsonWriter.cs (7)
1094EnclosingContainerType container = _bitStack.Pop() ? EnclosingContainerType.Object : EnclosingContainerType.Array; 1095_enclosingContainer = _bitStack.CurrentDepth == 0 ? EnclosingContainerType.None : container; 1160_bitStack.PushFalse(); 1166_bitStack.PushTrue(); 1291/// so <see cref="_bitStack"/> does not need to store its state. 1298/// so <see cref="_bitStack"/> does not need to store its state. 1305/// so <see cref="_bitStack"/> does not need to store its state.
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (6)
58EnclosingContainerType container = _bitStack.Peek() ? EnclosingContainerType.Object : EnclosingContainerType.Array; 59_enclosingContainer = _bitStack.CurrentDepth == 0 ? EnclosingContainerType.None : container; 226EnclosingContainerType container = _bitStack.Peek() ? EnclosingContainerType.Object : EnclosingContainerType.Array; 227_enclosingContainer = _bitStack.CurrentDepth == 0 ? EnclosingContainerType.None : container; 393EnclosingContainerType container = _bitStack.Peek() ? EnclosingContainerType.Object : EnclosingContainerType.Array; 394_enclosingContainer = _bitStack.CurrentDepth == 0 ? EnclosingContainerType.None : container;