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