Beispiel #1
0
 /// <summary>
 /// Creates a tokenizer that first replays the given list of tokens, then continues reading
 /// from another tokenizer. Note that if the returned tokenizer is "pushed back", that does not push back
 /// on the continuation tokenizer, or vice versa. Care should be taken when using this method - it was
 /// created for the sake of Any parsing.
 /// </summary>
 internal static JsonTokenizer FromReplayedTokens(IList <JsonToken> tokens, JsonTokenizer continuation)
 {
     return(new JsonReplayTokenizer(tokens, continuation));
 }
Beispiel #2
0
 internal JsonReplayTokenizer(IList <JsonToken> tokens, JsonTokenizer nextTokenizer)
 {
     this.tokens        = tokens;
     this.nextTokenizer = nextTokenizer;
 }