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