Home
last modified time | relevance | path

Searched refs:json (Results 1 - 25 of 997) sorted by relevance

12345678910>>...40

/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/protocol/
H A Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
H A Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json
[all...]
/third_party/spirv-tools/utils/vscode/src/lsp/protocol/
H A Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json
[all...]
/third_party/json/tests/src/
H A Dunit-constructor1.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
30 auto t = json::value_t::null;
31 json j(t);
37 auto t = json::value_t::discarded;
38 json j(t);
44 auto t = json::value_t::object;
45 json j(t);
51 auto t = json
[all...]
H A Dunit-class_parser.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
37 bool number_integer(json::number_integer_t val) in number_integer()
43 bool number_unsigned(json::number_unsigned_t val) in number_unsigned()
49 bool number_float(json::number_float_t /*unused*/, const std::string& s) in number_float()
61 bool binary(json::binary_t& val) in binary()
120 bool parse_error(std::size_t position, const std::string& /*unused*/, const json::exception& /*unused*/) in parse_error()
131 class SaxCountdown : public nlohmann::json::json_sax_t
147 bool number_integer(json
[all...]
H A Dunit-conversions.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
20 #include <nlohmann/json.hpp>
21 using nlohmann::json;
39 json::object_t o_reference = {{"object", json::object()},
46 json j(o_reference);
48 SECTION("json::object_t")
50 json::object_t o = j.get<json::object_t>();
51 CHECK(json(
1559 CHECK(json(TS_INVALID) == json()); global() variable
[all...]
H A Dunit-modifiers.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
21 json j = true;
22 json k = j;
25 CHECK(j == json(json::value_t::boolean));
26 CHECK(j == json(k.type()));
31 json j = "hello world";
32 json
[all...]
H A Dunit-element_access1.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
19 json j = {1, 1u, true, nullptr, "string", 42.23, json::object(), {1, 2, 3}};
20 const json j_const = j;
26 CHECK(j.at(0) == json(1));
27 CHECK(j.at(1) == json(1u));
28 CHECK(j.at(2) == json(true));
29 CHECK(j.at(3) == json(nullpt
[all...]
H A Dunit-diagnostics.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
18 #include <nlohmann/json.hpp>
19 using nlohmann::json;
25 json j = 1;
27 CHECK_THROWS_WITH_AS(s = j.get<std::string>(), "[json.exception.type_error.302] type must be string, but is number", json::type_error);
32 json j;
35 CHECK_THROWS_WITH_AS(s = j["a"]["b"]["c"].get<std::string>(), "[json.exception.type_error.302] (/a/b/c) type must be string, but is number", json::type_error);
40 json
[all...]
H A Dunit-ubjson.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
38 bool number_integer(json::number_integer_t /*unused*/) in number_integer()
43 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned()
48 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float()
88 bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static) in parse_error()
105 json j = json::value_t::discarded;
106 const auto result = json
[all...]
H A Dunit-reference_access.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
17 json json_types =
33 using test_type = json::object_t;
34 json value = {{"one", 1}, {"two", 2}};
46 CHECK_NOTHROW(value.get_ref<json::object_t&>());
47 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
48 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json
[all...]
H A Dunit-cbor.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
40 bool number_integer(json::number_integer_t /*unused*/) in number_integer()
45 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned()
50 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float()
90 bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static) in parse_error()
107 json j = json::value_t::discarded;
108 const auto result = json
[all...]
H A Dunit-class_lexer.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
18 json::lexer::token_type scan_string(const char* s, bool ignore_comments = false);
19 json::lexer::token_type scan_string(const char* s, const bool ignore_comments) in scan_string()
22 return nlohmann::detail::lexer<json, decltype(ia)>(std::move(ia), ignore_comments).scan(); // NOLINT(hicpp-move-const-arg,performance-move-const-arg) in scan_string()
30 auto lexer = nlohmann::detail::lexer<json, decltype(ia)>(std::move(ia), ignore_comments); // NOLINT(hicpp-move-const-arg,performance-move-const-arg) in get_error_message()
41 CHECK((scan_string("[") == json::lexer::token_type::begin_array));
42 CHECK((scan_string("]") == json::lexer::token_type::end_array));
43 CHECK((scan_string("{") == json
[all...]
H A Dunit-bjdata.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
42 bool number_integer(json::number_integer_t /*unused*/) in number_integer()
47 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned()
52 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float()
92 bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static) in parse_error()
215 nlohmann::detail::binary_reader<json, decltype(ia)> br{std::move(ia), json::input_format_t::bjdata};
226 json
[all...]
H A Dunit-iterators2.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
18 #include <nlohmann/json.hpp>
19 using nlohmann::json;
30 json j_values = {nullptr, true, 42, 42u, 23.23, {{"one", 1}, {"two", 2}}, {1, 2, 3, 4, 5}, "Hello, world"};
32 for (json& j : j_values)
74 if (j.type() == json::value_t::object)
77 CHECK_THROWS_WITH_AS(it1 < it1, "[json.exception.invalid_iterator.213] (/5) cannot compare order of object iterators", json::invalid_iterator&);
78 CHECK_THROWS_WITH_AS(it1 < it2, "[json.exception.invalid_iterator.213] (/5) cannot compare order of object iterators", json
[all...]
H A Dunit-constructor2.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
20 json j {{"foo", 1}, {"bar", false}};
21 json k(j); // NOLINT(performance-unnecessary-copy-initialization)
27 json j {"foo", 1, 42.23, false};
28 json k(j); // NOLINT(performance-unnecessary-copy-initialization)
34 json j(nullptr);
35 json k(j); // NOLINT(performance-unnecessary-copy-initialization)
41 json
[all...]
H A Dunit-items.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
28 json j = { {"A", 1}, {"B", 2} };
31 for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
38 CHECK(i.value() == json(1));
45 CHECK(i.value() == json(2));
61 json j = { {"A", 1}, {"B", 2} };
64 for (auto& i : json::iterator_wrapper(j)) // NOLINT(readability-qualified-auto)
71 CHECK(i.value() == json(
[all...]
H A Dunit-json_patch.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
27 json op1 = R"({ "op": "add", "path": "/a/b/c", "value": "foo" })"_json;
28 json op2 = R"({ "path": "/a/b/c", "op": "add", "value": "foo" })"_json;
29 json op3 = R"({ "value": "foo", "path": "/a/b/c", "op": "add" })"_json;
38 json patch1 = R"([{ "op": "add", "path": "/a/b", "value": [ "foo", "bar" ] }])"_json;
44 json doc1 = R"({ "a": { "foo": 1 } })"_json;
60 json doc2 = R"({ "q": { "bar": 2 } })"_json;
63 CHECK_THROWS_WITH_AS(doc2.patch(patch1), "[json
[all...]
H A Dunit-regression1.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 // for some reason including this after the json header leads to linker errors with VS 2017...
15 #include <nlohmann/json.hpp>
16 using nlohmann::json;
105 friend void to_json(json& j, const nocopy& n) in to_json()
119 json j = json::parse(s);
131 CHECK(json(NAN).dump() == "null");
132 CHECK(json(json
[all...]
H A Dunit-pointer_access.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
18 using test_type = json::object_t;
19 json value = {{"one", 1}, {"two", 2}};
35 CHECK(value.get_ptr<json::object_t*>() != nullptr);
36 CHECK(value.get_ptr<json::array_t*>() == nullptr);
37 CHECK(value.get_ptr<json::string_t*>() == nullptr);
38 CHECK(value.get_ptr<json::boolean_t*>() == nullptr);
39 CHECK(value.get_ptr<json
[all...]
H A Dunit-bson.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
25 json j = nullptr;
26 CHECK_THROWS_WITH_AS(json::to_bson(j), "[json.exception.type_error.317] to serialize to BSON, top-level type must be object, but is null", json::type_error&);
33 json j = true;
34 CHECK_THROWS_WITH_AS(json::to_bson(j), "[json
[all...]
H A Dunit-class_const_iterator.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
23 json j(json::value_t::null);
24 json::const_iterator it(&j);
29 json j(json::value_t::object);
30 json::const_iterator it(&j);
35 json
[all...]
H A Dunit-msgpack.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
42 bool number_integer(json::number_integer_t /*unused*/) in number_integer()
47 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned()
52 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float()
92 bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static) in parse_error()
109 json j = json::value_t::discarded;
110 const auto result = json
[all...]
H A Dunit-concepts.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
16 SECTION("container requirements for json")
18 // X: container class: json
19 // T: type of objects: json
20 // a, b: values of type X: json
25 CHECK((std::is_same<json::value_type, json>::value));
28 CHECK((std::is_same<json
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
H A Dframe_capture_utils.cpp111 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope() argument
116 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope() argument
124 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope() argument
132 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF() argument
134 json->addScalar("red", color.red); in SerializeColorF()
135 json->addScalar("green", color.green); in SerializeColorF()
136 json in SerializeColorF()
140 SerializeColorFWithGroup(JsonSerializer *json, const char *groupName, const ColorF &color) SerializeColorFWithGroup() argument
146 SerializeColorI(JsonSerializer *json, const ColorI &color) SerializeColorI() argument
154 SerializeColorUI(JsonSerializer *json, const ColorUI &color) SerializeColorUI() argument
162 SerializeExtents(JsonSerializer *json, const gl::Extents &extents) SerializeExtents() argument
170 SerializeOffsetBindingPointerVector( JsonSerializer *json, const char *groupName, const std::vector<gl::OffsetBindingPointer<ObjectType>> &offsetBindingPointerVector) SerializeOffsetBindingPointerVector() argument
187 SerializeBindingPointerVector( JsonSerializer *json, const std::vector<gl::BindingPointer<ObjectType>> &bindingPointerVector) SerializeBindingPointerVector() argument
206 SerializeRange(JsonSerializer *json, const gl::Range<T> &range) SerializeRange() argument
219 SerializeFormat(JsonSerializer *json, GLenum glFormat) SerializeFormat() argument
225 SerializeInternalFormat(JsonSerializer *json, const gl::InternalFormat *internalFormat) SerializeInternalFormat() argument
230 SerializeANGLEFormat(JsonSerializer *json, const angle::Format *format) SerializeANGLEFormat() argument
235 SerializeGLFormat(JsonSerializer *json, const gl::Format &format) SerializeGLFormat() argument
262 SerializeImageIndex(JsonSerializer *json, const gl::ImageIndex &imageIndex) SerializeImageIndex() argument
271 SerializeFramebufferAttachment(const gl::Context *context, JsonSerializer *json, ScratchBuffer *scratchBuffer, gl::Framebuffer *framebuffer, const gl::FramebufferAttachment &framebufferAttachment, gl::GLenumGroup enumGroup) SerializeFramebufferAttachment() argument
330 SerializeFramebufferState(const gl::Context *context, JsonSerializer *json, ScratchBuffer *scratchBuffer, gl::Framebuffer *framebuffer, const gl::FramebufferState &framebufferState) SerializeFramebufferState() argument
393 SerializeFramebuffer(const gl::Context *context, JsonSerializer *json, ScratchBuffer *scratchBuffer, gl::Framebuffer *framebuffer) SerializeFramebuffer() argument
402 SerializeRasterizerState(JsonSerializer *json, const gl::RasterizerState &rasterizerState) SerializeRasterizerState() argument
417 SerializeRectangle(JsonSerializer *json, const std::string &name, const gl::Rectangle &rectangle) SerializeRectangle() argument
428 SerializeBlendStateExt(JsonSerializer *json, const gl::BlendStateExt &blendStateExt) SerializeBlendStateExt() argument
442 SerializeDepthStencilState(JsonSerializer *json, const gl::DepthStencilState &depthStencilState) SerializeDepthStencilState() argument
464 SerializeVertexAttribCurrentValueData( JsonSerializer *json, const gl::VertexAttribCurrentValueData &vertexAttribCurrentValueData) SerializeVertexAttribCurrentValueData() argument
494 SerializePixelPackState(JsonSerializer *json, const gl::PixelPackState &pixelPackState) SerializePixelPackState() argument
506 SerializePixelUnpackState(JsonSerializer *json, const gl::PixelUnpackState &pixelUnpackState) SerializePixelUnpackState() argument
517 SerializeImageUnit(JsonSerializer *json, const gl::ImageUnit &imageUnit, int imageUnitIndex) SerializeImageUnit() argument
529 SerializeResourceID(JsonSerializer *json, const char *name, const ResourceType *resource) SerializeResourceID() argument
534 SerializeContextState(JsonSerializer *json, const gl::State &state) SerializeContextState() argument
674 SerializeBufferState(JsonSerializer *json, const gl::BufferState &bufferState) SerializeBufferState() argument
686 SerializeBuffer(const gl::Context *context, JsonSerializer *json, ScratchBuffer *scratchBuffer, gl::Buffer *buffer) SerializeBuffer() argument
709 SerializeColorGeneric(JsonSerializer *json, const std::string &name, const ColorGeneric &colorGeneric) SerializeColorGeneric() argument
732 SerializeSamplerState(JsonSerializer *json, const gl::SamplerState &samplerState) SerializeSamplerState() argument
748 SerializeSampler(JsonSerializer *json, gl::Sampler *sampler) SerializeSampler() argument
755 SerializeSwizzleState(JsonSerializer *json, const gl::SwizzleState &swizzleState) SerializeSwizzleState() argument
763 SerializeRenderbufferState(JsonSerializer *json, const gl::RenderbufferState &renderbufferState) SerializeRenderbufferState() argument
774 SerializeRenderbuffer(const gl::Context *context, JsonSerializer *json, ScratchBuffer *scratchBuffer, gl::Renderbuffer *renderbuffer) SerializeRenderbuffer() argument
822 SerializeWorkGroupSize(JsonSerializer *json, const sh::WorkGroupSize &workGroupSize) SerializeWorkGroupSize() argument
830 SerializeShaderVariable(JsonSerializer *json, const sh::ShaderVariable &shaderVariable) SerializeShaderVariable() argument
860 SerializeShaderVariablesVector(JsonSerializer *json, const std::vector<sh::ShaderVariable> &shaderVariables) SerializeShaderVariablesVector() argument
869 SerializeInterfaceBlocksVector(JsonSerializer *json, const std::vector<sh::InterfaceBlock> &interfaceBlocks) SerializeInterfaceBlocksVector() argument
888 SerializeShaderState(JsonSerializer *json, const gl::ShaderState &shaderState) SerializeShaderState() argument
928 SerializeShader(JsonSerializer *json, GLuint id, gl::Shader *shader) SerializeShader() argument
946 SerializeVariableLocationsVector(JsonSerializer *json, const std::string &group_name, const std::vector<gl::VariableLocation> &variableLocations) SerializeVariableLocationsVector() argument
961 SerializeBlockMemberInfo(JsonSerializer *json, const sh::BlockMemberInfo &blockMemberInfo) SerializeBlockMemberInfo() argument
971 SerializeActiveVariable(JsonSerializer *json, const gl::ActiveVariable &activeVariable) SerializeActiveVariable() argument
976 SerializeBufferVariablesVector(JsonSerializer *json, const std::vector<gl::BufferVariable> &bufferVariables) SerializeBufferVariablesVector() argument
990 SerializeProgramAliasedBindings(JsonSerializer *json, const gl::ProgramAliasedBindings &programAliasedBindings) SerializeProgramAliasedBindings() argument
1001 SerializeProgramState(JsonSerializer *json, const gl::ProgramState &programState) SerializeProgramState() argument
1033 SerializeProgramBindings(JsonSerializer *json, const gl::ProgramBindings &programBindings) SerializeProgramBindings() argument
1042 SerializeUniformData(JsonSerializer *json, const gl::Context *context, gl::Program *program, gl::UniformLocation loc, GLenum type, GLint size, void (gl::Program::*getFunc)(const gl::Context *, gl::UniformLocation, T *) const) SerializeUniformData() argument
1057 SerializeProgram(JsonSerializer *json, const gl::Context *context, GLuint id, gl::Program *program) SerializeProgram() argument
1131 SerializeImageDesc(JsonSerializer *json, size_t descIndex, const gl::ImageDesc &imageDesc) SerializeImageDesc() argument
1147 SerializeTextureState(JsonSerializer *json, const gl::TextureState &textureState) SerializeTextureState() argument
1178 SerializeTextureData(JsonSerializer *json, const gl::Context *context, gl::Texture *texture, ScratchBuffer *scratchBuffer) SerializeTextureData() argument
1248 SerializeTexture(const gl::Context *context, JsonSerializer *json, ScratchBuffer *scratchBuffer, gl::Texture *texture) SerializeTexture() argument
1268 SerializeVertexAttributeVector(JsonSerializer *json, const std::vector<gl::VertexAttribute> &vertexAttributes) SerializeVertexAttributeVector() argument
1284 SerializeVertexBindingsVector(JsonSerializer *json, const std::vector<gl::VertexBinding> &vertexBindings) SerializeVertexBindingsVector() argument
1299 SerializeVertexArrayState(JsonSerializer *json, const gl::VertexArrayState &vertexArrayState) SerializeVertexArrayState() argument
1323 SerializeVertexArray(JsonSerializer *json, gl::VertexArray *vertexArray) SerializeVertexArray() argument
1335 JsonSerializer json; SerializeContextToString() local
[all...]

Completed in 20 milliseconds

12345678910>>...40