20 writes to _currentDepth
System.Text.Json (20)
System\Text\Json\Writer\Utf8JsonWriter.cs (15)
377_currentDepth = default; 591_currentDepth &= JsonConstants.RemoveFlagsBitMask; 592_currentDepth++; 734_currentDepth &= JsonConstants.RemoveFlagsBitMask; 735_currentDepth++; 758_currentDepth &= JsonConstants.RemoveFlagsBitMask; 759_currentDepth++; 783_currentDepth &= JsonConstants.RemoveFlagsBitMask; 784_currentDepth++; 913_currentDepth &= JsonConstants.RemoveFlagsBitMask; 914_currentDepth++; 938_currentDepth &= JsonConstants.RemoveFlagsBitMask; 939_currentDepth++; 1035_currentDepth--; 1240_currentDepth |= 1 << 31;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (5)
37_currentDepth &= JsonConstants.RemoveFlagsBitMask; 49_currentDepth &= JsonConstants.RemoveFlagsBitMask; 108_currentDepth &= JsonConstants.RemoveFlagsBitMask; 257_currentDepth &= JsonConstants.RemoveFlagsBitMask; 267_currentDepth &= JsonConstants.RemoveFlagsBitMask;
95 references to _currentDepth
System.Text.Json (95)
System\Text\Json\Writer\Utf8JsonWriter.cs (4)
116public int CurrentDepth => _currentDepth & JsonConstants.RemoveFlagsBitMask; 603if (_currentDepth < 0) 683if (_currentDepth < 0) 1256=> ThrowHelper.ThrowInvalidOperationException(ExceptionResource.DepthTooLarge, _currentDepth, _options.MaxDepth, token: default, tokenType: default);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (4)
226if (_currentDepth < 0) 261if (_currentDepth < 0) 300if (_currentDepth < 0) 350if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (4)
231if (_currentDepth < 0) 264if (_currentDepth < 0) 302if (_currentDepth < 0) 350if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (4)
230if (_currentDepth < 0) 263if (_currentDepth < 0) 301if (_currentDepth < 0) 349if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (4)
230if (_currentDepth < 0) 260if (_currentDepth < 0) 295if (_currentDepth < 0) 340if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (4)
234if (_currentDepth < 0) 264if (_currentDepth < 0) 299if (_currentDepth < 0) 344if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (4)
234if (_currentDepth < 0) 264if (_currentDepth < 0) 299if (_currentDepth < 0) 344if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (4)
230if (_currentDepth < 0) 264if (_currentDepth < 0) 303if (_currentDepth < 0) 352if (_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)
353if (_currentDepth < 0) 383if (_currentDepth < 0) 415if (_currentDepth < 0) 446if (_currentDepth < 0) 491if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (4)
306if (_currentDepth < 0) 336if (_currentDepth < 0) 371if (_currentDepth < 0) 416if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (13)
175if (_currentDepth < 0) 206if (_currentDepth < 0) 335if (_currentDepth < 0) 364if (_currentDepth < 0) 393if (_currentDepth < 0) 1386if (_currentDepth < 0) 1420if (_currentDepth < 0) 1457if (_currentDepth < 0) 1493if (_currentDepth < 0) 1532if (_currentDepth < 0) 1581if (_currentDepth < 0) 1633if (_currentDepth < 0) 1684if (_currentDepth < 0)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (4)
315if (_currentDepth < 0) 345if (_currentDepth < 0) 380if (_currentDepth < 0) 425if (_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)
185if (_currentDepth < 0) 273if (_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)