20 writes to _currentDepth
System.Text.Json (20)
System\Text\Json\Writer\Utf8JsonWriter.cs (15)
371_currentDepth = default; 585_currentDepth &= JsonConstants.RemoveFlagsBitMask; 586_currentDepth++; 728_currentDepth &= JsonConstants.RemoveFlagsBitMask; 729_currentDepth++; 752_currentDepth &= JsonConstants.RemoveFlagsBitMask; 753_currentDepth++; 777_currentDepth &= JsonConstants.RemoveFlagsBitMask; 778_currentDepth++; 901_currentDepth &= JsonConstants.RemoveFlagsBitMask; 902_currentDepth++; 926_currentDepth &= JsonConstants.RemoveFlagsBitMask; 927_currentDepth++; 1023_currentDepth--; 1228_currentDepth |= 1 << 31;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (5)
37_currentDepth &= JsonConstants.RemoveFlagsBitMask; 49_currentDepth &= JsonConstants.RemoveFlagsBitMask; 105_currentDepth &= JsonConstants.RemoveFlagsBitMask; 254_currentDepth &= JsonConstants.RemoveFlagsBitMask; 264_currentDepth &= JsonConstants.RemoveFlagsBitMask;
95 references to _currentDepth
System.Text.Json (95)
System\Text\Json\Writer\Utf8JsonWriter.cs (4)
116public int CurrentDepth => _currentDepth & JsonConstants.RemoveFlagsBitMask; 597if (_currentDepth < 0) 677if (_currentDepth < 0) 1244=> ThrowHelper.ThrowInvalidOperationException(ExceptionResource.DepthTooLarge, _currentDepth, _options.MaxDepth, token: default, tokenType: default);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (4)
223if (_currentDepth < 0) 258if (_currentDepth < 0) 297if (_currentDepth < 0) 347if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (4)
228if (_currentDepth < 0) 261if (_currentDepth < 0) 299if (_currentDepth < 0) 347if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (4)
227if (_currentDepth < 0) 260if (_currentDepth < 0) 298if (_currentDepth < 0) 346if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (4)
227if (_currentDepth < 0) 257if (_currentDepth < 0) 292if (_currentDepth < 0) 337if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (4)
231if (_currentDepth < 0) 261if (_currentDepth < 0) 296if (_currentDepth < 0) 341if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (4)
231if (_currentDepth < 0) 261if (_currentDepth < 0) 296if (_currentDepth < 0) 341if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (4)
227if (_currentDepth < 0) 261if (_currentDepth < 0) 300if (_currentDepth < 0) 349if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (7)
18ThrowHelper.ThrowInvalidOperationOrArgumentException(propertyName, _currentDepth, _options.MaxDepth); 25ThrowHelper.ThrowInvalidOperationOrArgumentException(utf8PropertyName, _currentDepth, _options.MaxDepth); 32ThrowHelper.ThrowInvalidOperationException(_currentDepth, _options.MaxDepth); 89if (_currentDepth < 0) 120if (_currentDepth < 0) 162if (_currentDepth < 0) 193if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (5)
347if (_currentDepth < 0) 377if (_currentDepth < 0) 409if (_currentDepth < 0) 440if (_currentDepth < 0) 485if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (4)
300if (_currentDepth < 0) 330if (_currentDepth < 0) 365if (_currentDepth < 0) 410if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (13)
172if (_currentDepth < 0) 203if (_currentDepth < 0) 332if (_currentDepth < 0) 361if (_currentDepth < 0) 390if (_currentDepth < 0) 1371if (_currentDepth < 0) 1405if (_currentDepth < 0) 1442if (_currentDepth < 0) 1478if (_currentDepth < 0) 1517if (_currentDepth < 0) 1566if (_currentDepth < 0) 1618if (_currentDepth < 0) 1669if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (4)
309if (_currentDepth < 0) 339if (_currentDepth < 0) 374if (_currentDepth < 0) 419if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (2)
76if (_currentDepth < 0) 116if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (2)
53if (_currentDepth < 0) 81if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (2)
54if (_currentDepth < 0) 82if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (2)
53if (_currentDepth < 0) 77if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (2)
57if (_currentDepth < 0) 81if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (2)
57if (_currentDepth < 0) 81if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (2)
58if (_currentDepth < 0) 83if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (2)
53if (_currentDepth < 0) 82if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (2)
77if (_currentDepth < 0) 101if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (2)
182if (_currentDepth < 0) 270if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (2)
66if (_currentDepth < 0) 90if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (4)
131if (_currentDepth < 0) 161if (_currentDepth < 0) 277if (_currentDepth < 0) 307if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (2)
487if (_currentDepth < 0) 516if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (2)
68if (_currentDepth < 0) 92if (_currentDepth < 0)