20 writes to _currentDepth
System.Text.Json (20)
System\Text\Json\Writer\Utf8JsonWriter.cs (15)
271_currentDepth = default; 494_currentDepth &= JsonConstants.RemoveFlagsBitMask; 495_currentDepth++; 624_currentDepth &= JsonConstants.RemoveFlagsBitMask; 625_currentDepth++; 648_currentDepth &= JsonConstants.RemoveFlagsBitMask; 649_currentDepth++; 673_currentDepth &= JsonConstants.RemoveFlagsBitMask; 674_currentDepth++; 803_currentDepth &= JsonConstants.RemoveFlagsBitMask; 804_currentDepth++; 828_currentDepth &= JsonConstants.RemoveFlagsBitMask; 829_currentDepth++; 925_currentDepth--; 1128_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;
93 references to _currentDepth
System.Text.Json (93)
System\Text\Json\Writer\Utf8JsonWriter.cs (4)
95public int CurrentDepth => _currentDepth & JsonConstants.RemoveFlagsBitMask; 483ThrowHelper.ThrowInvalidOperationException(ExceptionResource.DepthTooLarge, _currentDepth, _options.MaxDepth, token: default, tokenType: default); 506if (_currentDepth < 0) 573if (_currentDepth < 0)
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)
17ThrowHelper.ThrowInvalidOperationOrArgumentException(propertyName, _currentDepth, _options.MaxDepth); 24ThrowHelper.ThrowInvalidOperationOrArgumentException(utf8PropertyName, _currentDepth, _options.MaxDepth); 31ThrowHelper.ThrowInvalidOperationException(_currentDepth, _options.MaxDepth); 75if (_currentDepth < 0) 106if (_currentDepth < 0) 148if (_currentDepth < 0) 179if (_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.UnsignedNumber.cs (2)
68if (_currentDepth < 0) 92if (_currentDepth < 0)