5 writes to _currentDepth
System.Text.Json (5)
System\Text\Json\BitStack.cs (5)
42_currentDepth++; 56_currentDepth++; 100_currentDepth--; 147_currentDepth++; 154_currentDepth++;
9 references to _currentDepth
System.Text.Json (9)
System\Text\Json\BitStack.cs (9)
29public int CurrentDepth => _currentDepth; 34if (_currentDepth < AllocationFreeMaxDepth) 48if (_currentDepth < AllocationFreeMaxDepth) 65int index = _currentDepth - AllocationFreeMaxDepth; 102if (_currentDepth < AllocationFreeMaxDepth) 107else if (_currentDepth == AllocationFreeMaxDepth) 121int index = _currentDepth - AllocationFreeMaxDepth - 1; 146Debug.Assert(_currentDepth == 0, "Only call SetFirstBit when depth is 0"); 153Debug.Assert(_currentDepth == 0, "Only call ResetFirstBit when depth is 0");