Home
last modified time | relevance | path

Searched refs:JsonToken (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs43 AssertTokens("{}", JsonToken.StartObject, JsonToken.EndObject); in EmptyObjectValue()
49 AssertTokens("[]", JsonToken.StartArray, JsonToken.EndArray); in EmptyArrayValue()
68 AssertTokensNoReplacement("\"" + json + "\"", JsonToken.Value(expectedValue)); in StringValue()
80 AssertTokens("'\\ud800\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
81 AssertTokens("'\ud800\\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth()
95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth()
99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DJsonToken.cs37 internal sealed class JsonToken : IEquatable<JsonToken> class
40 private static readonly JsonToken _true = new JsonToken(TokenType.True);
41 private static readonly JsonToken _false = new JsonToken(TokenType.False);
42 private static readonly JsonToken _null = new JsonToken(TokenType.Null);
43 private static readonly JsonToken startObject = new JsonToken(TokenType.StartObject);
44 private static readonly JsonToken endObject = new JsonToken(TokenType.EndObject);
45 private static readonly JsonToken startArray = new JsonToken(TokenType.StartArray);
46 private static readonly JsonToken endArray = new JsonToken(TokenType.EndArray);
47 private static readonly JsonToken endDocument = new JsonToken(TokenType.EndDocument);
49 internal static JsonToken Null { get { return _null; } }
[all …]
DJsonTokenizer.cs55 private JsonToken bufferedToken;
71 …internal static JsonTokenizer FromReplayedTokens(IList<JsonToken> tokens, JsonTokenizer continuati… in FromReplayedTokens()
84 internal void PushBack(JsonToken token) in PushBack()
91 if (token.Type == JsonToken.TokenType.StartObject) in PushBack()
95 else if (token.Type == JsonToken.TokenType.EndObject) in PushBack()
109 internal JsonToken Next() in Next()
111 JsonToken tokenToReturn; in Next()
121 if (tokenToReturn.Type == JsonToken.TokenType.StartObject) in Next()
125 else if (tokenToReturn.Type == JsonToken.TokenType.EndObject) in Next()
138 protected abstract JsonToken NextImpl(); in NextImpl()
[all …]
DJsonParser.cs135 if (lastToken != JsonToken.EndDocument) in Merge()
165 if (token.Type != JsonToken.TokenType.StartObject) in Merge()
178 if (token.Type == JsonToken.TokenType.EndObject) in Merge()
182 if (token.Type != JsonToken.TokenType.Name) in Merge()
216 if (token.Type == JsonToken.TokenType.Null) in MergeField()
248 if (token.Type != JsonToken.TokenType.StartArray) in MergeRepeatedField()
257 if (token.Type == JsonToken.TokenType.EndArray) in MergeRepeatedField()
262 if (token.Type == JsonToken.TokenType.Null) in MergeRepeatedField()
274 if (token.Type != JsonToken.TokenType.StartObject) in MergeMapField()
291 if (token.Type == JsonToken.TokenType.EndObject) in MergeMapField()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DJsonParser.java22 import com.google.gson.stream.JsonToken;
88 checkState(jr.peek() == JsonToken.END_OBJECT, "Bad token: " + jr.getPath()); in parseJsonObject()
100 checkState(jr.peek() == JsonToken.END_ARRAY, "Bad token: " + jr.getPath()); in parseJsonArray()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DAddAnnotation.java29 import com.google.gson.stream.JsonToken;
148 JsonToken token = reader.peek(); in fromJsonFile()
149 if (token == JsonToken.STRING) { in fromJsonFile()
/external/cldr/tools/java/org/unicode/cldr/tool/
DKeymanCheck.java27 import com.google.gson.stream.JsonToken;
59 JsonToken token = reader.peek(); in prettyprint()
/external/caliper/lib/
Dgson-2.2.2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/cldr/tools/java/libs/
Dgson.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/protobuf/
DMakefile.am135 csharp/src/Google.Protobuf/JsonToken.cs \
/external/grpc-grpc-java/core/
Dgrpc-core-1.14.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/grpc/ io/ ...
/external/v8/src/inspector/build/closure-compiler/
Dclosure-compiler.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/external/conscrypt/benchmark-android/
Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties ...