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;
1080
_trailingCommaBeforeComment
= false;
1274
_trailingCommaBeforeComment
= false;
1747
_trailingCommaBeforeComment
= prevTrailingCommaBeforeComment;
1821
_trailingCommaBeforeComment
= true;
1958
_trailingCommaBeforeComment
= true;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (6)
36
_trailingCommaBeforeComment
= state._trailingCommaBeforeComment;
406
_trailingCommaBeforeComment
= false;
712
_trailingCommaBeforeComment
= false;
1551
_trailingCommaBeforeComment
= prevTrailingCommaBeforeComment;
1634
_trailingCommaBeforeComment
= true;
1780
_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
)
1078
Debug.Assert((
_trailingCommaBeforeComment
&& _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !
_trailingCommaBeforeComment
);
1079
Debug.Assert((
_trailingCommaBeforeComment
&& marker != JsonConstants.Slash) || !
_trailingCommaBeforeComment
);
1735
bool prevTrailingCommaBeforeComment =
_trailingCommaBeforeComment
;
1922
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
);
1537
bool prevTrailingCommaBeforeComment =
_trailingCommaBeforeComment
;
1735
if (_previousTokenType <= JsonTokenType.StartObject || _previousTokenType == JsonTokenType.StartArray ||
_trailingCommaBeforeComment
)