5 writes to _currentDepth
System.Text.Json (5)
System\Text\Json\BitStack.cs (5)
49_currentDepth++; 66_currentDepth++; 117_currentDepth--; 180_currentDepth++; 190_currentDepth++;
10 references to _currentDepth
System.Text.Json (10)
System\Text\Json\BitStack.cs (10)
33public readonly int CurrentDepth => _currentDepth; 41if (_currentDepth < AllocationFreeMaxDepth) 58if (_currentDepth < AllocationFreeMaxDepth) 78int index = _currentDepth - AllocationFreeMaxDepth; 119if (_currentDepth < AllocationFreeMaxDepth) 124else if (_currentDepth == AllocationFreeMaxDepth) 143int index = _currentDepth - AllocationFreeMaxDepth - 1; 160=> _currentDepth <= AllocationFreeMaxDepth ? (_allocationFreeContainer & 1) != 0 : PeekInArray(); 179Debug.Assert(_currentDepth == 0, "Only call SetFirstBit when depth is 0"); 189Debug.Assert(_currentDepth == 0, "Only call ResetFirstBit when depth is 0");