72 references to ConsumeTokenResult
System.Text.Json (72)
System\Text\Json\Reader\Utf8JsonReader.cs (36)
1703
ConsumeTokenResult
result = ConsumeNextToken(marker);
1704
if (result ==
ConsumeTokenResult
.Success)
1708
if (result ==
ConsumeTokenResult
.NotEnoughDataRollBackState)
1723
private
ConsumeTokenResult
ConsumeNextToken(byte marker)
1731
return ConsumeComment() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1749
return ReadFirstToken(marker) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1768
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
1779
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
1789
return ConsumeComment() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1801
return
ConsumeTokenResult
.Success;
1807
return ConsumePropertyName() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1816
return
ConsumeTokenResult
.Success;
1820
return ConsumeValue(first) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1835
return
ConsumeTokenResult
.Success;
1838
private
ConsumeTokenResult
ConsumeNextTokenFromLastNonCommentToken()
1876
return ReadFirstToken(first) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2077
return
ConsumeTokenResult
.Success;
2080
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
2155
private
ConsumeTokenResult
ConsumeNextTokenUntilAfterAllCommentsAreSkipped(byte marker)
2219
return ReadFirstToken(marker) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2237
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
2248
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
2276
return ConsumePropertyName() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2290
return ConsumeValue(marker) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2307
return
ConsumeTokenResult
.Success;
2309
return
ConsumeTokenResult
.IncompleteNoRollBackNecessary;
2311
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (36)
1533
ConsumeTokenResult
result = ConsumeNextTokenMultiSegment(marker);
1534
if (result ==
ConsumeTokenResult
.Success)
1538
if (result ==
ConsumeTokenResult
.NotEnoughDataRollBackState)
1555
private
ConsumeTokenResult
ConsumeNextTokenMultiSegment(byte marker)
1563
return SkipOrConsumeCommentMultiSegmentWithRollback() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1581
return ReadFirstTokenMultiSegment(marker) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1608
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
1620
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
1630
return SkipOrConsumeCommentMultiSegmentWithRollback() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1642
return
ConsumeTokenResult
.Success;
1648
return ConsumePropertyNameMultiSegment() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1657
return
ConsumeTokenResult
.Success;
1661
return ConsumeValueMultiSegment(first) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1676
return
ConsumeTokenResult
.Success;
1679
private
ConsumeTokenResult
ConsumeNextTokenFromLastNonCommentTokenMultiSegment()
1717
return ReadFirstTokenMultiSegment(first) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
1929
return
ConsumeTokenResult
.Success;
1932
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
2007
private
ConsumeTokenResult
ConsumeNextTokenUntilAfterAllCommentsAreSkippedMultiSegment(byte marker)
2075
return ReadFirstTokenMultiSegment(marker) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2101
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
2113
return
ConsumeTokenResult
.NotEnoughDataRollBackState;
2141
return ConsumePropertyNameMultiSegment() ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2154
return ConsumeValueMultiSegment(marker) ?
ConsumeTokenResult
.Success :
ConsumeTokenResult
.NotEnoughDataRollBackState;
2171
return
ConsumeTokenResult
.Success;
2173
return
ConsumeTokenResult
.IncompleteNoRollBackNecessary;
2175
return
ConsumeTokenResult
.NotEnoughDataRollBackState;