/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/protocol/ |
D | tsprotocol.go | 33 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:"workspaceFolders,omitempty"` [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/ |
D | tsprotocol.go | 33 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:"workspaceFolders,omitempty"` [all …]
|
/third_party/spirv-tools/utils/vscode/src/lsp/protocol/ |
D | tsprotocol.go | 33 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:"workspaceFolders,omitempty"` [all …]
|
/third_party/json/test/src/ |
D | unit-conversions.cpp | 34 using nlohmann::json; 59 json::object_t o_reference = {{"object", json::object()}, 66 json j(o_reference); 70 json::object_t o = j.get<json::object_t>(); 71 CHECK(json(o) == j); 76 std::map<json::string_t, json> o = 77 j.get<std::map<json::string_t, json>>(); 78 CHECK(json(o) == j); 83 std::multimap<json::string_t, json> o = 84 j.get<std::multimap<json::string_t, json>>(); [all …]
|
D | unit-constructor1.cpp | 34 using nlohmann::json; 51 auto t = json::value_t::null; 52 json j(t); 58 auto t = json::value_t::discarded; 59 json j(t); 65 auto t = json::value_t::object; 66 json j(t); 72 auto t = json::value_t::array; 73 json j(t); 79 auto t = json::value_t::boolean; [all …]
|
D | unit-element_access2.cpp | 33 using nlohmann::json; 39 …json j = {{"integer", 1}, {"unsigned", 1u}, {"floating", 42.23}, {"null", nullptr}, {"string", "he… 40 const json j_const = j; 46 CHECK(j.at("integer") == json(1)); 47 CHECK(j.at("unsigned") == json(1u)); 48 CHECK(j.at("boolean") == json(true)); 49 CHECK(j.at("null") == json(nullptr)); 50 CHECK(j.at("string") == json("hello world")); 51 CHECK(j.at("floating") == json(42.23)); 52 CHECK(j.at("object") == json::object()); [all …]
|
D | unit-element_access1.cpp | 33 using nlohmann::json; 39 json j = {1, 1u, true, nullptr, "string", 42.23, json::object(), {1, 2, 3}}; 40 const json j_const = j; 46 CHECK(j.at(0) == json(1)); 47 CHECK(j.at(1) == json(1u)); 48 CHECK(j.at(2) == json(true)); 49 CHECK(j.at(3) == json(nullptr)); 50 CHECK(j.at(4) == json("string")); 51 CHECK(j.at(5) == json(42.23)); 52 CHECK(j.at(6) == json::object()); [all …]
|
D | unit-cbor.cpp | 33 using nlohmann::json; 61 bool number_integer(json::number_integer_t /*unused*/) in number_integer() 66 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned() 71 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float() 111 …bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*u… in parse_error() 128 json j = json::value_t::discarded; 129 const auto result = json::to_cbor(j); 136 json j = std::numeric_limits<json::number_float_t>::quiet_NaN(); 138 const auto result = json::to_cbor(j); 145 json j = std::numeric_limits<json::number_float_t>::infinity(); [all …]
|
D | unit-reference_access.cpp | 33 using nlohmann::json; 38 json json_types = 54 using test_type = json::object_t; 55 json value = {{"one", 1}, {"two", 2}}; 67 CHECK_NOTHROW(value.get_ref<json::object_t&>()); 68 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&); 69 CHECK_THROWS_WITH(value.get_ref<json::array_t&>(), 71 CHECK_THROWS_AS(value.get_ref<json::string_t&>(), json::type_error&); 72 CHECK_THROWS_WITH(value.get_ref<json::string_t&>(), 74 CHECK_THROWS_AS(value.get_ref<json::boolean_t&>(), json::type_error&); [all …]
|
D | unit-modifiers.cpp | 33 using nlohmann::json; 41 json j = true; 42 json k = j; 45 CHECK(j == json(json::value_t::boolean)); 46 CHECK(j == json(k.type())); 51 json j = "hello world"; 52 json k = j; 55 CHECK(j == json(json::value_t::string)); 56 CHECK(j == json(k.type())); 63 json j = json::array(); [all …]
|
D | unit-class_parser.cpp | 34 using nlohmann::json; 55 bool number_integer(json::number_integer_t val) in number_integer() 61 bool number_unsigned(json::number_unsigned_t val) in number_unsigned() 67 bool number_float(json::number_float_t /*unused*/, const std::string& s) in number_float() 79 bool binary(json::binary_t& val) in binary() 138 …bool parse_error(std::size_t position, const std::string& /*unused*/, const json::exception& /*unu… in parse_error() 149 class SaxCountdown : public nlohmann::json::json_sax_t 165 bool number_integer(json::number_integer_t /*val*/) override in number_integer() 170 bool number_unsigned(json::number_unsigned_t /*val*/) override in number_unsigned() 175 bool number_float(json::number_float_t /*val*/, const std::string& /*s*/) override in number_float() [all …]
|
D | unit-ubjson.cpp | 33 using nlohmann::json; 59 bool number_integer(json::number_integer_t /*unused*/) in number_integer() 64 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned() 69 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float() 109 …bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*u… in parse_error() 126 json j = json::value_t::discarded; 127 const auto result = json::to_ubjson(j); 133 json j = nullptr; 135 const auto result = json::to_ubjson(j); 139 CHECK(json::from_ubjson(result) == j); [all …]
|
D | unit-bson.cpp | 33 using nlohmann::json; 46 json j = nullptr; 47 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 48 …CHECK_THROWS_WITH(json::to_bson(j), "[json.exception.type_error.317] to serialize to BSON, top-lev… 55 json j = true; 56 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 57 …CHECK_THROWS_WITH(json::to_bson(j), "[json.exception.type_error.317] to serialize to BSON, top-lev… 62 json j = false; 63 CHECK_THROWS_AS(json::to_bson(j), json::type_error&); 64 …CHECK_THROWS_WITH(json::to_bson(j), "[json.exception.type_error.317] to serialize to BSON, top-lev… [all …]
|
D | unit-diagnostics.cpp | 39 using nlohmann::json; 45 json j = 1; 47 …string>(), "[json.exception.type_error.302] type must be string, but is number", json::type_error); 52 json j; 55 …, "[json.exception.type_error.302] (/a/b/c) type must be string, but is number", json::type_error); 60 json j; 62 …nd"), "[json.exception.out_of_range.403] (/object) key 'not_found' not found", json::out_of_range); 67 json j; 69 …), "[json.exception.out_of_range.401] (/array) array index 5 is out of range", json::out_of_range); 74 json j; [all …]
|
D | unit-regression1.cpp | 37 using nlohmann::json; 127 friend void to_json(json& j, const nocopy& n) in to_json() 226 json parsed_fields = json::parse(payload); 245 CHECK(fields == json::parse(fields.dump())); 259 json j; 305 json a = {1, 2, 3}; 306 json::reverse_iterator rit = a.rbegin(); 308 CHECK(*rit == json(2)); 309 CHECK(rit.value() == json(2)); 312 json a = {1, 2, 3}; [all …]
|
D | unit-class_lexer.cpp | 34 using nlohmann::json; 39 json::lexer::token_type scan_string(const char* s, bool ignore_comments = false); 40 json::lexer::token_type scan_string(const char* s, const bool ignore_comments) in scan_string() 43 …return nlohmann::detail::lexer<json, decltype(ia)>(std::move(ia), ignore_comments).scan(); // NOLI… in scan_string() 51 …auto lexer = nlohmann::detail::lexer<json, decltype(ia)>(std::move(ia), ignore_comments); // NOLIN… in get_error_message() 62 CHECK((scan_string("[") == json::lexer::token_type::begin_array)); 63 CHECK((scan_string("]") == json::lexer::token_type::end_array)); 64 CHECK((scan_string("{") == json::lexer::token_type::begin_object)); 65 CHECK((scan_string("}") == json::lexer::token_type::end_object)); 66 CHECK((scan_string(",") == json::lexer::token_type::value_separator)); [all …]
|
D | unit-items.cpp | 33 using nlohmann::json; 54 json j = { {"A", 1}, {"B", 2} }; 57 for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy) 64 CHECK(i.value() == json(1)); 71 CHECK(i.value() == json(2)); 87 json j = { {"A", 1}, {"B", 2} }; 90 for (auto& i : json::iterator_wrapper(j)) 97 CHECK(i.value() == json(1)); 100 i.value() = json(11); 101 CHECK(i.value() == json(11)); [all …]
|
D | unit-deserialization.cpp | 33 using nlohmann::json; 41 struct SaxEventLogger : public nlohmann::json_sax<json> 55 bool number_integer(json::number_integer_t val) override in number_integer() 61 bool number_unsigned(json::number_unsigned_t val) override in number_unsigned() 67 bool number_float(json::number_float_t /*val*/, const std::string& s) override in number_float() 79 bool binary(json::binary_t& val) override in binary() 138 …bool parse_error(std::size_t position, const std::string& /*last_token*/, const json::exception& /… in parse_error() 201 json j = json::parse(ss1); 202 CHECK(json::accept(ss2)); 203 CHECK(j == json({"foo", 1, 2, 3, false, {{"one", 1}}})); [all …]
|
D | unit-json_patch.cpp | 33 using nlohmann::json; 45 json op1 = R"({ "op": "add", "path": "/a/b/c", "value": "foo" })"_json; 46 json op2 = R"({ "path": "/a/b/c", "op": "add", "value": "foo" })"_json; 47 json op3 = R"({ "value": "foo", "path": "/a/b/c", "op": "add" })"_json; 56 json patch = R"([{ "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }])"_json; 62 json doc1 = R"({ "a": { "foo": 1 } })"_json; 80 json doc2 = R"({ "q": { "bar": 2 } })"_json; 83 CHECK_THROWS_AS(doc2.patch(patch), json::out_of_range&); 92 json doc = {1, 2, 3, 4}; 93 json patch = {{{"op", "remove"}, {"path", "/1"}}}; [all …]
|
D | unit-hash.cpp | 33 using json = nlohmann::json; typedef 46 hashes.insert(std::hash<json> {}(json(nullptr))); 49 hashes.insert(std::hash<json> {}(json(true))); 50 hashes.insert(std::hash<json> {}(json(false))); 53 hashes.insert(std::hash<json> {}(json(""))); 54 hashes.insert(std::hash<json> {}(json("foo"))); 57 hashes.insert(std::hash<json> {}(json(0))); 58 hashes.insert(std::hash<json> {}(json(unsigned(0)))); 60 hashes.insert(std::hash<json> {}(json(-1))); 61 hashes.insert(std::hash<json> {}(json(0.0))); [all …]
|
D | unit-msgpack.cpp | 33 using nlohmann::json; 60 bool number_integer(json::number_integer_t /*unused*/) in number_integer() 65 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned() 70 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float() 110 …bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*u… in parse_error() 127 json j = json::value_t::discarded; 128 const auto result = json::to_msgpack(j); 134 json j = nullptr; 136 const auto result = json::to_msgpack(j); 140 CHECK(json::from_msgpack(result) == j); [all …]
|
D | unit-constructor2.cpp | 33 using nlohmann::json; 41 json j {{"foo", 1}, {"bar", false}}; 42 json k(j); // NOLINT(performance-unnecessary-copy-initialization) 48 json j {"foo", 1, 42.23, false}; 49 json k(j); // NOLINT(performance-unnecessary-copy-initialization) 55 json j(nullptr); 56 json k(j); // NOLINT(performance-unnecessary-copy-initialization) 62 json j(true); 63 json k(j); // NOLINT(performance-unnecessary-copy-initialization) 69 json j("Hello world"); [all …]
|
D | unit-pointer_access.cpp | 33 using nlohmann::json; 39 using test_type = json::object_t; 40 json value = {{"one", 1}, {"two", 2}}; 56 CHECK(value.get_ptr<json::object_t*>() != nullptr); 57 CHECK(value.get_ptr<json::array_t*>() == nullptr); 58 CHECK(value.get_ptr<json::string_t*>() == nullptr); 59 CHECK(value.get_ptr<json::boolean_t*>() == nullptr); 60 CHECK(value.get_ptr<json::number_integer_t*>() == nullptr); 61 CHECK(value.get_ptr<json::number_unsigned_t*>() == nullptr); 62 CHECK(value.get_ptr<json::number_float_t*>() == nullptr); [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/ |
D | frame_capture_utils.cpp | 111 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->addScalar("blue", color.blue); in SerializeColorF() 137 json->addScalar("alpha", color.alpha); in SerializeColorF() 140 void SerializeColorFWithGroup(JsonSerializer *json, const char *groupName, const ColorF &color) in SerializeColorFWithGroup() argument 142 GroupScope group(json, groupName); in SerializeColorFWithGroup() [all …]
|
/third_party/typescript/src/testRunner/unittests/config/ |
D | matchFiles.ts | 109 …function validateMatches(expected: ParsedCommandLine, json: any, host: ParseConfigHost, basePath: … 111 const jsonText = JSON.stringify(json); 122 …const actual = parseJsonConfigFileContent(json, host, basePath, existingOptions, configFileName, r… 137 …function createDiagnosticForConfigFile(json: any, start: number, length: number, diagnosticMessage… 138 const text = JSON.stringify(json); 149 const json = {}; constant 162 … validateMatches(expected, json, caseInsensitiveCommonFoldersHost, caseInsensitiveBasePath); 167 const json = { constant 182 validateMatches(expected, json, caseInsensitiveHost, caseInsensitiveBasePath); 185 const json = { constant [all …]
|