14 writes to _trailingCommaBeforeComment
System.Text.Json (14)
System\Text\Json\Reader\Utf8JsonReader.cs (8)
225
_trailingCommaBeforeComment
= state._trailingCommaBeforeComment;
764
_trailingCommaBeforeComment
= false;
798
_trailingCommaBeforeComment
= false;
1046
_trailingCommaBeforeComment
= false;
1240
_trailingCommaBeforeComment
= false;
1714
_trailingCommaBeforeComment
= prevTrailingCommaBeforeComment;
1788
_trailingCommaBeforeComment
= true;
1925
_trailingCommaBeforeComment
= true;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (6)
36
_trailingCommaBeforeComment
= state._trailingCommaBeforeComment;
406
_trailingCommaBeforeComment
= false;
705
_trailingCommaBeforeComment
= false;
1546
_trailingCommaBeforeComment
= prevTrailingCommaBeforeComment;
1629
_trailingCommaBeforeComment
= true;
1775
_trailingCommaBeforeComment
= true;
15 references to _trailingCommaBeforeComment
System.Text.Json (15)
System\Text\Json\Reader\Utf8JsonReader.cs (9)
194
trailingCommaBeforeComment:
_trailingCommaBeforeComment
,
758
if (
_trailingCommaBeforeComment
)
792
if (
_trailingCommaBeforeComment
)
1044
Debug.Assert((
_trailingCommaBeforeComment
&& _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !
_trailingCommaBeforeComment
);
1045
Debug.Assert((
_trailingCommaBeforeComment
&& marker != JsonConstants.Slash) || !
_trailingCommaBeforeComment
);
1702
bool prevTrailingCommaBeforeComment =
_trailingCommaBeforeComment
;
1889
if (_previousTokenType <= JsonTokenType.StartObject || _previousTokenType == JsonTokenType.StartArray ||
_trailingCommaBeforeComment
)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (6)
404
Debug.Assert((
_trailingCommaBeforeComment
&& _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !
_trailingCommaBeforeComment
);
405
Debug.Assert((
_trailingCommaBeforeComment
&& marker != JsonConstants.Slash) || !
_trailingCommaBeforeComment
);
1532
bool prevTrailingCommaBeforeComment =
_trailingCommaBeforeComment
;
1730
if (_previousTokenType <= JsonTokenType.StartObject || _previousTokenType == JsonTokenType.StartArray ||
_trailingCommaBeforeComment
)