Test case
62 generated files · +13,207 −9,599test/inputs/json/priority/keywords.json
Mcjsondefault / TopLevel.c+939 −679
| @@ -5186,6 +5186,61 @@ void cJSON_DeleteDelegate(struct Delegate * x) { | ||
| 5186 | 5186 | } |
| 5187 | 5187 | } |
| 5188 | 5188 | |
| 5189 | +struct DeserializationFeature * cJSON_ParseDeserializationFeature(const char * s) { | |
| 5190 | + struct DeserializationFeature * x = NULL; | |
| 5191 | + if (NULL != s) { | |
| 5192 | + cJSON * j = cJSON_Parse(s); | |
| 5193 | + if (NULL != j) { | |
| 5194 | + x = cJSON_GetDeserializationFeatureValue(j); | |
| 5195 | + cJSON_Delete(j); | |
| 5196 | + } | |
| 5197 | + } | |
| 5198 | + return x; | |
| 5199 | +} | |
| 5200 | + | |
| 5201 | +struct DeserializationFeature * cJSON_GetDeserializationFeatureValue(const cJSON * j) { | |
| 5202 | + struct DeserializationFeature * x = NULL; | |
| 5203 | + if (NULL != j) { | |
| 5204 | + if (NULL != (x = cJSON_malloc(sizeof(struct DeserializationFeature)))) { | |
| 5205 | + memset(x, 0, sizeof(struct DeserializationFeature)); | |
| 5206 | + if (!cJSON_HasObjectItem(j, "DeserializationFeature")) { cJSON_DeleteDeserializationFeature(x); return NULL; } | |
| 5207 | + if (cJSON_HasObjectItem(j, "DeserializationFeature")) { | |
| 5208 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "DeserializationFeature"))) { cJSON_DeleteDeserializationFeature(x); return NULL; } | |
| 5209 | + x->deserialization_feature = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "DeserializationFeature")); | |
| 5210 | + } | |
| 5211 | + } | |
| 5212 | + } | |
| 5213 | + return x; | |
| 5214 | +} | |
| 5215 | + | |
| 5216 | +cJSON * cJSON_CreateDeserializationFeature(const struct DeserializationFeature * x) { | |
| 5217 | + cJSON * j = NULL; | |
| 5218 | + if (NULL != x) { | |
| 5219 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 5220 | + cJSON_AddNumberToObject(j, "DeserializationFeature", x->deserialization_feature); | |
| 5221 | + } | |
| 5222 | + } | |
| 5223 | + return j; | |
| 5224 | +} | |
| 5225 | + | |
| 5226 | +char * cJSON_PrintDeserializationFeature(const struct DeserializationFeature * x) { | |
| 5227 | + char * s = NULL; | |
| 5228 | + if (NULL != x) { | |
| 5229 | + cJSON * j = cJSON_CreateDeserializationFeature(x); | |
| 5230 | + if (NULL != j) { | |
| 5231 | + s = cJSON_Print(j); | |
| 5232 | + cJSON_Delete(j); | |
| 5233 | + } | |
| 5234 | + } | |
| 5235 | + return s; | |
| 5236 | +} | |
| 5237 | + | |
| 5238 | +void cJSON_DeleteDeserializationFeature(struct DeserializationFeature * x) { | |
| 5239 | + if (NULL != x) { | |
| 5240 | + cJSON_free(x); | |
| 5241 | + } | |
| 5242 | +} | |
| 5243 | + | |
| 5189 | 5244 | struct Dict * cJSON_ParseDict(const char * s) { |
| 5190 | 5245 | struct Dict * x = NULL; |
| 5191 | 5246 | if (NULL != s) { |
| @@ -7693,61 +7748,6 @@ void cJSON_DeleteFriend(struct Friend * x) { | ||
| 7693 | 7748 | } |
| 7694 | 7749 | } |
| 7695 | 7750 | |
| 7696 | -struct Goto * cJSON_ParseGoto(const char * s) { | |
| 7697 | - struct Goto * x = NULL; | |
| 7698 | - if (NULL != s) { | |
| 7699 | - cJSON * j = cJSON_Parse(s); | |
| 7700 | - if (NULL != j) { | |
| 7701 | - x = cJSON_GetGotoValue(j); | |
| 7702 | - cJSON_Delete(j); | |
| 7703 | - } | |
| 7704 | - } | |
| 7705 | - return x; | |
| 7706 | -} | |
| 7707 | - | |
| 7708 | -struct Goto * cJSON_GetGotoValue(const cJSON * j) { | |
| 7709 | - struct Goto * x = NULL; | |
| 7710 | - if (NULL != j) { | |
| 7711 | - if (NULL != (x = cJSON_malloc(sizeof(struct Goto)))) { | |
| 7712 | - memset(x, 0, sizeof(struct Goto)); | |
| 7713 | - if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteGoto(x); return NULL; } | |
| 7714 | - if (cJSON_HasObjectItem(j, "goto")) { | |
| 7715 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteGoto(x); return NULL; } | |
| 7716 | - x->goto_goto = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "goto")); | |
| 7717 | - } | |
| 7718 | - } | |
| 7719 | - } | |
| 7720 | - return x; | |
| 7721 | -} | |
| 7722 | - | |
| 7723 | -cJSON * cJSON_CreateGoto(const struct Goto * x) { | |
| 7724 | - cJSON * j = NULL; | |
| 7725 | - if (NULL != x) { | |
| 7726 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 7727 | - cJSON_AddNumberToObject(j, "goto", x->goto_goto); | |
| 7728 | - } | |
| 7729 | - } | |
| 7730 | - return j; | |
| 7731 | -} | |
| 7732 | - | |
| 7733 | -char * cJSON_PrintGoto(const struct Goto * x) { | |
| 7734 | - char * s = NULL; | |
| 7735 | - if (NULL != x) { | |
| 7736 | - cJSON * j = cJSON_CreateGoto(x); | |
| 7737 | - if (NULL != j) { | |
| 7738 | - s = cJSON_Print(j); | |
| 7739 | - cJSON_Delete(j); | |
| 7740 | - } | |
| 7741 | - } | |
| 7742 | - return s; | |
| 7743 | -} | |
| 7744 | - | |
| 7745 | -void cJSON_DeleteGoto(struct Goto * x) { | |
| 7746 | - if (NULL != x) { | |
| 7747 | - cJSON_free(x); | |
| 7748 | - } | |
| 7749 | -} | |
| 7750 | - | |
| 7751 | 7751 | struct Obj2False * cJSON_ParseObj2False(const char * s) { |
| 7752 | 7752 | struct Obj2False * x = NULL; |
| 7753 | 7753 | if (NULL != s) { |
| @@ -7922,6 +7922,12 @@ struct Obj2 * cJSON_GetObj2Value(const cJSON * j) { | ||
| 7922 | 7922 | x->delegate = cJSON_GetDelegateValue(cJSON_GetObjectItemCaseSensitive(j, "delegate")); |
| 7923 | 7923 | if (NULL == x->delegate) { cJSON_DeleteObj2(x); return NULL; } |
| 7924 | 7924 | } |
| 7925 | + if (!cJSON_HasObjectItem(j, "DeserializationFeature")) { cJSON_DeleteObj2(x); return NULL; } | |
| 7926 | + if (cJSON_HasObjectItem(j, "DeserializationFeature")) { | |
| 7927 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "DeserializationFeature"))) { cJSON_DeleteObj2(x); return NULL; } | |
| 7928 | + x->deserialization_feature = cJSON_GetDeserializationFeatureValue(cJSON_GetObjectItemCaseSensitive(j, "DeserializationFeature")); | |
| 7929 | + if (NULL == x->deserialization_feature) { cJSON_DeleteObj2(x); return NULL; } | |
| 7930 | + } | |
| 7925 | 7931 | if (!cJSON_HasObjectItem(j, "dict")) { cJSON_DeleteObj2(x); return NULL; } |
| 7926 | 7932 | if (cJSON_HasObjectItem(j, "dict")) { |
| 7927 | 7933 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "dict"))) { cJSON_DeleteObj2(x); return NULL; } |
| @@ -8197,12 +8203,6 @@ struct Obj2 * cJSON_GetObj2Value(const cJSON * j) { | ||
| 8197 | 8203 | x->obj2_friend = cJSON_GetFriendValue(cJSON_GetObjectItemCaseSensitive(j, "friend")); |
| 8198 | 8204 | if (NULL == x->obj2_friend) { cJSON_DeleteObj2(x); return NULL; } |
| 8199 | 8205 | } |
| 8200 | - if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj2(x); return NULL; } | |
| 8201 | - if (cJSON_HasObjectItem(j, "goto")) { | |
| 8202 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj2(x); return NULL; } | |
| 8203 | - x->obj2_goto = cJSON_GetGotoValue(cJSON_GetObjectItemCaseSensitive(j, "goto")); | |
| 8204 | - if (NULL == x->obj2_goto) { cJSON_DeleteObj2(x); return NULL; } | |
| 8205 | - } | |
| 8206 | 8206 | if (!cJSON_HasObjectItem(j, "false")) { cJSON_DeleteObj2(x); return NULL; } |
| 8207 | 8207 | if (cJSON_HasObjectItem(j, "false")) { |
| 8208 | 8208 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "false"))) { cJSON_DeleteObj2(x); return NULL; } |
| @@ -8235,6 +8235,7 @@ cJSON * cJSON_CreateObj2(const struct Obj2 * x) { | ||
| 8235 | 8235 | cJSON_AddItemToObject(j, "deinit", cJSON_CreateDeinit(x->deinit)); |
| 8236 | 8236 | cJSON_AddItemToObject(j, "del", cJSON_CreateDel(x->del)); |
| 8237 | 8237 | cJSON_AddItemToObject(j, "delegate", cJSON_CreateDelegate(x->delegate)); |
| 8238 | + cJSON_AddItemToObject(j, "DeserializationFeature", cJSON_CreateDeserializationFeature(x->deserialization_feature)); | |
| 8238 | 8239 | cJSON_AddItemToObject(j, "dict", cJSON_CreateDict(x->dict)); |
| 8239 | 8240 | cJSON_AddItemToObject(j, "dictionary", cJSON_CreateDictionary(x->dictionary)); |
| 8240 | 8241 | cJSON_AddItemToObject(j, "didSet", cJSON_CreateDidSet(x->did_set)); |
| @@ -8281,7 +8282,6 @@ cJSON * cJSON_CreateObj2(const struct Obj2 * x) { | ||
| 8281 | 8282 | cJSON_AddItemToObject(j, "float", cJSON_CreateFloat(x->obj2_float)); |
| 8282 | 8283 | cJSON_AddItemToObject(j, "for", cJSON_CreateFor(x->obj2_for)); |
| 8283 | 8284 | cJSON_AddItemToObject(j, "friend", cJSON_CreateFriend(x->obj2_friend)); |
| 8284 | - cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj2_goto)); | |
| 8285 | 8285 | cJSON_AddItemToObject(j, "false", cJSON_CreateObj2False(x->purple_false)); |
| 8286 | 8286 | } |
| 8287 | 8287 | } |
| @@ -8353,6 +8353,9 @@ void cJSON_DeleteObj2(struct Obj2 * x) { | ||
| 8353 | 8353 | if (NULL != x->delegate) { |
| 8354 | 8354 | cJSON_DeleteDelegate(x->delegate); |
| 8355 | 8355 | } |
| 8356 | + if (NULL != x->deserialization_feature) { | |
| 8357 | + cJSON_DeleteDeserializationFeature(x->deserialization_feature); | |
| 8358 | + } | |
| 8356 | 8359 | if (NULL != x->dict) { |
| 8357 | 8360 | cJSON_DeleteDict(x->dict); |
| 8358 | 8361 | } |
| @@ -8488,9 +8491,6 @@ void cJSON_DeleteObj2(struct Obj2 * x) { | ||
| 8488 | 8491 | if (NULL != x->obj2_friend) { |
| 8489 | 8492 | cJSON_DeleteFriend(x->obj2_friend); |
| 8490 | 8493 | } |
| 8491 | - if (NULL != x->obj2_goto) { | |
| 8492 | - cJSON_DeleteGoto(x->obj2_goto); | |
| 8493 | - } | |
| 8494 | 8494 | if (NULL != x->purple_false) { |
| 8495 | 8495 | cJSON_DeleteObj2False(x->purple_false); |
| 8496 | 8496 | } |
| @@ -11471,6 +11471,61 @@ void cJSON_DeleteNo(struct No * x) { | ||
| 11471 | 11471 | } |
| 11472 | 11472 | } |
| 11473 | 11473 | |
| 11474 | +struct Goto * cJSON_ParseGoto(const char * s) { | |
| 11475 | + struct Goto * x = NULL; | |
| 11476 | + if (NULL != s) { | |
| 11477 | + cJSON * j = cJSON_Parse(s); | |
| 11478 | + if (NULL != j) { | |
| 11479 | + x = cJSON_GetGotoValue(j); | |
| 11480 | + cJSON_Delete(j); | |
| 11481 | + } | |
| 11482 | + } | |
| 11483 | + return x; | |
| 11484 | +} | |
| 11485 | + | |
| 11486 | +struct Goto * cJSON_GetGotoValue(const cJSON * j) { | |
| 11487 | + struct Goto * x = NULL; | |
| 11488 | + if (NULL != j) { | |
| 11489 | + if (NULL != (x = cJSON_malloc(sizeof(struct Goto)))) { | |
| 11490 | + memset(x, 0, sizeof(struct Goto)); | |
| 11491 | + if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteGoto(x); return NULL; } | |
| 11492 | + if (cJSON_HasObjectItem(j, "goto")) { | |
| 11493 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteGoto(x); return NULL; } | |
| 11494 | + x->goto_goto = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "goto")); | |
| 11495 | + } | |
| 11496 | + } | |
| 11497 | + } | |
| 11498 | + return x; | |
| 11499 | +} | |
| 11500 | + | |
| 11501 | +cJSON * cJSON_CreateGoto(const struct Goto * x) { | |
| 11502 | + cJSON * j = NULL; | |
| 11503 | + if (NULL != x) { | |
| 11504 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 11505 | + cJSON_AddNumberToObject(j, "goto", x->goto_goto); | |
| 11506 | + } | |
| 11507 | + } | |
| 11508 | + return j; | |
| 11509 | +} | |
| 11510 | + | |
| 11511 | +char * cJSON_PrintGoto(const struct Goto * x) { | |
| 11512 | + char * s = NULL; | |
| 11513 | + if (NULL != x) { | |
| 11514 | + cJSON * j = cJSON_CreateGoto(x); | |
| 11515 | + if (NULL != j) { | |
| 11516 | + s = cJSON_Print(j); | |
| 11517 | + cJSON_Delete(j); | |
| 11518 | + } | |
| 11519 | + } | |
| 11520 | + return s; | |
| 11521 | +} | |
| 11522 | + | |
| 11523 | +void cJSON_DeleteGoto(struct Goto * x) { | |
| 11524 | + if (NULL != x) { | |
| 11525 | + cJSON_free(x); | |
| 11526 | + } | |
| 11527 | +} | |
| 11528 | + | |
| 11474 | 11529 | struct If * cJSON_ParseIf(const char * s) { |
| 11475 | 11530 | struct If * x = NULL; |
| 11476 | 11531 | if (NULL != s) { |
| @@ -11966,61 +12021,6 @@ void cJSON_DeleteNew(struct New * x) { | ||
| 11966 | 12021 | } |
| 11967 | 12022 | } |
| 11968 | 12023 | |
| 11969 | -struct Noexcept * cJSON_ParseNoexcept(const char * s) { | |
| 11970 | - struct Noexcept * x = NULL; | |
| 11971 | - if (NULL != s) { | |
| 11972 | - cJSON * j = cJSON_Parse(s); | |
| 11973 | - if (NULL != j) { | |
| 11974 | - x = cJSON_GetNoexceptValue(j); | |
| 11975 | - cJSON_Delete(j); | |
| 11976 | - } | |
| 11977 | - } | |
| 11978 | - return x; | |
| 11979 | -} | |
| 11980 | - | |
| 11981 | -struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) { | |
| 11982 | - struct Noexcept * x = NULL; | |
| 11983 | - if (NULL != j) { | |
| 11984 | - if (NULL != (x = cJSON_malloc(sizeof(struct Noexcept)))) { | |
| 11985 | - memset(x, 0, sizeof(struct Noexcept)); | |
| 11986 | - if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteNoexcept(x); return NULL; } | |
| 11987 | - if (cJSON_HasObjectItem(j, "noexcept")) { | |
| 11988 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteNoexcept(x); return NULL; } | |
| 11989 | - x->noexcept_noexcept = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept")); | |
| 11990 | - } | |
| 11991 | - } | |
| 11992 | - } | |
| 11993 | - return x; | |
| 11994 | -} | |
| 11995 | - | |
| 11996 | -cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) { | |
| 11997 | - cJSON * j = NULL; | |
| 11998 | - if (NULL != x) { | |
| 11999 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 12000 | - cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept); | |
| 12001 | - } | |
| 12002 | - } | |
| 12003 | - return j; | |
| 12004 | -} | |
| 12005 | - | |
| 12006 | -char * cJSON_PrintNoexcept(const struct Noexcept * x) { | |
| 12007 | - char * s = NULL; | |
| 12008 | - if (NULL != x) { | |
| 12009 | - cJSON * j = cJSON_CreateNoexcept(x); | |
| 12010 | - if (NULL != j) { | |
| 12011 | - s = cJSON_Print(j); | |
| 12012 | - cJSON_Delete(j); | |
| 12013 | - } | |
| 12014 | - } | |
| 12015 | - return s; | |
| 12016 | -} | |
| 12017 | - | |
| 12018 | -void cJSON_DeleteNoexcept(struct Noexcept * x) { | |
| 12019 | - if (NULL != x) { | |
| 12020 | - cJSON_free(x); | |
| 12021 | - } | |
| 12022 | -} | |
| 12023 | - | |
| 12024 | 12024 | struct Obj3 * cJSON_ParseObj3(const char * s) { |
| 12025 | 12025 | struct Obj3 * x = NULL; |
| 12026 | 12026 | if (NULL != s) { |
| @@ -12367,6 +12367,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) { | ||
| 12367 | 12367 | x->no = cJSON_GetNoValue(cJSON_GetObjectItemCaseSensitive(j, "NO")); |
| 12368 | 12368 | if (NULL == x->no) { cJSON_DeleteObj3(x); return NULL; } |
| 12369 | 12369 | } |
| 12370 | + if (!cJSON_HasObjectItem(j, "goto")) { cJSON_DeleteObj3(x); return NULL; } | |
| 12371 | + if (cJSON_HasObjectItem(j, "goto")) { | |
| 12372 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "goto"))) { cJSON_DeleteObj3(x); return NULL; } | |
| 12373 | + x->obj3_goto = cJSON_GetGotoValue(cJSON_GetObjectItemCaseSensitive(j, "goto")); | |
| 12374 | + if (NULL == x->obj3_goto) { cJSON_DeleteObj3(x); return NULL; } | |
| 12375 | + } | |
| 12370 | 12376 | if (!cJSON_HasObjectItem(j, "if")) { cJSON_DeleteObj3(x); return NULL; } |
| 12371 | 12377 | if (cJSON_HasObjectItem(j, "if")) { |
| 12372 | 12378 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "if"))) { cJSON_DeleteObj3(x); return NULL; } |
| @@ -12421,12 +12427,6 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) { | ||
| 12421 | 12427 | x->obj3_new = cJSON_GetNewValue(cJSON_GetObjectItemCaseSensitive(j, "new")); |
| 12422 | 12428 | if (NULL == x->obj3_new) { cJSON_DeleteObj3(x); return NULL; } |
| 12423 | 12429 | } |
| 12424 | - if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteObj3(x); return NULL; } | |
| 12425 | - if (cJSON_HasObjectItem(j, "noexcept")) { | |
| 12426 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteObj3(x); return NULL; } | |
| 12427 | - x->obj3_noexcept = cJSON_GetNoexceptValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept")); | |
| 12428 | - if (NULL == x->obj3_noexcept) { cJSON_DeleteObj3(x); return NULL; } | |
| 12429 | - } | |
| 12430 | 12430 | } |
| 12431 | 12431 | } |
| 12432 | 12432 | return x; |
| @@ -12491,6 +12491,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) { | ||
| 12491 | 12491 | cJSON_AddItemToObject(j, "newtonsoft", cJSON_CreateNewtonsoft(x->newtonsoft)); |
| 12492 | 12492 | cJSON_AddItemToObject(j, "nil", cJSON_CreateNil(x->nil)); |
| 12493 | 12493 | cJSON_AddItemToObject(j, "NO", cJSON_CreateNo(x->no)); |
| 12494 | + cJSON_AddItemToObject(j, "goto", cJSON_CreateGoto(x->obj3_goto)); | |
| 12494 | 12495 | cJSON_AddItemToObject(j, "if", cJSON_CreateIf(x->obj3_if)); |
| 12495 | 12496 | cJSON_AddItemToObject(j, "import", cJSON_CreateImport(x->obj3_import)); |
| 12496 | 12497 | cJSON_AddItemToObject(j, "inline", cJSON_CreateInline(x->obj3_inline)); |
| @@ -12500,7 +12501,6 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) { | ||
| 12500 | 12501 | cJSON_AddItemToObject(j, "mutable", cJSON_CreateMutable(x->obj3_mutable)); |
| 12501 | 12502 | cJSON_AddItemToObject(j, "namespace", cJSON_CreateNamespace(x->obj3_namespace)); |
| 12502 | 12503 | cJSON_AddItemToObject(j, "new", cJSON_CreateNew(x->obj3_new)); |
| 12503 | - cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj3_noexcept)); | |
| 12504 | 12504 | } |
| 12505 | 12505 | } |
| 12506 | 12506 | return j; |
| @@ -12682,6 +12682,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) { | ||
| 12682 | 12682 | if (NULL != x->no) { |
| 12683 | 12683 | cJSON_DeleteNo(x->no); |
| 12684 | 12684 | } |
| 12685 | + if (NULL != x->obj3_goto) { | |
| 12686 | + cJSON_DeleteGoto(x->obj3_goto); | |
| 12687 | + } | |
| 12685 | 12688 | if (NULL != x->obj3_if) { |
| 12686 | 12689 | cJSON_DeleteIf(x->obj3_if); |
| 12687 | 12690 | } |
| @@ -12709,9 +12712,6 @@ void cJSON_DeleteObj3(struct Obj3 * x) { | ||
| 12709 | 12712 | if (NULL != x->obj3_new) { |
| 12710 | 12713 | cJSON_DeleteNew(x->obj3_new); |
| 12711 | 12714 | } |
| 12712 | - if (NULL != x->obj3_noexcept) { | |
| 12713 | - cJSON_DeleteNoexcept(x->obj3_noexcept); | |
| 12714 | - } | |
| 12715 | 12715 | cJSON_free(x); |
| 12716 | 12716 | } |
| 12717 | 12717 | } |
| @@ -13266,47 +13266,47 @@ void cJSON_DeleteNumberClass(struct NumberClass * x) { | ||
| 13266 | 13266 | } |
| 13267 | 13267 | } |
| 13268 | 13268 | |
| 13269 | -struct NoneClass * cJSON_ParseNoneClass(const char * s) { | |
| 13270 | - struct NoneClass * x = NULL; | |
| 13269 | +struct Noexcept * cJSON_ParseNoexcept(const char * s) { | |
| 13270 | + struct Noexcept * x = NULL; | |
| 13271 | 13271 | if (NULL != s) { |
| 13272 | 13272 | cJSON * j = cJSON_Parse(s); |
| 13273 | 13273 | if (NULL != j) { |
| 13274 | - x = cJSON_GetNoneClassValue(j); | |
| 13274 | + x = cJSON_GetNoexceptValue(j); | |
| 13275 | 13275 | cJSON_Delete(j); |
| 13276 | 13276 | } |
| 13277 | 13277 | } |
| 13278 | 13278 | return x; |
| 13279 | 13279 | } |
| 13280 | 13280 | |
| 13281 | -struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j) { | |
| 13282 | - struct NoneClass * x = NULL; | |
| 13281 | +struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) { | |
| 13282 | + struct Noexcept * x = NULL; | |
| 13283 | 13283 | if (NULL != j) { |
| 13284 | - if (NULL != (x = cJSON_malloc(sizeof(struct NoneClass)))) { | |
| 13285 | - memset(x, 0, sizeof(struct NoneClass)); | |
| 13286 | - if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteNoneClass(x); return NULL; } | |
| 13287 | - if (cJSON_HasObjectItem(j, "none")) { | |
| 13288 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteNoneClass(x); return NULL; } | |
| 13289 | - x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "none")); | |
| 13284 | + if (NULL != (x = cJSON_malloc(sizeof(struct Noexcept)))) { | |
| 13285 | + memset(x, 0, sizeof(struct Noexcept)); | |
| 13286 | + if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteNoexcept(x); return NULL; } | |
| 13287 | + if (cJSON_HasObjectItem(j, "noexcept")) { | |
| 13288 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteNoexcept(x); return NULL; } | |
| 13289 | + x->noexcept_noexcept = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept")); | |
| 13290 | 13290 | } |
| 13291 | 13291 | } |
| 13292 | 13292 | } |
| 13293 | 13293 | return x; |
| 13294 | 13294 | } |
| 13295 | 13295 | |
| 13296 | -cJSON * cJSON_CreateNoneClass(const struct NoneClass * x) { | |
| 13296 | +cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) { | |
| 13297 | 13297 | cJSON * j = NULL; |
| 13298 | 13298 | if (NULL != x) { |
| 13299 | 13299 | if (NULL != (j = cJSON_CreateObject())) { |
| 13300 | - cJSON_AddNumberToObject(j, "none", x->none); | |
| 13300 | + cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept); | |
| 13301 | 13301 | } |
| 13302 | 13302 | } |
| 13303 | 13303 | return j; |
| 13304 | 13304 | } |
| 13305 | 13305 | |
| 13306 | -char * cJSON_PrintNoneClass(const struct NoneClass * x) { | |
| 13306 | +char * cJSON_PrintNoexcept(const struct Noexcept * x) { | |
| 13307 | 13307 | char * s = NULL; |
| 13308 | 13308 | if (NULL != x) { |
| 13309 | - cJSON * j = cJSON_CreateNoneClass(x); | |
| 13309 | + cJSON * j = cJSON_CreateNoexcept(x); | |
| 13310 | 13310 | if (NULL != j) { |
| 13311 | 13311 | s = cJSON_Print(j); |
| 13312 | 13312 | cJSON_Delete(j); |
| @@ -13315,27 +13315,82 @@ char * cJSON_PrintNoneClass(const struct NoneClass * x) { | ||
| 13315 | 13315 | return s; |
| 13316 | 13316 | } |
| 13317 | 13317 | |
| 13318 | -void cJSON_DeleteNoneClass(struct NoneClass * x) { | |
| 13318 | +void cJSON_DeleteNoexcept(struct Noexcept * x) { | |
| 13319 | 13319 | if (NULL != x) { |
| 13320 | 13320 | cJSON_free(x); |
| 13321 | 13321 | } |
| 13322 | 13322 | } |
| 13323 | 13323 | |
| 13324 | -struct Not * cJSON_ParseNot(const char * s) { | |
| 13325 | - struct Not * x = NULL; | |
| 13324 | +struct NoneClass * cJSON_ParseNoneClass(const char * s) { | |
| 13325 | + struct NoneClass * x = NULL; | |
| 13326 | 13326 | if (NULL != s) { |
| 13327 | 13327 | cJSON * j = cJSON_Parse(s); |
| 13328 | 13328 | if (NULL != j) { |
| 13329 | - x = cJSON_GetNotValue(j); | |
| 13329 | + x = cJSON_GetNoneClassValue(j); | |
| 13330 | 13330 | cJSON_Delete(j); |
| 13331 | 13331 | } |
| 13332 | 13332 | } |
| 13333 | 13333 | return x; |
| 13334 | 13334 | } |
| 13335 | 13335 | |
| 13336 | -struct Not * cJSON_GetNotValue(const cJSON * j) { | |
| 13337 | - struct Not * x = NULL; | |
| 13338 | - if (NULL != j) { | |
| 13336 | +struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j) { | |
| 13337 | + struct NoneClass * x = NULL; | |
| 13338 | + if (NULL != j) { | |
| 13339 | + if (NULL != (x = cJSON_malloc(sizeof(struct NoneClass)))) { | |
| 13340 | + memset(x, 0, sizeof(struct NoneClass)); | |
| 13341 | + if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteNoneClass(x); return NULL; } | |
| 13342 | + if (cJSON_HasObjectItem(j, "none")) { | |
| 13343 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteNoneClass(x); return NULL; } | |
| 13344 | + x->none = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "none")); | |
| 13345 | + } | |
| 13346 | + } | |
| 13347 | + } | |
| 13348 | + return x; | |
| 13349 | +} | |
| 13350 | + | |
| 13351 | +cJSON * cJSON_CreateNoneClass(const struct NoneClass * x) { | |
| 13352 | + cJSON * j = NULL; | |
| 13353 | + if (NULL != x) { | |
| 13354 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 13355 | + cJSON_AddNumberToObject(j, "none", x->none); | |
| 13356 | + } | |
| 13357 | + } | |
| 13358 | + return j; | |
| 13359 | +} | |
| 13360 | + | |
| 13361 | +char * cJSON_PrintNoneClass(const struct NoneClass * x) { | |
| 13362 | + char * s = NULL; | |
| 13363 | + if (NULL != x) { | |
| 13364 | + cJSON * j = cJSON_CreateNoneClass(x); | |
| 13365 | + if (NULL != j) { | |
| 13366 | + s = cJSON_Print(j); | |
| 13367 | + cJSON_Delete(j); | |
| 13368 | + } | |
| 13369 | + } | |
| 13370 | + return s; | |
| 13371 | +} | |
| 13372 | + | |
| 13373 | +void cJSON_DeleteNoneClass(struct NoneClass * x) { | |
| 13374 | + if (NULL != x) { | |
| 13375 | + cJSON_free(x); | |
| 13376 | + } | |
| 13377 | +} | |
| 13378 | + | |
| 13379 | +struct Not * cJSON_ParseNot(const char * s) { | |
| 13380 | + struct Not * x = NULL; | |
| 13381 | + if (NULL != s) { | |
| 13382 | + cJSON * j = cJSON_Parse(s); | |
| 13383 | + if (NULL != j) { | |
| 13384 | + x = cJSON_GetNotValue(j); | |
| 13385 | + cJSON_Delete(j); | |
| 13386 | + } | |
| 13387 | + } | |
| 13388 | + return x; | |
| 13389 | +} | |
| 13390 | + | |
| 13391 | +struct Not * cJSON_GetNotValue(const cJSON * j) { | |
| 13392 | + struct Not * x = NULL; | |
| 13393 | + if (NULL != j) { | |
| 13339 | 13394 | if (NULL != (x = cJSON_malloc(sizeof(struct Not)))) { |
| 13340 | 13395 | memset(x, 0, sizeof(struct Not)); |
| 13341 | 13396 | if (!cJSON_HasObjectItem(j, "not")) { cJSON_DeleteNot(x); return NULL; } |
| @@ -14366,6 +14421,116 @@ void cJSON_DeleteObjectMapper(struct ObjectMapper * x) { | ||
| 14366 | 14421 | } |
| 14367 | 14422 | } |
| 14368 | 14423 | |
| 14424 | +struct ObjectReader * cJSON_ParseObjectReader(const char * s) { | |
| 14425 | + struct ObjectReader * x = NULL; | |
| 14426 | + if (NULL != s) { | |
| 14427 | + cJSON * j = cJSON_Parse(s); | |
| 14428 | + if (NULL != j) { | |
| 14429 | + x = cJSON_GetObjectReaderValue(j); | |
| 14430 | + cJSON_Delete(j); | |
| 14431 | + } | |
| 14432 | + } | |
| 14433 | + return x; | |
| 14434 | +} | |
| 14435 | + | |
| 14436 | +struct ObjectReader * cJSON_GetObjectReaderValue(const cJSON * j) { | |
| 14437 | + struct ObjectReader * x = NULL; | |
| 14438 | + if (NULL != j) { | |
| 14439 | + if (NULL != (x = cJSON_malloc(sizeof(struct ObjectReader)))) { | |
| 14440 | + memset(x, 0, sizeof(struct ObjectReader)); | |
| 14441 | + if (!cJSON_HasObjectItem(j, "ObjectReader")) { cJSON_DeleteObjectReader(x); return NULL; } | |
| 14442 | + if (cJSON_HasObjectItem(j, "ObjectReader")) { | |
| 14443 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ObjectReader"))) { cJSON_DeleteObjectReader(x); return NULL; } | |
| 14444 | + x->object_reader = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectReader")); | |
| 14445 | + } | |
| 14446 | + } | |
| 14447 | + } | |
| 14448 | + return x; | |
| 14449 | +} | |
| 14450 | + | |
| 14451 | +cJSON * cJSON_CreateObjectReader(const struct ObjectReader * x) { | |
| 14452 | + cJSON * j = NULL; | |
| 14453 | + if (NULL != x) { | |
| 14454 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 14455 | + cJSON_AddNumberToObject(j, "ObjectReader", x->object_reader); | |
| 14456 | + } | |
| 14457 | + } | |
| 14458 | + return j; | |
| 14459 | +} | |
| 14460 | + | |
| 14461 | +char * cJSON_PrintObjectReader(const struct ObjectReader * x) { | |
| 14462 | + char * s = NULL; | |
| 14463 | + if (NULL != x) { | |
| 14464 | + cJSON * j = cJSON_CreateObjectReader(x); | |
| 14465 | + if (NULL != j) { | |
| 14466 | + s = cJSON_Print(j); | |
| 14467 | + cJSON_Delete(j); | |
| 14468 | + } | |
| 14469 | + } | |
| 14470 | + return s; | |
| 14471 | +} | |
| 14472 | + | |
| 14473 | +void cJSON_DeleteObjectReader(struct ObjectReader * x) { | |
| 14474 | + if (NULL != x) { | |
| 14475 | + cJSON_free(x); | |
| 14476 | + } | |
| 14477 | +} | |
| 14478 | + | |
| 14479 | +struct ObjectWriter * cJSON_ParseObjectWriter(const char * s) { | |
| 14480 | + struct ObjectWriter * x = NULL; | |
| 14481 | + if (NULL != s) { | |
| 14482 | + cJSON * j = cJSON_Parse(s); | |
| 14483 | + if (NULL != j) { | |
| 14484 | + x = cJSON_GetObjectWriterValue(j); | |
| 14485 | + cJSON_Delete(j); | |
| 14486 | + } | |
| 14487 | + } | |
| 14488 | + return x; | |
| 14489 | +} | |
| 14490 | + | |
| 14491 | +struct ObjectWriter * cJSON_GetObjectWriterValue(const cJSON * j) { | |
| 14492 | + struct ObjectWriter * x = NULL; | |
| 14493 | + if (NULL != j) { | |
| 14494 | + if (NULL != (x = cJSON_malloc(sizeof(struct ObjectWriter)))) { | |
| 14495 | + memset(x, 0, sizeof(struct ObjectWriter)); | |
| 14496 | + if (!cJSON_HasObjectItem(j, "ObjectWriter")) { cJSON_DeleteObjectWriter(x); return NULL; } | |
| 14497 | + if (cJSON_HasObjectItem(j, "ObjectWriter")) { | |
| 14498 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ObjectWriter"))) { cJSON_DeleteObjectWriter(x); return NULL; } | |
| 14499 | + x->object_writer = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectWriter")); | |
| 14500 | + } | |
| 14501 | + } | |
| 14502 | + } | |
| 14503 | + return x; | |
| 14504 | +} | |
| 14505 | + | |
| 14506 | +cJSON * cJSON_CreateObjectWriter(const struct ObjectWriter * x) { | |
| 14507 | + cJSON * j = NULL; | |
| 14508 | + if (NULL != x) { | |
| 14509 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 14510 | + cJSON_AddNumberToObject(j, "ObjectWriter", x->object_writer); | |
| 14511 | + } | |
| 14512 | + } | |
| 14513 | + return j; | |
| 14514 | +} | |
| 14515 | + | |
| 14516 | +char * cJSON_PrintObjectWriter(const struct ObjectWriter * x) { | |
| 14517 | + char * s = NULL; | |
| 14518 | + if (NULL != x) { | |
| 14519 | + cJSON * j = cJSON_CreateObjectWriter(x); | |
| 14520 | + if (NULL != j) { | |
| 14521 | + s = cJSON_Print(j); | |
| 14522 | + cJSON_Delete(j); | |
| 14523 | + } | |
| 14524 | + } | |
| 14525 | + return s; | |
| 14526 | +} | |
| 14527 | + | |
| 14528 | +void cJSON_DeleteObjectWriter(struct ObjectWriter * x) { | |
| 14529 | + if (NULL != x) { | |
| 14530 | + cJSON_free(x); | |
| 14531 | + } | |
| 14532 | +} | |
| 14533 | + | |
| 14369 | 14534 | struct Of * cJSON_ParseOf(const char * s) { |
| 14370 | 14535 | struct Of * x = NULL; |
| 14371 | 14536 | if (NULL != s) { |
| @@ -16084,198 +16249,33 @@ void cJSON_DeleteSbyte(struct Sbyte * x) { | ||
| 16084 | 16249 | } |
| 16085 | 16250 | } |
| 16086 | 16251 | |
| 16087 | -struct Sealed * cJSON_ParseSealed(const char * s) { | |
| 16088 | - struct Sealed * x = NULL; | |
| 16252 | +struct Obj4 * cJSON_ParseObj4(const char * s) { | |
| 16253 | + struct Obj4 * x = NULL; | |
| 16089 | 16254 | if (NULL != s) { |
| 16090 | 16255 | cJSON * j = cJSON_Parse(s); |
| 16091 | 16256 | if (NULL != j) { |
| 16092 | - x = cJSON_GetSealedValue(j); | |
| 16257 | + x = cJSON_GetObj4Value(j); | |
| 16093 | 16258 | cJSON_Delete(j); |
| 16094 | 16259 | } |
| 16095 | 16260 | } |
| 16096 | 16261 | return x; |
| 16097 | 16262 | } |
| 16098 | 16263 | |
| 16099 | -struct Sealed * cJSON_GetSealedValue(const cJSON * j) { | |
| 16100 | - struct Sealed * x = NULL; | |
| 16264 | +struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | |
| 16265 | + struct Obj4 * x = NULL; | |
| 16101 | 16266 | if (NULL != j) { |
| 16102 | - if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) { | |
| 16103 | - memset(x, 0, sizeof(struct Sealed)); | |
| 16104 | - if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; } | |
| 16105 | - if (cJSON_HasObjectItem(j, "sealed")) { | |
| 16106 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; } | |
| 16107 | - x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 16267 | + if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) { | |
| 16268 | + memset(x, 0, sizeof(struct Obj4)); | |
| 16269 | + if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16270 | + if (cJSON_HasObjectItem(j, "dummy")) { | |
| 16271 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16272 | + x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 16108 | 16273 | } |
| 16109 | - } | |
| 16110 | - } | |
| 16111 | - return x; | |
| 16112 | -} | |
| 16113 | - | |
| 16114 | -cJSON * cJSON_CreateSealed(const struct Sealed * x) { | |
| 16115 | - cJSON * j = NULL; | |
| 16116 | - if (NULL != x) { | |
| 16117 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16118 | - cJSON_AddNumberToObject(j, "sealed", x->sealed); | |
| 16119 | - } | |
| 16120 | - } | |
| 16121 | - return j; | |
| 16122 | -} | |
| 16123 | - | |
| 16124 | -char * cJSON_PrintSealed(const struct Sealed * x) { | |
| 16125 | - char * s = NULL; | |
| 16126 | - if (NULL != x) { | |
| 16127 | - cJSON * j = cJSON_CreateSealed(x); | |
| 16128 | - if (NULL != j) { | |
| 16129 | - s = cJSON_Print(j); | |
| 16130 | - cJSON_Delete(j); | |
| 16131 | - } | |
| 16132 | - } | |
| 16133 | - return s; | |
| 16134 | -} | |
| 16135 | - | |
| 16136 | -void cJSON_DeleteSealed(struct Sealed * x) { | |
| 16137 | - if (NULL != x) { | |
| 16138 | - cJSON_free(x); | |
| 16139 | - } | |
| 16140 | -} | |
| 16141 | - | |
| 16142 | -struct Sel * cJSON_ParseSel(const char * s) { | |
| 16143 | - struct Sel * x = NULL; | |
| 16144 | - if (NULL != s) { | |
| 16145 | - cJSON * j = cJSON_Parse(s); | |
| 16146 | - if (NULL != j) { | |
| 16147 | - x = cJSON_GetSelValue(j); | |
| 16148 | - cJSON_Delete(j); | |
| 16149 | - } | |
| 16150 | - } | |
| 16151 | - return x; | |
| 16152 | -} | |
| 16153 | - | |
| 16154 | -struct Sel * cJSON_GetSelValue(const cJSON * j) { | |
| 16155 | - struct Sel * x = NULL; | |
| 16156 | - if (NULL != j) { | |
| 16157 | - if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) { | |
| 16158 | - memset(x, 0, sizeof(struct Sel)); | |
| 16159 | - if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; } | |
| 16160 | - if (cJSON_HasObjectItem(j, "SEL")) { | |
| 16161 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; } | |
| 16162 | - x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 16163 | - } | |
| 16164 | - } | |
| 16165 | - } | |
| 16166 | - return x; | |
| 16167 | -} | |
| 16168 | - | |
| 16169 | -cJSON * cJSON_CreateSel(const struct Sel * x) { | |
| 16170 | - cJSON * j = NULL; | |
| 16171 | - if (NULL != x) { | |
| 16172 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16173 | - cJSON_AddNumberToObject(j, "SEL", x->sel); | |
| 16174 | - } | |
| 16175 | - } | |
| 16176 | - return j; | |
| 16177 | -} | |
| 16178 | - | |
| 16179 | -char * cJSON_PrintSel(const struct Sel * x) { | |
| 16180 | - char * s = NULL; | |
| 16181 | - if (NULL != x) { | |
| 16182 | - cJSON * j = cJSON_CreateSel(x); | |
| 16183 | - if (NULL != j) { | |
| 16184 | - s = cJSON_Print(j); | |
| 16185 | - cJSON_Delete(j); | |
| 16186 | - } | |
| 16187 | - } | |
| 16188 | - return s; | |
| 16189 | -} | |
| 16190 | - | |
| 16191 | -void cJSON_DeleteSel(struct Sel * x) { | |
| 16192 | - if (NULL != x) { | |
| 16193 | - cJSON_free(x); | |
| 16194 | - } | |
| 16195 | -} | |
| 16196 | - | |
| 16197 | -struct Select * cJSON_ParseSelect(const char * s) { | |
| 16198 | - struct Select * x = NULL; | |
| 16199 | - if (NULL != s) { | |
| 16200 | - cJSON * j = cJSON_Parse(s); | |
| 16201 | - if (NULL != j) { | |
| 16202 | - x = cJSON_GetSelectValue(j); | |
| 16203 | - cJSON_Delete(j); | |
| 16204 | - } | |
| 16205 | - } | |
| 16206 | - return x; | |
| 16207 | -} | |
| 16208 | - | |
| 16209 | -struct Select * cJSON_GetSelectValue(const cJSON * j) { | |
| 16210 | - struct Select * x = NULL; | |
| 16211 | - if (NULL != j) { | |
| 16212 | - if (NULL != (x = cJSON_malloc(sizeof(struct Select)))) { | |
| 16213 | - memset(x, 0, sizeof(struct Select)); | |
| 16214 | - if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteSelect(x); return NULL; } | |
| 16215 | - if (cJSON_HasObjectItem(j, "select")) { | |
| 16216 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteSelect(x); return NULL; } | |
| 16217 | - x->select = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "select")); | |
| 16218 | - } | |
| 16219 | - } | |
| 16220 | - } | |
| 16221 | - return x; | |
| 16222 | -} | |
| 16223 | - | |
| 16224 | -cJSON * cJSON_CreateSelect(const struct Select * x) { | |
| 16225 | - cJSON * j = NULL; | |
| 16226 | - if (NULL != x) { | |
| 16227 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 16228 | - cJSON_AddNumberToObject(j, "select", x->select); | |
| 16229 | - } | |
| 16230 | - } | |
| 16231 | - return j; | |
| 16232 | -} | |
| 16233 | - | |
| 16234 | -char * cJSON_PrintSelect(const struct Select * x) { | |
| 16235 | - char * s = NULL; | |
| 16236 | - if (NULL != x) { | |
| 16237 | - cJSON * j = cJSON_CreateSelect(x); | |
| 16238 | - if (NULL != j) { | |
| 16239 | - s = cJSON_Print(j); | |
| 16240 | - cJSON_Delete(j); | |
| 16241 | - } | |
| 16242 | - } | |
| 16243 | - return s; | |
| 16244 | -} | |
| 16245 | - | |
| 16246 | -void cJSON_DeleteSelect(struct Select * x) { | |
| 16247 | - if (NULL != x) { | |
| 16248 | - cJSON_free(x); | |
| 16249 | - } | |
| 16250 | -} | |
| 16251 | - | |
| 16252 | -struct Obj4 * cJSON_ParseObj4(const char * s) { | |
| 16253 | - struct Obj4 * x = NULL; | |
| 16254 | - if (NULL != s) { | |
| 16255 | - cJSON * j = cJSON_Parse(s); | |
| 16256 | - if (NULL != j) { | |
| 16257 | - x = cJSON_GetObj4Value(j); | |
| 16258 | - cJSON_Delete(j); | |
| 16259 | - } | |
| 16260 | - } | |
| 16261 | - return x; | |
| 16262 | -} | |
| 16263 | - | |
| 16264 | -struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | |
| 16265 | - struct Obj4 * x = NULL; | |
| 16266 | - if (NULL != j) { | |
| 16267 | - if (NULL != (x = cJSON_malloc(sizeof(struct Obj4)))) { | |
| 16268 | - memset(x, 0, sizeof(struct Obj4)); | |
| 16269 | - if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16270 | - if (cJSON_HasObjectItem(j, "dummy")) { | |
| 16271 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16272 | - x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 16273 | - } | |
| 16274 | - if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16275 | - if (cJSON_HasObjectItem(j, "noSuchMethod")) { | |
| 16276 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16277 | - x->no_such_method = cJSON_GetNoSuchMethodValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod")); | |
| 16278 | - if (NULL == x->no_such_method) { cJSON_DeleteObj4(x); return NULL; } | |
| 16274 | + if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16275 | + if (cJSON_HasObjectItem(j, "noSuchMethod")) { | |
| 16276 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16277 | + x->no_such_method = cJSON_GetNoSuchMethodValue(cJSON_GetObjectItemCaseSensitive(j, "noSuchMethod")); | |
| 16278 | + if (NULL == x->no_such_method) { cJSON_DeleteObj4(x); return NULL; } | |
| 16279 | 16279 | } |
| 16280 | 16280 | if (!cJSON_HasObjectItem(j, "nonatomic")) { cJSON_DeleteObj4(x); return NULL; } |
| 16281 | 16281 | if (cJSON_HasObjectItem(j, "nonatomic")) { |
| @@ -16331,6 +16331,12 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16331 | 16331 | x->number = cJSON_GetNumberClassValue(cJSON_GetObjectItemCaseSensitive(j, "number")); |
| 16332 | 16332 | if (NULL == x->number) { cJSON_DeleteObj4(x); return NULL; } |
| 16333 | 16333 | } |
| 16334 | + if (!cJSON_HasObjectItem(j, "noexcept")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16335 | + if (cJSON_HasObjectItem(j, "noexcept")) { | |
| 16336 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "noexcept"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16337 | + x->obj4_noexcept = cJSON_GetNoexceptValue(cJSON_GetObjectItemCaseSensitive(j, "noexcept")); | |
| 16338 | + if (NULL == x->obj4_noexcept) { cJSON_DeleteObj4(x); return NULL; } | |
| 16339 | + } | |
| 16334 | 16340 | if (!cJSON_HasObjectItem(j, "none")) { cJSON_DeleteObj4(x); return NULL; } |
| 16335 | 16341 | if (cJSON_HasObjectItem(j, "none")) { |
| 16336 | 16342 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "none"))) { cJSON_DeleteObj4(x); return NULL; } |
| @@ -16451,6 +16457,18 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16451 | 16457 | x->object_mapper = cJSON_GetObjectMapperValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectMapper")); |
| 16452 | 16458 | if (NULL == x->object_mapper) { cJSON_DeleteObj4(x); return NULL; } |
| 16453 | 16459 | } |
| 16460 | + if (!cJSON_HasObjectItem(j, "ObjectReader")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16461 | + if (cJSON_HasObjectItem(j, "ObjectReader")) { | |
| 16462 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ObjectReader"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16463 | + x->object_reader = cJSON_GetObjectReaderValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectReader")); | |
| 16464 | + if (NULL == x->object_reader) { cJSON_DeleteObj4(x); return NULL; } | |
| 16465 | + } | |
| 16466 | + if (!cJSON_HasObjectItem(j, "ObjectWriter")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16467 | + if (cJSON_HasObjectItem(j, "ObjectWriter")) { | |
| 16468 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ObjectWriter"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16469 | + x->object_writer = cJSON_GetObjectWriterValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectWriter")); | |
| 16470 | + if (NULL == x->object_writer) { cJSON_DeleteObj4(x); return NULL; } | |
| 16471 | + } | |
| 16454 | 16472 | if (!cJSON_HasObjectItem(j, "of")) { cJSON_DeleteObj4(x); return NULL; } |
| 16455 | 16473 | if (cJSON_HasObjectItem(j, "of")) { |
| 16456 | 16474 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "of"))) { cJSON_DeleteObj4(x); return NULL; } |
| @@ -16637,24 +16655,6 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16637 | 16655 | x->sbyte = cJSON_GetSbyteValue(cJSON_GetObjectItemCaseSensitive(j, "sbyte")); |
| 16638 | 16656 | if (NULL == x->sbyte) { cJSON_DeleteObj4(x); return NULL; } |
| 16639 | 16657 | } |
| 16640 | - if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16641 | - if (cJSON_HasObjectItem(j, "sealed")) { | |
| 16642 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16643 | - x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 16644 | - if (NULL == x->sealed) { cJSON_DeleteObj4(x); return NULL; } | |
| 16645 | - } | |
| 16646 | - if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16647 | - if (cJSON_HasObjectItem(j, "SEL")) { | |
| 16648 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16649 | - x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 16650 | - if (NULL == x->sel) { cJSON_DeleteObj4(x); return NULL; } | |
| 16651 | - } | |
| 16652 | - if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16653 | - if (cJSON_HasObjectItem(j, "select")) { | |
| 16654 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16655 | - x->select = cJSON_GetSelectValue(cJSON_GetObjectItemCaseSensitive(j, "select")); | |
| 16656 | - if (NULL == x->select) { cJSON_DeleteObj4(x); return NULL; } | |
| 16657 | - } | |
| 16658 | 16658 | } |
| 16659 | 16659 | } |
| 16660 | 16660 | return x; |
| @@ -16675,6 +16675,7 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16675 | 16675 | cJSON_AddItemToObject(j, "NSString", cJSON_CreateNsString(x->ns_string)); |
| 16676 | 16676 | cJSON_AddItemToObject(j, "NULL", cJSON_CreateNullClass(x->null)); |
| 16677 | 16677 | cJSON_AddItemToObject(j, "number", cJSON_CreateNumberClass(x->number)); |
| 16678 | + cJSON_AddItemToObject(j, "noexcept", cJSON_CreateNoexcept(x->obj4_noexcept)); | |
| 16678 | 16679 | cJSON_AddItemToObject(j, "none", cJSON_CreateNoneClass(x->obj4_none)); |
| 16679 | 16680 | cJSON_AddItemToObject(j, "not", cJSON_CreateNot(x->obj4_not)); |
| 16680 | 16681 | cJSON_AddItemToObject(j, "not_eq", cJSON_CreateNotEq(x->obj4_not_eq)); |
| @@ -16695,6 +16696,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16695 | 16696 | cJSON_AddItemToObject(j, "return", cJSON_CreateReturn(x->obj4_return)); |
| 16696 | 16697 | cJSON_AddItemToObject(j, "object", cJSON_CreateObjectClass(x->object)); |
| 16697 | 16698 | cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateObjectMapper(x->object_mapper)); |
| 16699 | + cJSON_AddItemToObject(j, "ObjectReader", cJSON_CreateObjectReader(x->object_reader)); | |
| 16700 | + cJSON_AddItemToObject(j, "ObjectWriter", cJSON_CreateObjectWriter(x->object_writer)); | |
| 16698 | 16701 | cJSON_AddItemToObject(j, "of", cJSON_CreateOf(x->of)); |
| 16699 | 16702 | cJSON_AddItemToObject(j, "oneway", cJSON_CreateOneway(x->oneway)); |
| 16700 | 16703 | cJSON_AddItemToObject(j, "open", cJSON_CreateOpen(x->open)); |
| @@ -16726,9 +16729,6 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16726 | 16729 | cJSON_AddItemToObject(j, "runtimeType", cJSON_CreateRuntimeType(x->runtime_type)); |
| 16727 | 16730 | cJSON_AddItemToObject(j, "s", cJSON_CreateS(x->s)); |
| 16728 | 16731 | cJSON_AddItemToObject(j, "sbyte", cJSON_CreateSbyte(x->sbyte)); |
| 16729 | - cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed)); | |
| 16730 | - cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel)); | |
| 16731 | - cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select)); | |
| 16732 | 16732 | } |
| 16733 | 16733 | } |
| 16734 | 16734 | return j; |
| @@ -16778,6 +16778,9 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16778 | 16778 | if (NULL != x->number) { |
| 16779 | 16779 | cJSON_DeleteNumberClass(x->number); |
| 16780 | 16780 | } |
| 16781 | + if (NULL != x->obj4_noexcept) { | |
| 16782 | + cJSON_DeleteNoexcept(x->obj4_noexcept); | |
| 16783 | + } | |
| 16781 | 16784 | if (NULL != x->obj4_none) { |
| 16782 | 16785 | cJSON_DeleteNoneClass(x->obj4_none); |
| 16783 | 16786 | } |
| @@ -16838,6 +16841,12 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16838 | 16841 | if (NULL != x->object_mapper) { |
| 16839 | 16842 | cJSON_DeleteObjectMapper(x->object_mapper); |
| 16840 | 16843 | } |
| 16844 | + if (NULL != x->object_reader) { | |
| 16845 | + cJSON_DeleteObjectReader(x->object_reader); | |
| 16846 | + } | |
| 16847 | + if (NULL != x->object_writer) { | |
| 16848 | + cJSON_DeleteObjectWriter(x->object_writer); | |
| 16849 | + } | |
| 16841 | 16850 | if (NULL != x->of) { |
| 16842 | 16851 | cJSON_DeleteOf(x->of); |
| 16843 | 16852 | } |
| @@ -16931,15 +16940,6 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16931 | 16940 | if (NULL != x->sbyte) { |
| 16932 | 16941 | cJSON_DeleteSbyte(x->sbyte); |
| 16933 | 16942 | } |
| 16934 | - if (NULL != x->sealed) { | |
| 16935 | - cJSON_DeleteSealed(x->sealed); | |
| 16936 | - } | |
| 16937 | - if (NULL != x->sel) { | |
| 16938 | - cJSON_DeleteSel(x->sel); | |
| 16939 | - } | |
| 16940 | - if (NULL != x->select) { | |
| 16941 | - cJSON_DeleteSelect(x->select); | |
| 16942 | - } | |
| 16943 | 16943 | cJSON_free(x); |
| 16944 | 16944 | } |
| 16945 | 16945 | } |
| @@ -18264,61 +18264,6 @@ void cJSON_DeleteUsing(struct Using * x) { | ||
| 18264 | 18264 | } |
| 18265 | 18265 | } |
| 18266 | 18266 | |
| 18267 | -struct Virtual * cJSON_ParseVirtual(const char * s) { | |
| 18268 | - struct Virtual * x = NULL; | |
| 18269 | - if (NULL != s) { | |
| 18270 | - cJSON * j = cJSON_Parse(s); | |
| 18271 | - if (NULL != j) { | |
| 18272 | - x = cJSON_GetVirtualValue(j); | |
| 18273 | - cJSON_Delete(j); | |
| 18274 | - } | |
| 18275 | - } | |
| 18276 | - return x; | |
| 18277 | -} | |
| 18278 | - | |
| 18279 | -struct Virtual * cJSON_GetVirtualValue(const cJSON * j) { | |
| 18280 | - struct Virtual * x = NULL; | |
| 18281 | - if (NULL != j) { | |
| 18282 | - if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) { | |
| 18283 | - memset(x, 0, sizeof(struct Virtual)); | |
| 18284 | - if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; } | |
| 18285 | - if (cJSON_HasObjectItem(j, "virtual")) { | |
| 18286 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; } | |
| 18287 | - x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual")); | |
| 18288 | - } | |
| 18289 | - } | |
| 18290 | - } | |
| 18291 | - return x; | |
| 18292 | -} | |
| 18293 | - | |
| 18294 | -cJSON * cJSON_CreateVirtual(const struct Virtual * x) { | |
| 18295 | - cJSON * j = NULL; | |
| 18296 | - if (NULL != x) { | |
| 18297 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 18298 | - cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual); | |
| 18299 | - } | |
| 18300 | - } | |
| 18301 | - return j; | |
| 18302 | -} | |
| 18303 | - | |
| 18304 | -char * cJSON_PrintVirtual(const struct Virtual * x) { | |
| 18305 | - char * s = NULL; | |
| 18306 | - if (NULL != x) { | |
| 18307 | - cJSON * j = cJSON_CreateVirtual(x); | |
| 18308 | - if (NULL != j) { | |
| 18309 | - s = cJSON_Print(j); | |
| 18310 | - cJSON_Delete(j); | |
| 18311 | - } | |
| 18312 | - } | |
| 18313 | - return s; | |
| 18314 | -} | |
| 18315 | - | |
| 18316 | -void cJSON_DeleteVirtual(struct Virtual * x) { | |
| 18317 | - if (NULL != x) { | |
| 18318 | - cJSON_free(x); | |
| 18319 | - } | |
| 18320 | -} | |
| 18321 | - | |
| 18322 | 18267 | struct Obj5True * cJSON_ParseObj5True(const char * s) { |
| 18323 | 18268 | struct Obj5True * x = NULL; |
| 18324 | 18269 | if (NULL != s) { |
| @@ -18374,47 +18319,47 @@ void cJSON_DeleteObj5True(struct Obj5True * x) { | ||
| 18374 | 18319 | } |
| 18375 | 18320 | } |
| 18376 | 18321 | |
| 18377 | -struct Self * cJSON_ParseSelf(const char * s) { | |
| 18378 | - struct Self * x = NULL; | |
| 18322 | +struct Sealed * cJSON_ParseSealed(const char * s) { | |
| 18323 | + struct Sealed * x = NULL; | |
| 18379 | 18324 | if (NULL != s) { |
| 18380 | 18325 | cJSON * j = cJSON_Parse(s); |
| 18381 | 18326 | if (NULL != j) { |
| 18382 | - x = cJSON_GetSelfValue(j); | |
| 18327 | + x = cJSON_GetSealedValue(j); | |
| 18383 | 18328 | cJSON_Delete(j); |
| 18384 | 18329 | } |
| 18385 | 18330 | } |
| 18386 | 18331 | return x; |
| 18387 | 18332 | } |
| 18388 | 18333 | |
| 18389 | -struct Self * cJSON_GetSelfValue(const cJSON * j) { | |
| 18390 | - struct Self * x = NULL; | |
| 18334 | +struct Sealed * cJSON_GetSealedValue(const cJSON * j) { | |
| 18335 | + struct Sealed * x = NULL; | |
| 18391 | 18336 | if (NULL != j) { |
| 18392 | - if (NULL != (x = cJSON_malloc(sizeof(struct Self)))) { | |
| 18393 | - memset(x, 0, sizeof(struct Self)); | |
| 18394 | - if (!cJSON_HasObjectItem(j, "Self")) { cJSON_DeleteSelf(x); return NULL; } | |
| 18395 | - if (cJSON_HasObjectItem(j, "Self")) { | |
| 18396 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Self"))) { cJSON_DeleteSelf(x); return NULL; } | |
| 18397 | - x->self = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Self")); | |
| 18337 | + if (NULL != (x = cJSON_malloc(sizeof(struct Sealed)))) { | |
| 18338 | + memset(x, 0, sizeof(struct Sealed)); | |
| 18339 | + if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteSealed(x); return NULL; } | |
| 18340 | + if (cJSON_HasObjectItem(j, "sealed")) { | |
| 18341 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteSealed(x); return NULL; } | |
| 18342 | + x->sealed = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 18398 | 18343 | } |
| 18399 | 18344 | } |
| 18400 | 18345 | } |
| 18401 | 18346 | return x; |
| 18402 | 18347 | } |
| 18403 | 18348 | |
| 18404 | -cJSON * cJSON_CreateSelf(const struct Self * x) { | |
| 18349 | +cJSON * cJSON_CreateSealed(const struct Sealed * x) { | |
| 18405 | 18350 | cJSON * j = NULL; |
| 18406 | 18351 | if (NULL != x) { |
| 18407 | 18352 | if (NULL != (j = cJSON_CreateObject())) { |
| 18408 | - cJSON_AddNumberToObject(j, "Self", x->self); | |
| 18353 | + cJSON_AddNumberToObject(j, "sealed", x->sealed); | |
| 18409 | 18354 | } |
| 18410 | 18355 | } |
| 18411 | 18356 | return j; |
| 18412 | 18357 | } |
| 18413 | 18358 | |
| 18414 | -char * cJSON_PrintSelf(const struct Self * x) { | |
| 18359 | +char * cJSON_PrintSealed(const struct Sealed * x) { | |
| 18415 | 18360 | char * s = NULL; |
| 18416 | 18361 | if (NULL != x) { |
| 18417 | - cJSON * j = cJSON_CreateSelf(x); | |
| 18362 | + cJSON * j = cJSON_CreateSealed(x); | |
| 18418 | 18363 | if (NULL != j) { |
| 18419 | 18364 | s = cJSON_Print(j); |
| 18420 | 18365 | cJSON_Delete(j); |
| @@ -18423,53 +18368,53 @@ char * cJSON_PrintSelf(const struct Self * x) { | ||
| 18423 | 18368 | return s; |
| 18424 | 18369 | } |
| 18425 | 18370 | |
| 18426 | -void cJSON_DeleteSelf(struct Self * x) { | |
| 18371 | +void cJSON_DeleteSealed(struct Sealed * x) { | |
| 18427 | 18372 | if (NULL != x) { |
| 18428 | 18373 | cJSON_free(x); |
| 18429 | 18374 | } |
| 18430 | 18375 | } |
| 18431 | 18376 | |
| 18432 | -struct Sendable * cJSON_ParseSendable(const char * s) { | |
| 18433 | - struct Sendable * x = NULL; | |
| 18377 | +struct Sel * cJSON_ParseSel(const char * s) { | |
| 18378 | + struct Sel * x = NULL; | |
| 18434 | 18379 | if (NULL != s) { |
| 18435 | 18380 | cJSON * j = cJSON_Parse(s); |
| 18436 | 18381 | if (NULL != j) { |
| 18437 | - x = cJSON_GetSendableValue(j); | |
| 18382 | + x = cJSON_GetSelValue(j); | |
| 18438 | 18383 | cJSON_Delete(j); |
| 18439 | 18384 | } |
| 18440 | 18385 | } |
| 18441 | 18386 | return x; |
| 18442 | 18387 | } |
| 18443 | 18388 | |
| 18444 | -struct Sendable * cJSON_GetSendableValue(const cJSON * j) { | |
| 18445 | - struct Sendable * x = NULL; | |
| 18389 | +struct Sel * cJSON_GetSelValue(const cJSON * j) { | |
| 18390 | + struct Sel * x = NULL; | |
| 18446 | 18391 | if (NULL != j) { |
| 18447 | - if (NULL != (x = cJSON_malloc(sizeof(struct Sendable)))) { | |
| 18448 | - memset(x, 0, sizeof(struct Sendable)); | |
| 18449 | - if (!cJSON_HasObjectItem(j, "Sendable")) { cJSON_DeleteSendable(x); return NULL; } | |
| 18450 | - if (cJSON_HasObjectItem(j, "Sendable")) { | |
| 18451 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Sendable"))) { cJSON_DeleteSendable(x); return NULL; } | |
| 18452 | - x->sendable = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Sendable")); | |
| 18392 | + if (NULL != (x = cJSON_malloc(sizeof(struct Sel)))) { | |
| 18393 | + memset(x, 0, sizeof(struct Sel)); | |
| 18394 | + if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteSel(x); return NULL; } | |
| 18395 | + if (cJSON_HasObjectItem(j, "SEL")) { | |
| 18396 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteSel(x); return NULL; } | |
| 18397 | + x->sel = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 18453 | 18398 | } |
| 18454 | 18399 | } |
| 18455 | 18400 | } |
| 18456 | 18401 | return x; |
| 18457 | 18402 | } |
| 18458 | 18403 | |
| 18459 | -cJSON * cJSON_CreateSendable(const struct Sendable * x) { | |
| 18404 | +cJSON * cJSON_CreateSel(const struct Sel * x) { | |
| 18460 | 18405 | cJSON * j = NULL; |
| 18461 | 18406 | if (NULL != x) { |
| 18462 | 18407 | if (NULL != (j = cJSON_CreateObject())) { |
| 18463 | - cJSON_AddNumberToObject(j, "Sendable", x->sendable); | |
| 18408 | + cJSON_AddNumberToObject(j, "SEL", x->sel); | |
| 18464 | 18409 | } |
| 18465 | 18410 | } |
| 18466 | 18411 | return j; |
| 18467 | 18412 | } |
| 18468 | 18413 | |
| 18469 | -char * cJSON_PrintSendable(const struct Sendable * x) { | |
| 18414 | +char * cJSON_PrintSel(const struct Sel * x) { | |
| 18470 | 18415 | char * s = NULL; |
| 18471 | 18416 | if (NULL != x) { |
| 18472 | - cJSON * j = cJSON_CreateSendable(x); | |
| 18417 | + cJSON * j = cJSON_CreateSel(x); | |
| 18473 | 18418 | if (NULL != j) { |
| 18474 | 18419 | s = cJSON_Print(j); |
| 18475 | 18420 | cJSON_Delete(j); |
| @@ -18478,53 +18423,53 @@ char * cJSON_PrintSendable(const struct Sendable * x) { | ||
| 18478 | 18423 | return s; |
| 18479 | 18424 | } |
| 18480 | 18425 | |
| 18481 | -void cJSON_DeleteSendable(struct Sendable * x) { | |
| 18426 | +void cJSON_DeleteSel(struct Sel * x) { | |
| 18482 | 18427 | if (NULL != x) { |
| 18483 | 18428 | cJSON_free(x); |
| 18484 | 18429 | } |
| 18485 | 18430 | } |
| 18486 | 18431 | |
| 18487 | -struct Serialize * cJSON_ParseSerialize(const char * s) { | |
| 18488 | - struct Serialize * x = NULL; | |
| 18432 | +struct Select * cJSON_ParseSelect(const char * s) { | |
| 18433 | + struct Select * x = NULL; | |
| 18489 | 18434 | if (NULL != s) { |
| 18490 | 18435 | cJSON * j = cJSON_Parse(s); |
| 18491 | 18436 | if (NULL != j) { |
| 18492 | - x = cJSON_GetSerializeValue(j); | |
| 18437 | + x = cJSON_GetSelectValue(j); | |
| 18493 | 18438 | cJSON_Delete(j); |
| 18494 | 18439 | } |
| 18495 | 18440 | } |
| 18496 | 18441 | return x; |
| 18497 | 18442 | } |
| 18498 | 18443 | |
| 18499 | -struct Serialize * cJSON_GetSerializeValue(const cJSON * j) { | |
| 18500 | - struct Serialize * x = NULL; | |
| 18444 | +struct Select * cJSON_GetSelectValue(const cJSON * j) { | |
| 18445 | + struct Select * x = NULL; | |
| 18501 | 18446 | if (NULL != j) { |
| 18502 | - if (NULL != (x = cJSON_malloc(sizeof(struct Serialize)))) { | |
| 18503 | - memset(x, 0, sizeof(struct Serialize)); | |
| 18504 | - if (!cJSON_HasObjectItem(j, "serialize")) { cJSON_DeleteSerialize(x); return NULL; } | |
| 18505 | - if (cJSON_HasObjectItem(j, "serialize")) { | |
| 18506 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "serialize"))) { cJSON_DeleteSerialize(x); return NULL; } | |
| 18507 | - x->serialize = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "serialize")); | |
| 18447 | + if (NULL != (x = cJSON_malloc(sizeof(struct Select)))) { | |
| 18448 | + memset(x, 0, sizeof(struct Select)); | |
| 18449 | + if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteSelect(x); return NULL; } | |
| 18450 | + if (cJSON_HasObjectItem(j, "select")) { | |
| 18451 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteSelect(x); return NULL; } | |
| 18452 | + x->select = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "select")); | |
| 18508 | 18453 | } |
| 18509 | 18454 | } |
| 18510 | 18455 | } |
| 18511 | 18456 | return x; |
| 18512 | 18457 | } |
| 18513 | 18458 | |
| 18514 | -cJSON * cJSON_CreateSerialize(const struct Serialize * x) { | |
| 18459 | +cJSON * cJSON_CreateSelect(const struct Select * x) { | |
| 18515 | 18460 | cJSON * j = NULL; |
| 18516 | 18461 | if (NULL != x) { |
| 18517 | 18462 | if (NULL != (j = cJSON_CreateObject())) { |
| 18518 | - cJSON_AddNumberToObject(j, "serialize", x->serialize); | |
| 18463 | + cJSON_AddNumberToObject(j, "select", x->select); | |
| 18519 | 18464 | } |
| 18520 | 18465 | } |
| 18521 | 18466 | return j; |
| 18522 | 18467 | } |
| 18523 | 18468 | |
| 18524 | -char * cJSON_PrintSerialize(const struct Serialize * x) { | |
| 18469 | +char * cJSON_PrintSelect(const struct Select * x) { | |
| 18525 | 18470 | char * s = NULL; |
| 18526 | 18471 | if (NULL != x) { |
| 18527 | - cJSON * j = cJSON_CreateSerialize(x); | |
| 18472 | + cJSON * j = cJSON_CreateSelect(x); | |
| 18528 | 18473 | if (NULL != j) { |
| 18529 | 18474 | s = cJSON_Print(j); |
| 18530 | 18475 | cJSON_Delete(j); |
| @@ -18533,7 +18478,227 @@ char * cJSON_PrintSerialize(const struct Serialize * x) { | ||
| 18533 | 18478 | return s; |
| 18534 | 18479 | } |
| 18535 | 18480 | |
| 18536 | -void cJSON_DeleteSerialize(struct Serialize * x) { | |
| 18481 | +void cJSON_DeleteSelect(struct Select * x) { | |
| 18482 | + if (NULL != x) { | |
| 18483 | + cJSON_free(x); | |
| 18484 | + } | |
| 18485 | +} | |
| 18486 | + | |
| 18487 | +struct Self * cJSON_ParseSelf(const char * s) { | |
| 18488 | + struct Self * x = NULL; | |
| 18489 | + if (NULL != s) { | |
| 18490 | + cJSON * j = cJSON_Parse(s); | |
| 18491 | + if (NULL != j) { | |
| 18492 | + x = cJSON_GetSelfValue(j); | |
| 18493 | + cJSON_Delete(j); | |
| 18494 | + } | |
| 18495 | + } | |
| 18496 | + return x; | |
| 18497 | +} | |
| 18498 | + | |
| 18499 | +struct Self * cJSON_GetSelfValue(const cJSON * j) { | |
| 18500 | + struct Self * x = NULL; | |
| 18501 | + if (NULL != j) { | |
| 18502 | + if (NULL != (x = cJSON_malloc(sizeof(struct Self)))) { | |
| 18503 | + memset(x, 0, sizeof(struct Self)); | |
| 18504 | + if (!cJSON_HasObjectItem(j, "Self")) { cJSON_DeleteSelf(x); return NULL; } | |
| 18505 | + if (cJSON_HasObjectItem(j, "Self")) { | |
| 18506 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Self"))) { cJSON_DeleteSelf(x); return NULL; } | |
| 18507 | + x->self = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Self")); | |
| 18508 | + } | |
| 18509 | + } | |
| 18510 | + } | |
| 18511 | + return x; | |
| 18512 | +} | |
| 18513 | + | |
| 18514 | +cJSON * cJSON_CreateSelf(const struct Self * x) { | |
| 18515 | + cJSON * j = NULL; | |
| 18516 | + if (NULL != x) { | |
| 18517 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18518 | + cJSON_AddNumberToObject(j, "Self", x->self); | |
| 18519 | + } | |
| 18520 | + } | |
| 18521 | + return j; | |
| 18522 | +} | |
| 18523 | + | |
| 18524 | +char * cJSON_PrintSelf(const struct Self * x) { | |
| 18525 | + char * s = NULL; | |
| 18526 | + if (NULL != x) { | |
| 18527 | + cJSON * j = cJSON_CreateSelf(x); | |
| 18528 | + if (NULL != j) { | |
| 18529 | + s = cJSON_Print(j); | |
| 18530 | + cJSON_Delete(j); | |
| 18531 | + } | |
| 18532 | + } | |
| 18533 | + return s; | |
| 18534 | +} | |
| 18535 | + | |
| 18536 | +void cJSON_DeleteSelf(struct Self * x) { | |
| 18537 | + if (NULL != x) { | |
| 18538 | + cJSON_free(x); | |
| 18539 | + } | |
| 18540 | +} | |
| 18541 | + | |
| 18542 | +struct Sendable * cJSON_ParseSendable(const char * s) { | |
| 18543 | + struct Sendable * x = NULL; | |
| 18544 | + if (NULL != s) { | |
| 18545 | + cJSON * j = cJSON_Parse(s); | |
| 18546 | + if (NULL != j) { | |
| 18547 | + x = cJSON_GetSendableValue(j); | |
| 18548 | + cJSON_Delete(j); | |
| 18549 | + } | |
| 18550 | + } | |
| 18551 | + return x; | |
| 18552 | +} | |
| 18553 | + | |
| 18554 | +struct Sendable * cJSON_GetSendableValue(const cJSON * j) { | |
| 18555 | + struct Sendable * x = NULL; | |
| 18556 | + if (NULL != j) { | |
| 18557 | + if (NULL != (x = cJSON_malloc(sizeof(struct Sendable)))) { | |
| 18558 | + memset(x, 0, sizeof(struct Sendable)); | |
| 18559 | + if (!cJSON_HasObjectItem(j, "Sendable")) { cJSON_DeleteSendable(x); return NULL; } | |
| 18560 | + if (cJSON_HasObjectItem(j, "Sendable")) { | |
| 18561 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Sendable"))) { cJSON_DeleteSendable(x); return NULL; } | |
| 18562 | + x->sendable = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Sendable")); | |
| 18563 | + } | |
| 18564 | + } | |
| 18565 | + } | |
| 18566 | + return x; | |
| 18567 | +} | |
| 18568 | + | |
| 18569 | +cJSON * cJSON_CreateSendable(const struct Sendable * x) { | |
| 18570 | + cJSON * j = NULL; | |
| 18571 | + if (NULL != x) { | |
| 18572 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18573 | + cJSON_AddNumberToObject(j, "Sendable", x->sendable); | |
| 18574 | + } | |
| 18575 | + } | |
| 18576 | + return j; | |
| 18577 | +} | |
| 18578 | + | |
| 18579 | +char * cJSON_PrintSendable(const struct Sendable * x) { | |
| 18580 | + char * s = NULL; | |
| 18581 | + if (NULL != x) { | |
| 18582 | + cJSON * j = cJSON_CreateSendable(x); | |
| 18583 | + if (NULL != j) { | |
| 18584 | + s = cJSON_Print(j); | |
| 18585 | + cJSON_Delete(j); | |
| 18586 | + } | |
| 18587 | + } | |
| 18588 | + return s; | |
| 18589 | +} | |
| 18590 | + | |
| 18591 | +void cJSON_DeleteSendable(struct Sendable * x) { | |
| 18592 | + if (NULL != x) { | |
| 18593 | + cJSON_free(x); | |
| 18594 | + } | |
| 18595 | +} | |
| 18596 | + | |
| 18597 | +struct SerializationFeature * cJSON_ParseSerializationFeature(const char * s) { | |
| 18598 | + struct SerializationFeature * x = NULL; | |
| 18599 | + if (NULL != s) { | |
| 18600 | + cJSON * j = cJSON_Parse(s); | |
| 18601 | + if (NULL != j) { | |
| 18602 | + x = cJSON_GetSerializationFeatureValue(j); | |
| 18603 | + cJSON_Delete(j); | |
| 18604 | + } | |
| 18605 | + } | |
| 18606 | + return x; | |
| 18607 | +} | |
| 18608 | + | |
| 18609 | +struct SerializationFeature * cJSON_GetSerializationFeatureValue(const cJSON * j) { | |
| 18610 | + struct SerializationFeature * x = NULL; | |
| 18611 | + if (NULL != j) { | |
| 18612 | + if (NULL != (x = cJSON_malloc(sizeof(struct SerializationFeature)))) { | |
| 18613 | + memset(x, 0, sizeof(struct SerializationFeature)); | |
| 18614 | + if (!cJSON_HasObjectItem(j, "SerializationFeature")) { cJSON_DeleteSerializationFeature(x); return NULL; } | |
| 18615 | + if (cJSON_HasObjectItem(j, "SerializationFeature")) { | |
| 18616 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "SerializationFeature"))) { cJSON_DeleteSerializationFeature(x); return NULL; } | |
| 18617 | + x->serialization_feature = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "SerializationFeature")); | |
| 18618 | + } | |
| 18619 | + } | |
| 18620 | + } | |
| 18621 | + return x; | |
| 18622 | +} | |
| 18623 | + | |
| 18624 | +cJSON * cJSON_CreateSerializationFeature(const struct SerializationFeature * x) { | |
| 18625 | + cJSON * j = NULL; | |
| 18626 | + if (NULL != x) { | |
| 18627 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18628 | + cJSON_AddNumberToObject(j, "SerializationFeature", x->serialization_feature); | |
| 18629 | + } | |
| 18630 | + } | |
| 18631 | + return j; | |
| 18632 | +} | |
| 18633 | + | |
| 18634 | +char * cJSON_PrintSerializationFeature(const struct SerializationFeature * x) { | |
| 18635 | + char * s = NULL; | |
| 18636 | + if (NULL != x) { | |
| 18637 | + cJSON * j = cJSON_CreateSerializationFeature(x); | |
| 18638 | + if (NULL != j) { | |
| 18639 | + s = cJSON_Print(j); | |
| 18640 | + cJSON_Delete(j); | |
| 18641 | + } | |
| 18642 | + } | |
| 18643 | + return s; | |
| 18644 | +} | |
| 18645 | + | |
| 18646 | +void cJSON_DeleteSerializationFeature(struct SerializationFeature * x) { | |
| 18647 | + if (NULL != x) { | |
| 18648 | + cJSON_free(x); | |
| 18649 | + } | |
| 18650 | +} | |
| 18651 | + | |
| 18652 | +struct Serialize * cJSON_ParseSerialize(const char * s) { | |
| 18653 | + struct Serialize * x = NULL; | |
| 18654 | + if (NULL != s) { | |
| 18655 | + cJSON * j = cJSON_Parse(s); | |
| 18656 | + if (NULL != j) { | |
| 18657 | + x = cJSON_GetSerializeValue(j); | |
| 18658 | + cJSON_Delete(j); | |
| 18659 | + } | |
| 18660 | + } | |
| 18661 | + return x; | |
| 18662 | +} | |
| 18663 | + | |
| 18664 | +struct Serialize * cJSON_GetSerializeValue(const cJSON * j) { | |
| 18665 | + struct Serialize * x = NULL; | |
| 18666 | + if (NULL != j) { | |
| 18667 | + if (NULL != (x = cJSON_malloc(sizeof(struct Serialize)))) { | |
| 18668 | + memset(x, 0, sizeof(struct Serialize)); | |
| 18669 | + if (!cJSON_HasObjectItem(j, "serialize")) { cJSON_DeleteSerialize(x); return NULL; } | |
| 18670 | + if (cJSON_HasObjectItem(j, "serialize")) { | |
| 18671 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "serialize"))) { cJSON_DeleteSerialize(x); return NULL; } | |
| 18672 | + x->serialize = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "serialize")); | |
| 18673 | + } | |
| 18674 | + } | |
| 18675 | + } | |
| 18676 | + return x; | |
| 18677 | +} | |
| 18678 | + | |
| 18679 | +cJSON * cJSON_CreateSerialize(const struct Serialize * x) { | |
| 18680 | + cJSON * j = NULL; | |
| 18681 | + if (NULL != x) { | |
| 18682 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18683 | + cJSON_AddNumberToObject(j, "serialize", x->serialize); | |
| 18684 | + } | |
| 18685 | + } | |
| 18686 | + return j; | |
| 18687 | +} | |
| 18688 | + | |
| 18689 | +char * cJSON_PrintSerialize(const struct Serialize * x) { | |
| 18690 | + char * s = NULL; | |
| 18691 | + if (NULL != x) { | |
| 18692 | + cJSON * j = cJSON_CreateSerialize(x); | |
| 18693 | + if (NULL != j) { | |
| 18694 | + s = cJSON_Print(j); | |
| 18695 | + cJSON_Delete(j); | |
| 18696 | + } | |
| 18697 | + } | |
| 18698 | + return s; | |
| 18699 | +} | |
| 18700 | + | |
| 18701 | +void cJSON_DeleteSerialize(struct Serialize * x) { | |
| 18537 | 18702 | if (NULL != x) { |
| 18538 | 18703 | cJSON_free(x); |
| 18539 | 18704 | } |
| @@ -20299,192 +20464,27 @@ void cJSON_DeleteUtf8JsonReader(struct Utf8JsonReader * x) { | ||
| 20299 | 20464 | } |
| 20300 | 20465 | } |
| 20301 | 20466 | |
| 20302 | -struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s) { | |
| 20303 | - struct Utf8JsonWriter * x = NULL; | |
| 20467 | +struct Obj5 * cJSON_ParseObj5(const char * s) { | |
| 20468 | + struct Obj5 * x = NULL; | |
| 20304 | 20469 | if (NULL != s) { |
| 20305 | 20470 | cJSON * j = cJSON_Parse(s); |
| 20306 | 20471 | if (NULL != j) { |
| 20307 | - x = cJSON_GetUtf8JsonWriterValue(j); | |
| 20472 | + x = cJSON_GetObj5Value(j); | |
| 20308 | 20473 | cJSON_Delete(j); |
| 20309 | 20474 | } |
| 20310 | 20475 | } |
| 20311 | 20476 | return x; |
| 20312 | 20477 | } |
| 20313 | 20478 | |
| 20314 | -struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j) { | |
| 20315 | - struct Utf8JsonWriter * x = NULL; | |
| 20479 | +struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | |
| 20480 | + struct Obj5 * x = NULL; | |
| 20316 | 20481 | if (NULL != j) { |
| 20317 | - if (NULL != (x = cJSON_malloc(sizeof(struct Utf8JsonWriter)))) { | |
| 20318 | - memset(x, 0, sizeof(struct Utf8JsonWriter)); | |
| 20319 | - if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteUtf8JsonWriter(x); return NULL; } | |
| 20320 | - if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) { | |
| 20321 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteUtf8JsonWriter(x); return NULL; } | |
| 20322 | - x->utf8_json_writer = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter")); | |
| 20323 | - } | |
| 20324 | - } | |
| 20325 | - } | |
| 20326 | - return x; | |
| 20327 | -} | |
| 20328 | - | |
| 20329 | -cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x) { | |
| 20330 | - cJSON * j = NULL; | |
| 20331 | - if (NULL != x) { | |
| 20332 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20333 | - cJSON_AddNumberToObject(j, "Utf8JsonWriter", x->utf8_json_writer); | |
| 20334 | - } | |
| 20335 | - } | |
| 20336 | - return j; | |
| 20337 | -} | |
| 20338 | - | |
| 20339 | -char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x) { | |
| 20340 | - char * s = NULL; | |
| 20341 | - if (NULL != x) { | |
| 20342 | - cJSON * j = cJSON_CreateUtf8JsonWriter(x); | |
| 20343 | - if (NULL != j) { | |
| 20344 | - s = cJSON_Print(j); | |
| 20345 | - cJSON_Delete(j); | |
| 20346 | - } | |
| 20347 | - } | |
| 20348 | - return s; | |
| 20349 | -} | |
| 20350 | - | |
| 20351 | -void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x) { | |
| 20352 | - if (NULL != x) { | |
| 20353 | - cJSON_free(x); | |
| 20354 | - } | |
| 20355 | -} | |
| 20356 | - | |
| 20357 | -struct Uuid * cJSON_ParseUuid(const char * s) { | |
| 20358 | - struct Uuid * x = NULL; | |
| 20359 | - if (NULL != s) { | |
| 20360 | - cJSON * j = cJSON_Parse(s); | |
| 20361 | - if (NULL != j) { | |
| 20362 | - x = cJSON_GetUuidValue(j); | |
| 20363 | - cJSON_Delete(j); | |
| 20364 | - } | |
| 20365 | - } | |
| 20366 | - return x; | |
| 20367 | -} | |
| 20368 | - | |
| 20369 | -struct Uuid * cJSON_GetUuidValue(const cJSON * j) { | |
| 20370 | - struct Uuid * x = NULL; | |
| 20371 | - if (NULL != j) { | |
| 20372 | - if (NULL != (x = cJSON_malloc(sizeof(struct Uuid)))) { | |
| 20373 | - memset(x, 0, sizeof(struct Uuid)); | |
| 20374 | - if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteUuid(x); return NULL; } | |
| 20375 | - if (cJSON_HasObjectItem(j, "UUID")) { | |
| 20376 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteUuid(x); return NULL; } | |
| 20377 | - x->uuid = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UUID")); | |
| 20378 | - } | |
| 20379 | - } | |
| 20380 | - } | |
| 20381 | - return x; | |
| 20382 | -} | |
| 20383 | - | |
| 20384 | -cJSON * cJSON_CreateUuid(const struct Uuid * x) { | |
| 20385 | - cJSON * j = NULL; | |
| 20386 | - if (NULL != x) { | |
| 20387 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20388 | - cJSON_AddNumberToObject(j, "UUID", x->uuid); | |
| 20389 | - } | |
| 20390 | - } | |
| 20391 | - return j; | |
| 20392 | -} | |
| 20393 | - | |
| 20394 | -char * cJSON_PrintUuid(const struct Uuid * x) { | |
| 20395 | - char * s = NULL; | |
| 20396 | - if (NULL != x) { | |
| 20397 | - cJSON * j = cJSON_CreateUuid(x); | |
| 20398 | - if (NULL != j) { | |
| 20399 | - s = cJSON_Print(j); | |
| 20400 | - cJSON_Delete(j); | |
| 20401 | - } | |
| 20402 | - } | |
| 20403 | - return s; | |
| 20404 | -} | |
| 20405 | - | |
| 20406 | -void cJSON_DeleteUuid(struct Uuid * x) { | |
| 20407 | - if (NULL != x) { | |
| 20408 | - cJSON_free(x); | |
| 20409 | - } | |
| 20410 | -} | |
| 20411 | - | |
| 20412 | -struct Var * cJSON_ParseVar(const char * s) { | |
| 20413 | - struct Var * x = NULL; | |
| 20414 | - if (NULL != s) { | |
| 20415 | - cJSON * j = cJSON_Parse(s); | |
| 20416 | - if (NULL != j) { | |
| 20417 | - x = cJSON_GetVarValue(j); | |
| 20418 | - cJSON_Delete(j); | |
| 20419 | - } | |
| 20420 | - } | |
| 20421 | - return x; | |
| 20422 | -} | |
| 20423 | - | |
| 20424 | -struct Var * cJSON_GetVarValue(const cJSON * j) { | |
| 20425 | - struct Var * x = NULL; | |
| 20426 | - if (NULL != j) { | |
| 20427 | - if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) { | |
| 20428 | - memset(x, 0, sizeof(struct Var)); | |
| 20429 | - if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; } | |
| 20430 | - if (cJSON_HasObjectItem(j, "var")) { | |
| 20431 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; } | |
| 20432 | - x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var")); | |
| 20433 | - } | |
| 20434 | - } | |
| 20435 | - } | |
| 20436 | - return x; | |
| 20437 | -} | |
| 20438 | - | |
| 20439 | -cJSON * cJSON_CreateVar(const struct Var * x) { | |
| 20440 | - cJSON * j = NULL; | |
| 20441 | - if (NULL != x) { | |
| 20442 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20443 | - cJSON_AddNumberToObject(j, "var", x->var); | |
| 20444 | - } | |
| 20445 | - } | |
| 20446 | - return j; | |
| 20447 | -} | |
| 20448 | - | |
| 20449 | -char * cJSON_PrintVar(const struct Var * x) { | |
| 20450 | - char * s = NULL; | |
| 20451 | - if (NULL != x) { | |
| 20452 | - cJSON * j = cJSON_CreateVar(x); | |
| 20453 | - if (NULL != j) { | |
| 20454 | - s = cJSON_Print(j); | |
| 20455 | - cJSON_Delete(j); | |
| 20456 | - } | |
| 20457 | - } | |
| 20458 | - return s; | |
| 20459 | -} | |
| 20460 | - | |
| 20461 | -void cJSON_DeleteVar(struct Var * x) { | |
| 20462 | - if (NULL != x) { | |
| 20463 | - cJSON_free(x); | |
| 20464 | - } | |
| 20465 | -} | |
| 20466 | - | |
| 20467 | -struct Obj5 * cJSON_ParseObj5(const char * s) { | |
| 20468 | - struct Obj5 * x = NULL; | |
| 20469 | - if (NULL != s) { | |
| 20470 | - cJSON * j = cJSON_Parse(s); | |
| 20471 | - if (NULL != j) { | |
| 20472 | - x = cJSON_GetObj5Value(j); | |
| 20473 | - cJSON_Delete(j); | |
| 20474 | - } | |
| 20475 | - } | |
| 20476 | - return x; | |
| 20477 | -} | |
| 20478 | - | |
| 20479 | -struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | |
| 20480 | - struct Obj5 * x = NULL; | |
| 20481 | - if (NULL != j) { | |
| 20482 | - if (NULL != (x = cJSON_malloc(sizeof(struct Obj5)))) { | |
| 20483 | - memset(x, 0, sizeof(struct Obj5)); | |
| 20484 | - if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20485 | - if (cJSON_HasObjectItem(j, "dummy")) { | |
| 20486 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20487 | - x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 20482 | + if (NULL != (x = cJSON_malloc(sizeof(struct Obj5)))) { | |
| 20483 | + memset(x, 0, sizeof(struct Obj5)); | |
| 20484 | + if (!cJSON_HasObjectItem(j, "dummy")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20485 | + if (cJSON_HasObjectItem(j, "dummy")) { | |
| 20486 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20487 | + x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); | |
| 20488 | 20488 | } |
| 20489 | 20489 | if (!cJSON_HasObjectItem(j, "self")) { cJSON_DeleteObj5(x); return NULL; } |
| 20490 | 20490 | if (cJSON_HasObjectItem(j, "self")) { |
| @@ -20630,18 +20630,30 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20630 | 20630 | x->obj5_using = cJSON_GetUsingValue(cJSON_GetObjectItemCaseSensitive(j, "using")); |
| 20631 | 20631 | if (NULL == x->obj5_using) { cJSON_DeleteObj5(x); return NULL; } |
| 20632 | 20632 | } |
| 20633 | - if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20634 | - if (cJSON_HasObjectItem(j, "virtual")) { | |
| 20635 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20636 | - x->obj5_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual")); | |
| 20637 | - if (NULL == x->obj5_virtual) { cJSON_DeleteObj5(x); return NULL; } | |
| 20638 | - } | |
| 20639 | 20633 | if (!cJSON_HasObjectItem(j, "true")) { cJSON_DeleteObj5(x); return NULL; } |
| 20640 | 20634 | if (cJSON_HasObjectItem(j, "true")) { |
| 20641 | 20635 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "true"))) { cJSON_DeleteObj5(x); return NULL; } |
| 20642 | 20636 | x->purple_true = cJSON_GetObj5TrueValue(cJSON_GetObjectItemCaseSensitive(j, "true")); |
| 20643 | 20637 | if (NULL == x->purple_true) { cJSON_DeleteObj5(x); return NULL; } |
| 20644 | 20638 | } |
| 20639 | + if (!cJSON_HasObjectItem(j, "sealed")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20640 | + if (cJSON_HasObjectItem(j, "sealed")) { | |
| 20641 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "sealed"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20642 | + x->sealed = cJSON_GetSealedValue(cJSON_GetObjectItemCaseSensitive(j, "sealed")); | |
| 20643 | + if (NULL == x->sealed) { cJSON_DeleteObj5(x); return NULL; } | |
| 20644 | + } | |
| 20645 | + if (!cJSON_HasObjectItem(j, "SEL")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20646 | + if (cJSON_HasObjectItem(j, "SEL")) { | |
| 20647 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SEL"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20648 | + x->sel = cJSON_GetSelValue(cJSON_GetObjectItemCaseSensitive(j, "SEL")); | |
| 20649 | + if (NULL == x->sel) { cJSON_DeleteObj5(x); return NULL; } | |
| 20650 | + } | |
| 20651 | + if (!cJSON_HasObjectItem(j, "select")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20652 | + if (cJSON_HasObjectItem(j, "select")) { | |
| 20653 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "select"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20654 | + x->select = cJSON_GetSelectValue(cJSON_GetObjectItemCaseSensitive(j, "select")); | |
| 20655 | + if (NULL == x->select) { cJSON_DeleteObj5(x); return NULL; } | |
| 20656 | + } | |
| 20645 | 20657 | if (!cJSON_HasObjectItem(j, "Self")) { cJSON_DeleteObj5(x); return NULL; } |
| 20646 | 20658 | if (cJSON_HasObjectItem(j, "Self")) { |
| 20647 | 20659 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Self"))) { cJSON_DeleteObj5(x); return NULL; } |
| @@ -20654,6 +20666,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20654 | 20666 | x->sendable = cJSON_GetSendableValue(cJSON_GetObjectItemCaseSensitive(j, "Sendable")); |
| 20655 | 20667 | if (NULL == x->sendable) { cJSON_DeleteObj5(x); return NULL; } |
| 20656 | 20668 | } |
| 20669 | + if (!cJSON_HasObjectItem(j, "SerializationFeature")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20670 | + if (cJSON_HasObjectItem(j, "SerializationFeature")) { | |
| 20671 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "SerializationFeature"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20672 | + x->serialization_feature = cJSON_GetSerializationFeatureValue(cJSON_GetObjectItemCaseSensitive(j, "SerializationFeature")); | |
| 20673 | + if (NULL == x->serialization_feature) { cJSON_DeleteObj5(x); return NULL; } | |
| 20674 | + } | |
| 20657 | 20675 | if (!cJSON_HasObjectItem(j, "serialize")) { cJSON_DeleteObj5(x); return NULL; } |
| 20658 | 20676 | if (cJSON_HasObjectItem(j, "serialize")) { |
| 20659 | 20677 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "serialize"))) { cJSON_DeleteObj5(x); return NULL; } |
| @@ -20852,24 +20870,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20852 | 20870 | x->utf8_json_reader = cJSON_GetUtf8JsonReaderValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader")); |
| 20853 | 20871 | if (NULL == x->utf8_json_reader) { cJSON_DeleteObj5(x); return NULL; } |
| 20854 | 20872 | } |
| 20855 | - if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20856 | - if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) { | |
| 20857 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20858 | - x->utf8_json_writer = cJSON_GetUtf8JsonWriterValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter")); | |
| 20859 | - if (NULL == x->utf8_json_writer) { cJSON_DeleteObj5(x); return NULL; } | |
| 20860 | - } | |
| 20861 | - if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20862 | - if (cJSON_HasObjectItem(j, "UUID")) { | |
| 20863 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20864 | - x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID")); | |
| 20865 | - if (NULL == x->uuid) { cJSON_DeleteObj5(x); return NULL; } | |
| 20866 | - } | |
| 20867 | - if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20868 | - if (cJSON_HasObjectItem(j, "var")) { | |
| 20869 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20870 | - x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var")); | |
| 20871 | - if (NULL == x->var) { cJSON_DeleteObj5(x); return NULL; } | |
| 20872 | - } | |
| 20873 | 20873 | } |
| 20874 | 20874 | } |
| 20875 | 20875 | return x; |
| @@ -20904,10 +20904,13 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) { | ||
| 20904 | 20904 | cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union)); |
| 20905 | 20905 | cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned)); |
| 20906 | 20906 | cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj5_using)); |
| 20907 | - cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj5_virtual)); | |
| 20908 | 20907 | cJSON_AddItemToObject(j, "true", cJSON_CreateObj5True(x->purple_true)); |
| 20908 | + cJSON_AddItemToObject(j, "sealed", cJSON_CreateSealed(x->sealed)); | |
| 20909 | + cJSON_AddItemToObject(j, "SEL", cJSON_CreateSel(x->sel)); | |
| 20910 | + cJSON_AddItemToObject(j, "select", cJSON_CreateSelect(x->select)); | |
| 20909 | 20911 | cJSON_AddItemToObject(j, "Self", cJSON_CreateSelf(x->self)); |
| 20910 | 20912 | cJSON_AddItemToObject(j, "Sendable", cJSON_CreateSendable(x->sendable)); |
| 20913 | + cJSON_AddItemToObject(j, "SerializationFeature", cJSON_CreateSerializationFeature(x->serialization_feature)); | |
| 20911 | 20914 | cJSON_AddItemToObject(j, "serialize", cJSON_CreateSerialize(x->serialize)); |
| 20912 | 20915 | cJSON_AddItemToObject(j, "SerializerProvider", cJSON_CreateSerializerProvider(x->serializer_provider)); |
| 20913 | 20916 | cJSON_AddItemToObject(j, "set", cJSON_CreateSet(x->set)); |
| @@ -20941,9 +20944,6 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) { | ||
| 20941 | 20944 | cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe)); |
| 20942 | 20945 | cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort)); |
| 20943 | 20946 | cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader)); |
| 20944 | - cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer)); | |
| 20945 | - cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid)); | |
| 20946 | - cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var)); | |
| 20947 | 20947 | } |
| 20948 | 20948 | } |
| 20949 | 20949 | return j; |
| @@ -21035,18 +21035,27 @@ void cJSON_DeleteObj5(struct Obj5 * x) { | ||
| 21035 | 21035 | if (NULL != x->obj5_using) { |
| 21036 | 21036 | cJSON_DeleteUsing(x->obj5_using); |
| 21037 | 21037 | } |
| 21038 | - if (NULL != x->obj5_virtual) { | |
| 21039 | - cJSON_DeleteVirtual(x->obj5_virtual); | |
| 21040 | - } | |
| 21041 | 21038 | if (NULL != x->purple_true) { |
| 21042 | 21039 | cJSON_DeleteObj5True(x->purple_true); |
| 21043 | 21040 | } |
| 21041 | + if (NULL != x->sealed) { | |
| 21042 | + cJSON_DeleteSealed(x->sealed); | |
| 21043 | + } | |
| 21044 | + if (NULL != x->sel) { | |
| 21045 | + cJSON_DeleteSel(x->sel); | |
| 21046 | + } | |
| 21047 | + if (NULL != x->select) { | |
| 21048 | + cJSON_DeleteSelect(x->select); | |
| 21049 | + } | |
| 21044 | 21050 | if (NULL != x->self) { |
| 21045 | 21051 | cJSON_DeleteSelf(x->self); |
| 21046 | 21052 | } |
| 21047 | 21053 | if (NULL != x->sendable) { |
| 21048 | 21054 | cJSON_DeleteSendable(x->sendable); |
| 21049 | 21055 | } |
| 21056 | + if (NULL != x->serialization_feature) { | |
| 21057 | + cJSON_DeleteSerializationFeature(x->serialization_feature); | |
| 21058 | + } | |
| 21050 | 21059 | if (NULL != x->serialize) { |
| 21051 | 21060 | cJSON_DeleteSerialize(x->serialize); |
| 21052 | 21061 | } |
| @@ -21146,15 +21155,61 @@ void cJSON_DeleteObj5(struct Obj5 * x) { | ||
| 21146 | 21155 | if (NULL != x->utf8_json_reader) { |
| 21147 | 21156 | cJSON_DeleteUtf8JsonReader(x->utf8_json_reader); |
| 21148 | 21157 | } |
| 21149 | - if (NULL != x->utf8_json_writer) { | |
| 21150 | - cJSON_DeleteUtf8JsonWriter(x->utf8_json_writer); | |
| 21158 | + cJSON_free(x); | |
| 21159 | + } | |
| 21160 | +} | |
| 21161 | + | |
| 21162 | +struct Virtual * cJSON_ParseVirtual(const char * s) { | |
| 21163 | + struct Virtual * x = NULL; | |
| 21164 | + if (NULL != s) { | |
| 21165 | + cJSON * j = cJSON_Parse(s); | |
| 21166 | + if (NULL != j) { | |
| 21167 | + x = cJSON_GetVirtualValue(j); | |
| 21168 | + cJSON_Delete(j); | |
| 21151 | 21169 | } |
| 21152 | - if (NULL != x->uuid) { | |
| 21153 | - cJSON_DeleteUuid(x->uuid); | |
| 21170 | + } | |
| 21171 | + return x; | |
| 21172 | +} | |
| 21173 | + | |
| 21174 | +struct Virtual * cJSON_GetVirtualValue(const cJSON * j) { | |
| 21175 | + struct Virtual * x = NULL; | |
| 21176 | + if (NULL != j) { | |
| 21177 | + if (NULL != (x = cJSON_malloc(sizeof(struct Virtual)))) { | |
| 21178 | + memset(x, 0, sizeof(struct Virtual)); | |
| 21179 | + if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteVirtual(x); return NULL; } | |
| 21180 | + if (cJSON_HasObjectItem(j, "virtual")) { | |
| 21181 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteVirtual(x); return NULL; } | |
| 21182 | + x->virtual_virtual = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "virtual")); | |
| 21183 | + } | |
| 21154 | 21184 | } |
| 21155 | - if (NULL != x->var) { | |
| 21156 | - cJSON_DeleteVar(x->var); | |
| 21185 | + } | |
| 21186 | + return x; | |
| 21187 | +} | |
| 21188 | + | |
| 21189 | +cJSON * cJSON_CreateVirtual(const struct Virtual * x) { | |
| 21190 | + cJSON * j = NULL; | |
| 21191 | + if (NULL != x) { | |
| 21192 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21193 | + cJSON_AddNumberToObject(j, "virtual", x->virtual_virtual); | |
| 21157 | 21194 | } |
| 21195 | + } | |
| 21196 | + return j; | |
| 21197 | +} | |
| 21198 | + | |
| 21199 | +char * cJSON_PrintVirtual(const struct Virtual * x) { | |
| 21200 | + char * s = NULL; | |
| 21201 | + if (NULL != x) { | |
| 21202 | + cJSON * j = cJSON_CreateVirtual(x); | |
| 21203 | + if (NULL != j) { | |
| 21204 | + s = cJSON_Print(j); | |
| 21205 | + cJSON_Delete(j); | |
| 21206 | + } | |
| 21207 | + } | |
| 21208 | + return s; | |
| 21209 | +} | |
| 21210 | + | |
| 21211 | +void cJSON_DeleteVirtual(struct Virtual * x) { | |
| 21212 | + if (NULL != x) { | |
| 21158 | 21213 | cJSON_free(x); |
| 21159 | 21214 | } |
| 21160 | 21215 | } |
| @@ -21489,6 +21544,171 @@ void cJSON_DeleteXorEq(struct XorEq * x) { | ||
| 21489 | 21544 | } |
| 21490 | 21545 | } |
| 21491 | 21546 | |
| 21547 | +struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s) { | |
| 21548 | + struct Utf8JsonWriter * x = NULL; | |
| 21549 | + if (NULL != s) { | |
| 21550 | + cJSON * j = cJSON_Parse(s); | |
| 21551 | + if (NULL != j) { | |
| 21552 | + x = cJSON_GetUtf8JsonWriterValue(j); | |
| 21553 | + cJSON_Delete(j); | |
| 21554 | + } | |
| 21555 | + } | |
| 21556 | + return x; | |
| 21557 | +} | |
| 21558 | + | |
| 21559 | +struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j) { | |
| 21560 | + struct Utf8JsonWriter * x = NULL; | |
| 21561 | + if (NULL != j) { | |
| 21562 | + if (NULL != (x = cJSON_malloc(sizeof(struct Utf8JsonWriter)))) { | |
| 21563 | + memset(x, 0, sizeof(struct Utf8JsonWriter)); | |
| 21564 | + if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteUtf8JsonWriter(x); return NULL; } | |
| 21565 | + if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) { | |
| 21566 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteUtf8JsonWriter(x); return NULL; } | |
| 21567 | + x->utf8_json_writer = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter")); | |
| 21568 | + } | |
| 21569 | + } | |
| 21570 | + } | |
| 21571 | + return x; | |
| 21572 | +} | |
| 21573 | + | |
| 21574 | +cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x) { | |
| 21575 | + cJSON * j = NULL; | |
| 21576 | + if (NULL != x) { | |
| 21577 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21578 | + cJSON_AddNumberToObject(j, "Utf8JsonWriter", x->utf8_json_writer); | |
| 21579 | + } | |
| 21580 | + } | |
| 21581 | + return j; | |
| 21582 | +} | |
| 21583 | + | |
| 21584 | +char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x) { | |
| 21585 | + char * s = NULL; | |
| 21586 | + if (NULL != x) { | |
| 21587 | + cJSON * j = cJSON_CreateUtf8JsonWriter(x); | |
| 21588 | + if (NULL != j) { | |
| 21589 | + s = cJSON_Print(j); | |
| 21590 | + cJSON_Delete(j); | |
| 21591 | + } | |
| 21592 | + } | |
| 21593 | + return s; | |
| 21594 | +} | |
| 21595 | + | |
| 21596 | +void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x) { | |
| 21597 | + if (NULL != x) { | |
| 21598 | + cJSON_free(x); | |
| 21599 | + } | |
| 21600 | +} | |
| 21601 | + | |
| 21602 | +struct Uuid * cJSON_ParseUuid(const char * s) { | |
| 21603 | + struct Uuid * x = NULL; | |
| 21604 | + if (NULL != s) { | |
| 21605 | + cJSON * j = cJSON_Parse(s); | |
| 21606 | + if (NULL != j) { | |
| 21607 | + x = cJSON_GetUuidValue(j); | |
| 21608 | + cJSON_Delete(j); | |
| 21609 | + } | |
| 21610 | + } | |
| 21611 | + return x; | |
| 21612 | +} | |
| 21613 | + | |
| 21614 | +struct Uuid * cJSON_GetUuidValue(const cJSON * j) { | |
| 21615 | + struct Uuid * x = NULL; | |
| 21616 | + if (NULL != j) { | |
| 21617 | + if (NULL != (x = cJSON_malloc(sizeof(struct Uuid)))) { | |
| 21618 | + memset(x, 0, sizeof(struct Uuid)); | |
| 21619 | + if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteUuid(x); return NULL; } | |
| 21620 | + if (cJSON_HasObjectItem(j, "UUID")) { | |
| 21621 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteUuid(x); return NULL; } | |
| 21622 | + x->uuid = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "UUID")); | |
| 21623 | + } | |
| 21624 | + } | |
| 21625 | + } | |
| 21626 | + return x; | |
| 21627 | +} | |
| 21628 | + | |
| 21629 | +cJSON * cJSON_CreateUuid(const struct Uuid * x) { | |
| 21630 | + cJSON * j = NULL; | |
| 21631 | + if (NULL != x) { | |
| 21632 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21633 | + cJSON_AddNumberToObject(j, "UUID", x->uuid); | |
| 21634 | + } | |
| 21635 | + } | |
| 21636 | + return j; | |
| 21637 | +} | |
| 21638 | + | |
| 21639 | +char * cJSON_PrintUuid(const struct Uuid * x) { | |
| 21640 | + char * s = NULL; | |
| 21641 | + if (NULL != x) { | |
| 21642 | + cJSON * j = cJSON_CreateUuid(x); | |
| 21643 | + if (NULL != j) { | |
| 21644 | + s = cJSON_Print(j); | |
| 21645 | + cJSON_Delete(j); | |
| 21646 | + } | |
| 21647 | + } | |
| 21648 | + return s; | |
| 21649 | +} | |
| 21650 | + | |
| 21651 | +void cJSON_DeleteUuid(struct Uuid * x) { | |
| 21652 | + if (NULL != x) { | |
| 21653 | + cJSON_free(x); | |
| 21654 | + } | |
| 21655 | +} | |
| 21656 | + | |
| 21657 | +struct Var * cJSON_ParseVar(const char * s) { | |
| 21658 | + struct Var * x = NULL; | |
| 21659 | + if (NULL != s) { | |
| 21660 | + cJSON * j = cJSON_Parse(s); | |
| 21661 | + if (NULL != j) { | |
| 21662 | + x = cJSON_GetVarValue(j); | |
| 21663 | + cJSON_Delete(j); | |
| 21664 | + } | |
| 21665 | + } | |
| 21666 | + return x; | |
| 21667 | +} | |
| 21668 | + | |
| 21669 | +struct Var * cJSON_GetVarValue(const cJSON * j) { | |
| 21670 | + struct Var * x = NULL; | |
| 21671 | + if (NULL != j) { | |
| 21672 | + if (NULL != (x = cJSON_malloc(sizeof(struct Var)))) { | |
| 21673 | + memset(x, 0, sizeof(struct Var)); | |
| 21674 | + if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteVar(x); return NULL; } | |
| 21675 | + if (cJSON_HasObjectItem(j, "var")) { | |
| 21676 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteVar(x); return NULL; } | |
| 21677 | + x->var = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "var")); | |
| 21678 | + } | |
| 21679 | + } | |
| 21680 | + } | |
| 21681 | + return x; | |
| 21682 | +} | |
| 21683 | + | |
| 21684 | +cJSON * cJSON_CreateVar(const struct Var * x) { | |
| 21685 | + cJSON * j = NULL; | |
| 21686 | + if (NULL != x) { | |
| 21687 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21688 | + cJSON_AddNumberToObject(j, "var", x->var); | |
| 21689 | + } | |
| 21690 | + } | |
| 21691 | + return j; | |
| 21692 | +} | |
| 21693 | + | |
| 21694 | +char * cJSON_PrintVar(const struct Var * x) { | |
| 21695 | + char * s = NULL; | |
| 21696 | + if (NULL != x) { | |
| 21697 | + cJSON * j = cJSON_CreateVar(x); | |
| 21698 | + if (NULL != j) { | |
| 21699 | + s = cJSON_Print(j); | |
| 21700 | + cJSON_Delete(j); | |
| 21701 | + } | |
| 21702 | + } | |
| 21703 | + return s; | |
| 21704 | +} | |
| 21705 | + | |
| 21706 | +void cJSON_DeleteVar(struct Var * x) { | |
| 21707 | + if (NULL != x) { | |
| 21708 | + cJSON_free(x); | |
| 21709 | + } | |
| 21710 | +} | |
| 21711 | + | |
| 21492 | 21712 | struct Weak * cJSON_ParseWeak(const char * s) { |
| 21493 | 21713 | struct Weak * x = NULL; |
| 21494 | 21714 | if (NULL != s) { |
| @@ -21841,6 +22061,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) { | ||
| 21841 | 22061 | if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; } |
| 21842 | 22062 | x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); |
| 21843 | 22063 | } |
| 22064 | + if (!cJSON_HasObjectItem(j, "virtual")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22065 | + if (cJSON_HasObjectItem(j, "virtual")) { | |
| 22066 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "virtual"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22067 | + x->obj6_virtual = cJSON_GetVirtualValue(cJSON_GetObjectItemCaseSensitive(j, "virtual")); | |
| 22068 | + if (NULL == x->obj6_virtual) { cJSON_DeleteObj6(x); return NULL; } | |
| 22069 | + } | |
| 21844 | 22070 | if (!cJSON_HasObjectItem(j, "void")) { cJSON_DeleteObj6(x); return NULL; } |
| 21845 | 22071 | if (cJSON_HasObjectItem(j, "void")) { |
| 21846 | 22072 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "void"))) { cJSON_DeleteObj6(x); return NULL; } |
| @@ -21877,6 +22103,24 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) { | ||
| 21877 | 22103 | x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq")); |
| 21878 | 22104 | if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; } |
| 21879 | 22105 | } |
| 22106 | + if (!cJSON_HasObjectItem(j, "Utf8JsonWriter")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22107 | + if (cJSON_HasObjectItem(j, "Utf8JsonWriter")) { | |
| 22108 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22109 | + x->utf8_json_writer = cJSON_GetUtf8JsonWriterValue(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonWriter")); | |
| 22110 | + if (NULL == x->utf8_json_writer) { cJSON_DeleteObj6(x); return NULL; } | |
| 22111 | + } | |
| 22112 | + if (!cJSON_HasObjectItem(j, "UUID")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22113 | + if (cJSON_HasObjectItem(j, "UUID")) { | |
| 22114 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UUID"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22115 | + x->uuid = cJSON_GetUuidValue(cJSON_GetObjectItemCaseSensitive(j, "UUID")); | |
| 22116 | + if (NULL == x->uuid) { cJSON_DeleteObj6(x); return NULL; } | |
| 22117 | + } | |
| 22118 | + if (!cJSON_HasObjectItem(j, "var")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22119 | + if (cJSON_HasObjectItem(j, "var")) { | |
| 22120 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "var"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22121 | + x->var = cJSON_GetVarValue(cJSON_GetObjectItemCaseSensitive(j, "var")); | |
| 22122 | + if (NULL == x->var) { cJSON_DeleteObj6(x); return NULL; } | |
| 22123 | + } | |
| 21880 | 22124 | if (!cJSON_HasObjectItem(j, "weak")) { cJSON_DeleteObj6(x); return NULL; } |
| 21881 | 22125 | if (cJSON_HasObjectItem(j, "weak")) { |
| 21882 | 22126 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "weak"))) { cJSON_DeleteObj6(x); return NULL; } |
| @@ -21923,12 +22167,16 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) { | ||
| 21923 | 22167 | if (NULL != x) { |
| 21924 | 22168 | if (NULL != (j = cJSON_CreateObject())) { |
| 21925 | 22169 | cJSON_AddNumberToObject(j, "dummy", x->dummy); |
| 22170 | + cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual)); | |
| 21926 | 22171 | cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void)); |
| 21927 | 22172 | cJSON_AddItemToObject(j, "volatile", cJSON_CreateVolatile(x->obj6_volatile)); |
| 21928 | 22173 | cJSON_AddItemToObject(j, "wchar_t", cJSON_CreateWcharT(x->obj6_wchar_t)); |
| 21929 | 22174 | cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while)); |
| 21930 | 22175 | cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor)); |
| 21931 | 22176 | cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq)); |
| 22177 | + cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer)); | |
| 22178 | + cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid)); | |
| 22179 | + cJSON_AddItemToObject(j, "var", cJSON_CreateVar(x->var)); | |
| 21932 | 22180 | cJSON_AddItemToObject(j, "weak", cJSON_CreateWeak(x->weak)); |
| 21933 | 22181 | cJSON_AddItemToObject(j, "where", cJSON_CreateWhere(x->where)); |
| 21934 | 22182 | cJSON_AddItemToObject(j, "willSet", cJSON_CreateWillSet(x->will_set)); |
| @@ -21954,6 +22202,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) { | ||
| 21954 | 22202 | |
| 21955 | 22203 | void cJSON_DeleteObj6(struct Obj6 * x) { |
| 21956 | 22204 | if (NULL != x) { |
| 22205 | + if (NULL != x->obj6_virtual) { | |
| 22206 | + cJSON_DeleteVirtual(x->obj6_virtual); | |
| 22207 | + } | |
| 21957 | 22208 | if (NULL != x->obj6_void) { |
| 21958 | 22209 | cJSON_DeleteVoid(x->obj6_void); |
| 21959 | 22210 | } |
| @@ -21972,6 +22223,15 @@ void cJSON_DeleteObj6(struct Obj6 * x) { | ||
| 21972 | 22223 | if (NULL != x->obj6_xor_eq) { |
| 21973 | 22224 | cJSON_DeleteXorEq(x->obj6_xor_eq); |
| 21974 | 22225 | } |
| 22226 | + if (NULL != x->utf8_json_writer) { | |
| 22227 | + cJSON_DeleteUtf8JsonWriter(x->utf8_json_writer); | |
| 22228 | + } | |
| 22229 | + if (NULL != x->uuid) { | |
| 22230 | + cJSON_DeleteUuid(x->uuid); | |
| 22231 | + } | |
| 22232 | + if (NULL != x->var) { | |
| 22233 | + cJSON_DeleteVar(x->var); | |
| 22234 | + } | |
| 21975 | 22235 | if (NULL != x->weak) { |
| 21976 | 22236 | cJSON_DeleteWeak(x->weak); |
| 21977 | 22237 | } |
Mcjsondefault / TopLevel.h+143 −99
| @@ -440,6 +440,10 @@ struct Delegate { | ||
| 440 | 440 | int64_t delegate; |
| 441 | 441 | }; |
| 442 | 442 | |
| 443 | +struct DeserializationFeature { | |
| 444 | + int64_t deserialization_feature; | |
| 445 | +}; | |
| 446 | + | |
| 443 | 447 | struct Dict { |
| 444 | 448 | int64_t dict; |
| 445 | 449 | }; |
| @@ -625,10 +629,6 @@ struct Friend { | ||
| 625 | 629 | int64_t friend_friend; |
| 626 | 630 | }; |
| 627 | 631 | |
| 628 | -struct Goto { | |
| 629 | - int64_t goto_goto; | |
| 630 | -}; | |
| 631 | - | |
| 632 | 632 | struct Obj2False { |
| 633 | 633 | int64_t false_false; |
| 634 | 634 | }; |
| @@ -651,6 +651,7 @@ struct Obj2 { | ||
| 651 | 651 | struct Deinit * deinit; |
| 652 | 652 | struct Del * del; |
| 653 | 653 | struct Delegate * delegate; |
| 654 | + struct DeserializationFeature * deserialization_feature; | |
| 654 | 655 | struct Dict * dict; |
| 655 | 656 | struct Dictionary * dictionary; |
| 656 | 657 | struct DidSet * did_set; |
| @@ -697,7 +698,6 @@ struct Obj2 { | ||
| 697 | 698 | struct Float * obj2_float; |
| 698 | 699 | struct For * obj2_for; |
| 699 | 700 | struct Friend * obj2_friend; |
| 700 | - struct Goto * obj2_goto; | |
| 701 | 701 | struct Obj2False * purple_false; |
| 702 | 702 | }; |
| 703 | 703 | |
| @@ -917,6 +917,10 @@ struct No { | ||
| 917 | 917 | int64_t no; |
| 918 | 918 | }; |
| 919 | 919 | |
| 920 | +struct Goto { | |
| 921 | + int64_t goto_goto; | |
| 922 | +}; | |
| 923 | + | |
| 920 | 924 | struct If { |
| 921 | 925 | int64_t if_if; |
| 922 | 926 | }; |
| @@ -953,10 +957,6 @@ struct New { | ||
| 953 | 957 | int64_t new_new; |
| 954 | 958 | }; |
| 955 | 959 | |
| 956 | -struct Noexcept { | |
| 957 | - int64_t noexcept_noexcept; | |
| 958 | -}; | |
| 959 | - | |
| 960 | 960 | struct Obj3 { |
| 961 | 961 | int64_t dummy; |
| 962 | 962 | struct Guard * guard; |
| @@ -1013,6 +1013,7 @@ struct Obj3 { | ||
| 1013 | 1013 | struct Newtonsoft * newtonsoft; |
| 1014 | 1014 | struct Nil * nil; |
| 1015 | 1015 | struct No * no; |
| 1016 | + struct Goto * obj3_goto; | |
| 1016 | 1017 | struct If * obj3_if; |
| 1017 | 1018 | struct Import * obj3_import; |
| 1018 | 1019 | struct Inline * obj3_inline; |
| @@ -1022,7 +1023,6 @@ struct Obj3 { | ||
| 1022 | 1023 | struct Mutable * obj3_mutable; |
| 1023 | 1024 | struct Namespace * obj3_namespace; |
| 1024 | 1025 | struct New * obj3_new; |
| 1025 | - struct Noexcept * obj3_noexcept; | |
| 1026 | 1026 | }; |
| 1027 | 1027 | |
| 1028 | 1028 | struct NoSuchMethod { |
| @@ -1065,6 +1065,10 @@ struct NumberClass { | ||
| 1065 | 1065 | int64_t number; |
| 1066 | 1066 | }; |
| 1067 | 1067 | |
| 1068 | +struct Noexcept { | |
| 1069 | + int64_t noexcept_noexcept; | |
| 1070 | +}; | |
| 1071 | + | |
| 1068 | 1072 | struct NoneClass { |
| 1069 | 1073 | int64_t none; |
| 1070 | 1074 | }; |
| @@ -1145,6 +1149,14 @@ struct ObjectMapper { | ||
| 1145 | 1149 | int64_t object_mapper; |
| 1146 | 1150 | }; |
| 1147 | 1151 | |
| 1152 | +struct ObjectReader { | |
| 1153 | + int64_t object_reader; | |
| 1154 | +}; | |
| 1155 | + | |
| 1156 | +struct ObjectWriter { | |
| 1157 | + int64_t object_writer; | |
| 1158 | +}; | |
| 1159 | + | |
| 1148 | 1160 | struct Of { |
| 1149 | 1161 | int64_t of; |
| 1150 | 1162 | }; |
| @@ -1269,18 +1281,6 @@ struct Sbyte { | ||
| 1269 | 1281 | int64_t sbyte; |
| 1270 | 1282 | }; |
| 1271 | 1283 | |
| 1272 | -struct Sealed { | |
| 1273 | - int64_t sealed; | |
| 1274 | -}; | |
| 1275 | - | |
| 1276 | -struct Sel { | |
| 1277 | - int64_t sel; | |
| 1278 | -}; | |
| 1279 | - | |
| 1280 | -struct Select { | |
| 1281 | - int64_t select; | |
| 1282 | -}; | |
| 1283 | - | |
| 1284 | 1284 | struct Obj4 { |
| 1285 | 1285 | int64_t dummy; |
| 1286 | 1286 | struct NoSuchMethod * no_such_method; |
| @@ -1293,6 +1293,7 @@ struct Obj4 { | ||
| 1293 | 1293 | struct NsString * ns_string; |
| 1294 | 1294 | struct NullClass * null; |
| 1295 | 1295 | struct NumberClass * number; |
| 1296 | + struct Noexcept * obj4_noexcept; | |
| 1296 | 1297 | struct NoneClass * obj4_none; |
| 1297 | 1298 | struct Not * obj4_not; |
| 1298 | 1299 | struct NotEq * obj4_not_eq; |
| @@ -1313,6 +1314,8 @@ struct Obj4 { | ||
| 1313 | 1314 | struct Return * obj4_return; |
| 1314 | 1315 | struct ObjectClass * object; |
| 1315 | 1316 | struct ObjectMapper * object_mapper; |
| 1317 | + struct ObjectReader * object_reader; | |
| 1318 | + struct ObjectWriter * object_writer; | |
| 1316 | 1319 | struct Of * of; |
| 1317 | 1320 | struct Oneway * oneway; |
| 1318 | 1321 | struct Open * open; |
| @@ -1344,9 +1347,6 @@ struct Obj4 { | ||
| 1344 | 1347 | struct RuntimeType * runtime_type; |
| 1345 | 1348 | struct S * s; |
| 1346 | 1349 | struct Sbyte * sbyte; |
| 1347 | - struct Sealed * sealed; | |
| 1348 | - struct Sel * sel; | |
| 1349 | - struct Select * select; | |
| 1350 | 1350 | }; |
| 1351 | 1351 | |
| 1352 | 1352 | struct SelfClass { |
| @@ -1445,14 +1445,22 @@ struct Using { | ||
| 1445 | 1445 | int64_t using_using; |
| 1446 | 1446 | }; |
| 1447 | 1447 | |
| 1448 | -struct Virtual { | |
| 1449 | - int64_t virtual_virtual; | |
| 1450 | -}; | |
| 1451 | - | |
| 1452 | 1448 | struct Obj5True { |
| 1453 | 1449 | int64_t true_true; |
| 1454 | 1450 | }; |
| 1455 | 1451 | |
| 1452 | +struct Sealed { | |
| 1453 | + int64_t sealed; | |
| 1454 | +}; | |
| 1455 | + | |
| 1456 | +struct Sel { | |
| 1457 | + int64_t sel; | |
| 1458 | +}; | |
| 1459 | + | |
| 1460 | +struct Select { | |
| 1461 | + int64_t select; | |
| 1462 | +}; | |
| 1463 | + | |
| 1456 | 1464 | struct Self { |
| 1457 | 1465 | int64_t self; |
| 1458 | 1466 | }; |
| @@ -1461,6 +1469,10 @@ struct Sendable { | ||
| 1461 | 1469 | int64_t sendable; |
| 1462 | 1470 | }; |
| 1463 | 1471 | |
| 1472 | +struct SerializationFeature { | |
| 1473 | + int64_t serialization_feature; | |
| 1474 | +}; | |
| 1475 | + | |
| 1464 | 1476 | struct Serialize { |
| 1465 | 1477 | int64_t serialize; |
| 1466 | 1478 | }; |
| @@ -1593,18 +1605,6 @@ struct Utf8JsonReader { | ||
| 1593 | 1605 | int64_t utf8_json_reader; |
| 1594 | 1606 | }; |
| 1595 | 1607 | |
| 1596 | -struct Utf8JsonWriter { | |
| 1597 | - int64_t utf8_json_writer; | |
| 1598 | -}; | |
| 1599 | - | |
| 1600 | -struct Uuid { | |
| 1601 | - int64_t uuid; | |
| 1602 | -}; | |
| 1603 | - | |
| 1604 | -struct Var { | |
| 1605 | - int64_t var; | |
| 1606 | -}; | |
| 1607 | - | |
| 1608 | 1608 | struct Obj5 { |
| 1609 | 1609 | int64_t dummy; |
| 1610 | 1610 | struct SelfClass * obj5_self; |
| @@ -1631,10 +1631,13 @@ struct Obj5 { | ||
| 1631 | 1631 | struct Union * obj5_union; |
| 1632 | 1632 | struct Unsigned * obj5_unsigned; |
| 1633 | 1633 | struct Using * obj5_using; |
| 1634 | - struct Virtual * obj5_virtual; | |
| 1635 | 1634 | struct Obj5True * purple_true; |
| 1635 | + struct Sealed * sealed; | |
| 1636 | + struct Sel * sel; | |
| 1637 | + struct Select * select; | |
| 1636 | 1638 | struct Self * self; |
| 1637 | 1639 | struct Sendable * sendable; |
| 1640 | + struct SerializationFeature * serialization_feature; | |
| 1638 | 1641 | struct Serialize * serialize; |
| 1639 | 1642 | struct SerializerProvider * serializer_provider; |
| 1640 | 1643 | struct Set * set; |
| @@ -1668,9 +1671,10 @@ struct Obj5 { | ||
| 1668 | 1671 | struct Unsafe * unsafe; |
| 1669 | 1672 | struct Ushort * ushort; |
| 1670 | 1673 | struct Utf8JsonReader * utf8_json_reader; |
| 1671 | - struct Utf8JsonWriter * utf8_json_writer; | |
| 1672 | - struct Uuid * uuid; | |
| 1673 | - struct Var * var; | |
| 1674 | +}; | |
| 1675 | + | |
| 1676 | +struct Virtual { | |
| 1677 | + int64_t virtual_virtual; | |
| 1674 | 1678 | }; |
| 1675 | 1679 | |
| 1676 | 1680 | struct Void { |
| @@ -1697,6 +1701,18 @@ struct XorEq { | ||
| 1697 | 1701 | int64_t xor_eq_xor_eq; |
| 1698 | 1702 | }; |
| 1699 | 1703 | |
| 1704 | +struct Utf8JsonWriter { | |
| 1705 | + int64_t utf8_json_writer; | |
| 1706 | +}; | |
| 1707 | + | |
| 1708 | +struct Uuid { | |
| 1709 | + int64_t uuid; | |
| 1710 | +}; | |
| 1711 | + | |
| 1712 | +struct Var { | |
| 1713 | + int64_t var; | |
| 1714 | +}; | |
| 1715 | + | |
| 1700 | 1716 | struct Weak { |
| 1701 | 1717 | int64_t weak; |
| 1702 | 1718 | }; |
| @@ -1723,12 +1739,16 @@ struct Yield { | ||
| 1723 | 1739 | |
| 1724 | 1740 | struct Obj6 { |
| 1725 | 1741 | int64_t dummy; |
| 1742 | + struct Virtual * obj6_virtual; | |
| 1726 | 1743 | struct Void * obj6_void; |
| 1727 | 1744 | struct Volatile * obj6_volatile; |
| 1728 | 1745 | struct WcharT * obj6_wchar_t; |
| 1729 | 1746 | struct While * obj6_while; |
| 1730 | 1747 | struct Xor * obj6_xor; |
| 1731 | 1748 | struct XorEq * obj6_xor_eq; |
| 1749 | + struct Utf8JsonWriter * utf8_json_writer; | |
| 1750 | + struct Uuid * uuid; | |
| 1751 | + struct Var * var; | |
| 1732 | 1752 | struct Weak * weak; |
| 1733 | 1753 | struct Where * where; |
| 1734 | 1754 | struct WillSet * will_set; |
| @@ -2242,6 +2262,12 @@ cJSON * cJSON_CreateDelegate(const struct Delegate * x); | ||
| 2242 | 2262 | char * cJSON_PrintDelegate(const struct Delegate * x); |
| 2243 | 2263 | void cJSON_DeleteDelegate(struct Delegate * x); |
| 2244 | 2264 | |
| 2265 | +struct DeserializationFeature * cJSON_ParseDeserializationFeature(const char * s); | |
| 2266 | +struct DeserializationFeature * cJSON_GetDeserializationFeatureValue(const cJSON * j); | |
| 2267 | +cJSON * cJSON_CreateDeserializationFeature(const struct DeserializationFeature * x); | |
| 2268 | +char * cJSON_PrintDeserializationFeature(const struct DeserializationFeature * x); | |
| 2269 | +void cJSON_DeleteDeserializationFeature(struct DeserializationFeature * x); | |
| 2270 | + | |
| 2245 | 2271 | struct Dict * cJSON_ParseDict(const char * s); |
| 2246 | 2272 | struct Dict * cJSON_GetDictValue(const cJSON * j); |
| 2247 | 2273 | cJSON * cJSON_CreateDict(const struct Dict * x); |
| @@ -2512,12 +2538,6 @@ cJSON * cJSON_CreateFriend(const struct Friend * x); | ||
| 2512 | 2538 | char * cJSON_PrintFriend(const struct Friend * x); |
| 2513 | 2539 | void cJSON_DeleteFriend(struct Friend * x); |
| 2514 | 2540 | |
| 2515 | -struct Goto * cJSON_ParseGoto(const char * s); | |
| 2516 | -struct Goto * cJSON_GetGotoValue(const cJSON * j); | |
| 2517 | -cJSON * cJSON_CreateGoto(const struct Goto * x); | |
| 2518 | -char * cJSON_PrintGoto(const struct Goto * x); | |
| 2519 | -void cJSON_DeleteGoto(struct Goto * x); | |
| 2520 | - | |
| 2521 | 2541 | struct Obj2False * cJSON_ParseObj2False(const char * s); |
| 2522 | 2542 | struct Obj2False * cJSON_GetObj2FalseValue(const cJSON * j); |
| 2523 | 2543 | cJSON * cJSON_CreateObj2False(const struct Obj2False * x); |
| @@ -2854,6 +2874,12 @@ cJSON * cJSON_CreateNo(const struct No * x); | ||
| 2854 | 2874 | char * cJSON_PrintNo(const struct No * x); |
| 2855 | 2875 | void cJSON_DeleteNo(struct No * x); |
| 2856 | 2876 | |
| 2877 | +struct Goto * cJSON_ParseGoto(const char * s); | |
| 2878 | +struct Goto * cJSON_GetGotoValue(const cJSON * j); | |
| 2879 | +cJSON * cJSON_CreateGoto(const struct Goto * x); | |
| 2880 | +char * cJSON_PrintGoto(const struct Goto * x); | |
| 2881 | +void cJSON_DeleteGoto(struct Goto * x); | |
| 2882 | + | |
| 2857 | 2883 | struct If * cJSON_ParseIf(const char * s); |
| 2858 | 2884 | struct If * cJSON_GetIfValue(const cJSON * j); |
| 2859 | 2885 | cJSON * cJSON_CreateIf(const struct If * x); |
| @@ -2908,12 +2934,6 @@ cJSON * cJSON_CreateNew(const struct New * x); | ||
| 2908 | 2934 | char * cJSON_PrintNew(const struct New * x); |
| 2909 | 2935 | void cJSON_DeleteNew(struct New * x); |
| 2910 | 2936 | |
| 2911 | -struct Noexcept * cJSON_ParseNoexcept(const char * s); | |
| 2912 | -struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j); | |
| 2913 | -cJSON * cJSON_CreateNoexcept(const struct Noexcept * x); | |
| 2914 | -char * cJSON_PrintNoexcept(const struct Noexcept * x); | |
| 2915 | -void cJSON_DeleteNoexcept(struct Noexcept * x); | |
| 2916 | - | |
| 2917 | 2937 | struct Obj3 * cJSON_ParseObj3(const char * s); |
| 2918 | 2938 | struct Obj3 * cJSON_GetObj3Value(const cJSON * j); |
| 2919 | 2939 | cJSON * cJSON_CreateObj3(const struct Obj3 * x); |
| @@ -2980,6 +3000,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x); | ||
| 2980 | 3000 | char * cJSON_PrintNumberClass(const struct NumberClass * x); |
| 2981 | 3001 | void cJSON_DeleteNumberClass(struct NumberClass * x); |
| 2982 | 3002 | |
| 3003 | +struct Noexcept * cJSON_ParseNoexcept(const char * s); | |
| 3004 | +struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j); | |
| 3005 | +cJSON * cJSON_CreateNoexcept(const struct Noexcept * x); | |
| 3006 | +char * cJSON_PrintNoexcept(const struct Noexcept * x); | |
| 3007 | +void cJSON_DeleteNoexcept(struct Noexcept * x); | |
| 3008 | + | |
| 2983 | 3009 | struct NoneClass * cJSON_ParseNoneClass(const char * s); |
| 2984 | 3010 | struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j); |
| 2985 | 3011 | cJSON * cJSON_CreateNoneClass(const struct NoneClass * x); |
| @@ -3100,6 +3126,18 @@ cJSON * cJSON_CreateObjectMapper(const struct ObjectMapper * x); | ||
| 3100 | 3126 | char * cJSON_PrintObjectMapper(const struct ObjectMapper * x); |
| 3101 | 3127 | void cJSON_DeleteObjectMapper(struct ObjectMapper * x); |
| 3102 | 3128 | |
| 3129 | +struct ObjectReader * cJSON_ParseObjectReader(const char * s); | |
| 3130 | +struct ObjectReader * cJSON_GetObjectReaderValue(const cJSON * j); | |
| 3131 | +cJSON * cJSON_CreateObjectReader(const struct ObjectReader * x); | |
| 3132 | +char * cJSON_PrintObjectReader(const struct ObjectReader * x); | |
| 3133 | +void cJSON_DeleteObjectReader(struct ObjectReader * x); | |
| 3134 | + | |
| 3135 | +struct ObjectWriter * cJSON_ParseObjectWriter(const char * s); | |
| 3136 | +struct ObjectWriter * cJSON_GetObjectWriterValue(const cJSON * j); | |
| 3137 | +cJSON * cJSON_CreateObjectWriter(const struct ObjectWriter * x); | |
| 3138 | +char * cJSON_PrintObjectWriter(const struct ObjectWriter * x); | |
| 3139 | +void cJSON_DeleteObjectWriter(struct ObjectWriter * x); | |
| 3140 | + | |
| 3103 | 3141 | struct Of * cJSON_ParseOf(const char * s); |
| 3104 | 3142 | struct Of * cJSON_GetOfValue(const cJSON * j); |
| 3105 | 3143 | cJSON * cJSON_CreateOf(const struct Of * x); |
| @@ -3286,24 +3324,6 @@ cJSON * cJSON_CreateSbyte(const struct Sbyte * x); | ||
| 3286 | 3324 | char * cJSON_PrintSbyte(const struct Sbyte * x); |
| 3287 | 3325 | void cJSON_DeleteSbyte(struct Sbyte * x); |
| 3288 | 3326 | |
| 3289 | -struct Sealed * cJSON_ParseSealed(const char * s); | |
| 3290 | -struct Sealed * cJSON_GetSealedValue(const cJSON * j); | |
| 3291 | -cJSON * cJSON_CreateSealed(const struct Sealed * x); | |
| 3292 | -char * cJSON_PrintSealed(const struct Sealed * x); | |
| 3293 | -void cJSON_DeleteSealed(struct Sealed * x); | |
| 3294 | - | |
| 3295 | -struct Sel * cJSON_ParseSel(const char * s); | |
| 3296 | -struct Sel * cJSON_GetSelValue(const cJSON * j); | |
| 3297 | -cJSON * cJSON_CreateSel(const struct Sel * x); | |
| 3298 | -char * cJSON_PrintSel(const struct Sel * x); | |
| 3299 | -void cJSON_DeleteSel(struct Sel * x); | |
| 3300 | - | |
| 3301 | -struct Select * cJSON_ParseSelect(const char * s); | |
| 3302 | -struct Select * cJSON_GetSelectValue(const cJSON * j); | |
| 3303 | -cJSON * cJSON_CreateSelect(const struct Select * x); | |
| 3304 | -char * cJSON_PrintSelect(const struct Select * x); | |
| 3305 | -void cJSON_DeleteSelect(struct Select * x); | |
| 3306 | - | |
| 3307 | 3327 | struct Obj4 * cJSON_ParseObj4(const char * s); |
| 3308 | 3328 | struct Obj4 * cJSON_GetObj4Value(const cJSON * j); |
| 3309 | 3329 | cJSON * cJSON_CreateObj4(const struct Obj4 * x); |
| @@ -3454,18 +3474,30 @@ cJSON * cJSON_CreateUsing(const struct Using * x); | ||
| 3454 | 3474 | char * cJSON_PrintUsing(const struct Using * x); |
| 3455 | 3475 | void cJSON_DeleteUsing(struct Using * x); |
| 3456 | 3476 | |
| 3457 | -struct Virtual * cJSON_ParseVirtual(const char * s); | |
| 3458 | -struct Virtual * cJSON_GetVirtualValue(const cJSON * j); | |
| 3459 | -cJSON * cJSON_CreateVirtual(const struct Virtual * x); | |
| 3460 | -char * cJSON_PrintVirtual(const struct Virtual * x); | |
| 3461 | -void cJSON_DeleteVirtual(struct Virtual * x); | |
| 3462 | - | |
| 3463 | 3477 | struct Obj5True * cJSON_ParseObj5True(const char * s); |
| 3464 | 3478 | struct Obj5True * cJSON_GetObj5TrueValue(const cJSON * j); |
| 3465 | 3479 | cJSON * cJSON_CreateObj5True(const struct Obj5True * x); |
| 3466 | 3480 | char * cJSON_PrintObj5True(const struct Obj5True * x); |
| 3467 | 3481 | void cJSON_DeleteObj5True(struct Obj5True * x); |
| 3468 | 3482 | |
| 3483 | +struct Sealed * cJSON_ParseSealed(const char * s); | |
| 3484 | +struct Sealed * cJSON_GetSealedValue(const cJSON * j); | |
| 3485 | +cJSON * cJSON_CreateSealed(const struct Sealed * x); | |
| 3486 | +char * cJSON_PrintSealed(const struct Sealed * x); | |
| 3487 | +void cJSON_DeleteSealed(struct Sealed * x); | |
| 3488 | + | |
| 3489 | +struct Sel * cJSON_ParseSel(const char * s); | |
| 3490 | +struct Sel * cJSON_GetSelValue(const cJSON * j); | |
| 3491 | +cJSON * cJSON_CreateSel(const struct Sel * x); | |
| 3492 | +char * cJSON_PrintSel(const struct Sel * x); | |
| 3493 | +void cJSON_DeleteSel(struct Sel * x); | |
| 3494 | + | |
| 3495 | +struct Select * cJSON_ParseSelect(const char * s); | |
| 3496 | +struct Select * cJSON_GetSelectValue(const cJSON * j); | |
| 3497 | +cJSON * cJSON_CreateSelect(const struct Select * x); | |
| 3498 | +char * cJSON_PrintSelect(const struct Select * x); | |
| 3499 | +void cJSON_DeleteSelect(struct Select * x); | |
| 3500 | + | |
| 3469 | 3501 | struct Self * cJSON_ParseSelf(const char * s); |
| 3470 | 3502 | struct Self * cJSON_GetSelfValue(const cJSON * j); |
| 3471 | 3503 | cJSON * cJSON_CreateSelf(const struct Self * x); |
| @@ -3478,6 +3510,12 @@ cJSON * cJSON_CreateSendable(const struct Sendable * x); | ||
| 3478 | 3510 | char * cJSON_PrintSendable(const struct Sendable * x); |
| 3479 | 3511 | void cJSON_DeleteSendable(struct Sendable * x); |
| 3480 | 3512 | |
| 3513 | +struct SerializationFeature * cJSON_ParseSerializationFeature(const char * s); | |
| 3514 | +struct SerializationFeature * cJSON_GetSerializationFeatureValue(const cJSON * j); | |
| 3515 | +cJSON * cJSON_CreateSerializationFeature(const struct SerializationFeature * x); | |
| 3516 | +char * cJSON_PrintSerializationFeature(const struct SerializationFeature * x); | |
| 3517 | +void cJSON_DeleteSerializationFeature(struct SerializationFeature * x); | |
| 3518 | + | |
| 3481 | 3519 | struct Serialize * cJSON_ParseSerialize(const char * s); |
| 3482 | 3520 | struct Serialize * cJSON_GetSerializeValue(const cJSON * j); |
| 3483 | 3521 | cJSON * cJSON_CreateSerialize(const struct Serialize * x); |
| @@ -3676,30 +3714,18 @@ cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x); | ||
| 3676 | 3714 | char * cJSON_PrintUtf8JsonReader(const struct Utf8JsonReader * x); |
| 3677 | 3715 | void cJSON_DeleteUtf8JsonReader(struct Utf8JsonReader * x); |
| 3678 | 3716 | |
| 3679 | -struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s); | |
| 3680 | -struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j); | |
| 3681 | -cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x); | |
| 3682 | -char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x); | |
| 3683 | -void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x); | |
| 3684 | - | |
| 3685 | -struct Uuid * cJSON_ParseUuid(const char * s); | |
| 3686 | -struct Uuid * cJSON_GetUuidValue(const cJSON * j); | |
| 3687 | -cJSON * cJSON_CreateUuid(const struct Uuid * x); | |
| 3688 | -char * cJSON_PrintUuid(const struct Uuid * x); | |
| 3689 | -void cJSON_DeleteUuid(struct Uuid * x); | |
| 3690 | - | |
| 3691 | -struct Var * cJSON_ParseVar(const char * s); | |
| 3692 | -struct Var * cJSON_GetVarValue(const cJSON * j); | |
| 3693 | -cJSON * cJSON_CreateVar(const struct Var * x); | |
| 3694 | -char * cJSON_PrintVar(const struct Var * x); | |
| 3695 | -void cJSON_DeleteVar(struct Var * x); | |
| 3696 | - | |
| 3697 | 3717 | struct Obj5 * cJSON_ParseObj5(const char * s); |
| 3698 | 3718 | struct Obj5 * cJSON_GetObj5Value(const cJSON * j); |
| 3699 | 3719 | cJSON * cJSON_CreateObj5(const struct Obj5 * x); |
| 3700 | 3720 | char * cJSON_PrintObj5(const struct Obj5 * x); |
| 3701 | 3721 | void cJSON_DeleteObj5(struct Obj5 * x); |
| 3702 | 3722 | |
| 3723 | +struct Virtual * cJSON_ParseVirtual(const char * s); | |
| 3724 | +struct Virtual * cJSON_GetVirtualValue(const cJSON * j); | |
| 3725 | +cJSON * cJSON_CreateVirtual(const struct Virtual * x); | |
| 3726 | +char * cJSON_PrintVirtual(const struct Virtual * x); | |
| 3727 | +void cJSON_DeleteVirtual(struct Virtual * x); | |
| 3728 | + | |
| 3703 | 3729 | struct Void * cJSON_ParseVoid(const char * s); |
| 3704 | 3730 | struct Void * cJSON_GetVoidValue(const cJSON * j); |
| 3705 | 3731 | cJSON * cJSON_CreateVoid(const struct Void * x); |
| @@ -3736,6 +3762,24 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x); | ||
| 3736 | 3762 | char * cJSON_PrintXorEq(const struct XorEq * x); |
| 3737 | 3763 | void cJSON_DeleteXorEq(struct XorEq * x); |
| 3738 | 3764 | |
| 3765 | +struct Utf8JsonWriter * cJSON_ParseUtf8JsonWriter(const char * s); | |
| 3766 | +struct Utf8JsonWriter * cJSON_GetUtf8JsonWriterValue(const cJSON * j); | |
| 3767 | +cJSON * cJSON_CreateUtf8JsonWriter(const struct Utf8JsonWriter * x); | |
| 3768 | +char * cJSON_PrintUtf8JsonWriter(const struct Utf8JsonWriter * x); | |
| 3769 | +void cJSON_DeleteUtf8JsonWriter(struct Utf8JsonWriter * x); | |
| 3770 | + | |
| 3771 | +struct Uuid * cJSON_ParseUuid(const char * s); | |
| 3772 | +struct Uuid * cJSON_GetUuidValue(const cJSON * j); | |
| 3773 | +cJSON * cJSON_CreateUuid(const struct Uuid * x); | |
| 3774 | +char * cJSON_PrintUuid(const struct Uuid * x); | |
| 3775 | +void cJSON_DeleteUuid(struct Uuid * x); | |
| 3776 | + | |
| 3777 | +struct Var * cJSON_ParseVar(const char * s); | |
| 3778 | +struct Var * cJSON_GetVarValue(const cJSON * j); | |
| 3779 | +cJSON * cJSON_CreateVar(const struct Var * x); | |
| 3780 | +char * cJSON_PrintVar(const struct Var * x); | |
| 3781 | +void cJSON_DeleteVar(struct Var * x); | |
| 3782 | + | |
| 3739 | 3783 | struct Weak * cJSON_ParseWeak(const char * s); |
| 3740 | 3784 | struct Weak * cJSON_GetWeakValue(const cJSON * j); |
| 3741 | 3785 | cJSON * cJSON_CreateWeak(const struct Weak * x); |
Mcplusplusdefault / quicktype.hpp+454 −314
| @@ -1499,6 +1499,20 @@ namespace quicktype { | ||
| 1499 | 1499 | void set_delegate(const int64_t & value) { this->delegate = value; } |
| 1500 | 1500 | }; |
| 1501 | 1501 | |
| 1502 | + class DeserializationFeature { | |
| 1503 | + public: | |
| 1504 | + DeserializationFeature() = default; | |
| 1505 | + virtual ~DeserializationFeature() = default; | |
| 1506 | + | |
| 1507 | + private: | |
| 1508 | + int64_t deserialization_feature; | |
| 1509 | + | |
| 1510 | + public: | |
| 1511 | + const int64_t & get_deserialization_feature() const { return deserialization_feature; } | |
| 1512 | + int64_t & get_mutable_deserialization_feature() { return deserialization_feature; } | |
| 1513 | + void set_deserialization_feature(const int64_t & value) { this->deserialization_feature = value; } | |
| 1514 | + }; | |
| 1515 | + | |
| 1502 | 1516 | class Dict { |
| 1503 | 1517 | public: |
| 1504 | 1518 | Dict() = default; |
| @@ -2131,20 +2145,6 @@ namespace quicktype { | ||
| 2131 | 2145 | void set_friend_friend(const int64_t & value) { this->friend_friend = value; } |
| 2132 | 2146 | }; |
| 2133 | 2147 | |
| 2134 | - class Goto { | |
| 2135 | - public: | |
| 2136 | - Goto() = default; | |
| 2137 | - virtual ~Goto() = default; | |
| 2138 | - | |
| 2139 | - private: | |
| 2140 | - int64_t goto_goto; | |
| 2141 | - | |
| 2142 | - public: | |
| 2143 | - const int64_t & get_goto_goto() const { return goto_goto; } | |
| 2144 | - int64_t & get_mutable_goto_goto() { return goto_goto; } | |
| 2145 | - void set_goto_goto(const int64_t & value) { this->goto_goto = value; } | |
| 2146 | - }; | |
| 2147 | - | |
| 2148 | 2148 | class FalseClass { |
| 2149 | 2149 | public: |
| 2150 | 2150 | FalseClass() = default; |
| @@ -2182,6 +2182,7 @@ namespace quicktype { | ||
| 2182 | 2182 | Deinit deinit; |
| 2183 | 2183 | Del del; |
| 2184 | 2184 | Delegate delegate; |
| 2185 | + DeserializationFeature deserialization_feature; | |
| 2185 | 2186 | Dict dict; |
| 2186 | 2187 | Dictionary dictionary; |
| 2187 | 2188 | DidSet did_set; |
| @@ -2228,7 +2229,6 @@ namespace quicktype { | ||
| 2228 | 2229 | Float obj2_float; |
| 2229 | 2230 | For obj2_for; |
| 2230 | 2231 | Friend obj2_friend; |
| 2231 | - Goto obj2_goto; | |
| 2232 | 2232 | FalseClass purple_false; |
| 2233 | 2233 | |
| 2234 | 2234 | public: |
| @@ -2300,6 +2300,10 @@ namespace quicktype { | ||
| 2300 | 2300 | Delegate & get_mutable_delegate() { return delegate; } |
| 2301 | 2301 | void set_delegate(const Delegate & value) { this->delegate = value; } |
| 2302 | 2302 | |
| 2303 | + const DeserializationFeature & get_deserialization_feature() const { return deserialization_feature; } | |
| 2304 | + DeserializationFeature & get_mutable_deserialization_feature() { return deserialization_feature; } | |
| 2305 | + void set_deserialization_feature(const DeserializationFeature & value) { this->deserialization_feature = value; } | |
| 2306 | + | |
| 2303 | 2307 | const Dict & get_dict() const { return dict; } |
| 2304 | 2308 | Dict & get_mutable_dict() { return dict; } |
| 2305 | 2309 | void set_dict(const Dict & value) { this->dict = value; } |
| @@ -2484,10 +2488,6 @@ namespace quicktype { | ||
| 2484 | 2488 | Friend & get_mutable_obj2_friend() { return obj2_friend; } |
| 2485 | 2489 | void set_obj2_friend(const Friend & value) { this->obj2_friend = value; } |
| 2486 | 2490 | |
| 2487 | - const Goto & get_obj2_goto() const { return obj2_goto; } | |
| 2488 | - Goto & get_mutable_obj2_goto() { return obj2_goto; } | |
| 2489 | - void set_obj2_goto(const Goto & value) { this->obj2_goto = value; } | |
| 2490 | - | |
| 2491 | 2491 | const FalseClass & get_purple_false() const { return purple_false; } |
| 2492 | 2492 | FalseClass & get_mutable_purple_false() { return purple_false; } |
| 2493 | 2493 | void set_purple_false(const FalseClass & value) { this->purple_false = value; } |
| @@ -3249,6 +3249,20 @@ namespace quicktype { | ||
| 3249 | 3249 | void set_no(const int64_t & value) { this->no = value; } |
| 3250 | 3250 | }; |
| 3251 | 3251 | |
| 3252 | + class Goto { | |
| 3253 | + public: | |
| 3254 | + Goto() = default; | |
| 3255 | + virtual ~Goto() = default; | |
| 3256 | + | |
| 3257 | + private: | |
| 3258 | + int64_t goto_goto; | |
| 3259 | + | |
| 3260 | + public: | |
| 3261 | + const int64_t & get_goto_goto() const { return goto_goto; } | |
| 3262 | + int64_t & get_mutable_goto_goto() { return goto_goto; } | |
| 3263 | + void set_goto_goto(const int64_t & value) { this->goto_goto = value; } | |
| 3264 | + }; | |
| 3265 | + | |
| 3252 | 3266 | class If { |
| 3253 | 3267 | public: |
| 3254 | 3268 | If() = default; |
| @@ -3375,20 +3389,6 @@ namespace quicktype { | ||
| 3375 | 3389 | void set_new_new(const int64_t & value) { this->new_new = value; } |
| 3376 | 3390 | }; |
| 3377 | 3391 | |
| 3378 | - class Noexcept { | |
| 3379 | - public: | |
| 3380 | - Noexcept() = default; | |
| 3381 | - virtual ~Noexcept() = default; | |
| 3382 | - | |
| 3383 | - private: | |
| 3384 | - int64_t noexcept_noexcept; | |
| 3385 | - | |
| 3386 | - public: | |
| 3387 | - const int64_t & get_noexcept_noexcept() const { return noexcept_noexcept; } | |
| 3388 | - int64_t & get_mutable_noexcept_noexcept() { return noexcept_noexcept; } | |
| 3389 | - void set_noexcept_noexcept(const int64_t & value) { this->noexcept_noexcept = value; } | |
| 3390 | - }; | |
| 3391 | - | |
| 3392 | 3392 | class Obj3 { |
| 3393 | 3393 | public: |
| 3394 | 3394 | Obj3() = default; |
| @@ -3450,6 +3450,7 @@ namespace quicktype { | ||
| 3450 | 3450 | Newtonsoft newtonsoft; |
| 3451 | 3451 | Nil nil; |
| 3452 | 3452 | No no; |
| 3453 | + Goto obj3_goto; | |
| 3453 | 3454 | If obj3_if; |
| 3454 | 3455 | Import obj3_import; |
| 3455 | 3456 | Inline obj3_inline; |
| @@ -3459,7 +3460,6 @@ namespace quicktype { | ||
| 3459 | 3460 | Mutable obj3_mutable; |
| 3460 | 3461 | Namespace obj3_namespace; |
| 3461 | 3462 | New obj3_new; |
| 3462 | - Noexcept obj3_noexcept; | |
| 3463 | 3463 | |
| 3464 | 3464 | public: |
| 3465 | 3465 | const int64_t & get_dummy() const { return dummy; } |
| @@ -3682,6 +3682,10 @@ namespace quicktype { | ||
| 3682 | 3682 | No & get_mutable_no() { return no; } |
| 3683 | 3683 | void set_no(const No & value) { this->no = value; } |
| 3684 | 3684 | |
| 3685 | + const Goto & get_obj3_goto() const { return obj3_goto; } | |
| 3686 | + Goto & get_mutable_obj3_goto() { return obj3_goto; } | |
| 3687 | + void set_obj3_goto(const Goto & value) { this->obj3_goto = value; } | |
| 3688 | + | |
| 3685 | 3689 | const If & get_obj3_if() const { return obj3_if; } |
| 3686 | 3690 | If & get_mutable_obj3_if() { return obj3_if; } |
| 3687 | 3691 | void set_obj3_if(const If & value) { this->obj3_if = value; } |
| @@ -3717,10 +3721,6 @@ namespace quicktype { | ||
| 3717 | 3721 | const New & get_obj3_new() const { return obj3_new; } |
| 3718 | 3722 | New & get_mutable_obj3_new() { return obj3_new; } |
| 3719 | 3723 | void set_obj3_new(const New & value) { this->obj3_new = value; } |
| 3720 | - | |
| 3721 | - const Noexcept & get_obj3_noexcept() const { return obj3_noexcept; } | |
| 3722 | - Noexcept & get_mutable_obj3_noexcept() { return obj3_noexcept; } | |
| 3723 | - void set_obj3_noexcept(const Noexcept & value) { this->obj3_noexcept = value; } | |
| 3724 | 3724 | }; |
| 3725 | 3725 | |
| 3726 | 3726 | class NoSuchMethod { |
| @@ -3863,6 +3863,20 @@ namespace quicktype { | ||
| 3863 | 3863 | void set_number(const int64_t & value) { this->number = value; } |
| 3864 | 3864 | }; |
| 3865 | 3865 | |
| 3866 | + class Noexcept { | |
| 3867 | + public: | |
| 3868 | + Noexcept() = default; | |
| 3869 | + virtual ~Noexcept() = default; | |
| 3870 | + | |
| 3871 | + private: | |
| 3872 | + int64_t noexcept_noexcept; | |
| 3873 | + | |
| 3874 | + public: | |
| 3875 | + const int64_t & get_noexcept_noexcept() const { return noexcept_noexcept; } | |
| 3876 | + int64_t & get_mutable_noexcept_noexcept() { return noexcept_noexcept; } | |
| 3877 | + void set_noexcept_noexcept(const int64_t & value) { this->noexcept_noexcept = value; } | |
| 3878 | + }; | |
| 3879 | + | |
| 3866 | 3880 | class NoneClass { |
| 3867 | 3881 | public: |
| 3868 | 3882 | NoneClass() = default; |
| @@ -4129,6 +4143,34 @@ namespace quicktype { | ||
| 4129 | 4143 | void set_object_mapper(const int64_t & value) { this->object_mapper = value; } |
| 4130 | 4144 | }; |
| 4131 | 4145 | |
| 4146 | + class ObjectReader { | |
| 4147 | + public: | |
| 4148 | + ObjectReader() = default; | |
| 4149 | + virtual ~ObjectReader() = default; | |
| 4150 | + | |
| 4151 | + private: | |
| 4152 | + int64_t object_reader; | |
| 4153 | + | |
| 4154 | + public: | |
| 4155 | + const int64_t & get_object_reader() const { return object_reader; } | |
| 4156 | + int64_t & get_mutable_object_reader() { return object_reader; } | |
| 4157 | + void set_object_reader(const int64_t & value) { this->object_reader = value; } | |
| 4158 | + }; | |
| 4159 | + | |
| 4160 | + class ObjectWriter { | |
| 4161 | + public: | |
| 4162 | + ObjectWriter() = default; | |
| 4163 | + virtual ~ObjectWriter() = default; | |
| 4164 | + | |
| 4165 | + private: | |
| 4166 | + int64_t object_writer; | |
| 4167 | + | |
| 4168 | + public: | |
| 4169 | + const int64_t & get_object_writer() const { return object_writer; } | |
| 4170 | + int64_t & get_mutable_object_writer() { return object_writer; } | |
| 4171 | + void set_object_writer(const int64_t & value) { this->object_writer = value; } | |
| 4172 | + }; | |
| 4173 | + | |
| 4132 | 4174 | class Of { |
| 4133 | 4175 | public: |
| 4134 | 4176 | Of() = default; |
| @@ -4577,48 +4619,6 @@ namespace quicktype { | ||
| 4577 | 4619 | void set_sbyte(const int64_t & value) { this->sbyte = value; } |
| 4578 | 4620 | }; |
| 4579 | 4621 | |
| 4580 | - class Sealed { | |
| 4581 | - public: | |
| 4582 | - Sealed() = default; | |
| 4583 | - virtual ~Sealed() = default; | |
| 4584 | - | |
| 4585 | - private: | |
| 4586 | - int64_t sealed; | |
| 4587 | - | |
| 4588 | - public: | |
| 4589 | - const int64_t & get_sealed() const { return sealed; } | |
| 4590 | - int64_t & get_mutable_sealed() { return sealed; } | |
| 4591 | - void set_sealed(const int64_t & value) { this->sealed = value; } | |
| 4592 | - }; | |
| 4593 | - | |
| 4594 | - class Sel { | |
| 4595 | - public: | |
| 4596 | - Sel() = default; | |
| 4597 | - virtual ~Sel() = default; | |
| 4598 | - | |
| 4599 | - private: | |
| 4600 | - int64_t sel; | |
| 4601 | - | |
| 4602 | - public: | |
| 4603 | - const int64_t & get_sel() const { return sel; } | |
| 4604 | - int64_t & get_mutable_sel() { return sel; } | |
| 4605 | - void set_sel(const int64_t & value) { this->sel = value; } | |
| 4606 | - }; | |
| 4607 | - | |
| 4608 | - class Select { | |
| 4609 | - public: | |
| 4610 | - Select() = default; | |
| 4611 | - virtual ~Select() = default; | |
| 4612 | - | |
| 4613 | - private: | |
| 4614 | - int64_t select; | |
| 4615 | - | |
| 4616 | - public: | |
| 4617 | - const int64_t & get_select() const { return select; } | |
| 4618 | - int64_t & get_mutable_select() { return select; } | |
| 4619 | - void set_select(const int64_t & value) { this->select = value; } | |
| 4620 | - }; | |
| 4621 | - | |
| 4622 | 4622 | class Obj4 { |
| 4623 | 4623 | public: |
| 4624 | 4624 | Obj4() = default; |
| @@ -4636,6 +4636,7 @@ namespace quicktype { | ||
| 4636 | 4636 | NsString ns_string; |
| 4637 | 4637 | Null null; |
| 4638 | 4638 | Number number; |
| 4639 | + Noexcept obj4_noexcept; | |
| 4639 | 4640 | NoneClass obj4_none; |
| 4640 | 4641 | Not obj4_not; |
| 4641 | 4642 | NotEq obj4_not_eq; |
| @@ -4655,6 +4656,8 @@ namespace quicktype { | ||
| 4655 | 4656 | Return obj4_return; |
| 4656 | 4657 | Object object; |
| 4657 | 4658 | ObjectMapper object_mapper; |
| 4659 | + ObjectReader object_reader; | |
| 4660 | + ObjectWriter object_writer; | |
| 4658 | 4661 | Of of; |
| 4659 | 4662 | Oneway oneway; |
| 4660 | 4663 | Open open; |
| @@ -4687,9 +4690,6 @@ namespace quicktype { | ||
| 4687 | 4690 | RuntimeType runtime_type; |
| 4688 | 4691 | S s; |
| 4689 | 4692 | Sbyte sbyte; |
| 4690 | - Sealed sealed; | |
| 4691 | - Sel sel; | |
| 4692 | - Select select; | |
| 4693 | 4693 | |
| 4694 | 4694 | public: |
| 4695 | 4695 | const int64_t & get_dummy() const { return dummy; } |
| @@ -4736,6 +4736,10 @@ namespace quicktype { | ||
| 4736 | 4736 | Number & get_mutable_number() { return number; } |
| 4737 | 4737 | void set_number(const Number & value) { this->number = value; } |
| 4738 | 4738 | |
| 4739 | + const Noexcept & get_obj4_noexcept() const { return obj4_noexcept; } | |
| 4740 | + Noexcept & get_mutable_obj4_noexcept() { return obj4_noexcept; } | |
| 4741 | + void set_obj4_noexcept(const Noexcept & value) { this->obj4_noexcept = value; } | |
| 4742 | + | |
| 4739 | 4743 | const NoneClass & get_obj4_none() const { return obj4_none; } |
| 4740 | 4744 | NoneClass & get_mutable_obj4_none() { return obj4_none; } |
| 4741 | 4745 | void set_obj4_none(const NoneClass & value) { this->obj4_none = value; } |
| @@ -4812,6 +4816,14 @@ namespace quicktype { | ||
| 4812 | 4816 | ObjectMapper & get_mutable_object_mapper() { return object_mapper; } |
| 4813 | 4817 | void set_object_mapper(const ObjectMapper & value) { this->object_mapper = value; } |
| 4814 | 4818 | |
| 4819 | + const ObjectReader & get_object_reader() const { return object_reader; } | |
| 4820 | + ObjectReader & get_mutable_object_reader() { return object_reader; } | |
| 4821 | + void set_object_reader(const ObjectReader & value) { this->object_reader = value; } | |
| 4822 | + | |
| 4823 | + const ObjectWriter & get_object_writer() const { return object_writer; } | |
| 4824 | + ObjectWriter & get_mutable_object_writer() { return object_writer; } | |
| 4825 | + void set_object_writer(const ObjectWriter & value) { this->object_writer = value; } | |
| 4826 | + | |
| 4815 | 4827 | const Of & get_of() const { return of; } |
| 4816 | 4828 | Of & get_mutable_of() { return of; } |
| 4817 | 4829 | void set_of(const Of & value) { this->of = value; } |
| @@ -4939,18 +4951,6 @@ namespace quicktype { | ||
| 4939 | 4951 | const Sbyte & get_sbyte() const { return sbyte; } |
| 4940 | 4952 | Sbyte & get_mutable_sbyte() { return sbyte; } |
| 4941 | 4953 | void set_sbyte(const Sbyte & value) { this->sbyte = value; } |
| 4942 | - | |
| 4943 | - const Sealed & get_sealed() const { return sealed; } | |
| 4944 | - Sealed & get_mutable_sealed() { return sealed; } | |
| 4945 | - void set_sealed(const Sealed & value) { this->sealed = value; } | |
| 4946 | - | |
| 4947 | - const Sel & get_sel() const { return sel; } | |
| 4948 | - Sel & get_mutable_sel() { return sel; } | |
| 4949 | - void set_sel(const Sel & value) { this->sel = value; } | |
| 4950 | - | |
| 4951 | - const Select & get_select() const { return select; } | |
| 4952 | - Select & get_mutable_select() { return select; } | |
| 4953 | - void set_select(const Select & value) { this->select = value; } | |
| 4954 | 4954 | }; |
| 4955 | 4955 | |
| 4956 | 4956 | class SelfClass { |
| @@ -5275,20 +5275,6 @@ namespace quicktype { | ||
| 5275 | 5275 | void set_using_using(const int64_t & value) { this->using_using = value; } |
| 5276 | 5276 | }; |
| 5277 | 5277 | |
| 5278 | - class Virtual { | |
| 5279 | - public: | |
| 5280 | - Virtual() = default; | |
| 5281 | - virtual ~Virtual() = default; | |
| 5282 | - | |
| 5283 | - private: | |
| 5284 | - int64_t virtual_virtual; | |
| 5285 | - | |
| 5286 | - public: | |
| 5287 | - const int64_t & get_virtual_virtual() const { return virtual_virtual; } | |
| 5288 | - int64_t & get_mutable_virtual_virtual() { return virtual_virtual; } | |
| 5289 | - void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; } | |
| 5290 | - }; | |
| 5291 | - | |
| 5292 | 5278 | class TrueClass { |
| 5293 | 5279 | public: |
| 5294 | 5280 | TrueClass() = default; |
| @@ -5303,6 +5289,48 @@ namespace quicktype { | ||
| 5303 | 5289 | void set_true_true(const int64_t & value) { this->true_true = value; } |
| 5304 | 5290 | }; |
| 5305 | 5291 | |
| 5292 | + class Sealed { | |
| 5293 | + public: | |
| 5294 | + Sealed() = default; | |
| 5295 | + virtual ~Sealed() = default; | |
| 5296 | + | |
| 5297 | + private: | |
| 5298 | + int64_t sealed; | |
| 5299 | + | |
| 5300 | + public: | |
| 5301 | + const int64_t & get_sealed() const { return sealed; } | |
| 5302 | + int64_t & get_mutable_sealed() { return sealed; } | |
| 5303 | + void set_sealed(const int64_t & value) { this->sealed = value; } | |
| 5304 | + }; | |
| 5305 | + | |
| 5306 | + class Sel { | |
| 5307 | + public: | |
| 5308 | + Sel() = default; | |
| 5309 | + virtual ~Sel() = default; | |
| 5310 | + | |
| 5311 | + private: | |
| 5312 | + int64_t sel; | |
| 5313 | + | |
| 5314 | + public: | |
| 5315 | + const int64_t & get_sel() const { return sel; } | |
| 5316 | + int64_t & get_mutable_sel() { return sel; } | |
| 5317 | + void set_sel(const int64_t & value) { this->sel = value; } | |
| 5318 | + }; | |
| 5319 | + | |
| 5320 | + class Select { | |
| 5321 | + public: | |
| 5322 | + Select() = default; | |
| 5323 | + virtual ~Select() = default; | |
| 5324 | + | |
| 5325 | + private: | |
| 5326 | + int64_t select; | |
| 5327 | + | |
| 5328 | + public: | |
| 5329 | + const int64_t & get_select() const { return select; } | |
| 5330 | + int64_t & get_mutable_select() { return select; } | |
| 5331 | + void set_select(const int64_t & value) { this->select = value; } | |
| 5332 | + }; | |
| 5333 | + | |
| 5306 | 5334 | class Self { |
| 5307 | 5335 | public: |
| 5308 | 5336 | Self() = default; |
| @@ -5331,6 +5359,20 @@ namespace quicktype { | ||
| 5331 | 5359 | void set_sendable(const int64_t & value) { this->sendable = value; } |
| 5332 | 5360 | }; |
| 5333 | 5361 | |
| 5362 | + class SerializationFeature { | |
| 5363 | + public: | |
| 5364 | + SerializationFeature() = default; | |
| 5365 | + virtual ~SerializationFeature() = default; | |
| 5366 | + | |
| 5367 | + private: | |
| 5368 | + int64_t serialization_feature; | |
| 5369 | + | |
| 5370 | + public: | |
| 5371 | + const int64_t & get_serialization_feature() const { return serialization_feature; } | |
| 5372 | + int64_t & get_mutable_serialization_feature() { return serialization_feature; } | |
| 5373 | + void set_serialization_feature(const int64_t & value) { this->serialization_feature = value; } | |
| 5374 | + }; | |
| 5375 | + | |
| 5334 | 5376 | class Serialize { |
| 5335 | 5377 | public: |
| 5336 | 5378 | Serialize() = default; |
| @@ -5807,48 +5849,6 @@ namespace quicktype { | ||
| 5807 | 5849 | void set_utf8_json_reader(const int64_t & value) { this->utf8_json_reader = value; } |
| 5808 | 5850 | }; |
| 5809 | 5851 | |
| 5810 | - class Utf8JsonWriter { | |
| 5811 | - public: | |
| 5812 | - Utf8JsonWriter() = default; | |
| 5813 | - virtual ~Utf8JsonWriter() = default; | |
| 5814 | - | |
| 5815 | - private: | |
| 5816 | - int64_t utf8_json_writer; | |
| 5817 | - | |
| 5818 | - public: | |
| 5819 | - const int64_t & get_utf8_json_writer() const { return utf8_json_writer; } | |
| 5820 | - int64_t & get_mutable_utf8_json_writer() { return utf8_json_writer; } | |
| 5821 | - void set_utf8_json_writer(const int64_t & value) { this->utf8_json_writer = value; } | |
| 5822 | - }; | |
| 5823 | - | |
| 5824 | - class Uuid { | |
| 5825 | - public: | |
| 5826 | - Uuid() = default; | |
| 5827 | - virtual ~Uuid() = default; | |
| 5828 | - | |
| 5829 | - private: | |
| 5830 | - int64_t uuid; | |
| 5831 | - | |
| 5832 | - public: | |
| 5833 | - const int64_t & get_uuid() const { return uuid; } | |
| 5834 | - int64_t & get_mutable_uuid() { return uuid; } | |
| 5835 | - void set_uuid(const int64_t & value) { this->uuid = value; } | |
| 5836 | - }; | |
| 5837 | - | |
| 5838 | - class Var { | |
| 5839 | - public: | |
| 5840 | - Var() = default; | |
| 5841 | - virtual ~Var() = default; | |
| 5842 | - | |
| 5843 | - private: | |
| 5844 | - int64_t var; | |
| 5845 | - | |
| 5846 | - public: | |
| 5847 | - const int64_t & get_var() const { return var; } | |
| 5848 | - int64_t & get_mutable_var() { return var; } | |
| 5849 | - void set_var(const int64_t & value) { this->var = value; } | |
| 5850 | - }; | |
| 5851 | - | |
| 5852 | 5852 | class Obj5 { |
| 5853 | 5853 | public: |
| 5854 | 5854 | Obj5() = default; |
| @@ -5879,10 +5879,13 @@ namespace quicktype { | ||
| 5879 | 5879 | Union obj5_union; |
| 5880 | 5880 | Unsigned obj5_unsigned; |
| 5881 | 5881 | Using obj5_using; |
| 5882 | - Virtual obj5_virtual; | |
| 5883 | 5882 | TrueClass purple_true; |
| 5883 | + Sealed sealed; | |
| 5884 | + Sel sel; | |
| 5885 | + Select select; | |
| 5884 | 5886 | Self self; |
| 5885 | 5887 | Sendable sendable; |
| 5888 | + SerializationFeature serialization_feature; | |
| 5886 | 5889 | Serialize serialize; |
| 5887 | 5890 | SerializerProvider serializer_provider; |
| 5888 | 5891 | Set set; |
| @@ -5917,9 +5920,6 @@ namespace quicktype { | ||
| 5917 | 5920 | Unsafe unsafe; |
| 5918 | 5921 | Ushort ushort; |
| 5919 | 5922 | Utf8JsonReader utf8_json_reader; |
| 5920 | - Utf8JsonWriter utf8_json_writer; | |
| 5921 | - Uuid uuid; | |
| 5922 | - Var var; | |
| 5923 | 5923 | |
| 5924 | 5924 | public: |
| 5925 | 5925 | const int64_t & get_dummy() const { return dummy; } |
| @@ -6018,22 +6018,34 @@ namespace quicktype { | ||
| 6018 | 6018 | Using & get_mutable_obj5_using() { return obj5_using; } |
| 6019 | 6019 | void set_obj5_using(const Using & value) { this->obj5_using = value; } |
| 6020 | 6020 | |
| 6021 | - const Virtual & get_obj5_virtual() const { return obj5_virtual; } | |
| 6022 | - Virtual & get_mutable_obj5_virtual() { return obj5_virtual; } | |
| 6023 | - void set_obj5_virtual(const Virtual & value) { this->obj5_virtual = value; } | |
| 6024 | - | |
| 6025 | 6021 | const TrueClass & get_purple_true() const { return purple_true; } |
| 6026 | 6022 | TrueClass & get_mutable_purple_true() { return purple_true; } |
| 6027 | 6023 | void set_purple_true(const TrueClass & value) { this->purple_true = value; } |
| 6028 | 6024 | |
| 6029 | - const Self & get_self() const { return self; } | |
| 6030 | - Self & get_mutable_self() { return self; } | |
| 6031 | - void set_self(const Self & value) { this->self = value; } | |
| 6025 | + const Sealed & get_sealed() const { return sealed; } | |
| 6026 | + Sealed & get_mutable_sealed() { return sealed; } | |
| 6027 | + void set_sealed(const Sealed & value) { this->sealed = value; } | |
| 6028 | + | |
| 6029 | + const Sel & get_sel() const { return sel; } | |
| 6030 | + Sel & get_mutable_sel() { return sel; } | |
| 6031 | + void set_sel(const Sel & value) { this->sel = value; } | |
| 6032 | + | |
| 6033 | + const Select & get_select() const { return select; } | |
| 6034 | + Select & get_mutable_select() { return select; } | |
| 6035 | + void set_select(const Select & value) { this->select = value; } | |
| 6036 | + | |
| 6037 | + const Self & get_self() const { return self; } | |
| 6038 | + Self & get_mutable_self() { return self; } | |
| 6039 | + void set_self(const Self & value) { this->self = value; } | |
| 6032 | 6040 | |
| 6033 | 6041 | const Sendable & get_sendable() const { return sendable; } |
| 6034 | 6042 | Sendable & get_mutable_sendable() { return sendable; } |
| 6035 | 6043 | void set_sendable(const Sendable & value) { this->sendable = value; } |
| 6036 | 6044 | |
| 6045 | + const SerializationFeature & get_serialization_feature() const { return serialization_feature; } | |
| 6046 | + SerializationFeature & get_mutable_serialization_feature() { return serialization_feature; } | |
| 6047 | + void set_serialization_feature(const SerializationFeature & value) { this->serialization_feature = value; } | |
| 6048 | + | |
| 6037 | 6049 | const Serialize & get_serialize() const { return serialize; } |
| 6038 | 6050 | Serialize & get_mutable_serialize() { return serialize; } |
| 6039 | 6051 | void set_serialize(const Serialize & value) { this->serialize = value; } |
| @@ -6169,18 +6181,20 @@ namespace quicktype { | ||
| 6169 | 6181 | const Utf8JsonReader & get_utf8_json_reader() const { return utf8_json_reader; } |
| 6170 | 6182 | Utf8JsonReader & get_mutable_utf8_json_reader() { return utf8_json_reader; } |
| 6171 | 6183 | void set_utf8_json_reader(const Utf8JsonReader & value) { this->utf8_json_reader = value; } |
| 6184 | + }; | |
| 6172 | 6185 | |
| 6173 | - const Utf8JsonWriter & get_utf8_json_writer() const { return utf8_json_writer; } | |
| 6174 | - Utf8JsonWriter & get_mutable_utf8_json_writer() { return utf8_json_writer; } | |
| 6175 | - void set_utf8_json_writer(const Utf8JsonWriter & value) { this->utf8_json_writer = value; } | |
| 6186 | + class Virtual { | |
| 6187 | + public: | |
| 6188 | + Virtual() = default; | |
| 6189 | + virtual ~Virtual() = default; | |
| 6176 | 6190 | |
| 6177 | - const Uuid & get_uuid() const { return uuid; } | |
| 6178 | - Uuid & get_mutable_uuid() { return uuid; } | |
| 6179 | - void set_uuid(const Uuid & value) { this->uuid = value; } | |
| 6191 | + private: | |
| 6192 | + int64_t virtual_virtual; | |
| 6180 | 6193 | |
| 6181 | - const Var & get_var() const { return var; } | |
| 6182 | - Var & get_mutable_var() { return var; } | |
| 6183 | - void set_var(const Var & value) { this->var = value; } | |
| 6194 | + public: | |
| 6195 | + const int64_t & get_virtual_virtual() const { return virtual_virtual; } | |
| 6196 | + int64_t & get_mutable_virtual_virtual() { return virtual_virtual; } | |
| 6197 | + void set_virtual_virtual(const int64_t & value) { this->virtual_virtual = value; } | |
| 6184 | 6198 | }; |
| 6185 | 6199 | |
| 6186 | 6200 | class Void { |
| @@ -6267,6 +6281,48 @@ namespace quicktype { | ||
| 6267 | 6281 | void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; } |
| 6268 | 6282 | }; |
| 6269 | 6283 | |
| 6284 | + class Utf8JsonWriter { | |
| 6285 | + public: | |
| 6286 | + Utf8JsonWriter() = default; | |
| 6287 | + virtual ~Utf8JsonWriter() = default; | |
| 6288 | + | |
| 6289 | + private: | |
| 6290 | + int64_t utf8_json_writer; | |
| 6291 | + | |
| 6292 | + public: | |
| 6293 | + const int64_t & get_utf8_json_writer() const { return utf8_json_writer; } | |
| 6294 | + int64_t & get_mutable_utf8_json_writer() { return utf8_json_writer; } | |
| 6295 | + void set_utf8_json_writer(const int64_t & value) { this->utf8_json_writer = value; } | |
| 6296 | + }; | |
| 6297 | + | |
| 6298 | + class Uuid { | |
| 6299 | + public: | |
| 6300 | + Uuid() = default; | |
| 6301 | + virtual ~Uuid() = default; | |
| 6302 | + | |
| 6303 | + private: | |
| 6304 | + int64_t uuid; | |
| 6305 | + | |
| 6306 | + public: | |
| 6307 | + const int64_t & get_uuid() const { return uuid; } | |
| 6308 | + int64_t & get_mutable_uuid() { return uuid; } | |
| 6309 | + void set_uuid(const int64_t & value) { this->uuid = value; } | |
| 6310 | + }; | |
| 6311 | + | |
| 6312 | + class Var { | |
| 6313 | + public: | |
| 6314 | + Var() = default; | |
| 6315 | + virtual ~Var() = default; | |
| 6316 | + | |
| 6317 | + private: | |
| 6318 | + int64_t var; | |
| 6319 | + | |
| 6320 | + public: | |
| 6321 | + const int64_t & get_var() const { return var; } | |
| 6322 | + int64_t & get_mutable_var() { return var; } | |
| 6323 | + void set_var(const int64_t & value) { this->var = value; } | |
| 6324 | + }; | |
| 6325 | + | |
| 6270 | 6326 | class Weak { |
| 6271 | 6327 | public: |
| 6272 | 6328 | Weak() = default; |
| @@ -6358,12 +6414,16 @@ namespace quicktype { | ||
| 6358 | 6414 | |
| 6359 | 6415 | private: |
| 6360 | 6416 | int64_t dummy; |
| 6417 | + Virtual obj6_virtual; | |
| 6361 | 6418 | Void obj6_void; |
| 6362 | 6419 | Volatile obj6_volatile; |
| 6363 | 6420 | WcharT obj6_wchar_t; |
| 6364 | 6421 | While obj6_while; |
| 6365 | 6422 | Xor obj6_xor; |
| 6366 | 6423 | XorEq obj6_xor_eq; |
| 6424 | + Utf8JsonWriter utf8_json_writer; | |
| 6425 | + Uuid uuid; | |
| 6426 | + Var var; | |
| 6367 | 6427 | Weak weak; |
| 6368 | 6428 | Where where; |
| 6369 | 6429 | WillSet will_set; |
| @@ -6376,6 +6436,10 @@ namespace quicktype { | ||
| 6376 | 6436 | int64_t & get_mutable_dummy() { return dummy; } |
| 6377 | 6437 | void set_dummy(const int64_t & value) { this->dummy = value; } |
| 6378 | 6438 | |
| 6439 | + const Virtual & get_obj6_virtual() const { return obj6_virtual; } | |
| 6440 | + Virtual & get_mutable_obj6_virtual() { return obj6_virtual; } | |
| 6441 | + void set_obj6_virtual(const Virtual & value) { this->obj6_virtual = value; } | |
| 6442 | + | |
| 6379 | 6443 | const Void & get_obj6_void() const { return obj6_void; } |
| 6380 | 6444 | Void & get_mutable_obj6_void() { return obj6_void; } |
| 6381 | 6445 | void set_obj6_void(const Void & value) { this->obj6_void = value; } |
| @@ -6400,6 +6464,18 @@ namespace quicktype { | ||
| 6400 | 6464 | XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; } |
| 6401 | 6465 | void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; } |
| 6402 | 6466 | |
| 6467 | + const Utf8JsonWriter & get_utf8_json_writer() const { return utf8_json_writer; } | |
| 6468 | + Utf8JsonWriter & get_mutable_utf8_json_writer() { return utf8_json_writer; } | |
| 6469 | + void set_utf8_json_writer(const Utf8JsonWriter & value) { this->utf8_json_writer = value; } | |
| 6470 | + | |
| 6471 | + const Uuid & get_uuid() const { return uuid; } | |
| 6472 | + Uuid & get_mutable_uuid() { return uuid; } | |
| 6473 | + void set_uuid(const Uuid & value) { this->uuid = value; } | |
| 6474 | + | |
| 6475 | + const Var & get_var() const { return var; } | |
| 6476 | + Var & get_mutable_var() { return var; } | |
| 6477 | + void set_var(const Var & value) { this->var = value; } | |
| 6478 | + | |
| 6403 | 6479 | const Weak & get_weak() const { return weak; } |
| 6404 | 6480 | Weak & get_mutable_weak() { return weak; } |
| 6405 | 6481 | void set_weak(const Weak & value) { this->weak = value; } |
| @@ -6717,6 +6793,9 @@ namespace quicktype { | ||
| 6717 | 6793 | void from_json(const json & j, Delegate & x); |
| 6718 | 6794 | void to_json(json & j, const Delegate & x); |
| 6719 | 6795 | |
| 6796 | + void from_json(const json & j, DeserializationFeature & x); | |
| 6797 | + void to_json(json & j, const DeserializationFeature & x); | |
| 6798 | + | |
| 6720 | 6799 | void from_json(const json & j, Dict & x); |
| 6721 | 6800 | void to_json(json & j, const Dict & x); |
| 6722 | 6801 | |
| @@ -6852,9 +6931,6 @@ namespace quicktype { | ||
| 6852 | 6931 | void from_json(const json & j, Friend & x); |
| 6853 | 6932 | void to_json(json & j, const Friend & x); |
| 6854 | 6933 | |
| 6855 | - void from_json(const json & j, Goto & x); | |
| 6856 | - void to_json(json & j, const Goto & x); | |
| 6857 | - | |
| 6858 | 6934 | void from_json(const json & j, FalseClass & x); |
| 6859 | 6935 | void to_json(json & j, const FalseClass & x); |
| 6860 | 6936 | |
| @@ -7023,6 +7099,9 @@ namespace quicktype { | ||
| 7023 | 7099 | void from_json(const json & j, No & x); |
| 7024 | 7100 | void to_json(json & j, const No & x); |
| 7025 | 7101 | |
| 7102 | + void from_json(const json & j, Goto & x); | |
| 7103 | + void to_json(json & j, const Goto & x); | |
| 7104 | + | |
| 7026 | 7105 | void from_json(const json & j, If & x); |
| 7027 | 7106 | void to_json(json & j, const If & x); |
| 7028 | 7107 | |
| @@ -7050,9 +7129,6 @@ namespace quicktype { | ||
| 7050 | 7129 | void from_json(const json & j, New & x); |
| 7051 | 7130 | void to_json(json & j, const New & x); |
| 7052 | 7131 | |
| 7053 | - void from_json(const json & j, Noexcept & x); | |
| 7054 | - void to_json(json & j, const Noexcept & x); | |
| 7055 | - | |
| 7056 | 7132 | void from_json(const json & j, Obj3 & x); |
| 7057 | 7133 | void to_json(json & j, const Obj3 & x); |
| 7058 | 7134 | |
| @@ -7086,6 +7162,9 @@ namespace quicktype { | ||
| 7086 | 7162 | void from_json(const json & j, Number & x); |
| 7087 | 7163 | void to_json(json & j, const Number & x); |
| 7088 | 7164 | |
| 7165 | + void from_json(const json & j, Noexcept & x); | |
| 7166 | + void to_json(json & j, const Noexcept & x); | |
| 7167 | + | |
| 7089 | 7168 | void from_json(const json & j, NoneClass & x); |
| 7090 | 7169 | void to_json(json & j, const NoneClass & x); |
| 7091 | 7170 | |
| @@ -7143,6 +7222,12 @@ namespace quicktype { | ||
| 7143 | 7222 | void from_json(const json & j, ObjectMapper & x); |
| 7144 | 7223 | void to_json(json & j, const ObjectMapper & x); |
| 7145 | 7224 | |
| 7225 | + void from_json(const json & j, ObjectReader & x); | |
| 7226 | + void to_json(json & j, const ObjectReader & x); | |
| 7227 | + | |
| 7228 | + void from_json(const json & j, ObjectWriter & x); | |
| 7229 | + void to_json(json & j, const ObjectWriter & x); | |
| 7230 | + | |
| 7146 | 7231 | void from_json(const json & j, Of & x); |
| 7147 | 7232 | void to_json(json & j, const Of & x); |
| 7148 | 7233 | |
| @@ -7239,15 +7324,6 @@ namespace quicktype { | ||
| 7239 | 7324 | void from_json(const json & j, Sbyte & x); |
| 7240 | 7325 | void to_json(json & j, const Sbyte & x); |
| 7241 | 7326 | |
| 7242 | - void from_json(const json & j, Sealed & x); | |
| 7243 | - void to_json(json & j, const Sealed & x); | |
| 7244 | - | |
| 7245 | - void from_json(const json & j, Sel & x); | |
| 7246 | - void to_json(json & j, const Sel & x); | |
| 7247 | - | |
| 7248 | - void from_json(const json & j, Select & x); | |
| 7249 | - void to_json(json & j, const Select & x); | |
| 7250 | - | |
| 7251 | 7327 | void from_json(const json & j, Obj4 & x); |
| 7252 | 7328 | void to_json(json & j, const Obj4 & x); |
| 7253 | 7329 | |
| @@ -7320,18 +7396,27 @@ namespace quicktype { | ||
| 7320 | 7396 | void from_json(const json & j, Using & x); |
| 7321 | 7397 | void to_json(json & j, const Using & x); |
| 7322 | 7398 | |
| 7323 | - void from_json(const json & j, Virtual & x); | |
| 7324 | - void to_json(json & j, const Virtual & x); | |
| 7325 | - | |
| 7326 | 7399 | void from_json(const json & j, TrueClass & x); |
| 7327 | 7400 | void to_json(json & j, const TrueClass & x); |
| 7328 | 7401 | |
| 7402 | + void from_json(const json & j, Sealed & x); | |
| 7403 | + void to_json(json & j, const Sealed & x); | |
| 7404 | + | |
| 7405 | + void from_json(const json & j, Sel & x); | |
| 7406 | + void to_json(json & j, const Sel & x); | |
| 7407 | + | |
| 7408 | + void from_json(const json & j, Select & x); | |
| 7409 | + void to_json(json & j, const Select & x); | |
| 7410 | + | |
| 7329 | 7411 | void from_json(const json & j, Self & x); |
| 7330 | 7412 | void to_json(json & j, const Self & x); |
| 7331 | 7413 | |
| 7332 | 7414 | void from_json(const json & j, Sendable & x); |
| 7333 | 7415 | void to_json(json & j, const Sendable & x); |
| 7334 | 7416 | |
| 7417 | + void from_json(const json & j, SerializationFeature & x); | |
| 7418 | + void to_json(json & j, const SerializationFeature & x); | |
| 7419 | + | |
| 7335 | 7420 | void from_json(const json & j, Serialize & x); |
| 7336 | 7421 | void to_json(json & j, const Serialize & x); |
| 7337 | 7422 | |
| @@ -7434,18 +7519,12 @@ namespace quicktype { | ||
| 7434 | 7519 | void from_json(const json & j, Utf8JsonReader & x); |
| 7435 | 7520 | void to_json(json & j, const Utf8JsonReader & x); |
| 7436 | 7521 | |
| 7437 | - void from_json(const json & j, Utf8JsonWriter & x); | |
| 7438 | - void to_json(json & j, const Utf8JsonWriter & x); | |
| 7439 | - | |
| 7440 | - void from_json(const json & j, Uuid & x); | |
| 7441 | - void to_json(json & j, const Uuid & x); | |
| 7442 | - | |
| 7443 | - void from_json(const json & j, Var & x); | |
| 7444 | - void to_json(json & j, const Var & x); | |
| 7445 | - | |
| 7446 | 7522 | void from_json(const json & j, Obj5 & x); |
| 7447 | 7523 | void to_json(json & j, const Obj5 & x); |
| 7448 | 7524 | |
| 7525 | + void from_json(const json & j, Virtual & x); | |
| 7526 | + void to_json(json & j, const Virtual & x); | |
| 7527 | + | |
| 7449 | 7528 | void from_json(const json & j, Void & x); |
| 7450 | 7529 | void to_json(json & j, const Void & x); |
| 7451 | 7530 | |
| @@ -7464,6 +7543,15 @@ namespace quicktype { | ||
| 7464 | 7543 | void from_json(const json & j, XorEq & x); |
| 7465 | 7544 | void to_json(json & j, const XorEq & x); |
| 7466 | 7545 | |
| 7546 | + void from_json(const json & j, Utf8JsonWriter & x); | |
| 7547 | + void to_json(json & j, const Utf8JsonWriter & x); | |
| 7548 | + | |
| 7549 | + void from_json(const json & j, Uuid & x); | |
| 7550 | + void to_json(json & j, const Uuid & x); | |
| 7551 | + | |
| 7552 | + void from_json(const json & j, Var & x); | |
| 7553 | + void to_json(json & j, const Var & x); | |
| 7554 | + | |
| 7467 | 7555 | void from_json(const json & j, Weak & x); |
| 7468 | 7556 | void to_json(json & j, const Weak & x); |
| 7469 | 7557 | |
| @@ -8521,6 +8609,17 @@ namespace quicktype { | ||
| 8521 | 8609 | j["delegate"] = x.get_delegate(); |
| 8522 | 8610 | } |
| 8523 | 8611 | |
| 8612 | + inline void from_json(const json & j, DeserializationFeature& x) { | |
| 8613 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 8614 | + if (j.find("DeserializationFeature") != j.end() && !j.at("DeserializationFeature").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 8615 | + x.set_deserialization_feature(j.at("DeserializationFeature").get<int64_t>()); | |
| 8616 | + } | |
| 8617 | + | |
| 8618 | + inline void to_json(json & j, const DeserializationFeature & x) { | |
| 8619 | + j = json::object(); | |
| 8620 | + j["DeserializationFeature"] = x.get_deserialization_feature(); | |
| 8621 | + } | |
| 8622 | + | |
| 8524 | 8623 | inline void from_json(const json & j, Dict& x) { |
| 8525 | 8624 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 8526 | 8625 | if (j.find("dict") != j.end() && !j.at("dict").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -9015,17 +9114,6 @@ namespace quicktype { | ||
| 9015 | 9114 | j["friend"] = x.get_friend_friend(); |
| 9016 | 9115 | } |
| 9017 | 9116 | |
| 9018 | - inline void from_json(const json & j, Goto& x) { | |
| 9019 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9020 | - if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9021 | - x.set_goto_goto(j.at("goto").get<int64_t>()); | |
| 9022 | - } | |
| 9023 | - | |
| 9024 | - inline void to_json(json & j, const Goto & x) { | |
| 9025 | - j = json::object(); | |
| 9026 | - j["goto"] = x.get_goto_goto(); | |
| 9027 | - } | |
| 9028 | - | |
| 9029 | 9117 | inline void from_json(const json & j, FalseClass& x) { |
| 9030 | 9118 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9031 | 9119 | if (j.find("false") != j.end() && !j.at("false").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -9056,6 +9144,7 @@ namespace quicktype { | ||
| 9056 | 9144 | x.set_deinit(j.at("deinit").get<Deinit>()); |
| 9057 | 9145 | x.set_del(j.at("del").get<Del>()); |
| 9058 | 9146 | x.set_delegate(j.at("delegate").get<Delegate>()); |
| 9147 | + x.set_deserialization_feature(j.at("DeserializationFeature").get<DeserializationFeature>()); | |
| 9059 | 9148 | x.set_dict(j.at("dict").get<Dict>()); |
| 9060 | 9149 | x.set_dictionary(j.at("dictionary").get<Dictionary>()); |
| 9061 | 9150 | x.set_did_set(j.at("didSet").get<DidSet>()); |
| @@ -9103,7 +9192,6 @@ namespace quicktype { | ||
| 9103 | 9192 | x.set_obj2_float(j.at("float").get<Float>()); |
| 9104 | 9193 | x.set_obj2_for(j.at("for").get<For>()); |
| 9105 | 9194 | x.set_obj2_friend(j.at("friend").get<Friend>()); |
| 9106 | - x.set_obj2_goto(j.at("goto").get<Goto>()); | |
| 9107 | 9195 | x.set_purple_false(j.at("false").get<FalseClass>()); |
| 9108 | 9196 | } |
| 9109 | 9197 | |
| @@ -9126,6 +9214,7 @@ namespace quicktype { | ||
| 9126 | 9214 | j["deinit"] = x.get_deinit(); |
| 9127 | 9215 | j["del"] = x.get_del(); |
| 9128 | 9216 | j["delegate"] = x.get_delegate(); |
| 9217 | + j["DeserializationFeature"] = x.get_deserialization_feature(); | |
| 9129 | 9218 | j["dict"] = x.get_dict(); |
| 9130 | 9219 | j["dictionary"] = x.get_dictionary(); |
| 9131 | 9220 | j["didSet"] = x.get_did_set(); |
| @@ -9172,7 +9261,6 @@ namespace quicktype { | ||
| 9172 | 9261 | j["float"] = x.get_obj2_float(); |
| 9173 | 9262 | j["for"] = x.get_obj2_for(); |
| 9174 | 9263 | j["friend"] = x.get_obj2_friend(); |
| 9175 | - j["goto"] = x.get_obj2_goto(); | |
| 9176 | 9264 | j["false"] = x.get_purple_false(); |
| 9177 | 9265 | } |
| 9178 | 9266 | |
| @@ -9769,6 +9857,17 @@ namespace quicktype { | ||
| 9769 | 9857 | j["NO"] = x.get_no(); |
| 9770 | 9858 | } |
| 9771 | 9859 | |
| 9860 | + inline void from_json(const json & j, Goto& x) { | |
| 9861 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9862 | + if (j.find("goto") != j.end() && !j.at("goto").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9863 | + x.set_goto_goto(j.at("goto").get<int64_t>()); | |
| 9864 | + } | |
| 9865 | + | |
| 9866 | + inline void to_json(json & j, const Goto & x) { | |
| 9867 | + j = json::object(); | |
| 9868 | + j["goto"] = x.get_goto_goto(); | |
| 9869 | + } | |
| 9870 | + | |
| 9772 | 9871 | inline void from_json(const json & j, If& x) { |
| 9773 | 9872 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9774 | 9873 | if (j.find("if") != j.end() && !j.at("if").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -9868,17 +9967,6 @@ namespace quicktype { | ||
| 9868 | 9967 | j["new"] = x.get_new_new(); |
| 9869 | 9968 | } |
| 9870 | 9969 | |
| 9871 | - inline void from_json(const json & j, Noexcept& x) { | |
| 9872 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9873 | - if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9874 | - x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>()); | |
| 9875 | - } | |
| 9876 | - | |
| 9877 | - inline void to_json(json & j, const Noexcept & x) { | |
| 9878 | - j = json::object(); | |
| 9879 | - j["noexcept"] = x.get_noexcept_noexcept(); | |
| 9880 | - } | |
| 9881 | - | |
| 9882 | 9970 | inline void from_json(const json & j, Obj3& x) { |
| 9883 | 9971 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9884 | 9972 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -9937,6 +10025,7 @@ namespace quicktype { | ||
| 9937 | 10025 | x.set_newtonsoft(j.at("newtonsoft").get<Newtonsoft>()); |
| 9938 | 10026 | x.set_nil(j.at("nil").get<Nil>()); |
| 9939 | 10027 | x.set_no(j.at("NO").get<No>()); |
| 10028 | + x.set_obj3_goto(j.at("goto").get<Goto>()); | |
| 9940 | 10029 | x.set_obj3_if(j.at("if").get<If>()); |
| 9941 | 10030 | x.set_obj3_import(j.at("import").get<Import>()); |
| 9942 | 10031 | x.set_obj3_inline(j.at("inline").get<Inline>()); |
| @@ -9946,7 +10035,6 @@ namespace quicktype { | ||
| 9946 | 10035 | x.set_obj3_mutable(j.at("mutable").get<Mutable>()); |
| 9947 | 10036 | x.set_obj3_namespace(j.at("namespace").get<Namespace>()); |
| 9948 | 10037 | x.set_obj3_new(j.at("new").get<New>()); |
| 9949 | - x.set_obj3_noexcept(j.at("noexcept").get<Noexcept>()); | |
| 9950 | 10038 | } |
| 9951 | 10039 | |
| 9952 | 10040 | inline void to_json(json & j, const Obj3 & x) { |
| @@ -10006,6 +10094,7 @@ namespace quicktype { | ||
| 10006 | 10094 | j["newtonsoft"] = x.get_newtonsoft(); |
| 10007 | 10095 | j["nil"] = x.get_nil(); |
| 10008 | 10096 | j["NO"] = x.get_no(); |
| 10097 | + j["goto"] = x.get_obj3_goto(); | |
| 10009 | 10098 | j["if"] = x.get_obj3_if(); |
| 10010 | 10099 | j["import"] = x.get_obj3_import(); |
| 10011 | 10100 | j["inline"] = x.get_obj3_inline(); |
| @@ -10015,7 +10104,6 @@ namespace quicktype { | ||
| 10015 | 10104 | j["mutable"] = x.get_obj3_mutable(); |
| 10016 | 10105 | j["namespace"] = x.get_obj3_namespace(); |
| 10017 | 10106 | j["new"] = x.get_obj3_new(); |
| 10018 | - j["noexcept"] = x.get_obj3_noexcept(); | |
| 10019 | 10107 | } |
| 10020 | 10108 | |
| 10021 | 10109 | inline void from_json(const json & j, NoSuchMethod& x) { |
| @@ -10128,6 +10216,17 @@ namespace quicktype { | ||
| 10128 | 10216 | j["number"] = x.get_number(); |
| 10129 | 10217 | } |
| 10130 | 10218 | |
| 10219 | + inline void from_json(const json & j, Noexcept& x) { | |
| 10220 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10221 | + if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10222 | + x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>()); | |
| 10223 | + } | |
| 10224 | + | |
| 10225 | + inline void to_json(json & j, const Noexcept & x) { | |
| 10226 | + j = json::object(); | |
| 10227 | + j["noexcept"] = x.get_noexcept_noexcept(); | |
| 10228 | + } | |
| 10229 | + | |
| 10131 | 10230 | inline void from_json(const json & j, NoneClass& x) { |
| 10132 | 10231 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10133 | 10232 | if (j.find("none") != j.end() && !j.at("none").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10337,6 +10436,28 @@ namespace quicktype { | ||
| 10337 | 10436 | j["ObjectMapper"] = x.get_object_mapper(); |
| 10338 | 10437 | } |
| 10339 | 10438 | |
| 10439 | + inline void from_json(const json & j, ObjectReader& x) { | |
| 10440 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10441 | + if (j.find("ObjectReader") != j.end() && !j.at("ObjectReader").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10442 | + x.set_object_reader(j.at("ObjectReader").get<int64_t>()); | |
| 10443 | + } | |
| 10444 | + | |
| 10445 | + inline void to_json(json & j, const ObjectReader & x) { | |
| 10446 | + j = json::object(); | |
| 10447 | + j["ObjectReader"] = x.get_object_reader(); | |
| 10448 | + } | |
| 10449 | + | |
| 10450 | + inline void from_json(const json & j, ObjectWriter& x) { | |
| 10451 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10452 | + if (j.find("ObjectWriter") != j.end() && !j.at("ObjectWriter").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10453 | + x.set_object_writer(j.at("ObjectWriter").get<int64_t>()); | |
| 10454 | + } | |
| 10455 | + | |
| 10456 | + inline void to_json(json & j, const ObjectWriter & x) { | |
| 10457 | + j = json::object(); | |
| 10458 | + j["ObjectWriter"] = x.get_object_writer(); | |
| 10459 | + } | |
| 10460 | + | |
| 10340 | 10461 | inline void from_json(const json & j, Of& x) { |
| 10341 | 10462 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10342 | 10463 | if (j.find("of") != j.end() && !j.at("of").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10689,39 +10810,6 @@ namespace quicktype { | ||
| 10689 | 10810 | j["sbyte"] = x.get_sbyte(); |
| 10690 | 10811 | } |
| 10691 | 10812 | |
| 10692 | - inline void from_json(const json & j, Sealed& x) { | |
| 10693 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10694 | - if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10695 | - x.set_sealed(j.at("sealed").get<int64_t>()); | |
| 10696 | - } | |
| 10697 | - | |
| 10698 | - inline void to_json(json & j, const Sealed & x) { | |
| 10699 | - j = json::object(); | |
| 10700 | - j["sealed"] = x.get_sealed(); | |
| 10701 | - } | |
| 10702 | - | |
| 10703 | - inline void from_json(const json & j, Sel& x) { | |
| 10704 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10705 | - if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10706 | - x.set_sel(j.at("SEL").get<int64_t>()); | |
| 10707 | - } | |
| 10708 | - | |
| 10709 | - inline void to_json(json & j, const Sel & x) { | |
| 10710 | - j = json::object(); | |
| 10711 | - j["SEL"] = x.get_sel(); | |
| 10712 | - } | |
| 10713 | - | |
| 10714 | - inline void from_json(const json & j, Select& x) { | |
| 10715 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10716 | - if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10717 | - x.set_select(j.at("select").get<int64_t>()); | |
| 10718 | - } | |
| 10719 | - | |
| 10720 | - inline void to_json(json & j, const Select & x) { | |
| 10721 | - j = json::object(); | |
| 10722 | - j["select"] = x.get_select(); | |
| 10723 | - } | |
| 10724 | - | |
| 10725 | 10813 | inline void from_json(const json & j, Obj4& x) { |
| 10726 | 10814 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10727 | 10815 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10736,6 +10824,7 @@ namespace quicktype { | ||
| 10736 | 10824 | x.set_ns_string(j.at("NSString").get<NsString>()); |
| 10737 | 10825 | x.set_null(j.at("NULL").get<Null>()); |
| 10738 | 10826 | x.set_number(j.at("number").get<Number>()); |
| 10827 | + x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>()); | |
| 10739 | 10828 | x.set_obj4_none(j.at("none").get<NoneClass>()); |
| 10740 | 10829 | x.set_obj4_not(j.at("not").get<Not>()); |
| 10741 | 10830 | x.set_obj4_not_eq(j.at("not_eq").get<NotEq>()); |
| @@ -10755,6 +10844,8 @@ namespace quicktype { | ||
| 10755 | 10844 | x.set_obj4_return(j.at("return").get<Return>()); |
| 10756 | 10845 | x.set_object(j.at("object").get<Object>()); |
| 10757 | 10846 | x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>()); |
| 10847 | + x.set_object_reader(j.at("ObjectReader").get<ObjectReader>()); | |
| 10848 | + x.set_object_writer(j.at("ObjectWriter").get<ObjectWriter>()); | |
| 10758 | 10849 | x.set_of(j.at("of").get<Of>()); |
| 10759 | 10850 | x.set_oneway(j.at("oneway").get<Oneway>()); |
| 10760 | 10851 | x.set_open(j.at("open").get<Open>()); |
| @@ -10787,9 +10878,6 @@ namespace quicktype { | ||
| 10787 | 10878 | x.set_runtime_type(j.at("runtimeType").get<RuntimeType>()); |
| 10788 | 10879 | x.set_s(j.at("s").get<S>()); |
| 10789 | 10880 | x.set_sbyte(j.at("sbyte").get<Sbyte>()); |
| 10790 | - x.set_sealed(j.at("sealed").get<Sealed>()); | |
| 10791 | - x.set_sel(j.at("SEL").get<Sel>()); | |
| 10792 | - x.set_select(j.at("select").get<Select>()); | |
| 10793 | 10881 | } |
| 10794 | 10882 | |
| 10795 | 10883 | inline void to_json(json & j, const Obj4 & x) { |
| @@ -10805,6 +10893,7 @@ namespace quicktype { | ||
| 10805 | 10893 | j["NSString"] = x.get_ns_string(); |
| 10806 | 10894 | j["NULL"] = x.get_null(); |
| 10807 | 10895 | j["number"] = x.get_number(); |
| 10896 | + j["noexcept"] = x.get_obj4_noexcept(); | |
| 10808 | 10897 | j["none"] = x.get_obj4_none(); |
| 10809 | 10898 | j["not"] = x.get_obj4_not(); |
| 10810 | 10899 | j["not_eq"] = x.get_obj4_not_eq(); |
| @@ -10824,6 +10913,8 @@ namespace quicktype { | ||
| 10824 | 10913 | j["return"] = x.get_obj4_return(); |
| 10825 | 10914 | j["object"] = x.get_object(); |
| 10826 | 10915 | j["ObjectMapper"] = x.get_object_mapper(); |
| 10916 | + j["ObjectReader"] = x.get_object_reader(); | |
| 10917 | + j["ObjectWriter"] = x.get_object_writer(); | |
| 10827 | 10918 | j["of"] = x.get_of(); |
| 10828 | 10919 | j["oneway"] = x.get_oneway(); |
| 10829 | 10920 | j["open"] = x.get_open(); |
| @@ -10856,9 +10947,6 @@ namespace quicktype { | ||
| 10856 | 10947 | j["runtimeType"] = x.get_runtime_type(); |
| 10857 | 10948 | j["s"] = x.get_s(); |
| 10858 | 10949 | j["sbyte"] = x.get_sbyte(); |
| 10859 | - j["sealed"] = x.get_sealed(); | |
| 10860 | - j["SEL"] = x.get_sel(); | |
| 10861 | - j["select"] = x.get_select(); | |
| 10862 | 10950 | } |
| 10863 | 10951 | |
| 10864 | 10952 | inline void from_json(const json & j, SelfClass& x) { |
| @@ -11114,26 +11202,48 @@ namespace quicktype { | ||
| 11114 | 11202 | j["using"] = x.get_using_using(); |
| 11115 | 11203 | } |
| 11116 | 11204 | |
| 11117 | - inline void from_json(const json & j, Virtual& x) { | |
| 11205 | + inline void from_json(const json & j, TrueClass& x) { | |
| 11118 | 11206 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11119 | - if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11120 | - x.set_virtual_virtual(j.at("virtual").get<int64_t>()); | |
| 11207 | + if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11208 | + x.set_true_true(j.at("true").get<int64_t>()); | |
| 11121 | 11209 | } |
| 11122 | 11210 | |
| 11123 | - inline void to_json(json & j, const Virtual & x) { | |
| 11211 | + inline void to_json(json & j, const TrueClass & x) { | |
| 11124 | 11212 | j = json::object(); |
| 11125 | - j["virtual"] = x.get_virtual_virtual(); | |
| 11213 | + j["true"] = x.get_true_true(); | |
| 11126 | 11214 | } |
| 11127 | 11215 | |
| 11128 | - inline void from_json(const json & j, TrueClass& x) { | |
| 11216 | + inline void from_json(const json & j, Sealed& x) { | |
| 11129 | 11217 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11130 | - if (j.find("true") != j.end() && !j.at("true").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11131 | - x.set_true_true(j.at("true").get<int64_t>()); | |
| 11218 | + if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11219 | + x.set_sealed(j.at("sealed").get<int64_t>()); | |
| 11132 | 11220 | } |
| 11133 | 11221 | |
| 11134 | - inline void to_json(json & j, const TrueClass & x) { | |
| 11222 | + inline void to_json(json & j, const Sealed & x) { | |
| 11135 | 11223 | j = json::object(); |
| 11136 | - j["true"] = x.get_true_true(); | |
| 11224 | + j["sealed"] = x.get_sealed(); | |
| 11225 | + } | |
| 11226 | + | |
| 11227 | + inline void from_json(const json & j, Sel& x) { | |
| 11228 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11229 | + if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11230 | + x.set_sel(j.at("SEL").get<int64_t>()); | |
| 11231 | + } | |
| 11232 | + | |
| 11233 | + inline void to_json(json & j, const Sel & x) { | |
| 11234 | + j = json::object(); | |
| 11235 | + j["SEL"] = x.get_sel(); | |
| 11236 | + } | |
| 11237 | + | |
| 11238 | + inline void from_json(const json & j, Select& x) { | |
| 11239 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11240 | + if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11241 | + x.set_select(j.at("select").get<int64_t>()); | |
| 11242 | + } | |
| 11243 | + | |
| 11244 | + inline void to_json(json & j, const Select & x) { | |
| 11245 | + j = json::object(); | |
| 11246 | + j["select"] = x.get_select(); | |
| 11137 | 11247 | } |
| 11138 | 11248 | |
| 11139 | 11249 | inline void from_json(const json & j, Self& x) { |
| @@ -11158,6 +11268,17 @@ namespace quicktype { | ||
| 11158 | 11268 | j["Sendable"] = x.get_sendable(); |
| 11159 | 11269 | } |
| 11160 | 11270 | |
| 11271 | + inline void from_json(const json & j, SerializationFeature& x) { | |
| 11272 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11273 | + if (j.find("SerializationFeature") != j.end() && !j.at("SerializationFeature").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11274 | + x.set_serialization_feature(j.at("SerializationFeature").get<int64_t>()); | |
| 11275 | + } | |
| 11276 | + | |
| 11277 | + inline void to_json(json & j, const SerializationFeature & x) { | |
| 11278 | + j = json::object(); | |
| 11279 | + j["SerializationFeature"] = x.get_serialization_feature(); | |
| 11280 | + } | |
| 11281 | + | |
| 11161 | 11282 | inline void from_json(const json & j, Serialize& x) { |
| 11162 | 11283 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11163 | 11284 | if (j.find("serialize") != j.end() && !j.at("serialize").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11532,39 +11653,6 @@ namespace quicktype { | ||
| 11532 | 11653 | j["Utf8JsonReader"] = x.get_utf8_json_reader(); |
| 11533 | 11654 | } |
| 11534 | 11655 | |
| 11535 | - inline void from_json(const json & j, Utf8JsonWriter& x) { | |
| 11536 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11537 | - if (j.find("Utf8JsonWriter") != j.end() && !j.at("Utf8JsonWriter").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11538 | - x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<int64_t>()); | |
| 11539 | - } | |
| 11540 | - | |
| 11541 | - inline void to_json(json & j, const Utf8JsonWriter & x) { | |
| 11542 | - j = json::object(); | |
| 11543 | - j["Utf8JsonWriter"] = x.get_utf8_json_writer(); | |
| 11544 | - } | |
| 11545 | - | |
| 11546 | - inline void from_json(const json & j, Uuid& x) { | |
| 11547 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11548 | - if (j.find("UUID") != j.end() && !j.at("UUID").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11549 | - x.set_uuid(j.at("UUID").get<int64_t>()); | |
| 11550 | - } | |
| 11551 | - | |
| 11552 | - inline void to_json(json & j, const Uuid & x) { | |
| 11553 | - j = json::object(); | |
| 11554 | - j["UUID"] = x.get_uuid(); | |
| 11555 | - } | |
| 11556 | - | |
| 11557 | - inline void from_json(const json & j, Var& x) { | |
| 11558 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11559 | - if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11560 | - x.set_var(j.at("var").get<int64_t>()); | |
| 11561 | - } | |
| 11562 | - | |
| 11563 | - inline void to_json(json & j, const Var & x) { | |
| 11564 | - j = json::object(); | |
| 11565 | - j["var"] = x.get_var(); | |
| 11566 | - } | |
| 11567 | - | |
| 11568 | 11656 | inline void from_json(const json & j, Obj5& x) { |
| 11569 | 11657 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11570 | 11658 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11592,10 +11680,13 @@ namespace quicktype { | ||
| 11592 | 11680 | x.set_obj5_union(j.at("union").get<Union>()); |
| 11593 | 11681 | x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>()); |
| 11594 | 11682 | x.set_obj5_using(j.at("using").get<Using>()); |
| 11595 | - x.set_obj5_virtual(j.at("virtual").get<Virtual>()); | |
| 11596 | 11683 | x.set_purple_true(j.at("true").get<TrueClass>()); |
| 11684 | + x.set_sealed(j.at("sealed").get<Sealed>()); | |
| 11685 | + x.set_sel(j.at("SEL").get<Sel>()); | |
| 11686 | + x.set_select(j.at("select").get<Select>()); | |
| 11597 | 11687 | x.set_self(j.at("Self").get<Self>()); |
| 11598 | 11688 | x.set_sendable(j.at("Sendable").get<Sendable>()); |
| 11689 | + x.set_serialization_feature(j.at("SerializationFeature").get<SerializationFeature>()); | |
| 11599 | 11690 | x.set_serialize(j.at("serialize").get<Serialize>()); |
| 11600 | 11691 | x.set_serializer_provider(j.at("SerializerProvider").get<SerializerProvider>()); |
| 11601 | 11692 | x.set_set(j.at("set").get<Set>()); |
| @@ -11630,9 +11721,6 @@ namespace quicktype { | ||
| 11630 | 11721 | x.set_unsafe(j.at("unsafe").get<Unsafe>()); |
| 11631 | 11722 | x.set_ushort(j.at("ushort").get<Ushort>()); |
| 11632 | 11723 | x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>()); |
| 11633 | - x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>()); | |
| 11634 | - x.set_uuid(j.at("UUID").get<Uuid>()); | |
| 11635 | - x.set_var(j.at("var").get<Var>()); | |
| 11636 | 11724 | } |
| 11637 | 11725 | |
| 11638 | 11726 | inline void to_json(json & j, const Obj5 & x) { |
| @@ -11661,10 +11749,13 @@ namespace quicktype { | ||
| 11661 | 11749 | j["union"] = x.get_obj5_union(); |
| 11662 | 11750 | j["unsigned"] = x.get_obj5_unsigned(); |
| 11663 | 11751 | j["using"] = x.get_obj5_using(); |
| 11664 | - j["virtual"] = x.get_obj5_virtual(); | |
| 11665 | 11752 | j["true"] = x.get_purple_true(); |
| 11753 | + j["sealed"] = x.get_sealed(); | |
| 11754 | + j["SEL"] = x.get_sel(); | |
| 11755 | + j["select"] = x.get_select(); | |
| 11666 | 11756 | j["Self"] = x.get_self(); |
| 11667 | 11757 | j["Sendable"] = x.get_sendable(); |
| 11758 | + j["SerializationFeature"] = x.get_serialization_feature(); | |
| 11668 | 11759 | j["serialize"] = x.get_serialize(); |
| 11669 | 11760 | j["SerializerProvider"] = x.get_serializer_provider(); |
| 11670 | 11761 | j["set"] = x.get_set(); |
| @@ -11699,9 +11790,17 @@ namespace quicktype { | ||
| 11699 | 11790 | j["unsafe"] = x.get_unsafe(); |
| 11700 | 11791 | j["ushort"] = x.get_ushort(); |
| 11701 | 11792 | j["Utf8JsonReader"] = x.get_utf8_json_reader(); |
| 11702 | - j["Utf8JsonWriter"] = x.get_utf8_json_writer(); | |
| 11703 | - j["UUID"] = x.get_uuid(); | |
| 11704 | - j["var"] = x.get_var(); | |
| 11793 | + } | |
| 11794 | + | |
| 11795 | + inline void from_json(const json & j, Virtual& x) { | |
| 11796 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11797 | + if (j.find("virtual") != j.end() && !j.at("virtual").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11798 | + x.set_virtual_virtual(j.at("virtual").get<int64_t>()); | |
| 11799 | + } | |
| 11800 | + | |
| 11801 | + inline void to_json(json & j, const Virtual & x) { | |
| 11802 | + j = json::object(); | |
| 11803 | + j["virtual"] = x.get_virtual_virtual(); | |
| 11705 | 11804 | } |
| 11706 | 11805 | |
| 11707 | 11806 | inline void from_json(const json & j, Void& x) { |
| @@ -11770,6 +11869,39 @@ namespace quicktype { | ||
| 11770 | 11869 | j["xor_eq"] = x.get_xor_eq_xor_eq(); |
| 11771 | 11870 | } |
| 11772 | 11871 | |
| 11872 | + inline void from_json(const json & j, Utf8JsonWriter& x) { | |
| 11873 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11874 | + if (j.find("Utf8JsonWriter") != j.end() && !j.at("Utf8JsonWriter").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11875 | + x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<int64_t>()); | |
| 11876 | + } | |
| 11877 | + | |
| 11878 | + inline void to_json(json & j, const Utf8JsonWriter & x) { | |
| 11879 | + j = json::object(); | |
| 11880 | + j["Utf8JsonWriter"] = x.get_utf8_json_writer(); | |
| 11881 | + } | |
| 11882 | + | |
| 11883 | + inline void from_json(const json & j, Uuid& x) { | |
| 11884 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11885 | + if (j.find("UUID") != j.end() && !j.at("UUID").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11886 | + x.set_uuid(j.at("UUID").get<int64_t>()); | |
| 11887 | + } | |
| 11888 | + | |
| 11889 | + inline void to_json(json & j, const Uuid & x) { | |
| 11890 | + j = json::object(); | |
| 11891 | + j["UUID"] = x.get_uuid(); | |
| 11892 | + } | |
| 11893 | + | |
| 11894 | + inline void from_json(const json & j, Var& x) { | |
| 11895 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11896 | + if (j.find("var") != j.end() && !j.at("var").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11897 | + x.set_var(j.at("var").get<int64_t>()); | |
| 11898 | + } | |
| 11899 | + | |
| 11900 | + inline void to_json(json & j, const Var & x) { | |
| 11901 | + j = json::object(); | |
| 11902 | + j["var"] = x.get_var(); | |
| 11903 | + } | |
| 11904 | + | |
| 11773 | 11905 | inline void from_json(const json & j, Weak& x) { |
| 11774 | 11906 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11775 | 11907 | if (j.find("weak") != j.end() && !j.at("weak").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11840,12 +11972,16 @@ namespace quicktype { | ||
| 11840 | 11972 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11841 | 11973 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| 11842 | 11974 | x.set_dummy(j.at("dummy").get<int64_t>()); |
| 11975 | + x.set_obj6_virtual(j.at("virtual").get<Virtual>()); | |
| 11843 | 11976 | x.set_obj6_void(j.at("void").get<Void>()); |
| 11844 | 11977 | x.set_obj6_volatile(j.at("volatile").get<Volatile>()); |
| 11845 | 11978 | x.set_obj6_wchar_t(j.at("wchar_t").get<WcharT>()); |
| 11846 | 11979 | x.set_obj6_while(j.at("while").get<While>()); |
| 11847 | 11980 | x.set_obj6_xor(j.at("xor").get<Xor>()); |
| 11848 | 11981 | x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>()); |
| 11982 | + x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>()); | |
| 11983 | + x.set_uuid(j.at("UUID").get<Uuid>()); | |
| 11984 | + x.set_var(j.at("var").get<Var>()); | |
| 11849 | 11985 | x.set_weak(j.at("weak").get<Weak>()); |
| 11850 | 11986 | x.set_where(j.at("where").get<Where>()); |
| 11851 | 11987 | x.set_will_set(j.at("willSet").get<WillSet>()); |
| @@ -11857,12 +11993,16 @@ namespace quicktype { | ||
| 11857 | 11993 | inline void to_json(json & j, const Obj6 & x) { |
| 11858 | 11994 | j = json::object(); |
| 11859 | 11995 | j["dummy"] = x.get_dummy(); |
| 11996 | + j["virtual"] = x.get_obj6_virtual(); | |
| 11860 | 11997 | j["void"] = x.get_obj6_void(); |
| 11861 | 11998 | j["volatile"] = x.get_obj6_volatile(); |
| 11862 | 11999 | j["wchar_t"] = x.get_obj6_wchar_t(); |
| 11863 | 12000 | j["while"] = x.get_obj6_while(); |
| 11864 | 12001 | j["xor"] = x.get_obj6_xor(); |
| 11865 | 12002 | j["xor_eq"] = x.get_obj6_xor_eq(); |
| 12003 | + j["Utf8JsonWriter"] = x.get_utf8_json_writer(); | |
| 12004 | + j["UUID"] = x.get_uuid(); | |
| 12005 | + j["var"] = x.get_var(); | |
| 11866 | 12006 | j["weak"] = x.get_weak(); |
| 11867 | 12007 | j["where"] = x.get_where(); |
| 11868 | 12008 | j["willSet"] = x.get_will_set(); |
Mcrystaldefault / TopLevel.cr+118 −78
| @@ -622,6 +622,9 @@ class Obj2 | ||
| 622 | 622 | |
| 623 | 623 | property delete : Delete |
| 624 | 624 | |
| 625 | + @[JSON::Field(key: "DeserializationFeature")] | |
| 626 | + property deserialization_feature : DeserializationFeature | |
| 627 | + | |
| 625 | 628 | property dict : Dict |
| 626 | 629 | |
| 627 | 630 | property dictionary : Dictionary |
| @@ -704,8 +707,6 @@ class Obj2 | ||
| 704 | 707 | |
| 705 | 708 | property go : Go |
| 706 | 709 | |
| 707 | - property goto : Goto | |
| 708 | - | |
| 709 | 710 | @[JSON::Field(key: "def")] |
| 710 | 711 | property obj2_def : Def |
| 711 | 712 | |
| @@ -849,6 +850,13 @@ class Delete | ||
| 849 | 850 | property delete : Int64 |
| 850 | 851 | end |
| 851 | 852 | |
| 853 | +class DeserializationFeature | |
| 854 | + include JSON::Serializable | |
| 855 | + | |
| 856 | + @[JSON::Field(key: "DeserializationFeature")] | |
| 857 | + property deserialization_feature : Int64 | |
| 858 | +end | |
| 859 | + | |
| 852 | 860 | class Dict |
| 853 | 861 | include JSON::Serializable |
| 854 | 862 | |
| @@ -1077,12 +1085,6 @@ class Go | ||
| 1077 | 1085 | property go : Int64 |
| 1078 | 1086 | end |
| 1079 | 1087 | |
| 1080 | -class Goto | |
| 1081 | - include JSON::Serializable | |
| 1082 | - | |
| 1083 | - property goto : Int64 | |
| 1084 | -end | |
| 1085 | - | |
| 1086 | 1088 | class Def |
| 1087 | 1089 | include JSON::Serializable |
| 1088 | 1090 | |
| @@ -1137,6 +1139,8 @@ class Obj3 | ||
| 1137 | 1139 | |
| 1138 | 1140 | property dummy : Int64 |
| 1139 | 1141 | |
| 1142 | + property goto : Goto | |
| 1143 | + | |
| 1140 | 1144 | property guard : Guard |
| 1141 | 1145 | |
| 1142 | 1146 | @[JSON::Field(key: "hasOwnProperty")] |
| @@ -1275,8 +1279,6 @@ class Obj3 | ||
| 1275 | 1279 | @[JSON::Field(key: "NO")] |
| 1276 | 1280 | property no : No |
| 1277 | 1281 | |
| 1278 | - property noexcept : Noexcept | |
| 1279 | - | |
| 1280 | 1282 | @[JSON::Field(key: "if")] |
| 1281 | 1283 | property obj3_if : If |
| 1282 | 1284 | |
| @@ -1290,6 +1292,12 @@ class Obj3 | ||
| 1290 | 1292 | property obj3_nil : NilClass |
| 1291 | 1293 | end |
| 1292 | 1294 | |
| 1295 | +class Goto | |
| 1296 | + include JSON::Serializable | |
| 1297 | + | |
| 1298 | + property goto : Int64 | |
| 1299 | +end | |
| 1300 | + | |
| 1293 | 1301 | class Guard |
| 1294 | 1302 | include JSON::Serializable |
| 1295 | 1303 | |
| @@ -1664,12 +1672,6 @@ class No | ||
| 1664 | 1672 | property no : Int64 |
| 1665 | 1673 | end |
| 1666 | 1674 | |
| 1667 | -class Noexcept | |
| 1668 | - include JSON::Serializable | |
| 1669 | - | |
| 1670 | - property noexcept : Int64 | |
| 1671 | -end | |
| 1672 | - | |
| 1673 | 1675 | class If |
| 1674 | 1676 | include JSON::Serializable |
| 1675 | 1677 | |
| @@ -1706,6 +1708,8 @@ class Obj4 | ||
| 1706 | 1708 | @[JSON::Field(key: "noSuchMethod")] |
| 1707 | 1709 | property no_such_method : NoSuchMethod |
| 1708 | 1710 | |
| 1711 | + property noexcept : Noexcept | |
| 1712 | + | |
| 1709 | 1713 | property nonatomic : Nonatomic |
| 1710 | 1714 | |
| 1711 | 1715 | @[JSON::Field(key: "None")] |
| @@ -1762,14 +1766,17 @@ class Obj4 | ||
| 1762 | 1766 | @[JSON::Field(key: "return")] |
| 1763 | 1767 | property obj4_return : Return |
| 1764 | 1768 | |
| 1765 | - @[JSON::Field(key: "select")] | |
| 1766 | - property obj4_select : Select | |
| 1767 | - | |
| 1768 | 1769 | property object : ObjectClass |
| 1769 | 1770 | |
| 1770 | 1771 | @[JSON::Field(key: "ObjectMapper")] |
| 1771 | 1772 | property object_mapper : ObjectMapper |
| 1772 | 1773 | |
| 1774 | + @[JSON::Field(key: "ObjectReader")] | |
| 1775 | + property object_reader : ObjectReader | |
| 1776 | + | |
| 1777 | + @[JSON::Field(key: "ObjectWriter")] | |
| 1778 | + property object_writer : ObjectWriter | |
| 1779 | + | |
| 1773 | 1780 | property oneway : Oneway |
| 1774 | 1781 | |
| 1775 | 1782 | property open : Open |
| @@ -1847,11 +1854,6 @@ class Obj4 | ||
| 1847 | 1854 | property s : S |
| 1848 | 1855 | |
| 1849 | 1856 | property sbyte : Sbyte |
| 1850 | - | |
| 1851 | - property sealed : Sealed | |
| 1852 | - | |
| 1853 | - @[JSON::Field(key: "SEL")] | |
| 1854 | - property sel : Sel | |
| 1855 | 1857 | end |
| 1856 | 1858 | |
| 1857 | 1859 | class NoSuchMethod |
| @@ -1861,6 +1863,12 @@ class NoSuchMethod | ||
| 1861 | 1863 | property no_such_method : Int64 |
| 1862 | 1864 | end |
| 1863 | 1865 | |
| 1866 | +class Noexcept | |
| 1867 | + include JSON::Serializable | |
| 1868 | + | |
| 1869 | + property noexcept : Int64 | |
| 1870 | +end | |
| 1871 | + | |
| 1864 | 1872 | class Nonatomic |
| 1865 | 1873 | include JSON::Serializable |
| 1866 | 1874 | |
| @@ -1998,13 +2006,6 @@ class Return | ||
| 1998 | 2006 | property return_return : Int64 |
| 1999 | 2007 | end |
| 2000 | 2008 | |
| 2001 | -class Select | |
| 2002 | - include JSON::Serializable | |
| 2003 | - | |
| 2004 | - @[JSON::Field(key: "select")] | |
| 2005 | - property select_select : Int64 | |
| 2006 | -end | |
| 2007 | - | |
| 2008 | 2009 | class ObjectClass |
| 2009 | 2010 | include JSON::Serializable |
| 2010 | 2011 | |
| @@ -2018,6 +2019,20 @@ class ObjectMapper | ||
| 2018 | 2019 | property object_mapper : Int64 |
| 2019 | 2020 | end |
| 2020 | 2021 | |
| 2022 | +class ObjectReader | |
| 2023 | + include JSON::Serializable | |
| 2024 | + | |
| 2025 | + @[JSON::Field(key: "ObjectReader")] | |
| 2026 | + property object_reader : Int64 | |
| 2027 | +end | |
| 2028 | + | |
| 2029 | +class ObjectWriter | |
| 2030 | + include JSON::Serializable | |
| 2031 | + | |
| 2032 | + @[JSON::Field(key: "ObjectWriter")] | |
| 2033 | + property object_writer : Int64 | |
| 2034 | +end | |
| 2035 | + | |
| 2021 | 2036 | class Oneway |
| 2022 | 2037 | include JSON::Serializable |
| 2023 | 2038 | |
| @@ -2244,24 +2259,14 @@ class Sbyte | ||
| 2244 | 2259 | property sbyte : Int64 |
| 2245 | 2260 | end |
| 2246 | 2261 | |
| 2247 | -class Sealed | |
| 2248 | - include JSON::Serializable | |
| 2249 | - | |
| 2250 | - property sealed : Int64 | |
| 2251 | -end | |
| 2252 | - | |
| 2253 | -class Sel | |
| 2254 | - include JSON::Serializable | |
| 2255 | - | |
| 2256 | - @[JSON::Field(key: "SEL")] | |
| 2257 | - property sel : Int64 | |
| 2258 | -end | |
| 2259 | - | |
| 2260 | 2262 | class Obj5 |
| 2261 | 2263 | include JSON::Serializable |
| 2262 | 2264 | |
| 2263 | 2265 | property dummy : Int64 |
| 2264 | 2266 | |
| 2267 | + @[JSON::Field(key: "select")] | |
| 2268 | + property obj5_select : Select | |
| 2269 | + | |
| 2265 | 2270 | @[JSON::Field(key: "Self")] |
| 2266 | 2271 | property obj5_self : Self |
| 2267 | 2272 | |
| @@ -2301,9 +2306,17 @@ class Obj5 | ||
| 2301 | 2306 | @[JSON::Field(key: "type")] |
| 2302 | 2307 | property purple_type : TypeClass |
| 2303 | 2308 | |
| 2309 | + property sealed : Sealed | |
| 2310 | + | |
| 2311 | + @[JSON::Field(key: "SEL")] | |
| 2312 | + property sel : Sel | |
| 2313 | + | |
| 2304 | 2314 | @[JSON::Field(key: "Sendable")] |
| 2305 | 2315 | property sendable : Sendable |
| 2306 | 2316 | |
| 2317 | + @[JSON::Field(key: "SerializationFeature")] | |
| 2318 | + property serialization_feature : SerializationFeature | |
| 2319 | + | |
| 2307 | 2320 | property serialize : Serialize |
| 2308 | 2321 | |
| 2309 | 2322 | @[JSON::Field(key: "SerializerProvider")] |
| @@ -2405,16 +2418,13 @@ class Obj5 | ||
| 2405 | 2418 | |
| 2406 | 2419 | @[JSON::Field(key: "Utf8JsonReader")] |
| 2407 | 2420 | property utf8_json_reader : Utf8JsonReader |
| 2421 | +end | |
| 2408 | 2422 | |
| 2409 | - @[JSON::Field(key: "Utf8JsonWriter")] | |
| 2410 | - property utf8_json_writer : Utf8JsonWriter | |
| 2411 | - | |
| 2412 | - @[JSON::Field(key: "UUID")] | |
| 2413 | - property uuid : Uuid | |
| 2414 | - | |
| 2415 | - property var : Var | |
| 2423 | +class Select | |
| 2424 | + include JSON::Serializable | |
| 2416 | 2425 | |
| 2417 | - property virtual : Virtual | |
| 2426 | + @[JSON::Field(key: "select")] | |
| 2427 | + property select_select : Int64 | |
| 2418 | 2428 | end |
| 2419 | 2429 | |
| 2420 | 2430 | class Self |
| @@ -2508,6 +2518,19 @@ class TypeClass | ||
| 2508 | 2518 | property type_type : Int64 |
| 2509 | 2519 | end |
| 2510 | 2520 | |
| 2521 | +class Sealed | |
| 2522 | + include JSON::Serializable | |
| 2523 | + | |
| 2524 | + property sealed : Int64 | |
| 2525 | +end | |
| 2526 | + | |
| 2527 | +class Sel | |
| 2528 | + include JSON::Serializable | |
| 2529 | + | |
| 2530 | + @[JSON::Field(key: "SEL")] | |
| 2531 | + property sel : Int64 | |
| 2532 | +end | |
| 2533 | + | |
| 2511 | 2534 | class Sendable |
| 2512 | 2535 | include JSON::Serializable |
| 2513 | 2536 | |
| @@ -2515,6 +2538,13 @@ class Sendable | ||
| 2515 | 2538 | property sendable : Int64 |
| 2516 | 2539 | end |
| 2517 | 2540 | |
| 2541 | +class SerializationFeature | |
| 2542 | + include JSON::Serializable | |
| 2543 | + | |
| 2544 | + @[JSON::Field(key: "SerializationFeature")] | |
| 2545 | + property serialization_feature : Int64 | |
| 2546 | +end | |
| 2547 | + | |
| 2518 | 2548 | class Serialize |
| 2519 | 2549 | include JSON::Serializable |
| 2520 | 2550 | |
| @@ -2801,32 +2831,6 @@ class Utf8JsonReader | ||
| 2801 | 2831 | property utf8_json_reader : Int64 |
| 2802 | 2832 | end |
| 2803 | 2833 | |
| 2804 | -class Utf8JsonWriter | |
| 2805 | - include JSON::Serializable | |
| 2806 | - | |
| 2807 | - @[JSON::Field(key: "Utf8JsonWriter")] | |
| 2808 | - property utf8_json_writer : Int64 | |
| 2809 | -end | |
| 2810 | - | |
| 2811 | -class Uuid | |
| 2812 | - include JSON::Serializable | |
| 2813 | - | |
| 2814 | - @[JSON::Field(key: "UUID")] | |
| 2815 | - property uuid : Int64 | |
| 2816 | -end | |
| 2817 | - | |
| 2818 | -class Var | |
| 2819 | - include JSON::Serializable | |
| 2820 | - | |
| 2821 | - property var : Int64 | |
| 2822 | -end | |
| 2823 | - | |
| 2824 | -class Virtual | |
| 2825 | - include JSON::Serializable | |
| 2826 | - | |
| 2827 | - property virtual : Int64 | |
| 2828 | -end | |
| 2829 | - | |
| 2830 | 2834 | class Obj6 |
| 2831 | 2835 | include JSON::Serializable |
| 2832 | 2836 | |
| @@ -2841,6 +2845,16 @@ class Obj6 | ||
| 2841 | 2845 | @[JSON::Field(key: "yield")] |
| 2842 | 2846 | property obj6_yield : Yield |
| 2843 | 2847 | |
| 2848 | + @[JSON::Field(key: "Utf8JsonWriter")] | |
| 2849 | + property utf8_json_writer : Utf8JsonWriter | |
| 2850 | + | |
| 2851 | + @[JSON::Field(key: "UUID")] | |
| 2852 | + property uuid : Uuid | |
| 2853 | + | |
| 2854 | + property var : Var | |
| 2855 | + | |
| 2856 | + property virtual : Virtual | |
| 2857 | + | |
| 2844 | 2858 | property void : VoidClass |
| 2845 | 2859 | |
| 2846 | 2860 | property volatile : Volatile |
| @@ -2883,6 +2897,32 @@ class Yield | ||
| 2883 | 2897 | property yield_yield : Int64 |
| 2884 | 2898 | end |
| 2885 | 2899 | |
| 2900 | +class Utf8JsonWriter | |
| 2901 | + include JSON::Serializable | |
| 2902 | + | |
| 2903 | + @[JSON::Field(key: "Utf8JsonWriter")] | |
| 2904 | + property utf8_json_writer : Int64 | |
| 2905 | +end | |
| 2906 | + | |
| 2907 | +class Uuid | |
| 2908 | + include JSON::Serializable | |
| 2909 | + | |
| 2910 | + @[JSON::Field(key: "UUID")] | |
| 2911 | + property uuid : Int64 | |
| 2912 | +end | |
| 2913 | + | |
| 2914 | +class Var | |
| 2915 | + include JSON::Serializable | |
| 2916 | + | |
| 2917 | + property var : Int64 | |
| 2918 | +end | |
| 2919 | + | |
| 2920 | +class Virtual | |
| 2921 | + include JSON::Serializable | |
| 2922 | + | |
| 2923 | + property virtual : Int64 | |
| 2924 | +end | |
| 2925 | + | |
| 2886 | 2926 | class VoidClass |
| 2887 | 2927 | include JSON::Serializable |
Mcsharp-recordsdefault / QuickType.cs+112 −76
| @@ -691,6 +691,9 @@ namespace QuickType | ||
| 691 | 691 | [JsonProperty("delete", Required = Required.Always)] |
| 692 | 692 | public Delete Delete { get; set; } |
| 693 | 693 | |
| 694 | + [JsonProperty("DeserializationFeature", Required = Required.Always)] | |
| 695 | + public DeserializationFeature DeserializationFeature { get; set; } | |
| 696 | + | |
| 694 | 697 | [JsonProperty("dict", Required = Required.Always)] |
| 695 | 698 | public Dict Dict { get; set; } |
| 696 | 699 | |
| @@ -814,9 +817,6 @@ namespace QuickType | ||
| 814 | 817 | [JsonProperty("go", Required = Required.Always)] |
| 815 | 818 | public Go Go { get; set; } |
| 816 | 819 | |
| 817 | - [JsonProperty("goto", Required = Required.Always)] | |
| 818 | - public Goto Goto { get; set; } | |
| 819 | - | |
| 820 | 820 | [JsonProperty("equalityContract", Required = Required.Always)] |
| 821 | 821 | public EqualityContractClass Obj2EqualityContract { get; set; } |
| 822 | 822 | |
| @@ -947,6 +947,12 @@ namespace QuickType | ||
| 947 | 947 | public long DeleteDelete { get; set; } |
| 948 | 948 | } |
| 949 | 949 | |
| 950 | + public partial record DeserializationFeature | |
| 951 | + { | |
| 952 | + [JsonProperty("DeserializationFeature", Required = Required.Always)] | |
| 953 | + public long DeserializationFeatureDeserializationFeature { get; set; } | |
| 954 | + } | |
| 955 | + | |
| 950 | 956 | public partial record Dict |
| 951 | 957 | { |
| 952 | 958 | [JsonProperty("dict", Required = Required.Always)] |
| @@ -1187,12 +1193,6 @@ namespace QuickType | ||
| 1187 | 1193 | public long GoGo { get; set; } |
| 1188 | 1194 | } |
| 1189 | 1195 | |
| 1190 | - public partial record Goto | |
| 1191 | - { | |
| 1192 | - [JsonProperty("goto", Required = Required.Always)] | |
| 1193 | - public long GotoGoto { get; set; } | |
| 1194 | - } | |
| 1195 | - | |
| 1196 | 1196 | public partial record EqualityContractClass |
| 1197 | 1197 | { |
| 1198 | 1198 | [JsonProperty("equalityContract", Required = Required.Always)] |
| @@ -1216,6 +1216,9 @@ namespace QuickType | ||
| 1216 | 1216 | [JsonProperty("dummy", Required = Required.Always)] |
| 1217 | 1217 | public long Dummy { get; set; } |
| 1218 | 1218 | |
| 1219 | + [JsonProperty("goto", Required = Required.Always)] | |
| 1220 | + public Goto Goto { get; set; } | |
| 1221 | + | |
| 1219 | 1222 | [JsonProperty("guard", Required = Required.Always)] |
| 1220 | 1223 | public Guard Guard { get; set; } |
| 1221 | 1224 | |
| @@ -1404,9 +1407,12 @@ namespace QuickType | ||
| 1404 | 1407 | |
| 1405 | 1408 | [JsonProperty("NO", Required = Required.Always)] |
| 1406 | 1409 | public No No { get; set; } |
| 1410 | + } | |
| 1407 | 1411 | |
| 1408 | - [JsonProperty("noexcept", Required = Required.Always)] | |
| 1409 | - public Noexcept Noexcept { get; set; } | |
| 1412 | + public partial record Goto | |
| 1413 | + { | |
| 1414 | + [JsonProperty("goto", Required = Required.Always)] | |
| 1415 | + public long GotoGoto { get; set; } | |
| 1410 | 1416 | } |
| 1411 | 1417 | |
| 1412 | 1418 | public partial record Guard |
| @@ -1787,12 +1793,6 @@ namespace QuickType | ||
| 1787 | 1793 | public long NoNo { get; set; } |
| 1788 | 1794 | } |
| 1789 | 1795 | |
| 1790 | - public partial record Noexcept | |
| 1791 | - { | |
| 1792 | - [JsonProperty("noexcept", Required = Required.Always)] | |
| 1793 | - public long NoexceptNoexcept { get; set; } | |
| 1794 | - } | |
| 1795 | - | |
| 1796 | 1796 | public partial record Obj4 |
| 1797 | 1797 | { |
| 1798 | 1798 | [JsonProperty("dummy", Required = Required.Always)] |
| @@ -1801,6 +1801,9 @@ namespace QuickType | ||
| 1801 | 1801 | [JsonProperty("noSuchMethod", Required = Required.Always)] |
| 1802 | 1802 | public NoSuchMethod NoSuchMethod { get; set; } |
| 1803 | 1803 | |
| 1804 | + [JsonProperty("noexcept", Required = Required.Always)] | |
| 1805 | + public Noexcept Noexcept { get; set; } | |
| 1806 | + | |
| 1804 | 1807 | [JsonProperty("nonatomic", Required = Required.Always)] |
| 1805 | 1808 | public Nonatomic Nonatomic { get; set; } |
| 1806 | 1809 | |
| @@ -1858,6 +1861,12 @@ namespace QuickType | ||
| 1858 | 1861 | [JsonProperty("ObjectMapper", Required = Required.Always)] |
| 1859 | 1862 | public ObjectMapper ObjectMapper { get; set; } |
| 1860 | 1863 | |
| 1864 | + [JsonProperty("ObjectReader", Required = Required.Always)] | |
| 1865 | + public ObjectReader ObjectReader { get; set; } | |
| 1866 | + | |
| 1867 | + [JsonProperty("ObjectWriter", Required = Required.Always)] | |
| 1868 | + public ObjectWriter ObjectWriter { get; set; } | |
| 1869 | + | |
| 1861 | 1870 | [JsonProperty("of", Required = Required.Always)] |
| 1862 | 1871 | public Of Of { get; set; } |
| 1863 | 1872 | |
| @@ -1980,15 +1989,6 @@ namespace QuickType | ||
| 1980 | 1989 | |
| 1981 | 1990 | [JsonProperty("sbyte", Required = Required.Always)] |
| 1982 | 1991 | public Sbyte Sbyte { get; set; } |
| 1983 | - | |
| 1984 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 1985 | - public Sealed Sealed { get; set; } | |
| 1986 | - | |
| 1987 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 1988 | - public Sel Sel { get; set; } | |
| 1989 | - | |
| 1990 | - [JsonProperty("select", Required = Required.Always)] | |
| 1991 | - public Select Select { get; set; } | |
| 1992 | 1992 | } |
| 1993 | 1993 | |
| 1994 | 1994 | public partial record NoSuchMethod |
| @@ -1997,6 +1997,12 @@ namespace QuickType | ||
| 1997 | 1997 | public long NoSuchMethodNoSuchMethod { get; set; } |
| 1998 | 1998 | } |
| 1999 | 1999 | |
| 2000 | + public partial record Noexcept | |
| 2001 | + { | |
| 2002 | + [JsonProperty("noexcept", Required = Required.Always)] | |
| 2003 | + public long NoexceptNoexcept { get; set; } | |
| 2004 | + } | |
| 2005 | + | |
| 2000 | 2006 | public partial record Nonatomic |
| 2001 | 2007 | { |
| 2002 | 2008 | [JsonProperty("nonatomic", Required = Required.Always)] |
| @@ -2111,6 +2117,18 @@ namespace QuickType | ||
| 2111 | 2117 | public long ObjectMapperObjectMapper { get; set; } |
| 2112 | 2118 | } |
| 2113 | 2119 | |
| 2120 | + public partial record ObjectReader | |
| 2121 | + { | |
| 2122 | + [JsonProperty("ObjectReader", Required = Required.Always)] | |
| 2123 | + public long ObjectReaderObjectReader { get; set; } | |
| 2124 | + } | |
| 2125 | + | |
| 2126 | + public partial record ObjectWriter | |
| 2127 | + { | |
| 2128 | + [JsonProperty("ObjectWriter", Required = Required.Always)] | |
| 2129 | + public long ObjectWriterObjectWriter { get; set; } | |
| 2130 | + } | |
| 2131 | + | |
| 2114 | 2132 | public partial record Of |
| 2115 | 2133 | { |
| 2116 | 2134 | [JsonProperty("of", Required = Required.Always)] |
| @@ -2357,24 +2375,6 @@ namespace QuickType | ||
| 2357 | 2375 | public long SbyteSbyte { get; set; } |
| 2358 | 2376 | } |
| 2359 | 2377 | |
| 2360 | - public partial record Sealed | |
| 2361 | - { | |
| 2362 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 2363 | - public long SealedSealed { get; set; } | |
| 2364 | - } | |
| 2365 | - | |
| 2366 | - public partial record Sel | |
| 2367 | - { | |
| 2368 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 2369 | - public long SelSel { get; set; } | |
| 2370 | - } | |
| 2371 | - | |
| 2372 | - public partial record Select | |
| 2373 | - { | |
| 2374 | - [JsonProperty("select", Required = Required.Always)] | |
| 2375 | - public long SelectSelect { get; set; } | |
| 2376 | - } | |
| 2377 | - | |
| 2378 | 2378 | public partial record Obj5 |
| 2379 | 2379 | { |
| 2380 | 2380 | [JsonProperty("dummy", Required = Required.Always)] |
| @@ -2395,12 +2395,24 @@ namespace QuickType | ||
| 2395 | 2395 | [JsonProperty("type", Required = Required.Always)] |
| 2396 | 2396 | public Obj5Type Obj5Type { get; set; } |
| 2397 | 2397 | |
| 2398 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2399 | + public Sealed Sealed { get; set; } | |
| 2400 | + | |
| 2401 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2402 | + public Sel Sel { get; set; } | |
| 2403 | + | |
| 2404 | + [JsonProperty("select", Required = Required.Always)] | |
| 2405 | + public Select Select { get; set; } | |
| 2406 | + | |
| 2398 | 2407 | [JsonProperty("Self", Required = Required.Always)] |
| 2399 | 2408 | public Self Self { get; set; } |
| 2400 | 2409 | |
| 2401 | 2410 | [JsonProperty("Sendable", Required = Required.Always)] |
| 2402 | 2411 | public Sendable Sendable { get; set; } |
| 2403 | 2412 | |
| 2413 | + [JsonProperty("SerializationFeature", Required = Required.Always)] | |
| 2414 | + public SerializationFeature SerializationFeature { get; set; } | |
| 2415 | + | |
| 2404 | 2416 | [JsonProperty("serialize", Required = Required.Always)] |
| 2405 | 2417 | public SerializeClass Serialize { get; set; } |
| 2406 | 2418 | |
| @@ -2559,18 +2571,6 @@ namespace QuickType | ||
| 2559 | 2571 | |
| 2560 | 2572 | [JsonProperty("Utf8JsonReader", Required = Required.Always)] |
| 2561 | 2573 | public Utf8JsonReader Utf8JsonReader { get; set; } |
| 2562 | - | |
| 2563 | - [JsonProperty("Utf8JsonWriter", Required = Required.Always)] | |
| 2564 | - public Utf8JsonWriter Utf8JsonWriter { get; set; } | |
| 2565 | - | |
| 2566 | - [JsonProperty("UUID", Required = Required.Always)] | |
| 2567 | - public Uuid Uuid { get; set; } | |
| 2568 | - | |
| 2569 | - [JsonProperty("var", Required = Required.Always)] | |
| 2570 | - public Var Var { get; set; } | |
| 2571 | - | |
| 2572 | - [JsonProperty("virtual", Required = Required.Always)] | |
| 2573 | - public Virtual Virtual { get; set; } | |
| 2574 | 2574 | } |
| 2575 | 2575 | |
| 2576 | 2576 | public partial record SelfClass |
| @@ -2603,6 +2603,24 @@ namespace QuickType | ||
| 2603 | 2603 | public long Type { get; set; } |
| 2604 | 2604 | } |
| 2605 | 2605 | |
| 2606 | + public partial record Sealed | |
| 2607 | + { | |
| 2608 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2609 | + public long SealedSealed { get; set; } | |
| 2610 | + } | |
| 2611 | + | |
| 2612 | + public partial record Sel | |
| 2613 | + { | |
| 2614 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2615 | + public long SelSel { get; set; } | |
| 2616 | + } | |
| 2617 | + | |
| 2618 | + public partial record Select | |
| 2619 | + { | |
| 2620 | + [JsonProperty("select", Required = Required.Always)] | |
| 2621 | + public long SelectSelect { get; set; } | |
| 2622 | + } | |
| 2623 | + | |
| 2606 | 2624 | public partial record Self |
| 2607 | 2625 | { |
| 2608 | 2626 | [JsonProperty("Self", Required = Required.Always)] |
| @@ -2615,6 +2633,12 @@ namespace QuickType | ||
| 2615 | 2633 | public long SendableSendable { get; set; } |
| 2616 | 2634 | } |
| 2617 | 2635 | |
| 2636 | + public partial record SerializationFeature | |
| 2637 | + { | |
| 2638 | + [JsonProperty("SerializationFeature", Required = Required.Always)] | |
| 2639 | + public long SerializationFeatureSerializationFeature { get; set; } | |
| 2640 | + } | |
| 2641 | + | |
| 2618 | 2642 | public partial record SerializeClass |
| 2619 | 2643 | { |
| 2620 | 2644 | [JsonProperty("serialize", Required = Required.Always)] |
| @@ -2933,34 +2957,22 @@ namespace QuickType | ||
| 2933 | 2957 | public long Utf8JsonReaderUtf8JsonReader { get; set; } |
| 2934 | 2958 | } |
| 2935 | 2959 | |
| 2936 | - public partial record Utf8JsonWriter | |
| 2960 | + public partial record Obj6 | |
| 2937 | 2961 | { |
| 2962 | + [JsonProperty("dummy", Required = Required.Always)] | |
| 2963 | + public long Dummy { get; set; } | |
| 2964 | + | |
| 2938 | 2965 | [JsonProperty("Utf8JsonWriter", Required = Required.Always)] |
| 2939 | - public long Utf8JsonWriterUtf8JsonWriter { get; set; } | |
| 2940 | - } | |
| 2966 | + public Utf8JsonWriter Utf8JsonWriter { get; set; } | |
| 2941 | 2967 | |
| 2942 | - public partial record Uuid | |
| 2943 | - { | |
| 2944 | 2968 | [JsonProperty("UUID", Required = Required.Always)] |
| 2945 | - public long UuidUuid { get; set; } | |
| 2946 | - } | |
| 2969 | + public Uuid Uuid { get; set; } | |
| 2947 | 2970 | |
| 2948 | - public partial record Var | |
| 2949 | - { | |
| 2950 | 2971 | [JsonProperty("var", Required = Required.Always)] |
| 2951 | - public long VarVar { get; set; } | |
| 2952 | - } | |
| 2972 | + public Var Var { get; set; } | |
| 2953 | 2973 | |
| 2954 | - public partial record Virtual | |
| 2955 | - { | |
| 2956 | 2974 | [JsonProperty("virtual", Required = Required.Always)] |
| 2957 | - public long VirtualVirtual { get; set; } | |
| 2958 | - } | |
| 2959 | - | |
| 2960 | - public partial record Obj6 | |
| 2961 | - { | |
| 2962 | - [JsonProperty("dummy", Required = Required.Always)] | |
| 2963 | - public long Dummy { get; set; } | |
| 2975 | + public Virtual Virtual { get; set; } | |
| 2964 | 2976 | |
| 2965 | 2977 | [JsonProperty("void", Required = Required.Always)] |
| 2966 | 2978 | public Void Void { get; set; } |
| @@ -2999,6 +3011,30 @@ namespace QuickType | ||
| 2999 | 3011 | public Yield Yield { get; set; } |
| 3000 | 3012 | } |
| 3001 | 3013 | |
| 3014 | + public partial record Utf8JsonWriter | |
| 3015 | + { | |
| 3016 | + [JsonProperty("Utf8JsonWriter", Required = Required.Always)] | |
| 3017 | + public long Utf8JsonWriterUtf8JsonWriter { get; set; } | |
| 3018 | + } | |
| 3019 | + | |
| 3020 | + public partial record Uuid | |
| 3021 | + { | |
| 3022 | + [JsonProperty("UUID", Required = Required.Always)] | |
| 3023 | + public long UuidUuid { get; set; } | |
| 3024 | + } | |
| 3025 | + | |
| 3026 | + public partial record Var | |
| 3027 | + { | |
| 3028 | + [JsonProperty("var", Required = Required.Always)] | |
| 3029 | + public long VarVar { get; set; } | |
| 3030 | + } | |
| 3031 | + | |
| 3032 | + public partial record Virtual | |
| 3033 | + { | |
| 3034 | + [JsonProperty("virtual", Required = Required.Always)] | |
| 3035 | + public long VirtualVirtual { get; set; } | |
| 3036 | + } | |
| 3037 | + | |
| 3002 | 3038 | public partial record Void |
| 3003 | 3039 | { |
| 3004 | 3040 | [JsonProperty("void", Required = Required.Always)] |
Mcsharp-SystemTextJsondefault / QuickType.cs+134 −90
| @@ -844,6 +844,10 @@ namespace QuickType | ||
| 844 | 844 | [JsonPropertyName("delete")] |
| 845 | 845 | public Delete Delete { get; set; } |
| 846 | 846 | |
| 847 | + [JsonRequired] | |
| 848 | + [JsonPropertyName("DeserializationFeature")] | |
| 849 | + public DeserializationFeature DeserializationFeature { get; set; } | |
| 850 | + | |
| 847 | 851 | [JsonRequired] |
| 848 | 852 | [JsonPropertyName("dict")] |
| 849 | 853 | public Dict Dict { get; set; } |
| @@ -1012,10 +1016,6 @@ namespace QuickType | ||
| 1012 | 1016 | [JsonPropertyName("go")] |
| 1013 | 1017 | public Go Go { get; set; } |
| 1014 | 1018 | |
| 1015 | - [JsonRequired] | |
| 1016 | - [JsonPropertyName("goto")] | |
| 1017 | - public Goto Goto { get; set; } | |
| 1018 | - | |
| 1019 | 1019 | [JsonRequired] |
| 1020 | 1020 | [JsonPropertyName("false")] |
| 1021 | 1021 | public FalseClass Obj2False { get; set; } |
| @@ -1165,6 +1165,13 @@ namespace QuickType | ||
| 1165 | 1165 | public long DeleteDelete { get; set; } |
| 1166 | 1166 | } |
| 1167 | 1167 | |
| 1168 | + public partial class DeserializationFeature | |
| 1169 | + { | |
| 1170 | + [JsonRequired] | |
| 1171 | + [JsonPropertyName("DeserializationFeature")] | |
| 1172 | + public long DeserializationFeatureDeserializationFeature { get; set; } | |
| 1173 | + } | |
| 1174 | + | |
| 1168 | 1175 | public partial class Dict |
| 1169 | 1176 | { |
| 1170 | 1177 | [JsonRequired] |
| @@ -1452,13 +1459,6 @@ namespace QuickType | ||
| 1452 | 1459 | public long GoGo { get; set; } |
| 1453 | 1460 | } |
| 1454 | 1461 | |
| 1455 | - public partial class Goto | |
| 1456 | - { | |
| 1457 | - [JsonRequired] | |
| 1458 | - [JsonPropertyName("goto")] | |
| 1459 | - public long GotoGoto { get; set; } | |
| 1460 | - } | |
| 1461 | - | |
| 1462 | 1462 | public partial class FalseClass |
| 1463 | 1463 | { |
| 1464 | 1464 | [JsonRequired] |
| @@ -1479,6 +1479,10 @@ namespace QuickType | ||
| 1479 | 1479 | [JsonPropertyName("dummy")] |
| 1480 | 1480 | public long Dummy { get; set; } |
| 1481 | 1481 | |
| 1482 | + [JsonRequired] | |
| 1483 | + [JsonPropertyName("goto")] | |
| 1484 | + public Goto Goto { get; set; } | |
| 1485 | + | |
| 1482 | 1486 | [JsonRequired] |
| 1483 | 1487 | [JsonPropertyName("guard")] |
| 1484 | 1488 | public Guard Guard { get; set; } |
| @@ -1730,10 +1734,13 @@ namespace QuickType | ||
| 1730 | 1734 | [JsonRequired] |
| 1731 | 1735 | [JsonPropertyName("NO")] |
| 1732 | 1736 | public No No { get; set; } |
| 1737 | + } | |
| 1733 | 1738 | |
| 1739 | + public partial class Goto | |
| 1740 | + { | |
| 1734 | 1741 | [JsonRequired] |
| 1735 | - [JsonPropertyName("noexcept")] | |
| 1736 | - public Noexcept Noexcept { get; set; } | |
| 1742 | + [JsonPropertyName("goto")] | |
| 1743 | + public long GotoGoto { get; set; } | |
| 1737 | 1744 | } |
| 1738 | 1745 | |
| 1739 | 1746 | public partial class Guard |
| @@ -2177,13 +2184,6 @@ namespace QuickType | ||
| 2177 | 2184 | public long NoNo { get; set; } |
| 2178 | 2185 | } |
| 2179 | 2186 | |
| 2180 | - public partial class Noexcept | |
| 2181 | - { | |
| 2182 | - [JsonRequired] | |
| 2183 | - [JsonPropertyName("noexcept")] | |
| 2184 | - public long NoexceptNoexcept { get; set; } | |
| 2185 | - } | |
| 2186 | - | |
| 2187 | 2187 | public partial class Obj4 |
| 2188 | 2188 | { |
| 2189 | 2189 | [JsonRequired] |
| @@ -2194,6 +2194,10 @@ namespace QuickType | ||
| 2194 | 2194 | [JsonPropertyName("noSuchMethod")] |
| 2195 | 2195 | public NoSuchMethod NoSuchMethod { get; set; } |
| 2196 | 2196 | |
| 2197 | + [JsonRequired] | |
| 2198 | + [JsonPropertyName("noexcept")] | |
| 2199 | + public Noexcept Noexcept { get; set; } | |
| 2200 | + | |
| 2197 | 2201 | [JsonRequired] |
| 2198 | 2202 | [JsonPropertyName("nonatomic")] |
| 2199 | 2203 | public Nonatomic Nonatomic { get; set; } |
| @@ -2266,6 +2270,14 @@ namespace QuickType | ||
| 2266 | 2270 | [JsonPropertyName("ObjectMapper")] |
| 2267 | 2271 | public ObjectMapper ObjectMapper { get; set; } |
| 2268 | 2272 | |
| 2273 | + [JsonRequired] | |
| 2274 | + [JsonPropertyName("ObjectReader")] | |
| 2275 | + public ObjectReader ObjectReader { get; set; } | |
| 2276 | + | |
| 2277 | + [JsonRequired] | |
| 2278 | + [JsonPropertyName("ObjectWriter")] | |
| 2279 | + public ObjectWriter ObjectWriter { get; set; } | |
| 2280 | + | |
| 2269 | 2281 | [JsonRequired] |
| 2270 | 2282 | [JsonPropertyName("of")] |
| 2271 | 2283 | public Of Of { get; set; } |
| @@ -2433,18 +2445,6 @@ namespace QuickType | ||
| 2433 | 2445 | [JsonRequired] |
| 2434 | 2446 | [JsonPropertyName("sbyte")] |
| 2435 | 2447 | public Sbyte Sbyte { get; set; } |
| 2436 | - | |
| 2437 | - [JsonRequired] | |
| 2438 | - [JsonPropertyName("sealed")] | |
| 2439 | - public Sealed Sealed { get; set; } | |
| 2440 | - | |
| 2441 | - [JsonRequired] | |
| 2442 | - [JsonPropertyName("SEL")] | |
| 2443 | - public Sel Sel { get; set; } | |
| 2444 | - | |
| 2445 | - [JsonRequired] | |
| 2446 | - [JsonPropertyName("select")] | |
| 2447 | - public Select Select { get; set; } | |
| 2448 | 2448 | } |
| 2449 | 2449 | |
| 2450 | 2450 | public partial class NoSuchMethod |
| @@ -2454,6 +2454,13 @@ namespace QuickType | ||
| 2454 | 2454 | public long NoSuchMethodNoSuchMethod { get; set; } |
| 2455 | 2455 | } |
| 2456 | 2456 | |
| 2457 | + public partial class Noexcept | |
| 2458 | + { | |
| 2459 | + [JsonRequired] | |
| 2460 | + [JsonPropertyName("noexcept")] | |
| 2461 | + public long NoexceptNoexcept { get; set; } | |
| 2462 | + } | |
| 2463 | + | |
| 2457 | 2464 | public partial class Nonatomic |
| 2458 | 2465 | { |
| 2459 | 2466 | [JsonRequired] |
| @@ -2580,6 +2587,20 @@ namespace QuickType | ||
| 2580 | 2587 | public long ObjectMapperObjectMapper { get; set; } |
| 2581 | 2588 | } |
| 2582 | 2589 | |
| 2590 | + public partial class ObjectReader | |
| 2591 | + { | |
| 2592 | + [JsonRequired] | |
| 2593 | + [JsonPropertyName("ObjectReader")] | |
| 2594 | + public long ObjectReaderObjectReader { get; set; } | |
| 2595 | + } | |
| 2596 | + | |
| 2597 | + public partial class ObjectWriter | |
| 2598 | + { | |
| 2599 | + [JsonRequired] | |
| 2600 | + [JsonPropertyName("ObjectWriter")] | |
| 2601 | + public long ObjectWriterObjectWriter { get; set; } | |
| 2602 | + } | |
| 2603 | + | |
| 2583 | 2604 | public partial class Of |
| 2584 | 2605 | { |
| 2585 | 2606 | [JsonRequired] |
| @@ -2874,27 +2895,6 @@ namespace QuickType | ||
| 2874 | 2895 | public long SbyteSbyte { get; set; } |
| 2875 | 2896 | } |
| 2876 | 2897 | |
| 2877 | - public partial class Sealed | |
| 2878 | - { | |
| 2879 | - [JsonRequired] | |
| 2880 | - [JsonPropertyName("sealed")] | |
| 2881 | - public long SealedSealed { get; set; } | |
| 2882 | - } | |
| 2883 | - | |
| 2884 | - public partial class Sel | |
| 2885 | - { | |
| 2886 | - [JsonRequired] | |
| 2887 | - [JsonPropertyName("SEL")] | |
| 2888 | - public long SelSel { get; set; } | |
| 2889 | - } | |
| 2890 | - | |
| 2891 | - public partial class Select | |
| 2892 | - { | |
| 2893 | - [JsonRequired] | |
| 2894 | - [JsonPropertyName("select")] | |
| 2895 | - public long SelectSelect { get; set; } | |
| 2896 | - } | |
| 2897 | - | |
| 2898 | 2898 | public partial class Obj5 |
| 2899 | 2899 | { |
| 2900 | 2900 | [JsonRequired] |
| @@ -2921,6 +2921,18 @@ namespace QuickType | ||
| 2921 | 2921 | [JsonPropertyName("type")] |
| 2922 | 2922 | public Obj5Type Obj5Type { get; set; } |
| 2923 | 2923 | |
| 2924 | + [JsonRequired] | |
| 2925 | + [JsonPropertyName("sealed")] | |
| 2926 | + public Sealed Sealed { get; set; } | |
| 2927 | + | |
| 2928 | + [JsonRequired] | |
| 2929 | + [JsonPropertyName("SEL")] | |
| 2930 | + public Sel Sel { get; set; } | |
| 2931 | + | |
| 2932 | + [JsonRequired] | |
| 2933 | + [JsonPropertyName("select")] | |
| 2934 | + public Select Select { get; set; } | |
| 2935 | + | |
| 2924 | 2936 | [JsonRequired] |
| 2925 | 2937 | [JsonPropertyName("Self")] |
| 2926 | 2938 | public Self Self { get; set; } |
| @@ -2929,6 +2941,10 @@ namespace QuickType | ||
| 2929 | 2941 | [JsonPropertyName("Sendable")] |
| 2930 | 2942 | public Sendable Sendable { get; set; } |
| 2931 | 2943 | |
| 2944 | + [JsonRequired] | |
| 2945 | + [JsonPropertyName("SerializationFeature")] | |
| 2946 | + public SerializationFeature SerializationFeature { get; set; } | |
| 2947 | + | |
| 2932 | 2948 | [JsonRequired] |
| 2933 | 2949 | [JsonPropertyName("serialize")] |
| 2934 | 2950 | public SerializeClass Serialize { get; set; } |
| @@ -3140,22 +3156,6 @@ namespace QuickType | ||
| 3140 | 3156 | [JsonRequired] |
| 3141 | 3157 | [JsonPropertyName("Utf8JsonReader")] |
| 3142 | 3158 | public Utf8JsonReaderClass Utf8JsonReader { get; set; } |
| 3143 | - | |
| 3144 | - [JsonRequired] | |
| 3145 | - [JsonPropertyName("Utf8JsonWriter")] | |
| 3146 | - public Utf8JsonWriterClass Utf8JsonWriter { get; set; } | |
| 3147 | - | |
| 3148 | - [JsonRequired] | |
| 3149 | - [JsonPropertyName("UUID")] | |
| 3150 | - public Uuid Uuid { get; set; } | |
| 3151 | - | |
| 3152 | - [JsonRequired] | |
| 3153 | - [JsonPropertyName("var")] | |
| 3154 | - public Var Var { get; set; } | |
| 3155 | - | |
| 3156 | - [JsonRequired] | |
| 3157 | - [JsonPropertyName("virtual")] | |
| 3158 | - public Virtual Virtual { get; set; } | |
| 3159 | 3159 | } |
| 3160 | 3160 | |
| 3161 | 3161 | public partial class SelfClass |
| @@ -3193,6 +3193,27 @@ namespace QuickType | ||
| 3193 | 3193 | public long Type { get; set; } |
| 3194 | 3194 | } |
| 3195 | 3195 | |
| 3196 | + public partial class Sealed | |
| 3197 | + { | |
| 3198 | + [JsonRequired] | |
| 3199 | + [JsonPropertyName("sealed")] | |
| 3200 | + public long SealedSealed { get; set; } | |
| 3201 | + } | |
| 3202 | + | |
| 3203 | + public partial class Sel | |
| 3204 | + { | |
| 3205 | + [JsonRequired] | |
| 3206 | + [JsonPropertyName("SEL")] | |
| 3207 | + public long SelSel { get; set; } | |
| 3208 | + } | |
| 3209 | + | |
| 3210 | + public partial class Select | |
| 3211 | + { | |
| 3212 | + [JsonRequired] | |
| 3213 | + [JsonPropertyName("select")] | |
| 3214 | + public long SelectSelect { get; set; } | |
| 3215 | + } | |
| 3216 | + | |
| 3196 | 3217 | public partial class Self |
| 3197 | 3218 | { |
| 3198 | 3219 | [JsonRequired] |
| @@ -3207,6 +3228,13 @@ namespace QuickType | ||
| 3207 | 3228 | public long SendableSendable { get; set; } |
| 3208 | 3229 | } |
| 3209 | 3230 | |
| 3231 | + public partial class SerializationFeature | |
| 3232 | + { | |
| 3233 | + [JsonRequired] | |
| 3234 | + [JsonPropertyName("SerializationFeature")] | |
| 3235 | + public long SerializationFeatureSerializationFeature { get; set; } | |
| 3236 | + } | |
| 3237 | + | |
| 3210 | 3238 | public partial class SerializeClass |
| 3211 | 3239 | { |
| 3212 | 3240 | [JsonRequired] |
| @@ -3578,39 +3606,27 @@ namespace QuickType | ||
| 3578 | 3606 | public long Utf8JsonReader { get; set; } |
| 3579 | 3607 | } |
| 3580 | 3608 | |
| 3581 | - public partial class Utf8JsonWriterClass | |
| 3609 | + public partial class Obj6 | |
| 3582 | 3610 | { |
| 3611 | + [JsonRequired] | |
| 3612 | + [JsonPropertyName("dummy")] | |
| 3613 | + public long Dummy { get; set; } | |
| 3614 | + | |
| 3583 | 3615 | [JsonRequired] |
| 3584 | 3616 | [JsonPropertyName("Utf8JsonWriter")] |
| 3585 | - public long Utf8JsonWriter { get; set; } | |
| 3586 | - } | |
| 3617 | + public Utf8JsonWriterClass Utf8JsonWriter { get; set; } | |
| 3587 | 3618 | |
| 3588 | - public partial class Uuid | |
| 3589 | - { | |
| 3590 | 3619 | [JsonRequired] |
| 3591 | 3620 | [JsonPropertyName("UUID")] |
| 3592 | - public long UuidUuid { get; set; } | |
| 3593 | - } | |
| 3621 | + public Uuid Uuid { get; set; } | |
| 3594 | 3622 | |
| 3595 | - public partial class Var | |
| 3596 | - { | |
| 3597 | 3623 | [JsonRequired] |
| 3598 | 3624 | [JsonPropertyName("var")] |
| 3599 | - public long VarVar { get; set; } | |
| 3600 | - } | |
| 3625 | + public Var Var { get; set; } | |
| 3601 | 3626 | |
| 3602 | - public partial class Virtual | |
| 3603 | - { | |
| 3604 | 3627 | [JsonRequired] |
| 3605 | 3628 | [JsonPropertyName("virtual")] |
| 3606 | - public long VirtualVirtual { get; set; } | |
| 3607 | - } | |
| 3608 | - | |
| 3609 | - public partial class Obj6 | |
| 3610 | - { | |
| 3611 | - [JsonRequired] | |
| 3612 | - [JsonPropertyName("dummy")] | |
| 3613 | - public long Dummy { get; set; } | |
| 3629 | + public Virtual Virtual { get; set; } | |
| 3614 | 3630 | |
| 3615 | 3631 | [JsonRequired] |
| 3616 | 3632 | [JsonPropertyName("void")] |
| @@ -3661,6 +3677,34 @@ namespace QuickType | ||
| 3661 | 3677 | public Yield Yield { get; set; } |
| 3662 | 3678 | } |
| 3663 | 3679 | |
| 3680 | + public partial class Utf8JsonWriterClass | |
| 3681 | + { | |
| 3682 | + [JsonRequired] | |
| 3683 | + [JsonPropertyName("Utf8JsonWriter")] | |
| 3684 | + public long Utf8JsonWriter { get; set; } | |
| 3685 | + } | |
| 3686 | + | |
| 3687 | + public partial class Uuid | |
| 3688 | + { | |
| 3689 | + [JsonRequired] | |
| 3690 | + [JsonPropertyName("UUID")] | |
| 3691 | + public long UuidUuid { get; set; } | |
| 3692 | + } | |
| 3693 | + | |
| 3694 | + public partial class Var | |
| 3695 | + { | |
| 3696 | + [JsonRequired] | |
| 3697 | + [JsonPropertyName("var")] | |
| 3698 | + public long VarVar { get; set; } | |
| 3699 | + } | |
| 3700 | + | |
| 3701 | + public partial class Virtual | |
| 3702 | + { | |
| 3703 | + [JsonRequired] | |
| 3704 | + [JsonPropertyName("virtual")] | |
| 3705 | + public long VirtualVirtual { get; set; } | |
| 3706 | + } | |
| 3707 | + | |
| 3664 | 3708 | public partial class Void |
| 3665 | 3709 | { |
| 3666 | 3710 | [JsonRequired] |
Mcsharpdefault / QuickType.cs+112 −76
| @@ -691,6 +691,9 @@ namespace QuickType | ||
| 691 | 691 | [JsonProperty("delete", Required = Required.Always)] |
| 692 | 692 | public Delete Delete { get; set; } |
| 693 | 693 | |
| 694 | + [JsonProperty("DeserializationFeature", Required = Required.Always)] | |
| 695 | + public DeserializationFeature DeserializationFeature { get; set; } | |
| 696 | + | |
| 694 | 697 | [JsonProperty("dict", Required = Required.Always)] |
| 695 | 698 | public Dict Dict { get; set; } |
| 696 | 699 | |
| @@ -817,9 +820,6 @@ namespace QuickType | ||
| 817 | 820 | [JsonProperty("go", Required = Required.Always)] |
| 818 | 821 | public Go Go { get; set; } |
| 819 | 822 | |
| 820 | - [JsonProperty("goto", Required = Required.Always)] | |
| 821 | - public Goto Goto { get; set; } | |
| 822 | - | |
| 823 | 823 | [JsonProperty("false", Required = Required.Always)] |
| 824 | 824 | public FalseClass Obj2False { get; set; } |
| 825 | 825 | |
| @@ -947,6 +947,12 @@ namespace QuickType | ||
| 947 | 947 | public long DeleteDelete { get; set; } |
| 948 | 948 | } |
| 949 | 949 | |
| 950 | + public partial class DeserializationFeature | |
| 951 | + { | |
| 952 | + [JsonProperty("DeserializationFeature", Required = Required.Always)] | |
| 953 | + public long DeserializationFeatureDeserializationFeature { get; set; } | |
| 954 | + } | |
| 955 | + | |
| 950 | 956 | public partial class Dict |
| 951 | 957 | { |
| 952 | 958 | [JsonProperty("dict", Required = Required.Always)] |
| @@ -1193,12 +1199,6 @@ namespace QuickType | ||
| 1193 | 1199 | public long GoGo { get; set; } |
| 1194 | 1200 | } |
| 1195 | 1201 | |
| 1196 | - public partial class Goto | |
| 1197 | - { | |
| 1198 | - [JsonProperty("goto", Required = Required.Always)] | |
| 1199 | - public long GotoGoto { get; set; } | |
| 1200 | - } | |
| 1201 | - | |
| 1202 | 1202 | public partial class FalseClass |
| 1203 | 1203 | { |
| 1204 | 1204 | [JsonProperty("false", Required = Required.Always)] |
| @@ -1216,6 +1216,9 @@ namespace QuickType | ||
| 1216 | 1216 | [JsonProperty("dummy", Required = Required.Always)] |
| 1217 | 1217 | public long Dummy { get; set; } |
| 1218 | 1218 | |
| 1219 | + [JsonProperty("goto", Required = Required.Always)] | |
| 1220 | + public Goto Goto { get; set; } | |
| 1221 | + | |
| 1219 | 1222 | [JsonProperty("guard", Required = Required.Always)] |
| 1220 | 1223 | public Guard Guard { get; set; } |
| 1221 | 1224 | |
| @@ -1404,9 +1407,12 @@ namespace QuickType | ||
| 1404 | 1407 | |
| 1405 | 1408 | [JsonProperty("NO", Required = Required.Always)] |
| 1406 | 1409 | public No No { get; set; } |
| 1410 | + } | |
| 1407 | 1411 | |
| 1408 | - [JsonProperty("noexcept", Required = Required.Always)] | |
| 1409 | - public Noexcept Noexcept { get; set; } | |
| 1412 | + public partial class Goto | |
| 1413 | + { | |
| 1414 | + [JsonProperty("goto", Required = Required.Always)] | |
| 1415 | + public long GotoGoto { get; set; } | |
| 1410 | 1416 | } |
| 1411 | 1417 | |
| 1412 | 1418 | public partial class Guard |
| @@ -1787,12 +1793,6 @@ namespace QuickType | ||
| 1787 | 1793 | public long NoNo { get; set; } |
| 1788 | 1794 | } |
| 1789 | 1795 | |
| 1790 | - public partial class Noexcept | |
| 1791 | - { | |
| 1792 | - [JsonProperty("noexcept", Required = Required.Always)] | |
| 1793 | - public long NoexceptNoexcept { get; set; } | |
| 1794 | - } | |
| 1795 | - | |
| 1796 | 1796 | public partial class Obj4 |
| 1797 | 1797 | { |
| 1798 | 1798 | [JsonProperty("dummy", Required = Required.Always)] |
| @@ -1801,6 +1801,9 @@ namespace QuickType | ||
| 1801 | 1801 | [JsonProperty("noSuchMethod", Required = Required.Always)] |
| 1802 | 1802 | public NoSuchMethod NoSuchMethod { get; set; } |
| 1803 | 1803 | |
| 1804 | + [JsonProperty("noexcept", Required = Required.Always)] | |
| 1805 | + public Noexcept Noexcept { get; set; } | |
| 1806 | + | |
| 1804 | 1807 | [JsonProperty("nonatomic", Required = Required.Always)] |
| 1805 | 1808 | public Nonatomic Nonatomic { get; set; } |
| 1806 | 1809 | |
| @@ -1855,6 +1858,12 @@ namespace QuickType | ||
| 1855 | 1858 | [JsonProperty("ObjectMapper", Required = Required.Always)] |
| 1856 | 1859 | public ObjectMapper ObjectMapper { get; set; } |
| 1857 | 1860 | |
| 1861 | + [JsonProperty("ObjectReader", Required = Required.Always)] | |
| 1862 | + public ObjectReader ObjectReader { get; set; } | |
| 1863 | + | |
| 1864 | + [JsonProperty("ObjectWriter", Required = Required.Always)] | |
| 1865 | + public ObjectWriter ObjectWriter { get; set; } | |
| 1866 | + | |
| 1858 | 1867 | [JsonProperty("of", Required = Required.Always)] |
| 1859 | 1868 | public Of Of { get; set; } |
| 1860 | 1869 | |
| @@ -1980,15 +1989,6 @@ namespace QuickType | ||
| 1980 | 1989 | |
| 1981 | 1990 | [JsonProperty("sbyte", Required = Required.Always)] |
| 1982 | 1991 | public Sbyte Sbyte { get; set; } |
| 1983 | - | |
| 1984 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 1985 | - public Sealed Sealed { get; set; } | |
| 1986 | - | |
| 1987 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 1988 | - public Sel Sel { get; set; } | |
| 1989 | - | |
| 1990 | - [JsonProperty("select", Required = Required.Always)] | |
| 1991 | - public Select Select { get; set; } | |
| 1992 | 1992 | } |
| 1993 | 1993 | |
| 1994 | 1994 | public partial class NoSuchMethod |
| @@ -1997,6 +1997,12 @@ namespace QuickType | ||
| 1997 | 1997 | public long NoSuchMethodNoSuchMethod { get; set; } |
| 1998 | 1998 | } |
| 1999 | 1999 | |
| 2000 | + public partial class Noexcept | |
| 2001 | + { | |
| 2002 | + [JsonProperty("noexcept", Required = Required.Always)] | |
| 2003 | + public long NoexceptNoexcept { get; set; } | |
| 2004 | + } | |
| 2005 | + | |
| 2000 | 2006 | public partial class Nonatomic |
| 2001 | 2007 | { |
| 2002 | 2008 | [JsonProperty("nonatomic", Required = Required.Always)] |
| @@ -2105,6 +2111,18 @@ namespace QuickType | ||
| 2105 | 2111 | public long ObjectMapperObjectMapper { get; set; } |
| 2106 | 2112 | } |
| 2107 | 2113 | |
| 2114 | + public partial class ObjectReader | |
| 2115 | + { | |
| 2116 | + [JsonProperty("ObjectReader", Required = Required.Always)] | |
| 2117 | + public long ObjectReaderObjectReader { get; set; } | |
| 2118 | + } | |
| 2119 | + | |
| 2120 | + public partial class ObjectWriter | |
| 2121 | + { | |
| 2122 | + [JsonProperty("ObjectWriter", Required = Required.Always)] | |
| 2123 | + public long ObjectWriterObjectWriter { get; set; } | |
| 2124 | + } | |
| 2125 | + | |
| 2108 | 2126 | public partial class Of |
| 2109 | 2127 | { |
| 2110 | 2128 | [JsonProperty("of", Required = Required.Always)] |
| @@ -2357,24 +2375,6 @@ namespace QuickType | ||
| 2357 | 2375 | public long SbyteSbyte { get; set; } |
| 2358 | 2376 | } |
| 2359 | 2377 | |
| 2360 | - public partial class Sealed | |
| 2361 | - { | |
| 2362 | - [JsonProperty("sealed", Required = Required.Always)] | |
| 2363 | - public long SealedSealed { get; set; } | |
| 2364 | - } | |
| 2365 | - | |
| 2366 | - public partial class Sel | |
| 2367 | - { | |
| 2368 | - [JsonProperty("SEL", Required = Required.Always)] | |
| 2369 | - public long SelSel { get; set; } | |
| 2370 | - } | |
| 2371 | - | |
| 2372 | - public partial class Select | |
| 2373 | - { | |
| 2374 | - [JsonProperty("select", Required = Required.Always)] | |
| 2375 | - public long SelectSelect { get; set; } | |
| 2376 | - } | |
| 2377 | - | |
| 2378 | 2378 | public partial class Obj5 |
| 2379 | 2379 | { |
| 2380 | 2380 | [JsonProperty("dummy", Required = Required.Always)] |
| @@ -2395,12 +2395,24 @@ namespace QuickType | ||
| 2395 | 2395 | [JsonProperty("type", Required = Required.Always)] |
| 2396 | 2396 | public Obj5Type Obj5Type { get; set; } |
| 2397 | 2397 | |
| 2398 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2399 | + public Sealed Sealed { get; set; } | |
| 2400 | + | |
| 2401 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2402 | + public Sel Sel { get; set; } | |
| 2403 | + | |
| 2404 | + [JsonProperty("select", Required = Required.Always)] | |
| 2405 | + public Select Select { get; set; } | |
| 2406 | + | |
| 2398 | 2407 | [JsonProperty("Self", Required = Required.Always)] |
| 2399 | 2408 | public Self Self { get; set; } |
| 2400 | 2409 | |
| 2401 | 2410 | [JsonProperty("Sendable", Required = Required.Always)] |
| 2402 | 2411 | public Sendable Sendable { get; set; } |
| 2403 | 2412 | |
| 2413 | + [JsonProperty("SerializationFeature", Required = Required.Always)] | |
| 2414 | + public SerializationFeature SerializationFeature { get; set; } | |
| 2415 | + | |
| 2404 | 2416 | [JsonProperty("serialize", Required = Required.Always)] |
| 2405 | 2417 | public SerializeClass Serialize { get; set; } |
| 2406 | 2418 | |
| @@ -2559,18 +2571,6 @@ namespace QuickType | ||
| 2559 | 2571 | |
| 2560 | 2572 | [JsonProperty("Utf8JsonReader", Required = Required.Always)] |
| 2561 | 2573 | public Utf8JsonReader Utf8JsonReader { get; set; } |
| 2562 | - | |
| 2563 | - [JsonProperty("Utf8JsonWriter", Required = Required.Always)] | |
| 2564 | - public Utf8JsonWriter Utf8JsonWriter { get; set; } | |
| 2565 | - | |
| 2566 | - [JsonProperty("UUID", Required = Required.Always)] | |
| 2567 | - public Uuid Uuid { get; set; } | |
| 2568 | - | |
| 2569 | - [JsonProperty("var", Required = Required.Always)] | |
| 2570 | - public Var Var { get; set; } | |
| 2571 | - | |
| 2572 | - [JsonProperty("virtual", Required = Required.Always)] | |
| 2573 | - public Virtual Virtual { get; set; } | |
| 2574 | 2574 | } |
| 2575 | 2575 | |
| 2576 | 2576 | public partial class SelfClass |
| @@ -2603,6 +2603,24 @@ namespace QuickType | ||
| 2603 | 2603 | public long Type { get; set; } |
| 2604 | 2604 | } |
| 2605 | 2605 | |
| 2606 | + public partial class Sealed | |
| 2607 | + { | |
| 2608 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2609 | + public long SealedSealed { get; set; } | |
| 2610 | + } | |
| 2611 | + | |
| 2612 | + public partial class Sel | |
| 2613 | + { | |
| 2614 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2615 | + public long SelSel { get; set; } | |
| 2616 | + } | |
| 2617 | + | |
| 2618 | + public partial class Select | |
| 2619 | + { | |
| 2620 | + [JsonProperty("select", Required = Required.Always)] | |
| 2621 | + public long SelectSelect { get; set; } | |
| 2622 | + } | |
| 2623 | + | |
| 2606 | 2624 | public partial class Self |
| 2607 | 2625 | { |
| 2608 | 2626 | [JsonProperty("Self", Required = Required.Always)] |
| @@ -2615,6 +2633,12 @@ namespace QuickType | ||
| 2615 | 2633 | public long SendableSendable { get; set; } |
| 2616 | 2634 | } |
| 2617 | 2635 | |
| 2636 | + public partial class SerializationFeature | |
| 2637 | + { | |
| 2638 | + [JsonProperty("SerializationFeature", Required = Required.Always)] | |
| 2639 | + public long SerializationFeatureSerializationFeature { get; set; } | |
| 2640 | + } | |
| 2641 | + | |
| 2618 | 2642 | public partial class SerializeClass |
| 2619 | 2643 | { |
| 2620 | 2644 | [JsonProperty("serialize", Required = Required.Always)] |
| @@ -2933,34 +2957,22 @@ namespace QuickType | ||
| 2933 | 2957 | public long Utf8JsonReaderUtf8JsonReader { get; set; } |
| 2934 | 2958 | } |
| 2935 | 2959 | |
| 2936 | - public partial class Utf8JsonWriter | |
| 2960 | + public partial class Obj6 | |
| 2937 | 2961 | { |
| 2962 | + [JsonProperty("dummy", Required = Required.Always)] | |
| 2963 | + public long Dummy { get; set; } | |
| 2964 | + | |
| 2938 | 2965 | [JsonProperty("Utf8JsonWriter", Required = Required.Always)] |
| 2939 | - public long Utf8JsonWriterUtf8JsonWriter { get; set; } | |
| 2940 | - } | |
| 2966 | + public Utf8JsonWriter Utf8JsonWriter { get; set; } | |
| 2941 | 2967 | |
| 2942 | - public partial class Uuid | |
| 2943 | - { | |
| 2944 | 2968 | [JsonProperty("UUID", Required = Required.Always)] |
| 2945 | - public long UuidUuid { get; set; } | |
| 2946 | - } | |
| 2969 | + public Uuid Uuid { get; set; } | |
| 2947 | 2970 | |
| 2948 | - public partial class Var | |
| 2949 | - { | |
| 2950 | 2971 | [JsonProperty("var", Required = Required.Always)] |
| 2951 | - public long VarVar { get; set; } | |
| 2952 | - } | |
| 2972 | + public Var Var { get; set; } | |
| 2953 | 2973 | |
| 2954 | - public partial class Virtual | |
| 2955 | - { | |
| 2956 | 2974 | [JsonProperty("virtual", Required = Required.Always)] |
| 2957 | - public long VirtualVirtual { get; set; } | |
| 2958 | - } | |
| 2959 | - | |
| 2960 | - public partial class Obj6 | |
| 2961 | - { | |
| 2962 | - [JsonProperty("dummy", Required = Required.Always)] | |
| 2963 | - public long Dummy { get; set; } | |
| 2975 | + public Virtual Virtual { get; set; } | |
| 2964 | 2976 | |
| 2965 | 2977 | [JsonProperty("void", Required = Required.Always)] |
| 2966 | 2978 | public Void Void { get; set; } |
| @@ -2999,6 +3011,30 @@ namespace QuickType | ||
| 2999 | 3011 | public Yield Yield { get; set; } |
| 3000 | 3012 | } |
| 3001 | 3013 | |
| 3014 | + public partial class Utf8JsonWriter | |
| 3015 | + { | |
| 3016 | + [JsonProperty("Utf8JsonWriter", Required = Required.Always)] | |
| 3017 | + public long Utf8JsonWriterUtf8JsonWriter { get; set; } | |
| 3018 | + } | |
| 3019 | + | |
| 3020 | + public partial class Uuid | |
| 3021 | + { | |
| 3022 | + [JsonProperty("UUID", Required = Required.Always)] | |
| 3023 | + public long UuidUuid { get; set; } | |
| 3024 | + } | |
| 3025 | + | |
| 3026 | + public partial class Var | |
| 3027 | + { | |
| 3028 | + [JsonProperty("var", Required = Required.Always)] | |
| 3029 | + public long VarVar { get; set; } | |
| 3030 | + } | |
| 3031 | + | |
| 3032 | + public partial class Virtual | |
| 3033 | + { | |
| 3034 | + [JsonProperty("virtual", Required = Required.Always)] | |
| 3035 | + public long VirtualVirtual { get; set; } | |
| 3036 | + } | |
| 3037 | + | |
| 3002 | 3038 | public partial class Void |
| 3003 | 3039 | { |
| 3004 | 3040 | [JsonProperty("void", Required = Required.Always)] |
Mdartdefault / TopLevel.dart+258 −178
| @@ -1364,6 +1364,7 @@ class Obj2 { | ||
| 1364 | 1364 | final Del del; |
| 1365 | 1365 | final Delegate delegate; |
| 1366 | 1366 | final Delete delete; |
| 1367 | + final DeserializationFeature deserializationFeature; | |
| 1367 | 1368 | final Dict dict; |
| 1368 | 1369 | final Dictionary dictionary; |
| 1369 | 1370 | final DidSet didSet; |
| @@ -1394,7 +1395,6 @@ class Obj2 { | ||
| 1394 | 1395 | final FunctionClass function; |
| 1395 | 1396 | final Global global; |
| 1396 | 1397 | final Go go; |
| 1397 | - final Goto goto; | |
| 1398 | 1398 | final Default obj2Default; |
| 1399 | 1399 | final Do obj2Do; |
| 1400 | 1400 | final Double obj2Double; |
| @@ -1431,6 +1431,7 @@ class Obj2 { | ||
| 1431 | 1431 | required this.del, |
| 1432 | 1432 | required this.delegate, |
| 1433 | 1433 | required this.delete, |
| 1434 | + required this.deserializationFeature, | |
| 1434 | 1435 | required this.dict, |
| 1435 | 1436 | required this.dictionary, |
| 1436 | 1437 | required this.didSet, |
| @@ -1461,7 +1462,6 @@ class Obj2 { | ||
| 1461 | 1462 | required this.function, |
| 1462 | 1463 | required this.global, |
| 1463 | 1464 | required this.go, |
| 1464 | - required this.goto, | |
| 1465 | 1465 | required this.obj2Default, |
| 1466 | 1466 | required this.obj2Do, |
| 1467 | 1467 | required this.obj2Double, |
| @@ -1499,6 +1499,7 @@ class Obj2 { | ||
| 1499 | 1499 | del: Del.fromJson(json["del"]), |
| 1500 | 1500 | delegate: Delegate.fromJson(json["delegate"]), |
| 1501 | 1501 | delete: Delete.fromJson(json["delete"]), |
| 1502 | + deserializationFeature: DeserializationFeature.fromJson(json["DeserializationFeature"]), | |
| 1502 | 1503 | dict: Dict.fromJson(json["dict"]), |
| 1503 | 1504 | dictionary: Dictionary.fromJson(json["dictionary"]), |
| 1504 | 1505 | didSet: DidSet.fromJson(json["didSet"]), |
| @@ -1529,7 +1530,6 @@ class Obj2 { | ||
| 1529 | 1530 | function: FunctionClass.fromJson(json["function"]), |
| 1530 | 1531 | global: Global.fromJson(json["global"]), |
| 1531 | 1532 | go: Go.fromJson(json["go"]), |
| 1532 | - goto: Goto.fromJson(json["goto"]), | |
| 1533 | 1533 | obj2Default: Default.fromJson(json["default"]), |
| 1534 | 1534 | obj2Do: Do.fromJson(json["do"]), |
| 1535 | 1535 | obj2Double: Double.fromJson(json["double"]), |
| @@ -1567,6 +1567,7 @@ class Obj2 { | ||
| 1567 | 1567 | "del": del.toJson(), |
| 1568 | 1568 | "delegate": delegate.toJson(), |
| 1569 | 1569 | "delete": delete.toJson(), |
| 1570 | + "DeserializationFeature": deserializationFeature.toJson(), | |
| 1570 | 1571 | "dict": dict.toJson(), |
| 1571 | 1572 | "dictionary": dictionary.toJson(), |
| 1572 | 1573 | "didSet": didSet.toJson(), |
| @@ -1597,7 +1598,6 @@ class Obj2 { | ||
| 1597 | 1598 | "function": function.toJson(), |
| 1598 | 1599 | "global": global.toJson(), |
| 1599 | 1600 | "go": go.toJson(), |
| 1600 | - "goto": goto.toJson(), | |
| 1601 | 1601 | "default": obj2Default.toJson(), |
| 1602 | 1602 | "do": obj2Do.toJson(), |
| 1603 | 1603 | "double": obj2Double.toJson(), |
| @@ -1920,6 +1920,22 @@ class Delete { | ||
| 1920 | 1920 | }; |
| 1921 | 1921 | } |
| 1922 | 1922 | |
| 1923 | +class DeserializationFeature { | |
| 1924 | + final int deserializationFeature; | |
| 1925 | + | |
| 1926 | + DeserializationFeature({ | |
| 1927 | + required this.deserializationFeature, | |
| 1928 | + }); | |
| 1929 | + | |
| 1930 | + factory DeserializationFeature.fromJson(Map<String, dynamic> json) => DeserializationFeature( | |
| 1931 | + deserializationFeature: json["DeserializationFeature"], | |
| 1932 | + ); | |
| 1933 | + | |
| 1934 | + Map<String, dynamic> toJson() => { | |
| 1935 | + "DeserializationFeature": deserializationFeature, | |
| 1936 | + }; | |
| 1937 | +} | |
| 1938 | + | |
| 1923 | 1939 | class Dict { |
| 1924 | 1940 | final int dict; |
| 1925 | 1941 | |
| @@ -2394,22 +2410,6 @@ class Go { | ||
| 2394 | 2410 | }; |
| 2395 | 2411 | } |
| 2396 | 2412 | |
| 2397 | -class Goto { | |
| 2398 | - final int goto; | |
| 2399 | - | |
| 2400 | - Goto({ | |
| 2401 | - required this.goto, | |
| 2402 | - }); | |
| 2403 | - | |
| 2404 | - factory Goto.fromJson(Map<String, dynamic> json) => Goto( | |
| 2405 | - goto: json["goto"], | |
| 2406 | - ); | |
| 2407 | - | |
| 2408 | - Map<String, dynamic> toJson() => { | |
| 2409 | - "goto": goto, | |
| 2410 | - }; | |
| 2411 | -} | |
| 2412 | - | |
| 2413 | 2413 | class Default { |
| 2414 | 2414 | final int defaultDefault; |
| 2415 | 2415 | |
| @@ -2652,6 +2652,7 @@ class FalseClass { | ||
| 2652 | 2652 | |
| 2653 | 2653 | class Obj3 { |
| 2654 | 2654 | final int dummy; |
| 2655 | + final Goto goto; | |
| 2655 | 2656 | final Guard guard; |
| 2656 | 2657 | final HasOwnProperty hasOwnProperty; |
| 2657 | 2658 | final Hashable hashable; |
| @@ -2706,7 +2707,6 @@ class Obj3 { | ||
| 2706 | 2707 | final Newtonsoft newtonsoft; |
| 2707 | 2708 | final Nil nil; |
| 2708 | 2709 | final No no; |
| 2709 | - final Noexcept noexcept; | |
| 2710 | 2710 | final HashCode obj3HashCode; |
| 2711 | 2711 | final If obj3If; |
| 2712 | 2712 | final Implements obj3Implements; |
| @@ -2719,6 +2719,7 @@ class Obj3 { | ||
| 2719 | 2719 | |
| 2720 | 2720 | Obj3({ |
| 2721 | 2721 | required this.dummy, |
| 2722 | + required this.goto, | |
| 2722 | 2723 | required this.guard, |
| 2723 | 2724 | required this.hasOwnProperty, |
| 2724 | 2725 | required this.hashable, |
| @@ -2773,7 +2774,6 @@ class Obj3 { | ||
| 2773 | 2774 | required this.newtonsoft, |
| 2774 | 2775 | required this.nil, |
| 2775 | 2776 | required this.no, |
| 2776 | - required this.noexcept, | |
| 2777 | 2777 | required this.obj3HashCode, |
| 2778 | 2778 | required this.obj3If, |
| 2779 | 2779 | required this.obj3Implements, |
| @@ -2787,6 +2787,7 @@ class Obj3 { | ||
| 2787 | 2787 | |
| 2788 | 2788 | factory Obj3.fromJson(Map<String, dynamic> json) => Obj3( |
| 2789 | 2789 | dummy: json["dummy"], |
| 2790 | + goto: Goto.fromJson(json["goto"]), | |
| 2790 | 2791 | guard: Guard.fromJson(json["guard"]), |
| 2791 | 2792 | hasOwnProperty: HasOwnProperty.fromJson(json["hasOwnProperty"]), |
| 2792 | 2793 | hashable: Hashable.fromJson(json["Hashable"]), |
| @@ -2841,7 +2842,6 @@ class Obj3 { | ||
| 2841 | 2842 | newtonsoft: Newtonsoft.fromJson(json["newtonsoft"]), |
| 2842 | 2843 | nil: Nil.fromJson(json["nil"]), |
| 2843 | 2844 | no: No.fromJson(json["NO"]), |
| 2844 | - noexcept: Noexcept.fromJson(json["noexcept"]), | |
| 2845 | 2845 | obj3HashCode: HashCode.fromJson(json["hashCode"]), |
| 2846 | 2846 | obj3If: If.fromJson(json["if"]), |
| 2847 | 2847 | obj3Implements: Implements.fromJson(json["implements"]), |
| @@ -2855,6 +2855,7 @@ class Obj3 { | ||
| 2855 | 2855 | |
| 2856 | 2856 | Map<String, dynamic> toJson() => { |
| 2857 | 2857 | "dummy": dummy, |
| 2858 | + "goto": goto.toJson(), | |
| 2858 | 2859 | "guard": guard.toJson(), |
| 2859 | 2860 | "hasOwnProperty": hasOwnProperty.toJson(), |
| 2860 | 2861 | "Hashable": hashable.toJson(), |
| @@ -2909,7 +2910,6 @@ class Obj3 { | ||
| 2909 | 2910 | "newtonsoft": newtonsoft.toJson(), |
| 2910 | 2911 | "nil": nil.toJson(), |
| 2911 | 2912 | "NO": no.toJson(), |
| 2912 | - "noexcept": noexcept.toJson(), | |
| 2913 | 2913 | "hashCode": obj3HashCode.toJson(), |
| 2914 | 2914 | "if": obj3If.toJson(), |
| 2915 | 2915 | "implements": obj3Implements.toJson(), |
| @@ -2922,6 +2922,22 @@ class Obj3 { | ||
| 2922 | 2922 | }; |
| 2923 | 2923 | } |
| 2924 | 2924 | |
| 2925 | +class Goto { | |
| 2926 | + final int goto; | |
| 2927 | + | |
| 2928 | + Goto({ | |
| 2929 | + required this.goto, | |
| 2930 | + }); | |
| 2931 | + | |
| 2932 | + factory Goto.fromJson(Map<String, dynamic> json) => Goto( | |
| 2933 | + goto: json["goto"], | |
| 2934 | + ); | |
| 2935 | + | |
| 2936 | + Map<String, dynamic> toJson() => { | |
| 2937 | + "goto": goto, | |
| 2938 | + }; | |
| 2939 | +} | |
| 2940 | + | |
| 2925 | 2941 | class Guard { |
| 2926 | 2942 | final int guard; |
| 2927 | 2943 | |
| @@ -3786,22 +3802,6 @@ class No { | ||
| 3786 | 3802 | }; |
| 3787 | 3803 | } |
| 3788 | 3804 | |
| 3789 | -class Noexcept { | |
| 3790 | - final int noexcept; | |
| 3791 | - | |
| 3792 | - Noexcept({ | |
| 3793 | - required this.noexcept, | |
| 3794 | - }); | |
| 3795 | - | |
| 3796 | - factory Noexcept.fromJson(Map<String, dynamic> json) => Noexcept( | |
| 3797 | - noexcept: json["noexcept"], | |
| 3798 | - ); | |
| 3799 | - | |
| 3800 | - Map<String, dynamic> toJson() => { | |
| 3801 | - "noexcept": noexcept, | |
| 3802 | - }; | |
| 3803 | -} | |
| 3804 | - | |
| 3805 | 3805 | class HashCode { |
| 3806 | 3806 | final int hashCodeHashCode; |
| 3807 | 3807 | |
| @@ -3948,6 +3948,7 @@ class New { | ||
| 3948 | 3948 | |
| 3949 | 3949 | class Obj4 { |
| 3950 | 3950 | final int dummy; |
| 3951 | + final Noexcept noexcept; | |
| 3951 | 3952 | final Nonatomic nonatomic; |
| 3952 | 3953 | final None none; |
| 3953 | 3954 | final Nonlocal nonlocal; |
| @@ -3968,6 +3969,8 @@ class Obj4 { | ||
| 3968 | 3969 | final RuntimeType obj4RuntimeType; |
| 3969 | 3970 | final Object object; |
| 3970 | 3971 | final ObjectMapper objectMapper; |
| 3972 | + final ObjectReader objectReader; | |
| 3973 | + final ObjectWriter objectWriter; | |
| 3971 | 3974 | final Of of; |
| 3972 | 3975 | final Oneway oneway; |
| 3973 | 3976 | final Open open; |
| @@ -4009,12 +4012,10 @@ class Obj4 { | ||
| 4009 | 4012 | final Right right; |
| 4010 | 4013 | final S s; |
| 4011 | 4014 | final Sbyte sbyte; |
| 4012 | - final Sealed sealed; | |
| 4013 | - final Sel sel; | |
| 4014 | - final Select select; | |
| 4015 | 4015 | |
| 4016 | 4016 | Obj4({ |
| 4017 | 4017 | required this.dummy, |
| 4018 | + required this.noexcept, | |
| 4018 | 4019 | required this.nonatomic, |
| 4019 | 4020 | required this.none, |
| 4020 | 4021 | required this.nonlocal, |
| @@ -4035,6 +4036,8 @@ class Obj4 { | ||
| 4035 | 4036 | required this.obj4RuntimeType, |
| 4036 | 4037 | required this.object, |
| 4037 | 4038 | required this.objectMapper, |
| 4039 | + required this.objectReader, | |
| 4040 | + required this.objectWriter, | |
| 4038 | 4041 | required this.of, |
| 4039 | 4042 | required this.oneway, |
| 4040 | 4043 | required this.open, |
| @@ -4076,13 +4079,11 @@ class Obj4 { | ||
| 4076 | 4079 | required this.right, |
| 4077 | 4080 | required this.s, |
| 4078 | 4081 | required this.sbyte, |
| 4079 | - required this.sealed, | |
| 4080 | - required this.sel, | |
| 4081 | - required this.select, | |
| 4082 | 4082 | }); |
| 4083 | 4083 | |
| 4084 | 4084 | factory Obj4.fromJson(Map<String, dynamic> json) => Obj4( |
| 4085 | 4085 | dummy: json["dummy"], |
| 4086 | + noexcept: Noexcept.fromJson(json["noexcept"]), | |
| 4086 | 4087 | nonatomic: Nonatomic.fromJson(json["nonatomic"]), |
| 4087 | 4088 | none: None.fromJson(json["None"]), |
| 4088 | 4089 | nonlocal: Nonlocal.fromJson(json["nonlocal"]), |
| @@ -4103,6 +4104,8 @@ class Obj4 { | ||
| 4103 | 4104 | obj4RuntimeType: RuntimeType.fromJson(json["runtimeType"]), |
| 4104 | 4105 | object: Object.fromJson(json["object"]), |
| 4105 | 4106 | objectMapper: ObjectMapper.fromJson(json["ObjectMapper"]), |
| 4107 | + objectReader: ObjectReader.fromJson(json["ObjectReader"]), | |
| 4108 | + objectWriter: ObjectWriter.fromJson(json["ObjectWriter"]), | |
| 4106 | 4109 | of: Of.fromJson(json["of"]), |
| 4107 | 4110 | oneway: Oneway.fromJson(json["oneway"]), |
| 4108 | 4111 | open: Open.fromJson(json["open"]), |
| @@ -4144,13 +4147,11 @@ class Obj4 { | ||
| 4144 | 4147 | right: Right.fromJson(json["right"]), |
| 4145 | 4148 | s: S.fromJson(json["s"]), |
| 4146 | 4149 | sbyte: Sbyte.fromJson(json["sbyte"]), |
| 4147 | - sealed: Sealed.fromJson(json["sealed"]), | |
| 4148 | - sel: Sel.fromJson(json["SEL"]), | |
| 4149 | - select: Select.fromJson(json["select"]), | |
| 4150 | 4150 | ); |
| 4151 | 4151 | |
| 4152 | 4152 | Map<String, dynamic> toJson() => { |
| 4153 | 4153 | "dummy": dummy, |
| 4154 | + "noexcept": noexcept.toJson(), | |
| 4154 | 4155 | "nonatomic": nonatomic.toJson(), |
| 4155 | 4156 | "None": none.toJson(), |
| 4156 | 4157 | "nonlocal": nonlocal.toJson(), |
| @@ -4171,6 +4172,8 @@ class Obj4 { | ||
| 4171 | 4172 | "runtimeType": obj4RuntimeType.toJson(), |
| 4172 | 4173 | "object": object.toJson(), |
| 4173 | 4174 | "ObjectMapper": objectMapper.toJson(), |
| 4175 | + "ObjectReader": objectReader.toJson(), | |
| 4176 | + "ObjectWriter": objectWriter.toJson(), | |
| 4174 | 4177 | "of": of.toJson(), |
| 4175 | 4178 | "oneway": oneway.toJson(), |
| 4176 | 4179 | "open": open.toJson(), |
| @@ -4212,9 +4215,22 @@ class Obj4 { | ||
| 4212 | 4215 | "right": right.toJson(), |
| 4213 | 4216 | "s": s.toJson(), |
| 4214 | 4217 | "sbyte": sbyte.toJson(), |
| 4215 | - "sealed": sealed.toJson(), | |
| 4216 | - "SEL": sel.toJson(), | |
| 4217 | - "select": select.toJson(), | |
| 4218 | + }; | |
| 4219 | +} | |
| 4220 | + | |
| 4221 | +class Noexcept { | |
| 4222 | + final int noexcept; | |
| 4223 | + | |
| 4224 | + Noexcept({ | |
| 4225 | + required this.noexcept, | |
| 4226 | + }); | |
| 4227 | + | |
| 4228 | + factory Noexcept.fromJson(Map<String, dynamic> json) => Noexcept( | |
| 4229 | + noexcept: json["noexcept"], | |
| 4230 | + ); | |
| 4231 | + | |
| 4232 | + Map<String, dynamic> toJson() => { | |
| 4233 | + "noexcept": noexcept, | |
| 4218 | 4234 | }; |
| 4219 | 4235 | } |
| 4220 | 4236 | |
| @@ -4538,6 +4554,38 @@ class ObjectMapper { | ||
| 4538 | 4554 | }; |
| 4539 | 4555 | } |
| 4540 | 4556 | |
| 4557 | +class ObjectReader { | |
| 4558 | + final int objectReader; | |
| 4559 | + | |
| 4560 | + ObjectReader({ | |
| 4561 | + required this.objectReader, | |
| 4562 | + }); | |
| 4563 | + | |
| 4564 | + factory ObjectReader.fromJson(Map<String, dynamic> json) => ObjectReader( | |
| 4565 | + objectReader: json["ObjectReader"], | |
| 4566 | + ); | |
| 4567 | + | |
| 4568 | + Map<String, dynamic> toJson() => { | |
| 4569 | + "ObjectReader": objectReader, | |
| 4570 | + }; | |
| 4571 | +} | |
| 4572 | + | |
| 4573 | +class ObjectWriter { | |
| 4574 | + final int objectWriter; | |
| 4575 | + | |
| 4576 | + ObjectWriter({ | |
| 4577 | + required this.objectWriter, | |
| 4578 | + }); | |
| 4579 | + | |
| 4580 | + factory ObjectWriter.fromJson(Map<String, dynamic> json) => ObjectWriter( | |
| 4581 | + objectWriter: json["ObjectWriter"], | |
| 4582 | + ); | |
| 4583 | + | |
| 4584 | + Map<String, dynamic> toJson() => { | |
| 4585 | + "ObjectWriter": objectWriter, | |
| 4586 | + }; | |
| 4587 | +} | |
| 4588 | + | |
| 4541 | 4589 | class Of { |
| 4542 | 4590 | final int of; |
| 4543 | 4591 | |
| @@ -5194,54 +5242,6 @@ class Sbyte { | ||
| 5194 | 5242 | }; |
| 5195 | 5243 | } |
| 5196 | 5244 | |
| 5197 | -class Sealed { | |
| 5198 | - final int sealed; | |
| 5199 | - | |
| 5200 | - Sealed({ | |
| 5201 | - required this.sealed, | |
| 5202 | - }); | |
| 5203 | - | |
| 5204 | - factory Sealed.fromJson(Map<String, dynamic> json) => Sealed( | |
| 5205 | - sealed: json["sealed"], | |
| 5206 | - ); | |
| 5207 | - | |
| 5208 | - Map<String, dynamic> toJson() => { | |
| 5209 | - "sealed": sealed, | |
| 5210 | - }; | |
| 5211 | -} | |
| 5212 | - | |
| 5213 | -class Sel { | |
| 5214 | - final int sel; | |
| 5215 | - | |
| 5216 | - Sel({ | |
| 5217 | - required this.sel, | |
| 5218 | - }); | |
| 5219 | - | |
| 5220 | - factory Sel.fromJson(Map<String, dynamic> json) => Sel( | |
| 5221 | - sel: json["SEL"], | |
| 5222 | - ); | |
| 5223 | - | |
| 5224 | - Map<String, dynamic> toJson() => { | |
| 5225 | - "SEL": sel, | |
| 5226 | - }; | |
| 5227 | -} | |
| 5228 | - | |
| 5229 | -class Select { | |
| 5230 | - final int select; | |
| 5231 | - | |
| 5232 | - Select({ | |
| 5233 | - required this.select, | |
| 5234 | - }); | |
| 5235 | - | |
| 5236 | - factory Select.fromJson(Map<String, dynamic> json) => Select( | |
| 5237 | - select: json["select"], | |
| 5238 | - ); | |
| 5239 | - | |
| 5240 | - Map<String, dynamic> toJson() => { | |
| 5241 | - "select": select, | |
| 5242 | - }; | |
| 5243 | -} | |
| 5244 | - | |
| 5245 | 5245 | class Obj5 { |
| 5246 | 5246 | final int dummy; |
| 5247 | 5247 | final SelfClass obj5Self; |
| @@ -5257,10 +5257,13 @@ class Obj5 { | ||
| 5257 | 5257 | final Try obj5Try; |
| 5258 | 5258 | final TypeClass obj5Type; |
| 5259 | 5259 | final Typedef obj5Typedef; |
| 5260 | - final Var obj5Var; | |
| 5261 | 5260 | final TrueClass purpleTrue; |
| 5261 | + final Sealed sealed; | |
| 5262 | + final Sel sel; | |
| 5263 | + final Select select; | |
| 5262 | 5264 | final Self self; |
| 5263 | 5265 | final Sendable sendable; |
| 5266 | + final SerializationFeature serializationFeature; | |
| 5264 | 5267 | final Serialize serialize; |
| 5265 | 5268 | final SerializerProvider serializerProvider; |
| 5266 | 5269 | final Short short; |
| @@ -5305,9 +5308,6 @@ class Obj5 { | ||
| 5305 | 5308 | final Ushort ushort; |
| 5306 | 5309 | final Using using; |
| 5307 | 5310 | final Utf8JsonReader utf8JsonReader; |
| 5308 | - final Utf8JsonWriter utf8JsonWriter; | |
| 5309 | - final Uuid uuid; | |
| 5310 | - final Virtual virtual; | |
| 5311 | 5311 | |
| 5312 | 5312 | Obj5({ |
| 5313 | 5313 | required this.dummy, |
| @@ -5324,10 +5324,13 @@ class Obj5 { | ||
| 5324 | 5324 | required this.obj5Try, |
| 5325 | 5325 | required this.obj5Type, |
| 5326 | 5326 | required this.obj5Typedef, |
| 5327 | - required this.obj5Var, | |
| 5328 | 5327 | required this.purpleTrue, |
| 5328 | + required this.sealed, | |
| 5329 | + required this.sel, | |
| 5330 | + required this.select, | |
| 5329 | 5331 | required this.self, |
| 5330 | 5332 | required this.sendable, |
| 5333 | + required this.serializationFeature, | |
| 5331 | 5334 | required this.serialize, |
| 5332 | 5335 | required this.serializerProvider, |
| 5333 | 5336 | required this.short, |
| @@ -5372,9 +5375,6 @@ class Obj5 { | ||
| 5372 | 5375 | required this.ushort, |
| 5373 | 5376 | required this.using, |
| 5374 | 5377 | required this.utf8JsonReader, |
| 5375 | - required this.utf8JsonWriter, | |
| 5376 | - required this.uuid, | |
| 5377 | - required this.virtual, | |
| 5378 | 5378 | }); |
| 5379 | 5379 | |
| 5380 | 5380 | factory Obj5.fromJson(Map<String, dynamic> json) => Obj5( |
| @@ -5392,10 +5392,13 @@ class Obj5 { | ||
| 5392 | 5392 | obj5Try: Try.fromJson(json["try"]), |
| 5393 | 5393 | obj5Type: TypeClass.fromJson(json["type"]), |
| 5394 | 5394 | obj5Typedef: Typedef.fromJson(json["typedef"]), |
| 5395 | - obj5Var: Var.fromJson(json["var"]), | |
| 5396 | 5395 | purpleTrue: TrueClass.fromJson(json["true"]), |
| 5396 | + sealed: Sealed.fromJson(json["sealed"]), | |
| 5397 | + sel: Sel.fromJson(json["SEL"]), | |
| 5398 | + select: Select.fromJson(json["select"]), | |
| 5397 | 5399 | self: Self.fromJson(json["Self"]), |
| 5398 | 5400 | sendable: Sendable.fromJson(json["Sendable"]), |
| 5401 | + serializationFeature: SerializationFeature.fromJson(json["SerializationFeature"]), | |
| 5399 | 5402 | serialize: Serialize.fromJson(json["serialize"]), |
| 5400 | 5403 | serializerProvider: SerializerProvider.fromJson(json["SerializerProvider"]), |
| 5401 | 5404 | short: Short.fromJson(json["short"]), |
| @@ -5440,9 +5443,6 @@ class Obj5 { | ||
| 5440 | 5443 | ushort: Ushort.fromJson(json["ushort"]), |
| 5441 | 5444 | using: Using.fromJson(json["using"]), |
| 5442 | 5445 | utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]), |
| 5443 | - utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]), | |
| 5444 | - uuid: Uuid.fromJson(json["UUID"]), | |
| 5445 | - virtual: Virtual.fromJson(json["virtual"]), | |
| 5446 | 5446 | ); |
| 5447 | 5447 | |
| 5448 | 5448 | Map<String, dynamic> toJson() => { |
| @@ -5460,10 +5460,13 @@ class Obj5 { | ||
| 5460 | 5460 | "try": obj5Try.toJson(), |
| 5461 | 5461 | "type": obj5Type.toJson(), |
| 5462 | 5462 | "typedef": obj5Typedef.toJson(), |
| 5463 | - "var": obj5Var.toJson(), | |
| 5464 | 5463 | "true": purpleTrue.toJson(), |
| 5464 | + "sealed": sealed.toJson(), | |
| 5465 | + "SEL": sel.toJson(), | |
| 5466 | + "select": select.toJson(), | |
| 5465 | 5467 | "Self": self.toJson(), |
| 5466 | 5468 | "Sendable": sendable.toJson(), |
| 5469 | + "SerializationFeature": serializationFeature.toJson(), | |
| 5467 | 5470 | "serialize": serialize.toJson(), |
| 5468 | 5471 | "SerializerProvider": serializerProvider.toJson(), |
| 5469 | 5472 | "short": short.toJson(), |
| @@ -5508,9 +5511,6 @@ class Obj5 { | ||
| 5508 | 5511 | "ushort": ushort.toJson(), |
| 5509 | 5512 | "using": using.toJson(), |
| 5510 | 5513 | "Utf8JsonReader": utf8JsonReader.toJson(), |
| 5511 | - "Utf8JsonWriter": utf8JsonWriter.toJson(), | |
| 5512 | - "UUID": uuid.toJson(), | |
| 5513 | - "virtual": virtual.toJson(), | |
| 5514 | 5514 | }; |
| 5515 | 5515 | } |
| 5516 | 5516 | |
| @@ -5722,35 +5722,67 @@ class Typedef { | ||
| 5722 | 5722 | }; |
| 5723 | 5723 | } |
| 5724 | 5724 | |
| 5725 | -class Var { | |
| 5726 | - final int varVar; | |
| 5725 | +class TrueClass { | |
| 5726 | + final int trueTrue; | |
| 5727 | 5727 | |
| 5728 | - Var({ | |
| 5729 | - required this.varVar, | |
| 5728 | + TrueClass({ | |
| 5729 | + required this.trueTrue, | |
| 5730 | 5730 | }); |
| 5731 | 5731 | |
| 5732 | - factory Var.fromJson(Map<String, dynamic> json) => Var( | |
| 5733 | - varVar: json["var"], | |
| 5732 | + factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass( | |
| 5733 | + trueTrue: json["true"], | |
| 5734 | 5734 | ); |
| 5735 | 5735 | |
| 5736 | 5736 | Map<String, dynamic> toJson() => { |
| 5737 | - "var": varVar, | |
| 5737 | + "true": trueTrue, | |
| 5738 | 5738 | }; |
| 5739 | 5739 | } |
| 5740 | 5740 | |
| 5741 | -class TrueClass { | |
| 5742 | - final int trueTrue; | |
| 5741 | +class Sealed { | |
| 5742 | + final int sealed; | |
| 5743 | 5743 | |
| 5744 | - TrueClass({ | |
| 5745 | - required this.trueTrue, | |
| 5744 | + Sealed({ | |
| 5745 | + required this.sealed, | |
| 5746 | 5746 | }); |
| 5747 | 5747 | |
| 5748 | - factory TrueClass.fromJson(Map<String, dynamic> json) => TrueClass( | |
| 5749 | - trueTrue: json["true"], | |
| 5748 | + factory Sealed.fromJson(Map<String, dynamic> json) => Sealed( | |
| 5749 | + sealed: json["sealed"], | |
| 5750 | 5750 | ); |
| 5751 | 5751 | |
| 5752 | 5752 | Map<String, dynamic> toJson() => { |
| 5753 | - "true": trueTrue, | |
| 5753 | + "sealed": sealed, | |
| 5754 | + }; | |
| 5755 | +} | |
| 5756 | + | |
| 5757 | +class Sel { | |
| 5758 | + final int sel; | |
| 5759 | + | |
| 5760 | + Sel({ | |
| 5761 | + required this.sel, | |
| 5762 | + }); | |
| 5763 | + | |
| 5764 | + factory Sel.fromJson(Map<String, dynamic> json) => Sel( | |
| 5765 | + sel: json["SEL"], | |
| 5766 | + ); | |
| 5767 | + | |
| 5768 | + Map<String, dynamic> toJson() => { | |
| 5769 | + "SEL": sel, | |
| 5770 | + }; | |
| 5771 | +} | |
| 5772 | + | |
| 5773 | +class Select { | |
| 5774 | + final int select; | |
| 5775 | + | |
| 5776 | + Select({ | |
| 5777 | + required this.select, | |
| 5778 | + }); | |
| 5779 | + | |
| 5780 | + factory Select.fromJson(Map<String, dynamic> json) => Select( | |
| 5781 | + select: json["select"], | |
| 5782 | + ); | |
| 5783 | + | |
| 5784 | + Map<String, dynamic> toJson() => { | |
| 5785 | + "select": select, | |
| 5754 | 5786 | }; |
| 5755 | 5787 | } |
| 5756 | 5788 | |
| @@ -5786,6 +5818,22 @@ class Sendable { | ||
| 5786 | 5818 | }; |
| 5787 | 5819 | } |
| 5788 | 5820 | |
| 5821 | +class SerializationFeature { | |
| 5822 | + final int serializationFeature; | |
| 5823 | + | |
| 5824 | + SerializationFeature({ | |
| 5825 | + required this.serializationFeature, | |
| 5826 | + }); | |
| 5827 | + | |
| 5828 | + factory SerializationFeature.fromJson(Map<String, dynamic> json) => SerializationFeature( | |
| 5829 | + serializationFeature: json["SerializationFeature"], | |
| 5830 | + ); | |
| 5831 | + | |
| 5832 | + Map<String, dynamic> toJson() => { | |
| 5833 | + "SerializationFeature": serializationFeature, | |
| 5834 | + }; | |
| 5835 | +} | |
| 5836 | + | |
| 5789 | 5837 | class Serialize { |
| 5790 | 5838 | final int serialize; |
| 5791 | 5839 | |
| @@ -6490,60 +6538,16 @@ class Utf8JsonReader { | ||
| 6490 | 6538 | }; |
| 6491 | 6539 | } |
| 6492 | 6540 | |
| 6493 | -class Utf8JsonWriter { | |
| 6494 | - final int utf8JsonWriter; | |
| 6495 | - | |
| 6496 | - Utf8JsonWriter({ | |
| 6497 | - required this.utf8JsonWriter, | |
| 6498 | - }); | |
| 6499 | - | |
| 6500 | - factory Utf8JsonWriter.fromJson(Map<String, dynamic> json) => Utf8JsonWriter( | |
| 6501 | - utf8JsonWriter: json["Utf8JsonWriter"], | |
| 6502 | - ); | |
| 6503 | - | |
| 6504 | - Map<String, dynamic> toJson() => { | |
| 6505 | - "Utf8JsonWriter": utf8JsonWriter, | |
| 6506 | - }; | |
| 6507 | -} | |
| 6508 | - | |
| 6509 | -class Uuid { | |
| 6510 | - final int uuid; | |
| 6511 | - | |
| 6512 | - Uuid({ | |
| 6513 | - required this.uuid, | |
| 6514 | - }); | |
| 6515 | - | |
| 6516 | - factory Uuid.fromJson(Map<String, dynamic> json) => Uuid( | |
| 6517 | - uuid: json["UUID"], | |
| 6518 | - ); | |
| 6519 | - | |
| 6520 | - Map<String, dynamic> toJson() => { | |
| 6521 | - "UUID": uuid, | |
| 6522 | - }; | |
| 6523 | -} | |
| 6524 | - | |
| 6525 | -class Virtual { | |
| 6526 | - final int virtual; | |
| 6527 | - | |
| 6528 | - Virtual({ | |
| 6529 | - required this.virtual, | |
| 6530 | - }); | |
| 6531 | - | |
| 6532 | - factory Virtual.fromJson(Map<String, dynamic> json) => Virtual( | |
| 6533 | - virtual: json["virtual"], | |
| 6534 | - ); | |
| 6535 | - | |
| 6536 | - Map<String, dynamic> toJson() => { | |
| 6537 | - "virtual": virtual, | |
| 6538 | - }; | |
| 6539 | -} | |
| 6540 | - | |
| 6541 | 6541 | class Obj6 { |
| 6542 | 6542 | final int dummy; |
| 6543 | + final Var obj6Var; | |
| 6543 | 6544 | final Void obj6Void; |
| 6544 | 6545 | final While obj6While; |
| 6545 | 6546 | final With obj6With; |
| 6546 | 6547 | final Yield obj6Yield; |
| 6548 | + final Utf8JsonWriter utf8JsonWriter; | |
| 6549 | + final Uuid uuid; | |
| 6550 | + final Virtual virtual; | |
| 6547 | 6551 | final Volatile volatile; |
| 6548 | 6552 | final WcharT wcharT; |
| 6549 | 6553 | final Weak weak; |
| @@ -6555,10 +6559,14 @@ class Obj6 { | ||
| 6555 | 6559 | |
| 6556 | 6560 | Obj6({ |
| 6557 | 6561 | required this.dummy, |
| 6562 | + required this.obj6Var, | |
| 6558 | 6563 | required this.obj6Void, |
| 6559 | 6564 | required this.obj6While, |
| 6560 | 6565 | required this.obj6With, |
| 6561 | 6566 | required this.obj6Yield, |
| 6567 | + required this.utf8JsonWriter, | |
| 6568 | + required this.uuid, | |
| 6569 | + required this.virtual, | |
| 6562 | 6570 | required this.volatile, |
| 6563 | 6571 | required this.wcharT, |
| 6564 | 6572 | required this.weak, |
| @@ -6571,10 +6579,14 @@ class Obj6 { | ||
| 6571 | 6579 | |
| 6572 | 6580 | factory Obj6.fromJson(Map<String, dynamic> json) => Obj6( |
| 6573 | 6581 | dummy: json["dummy"], |
| 6582 | + obj6Var: Var.fromJson(json["var"]), | |
| 6574 | 6583 | obj6Void: Void.fromJson(json["void"]), |
| 6575 | 6584 | obj6While: While.fromJson(json["while"]), |
| 6576 | 6585 | obj6With: With.fromJson(json["with"]), |
| 6577 | 6586 | obj6Yield: Yield.fromJson(json["yield"]), |
| 6587 | + utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]), | |
| 6588 | + uuid: Uuid.fromJson(json["UUID"]), | |
| 6589 | + virtual: Virtual.fromJson(json["virtual"]), | |
| 6578 | 6590 | volatile: Volatile.fromJson(json["volatile"]), |
| 6579 | 6591 | wcharT: WcharT.fromJson(json["wchar_t"]), |
| 6580 | 6592 | weak: Weak.fromJson(json["weak"]), |
| @@ -6587,10 +6599,14 @@ class Obj6 { | ||
| 6587 | 6599 | |
| 6588 | 6600 | Map<String, dynamic> toJson() => { |
| 6589 | 6601 | "dummy": dummy, |
| 6602 | + "var": obj6Var.toJson(), | |
| 6590 | 6603 | "void": obj6Void.toJson(), |
| 6591 | 6604 | "while": obj6While.toJson(), |
| 6592 | 6605 | "with": obj6With.toJson(), |
| 6593 | 6606 | "yield": obj6Yield.toJson(), |
| 6607 | + "Utf8JsonWriter": utf8JsonWriter.toJson(), | |
| 6608 | + "UUID": uuid.toJson(), | |
| 6609 | + "virtual": virtual.toJson(), | |
| 6594 | 6610 | "volatile": volatile.toJson(), |
| 6595 | 6611 | "wchar_t": wcharT.toJson(), |
| 6596 | 6612 | "weak": weak.toJson(), |
| @@ -6602,6 +6618,22 @@ class Obj6 { | ||
| 6602 | 6618 | }; |
| 6603 | 6619 | } |
| 6604 | 6620 | |
| 6621 | +class Var { | |
| 6622 | + final int varVar; | |
| 6623 | + | |
| 6624 | + Var({ | |
| 6625 | + required this.varVar, | |
| 6626 | + }); | |
| 6627 | + | |
| 6628 | + factory Var.fromJson(Map<String, dynamic> json) => Var( | |
| 6629 | + varVar: json["var"], | |
| 6630 | + ); | |
| 6631 | + | |
| 6632 | + Map<String, dynamic> toJson() => { | |
| 6633 | + "var": varVar, | |
| 6634 | + }; | |
| 6635 | +} | |
| 6636 | + | |
| 6605 | 6637 | class Void { |
| 6606 | 6638 | final int voidVoid; |
| 6607 | 6639 | |
| @@ -6666,6 +6698,54 @@ class Yield { | ||
| 6666 | 6698 | }; |
| 6667 | 6699 | } |
| 6668 | 6700 | |
| 6701 | +class Utf8JsonWriter { | |
| 6702 | + final int utf8JsonWriter; | |
| 6703 | + | |
| 6704 | + Utf8JsonWriter({ | |
| 6705 | + required this.utf8JsonWriter, | |
| 6706 | + }); | |
| 6707 | + | |
| 6708 | + factory Utf8JsonWriter.fromJson(Map<String, dynamic> json) => Utf8JsonWriter( | |
| 6709 | + utf8JsonWriter: json["Utf8JsonWriter"], | |
| 6710 | + ); | |
| 6711 | + | |
| 6712 | + Map<String, dynamic> toJson() => { | |
| 6713 | + "Utf8JsonWriter": utf8JsonWriter, | |
| 6714 | + }; | |
| 6715 | +} | |
| 6716 | + | |
| 6717 | +class Uuid { | |
| 6718 | + final int uuid; | |
| 6719 | + | |
| 6720 | + Uuid({ | |
| 6721 | + required this.uuid, | |
| 6722 | + }); | |
| 6723 | + | |
| 6724 | + factory Uuid.fromJson(Map<String, dynamic> json) => Uuid( | |
| 6725 | + uuid: json["UUID"], | |
| 6726 | + ); | |
| 6727 | + | |
| 6728 | + Map<String, dynamic> toJson() => { | |
| 6729 | + "UUID": uuid, | |
| 6730 | + }; | |
| 6731 | +} | |
| 6732 | + | |
| 6733 | +class Virtual { | |
| 6734 | + final int virtual; | |
| 6735 | + | |
| 6736 | + Virtual({ | |
| 6737 | + required this.virtual, | |
| 6738 | + }); | |
| 6739 | + | |
| 6740 | + factory Virtual.fromJson(Map<String, dynamic> json) => Virtual( | |
| 6741 | + virtual: json["virtual"], | |
| 6742 | + ); | |
| 6743 | + | |
| 6744 | + Map<String, dynamic> toJson() => { | |
| 6745 | + "virtual": virtual, | |
| 6746 | + }; | |
| 6747 | +} | |
| 6748 | + | |
| 6669 | 6749 | class Volatile { |
| 6670 | 6750 | final int volatile; |
Melixirdefault / QuickType.ex+595 −427
| @@ -3473,6 +3473,45 @@ defmodule Delete do | ||
| 3473 | 3473 | end |
| 3474 | 3474 | end |
| 3475 | 3475 | |
| 3476 | +defmodule DeserializationFeature do | |
| 3477 | + @enforce_keys [:deserialization_feature] | |
| 3478 | + defstruct [:deserialization_feature] | |
| 3479 | + | |
| 3480 | + @type t :: %__MODULE__{ | |
| 3481 | + deserialization_feature: integer() | |
| 3482 | + } | |
| 3483 | + | |
| 3484 | + def decode_deserialization_feature(value) when is_integer(value), do: value | |
| 3485 | + def decode_deserialization_feature(_), do: {:error, "Unexpected type when decoding DeserializationFeature.deserialization_feature"} | |
| 3486 | + | |
| 3487 | + def encode_deserialization_feature(value) when is_integer(value), do: value | |
| 3488 | + def encode_deserialization_feature(_), do: {:error, "Unexpected type when encoding DeserializationFeature.deserialization_feature"} | |
| 3489 | + | |
| 3490 | + def from_map(m) do | |
| 3491 | + %DeserializationFeature{ | |
| 3492 | + deserialization_feature: decode_deserialization_feature(m["DeserializationFeature"]), | |
| 3493 | + } | |
| 3494 | + end | |
| 3495 | + | |
| 3496 | + def from_json(json) do | |
| 3497 | + json | |
| 3498 | + |> Jason.decode!() | |
| 3499 | + |> from_map() | |
| 3500 | + end | |
| 3501 | + | |
| 3502 | + def to_map(struct) do | |
| 3503 | + %{ | |
| 3504 | + "DeserializationFeature" => struct.deserialization_feature, | |
| 3505 | + } | |
| 3506 | + end | |
| 3507 | + | |
| 3508 | + def to_json(struct) do | |
| 3509 | + struct | |
| 3510 | + |> to_map() | |
| 3511 | + |> Jason.encode!() | |
| 3512 | + end | |
| 3513 | +end | |
| 3514 | + | |
| 3476 | 3515 | defmodule DictClass do |
| 3477 | 3516 | @enforce_keys [:dict] |
| 3478 | 3517 | defstruct [:dict] |
| @@ -5079,45 +5118,6 @@ defmodule Go do | ||
| 5079 | 5118 | end |
| 5080 | 5119 | end |
| 5081 | 5120 | |
| 5082 | -defmodule Goto do | |
| 5083 | - @enforce_keys [:goto] | |
| 5084 | - defstruct [:goto] | |
| 5085 | - | |
| 5086 | - @type t :: %__MODULE__{ | |
| 5087 | - goto: integer() | |
| 5088 | - } | |
| 5089 | - | |
| 5090 | - def decode_goto(value) when is_integer(value), do: value | |
| 5091 | - def decode_goto(_), do: {:error, "Unexpected type when decoding Goto.goto"} | |
| 5092 | - | |
| 5093 | - def encode_goto(value) when is_integer(value), do: value | |
| 5094 | - def encode_goto(_), do: {:error, "Unexpected type when encoding Goto.goto"} | |
| 5095 | - | |
| 5096 | - def from_map(m) do | |
| 5097 | - %Goto{ | |
| 5098 | - goto: decode_goto(m["goto"]), | |
| 5099 | - } | |
| 5100 | - end | |
| 5101 | - | |
| 5102 | - def from_json(json) do | |
| 5103 | - json | |
| 5104 | - |> Jason.decode!() | |
| 5105 | - |> from_map() | |
| 5106 | - end | |
| 5107 | - | |
| 5108 | - def to_map(struct) do | |
| 5109 | - %{ | |
| 5110 | - "goto" => struct.goto, | |
| 5111 | - } | |
| 5112 | - end | |
| 5113 | - | |
| 5114 | - def to_json(struct) do | |
| 5115 | - struct | |
| 5116 | - |> to_map() | |
| 5117 | - |> Jason.encode!() | |
| 5118 | - end | |
| 5119 | -end | |
| 5120 | - | |
| 5121 | 5121 | defmodule DefClass do |
| 5122 | 5122 | @enforce_keys [:def_def] |
| 5123 | 5123 | defstruct [:def_def] |
| @@ -5275,8 +5275,8 @@ defmodule FalseClass do | ||
| 5275 | 5275 | end |
| 5276 | 5276 | |
| 5277 | 5277 | defmodule Obj2 do |
| 5278 | - @enforce_keys [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :obj2_def, :obj2_do, :obj2_else, :obj2_false] | |
| 5279 | - defstruct [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :obj2_def, :obj2_do, :obj2_else, :obj2_false] | |
| 5278 | + @enforce_keys [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :deserialization_feature, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :obj2_def, :obj2_do, :obj2_else, :obj2_false] | |
| 5279 | + defstruct [:date_formatter, :date_only, :date_only_converter, :date_parse_handling, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :default, :defer, :deinit, :del, :delegate, :delete, :deserialization_feature, :dict, :dictionary, :did_set, :double, :dummy, :dynamic, :dynamic_cast, :elif, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :obj2_def, :obj2_do, :obj2_else, :obj2_false] | |
| 5280 | 5280 | |
| 5281 | 5281 | @type t :: %__MODULE__{ |
| 5282 | 5282 | date_formatter: DateFormatter.t(), |
| @@ -5298,6 +5298,7 @@ defmodule Obj2 do | ||
| 5298 | 5298 | del: Del.t(), |
| 5299 | 5299 | delegate: Delegate.t(), |
| 5300 | 5300 | delete: Delete.t(), |
| 5301 | + deserialization_feature: DeserializationFeature.t(), | |
| 5301 | 5302 | dict: DictClass.t(), |
| 5302 | 5303 | dictionary: Dictionary.t(), |
| 5303 | 5304 | did_set: DidSet.t(), |
| @@ -5339,7 +5340,6 @@ defmodule Obj2 do | ||
| 5339 | 5340 | get: Get.t(), |
| 5340 | 5341 | global: Global.t(), |
| 5341 | 5342 | go: Go.t(), |
| 5342 | - goto: Goto.t(), | |
| 5343 | 5343 | obj2_def: DefClass.t(), |
| 5344 | 5344 | obj2_do: DoClass.t(), |
| 5345 | 5345 | obj2_else: ElseClass.t(), |
| @@ -5373,6 +5373,7 @@ defmodule Obj2 do | ||
| 5373 | 5373 | del: Del.from_map(m["del"]), |
| 5374 | 5374 | delegate: Delegate.from_map(m["delegate"]), |
| 5375 | 5375 | delete: Delete.from_map(m["delete"]), |
| 5376 | + deserialization_feature: DeserializationFeature.from_map(m["DeserializationFeature"]), | |
| 5376 | 5377 | dict: DictClass.from_map(m["dict"]), |
| 5377 | 5378 | dictionary: Dictionary.from_map(m["dictionary"]), |
| 5378 | 5379 | did_set: DidSet.from_map(m["didSet"]), |
| @@ -5414,7 +5415,6 @@ defmodule Obj2 do | ||
| 5414 | 5415 | get: Get.from_map(m["get"]), |
| 5415 | 5416 | global: Global.from_map(m["global"]), |
| 5416 | 5417 | go: Go.from_map(m["go"]), |
| 5417 | - goto: Goto.from_map(m["goto"]), | |
| 5418 | 5418 | obj2_def: DefClass.from_map(m["def"]), |
| 5419 | 5419 | obj2_do: DoClass.from_map(m["do"]), |
| 5420 | 5420 | obj2_else: ElseClass.from_map(m["else"]), |
| @@ -5449,6 +5449,7 @@ defmodule Obj2 do | ||
| 5449 | 5449 | "del" => Del.to_map(struct.del), |
| 5450 | 5450 | "delegate" => Delegate.to_map(struct.delegate), |
| 5451 | 5451 | "delete" => Delete.to_map(struct.delete), |
| 5452 | + "DeserializationFeature" => DeserializationFeature.to_map(struct.deserialization_feature), | |
| 5452 | 5453 | "dict" => DictClass.to_map(struct.dict), |
| 5453 | 5454 | "dictionary" => Dictionary.to_map(struct.dictionary), |
| 5454 | 5455 | "didSet" => DidSet.to_map(struct.did_set), |
| @@ -5490,7 +5491,6 @@ defmodule Obj2 do | ||
| 5490 | 5491 | "get" => Get.to_map(struct.get), |
| 5491 | 5492 | "global" => Global.to_map(struct.global), |
| 5492 | 5493 | "go" => Go.to_map(struct.go), |
| 5493 | - "goto" => Goto.to_map(struct.goto), | |
| 5494 | 5494 | "def" => DefClass.to_map(struct.obj2_def), |
| 5495 | 5495 | "do" => DoClass.to_map(struct.obj2_do), |
| 5496 | 5496 | "else" => ElseClass.to_map(struct.obj2_else), |
| @@ -5505,6 +5505,45 @@ defmodule Obj2 do | ||
| 5505 | 5505 | end |
| 5506 | 5506 | end |
| 5507 | 5507 | |
| 5508 | +defmodule Goto do | |
| 5509 | + @enforce_keys [:goto] | |
| 5510 | + defstruct [:goto] | |
| 5511 | + | |
| 5512 | + @type t :: %__MODULE__{ | |
| 5513 | + goto: integer() | |
| 5514 | + } | |
| 5515 | + | |
| 5516 | + def decode_goto(value) when is_integer(value), do: value | |
| 5517 | + def decode_goto(_), do: {:error, "Unexpected type when decoding Goto.goto"} | |
| 5518 | + | |
| 5519 | + def encode_goto(value) when is_integer(value), do: value | |
| 5520 | + def encode_goto(_), do: {:error, "Unexpected type when encoding Goto.goto"} | |
| 5521 | + | |
| 5522 | + def from_map(m) do | |
| 5523 | + %Goto{ | |
| 5524 | + goto: decode_goto(m["goto"]), | |
| 5525 | + } | |
| 5526 | + end | |
| 5527 | + | |
| 5528 | + def from_json(json) do | |
| 5529 | + json | |
| 5530 | + |> Jason.decode!() | |
| 5531 | + |> from_map() | |
| 5532 | + end | |
| 5533 | + | |
| 5534 | + def to_map(struct) do | |
| 5535 | + %{ | |
| 5536 | + "goto" => struct.goto, | |
| 5537 | + } | |
| 5538 | + end | |
| 5539 | + | |
| 5540 | + def to_json(struct) do | |
| 5541 | + struct | |
| 5542 | + |> to_map() | |
| 5543 | + |> Jason.encode!() | |
| 5544 | + end | |
| 5545 | +end | |
| 5546 | + | |
| 5508 | 5547 | defmodule Guard do |
| 5509 | 5548 | @enforce_keys [:guard] |
| 5510 | 5549 | defstruct [:guard] |
| @@ -7845,45 +7884,6 @@ defmodule No do | ||
| 7845 | 7884 | end |
| 7846 | 7885 | end |
| 7847 | 7886 | |
| 7848 | -defmodule Noexcept do | |
| 7849 | - @enforce_keys [:noexcept] | |
| 7850 | - defstruct [:noexcept] | |
| 7851 | - | |
| 7852 | - @type t :: %__MODULE__{ | |
| 7853 | - noexcept: integer() | |
| 7854 | - } | |
| 7855 | - | |
| 7856 | - def decode_noexcept(value) when is_integer(value), do: value | |
| 7857 | - def decode_noexcept(_), do: {:error, "Unexpected type when decoding Noexcept.noexcept"} | |
| 7858 | - | |
| 7859 | - def encode_noexcept(value) when is_integer(value), do: value | |
| 7860 | - def encode_noexcept(_), do: {:error, "Unexpected type when encoding Noexcept.noexcept"} | |
| 7861 | - | |
| 7862 | - def from_map(m) do | |
| 7863 | - %Noexcept{ | |
| 7864 | - noexcept: decode_noexcept(m["noexcept"]), | |
| 7865 | - } | |
| 7866 | - end | |
| 7867 | - | |
| 7868 | - def from_json(json) do | |
| 7869 | - json | |
| 7870 | - |> Jason.decode!() | |
| 7871 | - |> from_map() | |
| 7872 | - end | |
| 7873 | - | |
| 7874 | - def to_map(struct) do | |
| 7875 | - %{ | |
| 7876 | - "noexcept" => struct.noexcept, | |
| 7877 | - } | |
| 7878 | - end | |
| 7879 | - | |
| 7880 | - def to_json(struct) do | |
| 7881 | - struct | |
| 7882 | - |> to_map() | |
| 7883 | - |> Jason.encode!() | |
| 7884 | - end | |
| 7885 | -end | |
| 7886 | - | |
| 7887 | 7887 | defmodule ImportClass do |
| 7888 | 7888 | @enforce_keys [:import_import] |
| 7889 | 7889 | defstruct [:import_import] |
| @@ -8002,11 +8002,12 @@ defmodule NilClass do | ||
| 8002 | 8002 | end |
| 8003 | 8003 | |
| 8004 | 8004 | defmodule Obj3 do |
| 8005 | - @enforce_keys [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :obj3_import, :obj3_in, :obj3_nil] | |
| 8006 | - defstruct [:dummy, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :noexcept, :obj3_import, :obj3_in, :obj3_nil] | |
| 8005 | + @enforce_keys [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil] | |
| 8006 | + defstruct [:dummy, :goto, :guard, :has_own_property, :hash_code, :hashable, :hasher, :id, :if, :imp, :implements, :implicit, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_any, :json_coding_key, :json_converter, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_serializer, :json_token, :json_token_type, :json_writer, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :no, :obj3_import, :obj3_in, :obj3_nil] | |
| 8007 | 8007 | |
| 8008 | 8008 | @type t :: %__MODULE__{ |
| 8009 | 8009 | dummy: integer(), |
| 8010 | + goto: Goto.t(), | |
| 8010 | 8011 | guard: Guard.t(), |
| 8011 | 8012 | has_own_property: HasOwnProperty.t(), |
| 8012 | 8013 | hash_code: HashCode.t(), |
| @@ -8067,7 +8068,6 @@ defmodule Obj3 do | ||
| 8067 | 8068 | new: New.t(), |
| 8068 | 8069 | newtonsoft: Newtonsoft.t(), |
| 8069 | 8070 | no: No.t(), |
| 8070 | - noexcept: Noexcept.t(), | |
| 8071 | 8071 | obj3_import: ImportClass.t(), |
| 8072 | 8072 | obj3_in: InClass.t(), |
| 8073 | 8073 | obj3_nil: NilClass.t() |
| @@ -8082,6 +8082,7 @@ defmodule Obj3 do | ||
| 8082 | 8082 | def from_map(m) do |
| 8083 | 8083 | %Obj3{ |
| 8084 | 8084 | dummy: decode_dummy(m["dummy"]), |
| 8085 | + goto: Goto.from_map(m["goto"]), | |
| 8085 | 8086 | guard: Guard.from_map(m["guard"]), |
| 8086 | 8087 | has_own_property: HasOwnProperty.from_map(m["hasOwnProperty"]), |
| 8087 | 8088 | hash_code: HashCode.from_map(m["hashCode"]), |
| @@ -8142,7 +8143,6 @@ defmodule Obj3 do | ||
| 8142 | 8143 | new: New.from_map(m["new"]), |
| 8143 | 8144 | newtonsoft: Newtonsoft.from_map(m["newtonsoft"]), |
| 8144 | 8145 | no: No.from_map(m["NO"]), |
| 8145 | - noexcept: Noexcept.from_map(m["noexcept"]), | |
| 8146 | 8146 | obj3_import: ImportClass.from_map(m["import"]), |
| 8147 | 8147 | obj3_in: InClass.from_map(m["in"]), |
| 8148 | 8148 | obj3_nil: NilClass.from_map(m["nil"]), |
| @@ -8158,6 +8158,7 @@ defmodule Obj3 do | ||
| 8158 | 8158 | def to_map(struct) do |
| 8159 | 8159 | %{ |
| 8160 | 8160 | "dummy" => struct.dummy, |
| 8161 | + "goto" => Goto.to_map(struct.goto), | |
| 8161 | 8162 | "guard" => Guard.to_map(struct.guard), |
| 8162 | 8163 | "hasOwnProperty" => HasOwnProperty.to_map(struct.has_own_property), |
| 8163 | 8164 | "hashCode" => HashCode.to_map(struct.hash_code), |
| @@ -8218,7 +8219,6 @@ defmodule Obj3 do | ||
| 8218 | 8219 | "new" => New.to_map(struct.new), |
| 8219 | 8220 | "newtonsoft" => Newtonsoft.to_map(struct.newtonsoft), |
| 8220 | 8221 | "NO" => No.to_map(struct.no), |
| 8221 | - "noexcept" => Noexcept.to_map(struct.noexcept), | |
| 8222 | 8222 | "import" => ImportClass.to_map(struct.obj3_import), |
| 8223 | 8223 | "in" => InClass.to_map(struct.obj3_in), |
| 8224 | 8224 | "nil" => NilClass.to_map(struct.obj3_nil), |
| @@ -8271,6 +8271,45 @@ defmodule NoSuchMethod do | ||
| 8271 | 8271 | end |
| 8272 | 8272 | end |
| 8273 | 8273 | |
| 8274 | +defmodule Noexcept do | |
| 8275 | + @enforce_keys [:noexcept] | |
| 8276 | + defstruct [:noexcept] | |
| 8277 | + | |
| 8278 | + @type t :: %__MODULE__{ | |
| 8279 | + noexcept: integer() | |
| 8280 | + } | |
| 8281 | + | |
| 8282 | + def decode_noexcept(value) when is_integer(value), do: value | |
| 8283 | + def decode_noexcept(_), do: {:error, "Unexpected type when decoding Noexcept.noexcept"} | |
| 8284 | + | |
| 8285 | + def encode_noexcept(value) when is_integer(value), do: value | |
| 8286 | + def encode_noexcept(_), do: {:error, "Unexpected type when encoding Noexcept.noexcept"} | |
| 8287 | + | |
| 8288 | + def from_map(m) do | |
| 8289 | + %Noexcept{ | |
| 8290 | + noexcept: decode_noexcept(m["noexcept"]), | |
| 8291 | + } | |
| 8292 | + end | |
| 8293 | + | |
| 8294 | + def from_json(json) do | |
| 8295 | + json | |
| 8296 | + |> Jason.decode!() | |
| 8297 | + |> from_map() | |
| 8298 | + end | |
| 8299 | + | |
| 8300 | + def to_map(struct) do | |
| 8301 | + %{ | |
| 8302 | + "noexcept" => struct.noexcept, | |
| 8303 | + } | |
| 8304 | + end | |
| 8305 | + | |
| 8306 | + def to_json(struct) do | |
| 8307 | + struct | |
| 8308 | + |> to_map() | |
| 8309 | + |> Jason.encode!() | |
| 8310 | + end | |
| 8311 | +end | |
| 8312 | + | |
| 8274 | 8313 | defmodule Nonatomic do |
| 8275 | 8314 | @enforce_keys [:nonatomic] |
| 8276 | 8315 | defstruct [:nonatomic] |
| @@ -8973,6 +9012,84 @@ defmodule ObjectMapper do | ||
| 8973 | 9012 | end |
| 8974 | 9013 | end |
| 8975 | 9014 | |
| 9015 | +defmodule ObjectReader do | |
| 9016 | + @enforce_keys [:object_reader] | |
| 9017 | + defstruct [:object_reader] | |
| 9018 | + | |
| 9019 | + @type t :: %__MODULE__{ | |
| 9020 | + object_reader: integer() | |
| 9021 | + } | |
| 9022 | + | |
| 9023 | + def decode_object_reader(value) when is_integer(value), do: value | |
| 9024 | + def decode_object_reader(_), do: {:error, "Unexpected type when decoding ObjectReader.object_reader"} | |
| 9025 | + | |
| 9026 | + def encode_object_reader(value) when is_integer(value), do: value | |
| 9027 | + def encode_object_reader(_), do: {:error, "Unexpected type when encoding ObjectReader.object_reader"} | |
| 9028 | + | |
| 9029 | + def from_map(m) do | |
| 9030 | + %ObjectReader{ | |
| 9031 | + object_reader: decode_object_reader(m["ObjectReader"]), | |
| 9032 | + } | |
| 9033 | + end | |
| 9034 | + | |
| 9035 | + def from_json(json) do | |
| 9036 | + json | |
| 9037 | + |> Jason.decode!() | |
| 9038 | + |> from_map() | |
| 9039 | + end | |
| 9040 | + | |
| 9041 | + def to_map(struct) do | |
| 9042 | + %{ | |
| 9043 | + "ObjectReader" => struct.object_reader, | |
| 9044 | + } | |
| 9045 | + end | |
| 9046 | + | |
| 9047 | + def to_json(struct) do | |
| 9048 | + struct | |
| 9049 | + |> to_map() | |
| 9050 | + |> Jason.encode!() | |
| 9051 | + end | |
| 9052 | +end | |
| 9053 | + | |
| 9054 | +defmodule ObjectWriter do | |
| 9055 | + @enforce_keys [:object_writer] | |
| 9056 | + defstruct [:object_writer] | |
| 9057 | + | |
| 9058 | + @type t :: %__MODULE__{ | |
| 9059 | + object_writer: integer() | |
| 9060 | + } | |
| 9061 | + | |
| 9062 | + def decode_object_writer(value) when is_integer(value), do: value | |
| 9063 | + def decode_object_writer(_), do: {:error, "Unexpected type when decoding ObjectWriter.object_writer"} | |
| 9064 | + | |
| 9065 | + def encode_object_writer(value) when is_integer(value), do: value | |
| 9066 | + def encode_object_writer(_), do: {:error, "Unexpected type when encoding ObjectWriter.object_writer"} | |
| 9067 | + | |
| 9068 | + def from_map(m) do | |
| 9069 | + %ObjectWriter{ | |
| 9070 | + object_writer: decode_object_writer(m["ObjectWriter"]), | |
| 9071 | + } | |
| 9072 | + end | |
| 9073 | + | |
| 9074 | + def from_json(json) do | |
| 9075 | + json | |
| 9076 | + |> Jason.decode!() | |
| 9077 | + |> from_map() | |
| 9078 | + end | |
| 9079 | + | |
| 9080 | + def to_map(struct) do | |
| 9081 | + %{ | |
| 9082 | + "ObjectWriter" => struct.object_writer, | |
| 9083 | + } | |
| 9084 | + end | |
| 9085 | + | |
| 9086 | + def to_json(struct) do | |
| 9087 | + struct | |
| 9088 | + |> to_map() | |
| 9089 | + |> Jason.encode!() | |
| 9090 | + end | |
| 9091 | +end | |
| 9092 | + | |
| 8976 | 9093 | defmodule Of do |
| 8977 | 9094 | @enforce_keys [:of] |
| 8978 | 9095 | defstruct [:of] |
| @@ -10611,130 +10728,14 @@ defmodule Sbyte do | ||
| 10611 | 10728 | end |
| 10612 | 10729 | end |
| 10613 | 10730 | |
| 10614 | -defmodule Sealed do | |
| 10615 | - @enforce_keys [:sealed] | |
| 10616 | - defstruct [:sealed] | |
| 10617 | - | |
| 10618 | - @type t :: %__MODULE__{ | |
| 10619 | - sealed: integer() | |
| 10620 | - } | |
| 10621 | - | |
| 10622 | - def decode_sealed(value) when is_integer(value), do: value | |
| 10623 | - def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"} | |
| 10624 | - | |
| 10625 | - def encode_sealed(value) when is_integer(value), do: value | |
| 10626 | - def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"} | |
| 10627 | - | |
| 10628 | - def from_map(m) do | |
| 10629 | - %Sealed{ | |
| 10630 | - sealed: decode_sealed(m["sealed"]), | |
| 10631 | - } | |
| 10632 | - end | |
| 10633 | - | |
| 10634 | - def from_json(json) do | |
| 10635 | - json | |
| 10636 | - |> Jason.decode!() | |
| 10637 | - |> from_map() | |
| 10638 | - end | |
| 10639 | - | |
| 10640 | - def to_map(struct) do | |
| 10641 | - %{ | |
| 10642 | - "sealed" => struct.sealed, | |
| 10643 | - } | |
| 10644 | - end | |
| 10645 | - | |
| 10646 | - def to_json(struct) do | |
| 10647 | - struct | |
| 10648 | - |> to_map() | |
| 10649 | - |> Jason.encode!() | |
| 10650 | - end | |
| 10651 | -end | |
| 10652 | - | |
| 10653 | -defmodule Sel do | |
| 10654 | - @enforce_keys [:sel] | |
| 10655 | - defstruct [:sel] | |
| 10656 | - | |
| 10657 | - @type t :: %__MODULE__{ | |
| 10658 | - sel: integer() | |
| 10659 | - } | |
| 10660 | - | |
| 10661 | - def decode_sel(value) when is_integer(value), do: value | |
| 10662 | - def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"} | |
| 10663 | - | |
| 10664 | - def encode_sel(value) when is_integer(value), do: value | |
| 10665 | - def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"} | |
| 10666 | - | |
| 10667 | - def from_map(m) do | |
| 10668 | - %Sel{ | |
| 10669 | - sel: decode_sel(m["SEL"]), | |
| 10670 | - } | |
| 10671 | - end | |
| 10672 | - | |
| 10673 | - def from_json(json) do | |
| 10674 | - json | |
| 10675 | - |> Jason.decode!() | |
| 10676 | - |> from_map() | |
| 10677 | - end | |
| 10678 | - | |
| 10679 | - def to_map(struct) do | |
| 10680 | - %{ | |
| 10681 | - "SEL" => struct.sel, | |
| 10682 | - } | |
| 10683 | - end | |
| 10684 | - | |
| 10685 | - def to_json(struct) do | |
| 10686 | - struct | |
| 10687 | - |> to_map() | |
| 10688 | - |> Jason.encode!() | |
| 10689 | - end | |
| 10690 | -end | |
| 10691 | - | |
| 10692 | -defmodule Select do | |
| 10693 | - @enforce_keys [:select] | |
| 10694 | - defstruct [:select] | |
| 10695 | - | |
| 10696 | - @type t :: %__MODULE__{ | |
| 10697 | - select: integer() | |
| 10698 | - } | |
| 10699 | - | |
| 10700 | - def decode_select(value) when is_integer(value), do: value | |
| 10701 | - def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"} | |
| 10702 | - | |
| 10703 | - def encode_select(value) when is_integer(value), do: value | |
| 10704 | - def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"} | |
| 10705 | - | |
| 10706 | - def from_map(m) do | |
| 10707 | - %Select{ | |
| 10708 | - select: decode_select(m["select"]), | |
| 10709 | - } | |
| 10710 | - end | |
| 10711 | - | |
| 10712 | - def from_json(json) do | |
| 10713 | - json | |
| 10714 | - |> Jason.decode!() | |
| 10715 | - |> from_map() | |
| 10716 | - end | |
| 10717 | - | |
| 10718 | - def to_map(struct) do | |
| 10719 | - %{ | |
| 10720 | - "select" => struct.select, | |
| 10721 | - } | |
| 10722 | - end | |
| 10723 | - | |
| 10724 | - def to_json(struct) do | |
| 10725 | - struct | |
| 10726 | - |> to_map() | |
| 10727 | - |> Jason.encode!() | |
| 10728 | - end | |
| 10729 | -end | |
| 10730 | - | |
| 10731 | -defmodule Obj4 do | |
| 10732 | - @enforce_keys [:dummy, :no_such_method, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select] | |
| 10733 | - defstruct [:dummy, :no_such_method, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select] | |
| 10731 | +defmodule Obj4 do | |
| 10732 | + @enforce_keys [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :object_reader, :object_writer, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte] | |
| 10733 | + defstruct [:dummy, :no_such_method, :noexcept, :nonatomic, :none, :nonlocal, :nonmutating, :not_eq, :ns_error, :ns_object, :ns_string, :null, :nullptr, :number, :obj4_none, :obj4_not, :obj4_null, :obj4_or, :obj4_protocol, :object, :object_mapper, :object_reader, :object_writer, :of, :oneway, :open, :operator, :optional, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :print_members, :printf, :private, :protected, :protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte] | |
| 10734 | 10734 | |
| 10735 | 10735 | @type t :: %__MODULE__{ |
| 10736 | 10736 | dummy: integer(), |
| 10737 | 10737 | no_such_method: NoSuchMethod.t(), |
| 10738 | + noexcept: Noexcept.t(), | |
| 10738 | 10739 | nonatomic: Nonatomic.t(), |
| 10739 | 10740 | none: None.t(), |
| 10740 | 10741 | nonlocal: Nonlocal.t(), |
| @@ -10753,6 +10754,8 @@ defmodule Obj4 do | ||
| 10753 | 10754 | obj4_protocol: Obj4Protocol.t(), |
| 10754 | 10755 | object: Object.t(), |
| 10755 | 10756 | object_mapper: ObjectMapper.t(), |
| 10757 | + object_reader: ObjectReader.t(), | |
| 10758 | + object_writer: ObjectWriter.t(), | |
| 10756 | 10759 | of: Of.t(), |
| 10757 | 10760 | oneway: Oneway.t(), |
| 10758 | 10761 | open: Open.t(), |
| @@ -10794,10 +10797,7 @@ defmodule Obj4 do | ||
| 10794 | 10797 | right: Right.t(), |
| 10795 | 10798 | runtime_type: RuntimeType.t(), |
| 10796 | 10799 | s: S.t(), |
| 10797 | - sbyte: Sbyte.t(), | |
| 10798 | - sealed: Sealed.t(), | |
| 10799 | - sel: Sel.t(), | |
| 10800 | - select: Select.t() | |
| 10800 | + sbyte: Sbyte.t() | |
| 10801 | 10801 | } |
| 10802 | 10802 | |
| 10803 | 10803 | def decode_dummy(value) when is_integer(value), do: value |
| @@ -10810,6 +10810,7 @@ defmodule Obj4 do | ||
| 10810 | 10810 | %Obj4{ |
| 10811 | 10811 | dummy: decode_dummy(m["dummy"]), |
| 10812 | 10812 | no_such_method: NoSuchMethod.from_map(m["noSuchMethod"]), |
| 10813 | + noexcept: Noexcept.from_map(m["noexcept"]), | |
| 10813 | 10814 | nonatomic: Nonatomic.from_map(m["nonatomic"]), |
| 10814 | 10815 | none: None.from_map(m["None"]), |
| 10815 | 10816 | nonlocal: Nonlocal.from_map(m["nonlocal"]), |
| @@ -10828,6 +10829,8 @@ defmodule Obj4 do | ||
| 10828 | 10829 | obj4_protocol: Obj4Protocol.from_map(m["protocol"]), |
| 10829 | 10830 | object: Object.from_map(m["object"]), |
| 10830 | 10831 | object_mapper: ObjectMapper.from_map(m["ObjectMapper"]), |
| 10832 | + object_reader: ObjectReader.from_map(m["ObjectReader"]), | |
| 10833 | + object_writer: ObjectWriter.from_map(m["ObjectWriter"]), | |
| 10831 | 10834 | of: Of.from_map(m["of"]), |
| 10832 | 10835 | oneway: Oneway.from_map(m["oneway"]), |
| 10833 | 10836 | open: Open.from_map(m["open"]), |
| @@ -10870,9 +10873,6 @@ defmodule Obj4 do | ||
| 10870 | 10873 | runtime_type: RuntimeType.from_map(m["runtimeType"]), |
| 10871 | 10874 | s: S.from_map(m["s"]), |
| 10872 | 10875 | sbyte: Sbyte.from_map(m["sbyte"]), |
| 10873 | - sealed: Sealed.from_map(m["sealed"]), | |
| 10874 | - sel: Sel.from_map(m["SEL"]), | |
| 10875 | - select: Select.from_map(m["select"]), | |
| 10876 | 10876 | } |
| 10877 | 10877 | end |
| 10878 | 10878 | |
| @@ -10886,6 +10886,7 @@ defmodule Obj4 do | ||
| 10886 | 10886 | %{ |
| 10887 | 10887 | "dummy" => struct.dummy, |
| 10888 | 10888 | "noSuchMethod" => NoSuchMethod.to_map(struct.no_such_method), |
| 10889 | + "noexcept" => Noexcept.to_map(struct.noexcept), | |
| 10889 | 10890 | "nonatomic" => Nonatomic.to_map(struct.nonatomic), |
| 10890 | 10891 | "None" => None.to_map(struct.none), |
| 10891 | 10892 | "nonlocal" => Nonlocal.to_map(struct.nonlocal), |
| @@ -10904,6 +10905,8 @@ defmodule Obj4 do | ||
| 10904 | 10905 | "protocol" => Obj4Protocol.to_map(struct.obj4_protocol), |
| 10905 | 10906 | "object" => Object.to_map(struct.object), |
| 10906 | 10907 | "ObjectMapper" => ObjectMapper.to_map(struct.object_mapper), |
| 10908 | + "ObjectReader" => ObjectReader.to_map(struct.object_reader), | |
| 10909 | + "ObjectWriter" => ObjectWriter.to_map(struct.object_writer), | |
| 10907 | 10910 | "of" => Of.to_map(struct.of), |
| 10908 | 10911 | "oneway" => Oneway.to_map(struct.oneway), |
| 10909 | 10912 | "open" => Open.to_map(struct.open), |
| @@ -10946,9 +10949,6 @@ defmodule Obj4 do | ||
| 10946 | 10949 | "runtimeType" => RuntimeType.to_map(struct.runtime_type), |
| 10947 | 10950 | "s" => S.to_map(struct.s), |
| 10948 | 10951 | "sbyte" => Sbyte.to_map(struct.sbyte), |
| 10949 | - "sealed" => Sealed.to_map(struct.sealed), | |
| 10950 | - "SEL" => Sel.to_map(struct.sel), | |
| 10951 | - "select" => Select.to_map(struct.select), | |
| 10952 | 10952 | } |
| 10953 | 10953 | end |
| 10954 | 10954 | |
| @@ -11076,6 +11076,123 @@ defmodule TypeClass do | ||
| 11076 | 11076 | end |
| 11077 | 11077 | end |
| 11078 | 11078 | |
| 11079 | +defmodule Sealed do | |
| 11080 | + @enforce_keys [:sealed] | |
| 11081 | + defstruct [:sealed] | |
| 11082 | + | |
| 11083 | + @type t :: %__MODULE__{ | |
| 11084 | + sealed: integer() | |
| 11085 | + } | |
| 11086 | + | |
| 11087 | + def decode_sealed(value) when is_integer(value), do: value | |
| 11088 | + def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"} | |
| 11089 | + | |
| 11090 | + def encode_sealed(value) when is_integer(value), do: value | |
| 11091 | + def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"} | |
| 11092 | + | |
| 11093 | + def from_map(m) do | |
| 11094 | + %Sealed{ | |
| 11095 | + sealed: decode_sealed(m["sealed"]), | |
| 11096 | + } | |
| 11097 | + end | |
| 11098 | + | |
| 11099 | + def from_json(json) do | |
| 11100 | + json | |
| 11101 | + |> Jason.decode!() | |
| 11102 | + |> from_map() | |
| 11103 | + end | |
| 11104 | + | |
| 11105 | + def to_map(struct) do | |
| 11106 | + %{ | |
| 11107 | + "sealed" => struct.sealed, | |
| 11108 | + } | |
| 11109 | + end | |
| 11110 | + | |
| 11111 | + def to_json(struct) do | |
| 11112 | + struct | |
| 11113 | + |> to_map() | |
| 11114 | + |> Jason.encode!() | |
| 11115 | + end | |
| 11116 | +end | |
| 11117 | + | |
| 11118 | +defmodule Sel do | |
| 11119 | + @enforce_keys [:sel] | |
| 11120 | + defstruct [:sel] | |
| 11121 | + | |
| 11122 | + @type t :: %__MODULE__{ | |
| 11123 | + sel: integer() | |
| 11124 | + } | |
| 11125 | + | |
| 11126 | + def decode_sel(value) when is_integer(value), do: value | |
| 11127 | + def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"} | |
| 11128 | + | |
| 11129 | + def encode_sel(value) when is_integer(value), do: value | |
| 11130 | + def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"} | |
| 11131 | + | |
| 11132 | + def from_map(m) do | |
| 11133 | + %Sel{ | |
| 11134 | + sel: decode_sel(m["SEL"]), | |
| 11135 | + } | |
| 11136 | + end | |
| 11137 | + | |
| 11138 | + def from_json(json) do | |
| 11139 | + json | |
| 11140 | + |> Jason.decode!() | |
| 11141 | + |> from_map() | |
| 11142 | + end | |
| 11143 | + | |
| 11144 | + def to_map(struct) do | |
| 11145 | + %{ | |
| 11146 | + "SEL" => struct.sel, | |
| 11147 | + } | |
| 11148 | + end | |
| 11149 | + | |
| 11150 | + def to_json(struct) do | |
| 11151 | + struct | |
| 11152 | + |> to_map() | |
| 11153 | + |> Jason.encode!() | |
| 11154 | + end | |
| 11155 | +end | |
| 11156 | + | |
| 11157 | +defmodule Select do | |
| 11158 | + @enforce_keys [:select] | |
| 11159 | + defstruct [:select] | |
| 11160 | + | |
| 11161 | + @type t :: %__MODULE__{ | |
| 11162 | + select: integer() | |
| 11163 | + } | |
| 11164 | + | |
| 11165 | + def decode_select(value) when is_integer(value), do: value | |
| 11166 | + def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"} | |
| 11167 | + | |
| 11168 | + def encode_select(value) when is_integer(value), do: value | |
| 11169 | + def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"} | |
| 11170 | + | |
| 11171 | + def from_map(m) do | |
| 11172 | + %Select{ | |
| 11173 | + select: decode_select(m["select"]), | |
| 11174 | + } | |
| 11175 | + end | |
| 11176 | + | |
| 11177 | + def from_json(json) do | |
| 11178 | + json | |
| 11179 | + |> Jason.decode!() | |
| 11180 | + |> from_map() | |
| 11181 | + end | |
| 11182 | + | |
| 11183 | + def to_map(struct) do | |
| 11184 | + %{ | |
| 11185 | + "select" => struct.select, | |
| 11186 | + } | |
| 11187 | + end | |
| 11188 | + | |
| 11189 | + def to_json(struct) do | |
| 11190 | + struct | |
| 11191 | + |> to_map() | |
| 11192 | + |> Jason.encode!() | |
| 11193 | + end | |
| 11194 | +end | |
| 11195 | + | |
| 11079 | 11196 | defmodule Self do |
| 11080 | 11197 | @enforce_keys [:self] |
| 11081 | 11198 | defstruct [:self] |
| @@ -11154,6 +11271,45 @@ defmodule Sendable do | ||
| 11154 | 11271 | end |
| 11155 | 11272 | end |
| 11156 | 11273 | |
| 11274 | +defmodule SerializationFeature do | |
| 11275 | + @enforce_keys [:serialization_feature] | |
| 11276 | + defstruct [:serialization_feature] | |
| 11277 | + | |
| 11278 | + @type t :: %__MODULE__{ | |
| 11279 | + serialization_feature: integer() | |
| 11280 | + } | |
| 11281 | + | |
| 11282 | + def decode_serialization_feature(value) when is_integer(value), do: value | |
| 11283 | + def decode_serialization_feature(_), do: {:error, "Unexpected type when decoding SerializationFeature.serialization_feature"} | |
| 11284 | + | |
| 11285 | + def encode_serialization_feature(value) when is_integer(value), do: value | |
| 11286 | + def encode_serialization_feature(_), do: {:error, "Unexpected type when encoding SerializationFeature.serialization_feature"} | |
| 11287 | + | |
| 11288 | + def from_map(m) do | |
| 11289 | + %SerializationFeature{ | |
| 11290 | + serialization_feature: decode_serialization_feature(m["SerializationFeature"]), | |
| 11291 | + } | |
| 11292 | + end | |
| 11293 | + | |
| 11294 | + def from_json(json) do | |
| 11295 | + json | |
| 11296 | + |> Jason.decode!() | |
| 11297 | + |> from_map() | |
| 11298 | + end | |
| 11299 | + | |
| 11300 | + def to_map(struct) do | |
| 11301 | + %{ | |
| 11302 | + "SerializationFeature" => struct.serialization_feature, | |
| 11303 | + } | |
| 11304 | + end | |
| 11305 | + | |
| 11306 | + def to_json(struct) do | |
| 11307 | + struct | |
| 11308 | + |> to_map() | |
| 11309 | + |> Jason.encode!() | |
| 11310 | + end | |
| 11311 | +end | |
| 11312 | + | |
| 11157 | 11313 | defmodule Serialize do |
| 11158 | 11314 | @enforce_keys [:serialize] |
| 11159 | 11315 | defstruct [:serialize] |
| @@ -13158,164 +13314,8 @@ defmodule Unsigned do | ||
| 13158 | 13314 | def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"} |
| 13159 | 13315 | |
| 13160 | 13316 | def from_map(m) do |
| 13161 | - %Unsigned{ | |
| 13162 | - unsigned: decode_unsigned(m["unsigned"]), | |
| 13163 | - } | |
| 13164 | - end | |
| 13165 | - | |
| 13166 | - def from_json(json) do | |
| 13167 | - json | |
| 13168 | - |> Jason.decode!() | |
| 13169 | - |> from_map() | |
| 13170 | - end | |
| 13171 | - | |
| 13172 | - def to_map(struct) do | |
| 13173 | - %{ | |
| 13174 | - "unsigned" => struct.unsigned, | |
| 13175 | - } | |
| 13176 | - end | |
| 13177 | - | |
| 13178 | - def to_json(struct) do | |
| 13179 | - struct | |
| 13180 | - |> to_map() | |
| 13181 | - |> Jason.encode!() | |
| 13182 | - end | |
| 13183 | -end | |
| 13184 | - | |
| 13185 | -defmodule Ushort do | |
| 13186 | - @enforce_keys [:ushort] | |
| 13187 | - defstruct [:ushort] | |
| 13188 | - | |
| 13189 | - @type t :: %__MODULE__{ | |
| 13190 | - ushort: integer() | |
| 13191 | - } | |
| 13192 | - | |
| 13193 | - def decode_ushort(value) when is_integer(value), do: value | |
| 13194 | - def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"} | |
| 13195 | - | |
| 13196 | - def encode_ushort(value) when is_integer(value), do: value | |
| 13197 | - def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"} | |
| 13198 | - | |
| 13199 | - def from_map(m) do | |
| 13200 | - %Ushort{ | |
| 13201 | - ushort: decode_ushort(m["ushort"]), | |
| 13202 | - } | |
| 13203 | - end | |
| 13204 | - | |
| 13205 | - def from_json(json) do | |
| 13206 | - json | |
| 13207 | - |> Jason.decode!() | |
| 13208 | - |> from_map() | |
| 13209 | - end | |
| 13210 | - | |
| 13211 | - def to_map(struct) do | |
| 13212 | - %{ | |
| 13213 | - "ushort" => struct.ushort, | |
| 13214 | - } | |
| 13215 | - end | |
| 13216 | - | |
| 13217 | - def to_json(struct) do | |
| 13218 | - struct | |
| 13219 | - |> to_map() | |
| 13220 | - |> Jason.encode!() | |
| 13221 | - end | |
| 13222 | -end | |
| 13223 | - | |
| 13224 | -defmodule Using do | |
| 13225 | - @enforce_keys [:using] | |
| 13226 | - defstruct [:using] | |
| 13227 | - | |
| 13228 | - @type t :: %__MODULE__{ | |
| 13229 | - using: integer() | |
| 13230 | - } | |
| 13231 | - | |
| 13232 | - def decode_using(value) when is_integer(value), do: value | |
| 13233 | - def decode_using(_), do: {:error, "Unexpected type when decoding Using.using"} | |
| 13234 | - | |
| 13235 | - def encode_using(value) when is_integer(value), do: value | |
| 13236 | - def encode_using(_), do: {:error, "Unexpected type when encoding Using.using"} | |
| 13237 | - | |
| 13238 | - def from_map(m) do | |
| 13239 | - %Using{ | |
| 13240 | - using: decode_using(m["using"]), | |
| 13241 | - } | |
| 13242 | - end | |
| 13243 | - | |
| 13244 | - def from_json(json) do | |
| 13245 | - json | |
| 13246 | - |> Jason.decode!() | |
| 13247 | - |> from_map() | |
| 13248 | - end | |
| 13249 | - | |
| 13250 | - def to_map(struct) do | |
| 13251 | - %{ | |
| 13252 | - "using" => struct.using, | |
| 13253 | - } | |
| 13254 | - end | |
| 13255 | - | |
| 13256 | - def to_json(struct) do | |
| 13257 | - struct | |
| 13258 | - |> to_map() | |
| 13259 | - |> Jason.encode!() | |
| 13260 | - end | |
| 13261 | -end | |
| 13262 | - | |
| 13263 | -defmodule Utf8JSONReader do | |
| 13264 | - @enforce_keys [:utf8_json_reader] | |
| 13265 | - defstruct [:utf8_json_reader] | |
| 13266 | - | |
| 13267 | - @type t :: %__MODULE__{ | |
| 13268 | - utf8_json_reader: integer() | |
| 13269 | - } | |
| 13270 | - | |
| 13271 | - def decode_utf8_json_reader(value) when is_integer(value), do: value | |
| 13272 | - def decode_utf8_json_reader(_), do: {:error, "Unexpected type when decoding Utf8JSONReader.utf8_json_reader"} | |
| 13273 | - | |
| 13274 | - def encode_utf8_json_reader(value) when is_integer(value), do: value | |
| 13275 | - def encode_utf8_json_reader(_), do: {:error, "Unexpected type when encoding Utf8JSONReader.utf8_json_reader"} | |
| 13276 | - | |
| 13277 | - def from_map(m) do | |
| 13278 | - %Utf8JSONReader{ | |
| 13279 | - utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]), | |
| 13280 | - } | |
| 13281 | - end | |
| 13282 | - | |
| 13283 | - def from_json(json) do | |
| 13284 | - json | |
| 13285 | - |> Jason.decode!() | |
| 13286 | - |> from_map() | |
| 13287 | - end | |
| 13288 | - | |
| 13289 | - def to_map(struct) do | |
| 13290 | - %{ | |
| 13291 | - "Utf8JsonReader" => struct.utf8_json_reader, | |
| 13292 | - } | |
| 13293 | - end | |
| 13294 | - | |
| 13295 | - def to_json(struct) do | |
| 13296 | - struct | |
| 13297 | - |> to_map() | |
| 13298 | - |> Jason.encode!() | |
| 13299 | - end | |
| 13300 | -end | |
| 13301 | - | |
| 13302 | -defmodule Utf8JSONWriter do | |
| 13303 | - @enforce_keys [:utf8_json_writer] | |
| 13304 | - defstruct [:utf8_json_writer] | |
| 13305 | - | |
| 13306 | - @type t :: %__MODULE__{ | |
| 13307 | - utf8_json_writer: integer() | |
| 13308 | - } | |
| 13309 | - | |
| 13310 | - def decode_utf8_json_writer(value) when is_integer(value), do: value | |
| 13311 | - def decode_utf8_json_writer(_), do: {:error, "Unexpected type when decoding Utf8JSONWriter.utf8_json_writer"} | |
| 13312 | - | |
| 13313 | - def encode_utf8_json_writer(value) when is_integer(value), do: value | |
| 13314 | - def encode_utf8_json_writer(_), do: {:error, "Unexpected type when encoding Utf8JSONWriter.utf8_json_writer"} | |
| 13315 | - | |
| 13316 | - def from_map(m) do | |
| 13317 | - %Utf8JSONWriter{ | |
| 13318 | - utf8_json_writer: decode_utf8_json_writer(m["Utf8JsonWriter"]), | |
| 13317 | + %Unsigned{ | |
| 13318 | + unsigned: decode_unsigned(m["unsigned"]), | |
| 13319 | 13319 | } |
| 13320 | 13320 | end |
| 13321 | 13321 | |
| @@ -13327,7 +13327,7 @@ defmodule Utf8JSONWriter do | ||
| 13327 | 13327 | |
| 13328 | 13328 | def to_map(struct) do |
| 13329 | 13329 | %{ |
| 13330 | - "Utf8JsonWriter" => struct.utf8_json_writer, | |
| 13330 | + "unsigned" => struct.unsigned, | |
| 13331 | 13331 | } |
| 13332 | 13332 | end |
| 13333 | 13333 | |
| @@ -13338,23 +13338,23 @@ defmodule Utf8JSONWriter do | ||
| 13338 | 13338 | end |
| 13339 | 13339 | end |
| 13340 | 13340 | |
| 13341 | -defmodule UUID do | |
| 13342 | - @enforce_keys [:uuid] | |
| 13343 | - defstruct [:uuid] | |
| 13341 | +defmodule Ushort do | |
| 13342 | + @enforce_keys [:ushort] | |
| 13343 | + defstruct [:ushort] | |
| 13344 | 13344 | |
| 13345 | 13345 | @type t :: %__MODULE__{ |
| 13346 | - uuid: integer() | |
| 13346 | + ushort: integer() | |
| 13347 | 13347 | } |
| 13348 | 13348 | |
| 13349 | - def decode_uuid(value) when is_integer(value), do: value | |
| 13350 | - def decode_uuid(_), do: {:error, "Unexpected type when decoding UUID.uuid"} | |
| 13349 | + def decode_ushort(value) when is_integer(value), do: value | |
| 13350 | + def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"} | |
| 13351 | 13351 | |
| 13352 | - def encode_uuid(value) when is_integer(value), do: value | |
| 13353 | - def encode_uuid(_), do: {:error, "Unexpected type when encoding UUID.uuid"} | |
| 13352 | + def encode_ushort(value) when is_integer(value), do: value | |
| 13353 | + def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"} | |
| 13354 | 13354 | |
| 13355 | 13355 | def from_map(m) do |
| 13356 | - %UUID{ | |
| 13357 | - uuid: decode_uuid(m["UUID"]), | |
| 13356 | + %Ushort{ | |
| 13357 | + ushort: decode_ushort(m["ushort"]), | |
| 13358 | 13358 | } |
| 13359 | 13359 | end |
| 13360 | 13360 | |
| @@ -13366,7 +13366,7 @@ defmodule UUID do | ||
| 13366 | 13366 | |
| 13367 | 13367 | def to_map(struct) do |
| 13368 | 13368 | %{ |
| 13369 | - "UUID" => struct.uuid, | |
| 13369 | + "ushort" => struct.ushort, | |
| 13370 | 13370 | } |
| 13371 | 13371 | end |
| 13372 | 13372 | |
| @@ -13377,23 +13377,23 @@ defmodule UUID do | ||
| 13377 | 13377 | end |
| 13378 | 13378 | end |
| 13379 | 13379 | |
| 13380 | -defmodule Var do | |
| 13381 | - @enforce_keys [:var] | |
| 13382 | - defstruct [:var] | |
| 13380 | +defmodule Using do | |
| 13381 | + @enforce_keys [:using] | |
| 13382 | + defstruct [:using] | |
| 13383 | 13383 | |
| 13384 | 13384 | @type t :: %__MODULE__{ |
| 13385 | - var: integer() | |
| 13385 | + using: integer() | |
| 13386 | 13386 | } |
| 13387 | 13387 | |
| 13388 | - def decode_var(value) when is_integer(value), do: value | |
| 13389 | - def decode_var(_), do: {:error, "Unexpected type when decoding Var.var"} | |
| 13388 | + def decode_using(value) when is_integer(value), do: value | |
| 13389 | + def decode_using(_), do: {:error, "Unexpected type when decoding Using.using"} | |
| 13390 | 13390 | |
| 13391 | - def encode_var(value) when is_integer(value), do: value | |
| 13392 | - def encode_var(_), do: {:error, "Unexpected type when encoding Var.var"} | |
| 13391 | + def encode_using(value) when is_integer(value), do: value | |
| 13392 | + def encode_using(_), do: {:error, "Unexpected type when encoding Using.using"} | |
| 13393 | 13393 | |
| 13394 | 13394 | def from_map(m) do |
| 13395 | - %Var{ | |
| 13396 | - var: decode_var(m["var"]), | |
| 13395 | + %Using{ | |
| 13396 | + using: decode_using(m["using"]), | |
| 13397 | 13397 | } |
| 13398 | 13398 | end |
| 13399 | 13399 | |
| @@ -13405,7 +13405,7 @@ defmodule Var do | ||
| 13405 | 13405 | |
| 13406 | 13406 | def to_map(struct) do |
| 13407 | 13407 | %{ |
| 13408 | - "var" => struct.var, | |
| 13408 | + "using" => struct.using, | |
| 13409 | 13409 | } |
| 13410 | 13410 | end |
| 13411 | 13411 | |
| @@ -13416,23 +13416,23 @@ defmodule Var do | ||
| 13416 | 13416 | end |
| 13417 | 13417 | end |
| 13418 | 13418 | |
| 13419 | -defmodule Virtual do | |
| 13420 | - @enforce_keys [:virtual] | |
| 13421 | - defstruct [:virtual] | |
| 13419 | +defmodule Utf8JSONReader do | |
| 13420 | + @enforce_keys [:utf8_json_reader] | |
| 13421 | + defstruct [:utf8_json_reader] | |
| 13422 | 13422 | |
| 13423 | 13423 | @type t :: %__MODULE__{ |
| 13424 | - virtual: integer() | |
| 13424 | + utf8_json_reader: integer() | |
| 13425 | 13425 | } |
| 13426 | 13426 | |
| 13427 | - def decode_virtual(value) when is_integer(value), do: value | |
| 13428 | - def decode_virtual(_), do: {:error, "Unexpected type when decoding Virtual.virtual"} | |
| 13427 | + def decode_utf8_json_reader(value) when is_integer(value), do: value | |
| 13428 | + def decode_utf8_json_reader(_), do: {:error, "Unexpected type when decoding Utf8JSONReader.utf8_json_reader"} | |
| 13429 | 13429 | |
| 13430 | - def encode_virtual(value) when is_integer(value), do: value | |
| 13431 | - def encode_virtual(_), do: {:error, "Unexpected type when encoding Virtual.virtual"} | |
| 13430 | + def encode_utf8_json_reader(value) when is_integer(value), do: value | |
| 13431 | + def encode_utf8_json_reader(_), do: {:error, "Unexpected type when encoding Utf8JSONReader.utf8_json_reader"} | |
| 13432 | 13432 | |
| 13433 | 13433 | def from_map(m) do |
| 13434 | - %Virtual{ | |
| 13435 | - virtual: decode_virtual(m["virtual"]), | |
| 13434 | + %Utf8JSONReader{ | |
| 13435 | + utf8_json_reader: decode_utf8_json_reader(m["Utf8JsonReader"]), | |
| 13436 | 13436 | } |
| 13437 | 13437 | end |
| 13438 | 13438 | |
| @@ -13444,7 +13444,7 @@ defmodule Virtual do | ||
| 13444 | 13444 | |
| 13445 | 13445 | def to_map(struct) do |
| 13446 | 13446 | %{ |
| 13447 | - "virtual" => struct.virtual, | |
| 13447 | + "Utf8JsonReader" => struct.utf8_json_reader, | |
| 13448 | 13448 | } |
| 13449 | 13449 | end |
| 13450 | 13450 | |
| @@ -13456,16 +13456,20 @@ defmodule Virtual do | ||
| 13456 | 13456 | end |
| 13457 | 13457 | |
| 13458 | 13458 | defmodule Obj5 do |
| 13459 | - @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual] | |
| 13460 | - defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual] | |
| 13459 | + @enforce_keys [:dummy, :obj5_self, :obj5_true, :obj5_type, :sealed, :sel, :select, :self, :sendable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader] | |
| 13460 | + defstruct [:dummy, :obj5_self, :obj5_true, :obj5_type, :sealed, :sel, :select, :self, :sendable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :to_string, :top_level, :transient, :true_1, :try, :type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader] | |
| 13461 | 13461 | |
| 13462 | 13462 | @type t :: %__MODULE__{ |
| 13463 | 13463 | dummy: integer(), |
| 13464 | 13464 | obj5_self: SelfClass.t(), |
| 13465 | 13465 | obj5_true: TrueClass.t(), |
| 13466 | 13466 | obj5_type: TypeClass.t(), |
| 13467 | + sealed: Sealed.t(), | |
| 13468 | + sel: Sel.t(), | |
| 13469 | + select: Select.t(), | |
| 13467 | 13470 | self: Self.t(), |
| 13468 | 13471 | sendable: Sendable.t(), |
| 13472 | + serialization_feature: SerializationFeature.t(), | |
| 13469 | 13473 | serialize: Serialize.t(), |
| 13470 | 13474 | serializer_provider: SerializerProvider.t(), |
| 13471 | 13475 | set: SetClass.t(), |
| @@ -13520,11 +13524,7 @@ defmodule Obj5 do | ||
| 13520 | 13524 | unsigned: Unsigned.t(), |
| 13521 | 13525 | ushort: Ushort.t(), |
| 13522 | 13526 | using: Using.t(), |
| 13523 | - utf8_json_reader: Utf8JSONReader.t(), | |
| 13524 | - utf8_json_writer: Utf8JSONWriter.t(), | |
| 13525 | - uuid: UUID.t(), | |
| 13526 | - var: Var.t(), | |
| 13527 | - virtual: Virtual.t() | |
| 13527 | + utf8_json_reader: Utf8JSONReader.t() | |
| 13528 | 13528 | } |
| 13529 | 13529 | |
| 13530 | 13530 | def decode_dummy(value) when is_integer(value), do: value |
| @@ -13539,8 +13539,12 @@ defmodule Obj5 do | ||
| 13539 | 13539 | obj5_self: SelfClass.from_map(m["self"]), |
| 13540 | 13540 | obj5_true: TrueClass.from_map(m["True"]), |
| 13541 | 13541 | obj5_type: TypeClass.from_map(m["type"]), |
| 13542 | + sealed: Sealed.from_map(m["sealed"]), | |
| 13543 | + sel: Sel.from_map(m["SEL"]), | |
| 13544 | + select: Select.from_map(m["select"]), | |
| 13542 | 13545 | self: Self.from_map(m["Self"]), |
| 13543 | 13546 | sendable: Sendable.from_map(m["Sendable"]), |
| 13547 | + serialization_feature: SerializationFeature.from_map(m["SerializationFeature"]), | |
| 13544 | 13548 | serialize: Serialize.from_map(m["serialize"]), |
| 13545 | 13549 | serializer_provider: SerializerProvider.from_map(m["SerializerProvider"]), |
| 13546 | 13550 | set: SetClass.from_map(m["set"]), |
| @@ -13596,10 +13600,6 @@ defmodule Obj5 do | ||
| 13596 | 13600 | ushort: Ushort.from_map(m["ushort"]), |
| 13597 | 13601 | using: Using.from_map(m["using"]), |
| 13598 | 13602 | utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]), |
| 13599 | - utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]), | |
| 13600 | - uuid: UUID.from_map(m["UUID"]), | |
| 13601 | - var: Var.from_map(m["var"]), | |
| 13602 | - virtual: Virtual.from_map(m["virtual"]), | |
| 13603 | 13603 | } |
| 13604 | 13604 | end |
| 13605 | 13605 | |
| @@ -13615,8 +13615,12 @@ defmodule Obj5 do | ||
| 13615 | 13615 | "self" => SelfClass.to_map(struct.obj5_self), |
| 13616 | 13616 | "True" => TrueClass.to_map(struct.obj5_true), |
| 13617 | 13617 | "type" => TypeClass.to_map(struct.obj5_type), |
| 13618 | + "sealed" => Sealed.to_map(struct.sealed), | |
| 13619 | + "SEL" => Sel.to_map(struct.sel), | |
| 13620 | + "select" => Select.to_map(struct.select), | |
| 13618 | 13621 | "Self" => Self.to_map(struct.self), |
| 13619 | 13622 | "Sendable" => Sendable.to_map(struct.sendable), |
| 13623 | + "SerializationFeature" => SerializationFeature.to_map(struct.serialization_feature), | |
| 13620 | 13624 | "serialize" => Serialize.to_map(struct.serialize), |
| 13621 | 13625 | "SerializerProvider" => SerializerProvider.to_map(struct.serializer_provider), |
| 13622 | 13626 | "set" => SetClass.to_map(struct.set), |
| @@ -13672,10 +13676,162 @@ defmodule Obj5 do | ||
| 13672 | 13676 | "ushort" => Ushort.to_map(struct.ushort), |
| 13673 | 13677 | "using" => Using.to_map(struct.using), |
| 13674 | 13678 | "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader), |
| 13675 | - "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer), | |
| 13676 | - "UUID" => UUID.to_map(struct.uuid), | |
| 13677 | - "var" => Var.to_map(struct.var), | |
| 13678 | - "virtual" => Virtual.to_map(struct.virtual), | |
| 13679 | + } | |
| 13680 | + end | |
| 13681 | + | |
| 13682 | + def to_json(struct) do | |
| 13683 | + struct | |
| 13684 | + |> to_map() | |
| 13685 | + |> Jason.encode!() | |
| 13686 | + end | |
| 13687 | +end | |
| 13688 | + | |
| 13689 | +defmodule Utf8JSONWriter do | |
| 13690 | + @enforce_keys [:utf8_json_writer] | |
| 13691 | + defstruct [:utf8_json_writer] | |
| 13692 | + | |
| 13693 | + @type t :: %__MODULE__{ | |
| 13694 | + utf8_json_writer: integer() | |
| 13695 | + } | |
| 13696 | + | |
| 13697 | + def decode_utf8_json_writer(value) when is_integer(value), do: value | |
| 13698 | + def decode_utf8_json_writer(_), do: {:error, "Unexpected type when decoding Utf8JSONWriter.utf8_json_writer"} | |
| 13699 | + | |
| 13700 | + def encode_utf8_json_writer(value) when is_integer(value), do: value | |
| 13701 | + def encode_utf8_json_writer(_), do: {:error, "Unexpected type when encoding Utf8JSONWriter.utf8_json_writer"} | |
| 13702 | + | |
| 13703 | + def from_map(m) do | |
| 13704 | + %Utf8JSONWriter{ | |
| 13705 | + utf8_json_writer: decode_utf8_json_writer(m["Utf8JsonWriter"]), | |
| 13706 | + } | |
| 13707 | + end | |
| 13708 | + | |
| 13709 | + def from_json(json) do | |
| 13710 | + json | |
| 13711 | + |> Jason.decode!() | |
| 13712 | + |> from_map() | |
| 13713 | + end | |
| 13714 | + | |
| 13715 | + def to_map(struct) do | |
| 13716 | + %{ | |
| 13717 | + "Utf8JsonWriter" => struct.utf8_json_writer, | |
| 13718 | + } | |
| 13719 | + end | |
| 13720 | + | |
| 13721 | + def to_json(struct) do | |
| 13722 | + struct | |
| 13723 | + |> to_map() | |
| 13724 | + |> Jason.encode!() | |
| 13725 | + end | |
| 13726 | +end | |
| 13727 | + | |
| 13728 | +defmodule UUID do | |
| 13729 | + @enforce_keys [:uuid] | |
| 13730 | + defstruct [:uuid] | |
| 13731 | + | |
| 13732 | + @type t :: %__MODULE__{ | |
| 13733 | + uuid: integer() | |
| 13734 | + } | |
| 13735 | + | |
| 13736 | + def decode_uuid(value) when is_integer(value), do: value | |
| 13737 | + def decode_uuid(_), do: {:error, "Unexpected type when decoding UUID.uuid"} | |
| 13738 | + | |
| 13739 | + def encode_uuid(value) when is_integer(value), do: value | |
| 13740 | + def encode_uuid(_), do: {:error, "Unexpected type when encoding UUID.uuid"} | |
| 13741 | + | |
| 13742 | + def from_map(m) do | |
| 13743 | + %UUID{ | |
| 13744 | + uuid: decode_uuid(m["UUID"]), | |
| 13745 | + } | |
| 13746 | + end | |
| 13747 | + | |
| 13748 | + def from_json(json) do | |
| 13749 | + json | |
| 13750 | + |> Jason.decode!() | |
| 13751 | + |> from_map() | |
| 13752 | + end | |
| 13753 | + | |
| 13754 | + def to_map(struct) do | |
| 13755 | + %{ | |
| 13756 | + "UUID" => struct.uuid, | |
| 13757 | + } | |
| 13758 | + end | |
| 13759 | + | |
| 13760 | + def to_json(struct) do | |
| 13761 | + struct | |
| 13762 | + |> to_map() | |
| 13763 | + |> Jason.encode!() | |
| 13764 | + end | |
| 13765 | +end | |
| 13766 | + | |
| 13767 | +defmodule Var do | |
| 13768 | + @enforce_keys [:var] | |
| 13769 | + defstruct [:var] | |
| 13770 | + | |
| 13771 | + @type t :: %__MODULE__{ | |
| 13772 | + var: integer() | |
| 13773 | + } | |
| 13774 | + | |
| 13775 | + def decode_var(value) when is_integer(value), do: value | |
| 13776 | + def decode_var(_), do: {:error, "Unexpected type when decoding Var.var"} | |
| 13777 | + | |
| 13778 | + def encode_var(value) when is_integer(value), do: value | |
| 13779 | + def encode_var(_), do: {:error, "Unexpected type when encoding Var.var"} | |
| 13780 | + | |
| 13781 | + def from_map(m) do | |
| 13782 | + %Var{ | |
| 13783 | + var: decode_var(m["var"]), | |
| 13784 | + } | |
| 13785 | + end | |
| 13786 | + | |
| 13787 | + def from_json(json) do | |
| 13788 | + json | |
| 13789 | + |> Jason.decode!() | |
| 13790 | + |> from_map() | |
| 13791 | + end | |
| 13792 | + | |
| 13793 | + def to_map(struct) do | |
| 13794 | + %{ | |
| 13795 | + "var" => struct.var, | |
| 13796 | + } | |
| 13797 | + end | |
| 13798 | + | |
| 13799 | + def to_json(struct) do | |
| 13800 | + struct | |
| 13801 | + |> to_map() | |
| 13802 | + |> Jason.encode!() | |
| 13803 | + end | |
| 13804 | +end | |
| 13805 | + | |
| 13806 | +defmodule Virtual do | |
| 13807 | + @enforce_keys [:virtual] | |
| 13808 | + defstruct [:virtual] | |
| 13809 | + | |
| 13810 | + @type t :: %__MODULE__{ | |
| 13811 | + virtual: integer() | |
| 13812 | + } | |
| 13813 | + | |
| 13814 | + def decode_virtual(value) when is_integer(value), do: value | |
| 13815 | + def decode_virtual(_), do: {:error, "Unexpected type when decoding Virtual.virtual"} | |
| 13816 | + | |
| 13817 | + def encode_virtual(value) when is_integer(value), do: value | |
| 13818 | + def encode_virtual(_), do: {:error, "Unexpected type when encoding Virtual.virtual"} | |
| 13819 | + | |
| 13820 | + def from_map(m) do | |
| 13821 | + %Virtual{ | |
| 13822 | + virtual: decode_virtual(m["virtual"]), | |
| 13823 | + } | |
| 13824 | + end | |
| 13825 | + | |
| 13826 | + def from_json(json) do | |
| 13827 | + json | |
| 13828 | + |> Jason.decode!() | |
| 13829 | + |> from_map() | |
| 13830 | + end | |
| 13831 | + | |
| 13832 | + def to_map(struct) do | |
| 13833 | + %{ | |
| 13834 | + "virtual" => struct.virtual, | |
| 13679 | 13835 | } |
| 13680 | 13836 | end |
| 13681 | 13837 | |
| @@ -14155,11 +14311,15 @@ defmodule Yield do | ||
| 14155 | 14311 | end |
| 14156 | 14312 | |
| 14157 | 14313 | defmodule Obj6 do |
| 14158 | - @enforce_keys [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14159 | - defstruct [:dummy, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14314 | + @enforce_keys [:dummy, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14315 | + defstruct [:dummy, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 14160 | 14316 | |
| 14161 | 14317 | @type t :: %__MODULE__{ |
| 14162 | 14318 | dummy: integer(), |
| 14319 | + utf8_json_writer: Utf8JSONWriter.t(), | |
| 14320 | + uuid: UUID.t(), | |
| 14321 | + var: Var.t(), | |
| 14322 | + virtual: Virtual.t(), | |
| 14163 | 14323 | void: Void.t(), |
| 14164 | 14324 | volatile: Volatile.t(), |
| 14165 | 14325 | wchar_t: WcharT.t(), |
| @@ -14183,6 +14343,10 @@ defmodule Obj6 do | ||
| 14183 | 14343 | def from_map(m) do |
| 14184 | 14344 | %Obj6{ |
| 14185 | 14345 | dummy: decode_dummy(m["dummy"]), |
| 14346 | + utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]), | |
| 14347 | + uuid: UUID.from_map(m["UUID"]), | |
| 14348 | + var: Var.from_map(m["var"]), | |
| 14349 | + virtual: Virtual.from_map(m["virtual"]), | |
| 14186 | 14350 | void: Void.from_map(m["void"]), |
| 14187 | 14351 | volatile: Volatile.from_map(m["volatile"]), |
| 14188 | 14352 | wchar_t: WcharT.from_map(m["wchar_t"]), |
| @@ -14207,6 +14371,10 @@ defmodule Obj6 do | ||
| 14207 | 14371 | def to_map(struct) do |
| 14208 | 14372 | %{ |
| 14209 | 14373 | "dummy" => struct.dummy, |
| 14374 | + "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer), | |
| 14375 | + "UUID" => UUID.to_map(struct.uuid), | |
| 14376 | + "var" => Var.to_map(struct.var), | |
| 14377 | + "virtual" => Virtual.to_map(struct.virtual), | |
| 14210 | 14378 | "void" => Void.to_map(struct.void), |
| 14211 | 14379 | "volatile" => Volatile.to_map(struct.volatile), |
| 14212 | 14380 | "wchar_t" => WcharT.to_map(struct.wchar_t), |
Melmdefault / QuickType.elm+245 −169
| @@ -100,6 +100,7 @@ module QuickType exposing | ||
| 100 | 100 | , Del |
| 101 | 101 | , Delegate |
| 102 | 102 | , Delete |
| 103 | + , DeserializationFeature | |
| 103 | 104 | , DictClass |
| 104 | 105 | , Dictionary |
| 105 | 106 | , DidSet |
| @@ -139,13 +140,13 @@ module QuickType exposing | ||
| 139 | 140 | , Get |
| 140 | 141 | , Global |
| 141 | 142 | , Go |
| 142 | - , Goto | |
| 143 | 143 | , Decoder |
| 144 | 144 | , Else |
| 145 | 145 | , Exposing |
| 146 | 146 | , Obj2False |
| 147 | 147 | , FloatClass |
| 148 | 148 | , Obj3 |
| 149 | + , Goto | |
| 149 | 150 | , Guard |
| 150 | 151 | , HasOwnProperty |
| 151 | 152 | , HashCode |
| @@ -202,7 +203,6 @@ module QuickType exposing | ||
| 202 | 203 | , Newtonsoft |
| 203 | 204 | , Nil |
| 204 | 205 | , No |
| 205 | - , Noexcept | |
| 206 | 206 | , If |
| 207 | 207 | , Import |
| 208 | 208 | , In |
| @@ -212,6 +212,7 @@ module QuickType exposing | ||
| 212 | 212 | , Module |
| 213 | 213 | , Obj4 |
| 214 | 214 | , NoSuchMethod |
| 215 | + , Noexcept | |
| 215 | 216 | , Nonatomic |
| 216 | 217 | , None |
| 217 | 218 | , Nonlocal |
| @@ -231,6 +232,8 @@ module QuickType exposing | ||
| 231 | 232 | , ProtocolClass |
| 232 | 233 | , Object |
| 233 | 234 | , ObjectMapper |
| 235 | + , ObjectReader | |
| 236 | + , ObjectWriter | |
| 234 | 237 | , Oneway |
| 235 | 238 | , Open |
| 236 | 239 | , Operator |
| @@ -272,9 +275,6 @@ module QuickType exposing | ||
| 272 | 275 | , RuntimeType |
| 273 | 276 | , S |
| 274 | 277 | , Sbyte |
| 275 | - , Sealed | |
| 276 | - , Sel | |
| 277 | - , Select | |
| 278 | 278 | , Obj5 |
| 279 | 279 | , SelfClass |
| 280 | 280 | , StringClass |
| @@ -282,8 +282,12 @@ module QuickType exposing | ||
| 282 | 282 | , Obj5True |
| 283 | 283 | , Type |
| 284 | 284 | , TypeClass |
| 285 | + , Sealed | |
| 286 | + , Sel | |
| 287 | + , Select | |
| 285 | 288 | , Self |
| 286 | 289 | , Sendable |
| 290 | + , SerializationFeature | |
| 287 | 291 | , Serialize |
| 288 | 292 | , SerializerProvider |
| 289 | 293 | , Set |
| @@ -336,12 +340,12 @@ module QuickType exposing | ||
| 336 | 340 | , Ushort |
| 337 | 341 | , Using |
| 338 | 342 | , Utf8JSONReader |
| 343 | + , Obj6 | |
| 344 | + , Where | |
| 339 | 345 | , Utf8JSONWriter |
| 340 | 346 | , UUID |
| 341 | 347 | , Var |
| 342 | 348 | , Virtual |
| 343 | - , Obj6 | |
| 344 | - , Where | |
| 345 | 349 | , Void |
| 346 | 350 | , Volatile |
| 347 | 351 | , WcharT |
| @@ -715,6 +719,7 @@ type alias Obj2 = | ||
| 715 | 719 | , del : Del |
| 716 | 720 | , delegate : Delegate |
| 717 | 721 | , delete : Delete |
| 722 | + , deserializationFeature : DeserializationFeature | |
| 718 | 723 | , dict : DictClass |
| 719 | 724 | , dictionary : Dictionary |
| 720 | 725 | , didSet : DidSet |
| @@ -755,7 +760,6 @@ type alias Obj2 = | ||
| 755 | 760 | , get : Get |
| 756 | 761 | , global : Global |
| 757 | 762 | , go : Go |
| 758 | - , goto : Goto | |
| 759 | 763 | , obj2Decoder : Decoder |
| 760 | 764 | , obj2Else : Else |
| 761 | 765 | , obj2Exposing : Exposing |
| @@ -839,6 +843,10 @@ type alias Delete = | ||
| 839 | 843 | { delete : Int |
| 840 | 844 | } |
| 841 | 845 | |
| 846 | +type alias DeserializationFeature = | |
| 847 | + { deserializationFeature : Int | |
| 848 | + } | |
| 849 | + | |
| 842 | 850 | type alias DictClass = |
| 843 | 851 | { dict : Int |
| 844 | 852 | } |
| @@ -999,10 +1007,6 @@ type alias Go = | ||
| 999 | 1007 | { go : Int |
| 1000 | 1008 | } |
| 1001 | 1009 | |
| 1002 | -type alias Goto = | |
| 1003 | - { goto : Int | |
| 1004 | - } | |
| 1005 | - | |
| 1006 | 1010 | type alias Decoder = |
| 1007 | 1011 | { decoderDecoder : Int |
| 1008 | 1012 | } |
| @@ -1025,6 +1029,7 @@ type alias FloatClass = | ||
| 1025 | 1029 | |
| 1026 | 1030 | type alias Obj3 = |
| 1027 | 1031 | { dummy : Int |
| 1032 | + , goto : Goto | |
| 1028 | 1033 | , guard : Guard |
| 1029 | 1034 | , hasOwnProperty : HasOwnProperty |
| 1030 | 1035 | , hashCode : HashCode |
| @@ -1081,7 +1086,6 @@ type alias Obj3 = | ||
| 1081 | 1086 | , newtonsoft : Newtonsoft |
| 1082 | 1087 | , nil : Nil |
| 1083 | 1088 | , no : No |
| 1084 | - , noexcept : Noexcept | |
| 1085 | 1089 | , obj3If : If |
| 1086 | 1090 | , obj3Import : Import |
| 1087 | 1091 | , obj3In : In |
| @@ -1091,6 +1095,10 @@ type alias Obj3 = | ||
| 1091 | 1095 | , obj3Module : Module |
| 1092 | 1096 | } |
| 1093 | 1097 | |
| 1098 | +type alias Goto = | |
| 1099 | + { goto : Int | |
| 1100 | + } | |
| 1101 | + | |
| 1094 | 1102 | type alias Guard = |
| 1095 | 1103 | { guard : Int |
| 1096 | 1104 | } |
| @@ -1315,10 +1323,6 @@ type alias No = | ||
| 1315 | 1323 | { no : Int |
| 1316 | 1324 | } |
| 1317 | 1325 | |
| 1318 | -type alias Noexcept = | |
| 1319 | - { noexcept : Int | |
| 1320 | - } | |
| 1321 | - | |
| 1322 | 1326 | type alias If = |
| 1323 | 1327 | { ifIf : Int |
| 1324 | 1328 | } |
| @@ -1350,6 +1354,7 @@ type alias Module = | ||
| 1350 | 1354 | type alias Obj4 = |
| 1351 | 1355 | { dummy : Int |
| 1352 | 1356 | , noSuchMethod : NoSuchMethod |
| 1357 | + , noexcept : Noexcept | |
| 1353 | 1358 | , nonatomic : Nonatomic |
| 1354 | 1359 | , none : None |
| 1355 | 1360 | , nonlocal : Nonlocal |
| @@ -1369,6 +1374,8 @@ type alias Obj4 = | ||
| 1369 | 1374 | , obj4Protocol : ProtocolClass |
| 1370 | 1375 | , object : Object |
| 1371 | 1376 | , objectMapper : ObjectMapper |
| 1377 | + , objectReader : ObjectReader | |
| 1378 | + , objectWriter : ObjectWriter | |
| 1372 | 1379 | , oneway : Oneway |
| 1373 | 1380 | , open : Open |
| 1374 | 1381 | , operator : Operator |
| @@ -1410,15 +1417,16 @@ type alias Obj4 = | ||
| 1410 | 1417 | , runtimeType : RuntimeType |
| 1411 | 1418 | , s : S |
| 1412 | 1419 | , sbyte : Sbyte |
| 1413 | - , sealed : Sealed | |
| 1414 | - , sel : Sel | |
| 1415 | - , select : Select | |
| 1416 | 1420 | } |
| 1417 | 1421 | |
| 1418 | 1422 | type alias NoSuchMethod = |
| 1419 | 1423 | { noSuchMethod : Int |
| 1420 | 1424 | } |
| 1421 | 1425 | |
| 1426 | +type alias Noexcept = | |
| 1427 | + { noexcept : Int | |
| 1428 | + } | |
| 1429 | + | |
| 1422 | 1430 | type alias Nonatomic = |
| 1423 | 1431 | { nonatomic : Int |
| 1424 | 1432 | } |
| @@ -1495,6 +1503,14 @@ type alias ObjectMapper = | ||
| 1495 | 1503 | { objectMapper : Int |
| 1496 | 1504 | } |
| 1497 | 1505 | |
| 1506 | +type alias ObjectReader = | |
| 1507 | + { objectReader : Int | |
| 1508 | + } | |
| 1509 | + | |
| 1510 | +type alias ObjectWriter = | |
| 1511 | + { objectWriter : Int | |
| 1512 | + } | |
| 1513 | + | |
| 1498 | 1514 | type alias Oneway = |
| 1499 | 1515 | { oneway : Int |
| 1500 | 1516 | } |
| @@ -1659,18 +1675,6 @@ type alias Sbyte = | ||
| 1659 | 1675 | { sbyte : Int |
| 1660 | 1676 | } |
| 1661 | 1677 | |
| 1662 | -type alias Sealed = | |
| 1663 | - { sealed : Int | |
| 1664 | - } | |
| 1665 | - | |
| 1666 | -type alias Sel = | |
| 1667 | - { sel : Int | |
| 1668 | - } | |
| 1669 | - | |
| 1670 | -type alias Select = | |
| 1671 | - { select : Int | |
| 1672 | - } | |
| 1673 | - | |
| 1674 | 1678 | type alias Obj5 = |
| 1675 | 1679 | { dummy : Int |
| 1676 | 1680 | , obj5Self : SelfClass |
| @@ -1679,8 +1683,12 @@ type alias Obj5 = | ||
| 1679 | 1683 | , obj5True : Obj5True |
| 1680 | 1684 | , obj5Type : Type |
| 1681 | 1685 | , purpleType : TypeClass |
| 1686 | + , sealed : Sealed | |
| 1687 | + , sel : Sel | |
| 1688 | + , select : Select | |
| 1682 | 1689 | , self : Self |
| 1683 | 1690 | , sendable : Sendable |
| 1691 | + , serializationFeature : SerializationFeature | |
| 1684 | 1692 | , serialize : Serialize |
| 1685 | 1693 | , serializerProvider : SerializerProvider |
| 1686 | 1694 | , set : Set |
| @@ -1733,10 +1741,6 @@ type alias Obj5 = | ||
| 1733 | 1741 | , ushort : Ushort |
| 1734 | 1742 | , using : Using |
| 1735 | 1743 | , utf8JSONReader : Utf8JSONReader |
| 1736 | - , utf8JSONWriter : Utf8JSONWriter | |
| 1737 | - , uuid : UUID | |
| 1738 | - , var : Var | |
| 1739 | - , virtual : Virtual | |
| 1740 | 1744 | } |
| 1741 | 1745 | |
| 1742 | 1746 | type alias SelfClass = |
| @@ -1763,6 +1767,18 @@ type alias TypeClass = | ||
| 1763 | 1767 | { typeType : Int |
| 1764 | 1768 | } |
| 1765 | 1769 | |
| 1770 | +type alias Sealed = | |
| 1771 | + { sealed : Int | |
| 1772 | + } | |
| 1773 | + | |
| 1774 | +type alias Sel = | |
| 1775 | + { sel : Int | |
| 1776 | + } | |
| 1777 | + | |
| 1778 | +type alias Select = | |
| 1779 | + { select : Int | |
| 1780 | + } | |
| 1781 | + | |
| 1766 | 1782 | type alias Self = |
| 1767 | 1783 | { self : Int |
| 1768 | 1784 | } |
| @@ -1771,6 +1787,10 @@ type alias Sendable = | ||
| 1771 | 1787 | { sendable : Int |
| 1772 | 1788 | } |
| 1773 | 1789 | |
| 1790 | +type alias SerializationFeature = | |
| 1791 | + { serializationFeature : Int | |
| 1792 | + } | |
| 1793 | + | |
| 1774 | 1794 | type alias Serialize = |
| 1775 | 1795 | { serialize : Int |
| 1776 | 1796 | } |
| @@ -1979,25 +1999,13 @@ type alias Utf8JSONReader = | ||
| 1979 | 1999 | { utf8JSONReader : Int |
| 1980 | 2000 | } |
| 1981 | 2001 | |
| 1982 | -type alias Utf8JSONWriter = | |
| 1983 | - { utf8JSONWriter : Int | |
| 1984 | - } | |
| 1985 | - | |
| 1986 | -type alias UUID = | |
| 1987 | - { uuid : Int | |
| 1988 | - } | |
| 1989 | - | |
| 1990 | -type alias Var = | |
| 1991 | - { var : Int | |
| 1992 | - } | |
| 1993 | - | |
| 1994 | -type alias Virtual = | |
| 1995 | - { virtual : Int | |
| 1996 | - } | |
| 1997 | - | |
| 1998 | 2002 | type alias Obj6 = |
| 1999 | 2003 | { dummy : Int |
| 2000 | 2004 | , obj6Where : Where |
| 2005 | + , utf8JSONWriter : Utf8JSONWriter | |
| 2006 | + , uuid : UUID | |
| 2007 | + , var : Var | |
| 2008 | + , virtual : Virtual | |
| 2001 | 2009 | , void : Void |
| 2002 | 2010 | , volatile : Volatile |
| 2003 | 2011 | , wcharT : WcharT |
| @@ -2015,6 +2023,22 @@ type alias Where = | ||
| 2015 | 2023 | { whereWhere : Int |
| 2016 | 2024 | } |
| 2017 | 2025 | |
| 2026 | +type alias Utf8JSONWriter = | |
| 2027 | + { utf8JSONWriter : Int | |
| 2028 | + } | |
| 2029 | + | |
| 2030 | +type alias UUID = | |
| 2031 | + { uuid : Int | |
| 2032 | + } | |
| 2033 | + | |
| 2034 | +type alias Var = | |
| 2035 | + { var : Int | |
| 2036 | + } | |
| 2037 | + | |
| 2038 | +type alias Virtual = | |
| 2039 | + { virtual : Int | |
| 2040 | + } | |
| 2041 | + | |
| 2018 | 2042 | type alias Void = |
| 2019 | 2043 | { void : Int |
| 2020 | 2044 | } |
| @@ -2958,6 +2982,7 @@ obj2 = | ||
| 2958 | 2982 | |> Jpipe.required "del" del |
| 2959 | 2983 | |> Jpipe.required "delegate" delegate |
| 2960 | 2984 | |> Jpipe.required "delete" delete |
| 2985 | + |> Jpipe.required "DeserializationFeature" deserializationFeature | |
| 2961 | 2986 | |> Jpipe.required "dict" dictClass |
| 2962 | 2987 | |> Jpipe.required "dictionary" dictionary |
| 2963 | 2988 | |> Jpipe.required "didSet" didSet |
| @@ -2998,7 +3023,6 @@ obj2 = | ||
| 2998 | 3023 | |> Jpipe.required "get" get |
| 2999 | 3024 | |> Jpipe.required "global" global |
| 3000 | 3025 | |> Jpipe.required "go" go |
| 3001 | - |> Jpipe.required "goto" goto | |
| 3002 | 3026 | |> Jpipe.required "Decoder" purpleDecoder |
| 3003 | 3027 | |> Jpipe.required "else" purpleElse |
| 3004 | 3028 | |> Jpipe.required "exposing" purpleExposing |
| @@ -3027,6 +3051,7 @@ encodeObj2 x = | ||
| 3027 | 3051 | , ("del", encodeDel x.del) |
| 3028 | 3052 | , ("delegate", encodeDelegate x.delegate) |
| 3029 | 3053 | , ("delete", encodeDelete x.delete) |
| 3054 | + , ("DeserializationFeature", encodeDeserializationFeature x.deserializationFeature) | |
| 3030 | 3055 | , ("dict", encodeDictClass x.dict) |
| 3031 | 3056 | , ("dictionary", encodeDictionary x.dictionary) |
| 3032 | 3057 | , ("didSet", encodeDidSet x.didSet) |
| @@ -3067,7 +3092,6 @@ encodeObj2 x = | ||
| 3067 | 3092 | , ("get", encodeGet x.get) |
| 3068 | 3093 | , ("global", encodeGlobal x.global) |
| 3069 | 3094 | , ("go", encodeGo x.go) |
| 3070 | - , ("goto", encodeGoto x.goto) | |
| 3071 | 3095 | , ("Decoder", encodeDecoder x.obj2Decoder) |
| 3072 | 3096 | , ("else", encodeElse x.obj2Else) |
| 3073 | 3097 | , ("exposing", encodeExposing x.obj2Exposing) |
| @@ -3284,6 +3308,17 @@ encodeDelete x = | ||
| 3284 | 3308 | [ ("delete", Jenc.int x.delete) |
| 3285 | 3309 | ] |
| 3286 | 3310 | |
| 3311 | +deserializationFeature : Jdec.Decoder DeserializationFeature | |
| 3312 | +deserializationFeature = | |
| 3313 | + Jdec.succeed DeserializationFeature | |
| 3314 | + |> Jpipe.required "DeserializationFeature" Jdec.int | |
| 3315 | + | |
| 3316 | +encodeDeserializationFeature : DeserializationFeature -> Jenc.Value | |
| 3317 | +encodeDeserializationFeature x = | |
| 3318 | + Jenc.object | |
| 3319 | + [ ("DeserializationFeature", Jenc.int x.deserializationFeature) | |
| 3320 | + ] | |
| 3321 | + | |
| 3287 | 3322 | dictClass : Jdec.Decoder DictClass |
| 3288 | 3323 | dictClass = |
| 3289 | 3324 | Jdec.succeed DictClass |
| @@ -3728,17 +3763,6 @@ encodeGo x = | ||
| 3728 | 3763 | [ ("go", Jenc.int x.go) |
| 3729 | 3764 | ] |
| 3730 | 3765 | |
| 3731 | -goto : Jdec.Decoder Goto | |
| 3732 | -goto = | |
| 3733 | - Jdec.succeed Goto | |
| 3734 | - |> Jpipe.required "goto" Jdec.int | |
| 3735 | - | |
| 3736 | -encodeGoto : Goto -> Jenc.Value | |
| 3737 | -encodeGoto x = | |
| 3738 | - Jenc.object | |
| 3739 | - [ ("goto", Jenc.int x.goto) | |
| 3740 | - ] | |
| 3741 | - | |
| 3742 | 3766 | purpleDecoder : Jdec.Decoder Decoder |
| 3743 | 3767 | purpleDecoder = |
| 3744 | 3768 | Jdec.succeed Decoder |
| @@ -3798,6 +3822,7 @@ obj3 : Jdec.Decoder Obj3 | ||
| 3798 | 3822 | obj3 = |
| 3799 | 3823 | Jdec.succeed Obj3 |
| 3800 | 3824 | |> Jpipe.required "dummy" Jdec.int |
| 3825 | + |> Jpipe.required "goto" goto | |
| 3801 | 3826 | |> Jpipe.required "guard" guard |
| 3802 | 3827 | |> Jpipe.required "hasOwnProperty" hasOwnProperty |
| 3803 | 3828 | |> Jpipe.required "hashCode" hashCode |
| @@ -3854,7 +3879,6 @@ obj3 = | ||
| 3854 | 3879 | |> Jpipe.required "newtonsoft" newtonsoft |
| 3855 | 3880 | |> Jpipe.required "nil" nil |
| 3856 | 3881 | |> Jpipe.required "NO" no |
| 3857 | - |> Jpipe.required "noexcept" noexcept | |
| 3858 | 3882 | |> Jpipe.required "if" purpleIf |
| 3859 | 3883 | |> Jpipe.required "import" purpleImport |
| 3860 | 3884 | |> Jpipe.required "in" purpleIn |
| @@ -3867,6 +3891,7 @@ encodeObj3 : Obj3 -> Jenc.Value | ||
| 3867 | 3891 | encodeObj3 x = |
| 3868 | 3892 | Jenc.object |
| 3869 | 3893 | [ ("dummy", Jenc.int x.dummy) |
| 3894 | + , ("goto", encodeGoto x.goto) | |
| 3870 | 3895 | , ("guard", encodeGuard x.guard) |
| 3871 | 3896 | , ("hasOwnProperty", encodeHasOwnProperty x.hasOwnProperty) |
| 3872 | 3897 | , ("hashCode", encodeHashCode x.hashCode) |
| @@ -3923,7 +3948,6 @@ encodeObj3 x = | ||
| 3923 | 3948 | , ("newtonsoft", encodeNewtonsoft x.newtonsoft) |
| 3924 | 3949 | , ("nil", encodeNil x.nil) |
| 3925 | 3950 | , ("NO", encodeNo x.no) |
| 3926 | - , ("noexcept", encodeNoexcept x.noexcept) | |
| 3927 | 3951 | , ("if", encodeIf x.obj3If) |
| 3928 | 3952 | , ("import", encodeImport x.obj3Import) |
| 3929 | 3953 | , ("in", encodeIn x.obj3In) |
| @@ -3933,6 +3957,17 @@ encodeObj3 x = | ||
| 3933 | 3957 | , ("module", encodeModule x.obj3Module) |
| 3934 | 3958 | ] |
| 3935 | 3959 | |
| 3960 | +goto : Jdec.Decoder Goto | |
| 3961 | +goto = | |
| 3962 | + Jdec.succeed Goto | |
| 3963 | + |> Jpipe.required "goto" Jdec.int | |
| 3964 | + | |
| 3965 | +encodeGoto : Goto -> Jenc.Value | |
| 3966 | +encodeGoto x = | |
| 3967 | + Jenc.object | |
| 3968 | + [ ("goto", Jenc.int x.goto) | |
| 3969 | + ] | |
| 3970 | + | |
| 3936 | 3971 | guard : Jdec.Decoder Guard |
| 3937 | 3972 | guard = |
| 3938 | 3973 | Jdec.succeed Guard |
| @@ -4549,17 +4584,6 @@ encodeNo x = | ||
| 4549 | 4584 | [ ("NO", Jenc.int x.no) |
| 4550 | 4585 | ] |
| 4551 | 4586 | |
| 4552 | -noexcept : Jdec.Decoder Noexcept | |
| 4553 | -noexcept = | |
| 4554 | - Jdec.succeed Noexcept | |
| 4555 | - |> Jpipe.required "noexcept" Jdec.int | |
| 4556 | - | |
| 4557 | -encodeNoexcept : Noexcept -> Jenc.Value | |
| 4558 | -encodeNoexcept x = | |
| 4559 | - Jenc.object | |
| 4560 | - [ ("noexcept", Jenc.int x.noexcept) | |
| 4561 | - ] | |
| 4562 | - | |
| 4563 | 4587 | purpleIf : Jdec.Decoder If |
| 4564 | 4588 | purpleIf = |
| 4565 | 4589 | Jdec.succeed If |
| @@ -4642,6 +4666,7 @@ obj4 = | ||
| 4642 | 4666 | Jdec.succeed Obj4 |
| 4643 | 4667 | |> Jpipe.required "dummy" Jdec.int |
| 4644 | 4668 | |> Jpipe.required "noSuchMethod" noSuchMethod |
| 4669 | + |> Jpipe.required "noexcept" noexcept | |
| 4645 | 4670 | |> Jpipe.required "nonatomic" nonatomic |
| 4646 | 4671 | |> Jpipe.required "None" none |
| 4647 | 4672 | |> Jpipe.required "nonlocal" nonlocal |
| @@ -4661,6 +4686,8 @@ obj4 = | ||
| 4661 | 4686 | |> Jpipe.required "protocol" protocolClass |
| 4662 | 4687 | |> Jpipe.required "object" object |
| 4663 | 4688 | |> Jpipe.required "ObjectMapper" objectMapper |
| 4689 | + |> Jpipe.required "ObjectReader" objectReader | |
| 4690 | + |> Jpipe.required "ObjectWriter" objectWriter | |
| 4664 | 4691 | |> Jpipe.required "oneway" oneway |
| 4665 | 4692 | |> Jpipe.required "open" open |
| 4666 | 4693 | |> Jpipe.required "operator" operator |
| @@ -4702,15 +4729,13 @@ obj4 = | ||
| 4702 | 4729 | |> Jpipe.required "runtimeType" runtimeType |
| 4703 | 4730 | |> Jpipe.required "s" s |
| 4704 | 4731 | |> Jpipe.required "sbyte" sbyte |
| 4705 | - |> Jpipe.required "sealed" sealed | |
| 4706 | - |> Jpipe.required "SEL" sel | |
| 4707 | - |> Jpipe.required "select" select | |
| 4708 | 4732 | |
| 4709 | 4733 | encodeObj4 : Obj4 -> Jenc.Value |
| 4710 | 4734 | encodeObj4 x = |
| 4711 | 4735 | Jenc.object |
| 4712 | 4736 | [ ("dummy", Jenc.int x.dummy) |
| 4713 | 4737 | , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod) |
| 4738 | + , ("noexcept", encodeNoexcept x.noexcept) | |
| 4714 | 4739 | , ("nonatomic", encodeNonatomic x.nonatomic) |
| 4715 | 4740 | , ("None", encodeNone x.none) |
| 4716 | 4741 | , ("nonlocal", encodeNonlocal x.nonlocal) |
| @@ -4730,6 +4755,8 @@ encodeObj4 x = | ||
| 4730 | 4755 | , ("protocol", encodeProtocolClass x.obj4Protocol) |
| 4731 | 4756 | , ("object", encodeObject x.object) |
| 4732 | 4757 | , ("ObjectMapper", encodeObjectMapper x.objectMapper) |
| 4758 | + , ("ObjectReader", encodeObjectReader x.objectReader) | |
| 4759 | + , ("ObjectWriter", encodeObjectWriter x.objectWriter) | |
| 4733 | 4760 | , ("oneway", encodeOneway x.oneway) |
| 4734 | 4761 | , ("open", encodeOpen x.open) |
| 4735 | 4762 | , ("operator", encodeOperator x.operator) |
| @@ -4771,9 +4798,6 @@ encodeObj4 x = | ||
| 4771 | 4798 | , ("runtimeType", encodeRuntimeType x.runtimeType) |
| 4772 | 4799 | , ("s", encodeS x.s) |
| 4773 | 4800 | , ("sbyte", encodeSbyte x.sbyte) |
| 4774 | - , ("sealed", encodeSealed x.sealed) | |
| 4775 | - , ("SEL", encodeSel x.sel) | |
| 4776 | - , ("select", encodeSelect x.select) | |
| 4777 | 4801 | ] |
| 4778 | 4802 | |
| 4779 | 4803 | noSuchMethod : Jdec.Decoder NoSuchMethod |
| @@ -4787,6 +4811,17 @@ encodeNoSuchMethod x = | ||
| 4787 | 4811 | [ ("noSuchMethod", Jenc.int x.noSuchMethod) |
| 4788 | 4812 | ] |
| 4789 | 4813 | |
| 4814 | +noexcept : Jdec.Decoder Noexcept | |
| 4815 | +noexcept = | |
| 4816 | + Jdec.succeed Noexcept | |
| 4817 | + |> Jpipe.required "noexcept" Jdec.int | |
| 4818 | + | |
| 4819 | +encodeNoexcept : Noexcept -> Jenc.Value | |
| 4820 | +encodeNoexcept x = | |
| 4821 | + Jenc.object | |
| 4822 | + [ ("noexcept", Jenc.int x.noexcept) | |
| 4823 | + ] | |
| 4824 | + | |
| 4790 | 4825 | nonatomic : Jdec.Decoder Nonatomic |
| 4791 | 4826 | nonatomic = |
| 4792 | 4827 | Jdec.succeed Nonatomic |
| @@ -4996,6 +5031,28 @@ encodeObjectMapper x = | ||
| 4996 | 5031 | [ ("ObjectMapper", Jenc.int x.objectMapper) |
| 4997 | 5032 | ] |
| 4998 | 5033 | |
| 5034 | +objectReader : Jdec.Decoder ObjectReader | |
| 5035 | +objectReader = | |
| 5036 | + Jdec.succeed ObjectReader | |
| 5037 | + |> Jpipe.required "ObjectReader" Jdec.int | |
| 5038 | + | |
| 5039 | +encodeObjectReader : ObjectReader -> Jenc.Value | |
| 5040 | +encodeObjectReader x = | |
| 5041 | + Jenc.object | |
| 5042 | + [ ("ObjectReader", Jenc.int x.objectReader) | |
| 5043 | + ] | |
| 5044 | + | |
| 5045 | +objectWriter : Jdec.Decoder ObjectWriter | |
| 5046 | +objectWriter = | |
| 5047 | + Jdec.succeed ObjectWriter | |
| 5048 | + |> Jpipe.required "ObjectWriter" Jdec.int | |
| 5049 | + | |
| 5050 | +encodeObjectWriter : ObjectWriter -> Jenc.Value | |
| 5051 | +encodeObjectWriter x = | |
| 5052 | + Jenc.object | |
| 5053 | + [ ("ObjectWriter", Jenc.int x.objectWriter) | |
| 5054 | + ] | |
| 5055 | + | |
| 4999 | 5056 | oneway : Jdec.Decoder Oneway |
| 5000 | 5057 | oneway = |
| 5001 | 5058 | Jdec.succeed Oneway |
| @@ -5447,39 +5504,6 @@ encodeSbyte x = | ||
| 5447 | 5504 | [ ("sbyte", Jenc.int x.sbyte) |
| 5448 | 5505 | ] |
| 5449 | 5506 | |
| 5450 | -sealed : Jdec.Decoder Sealed | |
| 5451 | -sealed = | |
| 5452 | - Jdec.succeed Sealed | |
| 5453 | - |> Jpipe.required "sealed" Jdec.int | |
| 5454 | - | |
| 5455 | -encodeSealed : Sealed -> Jenc.Value | |
| 5456 | -encodeSealed x = | |
| 5457 | - Jenc.object | |
| 5458 | - [ ("sealed", Jenc.int x.sealed) | |
| 5459 | - ] | |
| 5460 | - | |
| 5461 | -sel : Jdec.Decoder Sel | |
| 5462 | -sel = | |
| 5463 | - Jdec.succeed Sel | |
| 5464 | - |> Jpipe.required "SEL" Jdec.int | |
| 5465 | - | |
| 5466 | -encodeSel : Sel -> Jenc.Value | |
| 5467 | -encodeSel x = | |
| 5468 | - Jenc.object | |
| 5469 | - [ ("SEL", Jenc.int x.sel) | |
| 5470 | - ] | |
| 5471 | - | |
| 5472 | -select : Jdec.Decoder Select | |
| 5473 | -select = | |
| 5474 | - Jdec.succeed Select | |
| 5475 | - |> Jpipe.required "select" Jdec.int | |
| 5476 | - | |
| 5477 | -encodeSelect : Select -> Jenc.Value | |
| 5478 | -encodeSelect x = | |
| 5479 | - Jenc.object | |
| 5480 | - [ ("select", Jenc.int x.select) | |
| 5481 | - ] | |
| 5482 | - | |
| 5483 | 5507 | obj5 : Jdec.Decoder Obj5 |
| 5484 | 5508 | obj5 = |
| 5485 | 5509 | Jdec.succeed Obj5 |
| @@ -5490,8 +5514,12 @@ obj5 = | ||
| 5490 | 5514 | |> Jpipe.required "true" obj5True |
| 5491 | 5515 | |> Jpipe.required "Type" purpleType |
| 5492 | 5516 | |> Jpipe.required "type" typeClass |
| 5517 | + |> Jpipe.required "sealed" sealed | |
| 5518 | + |> Jpipe.required "SEL" sel | |
| 5519 | + |> Jpipe.required "select" select | |
| 5493 | 5520 | |> Jpipe.required "Self" self |
| 5494 | 5521 | |> Jpipe.required "Sendable" sendable |
| 5522 | + |> Jpipe.required "SerializationFeature" serializationFeature | |
| 5495 | 5523 | |> Jpipe.required "serialize" serialize |
| 5496 | 5524 | |> Jpipe.required "SerializerProvider" serializerProvider |
| 5497 | 5525 | |> Jpipe.required "set" set |
| @@ -5544,10 +5572,6 @@ obj5 = | ||
| 5544 | 5572 | |> Jpipe.required "ushort" ushort |
| 5545 | 5573 | |> Jpipe.required "using" using |
| 5546 | 5574 | |> Jpipe.required "Utf8JsonReader" utf8JSONReader |
| 5547 | - |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter | |
| 5548 | - |> Jpipe.required "UUID" uuid | |
| 5549 | - |> Jpipe.required "var" var | |
| 5550 | - |> Jpipe.required "virtual" virtual | |
| 5551 | 5575 | |
| 5552 | 5576 | encodeObj5 : Obj5 -> Jenc.Value |
| 5553 | 5577 | encodeObj5 x = |
| @@ -5559,8 +5583,12 @@ encodeObj5 x = | ||
| 5559 | 5583 | , ("true", encodeObj5True x.obj5True) |
| 5560 | 5584 | , ("Type", encodeType x.obj5Type) |
| 5561 | 5585 | , ("type", encodeTypeClass x.purpleType) |
| 5586 | + , ("sealed", encodeSealed x.sealed) | |
| 5587 | + , ("SEL", encodeSel x.sel) | |
| 5588 | + , ("select", encodeSelect x.select) | |
| 5562 | 5589 | , ("Self", encodeSelf x.self) |
| 5563 | 5590 | , ("Sendable", encodeSendable x.sendable) |
| 5591 | + , ("SerializationFeature", encodeSerializationFeature x.serializationFeature) | |
| 5564 | 5592 | , ("serialize", encodeSerialize x.serialize) |
| 5565 | 5593 | , ("SerializerProvider", encodeSerializerProvider x.serializerProvider) |
| 5566 | 5594 | , ("set", encodeSet x.set) |
| @@ -5613,10 +5641,6 @@ encodeObj5 x = | ||
| 5613 | 5641 | , ("ushort", encodeUshort x.ushort) |
| 5614 | 5642 | , ("using", encodeUsing x.using) |
| 5615 | 5643 | , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader) |
| 5616 | - , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter) | |
| 5617 | - , ("UUID", encodeUUID x.uuid) | |
| 5618 | - , ("var", encodeVar x.var) | |
| 5619 | - , ("virtual", encodeVirtual x.virtual) | |
| 5620 | 5644 | ] |
| 5621 | 5645 | |
| 5622 | 5646 | selfClass : Jdec.Decoder SelfClass |
| @@ -5685,6 +5709,39 @@ encodeTypeClass x = | ||
| 5685 | 5709 | [ ("type", Jenc.int x.typeType) |
| 5686 | 5710 | ] |
| 5687 | 5711 | |
| 5712 | +sealed : Jdec.Decoder Sealed | |
| 5713 | +sealed = | |
| 5714 | + Jdec.succeed Sealed | |
| 5715 | + |> Jpipe.required "sealed" Jdec.int | |
| 5716 | + | |
| 5717 | +encodeSealed : Sealed -> Jenc.Value | |
| 5718 | +encodeSealed x = | |
| 5719 | + Jenc.object | |
| 5720 | + [ ("sealed", Jenc.int x.sealed) | |
| 5721 | + ] | |
| 5722 | + | |
| 5723 | +sel : Jdec.Decoder Sel | |
| 5724 | +sel = | |
| 5725 | + Jdec.succeed Sel | |
| 5726 | + |> Jpipe.required "SEL" Jdec.int | |
| 5727 | + | |
| 5728 | +encodeSel : Sel -> Jenc.Value | |
| 5729 | +encodeSel x = | |
| 5730 | + Jenc.object | |
| 5731 | + [ ("SEL", Jenc.int x.sel) | |
| 5732 | + ] | |
| 5733 | + | |
| 5734 | +select : Jdec.Decoder Select | |
| 5735 | +select = | |
| 5736 | + Jdec.succeed Select | |
| 5737 | + |> Jpipe.required "select" Jdec.int | |
| 5738 | + | |
| 5739 | +encodeSelect : Select -> Jenc.Value | |
| 5740 | +encodeSelect x = | |
| 5741 | + Jenc.object | |
| 5742 | + [ ("select", Jenc.int x.select) | |
| 5743 | + ] | |
| 5744 | + | |
| 5688 | 5745 | self : Jdec.Decoder Self |
| 5689 | 5746 | self = |
| 5690 | 5747 | Jdec.succeed Self |
| @@ -5707,6 +5764,17 @@ encodeSendable x = | ||
| 5707 | 5764 | [ ("Sendable", Jenc.int x.sendable) |
| 5708 | 5765 | ] |
| 5709 | 5766 | |
| 5767 | +serializationFeature : Jdec.Decoder SerializationFeature | |
| 5768 | +serializationFeature = | |
| 5769 | + Jdec.succeed SerializationFeature | |
| 5770 | + |> Jpipe.required "SerializationFeature" Jdec.int | |
| 5771 | + | |
| 5772 | +encodeSerializationFeature : SerializationFeature -> Jenc.Value | |
| 5773 | +encodeSerializationFeature x = | |
| 5774 | + Jenc.object | |
| 5775 | + [ ("SerializationFeature", Jenc.int x.serializationFeature) | |
| 5776 | + ] | |
| 5777 | + | |
| 5710 | 5778 | serialize : Jdec.Decoder Serialize |
| 5711 | 5779 | serialize = |
| 5712 | 5780 | Jdec.succeed Serialize |
| @@ -6279,55 +6347,15 @@ encodeUtf8JSONReader x = | ||
| 6279 | 6347 | [ ("Utf8JsonReader", Jenc.int x.utf8JSONReader) |
| 6280 | 6348 | ] |
| 6281 | 6349 | |
| 6282 | -utf8JSONWriter : Jdec.Decoder Utf8JSONWriter | |
| 6283 | -utf8JSONWriter = | |
| 6284 | - Jdec.succeed Utf8JSONWriter | |
| 6285 | - |> Jpipe.required "Utf8JsonWriter" Jdec.int | |
| 6286 | - | |
| 6287 | -encodeUtf8JSONWriter : Utf8JSONWriter -> Jenc.Value | |
| 6288 | -encodeUtf8JSONWriter x = | |
| 6289 | - Jenc.object | |
| 6290 | - [ ("Utf8JsonWriter", Jenc.int x.utf8JSONWriter) | |
| 6291 | - ] | |
| 6292 | - | |
| 6293 | -uuid : Jdec.Decoder UUID | |
| 6294 | -uuid = | |
| 6295 | - Jdec.succeed UUID | |
| 6296 | - |> Jpipe.required "UUID" Jdec.int | |
| 6297 | - | |
| 6298 | -encodeUUID : UUID -> Jenc.Value | |
| 6299 | -encodeUUID x = | |
| 6300 | - Jenc.object | |
| 6301 | - [ ("UUID", Jenc.int x.uuid) | |
| 6302 | - ] | |
| 6303 | - | |
| 6304 | -var : Jdec.Decoder Var | |
| 6305 | -var = | |
| 6306 | - Jdec.succeed Var | |
| 6307 | - |> Jpipe.required "var" Jdec.int | |
| 6308 | - | |
| 6309 | -encodeVar : Var -> Jenc.Value | |
| 6310 | -encodeVar x = | |
| 6311 | - Jenc.object | |
| 6312 | - [ ("var", Jenc.int x.var) | |
| 6313 | - ] | |
| 6314 | - | |
| 6315 | -virtual : Jdec.Decoder Virtual | |
| 6316 | -virtual = | |
| 6317 | - Jdec.succeed Virtual | |
| 6318 | - |> Jpipe.required "virtual" Jdec.int | |
| 6319 | - | |
| 6320 | -encodeVirtual : Virtual -> Jenc.Value | |
| 6321 | -encodeVirtual x = | |
| 6322 | - Jenc.object | |
| 6323 | - [ ("virtual", Jenc.int x.virtual) | |
| 6324 | - ] | |
| 6325 | - | |
| 6326 | 6350 | obj6 : Jdec.Decoder Obj6 |
| 6327 | 6351 | obj6 = |
| 6328 | 6352 | Jdec.succeed Obj6 |
| 6329 | 6353 | |> Jpipe.required "dummy" Jdec.int |
| 6330 | 6354 | |> Jpipe.required "where" purpleWhere |
| 6355 | + |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter | |
| 6356 | + |> Jpipe.required "UUID" uuid | |
| 6357 | + |> Jpipe.required "var" var | |
| 6358 | + |> Jpipe.required "virtual" virtual | |
| 6331 | 6359 | |> Jpipe.required "void" void |
| 6332 | 6360 | |> Jpipe.required "volatile" volatile |
| 6333 | 6361 | |> Jpipe.required "wchar_t" wcharT |
| @@ -6345,6 +6373,10 @@ encodeObj6 x = | ||
| 6345 | 6373 | Jenc.object |
| 6346 | 6374 | [ ("dummy", Jenc.int x.dummy) |
| 6347 | 6375 | , ("where", encodeWhere x.obj6Where) |
| 6376 | + , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter) | |
| 6377 | + , ("UUID", encodeUUID x.uuid) | |
| 6378 | + , ("var", encodeVar x.var) | |
| 6379 | + , ("virtual", encodeVirtual x.virtual) | |
| 6348 | 6380 | , ("void", encodeVoid x.void) |
| 6349 | 6381 | , ("volatile", encodeVolatile x.volatile) |
| 6350 | 6382 | , ("wchar_t", encodeWcharT x.wcharT) |
| @@ -6369,6 +6401,50 @@ encodeWhere x = | ||
| 6369 | 6401 | [ ("where", Jenc.int x.whereWhere) |
| 6370 | 6402 | ] |
| 6371 | 6403 | |
| 6404 | +utf8JSONWriter : Jdec.Decoder Utf8JSONWriter | |
| 6405 | +utf8JSONWriter = | |
| 6406 | + Jdec.succeed Utf8JSONWriter | |
| 6407 | + |> Jpipe.required "Utf8JsonWriter" Jdec.int | |
| 6408 | + | |
| 6409 | +encodeUtf8JSONWriter : Utf8JSONWriter -> Jenc.Value | |
| 6410 | +encodeUtf8JSONWriter x = | |
| 6411 | + Jenc.object | |
| 6412 | + [ ("Utf8JsonWriter", Jenc.int x.utf8JSONWriter) | |
| 6413 | + ] | |
| 6414 | + | |
| 6415 | +uuid : Jdec.Decoder UUID | |
| 6416 | +uuid = | |
| 6417 | + Jdec.succeed UUID | |
| 6418 | + |> Jpipe.required "UUID" Jdec.int | |
| 6419 | + | |
| 6420 | +encodeUUID : UUID -> Jenc.Value | |
| 6421 | +encodeUUID x = | |
| 6422 | + Jenc.object | |
| 6423 | + [ ("UUID", Jenc.int x.uuid) | |
| 6424 | + ] | |
| 6425 | + | |
| 6426 | +var : Jdec.Decoder Var | |
| 6427 | +var = | |
| 6428 | + Jdec.succeed Var | |
| 6429 | + |> Jpipe.required "var" Jdec.int | |
| 6430 | + | |
| 6431 | +encodeVar : Var -> Jenc.Value | |
| 6432 | +encodeVar x = | |
| 6433 | + Jenc.object | |
| 6434 | + [ ("var", Jenc.int x.var) | |
| 6435 | + ] | |
| 6436 | + | |
| 6437 | +virtual : Jdec.Decoder Virtual | |
| 6438 | +virtual = | |
| 6439 | + Jdec.succeed Virtual | |
| 6440 | + |> Jpipe.required "virtual" Jdec.int | |
| 6441 | + | |
| 6442 | +encodeVirtual : Virtual -> Jenc.Value | |
| 6443 | +encodeVirtual x = | |
| 6444 | + Jenc.object | |
| 6445 | + [ ("virtual", Jenc.int x.virtual) | |
| 6446 | + ] | |
| 6447 | + | |
| 6372 | 6448 | void : Jdec.Decoder Void |
| 6373 | 6449 | void = |
| 6374 | 6450 | Jdec.succeed Void |
Mflowdefault / TopLevel.js+248 −212
| @@ -344,71 +344,71 @@ export type DateClass = { | ||
| 344 | 344 | }; |
| 345 | 345 | |
| 346 | 346 | export type Obj2 = { |
| 347 | - DateFormatter: DateFormatter; | |
| 348 | - DateOnly: DateOnly; | |
| 349 | - DateOnlyConverter: DateOnlyConverter; | |
| 350 | - DateTime: DateTime; | |
| 351 | - DateTimeStyles: DateTimeStyles; | |
| 352 | - Decoder: Decoder; | |
| 353 | - DecodingError: DecodingError; | |
| 354 | - Encoder: Encoder; | |
| 355 | - EnumValues: EnumValues; | |
| 356 | - Equatable: Equatable; | |
| 357 | - False: False; | |
| 358 | - FormatException: FormatException; | |
| 359 | - date_parse_handling: DateParseHandling; | |
| 360 | - debugger: Debugger; | |
| 361 | - decimal: Decimal; | |
| 362 | - declare: Declare; | |
| 363 | - decltype: Decltype; | |
| 364 | - decode_string: DecodeString; | |
| 365 | - def: Def; | |
| 366 | - default: Default; | |
| 367 | - defer: Defer; | |
| 368 | - deinit: Deinit; | |
| 369 | - del: Del; | |
| 370 | - delegate: Delegate; | |
| 371 | - delete: Delete; | |
| 372 | - dict: Dict; | |
| 373 | - dictionary: Dictionary; | |
| 374 | - didSet: DidSet; | |
| 375 | - do: Do; | |
| 376 | - double: Double; | |
| 377 | - dummy: number; | |
| 378 | - dynamic: Dynamic; | |
| 379 | - dynamic_cast: DynamicCast; | |
| 380 | - elif: Elif; | |
| 381 | - else: Else; | |
| 382 | - encode_quick_type: EncodeQuickType; | |
| 383 | - enum: Enum; | |
| 384 | - equalityContract: EqualityContract; | |
| 385 | - event: Event; | |
| 386 | - except: Except; | |
| 387 | - exception: Exception; | |
| 388 | - explicit: Explicit; | |
| 389 | - export: Export; | |
| 390 | - exposing: Exposing; | |
| 391 | - extends: Extends; | |
| 392 | - extension: Extension; | |
| 393 | - extern: Extern; | |
| 394 | - fallthrough: Fallthrough; | |
| 395 | - false: FalseClass; | |
| 396 | - fileprivate: Fileprivate; | |
| 397 | - final: Final; | |
| 398 | - finally: Finally; | |
| 399 | - fixed: Fixed; | |
| 400 | - float: Float; | |
| 401 | - for: For; | |
| 402 | - foreach: Foreach; | |
| 403 | - friend: Friend; | |
| 404 | - from: From; | |
| 405 | - from_json: FromJSON; | |
| 406 | - func: Func; | |
| 407 | - function: Function; | |
| 408 | - get: Get; | |
| 409 | - global: Global; | |
| 410 | - go: Go; | |
| 411 | - goto: Goto; | |
| 347 | + DateFormatter: DateFormatter; | |
| 348 | + DateOnly: DateOnly; | |
| 349 | + DateOnlyConverter: DateOnlyConverter; | |
| 350 | + DateTime: DateTime; | |
| 351 | + DateTimeStyles: DateTimeStyles; | |
| 352 | + Decoder: Decoder; | |
| 353 | + DecodingError: DecodingError; | |
| 354 | + DeserializationFeature: DeserializationFeature; | |
| 355 | + Encoder: Encoder; | |
| 356 | + EnumValues: EnumValues; | |
| 357 | + Equatable: Equatable; | |
| 358 | + False: False; | |
| 359 | + FormatException: FormatException; | |
| 360 | + date_parse_handling: DateParseHandling; | |
| 361 | + debugger: Debugger; | |
| 362 | + decimal: Decimal; | |
| 363 | + declare: Declare; | |
| 364 | + decltype: Decltype; | |
| 365 | + decode_string: DecodeString; | |
| 366 | + def: Def; | |
| 367 | + default: Default; | |
| 368 | + defer: Defer; | |
| 369 | + deinit: Deinit; | |
| 370 | + del: Del; | |
| 371 | + delegate: Delegate; | |
| 372 | + delete: Delete; | |
| 373 | + dict: Dict; | |
| 374 | + dictionary: Dictionary; | |
| 375 | + didSet: DidSet; | |
| 376 | + do: Do; | |
| 377 | + double: Double; | |
| 378 | + dummy: number; | |
| 379 | + dynamic: Dynamic; | |
| 380 | + dynamic_cast: DynamicCast; | |
| 381 | + elif: Elif; | |
| 382 | + else: Else; | |
| 383 | + encode_quick_type: EncodeQuickType; | |
| 384 | + enum: Enum; | |
| 385 | + equalityContract: EqualityContract; | |
| 386 | + event: Event; | |
| 387 | + except: Except; | |
| 388 | + exception: Exception; | |
| 389 | + explicit: Explicit; | |
| 390 | + export: Export; | |
| 391 | + exposing: Exposing; | |
| 392 | + extends: Extends; | |
| 393 | + extension: Extension; | |
| 394 | + extern: Extern; | |
| 395 | + fallthrough: Fallthrough; | |
| 396 | + false: FalseClass; | |
| 397 | + fileprivate: Fileprivate; | |
| 398 | + final: Final; | |
| 399 | + finally: Finally; | |
| 400 | + fixed: Fixed; | |
| 401 | + float: Float; | |
| 402 | + for: For; | |
| 403 | + foreach: Foreach; | |
| 404 | + friend: Friend; | |
| 405 | + from: From; | |
| 406 | + from_json: FromJSON; | |
| 407 | + func: Func; | |
| 408 | + function: Function; | |
| 409 | + get: Get; | |
| 410 | + global: Global; | |
| 411 | + go: Go; | |
| 412 | 412 | }; |
| 413 | 413 | |
| 414 | 414 | export type DateFormatter = { |
| @@ -439,6 +439,10 @@ export type DecodingError = { | ||
| 439 | 439 | DecodingError: number; |
| 440 | 440 | }; |
| 441 | 441 | |
| 442 | +export type DeserializationFeature = { | |
| 443 | + DeserializationFeature: number; | |
| 444 | +}; | |
| 445 | + | |
| 442 | 446 | export type Encoder = { |
| 443 | 447 | Encoder: number; |
| 444 | 448 | }; |
| @@ -667,10 +671,6 @@ export type Go = { | ||
| 667 | 671 | go: number; |
| 668 | 672 | }; |
| 669 | 673 | |
| 670 | -export type Goto = { | |
| 671 | - goto: number; | |
| 672 | -}; | |
| 673 | - | |
| 674 | 674 | export type Obj3 = { |
| 675 | 675 | Hashable: Hashable; |
| 676 | 676 | Hasher: Hasher; |
| @@ -691,6 +691,7 @@ export type Obj3 = { | ||
| 691 | 691 | MapEntry: MapEntry; |
| 692 | 692 | NO: No; |
| 693 | 693 | dummy: number; |
| 694 | + goto: Goto; | |
| 694 | 695 | guard: Guard; |
| 695 | 696 | hasOwnProperty: HasOwnProperty; |
| 696 | 697 | hashCode: HashCode; |
| @@ -736,7 +737,6 @@ export type Obj3 = { | ||
| 736 | 737 | new: New; |
| 737 | 738 | newtonsoft: Newtonsoft; |
| 738 | 739 | nil: Nil; |
| 739 | - noexcept: Noexcept; | |
| 740 | 740 | }; |
| 741 | 741 | |
| 742 | 742 | export type Hashable = { |
| @@ -811,6 +811,10 @@ export type No = { | ||
| 811 | 811 | NO: number; |
| 812 | 812 | }; |
| 813 | 813 | |
| 814 | +export type Goto = { | |
| 815 | + goto: number; | |
| 816 | +}; | |
| 817 | + | |
| 814 | 818 | export type Guard = { |
| 815 | 819 | guard: number; |
| 816 | 820 | }; |
| @@ -991,10 +995,6 @@ export type Nil = { | ||
| 991 | 995 | nil: number; |
| 992 | 996 | }; |
| 993 | 997 | |
| 994 | -export type Noexcept = { | |
| 995 | - noexcept: number; | |
| 996 | -}; | |
| 997 | - | |
| 998 | 998 | export type Obj4 = { |
| 999 | 999 | NSError: NSError; |
| 1000 | 1000 | NSObject: NSObject; |
| @@ -1002,11 +1002,13 @@ export type Obj4 = { | ||
| 1002 | 1002 | NULL: Null; |
| 1003 | 1003 | None: None; |
| 1004 | 1004 | ObjectMapper: ObjectMapper; |
| 1005 | + ObjectReader: ObjectReader; | |
| 1006 | + ObjectWriter: ObjectWriter; | |
| 1005 | 1007 | Protocol: Protocol; |
| 1006 | 1008 | RegExp: RegExpClass; |
| 1007 | - SEL: Sel; | |
| 1008 | 1009 | dummy: number; |
| 1009 | 1010 | noSuchMethod: NoSuchMethod; |
| 1011 | + noexcept: Noexcept; | |
| 1010 | 1012 | nonatomic: Nonatomic; |
| 1011 | 1013 | none: NoneClass; |
| 1012 | 1014 | nonlocal: Nonlocal; |
| @@ -1059,8 +1061,6 @@ export type Obj4 = { | ||
| 1059 | 1061 | runtimeType: RuntimeType; |
| 1060 | 1062 | s: S; |
| 1061 | 1063 | sbyte: Sbyte; |
| 1062 | - sealed: Sealed; | |
| 1063 | - select: Select; | |
| 1064 | 1064 | }; |
| 1065 | 1065 | |
| 1066 | 1066 | export type NSError = { |
| @@ -1087,6 +1087,14 @@ export type ObjectMapper = { | ||
| 1087 | 1087 | ObjectMapper: number; |
| 1088 | 1088 | }; |
| 1089 | 1089 | |
| 1090 | +export type ObjectReader = { | |
| 1091 | + ObjectReader: number; | |
| 1092 | +}; | |
| 1093 | + | |
| 1094 | +export type ObjectWriter = { | |
| 1095 | + ObjectWriter: number; | |
| 1096 | +}; | |
| 1097 | + | |
| 1090 | 1098 | export type Protocol = { |
| 1091 | 1099 | Protocol: number; |
| 1092 | 1100 | }; |
| @@ -1095,14 +1103,14 @@ export type RegExpClass = { | ||
| 1095 | 1103 | RegExp: string; |
| 1096 | 1104 | }; |
| 1097 | 1105 | |
| 1098 | -export type Sel = { | |
| 1099 | - SEL: number; | |
| 1100 | -}; | |
| 1101 | - | |
| 1102 | 1106 | export type NoSuchMethod = { |
| 1103 | 1107 | noSuchMethod: number; |
| 1104 | 1108 | }; |
| 1105 | 1109 | |
| 1110 | +export type Noexcept = { | |
| 1111 | + noexcept: number; | |
| 1112 | +}; | |
| 1113 | + | |
| 1106 | 1114 | export type Nonatomic = { |
| 1107 | 1115 | nonatomic: number; |
| 1108 | 1116 | }; |
| @@ -1311,80 +1319,76 @@ export type Sbyte = { | ||
| 1311 | 1319 | sbyte: number; |
| 1312 | 1320 | }; |
| 1313 | 1321 | |
| 1314 | -export type Sealed = { | |
| 1315 | - sealed: number; | |
| 1316 | -}; | |
| 1317 | - | |
| 1318 | -export type Select = { | |
| 1319 | - select: number; | |
| 1322 | +export type Obj5 = { | |
| 1323 | + SEL: Sel; | |
| 1324 | + Self: Self; | |
| 1325 | + Sendable: Sendable; | |
| 1326 | + SerializationFeature: SerializationFeature; | |
| 1327 | + SerializerProvider: SerializerProvider; | |
| 1328 | + SimpleModule: SimpleModule; | |
| 1329 | + Standards: Standards; | |
| 1330 | + StdDeserializer: StdDeserializer; | |
| 1331 | + StdSerializer: StdSerializer; | |
| 1332 | + TimeOnly: TimeOnly; | |
| 1333 | + TimeOnlyConverter: TimeOnlyConverter; | |
| 1334 | + TimeZone: TimeZone; | |
| 1335 | + True: True; | |
| 1336 | + Type: Type; | |
| 1337 | + Utf8JsonReader: Utf8JSONReader; | |
| 1338 | + dummy: number; | |
| 1339 | + sealed: Sealed; | |
| 1340 | + select: Select; | |
| 1341 | + self: SelfClass; | |
| 1342 | + serialize: Serialize; | |
| 1343 | + set: Set; | |
| 1344 | + short: Short; | |
| 1345 | + signed: Signed; | |
| 1346 | + sizeof: Sizeof; | |
| 1347 | + stackalloc: Stackalloc; | |
| 1348 | + static: Static; | |
| 1349 | + static_assert: StaticAssert; | |
| 1350 | + static_cast: StaticCast; | |
| 1351 | + strictfp: Strictfp; | |
| 1352 | + string: StringClass; | |
| 1353 | + struct: Struct; | |
| 1354 | + subscript: Subscript; | |
| 1355 | + super: Super; | |
| 1356 | + switch: Switch; | |
| 1357 | + symbol: Symbol; | |
| 1358 | + synchronized: Synchronized; | |
| 1359 | + system: System; | |
| 1360 | + template: Template; | |
| 1361 | + then: Then; | |
| 1362 | + this: This; | |
| 1363 | + thread_local: ThreadLocal; | |
| 1364 | + throw: Throw; | |
| 1365 | + throws: Throws; | |
| 1366 | + toString: ToString; | |
| 1367 | + to_json: ToJSON; | |
| 1368 | + top_level: TopLevelClass; | |
| 1369 | + transient: Transient; | |
| 1370 | + true: TrueClass; | |
| 1371 | + try: Try; | |
| 1372 | + type: TypeClass; | |
| 1373 | + typealias: Typealias; | |
| 1374 | + typedef: Typedef; | |
| 1375 | + typeid: Typeid; | |
| 1376 | + typename: Typename; | |
| 1377 | + typeof: Typeof; | |
| 1378 | + uint: Uint; | |
| 1379 | + ulong: Ulong; | |
| 1380 | + unchecked: Unchecked; | |
| 1381 | + undefined: Undefined; | |
| 1382 | + union: Union; | |
| 1383 | + unowned: Unowned; | |
| 1384 | + unsafe: Unsafe; | |
| 1385 | + unsigned: Unsigned; | |
| 1386 | + ushort: Ushort; | |
| 1387 | + using: Using; | |
| 1320 | 1388 | }; |
| 1321 | 1389 | |
| 1322 | -export type Obj5 = { | |
| 1323 | - Self: Self; | |
| 1324 | - Sendable: Sendable; | |
| 1325 | - SerializerProvider: SerializerProvider; | |
| 1326 | - SimpleModule: SimpleModule; | |
| 1327 | - Standards: Standards; | |
| 1328 | - StdDeserializer: StdDeserializer; | |
| 1329 | - StdSerializer: StdSerializer; | |
| 1330 | - TimeOnly: TimeOnly; | |
| 1331 | - TimeOnlyConverter: TimeOnlyConverter; | |
| 1332 | - TimeZone: TimeZone; | |
| 1333 | - True: True; | |
| 1334 | - Type: Type; | |
| 1335 | - UUID: UUID; | |
| 1336 | - Utf8JsonReader: Utf8JSONReader; | |
| 1337 | - Utf8JsonWriter: Utf8JSONWriter; | |
| 1338 | - dummy: number; | |
| 1339 | - self: SelfClass; | |
| 1340 | - serialize: Serialize; | |
| 1341 | - set: Set; | |
| 1342 | - short: Short; | |
| 1343 | - signed: Signed; | |
| 1344 | - sizeof: Sizeof; | |
| 1345 | - stackalloc: Stackalloc; | |
| 1346 | - static: Static; | |
| 1347 | - static_assert: StaticAssert; | |
| 1348 | - static_cast: StaticCast; | |
| 1349 | - strictfp: Strictfp; | |
| 1350 | - string: StringClass; | |
| 1351 | - struct: Struct; | |
| 1352 | - subscript: Subscript; | |
| 1353 | - super: Super; | |
| 1354 | - switch: Switch; | |
| 1355 | - symbol: Symbol; | |
| 1356 | - synchronized: Synchronized; | |
| 1357 | - system: System; | |
| 1358 | - template: Template; | |
| 1359 | - then: Then; | |
| 1360 | - this: This; | |
| 1361 | - thread_local: ThreadLocal; | |
| 1362 | - throw: Throw; | |
| 1363 | - throws: Throws; | |
| 1364 | - toString: ToString; | |
| 1365 | - to_json: ToJSON; | |
| 1366 | - top_level: TopLevelClass; | |
| 1367 | - transient: Transient; | |
| 1368 | - true: TrueClass; | |
| 1369 | - try: Try; | |
| 1370 | - type: TypeClass; | |
| 1371 | - typealias: Typealias; | |
| 1372 | - typedef: Typedef; | |
| 1373 | - typeid: Typeid; | |
| 1374 | - typename: Typename; | |
| 1375 | - typeof: Typeof; | |
| 1376 | - uint: Uint; | |
| 1377 | - ulong: Ulong; | |
| 1378 | - unchecked: Unchecked; | |
| 1379 | - undefined: Undefined; | |
| 1380 | - union: Union; | |
| 1381 | - unowned: Unowned; | |
| 1382 | - unsafe: Unsafe; | |
| 1383 | - unsigned: Unsigned; | |
| 1384 | - ushort: Ushort; | |
| 1385 | - using: Using; | |
| 1386 | - var: Var; | |
| 1387 | - virtual: Virtual; | |
| 1390 | +export type Sel = { | |
| 1391 | + SEL: number; | |
| 1388 | 1392 | }; |
| 1389 | 1393 | |
| 1390 | 1394 | export type Self = { |
| @@ -1395,6 +1399,10 @@ export type Sendable = { | ||
| 1395 | 1399 | Sendable: number; |
| 1396 | 1400 | }; |
| 1397 | 1401 | |
| 1402 | +export type SerializationFeature = { | |
| 1403 | + SerializationFeature: number; | |
| 1404 | +}; | |
| 1405 | + | |
| 1398 | 1406 | export type SerializerProvider = { |
| 1399 | 1407 | SerializerProvider: number; |
| 1400 | 1408 | }; |
| @@ -1435,16 +1443,16 @@ export type Type = { | ||
| 1435 | 1443 | Type: number; |
| 1436 | 1444 | }; |
| 1437 | 1445 | |
| 1438 | -export type UUID = { | |
| 1439 | - UUID: number; | |
| 1440 | -}; | |
| 1441 | - | |
| 1442 | 1446 | export type Utf8JSONReader = { |
| 1443 | 1447 | Utf8JsonReader: number; |
| 1444 | 1448 | }; |
| 1445 | 1449 | |
| 1446 | -export type Utf8JSONWriter = { | |
| 1447 | - Utf8JsonWriter: number; | |
| 1450 | +export type Sealed = { | |
| 1451 | + sealed: number; | |
| 1452 | +}; | |
| 1453 | + | |
| 1454 | +export type Select = { | |
| 1455 | + select: number; | |
| 1448 | 1456 | }; |
| 1449 | 1457 | |
| 1450 | 1458 | export type SelfClass = { |
| @@ -1635,34 +1643,46 @@ export type Using = { | ||
| 1635 | 1643 | using: number; |
| 1636 | 1644 | }; |
| 1637 | 1645 | |
| 1638 | -export type Var = { | |
| 1639 | - var: number; | |
| 1646 | +export type Obj6 = { | |
| 1647 | + UUID: UUID; | |
| 1648 | + Utf8JsonWriter: Utf8JSONWriter; | |
| 1649 | + YES: Yes; | |
| 1650 | + dummy: number; | |
| 1651 | + var: Var; | |
| 1652 | + virtual: Virtual; | |
| 1653 | + void: Void; | |
| 1654 | + volatile: Volatile; | |
| 1655 | + wchar_t: WcharT; | |
| 1656 | + weak: Weak; | |
| 1657 | + where: Where; | |
| 1658 | + while: While; | |
| 1659 | + willSet: WillSet; | |
| 1660 | + with: With; | |
| 1661 | + xor: Xor; | |
| 1662 | + xor_eq: XorEq; | |
| 1663 | + yield: Yield; | |
| 1640 | 1664 | }; |
| 1641 | 1665 | |
| 1642 | -export type Virtual = { | |
| 1643 | - virtual: number; | |
| 1666 | +export type UUID = { | |
| 1667 | + UUID: number; | |
| 1644 | 1668 | }; |
| 1645 | 1669 | |
| 1646 | -export type Obj6 = { | |
| 1647 | - YES: Yes; | |
| 1648 | - dummy: number; | |
| 1649 | - void: Void; | |
| 1650 | - volatile: Volatile; | |
| 1651 | - wchar_t: WcharT; | |
| 1652 | - weak: Weak; | |
| 1653 | - where: Where; | |
| 1654 | - while: While; | |
| 1655 | - willSet: WillSet; | |
| 1656 | - with: With; | |
| 1657 | - xor: Xor; | |
| 1658 | - xor_eq: XorEq; | |
| 1659 | - yield: Yield; | |
| 1670 | +export type Utf8JSONWriter = { | |
| 1671 | + Utf8JsonWriter: number; | |
| 1660 | 1672 | }; |
| 1661 | 1673 | |
| 1662 | 1674 | export type Yes = { |
| 1663 | 1675 | YES: number; |
| 1664 | 1676 | }; |
| 1665 | 1677 | |
| 1678 | +export type Var = { | |
| 1679 | + var: number; | |
| 1680 | +}; | |
| 1681 | + | |
| 1682 | +export type Virtual = { | |
| 1683 | + virtual: number; | |
| 1684 | +}; | |
| 1685 | + | |
| 1666 | 1686 | export type Void = { |
| 1667 | 1687 | void: number; |
| 1668 | 1688 | }; |
| @@ -2169,6 +2189,7 @@ const typeMap: any = { | ||
| 2169 | 2189 | { json: "DateTimeStyles", js: "DateTimeStyles", typ: r("DateTimeStyles") }, |
| 2170 | 2190 | { json: "Decoder", js: "Decoder", typ: r("Decoder") }, |
| 2171 | 2191 | { json: "DecodingError", js: "DecodingError", typ: r("DecodingError") }, |
| 2192 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: r("DeserializationFeature") }, | |
| 2172 | 2193 | { json: "Encoder", js: "Encoder", typ: r("Encoder") }, |
| 2173 | 2194 | { json: "EnumValues", js: "EnumValues", typ: r("EnumValues") }, |
| 2174 | 2195 | { json: "Equatable", js: "Equatable", typ: r("Equatable") }, |
| @@ -2226,7 +2247,6 @@ const typeMap: any = { | ||
| 2226 | 2247 | { json: "get", js: "get", typ: r("Get") }, |
| 2227 | 2248 | { json: "global", js: "global", typ: r("Global") }, |
| 2228 | 2249 | { json: "go", js: "go", typ: r("Go") }, |
| 2229 | - { json: "goto", js: "goto", typ: r("Goto") }, | |
| 2230 | 2250 | ], false), |
| 2231 | 2251 | "DateFormatter": o([ |
| 2232 | 2252 | { json: "DateFormatter", js: "DateFormatter", typ: i(0) }, |
| @@ -2249,6 +2269,9 @@ const typeMap: any = { | ||
| 2249 | 2269 | "DecodingError": o([ |
| 2250 | 2270 | { json: "DecodingError", js: "DecodingError", typ: i(0) }, |
| 2251 | 2271 | ], false), |
| 2272 | + "DeserializationFeature": o([ | |
| 2273 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: i(0) }, | |
| 2274 | + ], false), | |
| 2252 | 2275 | "Encoder": o([ |
| 2253 | 2276 | { json: "Encoder", js: "Encoder", typ: i(0) }, |
| 2254 | 2277 | ], false), |
| @@ -2417,9 +2440,6 @@ const typeMap: any = { | ||
| 2417 | 2440 | "Go": o([ |
| 2418 | 2441 | { json: "go", js: "go", typ: i(0) }, |
| 2419 | 2442 | ], false), |
| 2420 | - "Goto": o([ | |
| 2421 | - { json: "goto", js: "goto", typ: i(0) }, | |
| 2422 | - ], false), | |
| 2423 | 2443 | "Obj3": o([ |
| 2424 | 2444 | { json: "Hashable", js: "Hashable", typ: r("Hashable") }, |
| 2425 | 2445 | { json: "Hasher", js: "Hasher", typ: r("Hasher") }, |
| @@ -2440,6 +2460,7 @@ const typeMap: any = { | ||
| 2440 | 2460 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2441 | 2461 | { json: "NO", js: "NO", typ: r("No") }, |
| 2442 | 2462 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2463 | + { json: "goto", js: "goto", typ: r("Goto") }, | |
| 2443 | 2464 | { json: "guard", js: "guard", typ: r("Guard") }, |
| 2444 | 2465 | { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") }, |
| 2445 | 2466 | { json: "hashCode", js: "hashCode", typ: r("HashCode") }, |
| @@ -2485,7 +2506,6 @@ const typeMap: any = { | ||
| 2485 | 2506 | { json: "new", js: "new", typ: r("New") }, |
| 2486 | 2507 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2487 | 2508 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 2488 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2489 | 2509 | ], false), |
| 2490 | 2510 | "Hashable": o([ |
| 2491 | 2511 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2541,6 +2561,9 @@ const typeMap: any = { | ||
| 2541 | 2561 | "No": o([ |
| 2542 | 2562 | { json: "NO", js: "NO", typ: i(0) }, |
| 2543 | 2563 | ], false), |
| 2564 | + "Goto": o([ | |
| 2565 | + { json: "goto", js: "goto", typ: i(0) }, | |
| 2566 | + ], false), | |
| 2544 | 2567 | "Guard": o([ |
| 2545 | 2568 | { json: "guard", js: "guard", typ: i(0) }, |
| 2546 | 2569 | ], false), |
| @@ -2676,9 +2699,6 @@ const typeMap: any = { | ||
| 2676 | 2699 | "Nil": o([ |
| 2677 | 2700 | { json: "nil", js: "nil", typ: i(0) }, |
| 2678 | 2701 | ], false), |
| 2679 | - "Noexcept": o([ | |
| 2680 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2681 | - ], false), | |
| 2682 | 2702 | "Obj4": o([ |
| 2683 | 2703 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2684 | 2704 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -2686,11 +2706,13 @@ const typeMap: any = { | ||
| 2686 | 2706 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2687 | 2707 | { json: "None", js: "None", typ: r("None") }, |
| 2688 | 2708 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2709 | + { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") }, | |
| 2710 | + { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") }, | |
| 2689 | 2711 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2690 | 2712 | { json: "RegExp", js: "RegExp", typ: r("RegExpClass") }, |
| 2691 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2692 | 2713 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2693 | 2714 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2715 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2694 | 2716 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 2695 | 2717 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 2696 | 2718 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -2743,8 +2765,6 @@ const typeMap: any = { | ||
| 2743 | 2765 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2744 | 2766 | { json: "s", js: "s", typ: r("S") }, |
| 2745 | 2767 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2746 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2747 | - { json: "select", js: "select", typ: r("Select") }, | |
| 2748 | 2768 | ], false), |
| 2749 | 2769 | "NSError": o([ |
| 2750 | 2770 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2764,18 +2784,24 @@ const typeMap: any = { | ||
| 2764 | 2784 | "ObjectMapper": o([ |
| 2765 | 2785 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2766 | 2786 | ], false), |
| 2787 | + "ObjectReader": o([ | |
| 2788 | + { json: "ObjectReader", js: "ObjectReader", typ: i(0) }, | |
| 2789 | + ], false), | |
| 2790 | + "ObjectWriter": o([ | |
| 2791 | + { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) }, | |
| 2792 | + ], false), | |
| 2767 | 2793 | "Protocol": o([ |
| 2768 | 2794 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2769 | 2795 | ], false), |
| 2770 | 2796 | "RegExpClass": o([ |
| 2771 | 2797 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2772 | 2798 | ], false), |
| 2773 | - "Sel": o([ | |
| 2774 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2775 | - ], false), | |
| 2776 | 2799 | "NoSuchMethod": o([ |
| 2777 | 2800 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 2778 | 2801 | ], false), |
| 2802 | + "Noexcept": o([ | |
| 2803 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2804 | + ], false), | |
| 2779 | 2805 | "Nonatomic": o([ |
| 2780 | 2806 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 2781 | 2807 | ], false), |
| @@ -2932,15 +2958,11 @@ const typeMap: any = { | ||
| 2932 | 2958 | "Sbyte": o([ |
| 2933 | 2959 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2934 | 2960 | ], false), |
| 2935 | - "Sealed": o([ | |
| 2936 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2937 | - ], false), | |
| 2938 | - "Select": o([ | |
| 2939 | - { json: "select", js: "select", typ: i(0) }, | |
| 2940 | - ], false), | |
| 2941 | 2961 | "Obj5": o([ |
| 2962 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2942 | 2963 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2943 | 2964 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2965 | + { json: "SerializationFeature", js: "SerializationFeature", typ: r("SerializationFeature") }, | |
| 2944 | 2966 | { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") }, |
| 2945 | 2967 | { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") }, |
| 2946 | 2968 | { json: "Standards", js: "Standards", typ: r("Standards") }, |
| @@ -2951,10 +2973,10 @@ const typeMap: any = { | ||
| 2951 | 2973 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 2952 | 2974 | { json: "True", js: "True", typ: r("True") }, |
| 2953 | 2975 | { json: "Type", js: "Type", typ: r("Type") }, |
| 2954 | - { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 2955 | 2976 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 2956 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 2957 | 2977 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2978 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2979 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2958 | 2980 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 2959 | 2981 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 2960 | 2982 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -3002,8 +3024,9 @@ const typeMap: any = { | ||
| 3002 | 3024 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 3003 | 3025 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 3004 | 3026 | { json: "using", js: "using", typ: r("Using") }, |
| 3005 | - { json: "var", js: "var", typ: r("Var") }, | |
| 3006 | - { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 3027 | + ], false), | |
| 3028 | + "Sel": o([ | |
| 3029 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3007 | 3030 | ], false), |
| 3008 | 3031 | "Self": o([ |
| 3009 | 3032 | { json: "Self", js: "Self", typ: i(0) }, |
| @@ -3011,6 +3034,9 @@ const typeMap: any = { | ||
| 3011 | 3034 | "Sendable": o([ |
| 3012 | 3035 | { json: "Sendable", js: "Sendable", typ: i(0) }, |
| 3013 | 3036 | ], false), |
| 3037 | + "SerializationFeature": o([ | |
| 3038 | + { json: "SerializationFeature", js: "SerializationFeature", typ: i(0) }, | |
| 3039 | + ], false), | |
| 3014 | 3040 | "SerializerProvider": o([ |
| 3015 | 3041 | { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) }, |
| 3016 | 3042 | ], false), |
| @@ -3041,14 +3067,14 @@ const typeMap: any = { | ||
| 3041 | 3067 | "Type": o([ |
| 3042 | 3068 | { json: "Type", js: "Type", typ: i(0) }, |
| 3043 | 3069 | ], false), |
| 3044 | - "UUID": o([ | |
| 3045 | - { json: "UUID", js: "UUID", typ: i(0) }, | |
| 3046 | - ], false), | |
| 3047 | 3070 | "Utf8JSONReader": o([ |
| 3048 | 3071 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 3049 | 3072 | ], false), |
| 3050 | - "Utf8JSONWriter": o([ | |
| 3051 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 3073 | + "Sealed": o([ | |
| 3074 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3075 | + ], false), | |
| 3076 | + "Select": o([ | |
| 3077 | + { json: "select", js: "select", typ: i(0) }, | |
| 3052 | 3078 | ], false), |
| 3053 | 3079 | "SelfClass": o([ |
| 3054 | 3080 | { json: "self", js: "self", typ: i(0) }, |
| @@ -3191,15 +3217,13 @@ const typeMap: any = { | ||
| 3191 | 3217 | "Using": o([ |
| 3192 | 3218 | { json: "using", js: "using", typ: i(0) }, |
| 3193 | 3219 | ], false), |
| 3194 | - "Var": o([ | |
| 3195 | - { json: "var", js: "var", typ: i(0) }, | |
| 3196 | - ], false), | |
| 3197 | - "Virtual": o([ | |
| 3198 | - { json: "virtual", js: "virtual", typ: i(0) }, | |
| 3199 | - ], false), | |
| 3200 | 3220 | "Obj6": o([ |
| 3221 | + { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 3222 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 3201 | 3223 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3202 | 3224 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3225 | + { json: "var", js: "var", typ: r("Var") }, | |
| 3226 | + { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 3203 | 3227 | { json: "void", js: "void", typ: r("Void") }, |
| 3204 | 3228 | { json: "volatile", js: "volatile", typ: r("Volatile") }, |
| 3205 | 3229 | { json: "wchar_t", js: "wchar_t", typ: r("WcharT") }, |
| @@ -3212,9 +3236,21 @@ const typeMap: any = { | ||
| 3212 | 3236 | { json: "xor_eq", js: "xor_eq", typ: r("XorEq") }, |
| 3213 | 3237 | { json: "yield", js: "yield", typ: r("Yield") }, |
| 3214 | 3238 | ], false), |
| 3239 | + "UUID": o([ | |
| 3240 | + { json: "UUID", js: "UUID", typ: i(0) }, | |
| 3241 | + ], false), | |
| 3242 | + "Utf8JSONWriter": o([ | |
| 3243 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 3244 | + ], false), | |
| 3215 | 3245 | "Yes": o([ |
| 3216 | 3246 | { json: "YES", js: "YES", typ: i(0) }, |
| 3217 | 3247 | ], false), |
| 3248 | + "Var": o([ | |
| 3249 | + { json: "var", js: "var", typ: i(0) }, | |
| 3250 | + ], false), | |
| 3251 | + "Virtual": o([ | |
| 3252 | + { json: "virtual", js: "virtual", typ: i(0) }, | |
| 3253 | + ], false), | |
| 3218 | 3254 | "Void": o([ |
| 3219 | 3255 | { json: "void", js: "void", typ: i(0) }, |
| 3220 | 3256 | ], false), |
Mgolangdefault / quicktype.go+194 −174
| @@ -355,71 +355,71 @@ type Obj1Bool struct { | ||
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | type Obj2 struct { |
| 358 | - DateFormatter DateFormatter `json:"DateFormatter"` | |
| 359 | - DateOnly DateOnly `json:"DateOnly"` | |
| 360 | - DateOnlyConverter DateOnlyConverter `json:"DateOnlyConverter"` | |
| 361 | - DateParseHandling DateParseHandling `json:"date_parse_handling"` | |
| 362 | - DateTime DateTime `json:"DateTime"` | |
| 363 | - DateTimeStyles DateTimeStyles `json:"DateTimeStyles"` | |
| 364 | - Debugger Debugger `json:"debugger"` | |
| 365 | - Decimal Decimal `json:"decimal"` | |
| 366 | - Declare Declare `json:"declare"` | |
| 367 | - Decltype Decltype `json:"decltype"` | |
| 368 | - DecodeString DecodeString `json:"decode_string"` | |
| 369 | - Decoder Decoder `json:"Decoder"` | |
| 370 | - DecodingError DecodingError `json:"DecodingError"` | |
| 371 | - Def Def `json:"def"` | |
| 372 | - Default Default `json:"default"` | |
| 373 | - Defer Defer `json:"defer"` | |
| 374 | - Deinit Deinit `json:"deinit"` | |
| 375 | - Del Del `json:"del"` | |
| 376 | - Delegate Delegate `json:"delegate"` | |
| 377 | - Delete Delete `json:"delete"` | |
| 378 | - Dict Dict `json:"dict"` | |
| 379 | - Dictionary Dictionary `json:"dictionary"` | |
| 380 | - DidSet DidSet `json:"didSet"` | |
| 381 | - Do Do `json:"do"` | |
| 382 | - Double Double `json:"double"` | |
| 383 | - Dummy int64 `json:"dummy"` | |
| 384 | - Dynamic Dynamic `json:"dynamic"` | |
| 385 | - DynamicCast DynamicCast `json:"dynamic_cast"` | |
| 386 | - Elif Elif `json:"elif"` | |
| 387 | - Else Else `json:"else"` | |
| 388 | - EncodeQuickType EncodeQuickType `json:"encode_quick_type"` | |
| 389 | - Encoder Encoder `json:"Encoder"` | |
| 390 | - Enum Enum `json:"enum"` | |
| 391 | - EnumValues EnumValues `json:"EnumValues"` | |
| 392 | - EqualityContract EqualityContract `json:"equalityContract"` | |
| 393 | - Equatable Equatable `json:"Equatable"` | |
| 394 | - Event Event `json:"event"` | |
| 395 | - Except Except `json:"except"` | |
| 396 | - Exception Exception `json:"exception"` | |
| 397 | - Explicit Explicit `json:"explicit"` | |
| 398 | - Export Export `json:"export"` | |
| 399 | - Exposing Exposing `json:"exposing"` | |
| 400 | - Extends Extends `json:"extends"` | |
| 401 | - Extension Extension `json:"extension"` | |
| 402 | - Extern Extern `json:"extern"` | |
| 403 | - Fallthrough Fallthrough `json:"fallthrough"` | |
| 404 | - False False `json:"False"` | |
| 405 | - Fileprivate Fileprivate `json:"fileprivate"` | |
| 406 | - Final Final `json:"final"` | |
| 407 | - Finally Finally `json:"finally"` | |
| 408 | - Fixed Fixed `json:"fixed"` | |
| 409 | - Float Float `json:"float"` | |
| 410 | - For For `json:"for"` | |
| 411 | - Foreach Foreach `json:"foreach"` | |
| 412 | - FormatException FormatException `json:"FormatException"` | |
| 413 | - Friend Friend `json:"friend"` | |
| 414 | - From From `json:"from"` | |
| 415 | - FromJSON FromJSON `json:"from_json"` | |
| 416 | - Func Func `json:"func"` | |
| 417 | - Function Function `json:"function"` | |
| 418 | - Get Get `json:"get"` | |
| 419 | - Global Global `json:"global"` | |
| 420 | - Go Go `json:"go"` | |
| 421 | - Goto Goto `json:"goto"` | |
| 422 | - Obj2False FalseClass `json:"false"` | |
| 358 | + DateFormatter DateFormatter `json:"DateFormatter"` | |
| 359 | + DateOnly DateOnly `json:"DateOnly"` | |
| 360 | + DateOnlyConverter DateOnlyConverter `json:"DateOnlyConverter"` | |
| 361 | + DateParseHandling DateParseHandling `json:"date_parse_handling"` | |
| 362 | + DateTime DateTime `json:"DateTime"` | |
| 363 | + DateTimeStyles DateTimeStyles `json:"DateTimeStyles"` | |
| 364 | + Debugger Debugger `json:"debugger"` | |
| 365 | + Decimal Decimal `json:"decimal"` | |
| 366 | + Declare Declare `json:"declare"` | |
| 367 | + Decltype Decltype `json:"decltype"` | |
| 368 | + DecodeString DecodeString `json:"decode_string"` | |
| 369 | + Decoder Decoder `json:"Decoder"` | |
| 370 | + DecodingError DecodingError `json:"DecodingError"` | |
| 371 | + Def Def `json:"def"` | |
| 372 | + Default Default `json:"default"` | |
| 373 | + Defer Defer `json:"defer"` | |
| 374 | + Deinit Deinit `json:"deinit"` | |
| 375 | + Del Del `json:"del"` | |
| 376 | + Delegate Delegate `json:"delegate"` | |
| 377 | + Delete Delete `json:"delete"` | |
| 378 | + DeserializationFeature DeserializationFeature `json:"DeserializationFeature"` | |
| 379 | + Dict Dict `json:"dict"` | |
| 380 | + Dictionary Dictionary `json:"dictionary"` | |
| 381 | + DidSet DidSet `json:"didSet"` | |
| 382 | + Do Do `json:"do"` | |
| 383 | + Double Double `json:"double"` | |
| 384 | + Dummy int64 `json:"dummy"` | |
| 385 | + Dynamic Dynamic `json:"dynamic"` | |
| 386 | + DynamicCast DynamicCast `json:"dynamic_cast"` | |
| 387 | + Elif Elif `json:"elif"` | |
| 388 | + Else Else `json:"else"` | |
| 389 | + EncodeQuickType EncodeQuickType `json:"encode_quick_type"` | |
| 390 | + Encoder Encoder `json:"Encoder"` | |
| 391 | + Enum Enum `json:"enum"` | |
| 392 | + EnumValues EnumValues `json:"EnumValues"` | |
| 393 | + EqualityContract EqualityContract `json:"equalityContract"` | |
| 394 | + Equatable Equatable `json:"Equatable"` | |
| 395 | + Event Event `json:"event"` | |
| 396 | + Except Except `json:"except"` | |
| 397 | + Exception Exception `json:"exception"` | |
| 398 | + Explicit Explicit `json:"explicit"` | |
| 399 | + Export Export `json:"export"` | |
| 400 | + Exposing Exposing `json:"exposing"` | |
| 401 | + Extends Extends `json:"extends"` | |
| 402 | + Extension Extension `json:"extension"` | |
| 403 | + Extern Extern `json:"extern"` | |
| 404 | + Fallthrough Fallthrough `json:"fallthrough"` | |
| 405 | + False False `json:"False"` | |
| 406 | + Fileprivate Fileprivate `json:"fileprivate"` | |
| 407 | + Final Final `json:"final"` | |
| 408 | + Finally Finally `json:"finally"` | |
| 409 | + Fixed Fixed `json:"fixed"` | |
| 410 | + Float Float `json:"float"` | |
| 411 | + For For `json:"for"` | |
| 412 | + Foreach Foreach `json:"foreach"` | |
| 413 | + FormatException FormatException `json:"FormatException"` | |
| 414 | + Friend Friend `json:"friend"` | |
| 415 | + From From `json:"from"` | |
| 416 | + FromJSON FromJSON `json:"from_json"` | |
| 417 | + Func Func `json:"func"` | |
| 418 | + Function Function `json:"function"` | |
| 419 | + Get Get `json:"get"` | |
| 420 | + Global Global `json:"global"` | |
| 421 | + Go Go `json:"go"` | |
| 422 | + Obj2False FalseClass `json:"false"` | |
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | type DateFormatter struct { |
| @@ -502,6 +502,10 @@ type Delete struct { | ||
| 502 | 502 | Delete int64 `json:"delete"` |
| 503 | 503 | } |
| 504 | 504 | |
| 505 | +type DeserializationFeature struct { | |
| 506 | + DeserializationFeature int64 `json:"DeserializationFeature"` | |
| 507 | +} | |
| 508 | + | |
| 505 | 509 | type Dict struct { |
| 506 | 510 | Dict int64 `json:"dict"` |
| 507 | 511 | } |
| @@ -670,16 +674,13 @@ type Go struct { | ||
| 670 | 674 | Go int64 `json:"go"` |
| 671 | 675 | } |
| 672 | 676 | |
| 673 | -type Goto struct { | |
| 674 | - Goto int64 `json:"goto"` | |
| 675 | -} | |
| 676 | - | |
| 677 | 677 | type FalseClass struct { |
| 678 | 678 | False int64 `json:"false"` |
| 679 | 679 | } |
| 680 | 680 | |
| 681 | 681 | type Obj3 struct { |
| 682 | 682 | Dummy int64 `json:"dummy"` |
| 683 | + Goto Goto `json:"goto"` | |
| 683 | 684 | Guard Guard `json:"guard"` |
| 684 | 685 | HasOwnProperty HasOwnProperty `json:"hasOwnProperty"` |
| 685 | 686 | HashCode HashCode `json:"hashCode"` |
| @@ -743,7 +744,10 @@ type Obj3 struct { | ||
| 743 | 744 | Newtonsoft Newtonsoft `json:"newtonsoft"` |
| 744 | 745 | Nil Nil `json:"nil"` |
| 745 | 746 | No No `json:"NO"` |
| 746 | - Noexcept Noexcept `json:"noexcept"` | |
| 747 | +} | |
| 748 | + | |
| 749 | +type Goto struct { | |
| 750 | + Goto int64 `json:"goto"` | |
| 747 | 751 | } |
| 748 | 752 | |
| 749 | 753 | type Guard struct { |
| @@ -998,16 +1002,13 @@ type No struct { | ||
| 998 | 1002 | No int64 `json:"NO"` |
| 999 | 1003 | } |
| 1000 | 1004 | |
| 1001 | -type Noexcept struct { | |
| 1002 | - Noexcept int64 `json:"noexcept"` | |
| 1003 | -} | |
| 1004 | - | |
| 1005 | 1005 | type Obj4 struct { |
| 1006 | 1006 | Dummy int64 `json:"dummy"` |
| 1007 | 1007 | NSError NSError `json:"NSError"` |
| 1008 | 1008 | NSObject NSObject `json:"NSObject"` |
| 1009 | 1009 | NSString NSString `json:"NSString"` |
| 1010 | 1010 | NoSuchMethod NoSuchMethod `json:"noSuchMethod"` |
| 1011 | + Noexcept Noexcept `json:"noexcept"` | |
| 1011 | 1012 | Nonatomic Nonatomic `json:"nonatomic"` |
| 1012 | 1013 | None None `json:"None"` |
| 1013 | 1014 | Nonlocal Nonlocal `json:"nonlocal"` |
| @@ -1022,6 +1023,8 @@ type Obj4 struct { | ||
| 1022 | 1023 | Obj4Protocol ProtocolClass `json:"protocol"` |
| 1023 | 1024 | Object Object `json:"object"` |
| 1024 | 1025 | ObjectMapper ObjectMapper `json:"ObjectMapper"` |
| 1026 | + ObjectReader ObjectReader `json:"ObjectReader"` | |
| 1027 | + ObjectWriter ObjectWriter `json:"ObjectWriter"` | |
| 1025 | 1028 | Of Of `json:"of"` |
| 1026 | 1029 | Oneway Oneway `json:"oneway"` |
| 1027 | 1030 | Open Open `json:"open"` |
| @@ -1065,9 +1068,6 @@ type Obj4 struct { | ||
| 1065 | 1068 | RuntimeType RuntimeType `json:"runtimeType"` |
| 1066 | 1069 | S S `json:"s"` |
| 1067 | 1070 | Sbyte Sbyte `json:"sbyte"` |
| 1068 | - Sealed Sealed `json:"sealed"` | |
| 1069 | - Sel Sel `json:"SEL"` | |
| 1070 | - Select Select `json:"select"` | |
| 1071 | 1071 | } |
| 1072 | 1072 | |
| 1073 | 1073 | type NSError struct { |
| @@ -1086,6 +1086,10 @@ type NoSuchMethod struct { | ||
| 1086 | 1086 | NoSuchMethod int64 `json:"noSuchMethod"` |
| 1087 | 1087 | } |
| 1088 | 1088 | |
| 1089 | +type Noexcept struct { | |
| 1090 | + Noexcept int64 `json:"noexcept"` | |
| 1091 | +} | |
| 1092 | + | |
| 1089 | 1093 | type Nonatomic struct { |
| 1090 | 1094 | Nonatomic int64 `json:"nonatomic"` |
| 1091 | 1095 | } |
| @@ -1142,6 +1146,14 @@ type ObjectMapper struct { | ||
| 1142 | 1146 | ObjectMapper int64 `json:"ObjectMapper"` |
| 1143 | 1147 | } |
| 1144 | 1148 | |
| 1149 | +type ObjectReader struct { | |
| 1150 | + ObjectReader int64 `json:"ObjectReader"` | |
| 1151 | +} | |
| 1152 | + | |
| 1153 | +type ObjectWriter struct { | |
| 1154 | + ObjectWriter int64 `json:"ObjectWriter"` | |
| 1155 | +} | |
| 1156 | + | |
| 1145 | 1157 | type Of struct { |
| 1146 | 1158 | Of int64 `json:"of"` |
| 1147 | 1159 | } |
| @@ -1314,84 +1326,72 @@ type Sbyte struct { | ||
| 1314 | 1326 | Sbyte int64 `json:"sbyte"` |
| 1315 | 1327 | } |
| 1316 | 1328 | |
| 1317 | -type Sealed struct { | |
| 1318 | - Sealed int64 `json:"sealed"` | |
| 1319 | -} | |
| 1320 | - | |
| 1321 | -type Sel struct { | |
| 1322 | - Sel int64 `json:"SEL"` | |
| 1323 | -} | |
| 1324 | - | |
| 1325 | -type Select struct { | |
| 1326 | - Select int64 `json:"select"` | |
| 1327 | -} | |
| 1328 | - | |
| 1329 | 1329 | type Obj5 struct { |
| 1330 | - Dummy int64 `json:"dummy"` | |
| 1331 | - Obj5Self SelfClass `json:"self"` | |
| 1332 | - Obj5True TrueClass `json:"true"` | |
| 1333 | - Obj5Type TypeClass `json:"type"` | |
| 1334 | - Self Self `json:"Self"` | |
| 1335 | - Sendable Sendable `json:"Sendable"` | |
| 1336 | - Serialize Serialize `json:"serialize"` | |
| 1337 | - SerializerProvider SerializerProvider `json:"SerializerProvider"` | |
| 1338 | - Set Set `json:"set"` | |
| 1339 | - Short Short `json:"short"` | |
| 1340 | - Signed Signed `json:"signed"` | |
| 1341 | - SimpleModule SimpleModule `json:"SimpleModule"` | |
| 1342 | - Sizeof Sizeof `json:"sizeof"` | |
| 1343 | - Stackalloc Stackalloc `json:"stackalloc"` | |
| 1344 | - Standards Standards `json:"Standards"` | |
| 1345 | - Static Static `json:"static"` | |
| 1346 | - StaticAssert StaticAssert `json:"static_assert"` | |
| 1347 | - StaticCast StaticCast `json:"static_cast"` | |
| 1348 | - StdDeserializer StdDeserializer `json:"StdDeserializer"` | |
| 1349 | - StdSerializer StdSerializer `json:"StdSerializer"` | |
| 1350 | - Strictfp Strictfp `json:"strictfp"` | |
| 1351 | - String String `json:"string"` | |
| 1352 | - Struct Struct `json:"struct"` | |
| 1353 | - Subscript Subscript `json:"subscript"` | |
| 1354 | - Super Super `json:"super"` | |
| 1355 | - Switch Switch `json:"switch"` | |
| 1356 | - Symbol Symbol `json:"symbol"` | |
| 1357 | - Synchronized Synchronized `json:"synchronized"` | |
| 1358 | - System System `json:"system"` | |
| 1359 | - Template Template `json:"template"` | |
| 1360 | - Then Then `json:"then"` | |
| 1361 | - This This `json:"this"` | |
| 1362 | - ThreadLocal ThreadLocal `json:"thread_local"` | |
| 1363 | - Throw Throw `json:"throw"` | |
| 1364 | - Throws Throws `json:"throws"` | |
| 1365 | - TimeOnly TimeOnly `json:"TimeOnly"` | |
| 1366 | - TimeOnlyConverter TimeOnlyConverter `json:"TimeOnlyConverter"` | |
| 1367 | - TimeZone TimeZone `json:"TimeZone"` | |
| 1368 | - ToJSON ToJSON `json:"to_json"` | |
| 1369 | - ToString ToString `json:"toString"` | |
| 1370 | - TopLevel TopLevelClass `json:"top_level"` | |
| 1371 | - Transient Transient `json:"transient"` | |
| 1372 | - True True `json:"True"` | |
| 1373 | - Try Try `json:"try"` | |
| 1374 | - Type Type `json:"Type"` | |
| 1375 | - Typealias Typealias `json:"typealias"` | |
| 1376 | - Typedef Typedef `json:"typedef"` | |
| 1377 | - Typeid Typeid `json:"typeid"` | |
| 1378 | - Typename Typename `json:"typename"` | |
| 1379 | - Typeof Typeof `json:"typeof"` | |
| 1380 | - UUID UUID `json:"UUID"` | |
| 1381 | - Uint Uint `json:"uint"` | |
| 1382 | - Ulong Ulong `json:"ulong"` | |
| 1383 | - Unchecked Unchecked `json:"unchecked"` | |
| 1384 | - Undefined Undefined `json:"undefined"` | |
| 1385 | - Union Union `json:"union"` | |
| 1386 | - Unowned Unowned `json:"unowned"` | |
| 1387 | - Unsafe Unsafe `json:"unsafe"` | |
| 1388 | - Unsigned Unsigned `json:"unsigned"` | |
| 1389 | - Ushort Ushort `json:"ushort"` | |
| 1390 | - Using Using `json:"using"` | |
| 1391 | - Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"` | |
| 1392 | - Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"` | |
| 1393 | - Var Var `json:"var"` | |
| 1394 | - Virtual Virtual `json:"virtual"` | |
| 1330 | + Dummy int64 `json:"dummy"` | |
| 1331 | + Obj5Self SelfClass `json:"self"` | |
| 1332 | + Obj5True TrueClass `json:"true"` | |
| 1333 | + Obj5Type TypeClass `json:"type"` | |
| 1334 | + Sealed Sealed `json:"sealed"` | |
| 1335 | + Sel Sel `json:"SEL"` | |
| 1336 | + Select Select `json:"select"` | |
| 1337 | + Self Self `json:"Self"` | |
| 1338 | + Sendable Sendable `json:"Sendable"` | |
| 1339 | + SerializationFeature SerializationFeature `json:"SerializationFeature"` | |
| 1340 | + Serialize Serialize `json:"serialize"` | |
| 1341 | + SerializerProvider SerializerProvider `json:"SerializerProvider"` | |
| 1342 | + Set Set `json:"set"` | |
| 1343 | + Short Short `json:"short"` | |
| 1344 | + Signed Signed `json:"signed"` | |
| 1345 | + SimpleModule SimpleModule `json:"SimpleModule"` | |
| 1346 | + Sizeof Sizeof `json:"sizeof"` | |
| 1347 | + Stackalloc Stackalloc `json:"stackalloc"` | |
| 1348 | + Standards Standards `json:"Standards"` | |
| 1349 | + Static Static `json:"static"` | |
| 1350 | + StaticAssert StaticAssert `json:"static_assert"` | |
| 1351 | + StaticCast StaticCast `json:"static_cast"` | |
| 1352 | + StdDeserializer StdDeserializer `json:"StdDeserializer"` | |
| 1353 | + StdSerializer StdSerializer `json:"StdSerializer"` | |
| 1354 | + Strictfp Strictfp `json:"strictfp"` | |
| 1355 | + String String `json:"string"` | |
| 1356 | + Struct Struct `json:"struct"` | |
| 1357 | + Subscript Subscript `json:"subscript"` | |
| 1358 | + Super Super `json:"super"` | |
| 1359 | + Switch Switch `json:"switch"` | |
| 1360 | + Symbol Symbol `json:"symbol"` | |
| 1361 | + Synchronized Synchronized `json:"synchronized"` | |
| 1362 | + System System `json:"system"` | |
| 1363 | + Template Template `json:"template"` | |
| 1364 | + Then Then `json:"then"` | |
| 1365 | + This This `json:"this"` | |
| 1366 | + ThreadLocal ThreadLocal `json:"thread_local"` | |
| 1367 | + Throw Throw `json:"throw"` | |
| 1368 | + Throws Throws `json:"throws"` | |
| 1369 | + TimeOnly TimeOnly `json:"TimeOnly"` | |
| 1370 | + TimeOnlyConverter TimeOnlyConverter `json:"TimeOnlyConverter"` | |
| 1371 | + TimeZone TimeZone `json:"TimeZone"` | |
| 1372 | + ToJSON ToJSON `json:"to_json"` | |
| 1373 | + ToString ToString `json:"toString"` | |
| 1374 | + TopLevel TopLevelClass `json:"top_level"` | |
| 1375 | + Transient Transient `json:"transient"` | |
| 1376 | + True True `json:"True"` | |
| 1377 | + Try Try `json:"try"` | |
| 1378 | + Type Type `json:"Type"` | |
| 1379 | + Typealias Typealias `json:"typealias"` | |
| 1380 | + Typedef Typedef `json:"typedef"` | |
| 1381 | + Typeid Typeid `json:"typeid"` | |
| 1382 | + Typename Typename `json:"typename"` | |
| 1383 | + Typeof Typeof `json:"typeof"` | |
| 1384 | + Uint Uint `json:"uint"` | |
| 1385 | + Ulong Ulong `json:"ulong"` | |
| 1386 | + Unchecked Unchecked `json:"unchecked"` | |
| 1387 | + Undefined Undefined `json:"undefined"` | |
| 1388 | + Union Union `json:"union"` | |
| 1389 | + Unowned Unowned `json:"unowned"` | |
| 1390 | + Unsafe Unsafe `json:"unsafe"` | |
| 1391 | + Unsigned Unsigned `json:"unsigned"` | |
| 1392 | + Ushort Ushort `json:"ushort"` | |
| 1393 | + Using Using `json:"using"` | |
| 1394 | + Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"` | |
| 1395 | 1395 | } |
| 1396 | 1396 | |
| 1397 | 1397 | type SelfClass struct { |
| @@ -1406,6 +1406,18 @@ type TypeClass struct { | ||
| 1406 | 1406 | Type int64 `json:"type"` |
| 1407 | 1407 | } |
| 1408 | 1408 | |
| 1409 | +type Sealed struct { | |
| 1410 | + Sealed int64 `json:"sealed"` | |
| 1411 | +} | |
| 1412 | + | |
| 1413 | +type Sel struct { | |
| 1414 | + Sel int64 `json:"SEL"` | |
| 1415 | +} | |
| 1416 | + | |
| 1417 | +type Select struct { | |
| 1418 | + Select int64 `json:"select"` | |
| 1419 | +} | |
| 1420 | + | |
| 1409 | 1421 | type Self struct { |
| 1410 | 1422 | Self int64 `json:"Self"` |
| 1411 | 1423 | } |
| @@ -1414,6 +1426,10 @@ type Sendable struct { | ||
| 1414 | 1426 | Sendable int64 `json:"Sendable"` |
| 1415 | 1427 | } |
| 1416 | 1428 | |
| 1429 | +type SerializationFeature struct { | |
| 1430 | + SerializationFeature int64 `json:"SerializationFeature"` | |
| 1431 | +} | |
| 1432 | + | |
| 1417 | 1433 | type Serialize struct { |
| 1418 | 1434 | Serialize int64 `json:"serialize"` |
| 1419 | 1435 | } |
| @@ -1590,10 +1606,6 @@ type Typeof struct { | ||
| 1590 | 1606 | Typeof int64 `json:"typeof"` |
| 1591 | 1607 | } |
| 1592 | 1608 | |
| 1593 | -type UUID struct { | |
| 1594 | - UUID int64 `json:"UUID"` | |
| 1595 | -} | |
| 1596 | - | |
| 1597 | 1609 | type Uint struct { |
| 1598 | 1610 | Uint int64 `json:"uint"` |
| 1599 | 1611 | } |
| @@ -1638,6 +1650,30 @@ type Utf8JSONReader struct { | ||
| 1638 | 1650 | Utf8JSONReader int64 `json:"Utf8JsonReader"` |
| 1639 | 1651 | } |
| 1640 | 1652 | |
| 1653 | +type Obj6 struct { | |
| 1654 | + Dummy int64 `json:"dummy"` | |
| 1655 | + UUID UUID `json:"UUID"` | |
| 1656 | + Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"` | |
| 1657 | + Var Var `json:"var"` | |
| 1658 | + Virtual Virtual `json:"virtual"` | |
| 1659 | + Void Void `json:"void"` | |
| 1660 | + Volatile Volatile `json:"volatile"` | |
| 1661 | + WcharT WcharT `json:"wchar_t"` | |
| 1662 | + Weak Weak `json:"weak"` | |
| 1663 | + Where Where `json:"where"` | |
| 1664 | + While While `json:"while"` | |
| 1665 | + WillSet WillSet `json:"willSet"` | |
| 1666 | + With With `json:"with"` | |
| 1667 | + Xor Xor `json:"xor"` | |
| 1668 | + XorEq XorEq `json:"xor_eq"` | |
| 1669 | + Yes Yes `json:"YES"` | |
| 1670 | + Yield Yield `json:"yield"` | |
| 1671 | +} | |
| 1672 | + | |
| 1673 | +type UUID struct { | |
| 1674 | + UUID int64 `json:"UUID"` | |
| 1675 | +} | |
| 1676 | + | |
| 1641 | 1677 | type Utf8JSONWriter struct { |
| 1642 | 1678 | Utf8JSONWriter int64 `json:"Utf8JsonWriter"` |
| 1643 | 1679 | } |
| @@ -1650,22 +1686,6 @@ type Virtual struct { | ||
| 1650 | 1686 | Virtual int64 `json:"virtual"` |
| 1651 | 1687 | } |
| 1652 | 1688 | |
| 1653 | -type Obj6 struct { | |
| 1654 | - Dummy int64 `json:"dummy"` | |
| 1655 | - Void Void `json:"void"` | |
| 1656 | - Volatile Volatile `json:"volatile"` | |
| 1657 | - WcharT WcharT `json:"wchar_t"` | |
| 1658 | - Weak Weak `json:"weak"` | |
| 1659 | - Where Where `json:"where"` | |
| 1660 | - While While `json:"while"` | |
| 1661 | - WillSet WillSet `json:"willSet"` | |
| 1662 | - With With `json:"with"` | |
| 1663 | - Xor Xor `json:"xor"` | |
| 1664 | - XorEq XorEq `json:"xor_eq"` | |
| 1665 | - Yes Yes `json:"YES"` | |
| 1666 | - Yield Yield `json:"yield"` | |
| 1667 | -} | |
| 1668 | - | |
| 1669 | 1689 | type Void struct { |
| 1670 | 1690 | Void int64 `json:"void"` |
| 1671 | 1691 | } |
Mhaskelldefault / QuickType.hs+237 −165
| @@ -88,6 +88,7 @@ module QuickType | ||
| 88 | 88 | , Del (..) |
| 89 | 89 | , Delegate (..) |
| 90 | 90 | , Delete (..) |
| 91 | + , DeserializationFeature (..) | |
| 91 | 92 | , Dict (..) |
| 92 | 93 | , Dictionary (..) |
| 93 | 94 | , DidSet (..) |
| @@ -128,12 +129,12 @@ module QuickType | ||
| 128 | 129 | , Get (..) |
| 129 | 130 | , Global (..) |
| 130 | 131 | , Go (..) |
| 131 | - , Goto (..) | |
| 132 | 132 | , Default (..) |
| 133 | 133 | , Do (..) |
| 134 | 134 | , Else (..) |
| 135 | 135 | , Obj2False (..) |
| 136 | 136 | , Obj3 (..) |
| 137 | + , Goto (..) | |
| 137 | 138 | , Guard (..) |
| 138 | 139 | , HasOwnProperty (..) |
| 139 | 140 | , HashCode (..) |
| @@ -190,7 +191,6 @@ module QuickType | ||
| 190 | 191 | , Newtonsoft (..) |
| 191 | 192 | , Nil (..) |
| 192 | 193 | , No (..) |
| 193 | - , Noexcept (..) | |
| 194 | 194 | , ID (..) |
| 195 | 195 | , If (..) |
| 196 | 196 | , Import (..) |
| @@ -200,6 +200,7 @@ module QuickType | ||
| 200 | 200 | , Module (..) |
| 201 | 201 | , Obj4 (..) |
| 202 | 202 | , NoSuchMethod (..) |
| 203 | + , Noexcept (..) | |
| 203 | 204 | , Nonatomic (..) |
| 204 | 205 | , None (..) |
| 205 | 206 | , Nonlocal (..) |
| @@ -218,6 +219,8 @@ module QuickType | ||
| 218 | 219 | , ProtocolClass (..) |
| 219 | 220 | , ObjectClass (..) |
| 220 | 221 | , ObjectMapper (..) |
| 222 | + , ObjectReader (..) | |
| 223 | + , ObjectWriter (..) | |
| 221 | 224 | , Oneway (..) |
| 222 | 225 | , Open (..) |
| 223 | 226 | , Operator (..) |
| @@ -260,17 +263,18 @@ module QuickType | ||
| 260 | 263 | , RuntimeType (..) |
| 261 | 264 | , S (..) |
| 262 | 265 | , Sbyte (..) |
| 263 | - , Sealed (..) | |
| 264 | - , Sel (..) | |
| 265 | - , Select (..) | |
| 266 | 266 | , Obj5 (..) |
| 267 | 267 | , SelfClass (..) |
| 268 | 268 | , Then (..) |
| 269 | 269 | , Obj5True (..) |
| 270 | 270 | , Type (..) |
| 271 | 271 | , TypeClass (..) |
| 272 | + , Sealed (..) | |
| 273 | + , Sel (..) | |
| 274 | + , Select (..) | |
| 272 | 275 | , Self (..) |
| 273 | 276 | , Sendable (..) |
| 277 | + , SerializationFeature (..) | |
| 274 | 278 | , Serialize (..) |
| 275 | 279 | , SerializerProvider (..) |
| 276 | 280 | , Set (..) |
| @@ -324,12 +328,12 @@ module QuickType | ||
| 324 | 328 | , Ushort (..) |
| 325 | 329 | , Using (..) |
| 326 | 330 | , Utf8JSONReader (..) |
| 331 | + , Obj6 (..) | |
| 332 | + , Where (..) | |
| 327 | 333 | , Utf8JSONWriter (..) |
| 328 | 334 | , UUID (..) |
| 329 | 335 | , Var (..) |
| 330 | 336 | , Virtual (..) |
| 331 | - , Obj6 (..) | |
| 332 | - , Where (..) | |
| 333 | 337 | , Void (..) |
| 334 | 338 | , Volatile (..) |
| 335 | 339 | , WcharT (..) |
| @@ -705,6 +709,7 @@ data Obj2 = Obj2 | ||
| 705 | 709 | , delObj2 :: Del |
| 706 | 710 | , delegateObj2 :: Delegate |
| 707 | 711 | , deleteObj2 :: Delete |
| 712 | + , deserializationFeatureObj2 :: DeserializationFeature | |
| 708 | 713 | , dictObj2 :: Dict |
| 709 | 714 | , dictionaryObj2 :: Dictionary |
| 710 | 715 | , didSetObj2 :: DidSet |
| @@ -746,7 +751,6 @@ data Obj2 = Obj2 | ||
| 746 | 751 | , getObj2 :: Get |
| 747 | 752 | , globalObj2 :: Global |
| 748 | 753 | , goObj2 :: Go |
| 749 | - , gotoObj2 :: Goto | |
| 750 | 754 | , obj2DefaultObj2 :: Default |
| 751 | 755 | , obj2DoObj2 :: Do |
| 752 | 756 | , obj2ElseObj2 :: Else |
| @@ -829,6 +833,10 @@ data Delete = Delete | ||
| 829 | 833 | { deleteDelete :: Int |
| 830 | 834 | } deriving (Show) |
| 831 | 835 | |
| 836 | +data DeserializationFeature = DeserializationFeature | |
| 837 | + { deserializationFeatureDeserializationFeature :: Int | |
| 838 | + } deriving (Show) | |
| 839 | + | |
| 832 | 840 | data Dict = Dict |
| 833 | 841 | { dictDict :: Int |
| 834 | 842 | } deriving (Show) |
| @@ -994,10 +1002,6 @@ data Go = Go | ||
| 994 | 1002 | { goGo :: Int |
| 995 | 1003 | } deriving (Show) |
| 996 | 1004 | |
| 997 | -data Goto = Goto | |
| 998 | - { gotoGoto :: Int | |
| 999 | - } deriving (Show) | |
| 1000 | - | |
| 1001 | 1005 | data Default = Default |
| 1002 | 1006 | { defaultDefaultDefault :: Int |
| 1003 | 1007 | } deriving (Show) |
| @@ -1016,6 +1020,7 @@ data Obj2False = Obj2False | ||
| 1016 | 1020 | |
| 1017 | 1021 | data Obj3 = Obj3 |
| 1018 | 1022 | { dummyObj3 :: Int |
| 1023 | + , gotoObj3 :: Goto | |
| 1019 | 1024 | , guardObj3 :: Guard |
| 1020 | 1025 | , hasOwnPropertyObj3 :: HasOwnProperty |
| 1021 | 1026 | , hashCodeObj3 :: HashCode |
| @@ -1072,7 +1077,6 @@ data Obj3 = Obj3 | ||
| 1072 | 1077 | , newtonsoftObj3 :: Newtonsoft |
| 1073 | 1078 | , nilObj3 :: Nil |
| 1074 | 1079 | , noObj3 :: No |
| 1075 | - , noexceptObj3 :: Noexcept | |
| 1076 | 1080 | , obj3IDObj3 :: ID |
| 1077 | 1081 | , obj3IfObj3 :: If |
| 1078 | 1082 | , obj3ImportObj3 :: Import |
| @@ -1082,6 +1086,10 @@ data Obj3 = Obj3 | ||
| 1082 | 1086 | , obj3ModuleObj3 :: Module |
| 1083 | 1087 | } deriving (Show) |
| 1084 | 1088 | |
| 1089 | +data Goto = Goto | |
| 1090 | + { gotoGoto :: Int | |
| 1091 | + } deriving (Show) | |
| 1092 | + | |
| 1085 | 1093 | data Guard = Guard |
| 1086 | 1094 | { guardGuard :: Int |
| 1087 | 1095 | } deriving (Show) |
| @@ -1306,10 +1314,6 @@ data No = No | ||
| 1306 | 1314 | { noNo :: Int |
| 1307 | 1315 | } deriving (Show) |
| 1308 | 1316 | |
| 1309 | -data Noexcept = Noexcept | |
| 1310 | - { noexceptNoexcept :: Int | |
| 1311 | - } deriving (Show) | |
| 1312 | - | |
| 1313 | 1317 | data ID = ID |
| 1314 | 1318 | { idIDID :: Int |
| 1315 | 1319 | } deriving (Show) |
| @@ -1341,6 +1345,7 @@ data Module = Module | ||
| 1341 | 1345 | data Obj4 = Obj4 |
| 1342 | 1346 | { dummyObj4 :: Int |
| 1343 | 1347 | , noSuchMethodObj4 :: NoSuchMethod |
| 1348 | + , noexceptObj4 :: Noexcept | |
| 1344 | 1349 | , nonatomicObj4 :: Nonatomic |
| 1345 | 1350 | , noneObj4 :: None |
| 1346 | 1351 | , nonlocalObj4 :: Nonlocal |
| @@ -1359,6 +1364,8 @@ data Obj4 = Obj4 | ||
| 1359 | 1364 | , obj4ProtocolObj4 :: ProtocolClass |
| 1360 | 1365 | , objectObj4 :: ObjectClass |
| 1361 | 1366 | , objectMapperObj4 :: ObjectMapper |
| 1367 | + , objectReaderObj4 :: ObjectReader | |
| 1368 | + , objectWriterObj4 :: ObjectWriter | |
| 1362 | 1369 | , onewayObj4 :: Oneway |
| 1363 | 1370 | , openObj4 :: Open |
| 1364 | 1371 | , operatorObj4 :: Operator |
| @@ -1401,15 +1408,16 @@ data Obj4 = Obj4 | ||
| 1401 | 1408 | , runtimeTypeObj4 :: RuntimeType |
| 1402 | 1409 | , sObj4 :: S |
| 1403 | 1410 | , sbyteObj4 :: Sbyte |
| 1404 | - , sealedObj4 :: Sealed | |
| 1405 | - , selObj4 :: Sel | |
| 1406 | - , selectObj4 :: Select | |
| 1407 | 1411 | } deriving (Show) |
| 1408 | 1412 | |
| 1409 | 1413 | data NoSuchMethod = NoSuchMethod |
| 1410 | 1414 | { noSuchMethodNoSuchMethod :: Int |
| 1411 | 1415 | } deriving (Show) |
| 1412 | 1416 | |
| 1417 | +data Noexcept = Noexcept | |
| 1418 | + { noexceptNoexcept :: Int | |
| 1419 | + } deriving (Show) | |
| 1420 | + | |
| 1413 | 1421 | data Nonatomic = Nonatomic |
| 1414 | 1422 | { nonatomicNonatomic :: Int |
| 1415 | 1423 | } deriving (Show) |
| @@ -1482,6 +1490,14 @@ data ObjectMapper = ObjectMapper | ||
| 1482 | 1490 | { objectMapperObjectMapper :: Int |
| 1483 | 1491 | } deriving (Show) |
| 1484 | 1492 | |
| 1493 | +data ObjectReader = ObjectReader | |
| 1494 | + { objectReaderObjectReader :: Int | |
| 1495 | + } deriving (Show) | |
| 1496 | + | |
| 1497 | +data ObjectWriter = ObjectWriter | |
| 1498 | + { objectWriterObjectWriter :: Int | |
| 1499 | + } deriving (Show) | |
| 1500 | + | |
| 1485 | 1501 | data Oneway = Oneway |
| 1486 | 1502 | { onewayOneway :: Int |
| 1487 | 1503 | } deriving (Show) |
| @@ -1650,18 +1666,6 @@ data Sbyte = Sbyte | ||
| 1650 | 1666 | { sbyteSbyte :: Int |
| 1651 | 1667 | } deriving (Show) |
| 1652 | 1668 | |
| 1653 | -data Sealed = Sealed | |
| 1654 | - { sealedSealed :: Int | |
| 1655 | - } deriving (Show) | |
| 1656 | - | |
| 1657 | -data Sel = Sel | |
| 1658 | - { selSel :: Int | |
| 1659 | - } deriving (Show) | |
| 1660 | - | |
| 1661 | -data Select = Select | |
| 1662 | - { selectSelect :: Int | |
| 1663 | - } deriving (Show) | |
| 1664 | - | |
| 1665 | 1669 | data Obj5 = Obj5 |
| 1666 | 1670 | { dummyObj5 :: Int |
| 1667 | 1671 | , obj5SelfObj5 :: SelfClass |
| @@ -1669,8 +1673,12 @@ data Obj5 = Obj5 | ||
| 1669 | 1673 | , obj5TrueObj5 :: Obj5True |
| 1670 | 1674 | , obj5TypeObj5 :: Type |
| 1671 | 1675 | , purpleTypeObj5 :: TypeClass |
| 1676 | + , sealedObj5 :: Sealed | |
| 1677 | + , selObj5 :: Sel | |
| 1678 | + , selectObj5 :: Select | |
| 1672 | 1679 | , selfObj5 :: Self |
| 1673 | 1680 | , sendableObj5 :: Sendable |
| 1681 | + , serializationFeatureObj5 :: SerializationFeature | |
| 1674 | 1682 | , serializeObj5 :: Serialize |
| 1675 | 1683 | , serializerProviderObj5 :: SerializerProvider |
| 1676 | 1684 | , setObj5 :: Set |
| @@ -1724,10 +1732,6 @@ data Obj5 = Obj5 | ||
| 1724 | 1732 | , ushortObj5 :: Ushort |
| 1725 | 1733 | , usingObj5 :: Using |
| 1726 | 1734 | , utf8JSONReaderObj5 :: Utf8JSONReader |
| 1727 | - , utf8JSONWriterObj5 :: Utf8JSONWriter | |
| 1728 | - , uuidObj5 :: UUID | |
| 1729 | - , varObj5 :: Var | |
| 1730 | - , virtualObj5 :: Virtual | |
| 1731 | 1735 | } deriving (Show) |
| 1732 | 1736 | |
| 1733 | 1737 | data SelfClass = SelfClass |
| @@ -1750,6 +1754,18 @@ data TypeClass = TypeClass | ||
| 1750 | 1754 | { typeTypeTypeClass :: Int |
| 1751 | 1755 | } deriving (Show) |
| 1752 | 1756 | |
| 1757 | +data Sealed = Sealed | |
| 1758 | + { sealedSealed :: Int | |
| 1759 | + } deriving (Show) | |
| 1760 | + | |
| 1761 | +data Sel = Sel | |
| 1762 | + { selSel :: Int | |
| 1763 | + } deriving (Show) | |
| 1764 | + | |
| 1765 | +data Select = Select | |
| 1766 | + { selectSelect :: Int | |
| 1767 | + } deriving (Show) | |
| 1768 | + | |
| 1753 | 1769 | data Self = Self |
| 1754 | 1770 | { selfSelf :: Int |
| 1755 | 1771 | } deriving (Show) |
| @@ -1758,6 +1774,10 @@ data Sendable = Sendable | ||
| 1758 | 1774 | { sendableSendable :: Int |
| 1759 | 1775 | } deriving (Show) |
| 1760 | 1776 | |
| 1777 | +data SerializationFeature = SerializationFeature | |
| 1778 | + { serializationFeatureSerializationFeature :: Int | |
| 1779 | + } deriving (Show) | |
| 1780 | + | |
| 1761 | 1781 | data Serialize = Serialize |
| 1762 | 1782 | { serializeSerialize :: Int |
| 1763 | 1783 | } deriving (Show) |
| @@ -1970,25 +1990,13 @@ data Utf8JSONReader = Utf8JSONReader | ||
| 1970 | 1990 | { utf8JSONReaderUtf8JSONReader :: Int |
| 1971 | 1991 | } deriving (Show) |
| 1972 | 1992 | |
| 1973 | -data Utf8JSONWriter = Utf8JSONWriter | |
| 1974 | - { utf8JSONWriterUtf8JSONWriter :: Int | |
| 1975 | - } deriving (Show) | |
| 1976 | - | |
| 1977 | -data UUID = UUID | |
| 1978 | - { uuidUUID :: Int | |
| 1979 | - } deriving (Show) | |
| 1980 | - | |
| 1981 | -data Var = Var | |
| 1982 | - { varVar :: Int | |
| 1983 | - } deriving (Show) | |
| 1984 | - | |
| 1985 | -data Virtual = Virtual | |
| 1986 | - { virtualVirtual :: Int | |
| 1987 | - } deriving (Show) | |
| 1988 | - | |
| 1989 | 1993 | data Obj6 = Obj6 |
| 1990 | 1994 | { dummyObj6 :: Int |
| 1991 | 1995 | , obj6WhereObj6 :: Where |
| 1996 | + , utf8JSONWriterObj6 :: Utf8JSONWriter | |
| 1997 | + , uuidObj6 :: UUID | |
| 1998 | + , varObj6 :: Var | |
| 1999 | + , virtualObj6 :: Virtual | |
| 1992 | 2000 | , voidObj6 :: Void |
| 1993 | 2001 | , volatileObj6 :: Volatile |
| 1994 | 2002 | , wcharTObj6 :: WcharT |
| @@ -2006,6 +2014,22 @@ data Where = Where | ||
| 2006 | 2014 | { whereWhereWhere :: Int |
| 2007 | 2015 | } deriving (Show) |
| 2008 | 2016 | |
| 2017 | +data Utf8JSONWriter = Utf8JSONWriter | |
| 2018 | + { utf8JSONWriterUtf8JSONWriter :: Int | |
| 2019 | + } deriving (Show) | |
| 2020 | + | |
| 2021 | +data UUID = UUID | |
| 2022 | + { uuidUUID :: Int | |
| 2023 | + } deriving (Show) | |
| 2024 | + | |
| 2025 | +data Var = Var | |
| 2026 | + { varVar :: Int | |
| 2027 | + } deriving (Show) | |
| 2028 | + | |
| 2029 | +data Virtual = Virtual | |
| 2030 | + { virtualVirtual :: Int | |
| 2031 | + } deriving (Show) | |
| 2032 | + | |
| 2009 | 2033 | data Void = Void |
| 2010 | 2034 | { voidVoid :: Int |
| 2011 | 2035 | } deriving (Show) |
| @@ -2854,7 +2878,7 @@ instance FromJSON ClassClass where | ||
| 2854 | 2878 | <$> v .: "class" |
| 2855 | 2879 | |
| 2856 | 2880 | instance ToJSON Obj2 where |
| 2857 | - toJSON (Obj2 dateFormatterObj2 dateOnlyObj2 dateOnlyConverterObj2 dateParseHandlingObj2 dateTimeObj2 dateTimeStylesObj2 debuggerObj2 decimalObj2 declareObj2 decltypeObj2 decodeStringObj2 decoderObj2 decodingErrorObj2 defObj2 deferObj2 deinitObj2 delObj2 delegateObj2 deleteObj2 dictObj2 dictionaryObj2 didSetObj2 doubleObj2 dummyObj2 dynamicObj2 dynamicCastObj2 elifObj2 encodeQuickTypeObj2 encoderObj2 enumObj2 enumValuesObj2 equalityContractObj2 equatableObj2 eventObj2 exceptObj2 exceptionObj2 explicitObj2 exportObj2 exposingObj2 extendsObj2 extensionObj2 externObj2 fallthroughObj2 falseObj2 fileprivateObj2 finalObj2 finallyObj2 fixedObj2 floatObj2 forObj2 foreachObj2 formatExceptionObj2 friendObj2 fromObj2 fromJSONObj2 funcObj2 functionObj2 getObj2 globalObj2 goObj2 gotoObj2 obj2DefaultObj2 obj2DoObj2 obj2ElseObj2 obj2FalseObj2) = | |
| 2881 | + toJSON (Obj2 dateFormatterObj2 dateOnlyObj2 dateOnlyConverterObj2 dateParseHandlingObj2 dateTimeObj2 dateTimeStylesObj2 debuggerObj2 decimalObj2 declareObj2 decltypeObj2 decodeStringObj2 decoderObj2 decodingErrorObj2 defObj2 deferObj2 deinitObj2 delObj2 delegateObj2 deleteObj2 deserializationFeatureObj2 dictObj2 dictionaryObj2 didSetObj2 doubleObj2 dummyObj2 dynamicObj2 dynamicCastObj2 elifObj2 encodeQuickTypeObj2 encoderObj2 enumObj2 enumValuesObj2 equalityContractObj2 equatableObj2 eventObj2 exceptObj2 exceptionObj2 explicitObj2 exportObj2 exposingObj2 extendsObj2 extensionObj2 externObj2 fallthroughObj2 falseObj2 fileprivateObj2 finalObj2 finallyObj2 fixedObj2 floatObj2 forObj2 foreachObj2 formatExceptionObj2 friendObj2 fromObj2 fromJSONObj2 funcObj2 functionObj2 getObj2 globalObj2 goObj2 obj2DefaultObj2 obj2DoObj2 obj2ElseObj2 obj2FalseObj2) = | |
| 2858 | 2882 | object $ foldMap (maybe [] pure) |
| 2859 | 2883 | [ Just $ "DateFormatter" .= dateFormatterObj2 |
| 2860 | 2884 | , Just $ "DateOnly" .= dateOnlyObj2 |
| @@ -2875,6 +2899,7 @@ instance ToJSON Obj2 where | ||
| 2875 | 2899 | , Just $ "del" .= delObj2 |
| 2876 | 2900 | , Just $ "delegate" .= delegateObj2 |
| 2877 | 2901 | , Just $ "delete" .= deleteObj2 |
| 2902 | + , Just $ "DeserializationFeature" .= deserializationFeatureObj2 | |
| 2878 | 2903 | , Just $ "dict" .= dictObj2 |
| 2879 | 2904 | , Just $ "dictionary" .= dictionaryObj2 |
| 2880 | 2905 | , Just $ "didSet" .= didSetObj2 |
| @@ -2916,7 +2941,6 @@ instance ToJSON Obj2 where | ||
| 2916 | 2941 | , Just $ "get" .= getObj2 |
| 2917 | 2942 | , Just $ "global" .= globalObj2 |
| 2918 | 2943 | , Just $ "go" .= goObj2 |
| 2919 | - , Just $ "goto" .= gotoObj2 | |
| 2920 | 2944 | , Just $ "default" .= obj2DefaultObj2 |
| 2921 | 2945 | , Just $ "do" .= obj2DoObj2 |
| 2922 | 2946 | , Just $ "else" .= obj2ElseObj2 |
| @@ -2944,6 +2968,7 @@ instance FromJSON Obj2 where | ||
| 2944 | 2968 | <*> v .: "del" |
| 2945 | 2969 | <*> v .: "delegate" |
| 2946 | 2970 | <*> v .: "delete" |
| 2971 | + <*> v .: "DeserializationFeature" | |
| 2947 | 2972 | <*> v .: "dict" |
| 2948 | 2973 | <*> v .: "dictionary" |
| 2949 | 2974 | <*> v .: "didSet" |
| @@ -2985,7 +3010,6 @@ instance FromJSON Obj2 where | ||
| 2985 | 3010 | <*> v .: "get" |
| 2986 | 3011 | <*> v .: "global" |
| 2987 | 3012 | <*> v .: "go" |
| 2988 | - <*> v .: "goto" | |
| 2989 | 3013 | <*> v .: "default" |
| 2990 | 3014 | <*> v .: "do" |
| 2991 | 3015 | <*> v .: "else" |
| @@ -3181,6 +3205,16 @@ instance FromJSON Delete where | ||
| 3181 | 3205 | parseJSON (Object v) = Delete |
| 3182 | 3206 | <$> v .: "delete" |
| 3183 | 3207 | |
| 3208 | +instance ToJSON DeserializationFeature where | |
| 3209 | + toJSON (DeserializationFeature deserializationFeatureDeserializationFeature) = | |
| 3210 | + object $ foldMap (maybe [] pure) | |
| 3211 | + [ Just $ "DeserializationFeature" .= deserializationFeatureDeserializationFeature | |
| 3212 | + ] | |
| 3213 | + | |
| 3214 | +instance FromJSON DeserializationFeature where | |
| 3215 | + parseJSON (Object v) = DeserializationFeature | |
| 3216 | + <$> v .: "DeserializationFeature" | |
| 3217 | + | |
| 3184 | 3218 | instance ToJSON Dict where |
| 3185 | 3219 | toJSON (Dict dictDict) = |
| 3186 | 3220 | object $ foldMap (maybe [] pure) |
| @@ -3591,16 +3625,6 @@ instance FromJSON Go where | ||
| 3591 | 3625 | parseJSON (Object v) = Go |
| 3592 | 3626 | <$> v .: "go" |
| 3593 | 3627 | |
| 3594 | -instance ToJSON Goto where | |
| 3595 | - toJSON (Goto gotoGoto) = | |
| 3596 | - object $ foldMap (maybe [] pure) | |
| 3597 | - [ Just $ "goto" .= gotoGoto | |
| 3598 | - ] | |
| 3599 | - | |
| 3600 | -instance FromJSON Goto where | |
| 3601 | - parseJSON (Object v) = Goto | |
| 3602 | - <$> v .: "goto" | |
| 3603 | - | |
| 3604 | 3628 | instance ToJSON Default where |
| 3605 | 3629 | toJSON (Default defaultDefaultDefault) = |
| 3606 | 3630 | object $ foldMap (maybe [] pure) |
| @@ -3642,9 +3666,10 @@ instance FromJSON Obj2False where | ||
| 3642 | 3666 | <$> v .: "false" |
| 3643 | 3667 | |
| 3644 | 3668 | instance ToJSON Obj3 where |
| 3645 | - toJSON (Obj3 dummyObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 noexceptObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) = | |
| 3669 | + toJSON (Obj3 dummyObj3 gotoObj3 guardObj3 hasOwnPropertyObj3 hashCodeObj3 hashableObj3 hasherObj3 impObj3 implementsObj3 implicitObj3 indirectObj3 initObj3 inlineObj3 inoutObj3 instanceofObj3 intObj3 interfaceObj3 internalObj3 isObj3 isoDateTimeOffsetConverterObj3 iterableObj3 jdecObj3 jencObj3 jpipeObj3 jsonObj3 jsonAnyObj3 jsonCodingKeyObj3 jsonConverterObj3 jsonDecoderObj3 jsonEncoderObj3 jsonExceptionObj3 jsonGeneratorObj3 jsonNodeObj3 jsonNullObj3 jsonParserObj3 jsonReaderObj3 jsonSerializerObj3 jsonTokenObj3 jsonTokenTypeObj3 jsonWriterObj3 lambdaObj3 lazyObj3 leftObj3 listObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) = | |
| 3646 | 3670 | object $ foldMap (maybe [] pure) |
| 3647 | 3671 | [ Just $ "dummy" .= dummyObj3 |
| 3672 | + , Just $ "goto" .= gotoObj3 | |
| 3648 | 3673 | , Just $ "guard" .= guardObj3 |
| 3649 | 3674 | , Just $ "hasOwnProperty" .= hasOwnPropertyObj3 |
| 3650 | 3675 | , Just $ "hashCode" .= hashCodeObj3 |
| @@ -3701,7 +3726,6 @@ instance ToJSON Obj3 where | ||
| 3701 | 3726 | , Just $ "newtonsoft" .= newtonsoftObj3 |
| 3702 | 3727 | , Just $ "nil" .= nilObj3 |
| 3703 | 3728 | , Just $ "NO" .= noObj3 |
| 3704 | - , Just $ "noexcept" .= noexceptObj3 | |
| 3705 | 3729 | , Just $ "id" .= obj3IDObj3 |
| 3706 | 3730 | , Just $ "if" .= obj3IfObj3 |
| 3707 | 3731 | , Just $ "import" .= obj3ImportObj3 |
| @@ -3714,6 +3738,7 @@ instance ToJSON Obj3 where | ||
| 3714 | 3738 | instance FromJSON Obj3 where |
| 3715 | 3739 | parseJSON (Object v) = Obj3 |
| 3716 | 3740 | <$> v .: "dummy" |
| 3741 | + <*> v .: "goto" | |
| 3717 | 3742 | <*> v .: "guard" |
| 3718 | 3743 | <*> v .: "hasOwnProperty" |
| 3719 | 3744 | <*> v .: "hashCode" |
| @@ -3770,7 +3795,6 @@ instance FromJSON Obj3 where | ||
| 3770 | 3795 | <*> v .: "newtonsoft" |
| 3771 | 3796 | <*> v .: "nil" |
| 3772 | 3797 | <*> v .: "NO" |
| 3773 | - <*> v .: "noexcept" | |
| 3774 | 3798 | <*> v .: "id" |
| 3775 | 3799 | <*> v .: "if" |
| 3776 | 3800 | <*> v .: "import" |
| @@ -3779,6 +3803,16 @@ instance FromJSON Obj3 where | ||
| 3779 | 3803 | <*> v .: "let" |
| 3780 | 3804 | <*> v .: "module" |
| 3781 | 3805 | |
| 3806 | +instance ToJSON Goto where | |
| 3807 | + toJSON (Goto gotoGoto) = | |
| 3808 | + object $ foldMap (maybe [] pure) | |
| 3809 | + [ Just $ "goto" .= gotoGoto | |
| 3810 | + ] | |
| 3811 | + | |
| 3812 | +instance FromJSON Goto where | |
| 3813 | + parseJSON (Object v) = Goto | |
| 3814 | + <$> v .: "goto" | |
| 3815 | + | |
| 3782 | 3816 | instance ToJSON Guard where |
| 3783 | 3817 | toJSON (Guard guardGuard) = |
| 3784 | 3818 | object $ foldMap (maybe [] pure) |
| @@ -4339,16 +4373,6 @@ instance FromJSON No where | ||
| 4339 | 4373 | parseJSON (Object v) = No |
| 4340 | 4374 | <$> v .: "NO" |
| 4341 | 4375 | |
| 4342 | -instance ToJSON Noexcept where | |
| 4343 | - toJSON (Noexcept noexceptNoexcept) = | |
| 4344 | - object $ foldMap (maybe [] pure) | |
| 4345 | - [ Just $ "noexcept" .= noexceptNoexcept | |
| 4346 | - ] | |
| 4347 | - | |
| 4348 | -instance FromJSON Noexcept where | |
| 4349 | - parseJSON (Object v) = Noexcept | |
| 4350 | - <$> v .: "noexcept" | |
| 4351 | - | |
| 4352 | 4376 | instance ToJSON ID where |
| 4353 | 4377 | toJSON (ID idIDID) = |
| 4354 | 4378 | object $ foldMap (maybe [] pure) |
| @@ -4420,10 +4444,11 @@ instance FromJSON Module where | ||
| 4420 | 4444 | <$> v .: "module" |
| 4421 | 4445 | |
| 4422 | 4446 | instance ToJSON Obj4 where |
| 4423 | - toJSON (Obj4 dummyObj4 noSuchMethodObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4 sealedObj4 selObj4 selectObj4) = | |
| 4447 | + toJSON (Obj4 dummyObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 objectReaderObj4 objectWriterObj4 onewayObj4 openObj4 operatorObj4 optionalObj4 orObj4 orEqObj4 outObj4 overrideObj4 packageObj4 paramsObj4 passObj4 portObj4 postfixObj4 precedenceObj4 prefixObj4 printObj4 printMembersObj4 printfObj4 privateObj4 protectedObj4 protocolObj4 publicObj4 quicktypeObj4 raiseObj4 rangeObj4 readonlyObj4 refObj4 regExpObj4 registerObj4 reinterpretCastObj4 repeatObj4 requireObj4 requiredObj4 requiresObj4 restrictObj4 retainObj4 rethrowsObj4 returnObj4 rightObj4 runtimeTypeObj4 sObj4 sbyteObj4) = | |
| 4424 | 4448 | object $ foldMap (maybe [] pure) |
| 4425 | 4449 | [ Just $ "dummy" .= dummyObj4 |
| 4426 | 4450 | , Just $ "noSuchMethod" .= noSuchMethodObj4 |
| 4451 | + , Just $ "noexcept" .= noexceptObj4 | |
| 4427 | 4452 | , Just $ "nonatomic" .= nonatomicObj4 |
| 4428 | 4453 | , Just $ "None" .= noneObj4 |
| 4429 | 4454 | , Just $ "nonlocal" .= nonlocalObj4 |
| @@ -4442,6 +4467,8 @@ instance ToJSON Obj4 where | ||
| 4442 | 4467 | , Just $ "protocol" .= obj4ProtocolObj4 |
| 4443 | 4468 | , Just $ "object" .= objectObj4 |
| 4444 | 4469 | , Just $ "ObjectMapper" .= objectMapperObj4 |
| 4470 | + , Just $ "ObjectReader" .= objectReaderObj4 | |
| 4471 | + , Just $ "ObjectWriter" .= objectWriterObj4 | |
| 4445 | 4472 | , Just $ "oneway" .= onewayObj4 |
| 4446 | 4473 | , Just $ "open" .= openObj4 |
| 4447 | 4474 | , Just $ "operator" .= operatorObj4 |
| @@ -4484,15 +4511,13 @@ instance ToJSON Obj4 where | ||
| 4484 | 4511 | , Just $ "runtimeType" .= runtimeTypeObj4 |
| 4485 | 4512 | , Just $ "s" .= sObj4 |
| 4486 | 4513 | , Just $ "sbyte" .= sbyteObj4 |
| 4487 | - , Just $ "sealed" .= sealedObj4 | |
| 4488 | - , Just $ "SEL" .= selObj4 | |
| 4489 | - , Just $ "select" .= selectObj4 | |
| 4490 | 4514 | ] |
| 4491 | 4515 | |
| 4492 | 4516 | instance FromJSON Obj4 where |
| 4493 | 4517 | parseJSON (Object v) = Obj4 |
| 4494 | 4518 | <$> v .: "dummy" |
| 4495 | 4519 | <*> v .: "noSuchMethod" |
| 4520 | + <*> v .: "noexcept" | |
| 4496 | 4521 | <*> v .: "nonatomic" |
| 4497 | 4522 | <*> v .: "None" |
| 4498 | 4523 | <*> v .: "nonlocal" |
| @@ -4511,6 +4536,8 @@ instance FromJSON Obj4 where | ||
| 4511 | 4536 | <*> v .: "protocol" |
| 4512 | 4537 | <*> v .: "object" |
| 4513 | 4538 | <*> v .: "ObjectMapper" |
| 4539 | + <*> v .: "ObjectReader" | |
| 4540 | + <*> v .: "ObjectWriter" | |
| 4514 | 4541 | <*> v .: "oneway" |
| 4515 | 4542 | <*> v .: "open" |
| 4516 | 4543 | <*> v .: "operator" |
| @@ -4553,9 +4580,6 @@ instance FromJSON Obj4 where | ||
| 4553 | 4580 | <*> v .: "runtimeType" |
| 4554 | 4581 | <*> v .: "s" |
| 4555 | 4582 | <*> v .: "sbyte" |
| 4556 | - <*> v .: "sealed" | |
| 4557 | - <*> v .: "SEL" | |
| 4558 | - <*> v .: "select" | |
| 4559 | 4583 | |
| 4560 | 4584 | instance ToJSON NoSuchMethod where |
| 4561 | 4585 | toJSON (NoSuchMethod noSuchMethodNoSuchMethod) = |
| @@ -4567,6 +4591,16 @@ instance FromJSON NoSuchMethod where | ||
| 4567 | 4591 | parseJSON (Object v) = NoSuchMethod |
| 4568 | 4592 | <$> v .: "noSuchMethod" |
| 4569 | 4593 | |
| 4594 | +instance ToJSON Noexcept where | |
| 4595 | + toJSON (Noexcept noexceptNoexcept) = | |
| 4596 | + object $ foldMap (maybe [] pure) | |
| 4597 | + [ Just $ "noexcept" .= noexceptNoexcept | |
| 4598 | + ] | |
| 4599 | + | |
| 4600 | +instance FromJSON Noexcept where | |
| 4601 | + parseJSON (Object v) = Noexcept | |
| 4602 | + <$> v .: "noexcept" | |
| 4603 | + | |
| 4570 | 4604 | instance ToJSON Nonatomic where |
| 4571 | 4605 | toJSON (Nonatomic nonatomicNonatomic) = |
| 4572 | 4606 | object $ foldMap (maybe [] pure) |
| @@ -4747,6 +4781,26 @@ instance FromJSON ObjectMapper where | ||
| 4747 | 4781 | parseJSON (Object v) = ObjectMapper |
| 4748 | 4782 | <$> v .: "ObjectMapper" |
| 4749 | 4783 | |
| 4784 | +instance ToJSON ObjectReader where | |
| 4785 | + toJSON (ObjectReader objectReaderObjectReader) = | |
| 4786 | + object $ foldMap (maybe [] pure) | |
| 4787 | + [ Just $ "ObjectReader" .= objectReaderObjectReader | |
| 4788 | + ] | |
| 4789 | + | |
| 4790 | +instance FromJSON ObjectReader where | |
| 4791 | + parseJSON (Object v) = ObjectReader | |
| 4792 | + <$> v .: "ObjectReader" | |
| 4793 | + | |
| 4794 | +instance ToJSON ObjectWriter where | |
| 4795 | + toJSON (ObjectWriter objectWriterObjectWriter) = | |
| 4796 | + object $ foldMap (maybe [] pure) | |
| 4797 | + [ Just $ "ObjectWriter" .= objectWriterObjectWriter | |
| 4798 | + ] | |
| 4799 | + | |
| 4800 | +instance FromJSON ObjectWriter where | |
| 4801 | + parseJSON (Object v) = ObjectWriter | |
| 4802 | + <$> v .: "ObjectWriter" | |
| 4803 | + | |
| 4750 | 4804 | instance ToJSON Oneway where |
| 4751 | 4805 | toJSON (Oneway onewayOneway) = |
| 4752 | 4806 | object $ foldMap (maybe [] pure) |
| @@ -5167,38 +5221,8 @@ instance FromJSON Sbyte where | ||
| 5167 | 5221 | parseJSON (Object v) = Sbyte |
| 5168 | 5222 | <$> v .: "sbyte" |
| 5169 | 5223 | |
| 5170 | -instance ToJSON Sealed where | |
| 5171 | - toJSON (Sealed sealedSealed) = | |
| 5172 | - object $ foldMap (maybe [] pure) | |
| 5173 | - [ Just $ "sealed" .= sealedSealed | |
| 5174 | - ] | |
| 5175 | - | |
| 5176 | -instance FromJSON Sealed where | |
| 5177 | - parseJSON (Object v) = Sealed | |
| 5178 | - <$> v .: "sealed" | |
| 5179 | - | |
| 5180 | -instance ToJSON Sel where | |
| 5181 | - toJSON (Sel selSel) = | |
| 5182 | - object $ foldMap (maybe [] pure) | |
| 5183 | - [ Just $ "SEL" .= selSel | |
| 5184 | - ] | |
| 5185 | - | |
| 5186 | -instance FromJSON Sel where | |
| 5187 | - parseJSON (Object v) = Sel | |
| 5188 | - <$> v .: "SEL" | |
| 5189 | - | |
| 5190 | -instance ToJSON Select where | |
| 5191 | - toJSON (Select selectSelect) = | |
| 5192 | - object $ foldMap (maybe [] pure) | |
| 5193 | - [ Just $ "select" .= selectSelect | |
| 5194 | - ] | |
| 5195 | - | |
| 5196 | -instance FromJSON Select where | |
| 5197 | - parseJSON (Object v) = Select | |
| 5198 | - <$> v .: "select" | |
| 5199 | - | |
| 5200 | 5224 | instance ToJSON Obj5 where |
| 5201 | - toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 selfObj5 sendableObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 ushortObj5 usingObj5 utf8JSONReaderObj5 utf8JSONWriterObj5 uuidObj5 varObj5 virtualObj5) = | |
| 5225 | + toJSON (Obj5 dummyObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 purpleTypeObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 serializationFeatureObj5 serializeObj5 serializerProviderObj5 setObj5 shortObj5 signedObj5 simpleModuleObj5 sizeofObj5 stackallocObj5 standardsObj5 staticObj5 staticAssertObj5 staticCastObj5 stdDeserializerObj5 stdSerializerObj5 strictfpObj5 stringObj5 structObj5 subscriptObj5 superObj5 switchObj5 symbolObj5 synchronizedObj5 systemObj5 templateObj5 thisObj5 threadLocalObj5 throwObj5 throwsObj5 timeOnlyObj5 timeOnlyConverterObj5 timeZoneObj5 toJSONObj5 toStringObj5 topLevelObj5 transientObj5 trueObj5 tryObj5 typealiasObj5 typedefObj5 typeidObj5 typenameObj5 typeofObj5 uintObj5 ulongObj5 uncheckedObj5 undefinedObj5 unionObj5 unownedObj5 unsafeObj5 unsignedObj5 ushortObj5 usingObj5 utf8JSONReaderObj5) = | |
| 5202 | 5226 | object $ foldMap (maybe [] pure) |
| 5203 | 5227 | [ Just $ "dummy" .= dummyObj5 |
| 5204 | 5228 | , Just $ "self" .= obj5SelfObj5 |
| @@ -5206,8 +5230,12 @@ instance ToJSON Obj5 where | ||
| 5206 | 5230 | , Just $ "true" .= obj5TrueObj5 |
| 5207 | 5231 | , Just $ "Type" .= obj5TypeObj5 |
| 5208 | 5232 | , Just $ "type" .= purpleTypeObj5 |
| 5233 | + , Just $ "sealed" .= sealedObj5 | |
| 5234 | + , Just $ "SEL" .= selObj5 | |
| 5235 | + , Just $ "select" .= selectObj5 | |
| 5209 | 5236 | , Just $ "Self" .= selfObj5 |
| 5210 | 5237 | , Just $ "Sendable" .= sendableObj5 |
| 5238 | + , Just $ "SerializationFeature" .= serializationFeatureObj5 | |
| 5211 | 5239 | , Just $ "serialize" .= serializeObj5 |
| 5212 | 5240 | , Just $ "SerializerProvider" .= serializerProviderObj5 |
| 5213 | 5241 | , Just $ "set" .= setObj5 |
| @@ -5261,10 +5289,6 @@ instance ToJSON Obj5 where | ||
| 5261 | 5289 | , Just $ "ushort" .= ushortObj5 |
| 5262 | 5290 | , Just $ "using" .= usingObj5 |
| 5263 | 5291 | , Just $ "Utf8JsonReader" .= utf8JSONReaderObj5 |
| 5264 | - , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj5 | |
| 5265 | - , Just $ "UUID" .= uuidObj5 | |
| 5266 | - , Just $ "var" .= varObj5 | |
| 5267 | - , Just $ "virtual" .= virtualObj5 | |
| 5268 | 5292 | ] |
| 5269 | 5293 | |
| 5270 | 5294 | instance FromJSON Obj5 where |
| @@ -5275,8 +5299,12 @@ instance FromJSON Obj5 where | ||
| 5275 | 5299 | <*> v .: "true" |
| 5276 | 5300 | <*> v .: "Type" |
| 5277 | 5301 | <*> v .: "type" |
| 5302 | + <*> v .: "sealed" | |
| 5303 | + <*> v .: "SEL" | |
| 5304 | + <*> v .: "select" | |
| 5278 | 5305 | <*> v .: "Self" |
| 5279 | 5306 | <*> v .: "Sendable" |
| 5307 | + <*> v .: "SerializationFeature" | |
| 5280 | 5308 | <*> v .: "serialize" |
| 5281 | 5309 | <*> v .: "SerializerProvider" |
| 5282 | 5310 | <*> v .: "set" |
| @@ -5330,10 +5358,6 @@ instance FromJSON Obj5 where | ||
| 5330 | 5358 | <*> v .: "ushort" |
| 5331 | 5359 | <*> v .: "using" |
| 5332 | 5360 | <*> v .: "Utf8JsonReader" |
| 5333 | - <*> v .: "Utf8JsonWriter" | |
| 5334 | - <*> v .: "UUID" | |
| 5335 | - <*> v .: "var" | |
| 5336 | - <*> v .: "virtual" | |
| 5337 | 5361 | |
| 5338 | 5362 | instance ToJSON SelfClass where |
| 5339 | 5363 | toJSON (SelfClass selfSelfClass) = |
| @@ -5385,6 +5409,36 @@ instance FromJSON TypeClass where | ||
| 5385 | 5409 | parseJSON (Object v) = TypeClass |
| 5386 | 5410 | <$> v .: "type" |
| 5387 | 5411 | |
| 5412 | +instance ToJSON Sealed where | |
| 5413 | + toJSON (Sealed sealedSealed) = | |
| 5414 | + object $ foldMap (maybe [] pure) | |
| 5415 | + [ Just $ "sealed" .= sealedSealed | |
| 5416 | + ] | |
| 5417 | + | |
| 5418 | +instance FromJSON Sealed where | |
| 5419 | + parseJSON (Object v) = Sealed | |
| 5420 | + <$> v .: "sealed" | |
| 5421 | + | |
| 5422 | +instance ToJSON Sel where | |
| 5423 | + toJSON (Sel selSel) = | |
| 5424 | + object $ foldMap (maybe [] pure) | |
| 5425 | + [ Just $ "SEL" .= selSel | |
| 5426 | + ] | |
| 5427 | + | |
| 5428 | +instance FromJSON Sel where | |
| 5429 | + parseJSON (Object v) = Sel | |
| 5430 | + <$> v .: "SEL" | |
| 5431 | + | |
| 5432 | +instance ToJSON Select where | |
| 5433 | + toJSON (Select selectSelect) = | |
| 5434 | + object $ foldMap (maybe [] pure) | |
| 5435 | + [ Just $ "select" .= selectSelect | |
| 5436 | + ] | |
| 5437 | + | |
| 5438 | +instance FromJSON Select where | |
| 5439 | + parseJSON (Object v) = Select | |
| 5440 | + <$> v .: "select" | |
| 5441 | + | |
| 5388 | 5442 | instance ToJSON Self where |
| 5389 | 5443 | toJSON (Self selfSelf) = |
| 5390 | 5444 | object $ foldMap (maybe [] pure) |
| @@ -5405,6 +5459,16 @@ instance FromJSON Sendable where | ||
| 5405 | 5459 | parseJSON (Object v) = Sendable |
| 5406 | 5460 | <$> v .: "Sendable" |
| 5407 | 5461 | |
| 5462 | +instance ToJSON SerializationFeature where | |
| 5463 | + toJSON (SerializationFeature serializationFeatureSerializationFeature) = | |
| 5464 | + object $ foldMap (maybe [] pure) | |
| 5465 | + [ Just $ "SerializationFeature" .= serializationFeatureSerializationFeature | |
| 5466 | + ] | |
| 5467 | + | |
| 5468 | +instance FromJSON SerializationFeature where | |
| 5469 | + parseJSON (Object v) = SerializationFeature | |
| 5470 | + <$> v .: "SerializationFeature" | |
| 5471 | + | |
| 5408 | 5472 | instance ToJSON Serialize where |
| 5409 | 5473 | toJSON (Serialize serializeSerialize) = |
| 5410 | 5474 | object $ foldMap (maybe [] pure) |
| @@ -5935,51 +5999,15 @@ instance FromJSON Utf8JSONReader where | ||
| 5935 | 5999 | parseJSON (Object v) = Utf8JSONReader |
| 5936 | 6000 | <$> v .: "Utf8JsonReader" |
| 5937 | 6001 | |
| 5938 | -instance ToJSON Utf8JSONWriter where | |
| 5939 | - toJSON (Utf8JSONWriter utf8JSONWriterUtf8JSONWriter) = | |
| 5940 | - object $ foldMap (maybe [] pure) | |
| 5941 | - [ Just $ "Utf8JsonWriter" .= utf8JSONWriterUtf8JSONWriter | |
| 5942 | - ] | |
| 5943 | - | |
| 5944 | -instance FromJSON Utf8JSONWriter where | |
| 5945 | - parseJSON (Object v) = Utf8JSONWriter | |
| 5946 | - <$> v .: "Utf8JsonWriter" | |
| 5947 | - | |
| 5948 | -instance ToJSON UUID where | |
| 5949 | - toJSON (UUID uuidUUID) = | |
| 5950 | - object $ foldMap (maybe [] pure) | |
| 5951 | - [ Just $ "UUID" .= uuidUUID | |
| 5952 | - ] | |
| 5953 | - | |
| 5954 | -instance FromJSON UUID where | |
| 5955 | - parseJSON (Object v) = UUID | |
| 5956 | - <$> v .: "UUID" | |
| 5957 | - | |
| 5958 | -instance ToJSON Var where | |
| 5959 | - toJSON (Var varVar) = | |
| 5960 | - object $ foldMap (maybe [] pure) | |
| 5961 | - [ Just $ "var" .= varVar | |
| 5962 | - ] | |
| 5963 | - | |
| 5964 | -instance FromJSON Var where | |
| 5965 | - parseJSON (Object v) = Var | |
| 5966 | - <$> v .: "var" | |
| 5967 | - | |
| 5968 | -instance ToJSON Virtual where | |
| 5969 | - toJSON (Virtual virtualVirtual) = | |
| 5970 | - object $ foldMap (maybe [] pure) | |
| 5971 | - [ Just $ "virtual" .= virtualVirtual | |
| 5972 | - ] | |
| 5973 | - | |
| 5974 | -instance FromJSON Virtual where | |
| 5975 | - parseJSON (Object v) = Virtual | |
| 5976 | - <$> v .: "virtual" | |
| 5977 | - | |
| 5978 | 6002 | instance ToJSON Obj6 where |
| 5979 | - toJSON (Obj6 dummyObj6 obj6WhereObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) = | |
| 6003 | + toJSON (Obj6 dummyObj6 obj6WhereObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) = | |
| 5980 | 6004 | object $ foldMap (maybe [] pure) |
| 5981 | 6005 | [ Just $ "dummy" .= dummyObj6 |
| 5982 | 6006 | , Just $ "where" .= obj6WhereObj6 |
| 6007 | + , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj6 | |
| 6008 | + , Just $ "UUID" .= uuidObj6 | |
| 6009 | + , Just $ "var" .= varObj6 | |
| 6010 | + , Just $ "virtual" .= virtualObj6 | |
| 5983 | 6011 | , Just $ "void" .= voidObj6 |
| 5984 | 6012 | , Just $ "volatile" .= volatileObj6 |
| 5985 | 6013 | , Just $ "wchar_t" .= wcharTObj6 |
| @@ -5997,6 +6025,10 @@ instance FromJSON Obj6 where | ||
| 5997 | 6025 | parseJSON (Object v) = Obj6 |
| 5998 | 6026 | <$> v .: "dummy" |
| 5999 | 6027 | <*> v .: "where" |
| 6028 | + <*> v .: "Utf8JsonWriter" | |
| 6029 | + <*> v .: "UUID" | |
| 6030 | + <*> v .: "var" | |
| 6031 | + <*> v .: "virtual" | |
| 6000 | 6032 | <*> v .: "void" |
| 6001 | 6033 | <*> v .: "volatile" |
| 6002 | 6034 | <*> v .: "wchar_t" |
| @@ -6019,6 +6051,46 @@ instance FromJSON Where where | ||
| 6019 | 6051 | parseJSON (Object v) = Where |
| 6020 | 6052 | <$> v .: "where" |
| 6021 | 6053 | |
| 6054 | +instance ToJSON Utf8JSONWriter where | |
| 6055 | + toJSON (Utf8JSONWriter utf8JSONWriterUtf8JSONWriter) = | |
| 6056 | + object $ foldMap (maybe [] pure) | |
| 6057 | + [ Just $ "Utf8JsonWriter" .= utf8JSONWriterUtf8JSONWriter | |
| 6058 | + ] | |
| 6059 | + | |
| 6060 | +instance FromJSON Utf8JSONWriter where | |
| 6061 | + parseJSON (Object v) = Utf8JSONWriter | |
| 6062 | + <$> v .: "Utf8JsonWriter" | |
| 6063 | + | |
| 6064 | +instance ToJSON UUID where | |
| 6065 | + toJSON (UUID uuidUUID) = | |
| 6066 | + object $ foldMap (maybe [] pure) | |
| 6067 | + [ Just $ "UUID" .= uuidUUID | |
| 6068 | + ] | |
| 6069 | + | |
| 6070 | +instance FromJSON UUID where | |
| 6071 | + parseJSON (Object v) = UUID | |
| 6072 | + <$> v .: "UUID" | |
| 6073 | + | |
| 6074 | +instance ToJSON Var where | |
| 6075 | + toJSON (Var varVar) = | |
| 6076 | + object $ foldMap (maybe [] pure) | |
| 6077 | + [ Just $ "var" .= varVar | |
| 6078 | + ] | |
| 6079 | + | |
| 6080 | +instance FromJSON Var where | |
| 6081 | + parseJSON (Object v) = Var | |
| 6082 | + <$> v .: "var" | |
| 6083 | + | |
| 6084 | +instance ToJSON Virtual where | |
| 6085 | + toJSON (Virtual virtualVirtual) = | |
| 6086 | + object $ foldMap (maybe [] pure) | |
| 6087 | + [ Just $ "virtual" .= virtualVirtual | |
| 6088 | + ] | |
| 6089 | + | |
| 6090 | +instance FromJSON Virtual where | |
| 6091 | + parseJSON (Object v) = Virtual | |
| 6092 | + <$> v .: "virtual" | |
| 6093 | + | |
| 6022 | 6094 | instance ToJSON Void where |
| 6023 | 6095 | toJSON (Void voidVoid) = |
| 6024 | 6096 | object $ foldMap (maybe [] pure) |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / DeserializationFeatureClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class DeserializationFeatureClass { | |
| 6 | + private long deserializationFeature; | |
| 7 | + | |
| 8 | + @JsonProperty("DeserializationFeature") | |
| 9 | + public long getDeserializationFeature() { return deserializationFeature; } | |
| 10 | + @JsonProperty("DeserializationFeature") | |
| 11 | + public void setDeserializationFeature(long value) { this.deserializationFeature = value; } | |
| 12 | +} |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj2.java+6 −6
| @@ -22,6 +22,7 @@ public class Obj2 { | ||
| 22 | 22 | private Del del; |
| 23 | 23 | private Delegate delegate; |
| 24 | 24 | private Delete delete; |
| 25 | + private DeserializationFeatureClass deserializationFeature; | |
| 25 | 26 | private Dict dict; |
| 26 | 27 | private Dictionary dictionary; |
| 27 | 28 | private DidSet didSet; |
| @@ -66,7 +67,6 @@ public class Obj2 { | ||
| 66 | 67 | private Finally obj2Finally; |
| 67 | 68 | private Float obj2Float; |
| 68 | 69 | private For obj2For; |
| 69 | - private Goto obj2Goto; | |
| 70 | 70 | private FalseClass purpleFalse; |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("DateFormatter") |
| @@ -164,6 +164,11 @@ public class Obj2 { | ||
| 164 | 164 | @JsonProperty("delete") |
| 165 | 165 | public void setDelete(Delete value) { this.delete = value; } |
| 166 | 166 | |
| 167 | + @JsonProperty("DeserializationFeature") | |
| 168 | + public DeserializationFeatureClass getDeserializationFeature() { return deserializationFeature; } | |
| 169 | + @JsonProperty("DeserializationFeature") | |
| 170 | + public void setDeserializationFeature(DeserializationFeatureClass value) { this.deserializationFeature = value; } | |
| 171 | + | |
| 167 | 172 | @JsonProperty("dict") |
| 168 | 173 | public Dict getDict() { return dict; } |
| 169 | 174 | @JsonProperty("dict") |
| @@ -384,11 +389,6 @@ public class Obj2 { | ||
| 384 | 389 | @JsonProperty("for") |
| 385 | 390 | public void setObj2For(For value) { this.obj2For = value; } |
| 386 | 391 | |
| 387 | - @JsonProperty("goto") | |
| 388 | - public Goto getObj2Goto() { return obj2Goto; } | |
| 389 | - @JsonProperty("goto") | |
| 390 | - public void setObj2Goto(Goto value) { this.obj2Goto = value; } | |
| 391 | - | |
| 392 | 392 | @JsonProperty("false") |
| 393 | 393 | public FalseClass getPurpleFalse() { return purpleFalse; } |
| 394 | 394 | @JsonProperty("false") |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+5 −5
| @@ -58,7 +58,7 @@ public class Obj3 { | ||
| 58 | 58 | private Newtonsoft newtonsoft; |
| 59 | 59 | private Nil nil; |
| 60 | 60 | private No no; |
| 61 | - private Noexcept noexcept; | |
| 61 | + private Goto obj3Goto; | |
| 62 | 62 | private If obj3If; |
| 63 | 63 | private Implements obj3Implements; |
| 64 | 64 | private Import obj3Import; |
| @@ -344,10 +344,10 @@ public class Obj3 { | ||
| 344 | 344 | @JsonProperty("NO") |
| 345 | 345 | public void setNo(No value) { this.no = value; } |
| 346 | 346 | |
| 347 | - @JsonProperty("noexcept") | |
| 348 | - public Noexcept getNoexcept() { return noexcept; } | |
| 349 | - @JsonProperty("noexcept") | |
| 350 | - public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 347 | + @JsonProperty("goto") | |
| 348 | + public Goto getObj3Goto() { return obj3Goto; } | |
| 349 | + @JsonProperty("goto") | |
| 350 | + public void setObj3Goto(Goto value) { this.obj3Goto = value; } | |
| 351 | 351 | |
| 352 | 352 | @JsonProperty("if") |
| 353 | 353 | public If getObj3If() { return obj3If; } |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj4.java+18 −18
| @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*; | ||
| 5 | 5 | public class Obj4 { |
| 6 | 6 | private long dummy; |
| 7 | 7 | private NoSuchMethod noSuchMethod; |
| 8 | + private Noexcept noexcept; | |
| 8 | 9 | private Nonatomic nonatomic; |
| 9 | 10 | private NoneClass none; |
| 10 | 11 | private Nonlocal nonlocal; |
| @@ -27,6 +28,8 @@ public class Obj4 { | ||
| 27 | 28 | private Return obj4Return; |
| 28 | 29 | private ObjectClass object; |
| 29 | 30 | private ObjectMapperClass objectMapper; |
| 31 | + private ObjectReaderClass objectReader; | |
| 32 | + private ObjectWriterClass objectWriter; | |
| 30 | 33 | private Of of; |
| 31 | 34 | private Oneway oneway; |
| 32 | 35 | private Open open; |
| @@ -65,9 +68,6 @@ public class Obj4 { | ||
| 65 | 68 | private RuntimeType runtimeType; |
| 66 | 69 | private S s; |
| 67 | 70 | private Sbyte sbyte; |
| 68 | - private Sealed sealed; | |
| 69 | - private Sel sel; | |
| 70 | - private Select select; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -79,6 +79,11 @@ public class Obj4 { | ||
| 79 | 79 | @JsonProperty("noSuchMethod") |
| 80 | 80 | public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; } |
| 81 | 81 | |
| 82 | + @JsonProperty("noexcept") | |
| 83 | + public Noexcept getNoexcept() { return noexcept; } | |
| 84 | + @JsonProperty("noexcept") | |
| 85 | + public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 86 | + | |
| 82 | 87 | @JsonProperty("nonatomic") |
| 83 | 88 | public Nonatomic getNonatomic() { return nonatomic; } |
| 84 | 89 | @JsonProperty("nonatomic") |
| @@ -189,6 +194,16 @@ public class Obj4 { | ||
| 189 | 194 | @JsonProperty("ObjectMapper") |
| 190 | 195 | public void setObjectMapper(ObjectMapperClass value) { this.objectMapper = value; } |
| 191 | 196 | |
| 197 | + @JsonProperty("ObjectReader") | |
| 198 | + public ObjectReaderClass getObjectReader() { return objectReader; } | |
| 199 | + @JsonProperty("ObjectReader") | |
| 200 | + public void setObjectReader(ObjectReaderClass value) { this.objectReader = value; } | |
| 201 | + | |
| 202 | + @JsonProperty("ObjectWriter") | |
| 203 | + public ObjectWriterClass getObjectWriter() { return objectWriter; } | |
| 204 | + @JsonProperty("ObjectWriter") | |
| 205 | + public void setObjectWriter(ObjectWriterClass value) { this.objectWriter = value; } | |
| 206 | + | |
| 192 | 207 | @JsonProperty("of") |
| 193 | 208 | public Of getOf() { return of; } |
| 194 | 209 | @JsonProperty("of") |
| @@ -378,19 +393,4 @@ public class Obj4 { | ||
| 378 | 393 | public Sbyte getSbyte() { return sbyte; } |
| 379 | 394 | @JsonProperty("sbyte") |
| 380 | 395 | public void setSbyte(Sbyte value) { this.sbyte = value; } |
| 381 | - | |
| 382 | - @JsonProperty("sealed") | |
| 383 | - public Sealed getSealed() { return sealed; } | |
| 384 | - @JsonProperty("sealed") | |
| 385 | - public void setSealed(Sealed value) { this.sealed = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("SEL") | |
| 388 | - public Sel getSel() { return sel; } | |
| 389 | - @JsonProperty("SEL") | |
| 390 | - public void setSel(Sel value) { this.sel = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("select") | |
| 393 | - public Select getSelect() { return select; } | |
| 394 | - @JsonProperty("select") | |
| 395 | - public void setSelect(Select value) { this.select = value; } | |
| 396 | 396 | } |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj5.java+24 −24
| @@ -19,8 +19,12 @@ public class Obj5 { | ||
| 19 | 19 | private Try obj5Try; |
| 20 | 20 | private TypeClass obj5Type; |
| 21 | 21 | private TrueClass purpleTrue; |
| 22 | + private Sealed sealed; | |
| 23 | + private Sel sel; | |
| 24 | + private Select select; | |
| 22 | 25 | private Self self; |
| 23 | 26 | private Sendable sendable; |
| 27 | + private SerializationFeatureClass serializationFeature; | |
| 24 | 28 | private Serialize serialize; |
| 25 | 29 | private SerializerProviderClass serializerProvider; |
| 26 | 30 | private Set set; |
| @@ -64,10 +68,6 @@ public class Obj5 { | ||
| 64 | 68 | private Ushort ushort; |
| 65 | 69 | private Using using; |
| 66 | 70 | private Utf8JSONReader utf8JSONReader; |
| 67 | - private Utf8JSONWriter utf8JSONWriter; | |
| 68 | - private UUIDClass uuid; | |
| 69 | - private Var var; | |
| 70 | - private Virtual virtual; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -149,6 +149,21 @@ public class Obj5 { | ||
| 149 | 149 | @JsonProperty("true") |
| 150 | 150 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 151 | 151 | |
| 152 | + @JsonProperty("sealed") | |
| 153 | + public Sealed getSealed() { return sealed; } | |
| 154 | + @JsonProperty("sealed") | |
| 155 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 156 | + | |
| 157 | + @JsonProperty("SEL") | |
| 158 | + public Sel getSel() { return sel; } | |
| 159 | + @JsonProperty("SEL") | |
| 160 | + public void setSel(Sel value) { this.sel = value; } | |
| 161 | + | |
| 162 | + @JsonProperty("select") | |
| 163 | + public Select getSelect() { return select; } | |
| 164 | + @JsonProperty("select") | |
| 165 | + public void setSelect(Select value) { this.select = value; } | |
| 166 | + | |
| 152 | 167 | @JsonProperty("Self") |
| 153 | 168 | public Self getSelf() { return self; } |
| 154 | 169 | @JsonProperty("Self") |
| @@ -159,6 +174,11 @@ public class Obj5 { | ||
| 159 | 174 | @JsonProperty("Sendable") |
| 160 | 175 | public void setSendable(Sendable value) { this.sendable = value; } |
| 161 | 176 | |
| 177 | + @JsonProperty("SerializationFeature") | |
| 178 | + public SerializationFeatureClass getSerializationFeature() { return serializationFeature; } | |
| 179 | + @JsonProperty("SerializationFeature") | |
| 180 | + public void setSerializationFeature(SerializationFeatureClass value) { this.serializationFeature = value; } | |
| 181 | + | |
| 162 | 182 | @JsonProperty("serialize") |
| 163 | 183 | public Serialize getSerialize() { return serialize; } |
| 164 | 184 | @JsonProperty("serialize") |
| @@ -373,24 +393,4 @@ public class Obj5 { | ||
| 373 | 393 | public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; } |
| 374 | 394 | @JsonProperty("Utf8JsonReader") |
| 375 | 395 | public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; } |
| 376 | - | |
| 377 | - @JsonProperty("Utf8JsonWriter") | |
| 378 | - public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; } | |
| 379 | - @JsonProperty("Utf8JsonWriter") | |
| 380 | - public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("UUID") | |
| 383 | - public UUIDClass getUUID() { return uuid; } | |
| 384 | - @JsonProperty("UUID") | |
| 385 | - public void setUUID(UUIDClass value) { this.uuid = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("var") | |
| 388 | - public Var getVar() { return var; } | |
| 389 | - @JsonProperty("var") | |
| 390 | - public void setVar(Var value) { this.var = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("virtual") | |
| 393 | - public Virtual getVirtual() { return virtual; } | |
| 394 | - @JsonProperty("virtual") | |
| 395 | - public void setVirtual(Virtual value) { this.virtual = value; } | |
| 396 | 396 | } |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+24 −0
| @@ -7,6 +7,10 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Utf8JSONWriter utf8JSONWriter; | |
| 11 | + private UUIDClass uuid; | |
| 12 | + private Var var; | |
| 13 | + private Virtual virtual; | |
| 10 | 14 | private WcharT wcharT; |
| 11 | 15 | private Weak weak; |
| 12 | 16 | private Where where; |
| @@ -37,6 +41,26 @@ public class Obj6 { | ||
| 37 | 41 | @JsonProperty("while") |
| 38 | 42 | public void setObj6While(While value) { this.obj6While = value; } |
| 39 | 43 | |
| 44 | + @JsonProperty("Utf8JsonWriter") | |
| 45 | + public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; } | |
| 46 | + @JsonProperty("Utf8JsonWriter") | |
| 47 | + public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; } | |
| 48 | + | |
| 49 | + @JsonProperty("UUID") | |
| 50 | + public UUIDClass getUUID() { return uuid; } | |
| 51 | + @JsonProperty("UUID") | |
| 52 | + public void setUUID(UUIDClass value) { this.uuid = value; } | |
| 53 | + | |
| 54 | + @JsonProperty("var") | |
| 55 | + public Var getVar() { return var; } | |
| 56 | + @JsonProperty("var") | |
| 57 | + public void setVar(Var value) { this.var = value; } | |
| 58 | + | |
| 59 | + @JsonProperty("virtual") | |
| 60 | + public Virtual getVirtual() { return virtual; } | |
| 61 | + @JsonProperty("virtual") | |
| 62 | + public void setVirtual(Virtual value) { this.virtual = value; } | |
| 63 | + | |
| 40 | 64 | @JsonProperty("wchar_t") |
| 41 | 65 | public WcharT getWcharT() { return wcharT; } |
| 42 | 66 | @JsonProperty("wchar_t") |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / ObjectReaderClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class ObjectReaderClass { | |
| 6 | + private long objectReader; | |
| 7 | + | |
| 8 | + @JsonProperty("ObjectReader") | |
| 9 | + public long getObjectReader() { return objectReader; } | |
| 10 | + @JsonProperty("ObjectReader") | |
| 11 | + public void setObjectReader(long value) { this.objectReader = value; } | |
| 12 | +} |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / ObjectWriterClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class ObjectWriterClass { | |
| 6 | + private long objectWriter; | |
| 7 | + | |
| 8 | + @JsonProperty("ObjectWriter") | |
| 9 | + public long getObjectWriter() { return objectWriter; } | |
| 10 | + @JsonProperty("ObjectWriter") | |
| 11 | + public void setObjectWriter(long value) { this.objectWriter = value; } | |
| 12 | +} |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / SerializationFeatureClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class SerializationFeatureClass { | |
| 6 | + private long serializationFeature; | |
| 7 | + | |
| 8 | + @JsonProperty("SerializationFeature") | |
| 9 | + public long getSerializationFeature() { return serializationFeature; } | |
| 10 | + @JsonProperty("SerializationFeature") | |
| 11 | + public void setSerializationFeature(long value) { this.serializationFeature = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / DeserializationFeatureClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class DeserializationFeatureClass { | |
| 6 | + private long deserializationFeature; | |
| 7 | + | |
| 8 | + @JsonProperty("DeserializationFeature") | |
| 9 | + public long getDeserializationFeature() { return deserializationFeature; } | |
| 10 | + @JsonProperty("DeserializationFeature") | |
| 11 | + public void setDeserializationFeature(long value) { this.deserializationFeature = value; } | |
| 12 | +} |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj2.java+6 −6
| @@ -22,6 +22,7 @@ public class Obj2 { | ||
| 22 | 22 | private Del del; |
| 23 | 23 | private Delegate delegate; |
| 24 | 24 | private Delete delete; |
| 25 | + private DeserializationFeatureClass deserializationFeature; | |
| 25 | 26 | private Dict dict; |
| 26 | 27 | private Dictionary dictionary; |
| 27 | 28 | private DidSet didSet; |
| @@ -66,7 +67,6 @@ public class Obj2 { | ||
| 66 | 67 | private Finally obj2Finally; |
| 67 | 68 | private Float obj2Float; |
| 68 | 69 | private For obj2For; |
| 69 | - private Goto obj2Goto; | |
| 70 | 70 | private FalseClass purpleFalse; |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("DateFormatter") |
| @@ -164,6 +164,11 @@ public class Obj2 { | ||
| 164 | 164 | @JsonProperty("delete") |
| 165 | 165 | public void setDelete(Delete value) { this.delete = value; } |
| 166 | 166 | |
| 167 | + @JsonProperty("DeserializationFeature") | |
| 168 | + public DeserializationFeatureClass getDeserializationFeature() { return deserializationFeature; } | |
| 169 | + @JsonProperty("DeserializationFeature") | |
| 170 | + public void setDeserializationFeature(DeserializationFeatureClass value) { this.deserializationFeature = value; } | |
| 171 | + | |
| 167 | 172 | @JsonProperty("dict") |
| 168 | 173 | public Dict getDict() { return dict; } |
| 169 | 174 | @JsonProperty("dict") |
| @@ -384,11 +389,6 @@ public class Obj2 { | ||
| 384 | 389 | @JsonProperty("for") |
| 385 | 390 | public void setObj2For(For value) { this.obj2For = value; } |
| 386 | 391 | |
| 387 | - @JsonProperty("goto") | |
| 388 | - public Goto getObj2Goto() { return obj2Goto; } | |
| 389 | - @JsonProperty("goto") | |
| 390 | - public void setObj2Goto(Goto value) { this.obj2Goto = value; } | |
| 391 | - | |
| 392 | 392 | @JsonProperty("false") |
| 393 | 393 | public FalseClass getPurpleFalse() { return purpleFalse; } |
| 394 | 394 | @JsonProperty("false") |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+5 −5
| @@ -58,7 +58,7 @@ public class Obj3 { | ||
| 58 | 58 | private Newtonsoft newtonsoft; |
| 59 | 59 | private Nil nil; |
| 60 | 60 | private No no; |
| 61 | - private Noexcept noexcept; | |
| 61 | + private Goto obj3Goto; | |
| 62 | 62 | private If obj3If; |
| 63 | 63 | private Implements obj3Implements; |
| 64 | 64 | private Import obj3Import; |
| @@ -344,10 +344,10 @@ public class Obj3 { | ||
| 344 | 344 | @JsonProperty("NO") |
| 345 | 345 | public void setNo(No value) { this.no = value; } |
| 346 | 346 | |
| 347 | - @JsonProperty("noexcept") | |
| 348 | - public Noexcept getNoexcept() { return noexcept; } | |
| 349 | - @JsonProperty("noexcept") | |
| 350 | - public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 347 | + @JsonProperty("goto") | |
| 348 | + public Goto getObj3Goto() { return obj3Goto; } | |
| 349 | + @JsonProperty("goto") | |
| 350 | + public void setObj3Goto(Goto value) { this.obj3Goto = value; } | |
| 351 | 351 | |
| 352 | 352 | @JsonProperty("if") |
| 353 | 353 | public If getObj3If() { return obj3If; } |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj4.java+18 −18
| @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*; | ||
| 5 | 5 | public class Obj4 { |
| 6 | 6 | private long dummy; |
| 7 | 7 | private NoSuchMethod noSuchMethod; |
| 8 | + private Noexcept noexcept; | |
| 8 | 9 | private Nonatomic nonatomic; |
| 9 | 10 | private NoneClass none; |
| 10 | 11 | private Nonlocal nonlocal; |
| @@ -27,6 +28,8 @@ public class Obj4 { | ||
| 27 | 28 | private Return obj4Return; |
| 28 | 29 | private ObjectClass object; |
| 29 | 30 | private ObjectMapperClass objectMapper; |
| 31 | + private ObjectReaderClass objectReader; | |
| 32 | + private ObjectWriterClass objectWriter; | |
| 30 | 33 | private Of of; |
| 31 | 34 | private Oneway oneway; |
| 32 | 35 | private Open open; |
| @@ -65,9 +68,6 @@ public class Obj4 { | ||
| 65 | 68 | private RuntimeType runtimeType; |
| 66 | 69 | private S s; |
| 67 | 70 | private Sbyte sbyte; |
| 68 | - private Sealed sealed; | |
| 69 | - private Sel sel; | |
| 70 | - private Select select; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -79,6 +79,11 @@ public class Obj4 { | ||
| 79 | 79 | @JsonProperty("noSuchMethod") |
| 80 | 80 | public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; } |
| 81 | 81 | |
| 82 | + @JsonProperty("noexcept") | |
| 83 | + public Noexcept getNoexcept() { return noexcept; } | |
| 84 | + @JsonProperty("noexcept") | |
| 85 | + public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 86 | + | |
| 82 | 87 | @JsonProperty("nonatomic") |
| 83 | 88 | public Nonatomic getNonatomic() { return nonatomic; } |
| 84 | 89 | @JsonProperty("nonatomic") |
| @@ -189,6 +194,16 @@ public class Obj4 { | ||
| 189 | 194 | @JsonProperty("ObjectMapper") |
| 190 | 195 | public void setObjectMapper(ObjectMapperClass value) { this.objectMapper = value; } |
| 191 | 196 | |
| 197 | + @JsonProperty("ObjectReader") | |
| 198 | + public ObjectReaderClass getObjectReader() { return objectReader; } | |
| 199 | + @JsonProperty("ObjectReader") | |
| 200 | + public void setObjectReader(ObjectReaderClass value) { this.objectReader = value; } | |
| 201 | + | |
| 202 | + @JsonProperty("ObjectWriter") | |
| 203 | + public ObjectWriterClass getObjectWriter() { return objectWriter; } | |
| 204 | + @JsonProperty("ObjectWriter") | |
| 205 | + public void setObjectWriter(ObjectWriterClass value) { this.objectWriter = value; } | |
| 206 | + | |
| 192 | 207 | @JsonProperty("of") |
| 193 | 208 | public Of getOf() { return of; } |
| 194 | 209 | @JsonProperty("of") |
| @@ -378,19 +393,4 @@ public class Obj4 { | ||
| 378 | 393 | public Sbyte getSbyte() { return sbyte; } |
| 379 | 394 | @JsonProperty("sbyte") |
| 380 | 395 | public void setSbyte(Sbyte value) { this.sbyte = value; } |
| 381 | - | |
| 382 | - @JsonProperty("sealed") | |
| 383 | - public Sealed getSealed() { return sealed; } | |
| 384 | - @JsonProperty("sealed") | |
| 385 | - public void setSealed(Sealed value) { this.sealed = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("SEL") | |
| 388 | - public Sel getSel() { return sel; } | |
| 389 | - @JsonProperty("SEL") | |
| 390 | - public void setSel(Sel value) { this.sel = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("select") | |
| 393 | - public Select getSelect() { return select; } | |
| 394 | - @JsonProperty("select") | |
| 395 | - public void setSelect(Select value) { this.select = value; } | |
| 396 | 396 | } |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj5.java+24 −24
| @@ -19,8 +19,12 @@ public class Obj5 { | ||
| 19 | 19 | private Try obj5Try; |
| 20 | 20 | private TypeClass obj5Type; |
| 21 | 21 | private TrueClass purpleTrue; |
| 22 | + private Sealed sealed; | |
| 23 | + private Sel sel; | |
| 24 | + private Select select; | |
| 22 | 25 | private Self self; |
| 23 | 26 | private Sendable sendable; |
| 27 | + private SerializationFeatureClass serializationFeature; | |
| 24 | 28 | private Serialize serialize; |
| 25 | 29 | private SerializerProviderClass serializerProvider; |
| 26 | 30 | private Set set; |
| @@ -64,10 +68,6 @@ public class Obj5 { | ||
| 64 | 68 | private Ushort ushort; |
| 65 | 69 | private Using using; |
| 66 | 70 | private Utf8JSONReader utf8JSONReader; |
| 67 | - private Utf8JSONWriter utf8JSONWriter; | |
| 68 | - private UUIDClass uuid; | |
| 69 | - private Var var; | |
| 70 | - private Virtual virtual; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -149,6 +149,21 @@ public class Obj5 { | ||
| 149 | 149 | @JsonProperty("true") |
| 150 | 150 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 151 | 151 | |
| 152 | + @JsonProperty("sealed") | |
| 153 | + public Sealed getSealed() { return sealed; } | |
| 154 | + @JsonProperty("sealed") | |
| 155 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 156 | + | |
| 157 | + @JsonProperty("SEL") | |
| 158 | + public Sel getSel() { return sel; } | |
| 159 | + @JsonProperty("SEL") | |
| 160 | + public void setSel(Sel value) { this.sel = value; } | |
| 161 | + | |
| 162 | + @JsonProperty("select") | |
| 163 | + public Select getSelect() { return select; } | |
| 164 | + @JsonProperty("select") | |
| 165 | + public void setSelect(Select value) { this.select = value; } | |
| 166 | + | |
| 152 | 167 | @JsonProperty("Self") |
| 153 | 168 | public Self getSelf() { return self; } |
| 154 | 169 | @JsonProperty("Self") |
| @@ -159,6 +174,11 @@ public class Obj5 { | ||
| 159 | 174 | @JsonProperty("Sendable") |
| 160 | 175 | public void setSendable(Sendable value) { this.sendable = value; } |
| 161 | 176 | |
| 177 | + @JsonProperty("SerializationFeature") | |
| 178 | + public SerializationFeatureClass getSerializationFeature() { return serializationFeature; } | |
| 179 | + @JsonProperty("SerializationFeature") | |
| 180 | + public void setSerializationFeature(SerializationFeatureClass value) { this.serializationFeature = value; } | |
| 181 | + | |
| 162 | 182 | @JsonProperty("serialize") |
| 163 | 183 | public Serialize getSerialize() { return serialize; } |
| 164 | 184 | @JsonProperty("serialize") |
| @@ -373,24 +393,4 @@ public class Obj5 { | ||
| 373 | 393 | public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; } |
| 374 | 394 | @JsonProperty("Utf8JsonReader") |
| 375 | 395 | public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; } |
| 376 | - | |
| 377 | - @JsonProperty("Utf8JsonWriter") | |
| 378 | - public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; } | |
| 379 | - @JsonProperty("Utf8JsonWriter") | |
| 380 | - public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("UUID") | |
| 383 | - public UUIDClass getUUID() { return uuid; } | |
| 384 | - @JsonProperty("UUID") | |
| 385 | - public void setUUID(UUIDClass value) { this.uuid = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("var") | |
| 388 | - public Var getVar() { return var; } | |
| 389 | - @JsonProperty("var") | |
| 390 | - public void setVar(Var value) { this.var = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("virtual") | |
| 393 | - public Virtual getVirtual() { return virtual; } | |
| 394 | - @JsonProperty("virtual") | |
| 395 | - public void setVirtual(Virtual value) { this.virtual = value; } | |
| 396 | 396 | } |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+24 −0
| @@ -7,6 +7,10 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Utf8JSONWriter utf8JSONWriter; | |
| 11 | + private UUIDClass uuid; | |
| 12 | + private Var var; | |
| 13 | + private Virtual virtual; | |
| 10 | 14 | private WcharT wcharT; |
| 11 | 15 | private Weak weak; |
| 12 | 16 | private Where where; |
| @@ -37,6 +41,26 @@ public class Obj6 { | ||
| 37 | 41 | @JsonProperty("while") |
| 38 | 42 | public void setObj6While(While value) { this.obj6While = value; } |
| 39 | 43 | |
| 44 | + @JsonProperty("Utf8JsonWriter") | |
| 45 | + public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; } | |
| 46 | + @JsonProperty("Utf8JsonWriter") | |
| 47 | + public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; } | |
| 48 | + | |
| 49 | + @JsonProperty("UUID") | |
| 50 | + public UUIDClass getUUID() { return uuid; } | |
| 51 | + @JsonProperty("UUID") | |
| 52 | + public void setUUID(UUIDClass value) { this.uuid = value; } | |
| 53 | + | |
| 54 | + @JsonProperty("var") | |
| 55 | + public Var getVar() { return var; } | |
| 56 | + @JsonProperty("var") | |
| 57 | + public void setVar(Var value) { this.var = value; } | |
| 58 | + | |
| 59 | + @JsonProperty("virtual") | |
| 60 | + public Virtual getVirtual() { return virtual; } | |
| 61 | + @JsonProperty("virtual") | |
| 62 | + public void setVirtual(Virtual value) { this.virtual = value; } | |
| 63 | + | |
| 40 | 64 | @JsonProperty("wchar_t") |
| 41 | 65 | public WcharT getWcharT() { return wcharT; } |
| 42 | 66 | @JsonProperty("wchar_t") |
Ajava-lombokdefault / src / main / java / io / quicktype / ObjectReaderClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class ObjectReaderClass { | |
| 6 | + private long objectReader; | |
| 7 | + | |
| 8 | + @JsonProperty("ObjectReader") | |
| 9 | + public long getObjectReader() { return objectReader; } | |
| 10 | + @JsonProperty("ObjectReader") | |
| 11 | + public void setObjectReader(long value) { this.objectReader = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / ObjectWriterClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class ObjectWriterClass { | |
| 6 | + private long objectWriter; | |
| 7 | + | |
| 8 | + @JsonProperty("ObjectWriter") | |
| 9 | + public long getObjectWriter() { return objectWriter; } | |
| 10 | + @JsonProperty("ObjectWriter") | |
| 11 | + public void setObjectWriter(long value) { this.objectWriter = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / SerializationFeatureClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class SerializationFeatureClass { | |
| 6 | + private long serializationFeature; | |
| 7 | + | |
| 8 | + @JsonProperty("SerializationFeature") | |
| 9 | + public long getSerializationFeature() { return serializationFeature; } | |
| 10 | + @JsonProperty("SerializationFeature") | |
| 11 | + public void setSerializationFeature(long value) { this.serializationFeature = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / DeserializationFeatureClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class DeserializationFeatureClass { | |
| 6 | + private long deserializationFeature; | |
| 7 | + | |
| 8 | + @JsonProperty("DeserializationFeature") | |
| 9 | + public long getDeserializationFeature() { return deserializationFeature; } | |
| 10 | + @JsonProperty("DeserializationFeature") | |
| 11 | + public void setDeserializationFeature(long value) { this.deserializationFeature = value; } | |
| 12 | +} |
Mjavadefault / src / main / java / io / quicktype / Obj2.java+6 −6
| @@ -22,6 +22,7 @@ public class Obj2 { | ||
| 22 | 22 | private Del del; |
| 23 | 23 | private Delegate delegate; |
| 24 | 24 | private Delete delete; |
| 25 | + private DeserializationFeatureClass deserializationFeature; | |
| 25 | 26 | private Dict dict; |
| 26 | 27 | private Dictionary dictionary; |
| 27 | 28 | private DidSet didSet; |
| @@ -66,7 +67,6 @@ public class Obj2 { | ||
| 66 | 67 | private Finally obj2Finally; |
| 67 | 68 | private Float obj2Float; |
| 68 | 69 | private For obj2For; |
| 69 | - private Goto obj2Goto; | |
| 70 | 70 | private FalseClass purpleFalse; |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("DateFormatter") |
| @@ -164,6 +164,11 @@ public class Obj2 { | ||
| 164 | 164 | @JsonProperty("delete") |
| 165 | 165 | public void setDelete(Delete value) { this.delete = value; } |
| 166 | 166 | |
| 167 | + @JsonProperty("DeserializationFeature") | |
| 168 | + public DeserializationFeatureClass getDeserializationFeature() { return deserializationFeature; } | |
| 169 | + @JsonProperty("DeserializationFeature") | |
| 170 | + public void setDeserializationFeature(DeserializationFeatureClass value) { this.deserializationFeature = value; } | |
| 171 | + | |
| 167 | 172 | @JsonProperty("dict") |
| 168 | 173 | public Dict getDict() { return dict; } |
| 169 | 174 | @JsonProperty("dict") |
| @@ -384,11 +389,6 @@ public class Obj2 { | ||
| 384 | 389 | @JsonProperty("for") |
| 385 | 390 | public void setObj2For(For value) { this.obj2For = value; } |
| 386 | 391 | |
| 387 | - @JsonProperty("goto") | |
| 388 | - public Goto getObj2Goto() { return obj2Goto; } | |
| 389 | - @JsonProperty("goto") | |
| 390 | - public void setObj2Goto(Goto value) { this.obj2Goto = value; } | |
| 391 | - | |
| 392 | 392 | @JsonProperty("false") |
| 393 | 393 | public FalseClass getPurpleFalse() { return purpleFalse; } |
| 394 | 394 | @JsonProperty("false") |
Mjavadefault / src / main / java / io / quicktype / Obj3.java+5 −5
| @@ -58,7 +58,7 @@ public class Obj3 { | ||
| 58 | 58 | private Newtonsoft newtonsoft; |
| 59 | 59 | private Nil nil; |
| 60 | 60 | private No no; |
| 61 | - private Noexcept noexcept; | |
| 61 | + private Goto obj3Goto; | |
| 62 | 62 | private If obj3If; |
| 63 | 63 | private Implements obj3Implements; |
| 64 | 64 | private Import obj3Import; |
| @@ -344,10 +344,10 @@ public class Obj3 { | ||
| 344 | 344 | @JsonProperty("NO") |
| 345 | 345 | public void setNo(No value) { this.no = value; } |
| 346 | 346 | |
| 347 | - @JsonProperty("noexcept") | |
| 348 | - public Noexcept getNoexcept() { return noexcept; } | |
| 349 | - @JsonProperty("noexcept") | |
| 350 | - public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 347 | + @JsonProperty("goto") | |
| 348 | + public Goto getObj3Goto() { return obj3Goto; } | |
| 349 | + @JsonProperty("goto") | |
| 350 | + public void setObj3Goto(Goto value) { this.obj3Goto = value; } | |
| 351 | 351 | |
| 352 | 352 | @JsonProperty("if") |
| 353 | 353 | public If getObj3If() { return obj3If; } |
Mjavadefault / src / main / java / io / quicktype / Obj4.java+18 −18
| @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.*; | ||
| 5 | 5 | public class Obj4 { |
| 6 | 6 | private long dummy; |
| 7 | 7 | private NoSuchMethod noSuchMethod; |
| 8 | + private Noexcept noexcept; | |
| 8 | 9 | private Nonatomic nonatomic; |
| 9 | 10 | private NoneClass none; |
| 10 | 11 | private Nonlocal nonlocal; |
| @@ -27,6 +28,8 @@ public class Obj4 { | ||
| 27 | 28 | private Return obj4Return; |
| 28 | 29 | private ObjectClass object; |
| 29 | 30 | private ObjectMapperClass objectMapper; |
| 31 | + private ObjectReaderClass objectReader; | |
| 32 | + private ObjectWriterClass objectWriter; | |
| 30 | 33 | private Of of; |
| 31 | 34 | private Oneway oneway; |
| 32 | 35 | private Open open; |
| @@ -65,9 +68,6 @@ public class Obj4 { | ||
| 65 | 68 | private RuntimeType runtimeType; |
| 66 | 69 | private S s; |
| 67 | 70 | private Sbyte sbyte; |
| 68 | - private Sealed sealed; | |
| 69 | - private Sel sel; | |
| 70 | - private Select select; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -79,6 +79,11 @@ public class Obj4 { | ||
| 79 | 79 | @JsonProperty("noSuchMethod") |
| 80 | 80 | public void setNoSuchMethod(NoSuchMethod value) { this.noSuchMethod = value; } |
| 81 | 81 | |
| 82 | + @JsonProperty("noexcept") | |
| 83 | + public Noexcept getNoexcept() { return noexcept; } | |
| 84 | + @JsonProperty("noexcept") | |
| 85 | + public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 86 | + | |
| 82 | 87 | @JsonProperty("nonatomic") |
| 83 | 88 | public Nonatomic getNonatomic() { return nonatomic; } |
| 84 | 89 | @JsonProperty("nonatomic") |
| @@ -189,6 +194,16 @@ public class Obj4 { | ||
| 189 | 194 | @JsonProperty("ObjectMapper") |
| 190 | 195 | public void setObjectMapper(ObjectMapperClass value) { this.objectMapper = value; } |
| 191 | 196 | |
| 197 | + @JsonProperty("ObjectReader") | |
| 198 | + public ObjectReaderClass getObjectReader() { return objectReader; } | |
| 199 | + @JsonProperty("ObjectReader") | |
| 200 | + public void setObjectReader(ObjectReaderClass value) { this.objectReader = value; } | |
| 201 | + | |
| 202 | + @JsonProperty("ObjectWriter") | |
| 203 | + public ObjectWriterClass getObjectWriter() { return objectWriter; } | |
| 204 | + @JsonProperty("ObjectWriter") | |
| 205 | + public void setObjectWriter(ObjectWriterClass value) { this.objectWriter = value; } | |
| 206 | + | |
| 192 | 207 | @JsonProperty("of") |
| 193 | 208 | public Of getOf() { return of; } |
| 194 | 209 | @JsonProperty("of") |
| @@ -378,19 +393,4 @@ public class Obj4 { | ||
| 378 | 393 | public Sbyte getSbyte() { return sbyte; } |
| 379 | 394 | @JsonProperty("sbyte") |
| 380 | 395 | public void setSbyte(Sbyte value) { this.sbyte = value; } |
| 381 | - | |
| 382 | - @JsonProperty("sealed") | |
| 383 | - public Sealed getSealed() { return sealed; } | |
| 384 | - @JsonProperty("sealed") | |
| 385 | - public void setSealed(Sealed value) { this.sealed = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("SEL") | |
| 388 | - public Sel getSel() { return sel; } | |
| 389 | - @JsonProperty("SEL") | |
| 390 | - public void setSel(Sel value) { this.sel = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("select") | |
| 393 | - public Select getSelect() { return select; } | |
| 394 | - @JsonProperty("select") | |
| 395 | - public void setSelect(Select value) { this.select = value; } | |
| 396 | 396 | } |
Mjavadefault / src / main / java / io / quicktype / Obj5.java+24 −24
| @@ -19,8 +19,12 @@ public class Obj5 { | ||
| 19 | 19 | private Try obj5Try; |
| 20 | 20 | private TypeClass obj5Type; |
| 21 | 21 | private TrueClass purpleTrue; |
| 22 | + private Sealed sealed; | |
| 23 | + private Sel sel; | |
| 24 | + private Select select; | |
| 22 | 25 | private Self self; |
| 23 | 26 | private Sendable sendable; |
| 27 | + private SerializationFeatureClass serializationFeature; | |
| 24 | 28 | private Serialize serialize; |
| 25 | 29 | private SerializerProviderClass serializerProvider; |
| 26 | 30 | private Set set; |
| @@ -64,10 +68,6 @@ public class Obj5 { | ||
| 64 | 68 | private Ushort ushort; |
| 65 | 69 | private Using using; |
| 66 | 70 | private Utf8JSONReader utf8JSONReader; |
| 67 | - private Utf8JSONWriter utf8JSONWriter; | |
| 68 | - private UUIDClass uuid; | |
| 69 | - private Var var; | |
| 70 | - private Virtual virtual; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -149,6 +149,21 @@ public class Obj5 { | ||
| 149 | 149 | @JsonProperty("true") |
| 150 | 150 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 151 | 151 | |
| 152 | + @JsonProperty("sealed") | |
| 153 | + public Sealed getSealed() { return sealed; } | |
| 154 | + @JsonProperty("sealed") | |
| 155 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 156 | + | |
| 157 | + @JsonProperty("SEL") | |
| 158 | + public Sel getSel() { return sel; } | |
| 159 | + @JsonProperty("SEL") | |
| 160 | + public void setSel(Sel value) { this.sel = value; } | |
| 161 | + | |
| 162 | + @JsonProperty("select") | |
| 163 | + public Select getSelect() { return select; } | |
| 164 | + @JsonProperty("select") | |
| 165 | + public void setSelect(Select value) { this.select = value; } | |
| 166 | + | |
| 152 | 167 | @JsonProperty("Self") |
| 153 | 168 | public Self getSelf() { return self; } |
| 154 | 169 | @JsonProperty("Self") |
| @@ -159,6 +174,11 @@ public class Obj5 { | ||
| 159 | 174 | @JsonProperty("Sendable") |
| 160 | 175 | public void setSendable(Sendable value) { this.sendable = value; } |
| 161 | 176 | |
| 177 | + @JsonProperty("SerializationFeature") | |
| 178 | + public SerializationFeatureClass getSerializationFeature() { return serializationFeature; } | |
| 179 | + @JsonProperty("SerializationFeature") | |
| 180 | + public void setSerializationFeature(SerializationFeatureClass value) { this.serializationFeature = value; } | |
| 181 | + | |
| 162 | 182 | @JsonProperty("serialize") |
| 163 | 183 | public Serialize getSerialize() { return serialize; } |
| 164 | 184 | @JsonProperty("serialize") |
| @@ -373,24 +393,4 @@ public class Obj5 { | ||
| 373 | 393 | public Utf8JSONReader getUtf8JSONReader() { return utf8JSONReader; } |
| 374 | 394 | @JsonProperty("Utf8JsonReader") |
| 375 | 395 | public void setUtf8JSONReader(Utf8JSONReader value) { this.utf8JSONReader = value; } |
| 376 | - | |
| 377 | - @JsonProperty("Utf8JsonWriter") | |
| 378 | - public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; } | |
| 379 | - @JsonProperty("Utf8JsonWriter") | |
| 380 | - public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("UUID") | |
| 383 | - public UUIDClass getUUID() { return uuid; } | |
| 384 | - @JsonProperty("UUID") | |
| 385 | - public void setUUID(UUIDClass value) { this.uuid = value; } | |
| 386 | - | |
| 387 | - @JsonProperty("var") | |
| 388 | - public Var getVar() { return var; } | |
| 389 | - @JsonProperty("var") | |
| 390 | - public void setVar(Var value) { this.var = value; } | |
| 391 | - | |
| 392 | - @JsonProperty("virtual") | |
| 393 | - public Virtual getVirtual() { return virtual; } | |
| 394 | - @JsonProperty("virtual") | |
| 395 | - public void setVirtual(Virtual value) { this.virtual = value; } | |
| 396 | 396 | } |
Mjavadefault / src / main / java / io / quicktype / Obj6.java+24 −0
| @@ -7,6 +7,10 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Utf8JSONWriter utf8JSONWriter; | |
| 11 | + private UUIDClass uuid; | |
| 12 | + private Var var; | |
| 13 | + private Virtual virtual; | |
| 10 | 14 | private WcharT wcharT; |
| 11 | 15 | private Weak weak; |
| 12 | 16 | private Where where; |
| @@ -37,6 +41,26 @@ public class Obj6 { | ||
| 37 | 41 | @JsonProperty("while") |
| 38 | 42 | public void setObj6While(While value) { this.obj6While = value; } |
| 39 | 43 | |
| 44 | + @JsonProperty("Utf8JsonWriter") | |
| 45 | + public Utf8JSONWriter getUtf8JSONWriter() { return utf8JSONWriter; } | |
| 46 | + @JsonProperty("Utf8JsonWriter") | |
| 47 | + public void setUtf8JSONWriter(Utf8JSONWriter value) { this.utf8JSONWriter = value; } | |
| 48 | + | |
| 49 | + @JsonProperty("UUID") | |
| 50 | + public UUIDClass getUUID() { return uuid; } | |
| 51 | + @JsonProperty("UUID") | |
| 52 | + public void setUUID(UUIDClass value) { this.uuid = value; } | |
| 53 | + | |
| 54 | + @JsonProperty("var") | |
| 55 | + public Var getVar() { return var; } | |
| 56 | + @JsonProperty("var") | |
| 57 | + public void setVar(Var value) { this.var = value; } | |
| 58 | + | |
| 59 | + @JsonProperty("virtual") | |
| 60 | + public Virtual getVirtual() { return virtual; } | |
| 61 | + @JsonProperty("virtual") | |
| 62 | + public void setVirtual(Virtual value) { this.virtual = value; } | |
| 63 | + | |
| 40 | 64 | @JsonProperty("wchar_t") |
| 41 | 65 | public WcharT getWcharT() { return wcharT; } |
| 42 | 66 | @JsonProperty("wchar_t") |
Ajavadefault / src / main / java / io / quicktype / ObjectReaderClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class ObjectReaderClass { | |
| 6 | + private long objectReader; | |
| 7 | + | |
| 8 | + @JsonProperty("ObjectReader") | |
| 9 | + public long getObjectReader() { return objectReader; } | |
| 10 | + @JsonProperty("ObjectReader") | |
| 11 | + public void setObjectReader(long value) { this.objectReader = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / ObjectWriterClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class ObjectWriterClass { | |
| 6 | + private long objectWriter; | |
| 7 | + | |
| 8 | + @JsonProperty("ObjectWriter") | |
| 9 | + public long getObjectWriter() { return objectWriter; } | |
| 10 | + @JsonProperty("ObjectWriter") | |
| 11 | + public void setObjectWriter(long value) { this.objectWriter = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / SerializationFeatureClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class SerializationFeatureClass { | |
| 6 | + private long serializationFeature; | |
| 7 | + | |
| 8 | + @JsonProperty("SerializationFeature") | |
| 9 | + public long getSerializationFeature() { return serializationFeature; } | |
| 10 | + @JsonProperty("SerializationFeature") | |
| 11 | + public void setSerializationFeature(long value) { this.serializationFeature = value; } | |
| 12 | +} |
Mjavascript-prop-typesdefault / toplevel.js+64 −44
| @@ -87,6 +87,7 @@ let _DateTime; | ||
| 87 | 87 | let _DateTimeStyles; |
| 88 | 88 | let _Decoder; |
| 89 | 89 | let _DecodingError; |
| 90 | +let _DeserializationFeature; | |
| 90 | 91 | let _Encoder; |
| 91 | 92 | let _EnumValues; |
| 92 | 93 | let _Equatable; |
| @@ -143,7 +144,6 @@ let _Function; | ||
| 143 | 144 | let _Get; |
| 144 | 145 | let _Global; |
| 145 | 146 | let _Go; |
| 146 | -let _Goto; | |
| 147 | 147 | let _Obj3; |
| 148 | 148 | let _Hashable; |
| 149 | 149 | let _Hasher; |
| @@ -163,6 +163,7 @@ let _JSONTokenType; | ||
| 163 | 163 | let _Locale; |
| 164 | 164 | let _MapEntry; |
| 165 | 165 | let _No; |
| 166 | +let _Goto; | |
| 166 | 167 | let _Guard; |
| 167 | 168 | let _HasOwnProperty; |
| 168 | 169 | let _HashCode; |
| @@ -208,7 +209,6 @@ let _Native; | ||
| 208 | 209 | let _New; |
| 209 | 210 | let _Newtonsoft; |
| 210 | 211 | let _Nil; |
| 211 | -let _Noexcept; | |
| 212 | 212 | let _Obj4; |
| 213 | 213 | let _NSError; |
| 214 | 214 | let _NSObject; |
| @@ -216,10 +216,12 @@ let _NSString; | ||
| 216 | 216 | let _Null; |
| 217 | 217 | let _None; |
| 218 | 218 | let _ObjectMapper; |
| 219 | +let _ObjectReader; | |
| 220 | +let _ObjectWriter; | |
| 219 | 221 | let _Protocol; |
| 220 | 222 | let _RegExp; |
| 221 | -let _Sel; | |
| 222 | 223 | let _NoSuchMethod; |
| 224 | +let _Noexcept; | |
| 223 | 225 | let _Nonatomic; |
| 224 | 226 | let _NoneClass; |
| 225 | 227 | let _Nonlocal; |
| @@ -272,11 +274,11 @@ let _Right; | ||
| 272 | 274 | let _RuntimeType; |
| 273 | 275 | let _S; |
| 274 | 276 | let _Sbyte; |
| 275 | -let _Sealed; | |
| 276 | -let _Select; | |
| 277 | 277 | let _Obj5; |
| 278 | +let _Sel; | |
| 278 | 279 | let _Self; |
| 279 | 280 | let _Sendable; |
| 281 | +let _SerializationFeature; | |
| 280 | 282 | let _SerializerProvider; |
| 281 | 283 | let _SimpleModule; |
| 282 | 284 | let _Standards; |
| @@ -287,9 +289,9 @@ let _TimeOnlyConverter; | ||
| 287 | 289 | let _TimeZone; |
| 288 | 290 | let _True; |
| 289 | 291 | let _Type; |
| 290 | -let _UUID; | |
| 291 | 292 | let _Utf8JSONReader; |
| 292 | -let _Utf8JSONWriter; | |
| 293 | +let _Sealed; | |
| 294 | +let _Select; | |
| 293 | 295 | let _SelfClass; |
| 294 | 296 | let _Serialize; |
| 295 | 297 | let _Set; |
| @@ -337,10 +339,12 @@ let _Unsafe; | ||
| 337 | 339 | let _Unsigned; |
| 338 | 340 | let _Ushort; |
| 339 | 341 | let _Using; |
| 340 | -let _Var; | |
| 341 | -let _Virtual; | |
| 342 | 342 | let _Obj6; |
| 343 | +let _UUID; | |
| 344 | +let _Utf8JSONWriter; | |
| 343 | 345 | let _Yes; |
| 346 | +let _Var; | |
| 347 | +let _Virtual; | |
| 344 | 348 | let _Void; |
| 345 | 349 | let _Volatile; |
| 346 | 350 | let _WcharT; |
| @@ -633,6 +637,9 @@ _Decoder = PropTypes.shape({ | ||
| 633 | 637 | _DecodingError = PropTypes.shape({ |
| 634 | 638 | "DecodingError": PropTypes.oneOfType([Integer]).isRequired, |
| 635 | 639 | }); |
| 640 | +_DeserializationFeature = PropTypes.shape({ | |
| 641 | + "DeserializationFeature": PropTypes.oneOfType([Integer]).isRequired, | |
| 642 | +}); | |
| 636 | 643 | _Encoder = PropTypes.shape({ |
| 637 | 644 | "Encoder": PropTypes.oneOfType([Integer]).isRequired, |
| 638 | 645 | }); |
| @@ -801,9 +808,6 @@ _Global = PropTypes.shape({ | ||
| 801 | 808 | _Go = PropTypes.shape({ |
| 802 | 809 | "go": PropTypes.oneOfType([Integer]).isRequired, |
| 803 | 810 | }); |
| 804 | -_Goto = PropTypes.shape({ | |
| 805 | - "goto": PropTypes.oneOfType([Integer]).isRequired, | |
| 806 | -}); | |
| 807 | 811 | _Obj2 = PropTypes.shape({ |
| 808 | 812 | "DateFormatter": _DateFormatter, |
| 809 | 813 | "DateOnly": _DateOnly, |
| @@ -812,6 +816,7 @@ _Obj2 = PropTypes.shape({ | ||
| 812 | 816 | "DateTimeStyles": _DateTimeStyles, |
| 813 | 817 | "Decoder": _Decoder, |
| 814 | 818 | "DecodingError": _DecodingError, |
| 819 | + "DeserializationFeature": _DeserializationFeature, | |
| 815 | 820 | "Encoder": _Encoder, |
| 816 | 821 | "EnumValues": _EnumValues, |
| 817 | 822 | "Equatable": _Equatable, |
| @@ -869,7 +874,6 @@ _Obj2 = PropTypes.shape({ | ||
| 869 | 874 | "get": _Get, |
| 870 | 875 | "global": _Global, |
| 871 | 876 | "go": _Go, |
| 872 | - "goto": _Goto, | |
| 873 | 877 | }); |
| 874 | 878 | _Hashable = PropTypes.shape({ |
| 875 | 879 | "Hashable": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -925,6 +929,9 @@ _MapEntry = PropTypes.shape({ | ||
| 925 | 929 | _No = PropTypes.shape({ |
| 926 | 930 | "NO": PropTypes.oneOfType([Integer]).isRequired, |
| 927 | 931 | }); |
| 932 | +_Goto = PropTypes.shape({ | |
| 933 | + "goto": PropTypes.oneOfType([Integer]).isRequired, | |
| 934 | +}); | |
| 928 | 935 | _Guard = PropTypes.shape({ |
| 929 | 936 | "guard": PropTypes.oneOfType([Integer]).isRequired, |
| 930 | 937 | }); |
| @@ -1060,9 +1067,6 @@ _Newtonsoft = PropTypes.shape({ | ||
| 1060 | 1067 | _Nil = PropTypes.shape({ |
| 1061 | 1068 | "nil": PropTypes.oneOfType([Integer]).isRequired, |
| 1062 | 1069 | }); |
| 1063 | -_Noexcept = PropTypes.shape({ | |
| 1064 | - "noexcept": PropTypes.oneOfType([Integer]).isRequired, | |
| 1065 | -}); | |
| 1066 | 1070 | _Obj3 = PropTypes.shape({ |
| 1067 | 1071 | "Hashable": _Hashable, |
| 1068 | 1072 | "Hasher": _Hasher, |
| @@ -1083,6 +1087,7 @@ _Obj3 = PropTypes.shape({ | ||
| 1083 | 1087 | "MapEntry": _MapEntry, |
| 1084 | 1088 | "NO": _No, |
| 1085 | 1089 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1090 | + "goto": _Goto, | |
| 1086 | 1091 | "guard": _Guard, |
| 1087 | 1092 | "hasOwnProperty": _HasOwnProperty, |
| 1088 | 1093 | "hashCode": _HashCode, |
| @@ -1128,7 +1133,6 @@ _Obj3 = PropTypes.shape({ | ||
| 1128 | 1133 | "new": _New, |
| 1129 | 1134 | "newtonsoft": _Newtonsoft, |
| 1130 | 1135 | "nil": _Nil, |
| 1131 | - "noexcept": _Noexcept, | |
| 1132 | 1136 | }); |
| 1133 | 1137 | _NSError = PropTypes.shape({ |
| 1134 | 1138 | "NSError": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1148,18 +1152,24 @@ _None = PropTypes.shape({ | ||
| 1148 | 1152 | _ObjectMapper = PropTypes.shape({ |
| 1149 | 1153 | "ObjectMapper": PropTypes.oneOfType([Integer]).isRequired, |
| 1150 | 1154 | }); |
| 1155 | +_ObjectReader = PropTypes.shape({ | |
| 1156 | + "ObjectReader": PropTypes.oneOfType([Integer]).isRequired, | |
| 1157 | +}); | |
| 1158 | +_ObjectWriter = PropTypes.shape({ | |
| 1159 | + "ObjectWriter": PropTypes.oneOfType([Integer]).isRequired, | |
| 1160 | +}); | |
| 1151 | 1161 | _Protocol = PropTypes.shape({ |
| 1152 | 1162 | "Protocol": PropTypes.oneOfType([Integer]).isRequired, |
| 1153 | 1163 | }); |
| 1154 | 1164 | _RegExp = PropTypes.shape({ |
| 1155 | 1165 | "RegExp": PropTypes.oneOfType([(props, name) => props[name] == null || /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(props[name]) ? null : new Error("Expected UUID")]).isRequired, |
| 1156 | 1166 | }); |
| 1157 | -_Sel = PropTypes.shape({ | |
| 1158 | - "SEL": PropTypes.oneOfType([Integer]).isRequired, | |
| 1159 | -}); | |
| 1160 | 1167 | _NoSuchMethod = PropTypes.shape({ |
| 1161 | 1168 | "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired, |
| 1162 | 1169 | }); |
| 1170 | +_Noexcept = PropTypes.shape({ | |
| 1171 | + "noexcept": PropTypes.oneOfType([Integer]).isRequired, | |
| 1172 | +}); | |
| 1163 | 1173 | _Nonatomic = PropTypes.shape({ |
| 1164 | 1174 | "nonatomic": PropTypes.oneOfType([Integer]).isRequired, |
| 1165 | 1175 | }); |
| @@ -1316,12 +1326,6 @@ _S = PropTypes.shape({ | ||
| 1316 | 1326 | _Sbyte = PropTypes.shape({ |
| 1317 | 1327 | "sbyte": PropTypes.oneOfType([Integer]).isRequired, |
| 1318 | 1328 | }); |
| 1319 | -_Sealed = PropTypes.shape({ | |
| 1320 | - "sealed": PropTypes.oneOfType([Integer]).isRequired, | |
| 1321 | -}); | |
| 1322 | -_Select = PropTypes.shape({ | |
| 1323 | - "select": PropTypes.oneOfType([Integer]).isRequired, | |
| 1324 | -}); | |
| 1325 | 1329 | _Obj4 = PropTypes.shape({ |
| 1326 | 1330 | "NSError": _NSError, |
| 1327 | 1331 | "NSObject": _NSObject, |
| @@ -1329,11 +1333,13 @@ _Obj4 = PropTypes.shape({ | ||
| 1329 | 1333 | "NULL": _Null, |
| 1330 | 1334 | "None": _None, |
| 1331 | 1335 | "ObjectMapper": _ObjectMapper, |
| 1336 | + "ObjectReader": _ObjectReader, | |
| 1337 | + "ObjectWriter": _ObjectWriter, | |
| 1332 | 1338 | "Protocol": _Protocol, |
| 1333 | 1339 | "RegExp": _RegExp, |
| 1334 | - "SEL": _Sel, | |
| 1335 | 1340 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1336 | 1341 | "noSuchMethod": _NoSuchMethod, |
| 1342 | + "noexcept": _Noexcept, | |
| 1337 | 1343 | "nonatomic": _Nonatomic, |
| 1338 | 1344 | "none": _NoneClass, |
| 1339 | 1345 | "nonlocal": _Nonlocal, |
| @@ -1386,8 +1392,9 @@ _Obj4 = PropTypes.shape({ | ||
| 1386 | 1392 | "runtimeType": _RuntimeType, |
| 1387 | 1393 | "s": _S, |
| 1388 | 1394 | "sbyte": _Sbyte, |
| 1389 | - "sealed": _Sealed, | |
| 1390 | - "select": _Select, | |
| 1395 | +}); | |
| 1396 | +_Sel = PropTypes.shape({ | |
| 1397 | + "SEL": PropTypes.oneOfType([Integer]).isRequired, | |
| 1391 | 1398 | }); |
| 1392 | 1399 | _Self = PropTypes.shape({ |
| 1393 | 1400 | "Self": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1395,6 +1402,9 @@ _Self = PropTypes.shape({ | ||
| 1395 | 1402 | _Sendable = PropTypes.shape({ |
| 1396 | 1403 | "Sendable": PropTypes.oneOfType([Integer]).isRequired, |
| 1397 | 1404 | }); |
| 1405 | +_SerializationFeature = PropTypes.shape({ | |
| 1406 | + "SerializationFeature": PropTypes.oneOfType([Integer]).isRequired, | |
| 1407 | +}); | |
| 1398 | 1408 | _SerializerProvider = PropTypes.shape({ |
| 1399 | 1409 | "SerializerProvider": PropTypes.oneOfType([Integer]).isRequired, |
| 1400 | 1410 | }); |
| @@ -1425,14 +1435,14 @@ _True = PropTypes.shape({ | ||
| 1425 | 1435 | _Type = PropTypes.shape({ |
| 1426 | 1436 | "Type": PropTypes.oneOfType([Integer]).isRequired, |
| 1427 | 1437 | }); |
| 1428 | -_UUID = PropTypes.shape({ | |
| 1429 | - "UUID": PropTypes.oneOfType([Integer]).isRequired, | |
| 1430 | -}); | |
| 1431 | 1438 | _Utf8JSONReader = PropTypes.shape({ |
| 1432 | 1439 | "Utf8JsonReader": PropTypes.oneOfType([Integer]).isRequired, |
| 1433 | 1440 | }); |
| 1434 | -_Utf8JSONWriter = PropTypes.shape({ | |
| 1435 | - "Utf8JsonWriter": PropTypes.oneOfType([Integer]).isRequired, | |
| 1441 | +_Sealed = PropTypes.shape({ | |
| 1442 | + "sealed": PropTypes.oneOfType([Integer]).isRequired, | |
| 1443 | +}); | |
| 1444 | +_Select = PropTypes.shape({ | |
| 1445 | + "select": PropTypes.oneOfType([Integer]).isRequired, | |
| 1436 | 1446 | }); |
| 1437 | 1447 | _SelfClass = PropTypes.shape({ |
| 1438 | 1448 | "self": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1575,15 +1585,11 @@ _Ushort = PropTypes.shape({ | ||
| 1575 | 1585 | _Using = PropTypes.shape({ |
| 1576 | 1586 | "using": PropTypes.oneOfType([Integer]).isRequired, |
| 1577 | 1587 | }); |
| 1578 | -_Var = PropTypes.shape({ | |
| 1579 | - "var": PropTypes.oneOfType([Integer]).isRequired, | |
| 1580 | -}); | |
| 1581 | -_Virtual = PropTypes.shape({ | |
| 1582 | - "virtual": PropTypes.oneOfType([Integer]).isRequired, | |
| 1583 | -}); | |
| 1584 | 1588 | _Obj5 = PropTypes.shape({ |
| 1589 | + "SEL": _Sel, | |
| 1585 | 1590 | "Self": _Self, |
| 1586 | 1591 | "Sendable": _Sendable, |
| 1592 | + "SerializationFeature": _SerializationFeature, | |
| 1587 | 1593 | "SerializerProvider": _SerializerProvider, |
| 1588 | 1594 | "SimpleModule": _SimpleModule, |
| 1589 | 1595 | "Standards": _Standards, |
| @@ -1594,10 +1600,10 @@ _Obj5 = PropTypes.shape({ | ||
| 1594 | 1600 | "TimeZone": _TimeZone, |
| 1595 | 1601 | "True": _True, |
| 1596 | 1602 | "Type": _Type, |
| 1597 | - "UUID": _UUID, | |
| 1598 | 1603 | "Utf8JsonReader": _Utf8JSONReader, |
| 1599 | - "Utf8JsonWriter": _Utf8JSONWriter, | |
| 1600 | 1604 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1605 | + "sealed": _Sealed, | |
| 1606 | + "select": _Select, | |
| 1601 | 1607 | "self": _SelfClass, |
| 1602 | 1608 | "serialize": _Serialize, |
| 1603 | 1609 | "set": _Set, |
| @@ -1645,12 +1651,22 @@ _Obj5 = PropTypes.shape({ | ||
| 1645 | 1651 | "unsigned": _Unsigned, |
| 1646 | 1652 | "ushort": _Ushort, |
| 1647 | 1653 | "using": _Using, |
| 1648 | - "var": _Var, | |
| 1649 | - "virtual": _Virtual, | |
| 1654 | +}); | |
| 1655 | +_UUID = PropTypes.shape({ | |
| 1656 | + "UUID": PropTypes.oneOfType([Integer]).isRequired, | |
| 1657 | +}); | |
| 1658 | +_Utf8JSONWriter = PropTypes.shape({ | |
| 1659 | + "Utf8JsonWriter": PropTypes.oneOfType([Integer]).isRequired, | |
| 1650 | 1660 | }); |
| 1651 | 1661 | _Yes = PropTypes.shape({ |
| 1652 | 1662 | "YES": PropTypes.oneOfType([Integer]).isRequired, |
| 1653 | 1663 | }); |
| 1664 | +_Var = PropTypes.shape({ | |
| 1665 | + "var": PropTypes.oneOfType([Integer]).isRequired, | |
| 1666 | +}); | |
| 1667 | +_Virtual = PropTypes.shape({ | |
| 1668 | + "virtual": PropTypes.oneOfType([Integer]).isRequired, | |
| 1669 | +}); | |
| 1654 | 1670 | _Void = PropTypes.shape({ |
| 1655 | 1671 | "void": PropTypes.oneOfType([Integer]).isRequired, |
| 1656 | 1672 | }); |
| @@ -1685,8 +1701,12 @@ _Yield = PropTypes.shape({ | ||
| 1685 | 1701 | "yield": PropTypes.oneOfType([Integer]).isRequired, |
| 1686 | 1702 | }); |
| 1687 | 1703 | _Obj6 = PropTypes.shape({ |
| 1704 | + "UUID": _UUID, | |
| 1705 | + "Utf8JsonWriter": _Utf8JSONWriter, | |
| 1688 | 1706 | "YES": _Yes, |
| 1689 | 1707 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1708 | + "var": _Var, | |
| 1709 | + "virtual": _Virtual, | |
| 1690 | 1710 | "void": _Void, |
| 1691 | 1711 | "volatile": _Volatile, |
| 1692 | 1712 | "wchar_t": _WcharT, |
Mjavascriptdefault / TopLevel.js+51 −35
| @@ -469,6 +469,7 @@ const typeMap = { | ||
| 469 | 469 | { json: "DateTimeStyles", js: "DateTimeStyles", typ: r("DateTimeStyles") }, |
| 470 | 470 | { json: "Decoder", js: "Decoder", typ: r("Decoder") }, |
| 471 | 471 | { json: "DecodingError", js: "DecodingError", typ: r("DecodingError") }, |
| 472 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: r("DeserializationFeature") }, | |
| 472 | 473 | { json: "Encoder", js: "Encoder", typ: r("Encoder") }, |
| 473 | 474 | { json: "EnumValues", js: "EnumValues", typ: r("EnumValues") }, |
| 474 | 475 | { json: "Equatable", js: "Equatable", typ: r("Equatable") }, |
| @@ -526,7 +527,6 @@ const typeMap = { | ||
| 526 | 527 | { json: "get", js: "get", typ: r("Get") }, |
| 527 | 528 | { json: "global", js: "global", typ: r("Global") }, |
| 528 | 529 | { json: "go", js: "go", typ: r("Go") }, |
| 529 | - { json: "goto", js: "goto", typ: r("Goto") }, | |
| 530 | 530 | ], false), |
| 531 | 531 | "DateFormatter": o([ |
| 532 | 532 | { json: "DateFormatter", js: "DateFormatter", typ: i(0) }, |
| @@ -549,6 +549,9 @@ const typeMap = { | ||
| 549 | 549 | "DecodingError": o([ |
| 550 | 550 | { json: "DecodingError", js: "DecodingError", typ: i(0) }, |
| 551 | 551 | ], false), |
| 552 | + "DeserializationFeature": o([ | |
| 553 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: i(0) }, | |
| 554 | + ], false), | |
| 552 | 555 | "Encoder": o([ |
| 553 | 556 | { json: "Encoder", js: "Encoder", typ: i(0) }, |
| 554 | 557 | ], false), |
| @@ -717,9 +720,6 @@ const typeMap = { | ||
| 717 | 720 | "Go": o([ |
| 718 | 721 | { json: "go", js: "go", typ: i(0) }, |
| 719 | 722 | ], false), |
| 720 | - "Goto": o([ | |
| 721 | - { json: "goto", js: "goto", typ: i(0) }, | |
| 722 | - ], false), | |
| 723 | 723 | "Obj3": o([ |
| 724 | 724 | { json: "Hashable", js: "Hashable", typ: r("Hashable") }, |
| 725 | 725 | { json: "Hasher", js: "Hasher", typ: r("Hasher") }, |
| @@ -740,6 +740,7 @@ const typeMap = { | ||
| 740 | 740 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 741 | 741 | { json: "NO", js: "NO", typ: r("No") }, |
| 742 | 742 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 743 | + { json: "goto", js: "goto", typ: r("Goto") }, | |
| 743 | 744 | { json: "guard", js: "guard", typ: r("Guard") }, |
| 744 | 745 | { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") }, |
| 745 | 746 | { json: "hashCode", js: "hashCode", typ: r("HashCode") }, |
| @@ -785,7 +786,6 @@ const typeMap = { | ||
| 785 | 786 | { json: "new", js: "new", typ: r("New") }, |
| 786 | 787 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 787 | 788 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 788 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 789 | 789 | ], false), |
| 790 | 790 | "Hashable": o([ |
| 791 | 791 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -841,6 +841,9 @@ const typeMap = { | ||
| 841 | 841 | "No": o([ |
| 842 | 842 | { json: "NO", js: "NO", typ: i(0) }, |
| 843 | 843 | ], false), |
| 844 | + "Goto": o([ | |
| 845 | + { json: "goto", js: "goto", typ: i(0) }, | |
| 846 | + ], false), | |
| 844 | 847 | "Guard": o([ |
| 845 | 848 | { json: "guard", js: "guard", typ: i(0) }, |
| 846 | 849 | ], false), |
| @@ -976,9 +979,6 @@ const typeMap = { | ||
| 976 | 979 | "Nil": o([ |
| 977 | 980 | { json: "nil", js: "nil", typ: i(0) }, |
| 978 | 981 | ], false), |
| 979 | - "Noexcept": o([ | |
| 980 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 981 | - ], false), | |
| 982 | 982 | "Obj4": o([ |
| 983 | 983 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 984 | 984 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -986,11 +986,13 @@ const typeMap = { | ||
| 986 | 986 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 987 | 987 | { json: "None", js: "None", typ: r("None") }, |
| 988 | 988 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 989 | + { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") }, | |
| 990 | + { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") }, | |
| 989 | 991 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 990 | 992 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 991 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 992 | 993 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 993 | 994 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 995 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 994 | 996 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 995 | 997 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 996 | 998 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -1043,8 +1045,6 @@ const typeMap = { | ||
| 1043 | 1045 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 1044 | 1046 | { json: "s", js: "s", typ: r("S") }, |
| 1045 | 1047 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 1046 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 1047 | - { json: "select", js: "select", typ: r("Select") }, | |
| 1048 | 1048 | ], false), |
| 1049 | 1049 | "NSError": o([ |
| 1050 | 1050 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -1064,18 +1064,24 @@ const typeMap = { | ||
| 1064 | 1064 | "ObjectMapper": o([ |
| 1065 | 1065 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 1066 | 1066 | ], false), |
| 1067 | + "ObjectReader": o([ | |
| 1068 | + { json: "ObjectReader", js: "ObjectReader", typ: i(0) }, | |
| 1069 | + ], false), | |
| 1070 | + "ObjectWriter": o([ | |
| 1071 | + { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) }, | |
| 1072 | + ], false), | |
| 1067 | 1073 | "Protocol": o([ |
| 1068 | 1074 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 1069 | 1075 | ], false), |
| 1070 | 1076 | "RegExp": o([ |
| 1071 | 1077 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 1072 | 1078 | ], false), |
| 1073 | - "Sel": o([ | |
| 1074 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 1075 | - ], false), | |
| 1076 | 1079 | "NoSuchMethod": o([ |
| 1077 | 1080 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 1078 | 1081 | ], false), |
| 1082 | + "Noexcept": o([ | |
| 1083 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 1084 | + ], false), | |
| 1079 | 1085 | "Nonatomic": o([ |
| 1080 | 1086 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 1081 | 1087 | ], false), |
| @@ -1232,15 +1238,11 @@ const typeMap = { | ||
| 1232 | 1238 | "Sbyte": o([ |
| 1233 | 1239 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 1234 | 1240 | ], false), |
| 1235 | - "Sealed": o([ | |
| 1236 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 1237 | - ], false), | |
| 1238 | - "Select": o([ | |
| 1239 | - { json: "select", js: "select", typ: i(0) }, | |
| 1240 | - ], false), | |
| 1241 | 1241 | "Obj5": o([ |
| 1242 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 1242 | 1243 | { json: "Self", js: "Self", typ: r("Self") }, |
| 1243 | 1244 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 1245 | + { json: "SerializationFeature", js: "SerializationFeature", typ: r("SerializationFeature") }, | |
| 1244 | 1246 | { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") }, |
| 1245 | 1247 | { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") }, |
| 1246 | 1248 | { json: "Standards", js: "Standards", typ: r("Standards") }, |
| @@ -1251,10 +1253,10 @@ const typeMap = { | ||
| 1251 | 1253 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 1252 | 1254 | { json: "True", js: "True", typ: r("True") }, |
| 1253 | 1255 | { json: "Type", js: "Type", typ: r("Type") }, |
| 1254 | - { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 1255 | 1256 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 1256 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 1257 | 1257 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 1258 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 1259 | + { json: "select", js: "select", typ: r("Select") }, | |
| 1258 | 1260 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 1259 | 1261 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 1260 | 1262 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -1302,8 +1304,9 @@ const typeMap = { | ||
| 1302 | 1304 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 1303 | 1305 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 1304 | 1306 | { json: "using", js: "using", typ: r("Using") }, |
| 1305 | - { json: "var", js: "var", typ: r("Var") }, | |
| 1306 | - { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 1307 | + ], false), | |
| 1308 | + "Sel": o([ | |
| 1309 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 1307 | 1310 | ], false), |
| 1308 | 1311 | "Self": o([ |
| 1309 | 1312 | { json: "Self", js: "Self", typ: i(0) }, |
| @@ -1311,6 +1314,9 @@ const typeMap = { | ||
| 1311 | 1314 | "Sendable": o([ |
| 1312 | 1315 | { json: "Sendable", js: "Sendable", typ: i(0) }, |
| 1313 | 1316 | ], false), |
| 1317 | + "SerializationFeature": o([ | |
| 1318 | + { json: "SerializationFeature", js: "SerializationFeature", typ: i(0) }, | |
| 1319 | + ], false), | |
| 1314 | 1320 | "SerializerProvider": o([ |
| 1315 | 1321 | { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) }, |
| 1316 | 1322 | ], false), |
| @@ -1341,14 +1347,14 @@ const typeMap = { | ||
| 1341 | 1347 | "Type": o([ |
| 1342 | 1348 | { json: "Type", js: "Type", typ: i(0) }, |
| 1343 | 1349 | ], false), |
| 1344 | - "UUID": o([ | |
| 1345 | - { json: "UUID", js: "UUID", typ: i(0) }, | |
| 1346 | - ], false), | |
| 1347 | 1350 | "Utf8JSONReader": o([ |
| 1348 | 1351 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 1349 | 1352 | ], false), |
| 1350 | - "Utf8JSONWriter": o([ | |
| 1351 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 1353 | + "Sealed": o([ | |
| 1354 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 1355 | + ], false), | |
| 1356 | + "Select": o([ | |
| 1357 | + { json: "select", js: "select", typ: i(0) }, | |
| 1352 | 1358 | ], false), |
| 1353 | 1359 | "SelfClass": o([ |
| 1354 | 1360 | { json: "self", js: "self", typ: i(0) }, |
| @@ -1491,15 +1497,13 @@ const typeMap = { | ||
| 1491 | 1497 | "Using": o([ |
| 1492 | 1498 | { json: "using", js: "using", typ: i(0) }, |
| 1493 | 1499 | ], false), |
| 1494 | - "Var": o([ | |
| 1495 | - { json: "var", js: "var", typ: i(0) }, | |
| 1496 | - ], false), | |
| 1497 | - "Virtual": o([ | |
| 1498 | - { json: "virtual", js: "virtual", typ: i(0) }, | |
| 1499 | - ], false), | |
| 1500 | 1500 | "Obj6": o([ |
| 1501 | + { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 1502 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 1501 | 1503 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 1502 | 1504 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 1505 | + { json: "var", js: "var", typ: r("Var") }, | |
| 1506 | + { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 1503 | 1507 | { json: "void", js: "void", typ: r("Void") }, |
| 1504 | 1508 | { json: "volatile", js: "volatile", typ: r("Volatile") }, |
| 1505 | 1509 | { json: "wchar_t", js: "wchar_t", typ: r("WcharT") }, |
| @@ -1512,9 +1516,21 @@ const typeMap = { | ||
| 1512 | 1516 | { json: "xor_eq", js: "xor_eq", typ: r("XorEq") }, |
| 1513 | 1517 | { json: "yield", js: "yield", typ: r("Yield") }, |
| 1514 | 1518 | ], false), |
| 1519 | + "UUID": o([ | |
| 1520 | + { json: "UUID", js: "UUID", typ: i(0) }, | |
| 1521 | + ], false), | |
| 1522 | + "Utf8JSONWriter": o([ | |
| 1523 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 1524 | + ], false), | |
| 1515 | 1525 | "Yes": o([ |
| 1516 | 1526 | { json: "YES", js: "YES", typ: i(0) }, |
| 1517 | 1527 | ], false), |
| 1528 | + "Var": o([ | |
| 1529 | + { json: "var", js: "var", typ: i(0) }, | |
| 1530 | + ], false), | |
| 1531 | + "Virtual": o([ | |
| 1532 | + { json: "virtual", js: "virtual", typ: i(0) }, | |
| 1533 | + ], false), | |
| 1518 | 1534 | "Void": o([ |
| 1519 | 1535 | { json: "void", js: "void", typ: i(0) }, |
| 1520 | 1536 | ], false), |
Mkotlin-jacksondefault / TopLevel.kt+106 −74
| @@ -641,6 +641,9 @@ data class Obj2 ( | ||
| 641 | 641 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 642 | 642 | val delete: Delete, |
| 643 | 643 | |
| 644 | + @get:JsonProperty("DeserializationFeature", required=true)@field:JsonProperty("DeserializationFeature", required=true) | |
| 645 | + val deserializationFeature: DeserializationFeature, | |
| 646 | + | |
| 644 | 647 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 645 | 648 | val dict: Dict, |
| 646 | 649 | |
| @@ -758,9 +761,6 @@ data class Obj2 ( | ||
| 758 | 761 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 759 | 762 | val go: Go, |
| 760 | 763 | |
| 761 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 762 | - val goto: Goto, | |
| 763 | - | |
| 764 | 764 | @get:JsonProperty("do", required=true)@field:JsonProperty("do", required=true) |
| 765 | 765 | val obj2Do: Do, |
| 766 | 766 | |
| @@ -877,6 +877,11 @@ data class Delete ( | ||
| 877 | 877 | val delete: Long |
| 878 | 878 | ) |
| 879 | 879 | |
| 880 | +data class DeserializationFeature ( | |
| 881 | + @get:JsonProperty("DeserializationFeature", required=true)@field:JsonProperty("DeserializationFeature", required=true) | |
| 882 | + val deserializationFeature: Long | |
| 883 | +) | |
| 884 | + | |
| 880 | 885 | data class Dict ( |
| 881 | 886 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 882 | 887 | val dict: Long |
| @@ -1080,11 +1085,6 @@ data class Go ( | ||
| 1080 | 1085 | val go: Long |
| 1081 | 1086 | ) |
| 1082 | 1087 | |
| 1083 | -data class Goto ( | |
| 1084 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1085 | - val goto: Long | |
| 1086 | -) | |
| 1087 | - | |
| 1088 | 1088 | data class Do ( |
| 1089 | 1089 | @get:JsonProperty("do", required=true)@field:JsonProperty("do", required=true) |
| 1090 | 1090 | val doDo: Long |
| @@ -1114,6 +1114,9 @@ data class Obj3 ( | ||
| 1114 | 1114 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1115 | 1115 | val dummy: Long, |
| 1116 | 1116 | |
| 1117 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1118 | + val goto: Goto, | |
| 1119 | + | |
| 1117 | 1120 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1118 | 1121 | val guard: Guard, |
| 1119 | 1122 | |
| @@ -1291,9 +1294,6 @@ data class Obj3 ( | ||
| 1291 | 1294 | @get:JsonProperty("NO", required=true)@field:JsonProperty("NO", required=true) |
| 1292 | 1295 | val no: No, |
| 1293 | 1296 | |
| 1294 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1295 | - val noexcept: Noexcept, | |
| 1296 | - | |
| 1297 | 1297 | @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true) |
| 1298 | 1298 | val obj3If: If, |
| 1299 | 1299 | |
| @@ -1307,6 +1307,11 @@ data class Obj3 ( | ||
| 1307 | 1307 | val obj3Is: Is |
| 1308 | 1308 | ) |
| 1309 | 1309 | |
| 1310 | +data class Goto ( | |
| 1311 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1312 | + val goto: Long | |
| 1313 | +) | |
| 1314 | + | |
| 1310 | 1315 | data class Guard ( |
| 1311 | 1316 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1312 | 1317 | val guard: Long |
| @@ -1602,11 +1607,6 @@ data class No ( | ||
| 1602 | 1607 | val no: Long |
| 1603 | 1608 | ) |
| 1604 | 1609 | |
| 1605 | -data class Noexcept ( | |
| 1606 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1607 | - val noexcept: Long | |
| 1608 | -) | |
| 1609 | - | |
| 1610 | 1610 | data class If ( |
| 1611 | 1611 | @get:JsonProperty("if", required=true)@field:JsonProperty("if", required=true) |
| 1612 | 1612 | val ifIf: Long |
| @@ -1634,6 +1634,9 @@ data class Obj4 ( | ||
| 1634 | 1634 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1635 | 1635 | val noSuchMethod: NoSuchMethod, |
| 1636 | 1636 | |
| 1637 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1638 | + val noexcept: Noexcept, | |
| 1639 | + | |
| 1637 | 1640 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1638 | 1641 | val nonatomic: Nonatomic, |
| 1639 | 1642 | |
| @@ -1691,6 +1694,12 @@ data class Obj4 ( | ||
| 1691 | 1694 | @get:JsonProperty("ObjectMapper", required=true)@field:JsonProperty("ObjectMapper", required=true) |
| 1692 | 1695 | val objectMapper: ObjectMapperClass, |
| 1693 | 1696 | |
| 1697 | + @get:JsonProperty("ObjectReader", required=true)@field:JsonProperty("ObjectReader", required=true) | |
| 1698 | + val objectReader: ObjectReader, | |
| 1699 | + | |
| 1700 | + @get:JsonProperty("ObjectWriter", required=true)@field:JsonProperty("ObjectWriter", required=true) | |
| 1701 | + val objectWriter: ObjectWriter, | |
| 1702 | + | |
| 1694 | 1703 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1695 | 1704 | val of: Of, |
| 1696 | 1705 | |
| @@ -1812,16 +1821,7 @@ data class Obj4 ( | ||
| 1812 | 1821 | val s: S, |
| 1813 | 1822 | |
| 1814 | 1823 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1815 | - val sbyte: Sbyte, | |
| 1816 | - | |
| 1817 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1818 | - val sealed: Sealed, | |
| 1819 | - | |
| 1820 | - @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 1821 | - val sel: Sel, | |
| 1822 | - | |
| 1823 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1824 | - val select: Select | |
| 1824 | + val sbyte: Sbyte | |
| 1825 | 1825 | ) |
| 1826 | 1826 | |
| 1827 | 1827 | data class NoSuchMethod ( |
| @@ -1829,6 +1829,11 @@ data class NoSuchMethod ( | ||
| 1829 | 1829 | val noSuchMethod: Long |
| 1830 | 1830 | ) |
| 1831 | 1831 | |
| 1832 | +data class Noexcept ( | |
| 1833 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 1834 | + val noexcept: Long | |
| 1835 | +) | |
| 1836 | + | |
| 1832 | 1837 | data class Nonatomic ( |
| 1833 | 1838 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1834 | 1839 | val nonatomic: Long |
| @@ -1924,6 +1929,16 @@ data class ObjectMapperClass ( | ||
| 1924 | 1929 | val objectMapper: Long |
| 1925 | 1930 | ) |
| 1926 | 1931 | |
| 1932 | +data class ObjectReader ( | |
| 1933 | + @get:JsonProperty("ObjectReader", required=true)@field:JsonProperty("ObjectReader", required=true) | |
| 1934 | + val objectReader: Long | |
| 1935 | +) | |
| 1936 | + | |
| 1937 | +data class ObjectWriter ( | |
| 1938 | + @get:JsonProperty("ObjectWriter", required=true)@field:JsonProperty("ObjectWriter", required=true) | |
| 1939 | + val objectWriter: Long | |
| 1940 | +) | |
| 1941 | + | |
| 1927 | 1942 | data class Of ( |
| 1928 | 1943 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1929 | 1944 | val of: Long |
| @@ -2129,21 +2144,6 @@ data class Sbyte ( | ||
| 2129 | 2144 | val sbyte: Long |
| 2130 | 2145 | ) |
| 2131 | 2146 | |
| 2132 | -data class Sealed ( | |
| 2133 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2134 | - val sealed: Long | |
| 2135 | -) | |
| 2136 | - | |
| 2137 | -data class Sel ( | |
| 2138 | - @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2139 | - val sel: Long | |
| 2140 | -) | |
| 2141 | - | |
| 2142 | -data class Select ( | |
| 2143 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2144 | - val select: Long | |
| 2145 | -) | |
| 2146 | - | |
| 2147 | 2147 | data class Obj5 ( |
| 2148 | 2148 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2149 | 2149 | val dummy: Long, |
| @@ -2175,18 +2175,27 @@ data class Obj5 ( | ||
| 2175 | 2175 | @get:JsonProperty("typeof", required=true)@field:JsonProperty("typeof", required=true) |
| 2176 | 2176 | val obj5Typeof: Typeof, |
| 2177 | 2177 | |
| 2178 | - @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true) | |
| 2179 | - val obj5Var: Var, | |
| 2180 | - | |
| 2181 | 2178 | @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true) |
| 2182 | 2179 | val purpleTrue: TrueClass, |
| 2183 | 2180 | |
| 2181 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2182 | + val sealed: Sealed, | |
| 2183 | + | |
| 2184 | + @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2185 | + val sel: Sel, | |
| 2186 | + | |
| 2187 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2188 | + val select: Select, | |
| 2189 | + | |
| 2184 | 2190 | @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true) |
| 2185 | 2191 | val self: Self, |
| 2186 | 2192 | |
| 2187 | 2193 | @get:JsonProperty("Sendable", required=true)@field:JsonProperty("Sendable", required=true) |
| 2188 | 2194 | val sendable: Sendable, |
| 2189 | 2195 | |
| 2196 | + @get:JsonProperty("SerializationFeature", required=true)@field:JsonProperty("SerializationFeature", required=true) | |
| 2197 | + val serializationFeature: SerializationFeature, | |
| 2198 | + | |
| 2190 | 2199 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2191 | 2200 | val serialize: Serialize, |
| 2192 | 2201 | |
| @@ -2329,16 +2338,7 @@ data class Obj5 ( | ||
| 2329 | 2338 | val using: Using, |
| 2330 | 2339 | |
| 2331 | 2340 | @get:JsonProperty("Utf8JsonReader", required=true)@field:JsonProperty("Utf8JsonReader", required=true) |
| 2332 | - val utf8JSONReader: Utf8JSONReader, | |
| 2333 | - | |
| 2334 | - @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true) | |
| 2335 | - val utf8JSONWriter: Utf8JSONWriter, | |
| 2336 | - | |
| 2337 | - @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true) | |
| 2338 | - val uuid: UUID, | |
| 2339 | - | |
| 2340 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2341 | - val virtual: Virtual | |
| 2341 | + val utf8JSONReader: Utf8JSONReader | |
| 2342 | 2342 | ) |
| 2343 | 2343 | |
| 2344 | 2344 | data class SelfClass ( |
| @@ -2386,16 +2386,26 @@ data class Typeof ( | ||
| 2386 | 2386 | val typeofTypeof: Long |
| 2387 | 2387 | ) |
| 2388 | 2388 | |
| 2389 | -data class Var ( | |
| 2390 | - @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true) | |
| 2391 | - val varVar: Long | |
| 2392 | -) | |
| 2393 | - | |
| 2394 | 2389 | data class TrueClass ( |
| 2395 | 2390 | @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true) |
| 2396 | 2391 | val trueTrue: Long |
| 2397 | 2392 | ) |
| 2398 | 2393 | |
| 2394 | +data class Sealed ( | |
| 2395 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2396 | + val sealed: Long | |
| 2397 | +) | |
| 2398 | + | |
| 2399 | +data class Sel ( | |
| 2400 | + @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2401 | + val sel: Long | |
| 2402 | +) | |
| 2403 | + | |
| 2404 | +data class Select ( | |
| 2405 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2406 | + val select: Long | |
| 2407 | +) | |
| 2408 | + | |
| 2399 | 2409 | data class Self ( |
| 2400 | 2410 | @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true) |
| 2401 | 2411 | val self: Long |
| @@ -2406,6 +2416,11 @@ data class Sendable ( | ||
| 2406 | 2416 | val sendable: Long |
| 2407 | 2417 | ) |
| 2408 | 2418 | |
| 2419 | +data class SerializationFeature ( | |
| 2420 | + @get:JsonProperty("SerializationFeature", required=true)@field:JsonProperty("SerializationFeature", required=true) | |
| 2421 | + val serializationFeature: Long | |
| 2422 | +) | |
| 2423 | + | |
| 2409 | 2424 | data class Serialize ( |
| 2410 | 2425 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2411 | 2426 | val serialize: Long |
| @@ -2646,28 +2661,25 @@ data class Utf8JSONReader ( | ||
| 2646 | 2661 | val utf8JSONReader: Long |
| 2647 | 2662 | ) |
| 2648 | 2663 | |
| 2649 | -data class Utf8JSONWriter ( | |
| 2650 | - @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true) | |
| 2651 | - val utf8JSONWriter: Long | |
| 2652 | -) | |
| 2653 | - | |
| 2654 | -data class UUID ( | |
| 2655 | - @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true) | |
| 2656 | - val uuid: Long | |
| 2657 | -) | |
| 2658 | - | |
| 2659 | -data class Virtual ( | |
| 2660 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2661 | - val virtual: Long | |
| 2662 | -) | |
| 2663 | - | |
| 2664 | 2664 | data class Obj6 ( |
| 2665 | 2665 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2666 | 2666 | val dummy: Long, |
| 2667 | 2667 | |
| 2668 | + @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true) | |
| 2669 | + val obj6Var: Var, | |
| 2670 | + | |
| 2668 | 2671 | @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true) |
| 2669 | 2672 | val obj6While: While, |
| 2670 | 2673 | |
| 2674 | + @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true) | |
| 2675 | + val utf8JSONWriter: Utf8JSONWriter, | |
| 2676 | + | |
| 2677 | + @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true) | |
| 2678 | + val uuid: UUID, | |
| 2679 | + | |
| 2680 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2681 | + val virtual: Virtual, | |
| 2682 | + | |
| 2671 | 2683 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2672 | 2684 | val void: Void, |
| 2673 | 2685 | |
| @@ -2702,11 +2714,31 @@ data class Obj6 ( | ||
| 2702 | 2714 | val yield: Yield |
| 2703 | 2715 | ) |
| 2704 | 2716 | |
| 2717 | +data class Var ( | |
| 2718 | + @get:JsonProperty("var", required=true)@field:JsonProperty("var", required=true) | |
| 2719 | + val varVar: Long | |
| 2720 | +) | |
| 2721 | + | |
| 2705 | 2722 | data class While ( |
| 2706 | 2723 | @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true) |
| 2707 | 2724 | val whileWhile: Long |
| 2708 | 2725 | ) |
| 2709 | 2726 | |
| 2727 | +data class Utf8JSONWriter ( | |
| 2728 | + @get:JsonProperty("Utf8JsonWriter", required=true)@field:JsonProperty("Utf8JsonWriter", required=true) | |
| 2729 | + val utf8JSONWriter: Long | |
| 2730 | +) | |
| 2731 | + | |
| 2732 | +data class UUID ( | |
| 2733 | + @get:JsonProperty("UUID", required=true)@field:JsonProperty("UUID", required=true) | |
| 2734 | + val uuid: Long | |
| 2735 | +) | |
| 2736 | + | |
| 2737 | +data class Virtual ( | |
| 2738 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2739 | + val virtual: Long | |
| 2740 | +) | |
| 2741 | + | |
| 2710 | 2742 | data class Void ( |
| 2711 | 2743 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2712 | 2744 | val void: Long |
Mkotlindefault / TopLevel.kt+94 −62
| @@ -491,6 +491,10 @@ data class Obj2 ( | ||
| 491 | 491 | val del: Del, |
| 492 | 492 | val delegate: Delegate, |
| 493 | 493 | val delete: Delete, |
| 494 | + | |
| 495 | + @Json(name = "DeserializationFeature") | |
| 496 | + val deserializationFeature: DeserializationFeature, | |
| 497 | + | |
| 494 | 498 | val dict: Dict, |
| 495 | 499 | val dictionary: Dictionary, |
| 496 | 500 | val didSet: DidSet, |
| @@ -550,7 +554,6 @@ data class Obj2 ( | ||
| 550 | 554 | val get: Get, |
| 551 | 555 | val global: Global, |
| 552 | 556 | val go: Go, |
| 553 | - val goto: Goto, | |
| 554 | 557 | |
| 555 | 558 | @Json(name = "do") |
| 556 | 559 | val obj2Do: Do, |
| @@ -657,6 +660,11 @@ data class Delete ( | ||
| 657 | 660 | val delete: Long |
| 658 | 661 | ) |
| 659 | 662 | |
| 663 | +data class DeserializationFeature ( | |
| 664 | + @Json(name = "DeserializationFeature") | |
| 665 | + val deserializationFeature: Long | |
| 666 | +) | |
| 667 | + | |
| 660 | 668 | data class Dict ( |
| 661 | 669 | val dict: Long |
| 662 | 670 | ) |
| @@ -829,10 +837,6 @@ data class Go ( | ||
| 829 | 837 | val go: Long |
| 830 | 838 | ) |
| 831 | 839 | |
| 832 | -data class Goto ( | |
| 833 | - val goto: Long | |
| 834 | -) | |
| 835 | - | |
| 836 | 840 | data class Do ( |
| 837 | 841 | @Json(name = "do") |
| 838 | 842 | val doDo: Long |
| @@ -860,6 +864,7 @@ data class FalseClass ( | ||
| 860 | 864 | |
| 861 | 865 | data class Obj3 ( |
| 862 | 866 | val dummy: Long, |
| 867 | + val goto: Goto, | |
| 863 | 868 | val guard: Guard, |
| 864 | 869 | val hasOwnProperty: HasOwnProperty, |
| 865 | 870 | val hashCode: HashCode, |
| @@ -972,8 +977,6 @@ data class Obj3 ( | ||
| 972 | 977 | @Json(name = "NO") |
| 973 | 978 | val no: No, |
| 974 | 979 | |
| 975 | - val noexcept: Noexcept, | |
| 976 | - | |
| 977 | 980 | @Json(name = "if") |
| 978 | 981 | val obj3If: If, |
| 979 | 982 | |
| @@ -987,6 +990,10 @@ data class Obj3 ( | ||
| 987 | 990 | val obj3Is: Is |
| 988 | 991 | ) |
| 989 | 992 | |
| 993 | +data class Goto ( | |
| 994 | + val goto: Long | |
| 995 | +) | |
| 996 | + | |
| 990 | 997 | data class Guard ( |
| 991 | 998 | val guard: Long |
| 992 | 999 | ) |
| @@ -1246,10 +1253,6 @@ data class No ( | ||
| 1246 | 1253 | val no: Long |
| 1247 | 1254 | ) |
| 1248 | 1255 | |
| 1249 | -data class Noexcept ( | |
| 1250 | - val noexcept: Long | |
| 1251 | -) | |
| 1252 | - | |
| 1253 | 1256 | data class If ( |
| 1254 | 1257 | @Json(name = "if") |
| 1255 | 1258 | val ifIf: Long |
| @@ -1273,6 +1276,7 @@ data class Is ( | ||
| 1273 | 1276 | data class Obj4 ( |
| 1274 | 1277 | val dummy: Long, |
| 1275 | 1278 | val noSuchMethod: NoSuchMethod, |
| 1279 | + val noexcept: Noexcept, | |
| 1276 | 1280 | val nonatomic: Nonatomic, |
| 1277 | 1281 | |
| 1278 | 1282 | @Json(name = "None") |
| @@ -1321,6 +1325,12 @@ data class Obj4 ( | ||
| 1321 | 1325 | @Json(name = "ObjectMapper") |
| 1322 | 1326 | val objectMapper: ObjectMapper, |
| 1323 | 1327 | |
| 1328 | + @Json(name = "ObjectReader") | |
| 1329 | + val objectReader: ObjectReader, | |
| 1330 | + | |
| 1331 | + @Json(name = "ObjectWriter") | |
| 1332 | + val objectWriter: ObjectWriter, | |
| 1333 | + | |
| 1324 | 1334 | val of: Of, |
| 1325 | 1335 | val oneway: Oneway, |
| 1326 | 1336 | val open: Open, |
| @@ -1373,19 +1383,17 @@ data class Obj4 ( | ||
| 1373 | 1383 | val right: Right, |
| 1374 | 1384 | val runtimeType: RuntimeType, |
| 1375 | 1385 | val s: S, |
| 1376 | - val sbyte: Sbyte, | |
| 1377 | - val sealed: Sealed, | |
| 1378 | - | |
| 1379 | - @Json(name = "SEL") | |
| 1380 | - val sel: Sel, | |
| 1381 | - | |
| 1382 | - val select: Select | |
| 1386 | + val sbyte: Sbyte | |
| 1383 | 1387 | ) |
| 1384 | 1388 | |
| 1385 | 1389 | data class NoSuchMethod ( |
| 1386 | 1390 | val noSuchMethod: Long |
| 1387 | 1391 | ) |
| 1388 | 1392 | |
| 1393 | +data class Noexcept ( | |
| 1394 | + val noexcept: Long | |
| 1395 | +) | |
| 1396 | + | |
| 1389 | 1397 | data class Nonatomic ( |
| 1390 | 1398 | val nonatomic: Long |
| 1391 | 1399 | ) |
| @@ -1473,6 +1481,16 @@ data class ObjectMapper ( | ||
| 1473 | 1481 | val objectMapper: Long |
| 1474 | 1482 | ) |
| 1475 | 1483 | |
| 1484 | +data class ObjectReader ( | |
| 1485 | + @Json(name = "ObjectReader") | |
| 1486 | + val objectReader: Long | |
| 1487 | +) | |
| 1488 | + | |
| 1489 | +data class ObjectWriter ( | |
| 1490 | + @Json(name = "ObjectWriter") | |
| 1491 | + val objectWriter: Long | |
| 1492 | +) | |
| 1493 | + | |
| 1476 | 1494 | data class Of ( |
| 1477 | 1495 | val of: Long |
| 1478 | 1496 | ) |
| @@ -1641,19 +1659,6 @@ data class Sbyte ( | ||
| 1641 | 1659 | val sbyte: Long |
| 1642 | 1660 | ) |
| 1643 | 1661 | |
| 1644 | -data class Sealed ( | |
| 1645 | - val sealed: Long | |
| 1646 | -) | |
| 1647 | - | |
| 1648 | -data class Sel ( | |
| 1649 | - @Json(name = "SEL") | |
| 1650 | - val sel: Long | |
| 1651 | -) | |
| 1652 | - | |
| 1653 | -data class Select ( | |
| 1654 | - val select: Long | |
| 1655 | -) | |
| 1656 | - | |
| 1657 | 1662 | data class Obj5 ( |
| 1658 | 1663 | val dummy: Long, |
| 1659 | 1664 | |
| @@ -1684,18 +1689,25 @@ data class Obj5 ( | ||
| 1684 | 1689 | @Json(name = "typeof") |
| 1685 | 1690 | val obj5Typeof: Typeof, |
| 1686 | 1691 | |
| 1687 | - @Json(name = "var") | |
| 1688 | - val obj5Var: Var, | |
| 1689 | - | |
| 1690 | 1692 | @Json(name = "true") |
| 1691 | 1693 | val purpleTrue: TrueClass, |
| 1692 | 1694 | |
| 1695 | + val sealed: Sealed, | |
| 1696 | + | |
| 1697 | + @Json(name = "SEL") | |
| 1698 | + val sel: Sel, | |
| 1699 | + | |
| 1700 | + val select: Select, | |
| 1701 | + | |
| 1693 | 1702 | @Json(name = "Self") |
| 1694 | 1703 | val self: Self, |
| 1695 | 1704 | |
| 1696 | 1705 | @Json(name = "Sendable") |
| 1697 | 1706 | val sendable: Sendable, |
| 1698 | 1707 | |
| 1708 | + @Json(name = "SerializationFeature") | |
| 1709 | + val serializationFeature: SerializationFeature, | |
| 1710 | + | |
| 1699 | 1711 | val serialize: Serialize, |
| 1700 | 1712 | |
| 1701 | 1713 | @Json(name = "SerializerProvider") |
| @@ -1781,15 +1793,7 @@ data class Obj5 ( | ||
| 1781 | 1793 | val using: Using, |
| 1782 | 1794 | |
| 1783 | 1795 | @Json(name = "Utf8JsonReader") |
| 1784 | - val utf8JSONReader: Utf8JSONReader, | |
| 1785 | - | |
| 1786 | - @Json(name = "Utf8JsonWriter") | |
| 1787 | - val utf8JSONWriter: Utf8JSONWriter, | |
| 1788 | - | |
| 1789 | - @Json(name = "UUID") | |
| 1790 | - val uuid: UUID, | |
| 1791 | - | |
| 1792 | - val virtual: Virtual | |
| 1796 | + val utf8JSONReader: Utf8JSONReader | |
| 1793 | 1797 | ) |
| 1794 | 1798 | |
| 1795 | 1799 | data class SelfClass ( |
| @@ -1835,16 +1839,24 @@ data class Typeof ( | ||
| 1835 | 1839 | val typeofTypeof: Long |
| 1836 | 1840 | ) |
| 1837 | 1841 | |
| 1838 | -data class Var ( | |
| 1839 | - @Json(name = "var") | |
| 1840 | - val varVar: Long | |
| 1841 | -) | |
| 1842 | - | |
| 1843 | 1842 | data class TrueClass ( |
| 1844 | 1843 | @Json(name = "true") |
| 1845 | 1844 | val trueTrue: Long |
| 1846 | 1845 | ) |
| 1847 | 1846 | |
| 1847 | +data class Sealed ( | |
| 1848 | + val sealed: Long | |
| 1849 | +) | |
| 1850 | + | |
| 1851 | +data class Sel ( | |
| 1852 | + @Json(name = "SEL") | |
| 1853 | + val sel: Long | |
| 1854 | +) | |
| 1855 | + | |
| 1856 | +data class Select ( | |
| 1857 | + val select: Long | |
| 1858 | +) | |
| 1859 | + | |
| 1848 | 1860 | data class Self ( |
| 1849 | 1861 | @Json(name = "Self") |
| 1850 | 1862 | val self: Long |
| @@ -1855,6 +1867,11 @@ data class Sendable ( | ||
| 1855 | 1867 | val sendable: Long |
| 1856 | 1868 | ) |
| 1857 | 1869 | |
| 1870 | +data class SerializationFeature ( | |
| 1871 | + @Json(name = "SerializationFeature") | |
| 1872 | + val serializationFeature: Long | |
| 1873 | +) | |
| 1874 | + | |
| 1858 | 1875 | data class Serialize ( |
| 1859 | 1876 | val serialize: Long |
| 1860 | 1877 | ) |
| @@ -2062,26 +2079,22 @@ data class Utf8JSONReader ( | ||
| 2062 | 2079 | val utf8JSONReader: Long |
| 2063 | 2080 | ) |
| 2064 | 2081 | |
| 2065 | -data class Utf8JSONWriter ( | |
| 2066 | - @Json(name = "Utf8JsonWriter") | |
| 2067 | - val utf8JSONWriter: Long | |
| 2068 | -) | |
| 2069 | - | |
| 2070 | -data class UUID ( | |
| 2071 | - @Json(name = "UUID") | |
| 2072 | - val uuid: Long | |
| 2073 | -) | |
| 2074 | - | |
| 2075 | -data class Virtual ( | |
| 2076 | - val virtual: Long | |
| 2077 | -) | |
| 2078 | - | |
| 2079 | 2082 | data class Obj6 ( |
| 2080 | 2083 | val dummy: Long, |
| 2081 | 2084 | |
| 2085 | + @Json(name = "var") | |
| 2086 | + val obj6Var: Var, | |
| 2087 | + | |
| 2082 | 2088 | @Json(name = "while") |
| 2083 | 2089 | val obj6While: While, |
| 2084 | 2090 | |
| 2091 | + @Json(name = "Utf8JsonWriter") | |
| 2092 | + val utf8JSONWriter: Utf8JSONWriter, | |
| 2093 | + | |
| 2094 | + @Json(name = "UUID") | |
| 2095 | + val uuid: UUID, | |
| 2096 | + | |
| 2097 | + val virtual: Virtual, | |
| 2085 | 2098 | val void: Void, |
| 2086 | 2099 | val volatile: Volatile, |
| 2087 | 2100 | |
| @@ -2103,11 +2116,30 @@ data class Obj6 ( | ||
| 2103 | 2116 | val yield: Yield |
| 2104 | 2117 | ) |
| 2105 | 2118 | |
| 2119 | +data class Var ( | |
| 2120 | + @Json(name = "var") | |
| 2121 | + val varVar: Long | |
| 2122 | +) | |
| 2123 | + | |
| 2106 | 2124 | data class While ( |
| 2107 | 2125 | @Json(name = "while") |
| 2108 | 2126 | val whileWhile: Long |
| 2109 | 2127 | ) |
| 2110 | 2128 | |
| 2129 | +data class Utf8JSONWriter ( | |
| 2130 | + @Json(name = "Utf8JsonWriter") | |
| 2131 | + val utf8JSONWriter: Long | |
| 2132 | +) | |
| 2133 | + | |
| 2134 | +data class UUID ( | |
| 2135 | + @Json(name = "UUID") | |
| 2136 | + val uuid: Long | |
| 2137 | +) | |
| 2138 | + | |
| 2139 | +data class Virtual ( | |
| 2140 | + val virtual: Long | |
| 2141 | +) | |
| 2142 | + | |
| 2111 | 2143 | data class Void ( |
| 2112 | 2144 | val void: Long |
| 2113 | 2145 | ) |
Mkotlinxdefault / TopLevel.kt+107 −71
| @@ -546,6 +546,10 @@ data class Obj2 ( | ||
| 546 | 546 | val del: Del, |
| 547 | 547 | val delegate: Delegate, |
| 548 | 548 | val delete: Delete, |
| 549 | + | |
| 550 | + @SerialName("DeserializationFeature") | |
| 551 | + val deserializationFeature: DeserializationFeature, | |
| 552 | + | |
| 549 | 553 | val dict: Dict, |
| 550 | 554 | val dictionary: Dictionary, |
| 551 | 555 | val didSet: DidSet, |
| @@ -605,7 +609,6 @@ data class Obj2 ( | ||
| 605 | 609 | val get: Get, |
| 606 | 610 | val global: Global, |
| 607 | 611 | val go: Go, |
| 608 | - val goto: Goto, | |
| 609 | 612 | |
| 610 | 613 | @SerialName("do") |
| 611 | 614 | val obj2Do: Do, |
| @@ -732,6 +735,12 @@ data class Delete ( | ||
| 732 | 735 | val delete: Long |
| 733 | 736 | ) |
| 734 | 737 | |
| 738 | +@Serializable | |
| 739 | +data class DeserializationFeature ( | |
| 740 | + @SerialName("DeserializationFeature") | |
| 741 | + val deserializationFeature: Long | |
| 742 | +) | |
| 743 | + | |
| 735 | 744 | @Serializable |
| 736 | 745 | data class Dict ( |
| 737 | 746 | val dict: Long |
| @@ -935,11 +944,6 @@ data class Go ( | ||
| 935 | 944 | val go: Long |
| 936 | 945 | ) |
| 937 | 946 | |
| 938 | -@Serializable | |
| 939 | -data class Goto ( | |
| 940 | - val goto: Long | |
| 941 | -) | |
| 942 | - | |
| 943 | 947 | @Serializable |
| 944 | 948 | data class Do ( |
| 945 | 949 | @SerialName("do") |
| @@ -973,6 +977,7 @@ data class FalseClass ( | ||
| 973 | 977 | @Serializable |
| 974 | 978 | data class Obj3 ( |
| 975 | 979 | val dummy: Long, |
| 980 | + val goto: Goto, | |
| 976 | 981 | val guard: Guard, |
| 977 | 982 | val hasOwnProperty: HasOwnProperty, |
| 978 | 983 | val hashCode: HashCode, |
| @@ -1085,8 +1090,6 @@ data class Obj3 ( | ||
| 1085 | 1090 | @SerialName("NO") |
| 1086 | 1091 | val no: No, |
| 1087 | 1092 | |
| 1088 | - val noexcept: Noexcept, | |
| 1089 | - | |
| 1090 | 1093 | @SerialName("if") |
| 1091 | 1094 | val obj3If: If, |
| 1092 | 1095 | |
| @@ -1100,6 +1103,11 @@ data class Obj3 ( | ||
| 1100 | 1103 | val obj3Is: Is |
| 1101 | 1104 | ) |
| 1102 | 1105 | |
| 1106 | +@Serializable | |
| 1107 | +data class Goto ( | |
| 1108 | + val goto: Long | |
| 1109 | +) | |
| 1110 | + | |
| 1103 | 1111 | @Serializable |
| 1104 | 1112 | data class Guard ( |
| 1105 | 1113 | val guard: Long |
| @@ -1418,11 +1426,6 @@ data class No ( | ||
| 1418 | 1426 | val no: Long |
| 1419 | 1427 | ) |
| 1420 | 1428 | |
| 1421 | -@Serializable | |
| 1422 | -data class Noexcept ( | |
| 1423 | - val noexcept: Long | |
| 1424 | -) | |
| 1425 | - | |
| 1426 | 1429 | @Serializable |
| 1427 | 1430 | data class If ( |
| 1428 | 1431 | @SerialName("if") |
| @@ -1451,6 +1454,7 @@ data class Is ( | ||
| 1451 | 1454 | data class Obj4 ( |
| 1452 | 1455 | val dummy: Long, |
| 1453 | 1456 | val noSuchMethod: NoSuchMethod, |
| 1457 | + val noexcept: Noexcept, | |
| 1454 | 1458 | val nonatomic: Nonatomic, |
| 1455 | 1459 | |
| 1456 | 1460 | @SerialName("None") |
| @@ -1499,6 +1503,12 @@ data class Obj4 ( | ||
| 1499 | 1503 | @SerialName("ObjectMapper") |
| 1500 | 1504 | val objectMapper: ObjectMapper, |
| 1501 | 1505 | |
| 1506 | + @SerialName("ObjectReader") | |
| 1507 | + val objectReader: ObjectReader, | |
| 1508 | + | |
| 1509 | + @SerialName("ObjectWriter") | |
| 1510 | + val objectWriter: ObjectWriter, | |
| 1511 | + | |
| 1502 | 1512 | val of: Of, |
| 1503 | 1513 | val oneway: Oneway, |
| 1504 | 1514 | val open: Open, |
| @@ -1551,13 +1561,7 @@ data class Obj4 ( | ||
| 1551 | 1561 | val right: Right, |
| 1552 | 1562 | val runtimeType: RuntimeType, |
| 1553 | 1563 | val s: S, |
| 1554 | - val sbyte: Sbyte, | |
| 1555 | - val sealed: Sealed, | |
| 1556 | - | |
| 1557 | - @SerialName("SEL") | |
| 1558 | - val sel: Sel, | |
| 1559 | - | |
| 1560 | - val select: Select | |
| 1564 | + val sbyte: Sbyte | |
| 1561 | 1565 | ) |
| 1562 | 1566 | |
| 1563 | 1567 | @Serializable |
| @@ -1565,6 +1569,11 @@ data class NoSuchMethod ( | ||
| 1565 | 1569 | val noSuchMethod: Long |
| 1566 | 1570 | ) |
| 1567 | 1571 | |
| 1572 | +@Serializable | |
| 1573 | +data class Noexcept ( | |
| 1574 | + val noexcept: Long | |
| 1575 | +) | |
| 1576 | + | |
| 1568 | 1577 | @Serializable |
| 1569 | 1578 | data class Nonatomic ( |
| 1570 | 1579 | val nonatomic: Long |
| @@ -1671,6 +1680,18 @@ data class ObjectMapper ( | ||
| 1671 | 1680 | val objectMapper: Long |
| 1672 | 1681 | ) |
| 1673 | 1682 | |
| 1683 | +@Serializable | |
| 1684 | +data class ObjectReader ( | |
| 1685 | + @SerialName("ObjectReader") | |
| 1686 | + val objectReader: Long | |
| 1687 | +) | |
| 1688 | + | |
| 1689 | +@Serializable | |
| 1690 | +data class ObjectWriter ( | |
| 1691 | + @SerialName("ObjectWriter") | |
| 1692 | + val objectWriter: Long | |
| 1693 | +) | |
| 1694 | + | |
| 1674 | 1695 | @Serializable |
| 1675 | 1696 | data class Of ( |
| 1676 | 1697 | val of: Long |
| @@ -1880,22 +1901,6 @@ data class Sbyte ( | ||
| 1880 | 1901 | val sbyte: Long |
| 1881 | 1902 | ) |
| 1882 | 1903 | |
| 1883 | -@Serializable | |
| 1884 | -data class Sealed ( | |
| 1885 | - val sealed: Long | |
| 1886 | -) | |
| 1887 | - | |
| 1888 | -@Serializable | |
| 1889 | -data class Sel ( | |
| 1890 | - @SerialName("SEL") | |
| 1891 | - val sel: Long | |
| 1892 | -) | |
| 1893 | - | |
| 1894 | -@Serializable | |
| 1895 | -data class Select ( | |
| 1896 | - val select: Long | |
| 1897 | -) | |
| 1898 | - | |
| 1899 | 1904 | @Serializable |
| 1900 | 1905 | data class Obj5 ( |
| 1901 | 1906 | val dummy: Long, |
| @@ -1927,18 +1932,25 @@ data class Obj5 ( | ||
| 1927 | 1932 | @SerialName("typeof") |
| 1928 | 1933 | val obj5Typeof: Typeof, |
| 1929 | 1934 | |
| 1930 | - @SerialName("var") | |
| 1931 | - val obj5Var: Var, | |
| 1932 | - | |
| 1933 | 1935 | @SerialName("true") |
| 1934 | 1936 | val purpleTrue: TrueClass, |
| 1935 | 1937 | |
| 1938 | + val sealed: Sealed, | |
| 1939 | + | |
| 1940 | + @SerialName("SEL") | |
| 1941 | + val sel: Sel, | |
| 1942 | + | |
| 1943 | + val select: Select, | |
| 1944 | + | |
| 1936 | 1945 | @SerialName("Self") |
| 1937 | 1946 | val self: Self, |
| 1938 | 1947 | |
| 1939 | 1948 | @SerialName("Sendable") |
| 1940 | 1949 | val sendable: Sendable, |
| 1941 | 1950 | |
| 1951 | + @SerialName("SerializationFeature") | |
| 1952 | + val serializationFeature: SerializationFeature, | |
| 1953 | + | |
| 1942 | 1954 | val serialize: Serialize, |
| 1943 | 1955 | |
| 1944 | 1956 | @SerialName("SerializerProvider") |
| @@ -2024,15 +2036,7 @@ data class Obj5 ( | ||
| 2024 | 2036 | val using: Using, |
| 2025 | 2037 | |
| 2026 | 2038 | @SerialName("Utf8JsonReader") |
| 2027 | - val utf8JSONReader: Utf8JSONReader, | |
| 2028 | - | |
| 2029 | - @SerialName("Utf8JsonWriter") | |
| 2030 | - val utf8JSONWriter: Utf8JSONWriter, | |
| 2031 | - | |
| 2032 | - @SerialName("UUID") | |
| 2033 | - val uuid: UUID, | |
| 2034 | - | |
| 2035 | - val virtual: Virtual | |
| 2039 | + val utf8JSONReader: Utf8JSONReader | |
| 2036 | 2040 | ) |
| 2037 | 2041 | |
| 2038 | 2042 | @Serializable |
| @@ -2087,18 +2091,28 @@ data class Typeof ( | ||
| 2087 | 2091 | val typeofTypeof: Long |
| 2088 | 2092 | ) |
| 2089 | 2093 | |
| 2090 | -@Serializable | |
| 2091 | -data class Var ( | |
| 2092 | - @SerialName("var") | |
| 2093 | - val varVar: Long | |
| 2094 | -) | |
| 2095 | - | |
| 2096 | 2094 | @Serializable |
| 2097 | 2095 | data class TrueClass ( |
| 2098 | 2096 | @SerialName("true") |
| 2099 | 2097 | val trueTrue: Long |
| 2100 | 2098 | ) |
| 2101 | 2099 | |
| 2100 | +@Serializable | |
| 2101 | +data class Sealed ( | |
| 2102 | + val sealed: Long | |
| 2103 | +) | |
| 2104 | + | |
| 2105 | +@Serializable | |
| 2106 | +data class Sel ( | |
| 2107 | + @SerialName("SEL") | |
| 2108 | + val sel: Long | |
| 2109 | +) | |
| 2110 | + | |
| 2111 | +@Serializable | |
| 2112 | +data class Select ( | |
| 2113 | + val select: Long | |
| 2114 | +) | |
| 2115 | + | |
| 2102 | 2116 | @Serializable |
| 2103 | 2117 | data class Self ( |
| 2104 | 2118 | @SerialName("Self") |
| @@ -2111,6 +2125,12 @@ data class Sendable ( | ||
| 2111 | 2125 | val sendable: Long |
| 2112 | 2126 | ) |
| 2113 | 2127 | |
| 2128 | +@Serializable | |
| 2129 | +data class SerializationFeature ( | |
| 2130 | + @SerialName("SerializationFeature") | |
| 2131 | + val serializationFeature: Long | |
| 2132 | +) | |
| 2133 | + | |
| 2114 | 2134 | @Serializable |
| 2115 | 2135 | data class Serialize ( |
| 2116 | 2136 | val serialize: Long |
| @@ -2366,30 +2386,23 @@ data class Utf8JSONReader ( | ||
| 2366 | 2386 | val utf8JSONReader: Long |
| 2367 | 2387 | ) |
| 2368 | 2388 | |
| 2369 | -@Serializable | |
| 2370 | -data class Utf8JSONWriter ( | |
| 2371 | - @SerialName("Utf8JsonWriter") | |
| 2372 | - val utf8JSONWriter: Long | |
| 2373 | -) | |
| 2374 | - | |
| 2375 | -@Serializable | |
| 2376 | -data class UUID ( | |
| 2377 | - @SerialName("UUID") | |
| 2378 | - val uuid: Long | |
| 2379 | -) | |
| 2380 | - | |
| 2381 | -@Serializable | |
| 2382 | -data class Virtual ( | |
| 2383 | - val virtual: Long | |
| 2384 | -) | |
| 2385 | - | |
| 2386 | 2389 | @Serializable |
| 2387 | 2390 | data class Obj6 ( |
| 2388 | 2391 | val dummy: Long, |
| 2389 | 2392 | |
| 2393 | + @SerialName("var") | |
| 2394 | + val obj6Var: Var, | |
| 2395 | + | |
| 2390 | 2396 | @SerialName("while") |
| 2391 | 2397 | val obj6While: While, |
| 2392 | 2398 | |
| 2399 | + @SerialName("Utf8JsonWriter") | |
| 2400 | + val utf8JSONWriter: Utf8JSONWriter, | |
| 2401 | + | |
| 2402 | + @SerialName("UUID") | |
| 2403 | + val uuid: UUID, | |
| 2404 | + | |
| 2405 | + val virtual: Virtual, | |
| 2393 | 2406 | val void: Void, |
| 2394 | 2407 | val volatile: Volatile, |
| 2395 | 2408 | |
| @@ -2411,12 +2424,35 @@ data class Obj6 ( | ||
| 2411 | 2424 | val yield: Yield |
| 2412 | 2425 | ) |
| 2413 | 2426 | |
| 2427 | +@Serializable | |
| 2428 | +data class Var ( | |
| 2429 | + @SerialName("var") | |
| 2430 | + val varVar: Long | |
| 2431 | +) | |
| 2432 | + | |
| 2414 | 2433 | @Serializable |
| 2415 | 2434 | data class While ( |
| 2416 | 2435 | @SerialName("while") |
| 2417 | 2436 | val whileWhile: Long |
| 2418 | 2437 | ) |
| 2419 | 2438 | |
| 2439 | +@Serializable | |
| 2440 | +data class Utf8JSONWriter ( | |
| 2441 | + @SerialName("Utf8JsonWriter") | |
| 2442 | + val utf8JSONWriter: Long | |
| 2443 | +) | |
| 2444 | + | |
| 2445 | +@Serializable | |
| 2446 | +data class UUID ( | |
| 2447 | + @SerialName("UUID") | |
| 2448 | + val uuid: Long | |
| 2449 | +) | |
| 2450 | + | |
| 2451 | +@Serializable | |
| 2452 | +data class Virtual ( | |
| 2453 | + val virtual: Long | |
| 2454 | +) | |
| 2455 | + | |
| 2420 | 2456 | @Serializable |
| 2421 | 2457 | data class Void ( |
| 2422 | 2458 | val void: Long |
Mobjective-cdefault / QTTopLevel.h+76 −52
| @@ -91,6 +91,7 @@ | ||
| 91 | 91 | @class QTDel; |
| 92 | 92 | @class QTDelegate; |
| 93 | 93 | @class QTDelete; |
| 94 | +@class QTDeserializationFeature; | |
| 94 | 95 | @class QTDict; |
| 95 | 96 | @class QTDictionary; |
| 96 | 97 | @class QTDidSet; |
| @@ -135,7 +136,6 @@ | ||
| 135 | 136 | @class QTFalse; |
| 136 | 137 | @class QTFloat; |
| 137 | 138 | @class QTFor; |
| 138 | -@class QTGoto; | |
| 139 | 139 | @class QTFalseClass; |
| 140 | 140 | @class QTObj3; |
| 141 | 141 | @class QTGuard; |
| @@ -193,7 +193,7 @@ | ||
| 193 | 193 | @class QTNative; |
| 194 | 194 | @class QTNewtonsoft; |
| 195 | 195 | @class QTNo; |
| 196 | -@class QTNoexcept; | |
| 196 | +@class QTGoto; | |
| 197 | 197 | @class QTIf; |
| 198 | 198 | @class QTInline; |
| 199 | 199 | @class QTInt; |
| @@ -204,6 +204,7 @@ | ||
| 204 | 204 | @class QTNew; |
| 205 | 205 | @class QTObj4; |
| 206 | 206 | @class QTNoSuchMethod; |
| 207 | +@class QTNoexcept; | |
| 207 | 208 | @class QTNone; |
| 208 | 209 | @class QTNonlocal; |
| 209 | 210 | @class QTNonmutating; |
| @@ -225,6 +226,8 @@ | ||
| 225 | 226 | @class QTReturn; |
| 226 | 227 | @class QTObject; |
| 227 | 228 | @class QTObjectMapper; |
| 229 | +@class QTObjectReader; | |
| 230 | +@class QTObjectWriter; | |
| 228 | 231 | @class QTOf; |
| 229 | 232 | @class QTOneway; |
| 230 | 233 | @class QTOpen; |
| @@ -264,9 +267,6 @@ | ||
| 264 | 267 | @class QTRuntimeType; |
| 265 | 268 | @class QTS; |
| 266 | 269 | @class QTSbyte; |
| 267 | -@class QTSealed; | |
| 268 | -@class QTSel; | |
| 269 | -@class QTSelect; | |
| 270 | 270 | @class QTObj5; |
| 271 | 271 | @class QTSelfClass; |
| 272 | 272 | @class QTShort; |
| @@ -281,8 +281,12 @@ | ||
| 281 | 281 | @class QTTypeof; |
| 282 | 282 | @class QTUnion; |
| 283 | 283 | @class QTUnsigned; |
| 284 | +@class QTSealed; | |
| 285 | +@class QTSel; | |
| 286 | +@class QTSelect; | |
| 284 | 287 | @class QTSelf; |
| 285 | 288 | @class QTSendable; |
| 289 | +@class QTSerializationFeature; | |
| 286 | 290 | @class QTSerialize; |
| 287 | 291 | @class QTSerializerProvider; |
| 288 | 292 | @class QTSet; |
| @@ -328,14 +332,14 @@ | ||
| 328 | 332 | @class QTUshort; |
| 329 | 333 | @class QTUsing; |
| 330 | 334 | @class QTUtf8JSONReader; |
| 331 | -@class QTUtf8JSONWriter; | |
| 332 | -@class QTUUID; | |
| 333 | -@class QTVar; | |
| 334 | -@class QTVirtual; | |
| 335 | 335 | @class QTObj6; |
| 336 | 336 | @class QTVoid; |
| 337 | 337 | @class QTVolatile; |
| 338 | 338 | @class QTWhile; |
| 339 | +@class QTUtf8JSONWriter; | |
| 340 | +@class QTUUID; | |
| 341 | +@class QTVar; | |
| 342 | +@class QTVirtual; | |
| 339 | 343 | @class QTWcharT; |
| 340 | 344 | @class QTWeak; |
| 341 | 345 | @class QTWhere; |
| @@ -725,6 +729,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 725 | 729 | @property (nonatomic, strong) QTDel *del; |
| 726 | 730 | @property (nonatomic, strong) QTDelegate *delegate; |
| 727 | 731 | @property (nonatomic, strong) QTDelete *delete; |
| 732 | +@property (nonatomic, strong) QTDeserializationFeature *deserializationFeature; | |
| 728 | 733 | @property (nonatomic, strong) QTDict *dict; |
| 729 | 734 | @property (nonatomic, strong) QTDictionary *dictionary; |
| 730 | 735 | @property (nonatomic, strong) QTDidSet *didSet; |
| @@ -769,7 +774,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 769 | 774 | @property (nonatomic, strong) QTFalse *obj2False; |
| 770 | 775 | @property (nonatomic, strong) QTFloat *obj2Float; |
| 771 | 776 | @property (nonatomic, strong) QTFor *obj2For; |
| 772 | -@property (nonatomic, strong) QTGoto *obj2Goto; | |
| 773 | 777 | @property (nonatomic, strong) QTFalseClass *theFalse; |
| 774 | 778 | @end |
| 775 | 779 | |
| @@ -849,6 +853,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 849 | 853 | @property (nonatomic, assign) NSInteger delete; |
| 850 | 854 | @end |
| 851 | 855 | |
| 856 | +@interface QTDeserializationFeature : NSObject | |
| 857 | +@property (nonatomic, assign) NSInteger deserializationFeature; | |
| 858 | +@end | |
| 859 | + | |
| 852 | 860 | @interface QTDict : NSObject |
| 853 | 861 | @property (nonatomic, assign) NSInteger dict; |
| 854 | 862 | @end |
| @@ -1021,10 +1029,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1021 | 1029 | @property (nonatomic, assign) NSInteger forFor; |
| 1022 | 1030 | @end |
| 1023 | 1031 | |
| 1024 | -@interface QTGoto : NSObject | |
| 1025 | -@property (nonatomic, assign) NSInteger gotoGoto; | |
| 1026 | -@end | |
| 1027 | - | |
| 1028 | 1032 | @interface QTFalseClass : NSObject |
| 1029 | 1033 | @property (nonatomic, assign) NSInteger falseFalse; |
| 1030 | 1034 | @end |
| @@ -1086,7 +1090,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1086 | 1090 | @property (nonatomic, strong) QTNative *native; |
| 1087 | 1091 | @property (nonatomic, strong) QTNewtonsoft *newtonsoft; |
| 1088 | 1092 | @property (nonatomic, strong) QTNo *no; |
| 1089 | -@property (nonatomic, strong) QTNoexcept *noexcept; | |
| 1093 | +@property (nonatomic, strong) QTGoto *obj3Goto; | |
| 1090 | 1094 | @property (nonatomic, strong) QTIf *obj3If; |
| 1091 | 1095 | @property (nonatomic, strong) QTInline *obj3Inline; |
| 1092 | 1096 | @property (nonatomic, strong) QTInt *obj3Int; |
| @@ -1317,8 +1321,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1317 | 1321 | @property (nonatomic, assign) NSInteger no; |
| 1318 | 1322 | @end |
| 1319 | 1323 | |
| 1320 | -@interface QTNoexcept : NSObject | |
| 1321 | -@property (nonatomic, assign) NSInteger noexcept; | |
| 1324 | +@interface QTGoto : NSObject | |
| 1325 | +@property (nonatomic, assign) NSInteger gotoGoto; | |
| 1322 | 1326 | @end |
| 1323 | 1327 | |
| 1324 | 1328 | @interface QTIf : NSObject |
| @@ -1356,6 +1360,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1356 | 1360 | @interface QTObj4 : NSObject |
| 1357 | 1361 | @property (nonatomic, assign) NSInteger dummy; |
| 1358 | 1362 | @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod; |
| 1363 | +@property (nonatomic, strong) QTNoexcept *noexcept; | |
| 1359 | 1364 | @property (nonatomic, strong) QTNone *none; |
| 1360 | 1365 | @property (nonatomic, strong) QTNonlocal *nonlocal; |
| 1361 | 1366 | @property (nonatomic, strong) QTNonmutating *nonmutating; |
| @@ -1377,6 +1382,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1377 | 1382 | @property (nonatomic, strong) QTReturn *obj4Return; |
| 1378 | 1383 | @property (nonatomic, strong) QTObject *object; |
| 1379 | 1384 | @property (nonatomic, strong) QTObjectMapper *objectMapper; |
| 1385 | +@property (nonatomic, strong) QTObjectReader *objectReader; | |
| 1386 | +@property (nonatomic, strong) QTObjectWriter *objectWriter; | |
| 1380 | 1387 | @property (nonatomic, strong) QTOf *of; |
| 1381 | 1388 | @property (nonatomic, strong) QTOneway *oneway; |
| 1382 | 1389 | @property (nonatomic, strong) QTOpen *open; |
| @@ -1416,15 +1423,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1416 | 1423 | @property (nonatomic, strong) QTRuntimeType *runtimeType; |
| 1417 | 1424 | @property (nonatomic, strong) QTS *s; |
| 1418 | 1425 | @property (nonatomic, strong) QTSbyte *sbyte; |
| 1419 | -@property (nonatomic, strong) QTSealed *sealed; | |
| 1420 | -@property (nonatomic, strong) QTSel *sel; | |
| 1421 | -@property (nonatomic, strong) QTSelect *select; | |
| 1422 | 1426 | @end |
| 1423 | 1427 | |
| 1424 | 1428 | @interface QTNoSuchMethod : NSObject |
| 1425 | 1429 | @property (nonatomic, assign) NSInteger noSuchMethod; |
| 1426 | 1430 | @end |
| 1427 | 1431 | |
| 1432 | +@interface QTNoexcept : NSObject | |
| 1433 | +@property (nonatomic, assign) NSInteger noexcept; | |
| 1434 | +@end | |
| 1435 | + | |
| 1428 | 1436 | @interface QTNone : NSObject |
| 1429 | 1437 | @property (nonatomic, assign) NSInteger none; |
| 1430 | 1438 | @end |
| @@ -1509,6 +1517,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1509 | 1517 | @property (nonatomic, assign) NSInteger objectMapper; |
| 1510 | 1518 | @end |
| 1511 | 1519 | |
| 1520 | +@interface QTObjectReader : NSObject | |
| 1521 | +@property (nonatomic, assign) NSInteger objectReader; | |
| 1522 | +@end | |
| 1523 | + | |
| 1524 | +@interface QTObjectWriter : NSObject | |
| 1525 | +@property (nonatomic, assign) NSInteger objectWriter; | |
| 1526 | +@end | |
| 1527 | + | |
| 1512 | 1528 | @interface QTOf : NSObject |
| 1513 | 1529 | @property (nonatomic, assign) NSInteger of; |
| 1514 | 1530 | @end |
| @@ -1665,18 +1681,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1665 | 1681 | @property (nonatomic, assign) NSInteger sbyte; |
| 1666 | 1682 | @end |
| 1667 | 1683 | |
| 1668 | -@interface QTSealed : NSObject | |
| 1669 | -@property (nonatomic, assign) NSInteger sealed; | |
| 1670 | -@end | |
| 1671 | - | |
| 1672 | -@interface QTSel : NSObject | |
| 1673 | -@property (nonatomic, assign) NSInteger sel; | |
| 1674 | -@end | |
| 1675 | - | |
| 1676 | -@interface QTSelect : NSObject | |
| 1677 | -@property (nonatomic, assign) NSInteger select; | |
| 1678 | -@end | |
| 1679 | - | |
| 1680 | 1684 | @interface QTObj5 : NSObject |
| 1681 | 1685 | @property (nonatomic, assign) NSInteger dummy; |
| 1682 | 1686 | @property (nonatomic, strong) QTSelfClass *obj5Self; |
| @@ -1692,8 +1696,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1692 | 1696 | @property (nonatomic, strong) QTTypeof *obj5Typeof; |
| 1693 | 1697 | @property (nonatomic, strong) QTUnion *obj5Union; |
| 1694 | 1698 | @property (nonatomic, strong) QTUnsigned *obj5Unsigned; |
| 1699 | +@property (nonatomic, strong) QTSealed *sealed; | |
| 1700 | +@property (nonatomic, strong) QTSel *sel; | |
| 1701 | +@property (nonatomic, strong) QTSelect *select; | |
| 1695 | 1702 | @property (nonatomic, strong) QTSelf *self; |
| 1696 | 1703 | @property (nonatomic, strong) QTSendable *sendable; |
| 1704 | +@property (nonatomic, strong) QTSerializationFeature *serializationFeature; | |
| 1697 | 1705 | @property (nonatomic, strong) QTSerialize *serialize; |
| 1698 | 1706 | @property (nonatomic, strong) QTSerializerProvider *serializerProvider; |
| 1699 | 1707 | @property (nonatomic, strong) QTSet *set; |
| @@ -1739,10 +1747,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1739 | 1747 | @property (nonatomic, strong) QTUshort *ushort; |
| 1740 | 1748 | @property (nonatomic, strong) QTUsing *using; |
| 1741 | 1749 | @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader; |
| 1742 | -@property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter; | |
| 1743 | -@property (nonatomic, strong) QTUUID *uuid; | |
| 1744 | -@property (nonatomic, strong) QTVar *var; | |
| 1745 | -@property (nonatomic, strong) QTVirtual *virtual; | |
| 1746 | 1750 | @end |
| 1747 | 1751 | |
| 1748 | 1752 | @interface QTSelfClass : NSObject |
| @@ -1797,6 +1801,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1797 | 1801 | @property (nonatomic, assign) NSInteger unsignedUnsigned; |
| 1798 | 1802 | @end |
| 1799 | 1803 | |
| 1804 | +@interface QTSealed : NSObject | |
| 1805 | +@property (nonatomic, assign) NSInteger sealed; | |
| 1806 | +@end | |
| 1807 | + | |
| 1808 | +@interface QTSel : NSObject | |
| 1809 | +@property (nonatomic, assign) NSInteger sel; | |
| 1810 | +@end | |
| 1811 | + | |
| 1812 | +@interface QTSelect : NSObject | |
| 1813 | +@property (nonatomic, assign) NSInteger select; | |
| 1814 | +@end | |
| 1815 | + | |
| 1800 | 1816 | @interface QTSelf : NSObject |
| 1801 | 1817 | @property (nonatomic, assign) NSInteger self; |
| 1802 | 1818 | @end |
| @@ -1805,6 +1821,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1805 | 1821 | @property (nonatomic, assign) NSInteger sendable; |
| 1806 | 1822 | @end |
| 1807 | 1823 | |
| 1824 | +@interface QTSerializationFeature : NSObject | |
| 1825 | +@property (nonatomic, assign) NSInteger serializationFeature; | |
| 1826 | +@end | |
| 1827 | + | |
| 1808 | 1828 | @interface QTSerialize : NSObject |
| 1809 | 1829 | @property (nonatomic, assign) NSInteger serialize; |
| 1810 | 1830 | @end |
| @@ -1985,27 +2005,15 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1985 | 2005 | @property (nonatomic, assign) NSInteger utf8JSONReader; |
| 1986 | 2006 | @end |
| 1987 | 2007 | |
| 1988 | -@interface QTUtf8JSONWriter : NSObject | |
| 1989 | -@property (nonatomic, assign) NSInteger utf8JSONWriter; | |
| 1990 | -@end | |
| 1991 | - | |
| 1992 | -@interface QTUUID : NSObject | |
| 1993 | -@property (nonatomic, assign) NSInteger uuid; | |
| 1994 | -@end | |
| 1995 | - | |
| 1996 | -@interface QTVar : NSObject | |
| 1997 | -@property (nonatomic, assign) NSInteger var; | |
| 1998 | -@end | |
| 1999 | - | |
| 2000 | -@interface QTVirtual : NSObject | |
| 2001 | -@property (nonatomic, assign) NSInteger virtual; | |
| 2002 | -@end | |
| 2003 | - | |
| 2004 | 2008 | @interface QTObj6 : NSObject |
| 2005 | 2009 | @property (nonatomic, assign) NSInteger dummy; |
| 2006 | 2010 | @property (nonatomic, strong) QTVoid *obj6Void; |
| 2007 | 2011 | @property (nonatomic, strong) QTVolatile *obj6Volatile; |
| 2008 | 2012 | @property (nonatomic, strong) QTWhile *obj6While; |
| 2013 | +@property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter; | |
| 2014 | +@property (nonatomic, strong) QTUUID *uuid; | |
| 2015 | +@property (nonatomic, strong) QTVar *var; | |
| 2016 | +@property (nonatomic, strong) QTVirtual *virtual; | |
| 2009 | 2017 | @property (nonatomic, strong) QTWcharT *wcharT; |
| 2010 | 2018 | @property (nonatomic, strong) QTWeak *weak; |
| 2011 | 2019 | @property (nonatomic, strong) QTWhere *where; |
| @@ -2029,6 +2037,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 2029 | 2037 | @property (nonatomic, assign) NSInteger whileWhile; |
| 2030 | 2038 | @end |
| 2031 | 2039 | |
| 2040 | +@interface QTUtf8JSONWriter : NSObject | |
| 2041 | +@property (nonatomic, assign) NSInteger utf8JSONWriter; | |
| 2042 | +@end | |
| 2043 | + | |
| 2044 | +@interface QTUUID : NSObject | |
| 2045 | +@property (nonatomic, assign) NSInteger uuid; | |
| 2046 | +@end | |
| 2047 | + | |
| 2048 | +@interface QTVar : NSObject | |
| 2049 | +@property (nonatomic, assign) NSInteger var; | |
| 2050 | +@end | |
| 2051 | + | |
| 2052 | +@interface QTVirtual : NSObject | |
| 2053 | +@property (nonatomic, assign) NSInteger virtual; | |
| 2054 | +@end | |
| 2055 | + | |
| 2032 | 2056 | @interface QTWcharT : NSObject |
| 2033 | 2057 | @property (nonatomic, assign) NSInteger wcharT; |
| 2034 | 2058 | @end |
Mobjective-cdefault / QTTopLevel.m+824 −576
| @@ -438,6 +438,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 438 | 438 | - (NSDictionary *)JSONDictionary; |
| 439 | 439 | @end |
| 440 | 440 | |
| 441 | +@interface QTDeserializationFeature (JSONConversion) | |
| 442 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 443 | +- (NSDictionary *)JSONDictionary; | |
| 444 | +@end | |
| 445 | + | |
| 441 | 446 | @interface QTDict (JSONConversion) |
| 442 | 447 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 443 | 448 | - (NSDictionary *)JSONDictionary; |
| @@ -653,11 +658,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 653 | 658 | - (NSDictionary *)JSONDictionary; |
| 654 | 659 | @end |
| 655 | 660 | |
| 656 | -@interface QTGoto (JSONConversion) | |
| 657 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 658 | -- (NSDictionary *)JSONDictionary; | |
| 659 | -@end | |
| 660 | - | |
| 661 | 661 | @interface QTFalseClass (JSONConversion) |
| 662 | 662 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 663 | 663 | - (NSDictionary *)JSONDictionary; |
| @@ -943,7 +943,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 943 | 943 | - (NSDictionary *)JSONDictionary; |
| 944 | 944 | @end |
| 945 | 945 | |
| 946 | -@interface QTNoexcept (JSONConversion) | |
| 946 | +@interface QTGoto (JSONConversion) | |
| 947 | 947 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 948 | 948 | - (NSDictionary *)JSONDictionary; |
| 949 | 949 | @end |
| @@ -998,6 +998,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 998 | 998 | - (NSDictionary *)JSONDictionary; |
| 999 | 999 | @end |
| 1000 | 1000 | |
| 1001 | +@interface QTNoexcept (JSONConversion) | |
| 1002 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1003 | +- (NSDictionary *)JSONDictionary; | |
| 1004 | +@end | |
| 1005 | + | |
| 1001 | 1006 | @interface QTNone (JSONConversion) |
| 1002 | 1007 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1003 | 1008 | - (NSDictionary *)JSONDictionary; |
| @@ -1103,6 +1108,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1103 | 1108 | - (NSDictionary *)JSONDictionary; |
| 1104 | 1109 | @end |
| 1105 | 1110 | |
| 1111 | +@interface QTObjectReader (JSONConversion) | |
| 1112 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1113 | +- (NSDictionary *)JSONDictionary; | |
| 1114 | +@end | |
| 1115 | + | |
| 1116 | +@interface QTObjectWriter (JSONConversion) | |
| 1117 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1118 | +- (NSDictionary *)JSONDictionary; | |
| 1119 | +@end | |
| 1120 | + | |
| 1106 | 1121 | @interface QTOf (JSONConversion) |
| 1107 | 1122 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1108 | 1123 | - (NSDictionary *)JSONDictionary; |
| @@ -1298,21 +1313,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1298 | 1313 | - (NSDictionary *)JSONDictionary; |
| 1299 | 1314 | @end |
| 1300 | 1315 | |
| 1301 | -@interface QTSealed (JSONConversion) | |
| 1302 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1303 | -- (NSDictionary *)JSONDictionary; | |
| 1304 | -@end | |
| 1305 | - | |
| 1306 | -@interface QTSel (JSONConversion) | |
| 1307 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1308 | -- (NSDictionary *)JSONDictionary; | |
| 1309 | -@end | |
| 1310 | - | |
| 1311 | -@interface QTSelect (JSONConversion) | |
| 1312 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1313 | -- (NSDictionary *)JSONDictionary; | |
| 1314 | -@end | |
| 1315 | - | |
| 1316 | 1316 | @interface QTObj5 (JSONConversion) |
| 1317 | 1317 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1318 | 1318 | - (NSDictionary *)JSONDictionary; |
| @@ -1383,6 +1383,21 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1383 | 1383 | - (NSDictionary *)JSONDictionary; |
| 1384 | 1384 | @end |
| 1385 | 1385 | |
| 1386 | +@interface QTSealed (JSONConversion) | |
| 1387 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1388 | +- (NSDictionary *)JSONDictionary; | |
| 1389 | +@end | |
| 1390 | + | |
| 1391 | +@interface QTSel (JSONConversion) | |
| 1392 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1393 | +- (NSDictionary *)JSONDictionary; | |
| 1394 | +@end | |
| 1395 | + | |
| 1396 | +@interface QTSelect (JSONConversion) | |
| 1397 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1398 | +- (NSDictionary *)JSONDictionary; | |
| 1399 | +@end | |
| 1400 | + | |
| 1386 | 1401 | @interface QTSelf (JSONConversion) |
| 1387 | 1402 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1388 | 1403 | - (NSDictionary *)JSONDictionary; |
| @@ -1393,6 +1408,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1393 | 1408 | - (NSDictionary *)JSONDictionary; |
| 1394 | 1409 | @end |
| 1395 | 1410 | |
| 1411 | +@interface QTSerializationFeature (JSONConversion) | |
| 1412 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1413 | +- (NSDictionary *)JSONDictionary; | |
| 1414 | +@end | |
| 1415 | + | |
| 1396 | 1416 | @interface QTSerialize (JSONConversion) |
| 1397 | 1417 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1398 | 1418 | - (NSDictionary *)JSONDictionary; |
| @@ -1618,42 +1638,42 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1618 | 1638 | - (NSDictionary *)JSONDictionary; |
| 1619 | 1639 | @end |
| 1620 | 1640 | |
| 1621 | -@interface QTUtf8JSONWriter (JSONConversion) | |
| 1641 | +@interface QTObj6 (JSONConversion) | |
| 1622 | 1642 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1623 | 1643 | - (NSDictionary *)JSONDictionary; |
| 1624 | 1644 | @end |
| 1625 | 1645 | |
| 1626 | -@interface QTUUID (JSONConversion) | |
| 1646 | +@interface QTVoid (JSONConversion) | |
| 1627 | 1647 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1628 | 1648 | - (NSDictionary *)JSONDictionary; |
| 1629 | 1649 | @end |
| 1630 | 1650 | |
| 1631 | -@interface QTVar (JSONConversion) | |
| 1651 | +@interface QTVolatile (JSONConversion) | |
| 1632 | 1652 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1633 | 1653 | - (NSDictionary *)JSONDictionary; |
| 1634 | 1654 | @end |
| 1635 | 1655 | |
| 1636 | -@interface QTVirtual (JSONConversion) | |
| 1656 | +@interface QTWhile (JSONConversion) | |
| 1637 | 1657 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1638 | 1658 | - (NSDictionary *)JSONDictionary; |
| 1639 | 1659 | @end |
| 1640 | 1660 | |
| 1641 | -@interface QTObj6 (JSONConversion) | |
| 1661 | +@interface QTUtf8JSONWriter (JSONConversion) | |
| 1642 | 1662 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1643 | 1663 | - (NSDictionary *)JSONDictionary; |
| 1644 | 1664 | @end |
| 1645 | 1665 | |
| 1646 | -@interface QTVoid (JSONConversion) | |
| 1666 | +@interface QTUUID (JSONConversion) | |
| 1647 | 1667 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1648 | 1668 | - (NSDictionary *)JSONDictionary; |
| 1649 | 1669 | @end |
| 1650 | 1670 | |
| 1651 | -@interface QTVolatile (JSONConversion) | |
| 1671 | +@interface QTVar (JSONConversion) | |
| 1652 | 1672 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1653 | 1673 | - (NSDictionary *)JSONDictionary; |
| 1654 | 1674 | @end |
| 1655 | 1675 | |
| 1656 | -@interface QTWhile (JSONConversion) | |
| 1676 | +@interface QTVirtual (JSONConversion) | |
| 1657 | 1677 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1658 | 1678 | - (NSDictionary *)JSONDictionary; |
| 1659 | 1679 | @end |
| @@ -5272,6 +5292,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5272 | 5292 | @"del": @"del", |
| 5273 | 5293 | @"delegate": @"delegate", |
| 5274 | 5294 | @"delete": @"delete", |
| 5295 | + @"DeserializationFeature": @"deserializationFeature", | |
| 5275 | 5296 | @"dict": @"dict", |
| 5276 | 5297 | @"dictionary": @"dictionary", |
| 5277 | 5298 | @"didSet": @"didSet", |
| @@ -5316,7 +5337,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5316 | 5337 | @"False": @"obj2False", |
| 5317 | 5338 | @"float": @"obj2Float", |
| 5318 | 5339 | @"for": @"obj2For", |
| 5319 | - @"goto": @"obj2Goto", | |
| 5320 | 5340 | @"false": @"theFalse", |
| 5321 | 5341 | }; |
| 5322 | 5342 | } |
| @@ -5348,6 +5368,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5348 | 5368 | if (![dict[@"del"] isKindOfClass:NSDictionary.class]) return nil; |
| 5349 | 5369 | if (![dict[@"delegate"] isKindOfClass:NSDictionary.class]) return nil; |
| 5350 | 5370 | if (![dict[@"delete"] isKindOfClass:NSDictionary.class]) return nil; |
| 5371 | + if (![dict[@"DeserializationFeature"] isKindOfClass:NSDictionary.class]) return nil; | |
| 5351 | 5372 | if (![dict[@"dict"] isKindOfClass:NSDictionary.class]) return nil; |
| 5352 | 5373 | if (![dict[@"dictionary"] isKindOfClass:NSDictionary.class]) return nil; |
| 5353 | 5374 | if (![dict[@"didSet"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -5393,7 +5414,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5393 | 5414 | if (![dict[@"False"] isKindOfClass:NSDictionary.class]) return nil; |
| 5394 | 5415 | if (![dict[@"float"] isKindOfClass:NSDictionary.class]) return nil; |
| 5395 | 5416 | if (![dict[@"for"] isKindOfClass:NSDictionary.class]) return nil; |
| 5396 | - if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil; | |
| 5397 | 5417 | if (![dict[@"false"] isKindOfClass:NSDictionary.class]) return nil; |
| 5398 | 5418 | [self setValuesForKeysWithDictionary:dict]; |
| 5399 | 5419 | _dateFormatter = [QTDateFormatter fromJSONDictionary:(id)_dateFormatter]; |
| @@ -5434,6 +5454,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5434 | 5454 | if (!_delegate && dict[@"delegate"] && ![dict[@"delegate"] isKindOfClass:NSNull.class]) return nil; |
| 5435 | 5455 | _delete = [QTDelete fromJSONDictionary:(id)_delete]; |
| 5436 | 5456 | if (!_delete && dict[@"delete"] && ![dict[@"delete"] isKindOfClass:NSNull.class]) return nil; |
| 5457 | + _deserializationFeature = [QTDeserializationFeature fromJSONDictionary:(id)_deserializationFeature]; | |
| 5458 | + if (!_deserializationFeature && dict[@"DeserializationFeature"] && ![dict[@"DeserializationFeature"] isKindOfClass:NSNull.class]) return nil; | |
| 5437 | 5459 | _dict = [QTDict fromJSONDictionary:(id)_dict]; |
| 5438 | 5460 | if (!_dict && dict[@"dict"] && ![dict[@"dict"] isKindOfClass:NSNull.class]) return nil; |
| 5439 | 5461 | _dictionary = [QTDictionary fromJSONDictionary:(id)_dictionary]; |
| @@ -5520,8 +5542,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5520 | 5542 | if (!_obj2Float && dict[@"float"] && ![dict[@"float"] isKindOfClass:NSNull.class]) return nil; |
| 5521 | 5543 | _obj2For = [QTFor fromJSONDictionary:(id)_obj2For]; |
| 5522 | 5544 | if (!_obj2For && dict[@"for"] && ![dict[@"for"] isKindOfClass:NSNull.class]) return nil; |
| 5523 | - _obj2Goto = [QTGoto fromJSONDictionary:(id)_obj2Goto]; | |
| 5524 | - if (!_obj2Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil; | |
| 5525 | 5545 | _theFalse = [QTFalseClass fromJSONDictionary:(id)_theFalse]; |
| 5526 | 5546 | if (!_theFalse && dict[@"false"] && ![dict[@"false"] isKindOfClass:NSNull.class]) return nil; |
| 5527 | 5547 | } |
| @@ -5572,6 +5592,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5572 | 5592 | @"del": [_del JSONDictionary], |
| 5573 | 5593 | @"delegate": [_delegate JSONDictionary], |
| 5574 | 5594 | @"delete": [_delete JSONDictionary], |
| 5595 | + @"DeserializationFeature": [_deserializationFeature JSONDictionary], | |
| 5575 | 5596 | @"dict": [_dict JSONDictionary], |
| 5576 | 5597 | @"dictionary": [_dictionary JSONDictionary], |
| 5577 | 5598 | @"didSet": [_didSet JSONDictionary], |
| @@ -5615,7 +5636,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 5615 | 5636 | @"False": [_obj2False JSONDictionary], |
| 5616 | 5637 | @"float": [_obj2Float JSONDictionary], |
| 5617 | 5638 | @"for": [_obj2For JSONDictionary], |
| 5618 | - @"goto": [_obj2Goto JSONDictionary], | |
| 5619 | 5639 | @"false": [_theFalse JSONDictionary], |
| 5620 | 5640 | }]; |
| 5621 | 5641 | |
| @@ -6511,6 +6531,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 6511 | 6531 | } |
| 6512 | 6532 | @end |
| 6513 | 6533 | |
| 6534 | +@implementation QTDeserializationFeature | |
| 6535 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 6536 | +{ | |
| 6537 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 6538 | + return properties = properties ? properties : @{ | |
| 6539 | + @"DeserializationFeature": @"deserializationFeature", | |
| 6540 | + }; | |
| 6541 | +} | |
| 6542 | + | |
| 6543 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 6544 | +{ | |
| 6545 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTDeserializationFeature alloc] initWithJSONDictionary:dict] : nil; | |
| 6546 | +} | |
| 6547 | + | |
| 6548 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 6549 | +{ | |
| 6550 | + if (self = [super init]) { | |
| 6551 | + if (![dict[@"DeserializationFeature"] isKindOfClass:NSNumber.class]) return nil; | |
| 6552 | + if ([dict[@"DeserializationFeature"] doubleValue] != [dict[@"DeserializationFeature"] longLongValue]) return nil; | |
| 6553 | + [self setValuesForKeysWithDictionary:dict]; | |
| 6554 | + } | |
| 6555 | + return self; | |
| 6556 | +} | |
| 6557 | + | |
| 6558 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 6559 | +{ | |
| 6560 | + id resolved = QTDeserializationFeature.properties[key]; | |
| 6561 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 6562 | +} | |
| 6563 | + | |
| 6564 | +- (void)setNilValueForKey:(NSString *)key | |
| 6565 | +{ | |
| 6566 | + id resolved = QTDeserializationFeature.properties[key]; | |
| 6567 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 6568 | +} | |
| 6569 | + | |
| 6570 | +- (NSDictionary *)JSONDictionary | |
| 6571 | +{ | |
| 6572 | + id dict = [[self dictionaryWithValuesForKeys:QTDeserializationFeature.properties.allValues] mutableCopy]; | |
| 6573 | + | |
| 6574 | + for (id jsonName in QTDeserializationFeature.properties) { | |
| 6575 | + id propertyName = QTDeserializationFeature.properties[jsonName]; | |
| 6576 | + if (![jsonName isEqualToString:propertyName]) { | |
| 6577 | + dict[jsonName] = dict[propertyName]; | |
| 6578 | + [dict removeObjectForKey:propertyName]; | |
| 6579 | + } | |
| 6580 | + } | |
| 6581 | + | |
| 6582 | + return dict; | |
| 6583 | +} | |
| 6584 | +@end | |
| 6585 | + | |
| 6514 | 6586 | @implementation QTDict |
| 6515 | 6587 | + (NSDictionary<NSString *, NSString *> *)properties |
| 6516 | 6588 | { |
| @@ -8481,58 +8553,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8481 | 8553 | } |
| 8482 | 8554 | @end |
| 8483 | 8555 | |
| 8484 | -@implementation QTGoto | |
| 8485 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 8486 | -{ | |
| 8487 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 8488 | - return properties = properties ? properties : @{ | |
| 8489 | - @"goto": @"gotoGoto", | |
| 8490 | - }; | |
| 8491 | -} | |
| 8492 | - | |
| 8493 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 8494 | -{ | |
| 8495 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTGoto alloc] initWithJSONDictionary:dict] : nil; | |
| 8496 | -} | |
| 8497 | - | |
| 8498 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 8499 | -{ | |
| 8500 | - if (self = [super init]) { | |
| 8501 | - if (![dict[@"goto"] isKindOfClass:NSNumber.class]) return nil; | |
| 8502 | - if ([dict[@"goto"] doubleValue] != [dict[@"goto"] longLongValue]) return nil; | |
| 8503 | - [self setValuesForKeysWithDictionary:dict]; | |
| 8504 | - } | |
| 8505 | - return self; | |
| 8506 | -} | |
| 8507 | - | |
| 8508 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 8509 | -{ | |
| 8510 | - id resolved = QTGoto.properties[key]; | |
| 8511 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 8512 | -} | |
| 8513 | - | |
| 8514 | -- (void)setNilValueForKey:(NSString *)key | |
| 8515 | -{ | |
| 8516 | - id resolved = QTGoto.properties[key]; | |
| 8517 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 8518 | -} | |
| 8519 | - | |
| 8520 | -- (NSDictionary *)JSONDictionary | |
| 8521 | -{ | |
| 8522 | - id dict = [[self dictionaryWithValuesForKeys:QTGoto.properties.allValues] mutableCopy]; | |
| 8523 | - | |
| 8524 | - for (id jsonName in QTGoto.properties) { | |
| 8525 | - id propertyName = QTGoto.properties[jsonName]; | |
| 8526 | - if (![jsonName isEqualToString:propertyName]) { | |
| 8527 | - dict[jsonName] = dict[propertyName]; | |
| 8528 | - [dict removeObjectForKey:propertyName]; | |
| 8529 | - } | |
| 8530 | - } | |
| 8531 | - | |
| 8532 | - return dict; | |
| 8533 | -} | |
| 8534 | -@end | |
| 8535 | - | |
| 8536 | 8556 | @implementation QTFalseClass |
| 8537 | 8557 | + (NSDictionary<NSString *, NSString *> *)properties |
| 8538 | 8558 | { |
| @@ -8646,7 +8666,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8646 | 8666 | @"native": @"native", |
| 8647 | 8667 | @"newtonsoft": @"newtonsoft", |
| 8648 | 8668 | @"NO": @"no", |
| 8649 | - @"noexcept": @"noexcept", | |
| 8669 | + @"goto": @"obj3Goto", | |
| 8650 | 8670 | @"if": @"obj3If", |
| 8651 | 8671 | @"inline": @"obj3Inline", |
| 8652 | 8672 | @"int": @"obj3Int", |
| @@ -8723,7 +8743,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8723 | 8743 | if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil; |
| 8724 | 8744 | if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil; |
| 8725 | 8745 | if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil; |
| 8726 | - if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8746 | + if (![dict[@"goto"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8727 | 8747 | if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil; |
| 8728 | 8748 | if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil; |
| 8729 | 8749 | if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -8843,8 +8863,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8843 | 8863 | if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil; |
| 8844 | 8864 | _no = [QTNo fromJSONDictionary:(id)_no]; |
| 8845 | 8865 | if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil; |
| 8846 | - _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept]; | |
| 8847 | - if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil; | |
| 8866 | + _obj3Goto = [QTGoto fromJSONDictionary:(id)_obj3Goto]; | |
| 8867 | + if (!_obj3Goto && dict[@"goto"] && ![dict[@"goto"] isKindOfClass:NSNull.class]) return nil; | |
| 8848 | 8868 | _obj3If = [QTIf fromJSONDictionary:(id)_obj3If]; |
| 8849 | 8869 | if (!_obj3If && dict[@"if"] && ![dict[@"if"] isKindOfClass:NSNull.class]) return nil; |
| 8850 | 8870 | _obj3Inline = [QTInline fromJSONDictionary:(id)_obj3Inline]; |
| @@ -8945,7 +8965,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8945 | 8965 | @"native": [_native JSONDictionary], |
| 8946 | 8966 | @"newtonsoft": [_newtonsoft JSONDictionary], |
| 8947 | 8967 | @"NO": [_no JSONDictionary], |
| 8948 | - @"noexcept": [_noexcept JSONDictionary], | |
| 8968 | + @"goto": [_obj3Goto JSONDictionary], | |
| 8949 | 8969 | @"if": [_obj3If JSONDictionary], |
| 8950 | 8970 | @"inline": [_obj3Inline JSONDictionary], |
| 8951 | 8971 | @"int": [_obj3Int JSONDictionary], |
| @@ -11509,25 +11529,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11509 | 11529 | } |
| 11510 | 11530 | @end |
| 11511 | 11531 | |
| 11512 | -@implementation QTNoexcept | |
| 11532 | +@implementation QTGoto | |
| 11513 | 11533 | + (NSDictionary<NSString *, NSString *> *)properties |
| 11514 | 11534 | { |
| 11515 | 11535 | static NSDictionary<NSString *, NSString *> *properties; |
| 11516 | 11536 | return properties = properties ? properties : @{ |
| 11517 | - @"noexcept": @"noexcept", | |
| 11537 | + @"goto": @"gotoGoto", | |
| 11518 | 11538 | }; |
| 11519 | 11539 | } |
| 11520 | 11540 | |
| 11521 | 11541 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 11522 | 11542 | { |
| 11523 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil; | |
| 11543 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTGoto alloc] initWithJSONDictionary:dict] : nil; | |
| 11524 | 11544 | } |
| 11525 | 11545 | |
| 11526 | 11546 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 11527 | 11547 | { |
| 11528 | 11548 | if (self = [super init]) { |
| 11529 | - if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil; | |
| 11530 | - if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil; | |
| 11549 | + if (![dict[@"goto"] isKindOfClass:NSNumber.class]) return nil; | |
| 11550 | + if ([dict[@"goto"] doubleValue] != [dict[@"goto"] longLongValue]) return nil; | |
| 11531 | 11551 | [self setValuesForKeysWithDictionary:dict]; |
| 11532 | 11552 | } |
| 11533 | 11553 | return self; |
| @@ -11535,19 +11555,29 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11535 | 11555 | |
| 11536 | 11556 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 11537 | 11557 | { |
| 11538 | - id resolved = QTNoexcept.properties[key]; | |
| 11558 | + id resolved = QTGoto.properties[key]; | |
| 11539 | 11559 | if (resolved) [super setValue:value forKey:resolved]; |
| 11540 | 11560 | } |
| 11541 | 11561 | |
| 11542 | 11562 | - (void)setNilValueForKey:(NSString *)key |
| 11543 | 11563 | { |
| 11544 | - id resolved = QTNoexcept.properties[key]; | |
| 11564 | + id resolved = QTGoto.properties[key]; | |
| 11545 | 11565 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 11546 | 11566 | } |
| 11547 | 11567 | |
| 11548 | 11568 | - (NSDictionary *)JSONDictionary |
| 11549 | 11569 | { |
| 11550 | - return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues]; | |
| 11570 | + id dict = [[self dictionaryWithValuesForKeys:QTGoto.properties.allValues] mutableCopy]; | |
| 11571 | + | |
| 11572 | + for (id jsonName in QTGoto.properties) { | |
| 11573 | + id propertyName = QTGoto.properties[jsonName]; | |
| 11574 | + if (![jsonName isEqualToString:propertyName]) { | |
| 11575 | + dict[jsonName] = dict[propertyName]; | |
| 11576 | + [dict removeObjectForKey:propertyName]; | |
| 11577 | + } | |
| 11578 | + } | |
| 11579 | + | |
| 11580 | + return dict; | |
| 11551 | 11581 | } |
| 11552 | 11582 | @end |
| 11553 | 11583 | |
| @@ -11974,6 +12004,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11974 | 12004 | return properties = properties ? properties : @{ |
| 11975 | 12005 | @"dummy": @"dummy", |
| 11976 | 12006 | @"noSuchMethod": @"noSuchMethod", |
| 12007 | + @"noexcept": @"noexcept", | |
| 11977 | 12008 | @"None": @"none", |
| 11978 | 12009 | @"nonlocal": @"nonlocal", |
| 11979 | 12010 | @"nonmutating": @"nonmutating", |
| @@ -11995,6 +12026,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11995 | 12026 | @"return": @"obj4Return", |
| 11996 | 12027 | @"object": @"object", |
| 11997 | 12028 | @"ObjectMapper": @"objectMapper", |
| 12029 | + @"ObjectReader": @"objectReader", | |
| 12030 | + @"ObjectWriter": @"objectWriter", | |
| 11998 | 12031 | @"of": @"of", |
| 11999 | 12032 | @"oneway": @"oneway", |
| 12000 | 12033 | @"open": @"open", |
| @@ -12034,9 +12067,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12034 | 12067 | @"runtimeType": @"runtimeType", |
| 12035 | 12068 | @"s": @"s", |
| 12036 | 12069 | @"sbyte": @"sbyte", |
| 12037 | - @"sealed": @"sealed", | |
| 12038 | - @"SEL": @"sel", | |
| 12039 | - @"select": @"select", | |
| 12040 | 12070 | }; |
| 12041 | 12071 | } |
| 12042 | 12072 | |
| @@ -12051,6 +12081,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12051 | 12081 | if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; |
| 12052 | 12082 | if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; |
| 12053 | 12083 | if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil; |
| 12084 | + if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12054 | 12085 | if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil; |
| 12055 | 12086 | if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil; |
| 12056 | 12087 | if (![dict[@"nonmutating"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12072,6 +12103,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12072 | 12103 | if (![dict[@"return"] isKindOfClass:NSDictionary.class]) return nil; |
| 12073 | 12104 | if (![dict[@"object"] isKindOfClass:NSDictionary.class]) return nil; |
| 12074 | 12105 | if (![dict[@"ObjectMapper"] isKindOfClass:NSDictionary.class]) return nil; |
| 12106 | + if (![dict[@"ObjectReader"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12107 | + if (![dict[@"ObjectWriter"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12075 | 12108 | if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil; |
| 12076 | 12109 | if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil; |
| 12077 | 12110 | if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12111,12 +12144,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12111 | 12144 | if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil; |
| 12112 | 12145 | if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil; |
| 12113 | 12146 | if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil; |
| 12114 | - if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12115 | - if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12116 | - if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12117 | 12147 | [self setValuesForKeysWithDictionary:dict]; |
| 12118 | 12148 | _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod]; |
| 12119 | 12149 | if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil; |
| 12150 | + _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept]; | |
| 12151 | + if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil; | |
| 12120 | 12152 | _none = [QTNone fromJSONDictionary:(id)_none]; |
| 12121 | 12153 | if (!_none && dict[@"None"] && ![dict[@"None"] isKindOfClass:NSNull.class]) return nil; |
| 12122 | 12154 | _nonlocal = [QTNonlocal fromJSONDictionary:(id)_nonlocal]; |
| @@ -12159,6 +12191,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12159 | 12191 | if (!_object && dict[@"object"] && ![dict[@"object"] isKindOfClass:NSNull.class]) return nil; |
| 12160 | 12192 | _objectMapper = [QTObjectMapper fromJSONDictionary:(id)_objectMapper]; |
| 12161 | 12193 | if (!_objectMapper && dict[@"ObjectMapper"] && ![dict[@"ObjectMapper"] isKindOfClass:NSNull.class]) return nil; |
| 12194 | + _objectReader = [QTObjectReader fromJSONDictionary:(id)_objectReader]; | |
| 12195 | + if (!_objectReader && dict[@"ObjectReader"] && ![dict[@"ObjectReader"] isKindOfClass:NSNull.class]) return nil; | |
| 12196 | + _objectWriter = [QTObjectWriter fromJSONDictionary:(id)_objectWriter]; | |
| 12197 | + if (!_objectWriter && dict[@"ObjectWriter"] && ![dict[@"ObjectWriter"] isKindOfClass:NSNull.class]) return nil; | |
| 12162 | 12198 | _of = [QTOf fromJSONDictionary:(id)_of]; |
| 12163 | 12199 | if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil; |
| 12164 | 12200 | _oneway = [QTOneway fromJSONDictionary:(id)_oneway]; |
| @@ -12237,12 +12273,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12237 | 12273 | if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil; |
| 12238 | 12274 | _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte]; |
| 12239 | 12275 | if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil; |
| 12240 | - _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; | |
| 12241 | - if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil; | |
| 12242 | - _sel = [QTSel fromJSONDictionary:(id)_sel]; | |
| 12243 | - if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil; | |
| 12244 | - _select = [QTSelect fromJSONDictionary:(id)_select]; | |
| 12245 | - if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil; | |
| 12246 | 12276 | } |
| 12247 | 12277 | return self; |
| 12248 | 12278 | } |
| @@ -12273,6 +12303,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12273 | 12303 | |
| 12274 | 12304 | [dict addEntriesFromDictionary:@{ |
| 12275 | 12305 | @"noSuchMethod": [_noSuchMethod JSONDictionary], |
| 12306 | + @"noexcept": [_noexcept JSONDictionary], | |
| 12276 | 12307 | @"None": [_none JSONDictionary], |
| 12277 | 12308 | @"nonlocal": [_nonlocal JSONDictionary], |
| 12278 | 12309 | @"nonmutating": [_nonmutating JSONDictionary], |
| @@ -12294,6 +12325,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12294 | 12325 | @"return": [_obj4Return JSONDictionary], |
| 12295 | 12326 | @"object": [_object JSONDictionary], |
| 12296 | 12327 | @"ObjectMapper": [_objectMapper JSONDictionary], |
| 12328 | + @"ObjectReader": [_objectReader JSONDictionary], | |
| 12329 | + @"ObjectWriter": [_objectWriter JSONDictionary], | |
| 12297 | 12330 | @"of": [_of JSONDictionary], |
| 12298 | 12331 | @"oneway": [_oneway JSONDictionary], |
| 12299 | 12332 | @"open": [_open JSONDictionary], |
| @@ -12333,9 +12366,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12333 | 12366 | @"runtimeType": [_runtimeType JSONDictionary], |
| 12334 | 12367 | @"s": [_s JSONDictionary], |
| 12335 | 12368 | @"sbyte": [_sbyte JSONDictionary], |
| 12336 | - @"sealed": [_sealed JSONDictionary], | |
| 12337 | - @"SEL": [_sel JSONDictionary], | |
| 12338 | - @"select": [_select JSONDictionary], | |
| 12339 | 12369 | }]; |
| 12340 | 12370 | |
| 12341 | 12371 | return dict; |
| @@ -12384,25 +12414,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12384 | 12414 | } |
| 12385 | 12415 | @end |
| 12386 | 12416 | |
| 12387 | -@implementation QTNone | |
| 12417 | +@implementation QTNoexcept | |
| 12388 | 12418 | + (NSDictionary<NSString *, NSString *> *)properties |
| 12389 | 12419 | { |
| 12390 | 12420 | static NSDictionary<NSString *, NSString *> *properties; |
| 12391 | 12421 | return properties = properties ? properties : @{ |
| 12392 | - @"None": @"none", | |
| 12422 | + @"noexcept": @"noexcept", | |
| 12393 | 12423 | }; |
| 12394 | 12424 | } |
| 12395 | 12425 | |
| 12396 | 12426 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 12397 | 12427 | { |
| 12398 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTNone alloc] initWithJSONDictionary:dict] : nil; | |
| 12428 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil; | |
| 12399 | 12429 | } |
| 12400 | 12430 | |
| 12401 | 12431 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 12402 | 12432 | { |
| 12403 | 12433 | if (self = [super init]) { |
| 12404 | - if (![dict[@"None"] isKindOfClass:NSNumber.class]) return nil; | |
| 12405 | - if ([dict[@"None"] doubleValue] != [dict[@"None"] longLongValue]) return nil; | |
| 12434 | + if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil; | |
| 12435 | + if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil; | |
| 12406 | 12436 | [self setValuesForKeysWithDictionary:dict]; |
| 12407 | 12437 | } |
| 12408 | 12438 | return self; |
| @@ -12410,52 +12440,94 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12410 | 12440 | |
| 12411 | 12441 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 12412 | 12442 | { |
| 12413 | - id resolved = QTNone.properties[key]; | |
| 12443 | + id resolved = QTNoexcept.properties[key]; | |
| 12414 | 12444 | if (resolved) [super setValue:value forKey:resolved]; |
| 12415 | 12445 | } |
| 12416 | 12446 | |
| 12417 | 12447 | - (void)setNilValueForKey:(NSString *)key |
| 12418 | 12448 | { |
| 12419 | - id resolved = QTNone.properties[key]; | |
| 12449 | + id resolved = QTNoexcept.properties[key]; | |
| 12420 | 12450 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 12421 | 12451 | } |
| 12422 | 12452 | |
| 12423 | 12453 | - (NSDictionary *)JSONDictionary |
| 12424 | 12454 | { |
| 12425 | - id dict = [[self dictionaryWithValuesForKeys:QTNone.properties.allValues] mutableCopy]; | |
| 12426 | - | |
| 12427 | - for (id jsonName in QTNone.properties) { | |
| 12428 | - id propertyName = QTNone.properties[jsonName]; | |
| 12429 | - if (![jsonName isEqualToString:propertyName]) { | |
| 12430 | - dict[jsonName] = dict[propertyName]; | |
| 12431 | - [dict removeObjectForKey:propertyName]; | |
| 12432 | - } | |
| 12433 | - } | |
| 12434 | - | |
| 12435 | - return dict; | |
| 12455 | + return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues]; | |
| 12436 | 12456 | } |
| 12437 | 12457 | @end |
| 12438 | 12458 | |
| 12439 | -@implementation QTNonlocal | |
| 12459 | +@implementation QTNone | |
| 12440 | 12460 | + (NSDictionary<NSString *, NSString *> *)properties |
| 12441 | 12461 | { |
| 12442 | 12462 | static NSDictionary<NSString *, NSString *> *properties; |
| 12443 | 12463 | return properties = properties ? properties : @{ |
| 12444 | - @"nonlocal": @"nonlocal", | |
| 12464 | + @"None": @"none", | |
| 12445 | 12465 | }; |
| 12446 | 12466 | } |
| 12447 | 12467 | |
| 12448 | 12468 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 12449 | 12469 | { |
| 12450 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTNonlocal alloc] initWithJSONDictionary:dict] : nil; | |
| 12470 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTNone alloc] initWithJSONDictionary:dict] : nil; | |
| 12451 | 12471 | } |
| 12452 | 12472 | |
| 12453 | 12473 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 12454 | 12474 | { |
| 12455 | 12475 | if (self = [super init]) { |
| 12456 | - if (![dict[@"nonlocal"] isKindOfClass:NSNumber.class]) return nil; | |
| 12457 | - if ([dict[@"nonlocal"] doubleValue] != [dict[@"nonlocal"] longLongValue]) return nil; | |
| 12458 | - [self setValuesForKeysWithDictionary:dict]; | |
| 12476 | + if (![dict[@"None"] isKindOfClass:NSNumber.class]) return nil; | |
| 12477 | + if ([dict[@"None"] doubleValue] != [dict[@"None"] longLongValue]) return nil; | |
| 12478 | + [self setValuesForKeysWithDictionary:dict]; | |
| 12479 | + } | |
| 12480 | + return self; | |
| 12481 | +} | |
| 12482 | + | |
| 12483 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 12484 | +{ | |
| 12485 | + id resolved = QTNone.properties[key]; | |
| 12486 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 12487 | +} | |
| 12488 | + | |
| 12489 | +- (void)setNilValueForKey:(NSString *)key | |
| 12490 | +{ | |
| 12491 | + id resolved = QTNone.properties[key]; | |
| 12492 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 12493 | +} | |
| 12494 | + | |
| 12495 | +- (NSDictionary *)JSONDictionary | |
| 12496 | +{ | |
| 12497 | + id dict = [[self dictionaryWithValuesForKeys:QTNone.properties.allValues] mutableCopy]; | |
| 12498 | + | |
| 12499 | + for (id jsonName in QTNone.properties) { | |
| 12500 | + id propertyName = QTNone.properties[jsonName]; | |
| 12501 | + if (![jsonName isEqualToString:propertyName]) { | |
| 12502 | + dict[jsonName] = dict[propertyName]; | |
| 12503 | + [dict removeObjectForKey:propertyName]; | |
| 12504 | + } | |
| 12505 | + } | |
| 12506 | + | |
| 12507 | + return dict; | |
| 12508 | +} | |
| 12509 | +@end | |
| 12510 | + | |
| 12511 | +@implementation QTNonlocal | |
| 12512 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 12513 | +{ | |
| 12514 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 12515 | + return properties = properties ? properties : @{ | |
| 12516 | + @"nonlocal": @"nonlocal", | |
| 12517 | + }; | |
| 12518 | +} | |
| 12519 | + | |
| 12520 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 12521 | +{ | |
| 12522 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTNonlocal alloc] initWithJSONDictionary:dict] : nil; | |
| 12523 | +} | |
| 12524 | + | |
| 12525 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 12526 | +{ | |
| 12527 | + if (self = [super init]) { | |
| 12528 | + if (![dict[@"nonlocal"] isKindOfClass:NSNumber.class]) return nil; | |
| 12529 | + if ([dict[@"nonlocal"] doubleValue] != [dict[@"nonlocal"] longLongValue]) return nil; | |
| 12530 | + [self setValuesForKeysWithDictionary:dict]; | |
| 12459 | 12531 | } |
| 12460 | 12532 | return self; |
| 12461 | 12533 | } |
| @@ -13386,6 +13458,110 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13386 | 13458 | } |
| 13387 | 13459 | @end |
| 13388 | 13460 | |
| 13461 | +@implementation QTObjectReader | |
| 13462 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13463 | +{ | |
| 13464 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13465 | + return properties = properties ? properties : @{ | |
| 13466 | + @"ObjectReader": @"objectReader", | |
| 13467 | + }; | |
| 13468 | +} | |
| 13469 | + | |
| 13470 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13471 | +{ | |
| 13472 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObjectReader alloc] initWithJSONDictionary:dict] : nil; | |
| 13473 | +} | |
| 13474 | + | |
| 13475 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13476 | +{ | |
| 13477 | + if (self = [super init]) { | |
| 13478 | + if (![dict[@"ObjectReader"] isKindOfClass:NSNumber.class]) return nil; | |
| 13479 | + if ([dict[@"ObjectReader"] doubleValue] != [dict[@"ObjectReader"] longLongValue]) return nil; | |
| 13480 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13481 | + } | |
| 13482 | + return self; | |
| 13483 | +} | |
| 13484 | + | |
| 13485 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13486 | +{ | |
| 13487 | + id resolved = QTObjectReader.properties[key]; | |
| 13488 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13489 | +} | |
| 13490 | + | |
| 13491 | +- (void)setNilValueForKey:(NSString *)key | |
| 13492 | +{ | |
| 13493 | + id resolved = QTObjectReader.properties[key]; | |
| 13494 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13495 | +} | |
| 13496 | + | |
| 13497 | +- (NSDictionary *)JSONDictionary | |
| 13498 | +{ | |
| 13499 | + id dict = [[self dictionaryWithValuesForKeys:QTObjectReader.properties.allValues] mutableCopy]; | |
| 13500 | + | |
| 13501 | + for (id jsonName in QTObjectReader.properties) { | |
| 13502 | + id propertyName = QTObjectReader.properties[jsonName]; | |
| 13503 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13504 | + dict[jsonName] = dict[propertyName]; | |
| 13505 | + [dict removeObjectForKey:propertyName]; | |
| 13506 | + } | |
| 13507 | + } | |
| 13508 | + | |
| 13509 | + return dict; | |
| 13510 | +} | |
| 13511 | +@end | |
| 13512 | + | |
| 13513 | +@implementation QTObjectWriter | |
| 13514 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13515 | +{ | |
| 13516 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13517 | + return properties = properties ? properties : @{ | |
| 13518 | + @"ObjectWriter": @"objectWriter", | |
| 13519 | + }; | |
| 13520 | +} | |
| 13521 | + | |
| 13522 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13523 | +{ | |
| 13524 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObjectWriter alloc] initWithJSONDictionary:dict] : nil; | |
| 13525 | +} | |
| 13526 | + | |
| 13527 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13528 | +{ | |
| 13529 | + if (self = [super init]) { | |
| 13530 | + if (![dict[@"ObjectWriter"] isKindOfClass:NSNumber.class]) return nil; | |
| 13531 | + if ([dict[@"ObjectWriter"] doubleValue] != [dict[@"ObjectWriter"] longLongValue]) return nil; | |
| 13532 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13533 | + } | |
| 13534 | + return self; | |
| 13535 | +} | |
| 13536 | + | |
| 13537 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13538 | +{ | |
| 13539 | + id resolved = QTObjectWriter.properties[key]; | |
| 13540 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13541 | +} | |
| 13542 | + | |
| 13543 | +- (void)setNilValueForKey:(NSString *)key | |
| 13544 | +{ | |
| 13545 | + id resolved = QTObjectWriter.properties[key]; | |
| 13546 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13547 | +} | |
| 13548 | + | |
| 13549 | +- (NSDictionary *)JSONDictionary | |
| 13550 | +{ | |
| 13551 | + id dict = [[self dictionaryWithValuesForKeys:QTObjectWriter.properties.allValues] mutableCopy]; | |
| 13552 | + | |
| 13553 | + for (id jsonName in QTObjectWriter.properties) { | |
| 13554 | + id propertyName = QTObjectWriter.properties[jsonName]; | |
| 13555 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13556 | + dict[jsonName] = dict[propertyName]; | |
| 13557 | + [dict removeObjectForKey:propertyName]; | |
| 13558 | + } | |
| 13559 | + } | |
| 13560 | + | |
| 13561 | + return dict; | |
| 13562 | +} | |
| 13563 | +@end | |
| 13564 | + | |
| 13389 | 13565 | @implementation QTOf |
| 13390 | 13566 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13391 | 13567 | { |
| @@ -15064,218 +15240,82 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15064 | 15240 | } |
| 15065 | 15241 | @end |
| 15066 | 15242 | |
| 15067 | -@implementation QTSealed | |
| 15243 | +@implementation QTObj5 | |
| 15068 | 15244 | + (NSDictionary<NSString *, NSString *> *)properties |
| 15069 | 15245 | { |
| 15070 | 15246 | static NSDictionary<NSString *, NSString *> *properties; |
| 15071 | 15247 | return properties = properties ? properties : @{ |
| 15248 | + @"dummy": @"dummy", | |
| 15249 | + @"self": @"obj5Self", | |
| 15250 | + @"short": @"obj5Short", | |
| 15251 | + @"signed": @"obj5Signed", | |
| 15252 | + @"sizeof": @"obj5Sizeof", | |
| 15253 | + @"static": @"obj5Static", | |
| 15254 | + @"struct": @"obj5Struct", | |
| 15255 | + @"switch": @"obj5Switch", | |
| 15256 | + @"True": @"obj5True", | |
| 15257 | + @"type": @"obj5Type", | |
| 15258 | + @"typedef": @"obj5Typedef", | |
| 15259 | + @"typeof": @"obj5Typeof", | |
| 15260 | + @"union": @"obj5Union", | |
| 15261 | + @"unsigned": @"obj5Unsigned", | |
| 15072 | 15262 | @"sealed": @"sealed", |
| 15073 | - }; | |
| 15074 | -} | |
| 15075 | - | |
| 15076 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15077 | -{ | |
| 15078 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil; | |
| 15079 | -} | |
| 15080 | - | |
| 15081 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15082 | -{ | |
| 15083 | - if (self = [super init]) { | |
| 15084 | - if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil; | |
| 15085 | - if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil; | |
| 15086 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15087 | - } | |
| 15088 | - return self; | |
| 15089 | -} | |
| 15090 | - | |
| 15091 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15092 | -{ | |
| 15093 | - id resolved = QTSealed.properties[key]; | |
| 15094 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15095 | -} | |
| 15096 | - | |
| 15097 | -- (void)setNilValueForKey:(NSString *)key | |
| 15098 | -{ | |
| 15099 | - id resolved = QTSealed.properties[key]; | |
| 15100 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15101 | -} | |
| 15102 | - | |
| 15103 | -- (NSDictionary *)JSONDictionary | |
| 15104 | -{ | |
| 15105 | - return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues]; | |
| 15106 | -} | |
| 15107 | -@end | |
| 15108 | - | |
| 15109 | -@implementation QTSel | |
| 15110 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15111 | -{ | |
| 15112 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15113 | - return properties = properties ? properties : @{ | |
| 15114 | 15263 | @"SEL": @"sel", |
| 15264 | + @"select": @"select", | |
| 15265 | + @"Self": @"self", | |
| 15266 | + @"Sendable": @"sendable", | |
| 15267 | + @"SerializationFeature": @"serializationFeature", | |
| 15268 | + @"serialize": @"serialize", | |
| 15269 | + @"SerializerProvider": @"serializerProvider", | |
| 15270 | + @"set": @"set", | |
| 15271 | + @"SimpleModule": @"simpleModule", | |
| 15272 | + @"stackalloc": @"stackalloc", | |
| 15273 | + @"Standards": @"standards", | |
| 15274 | + @"static_assert": @"staticAssert", | |
| 15275 | + @"static_cast": @"staticCast", | |
| 15276 | + @"StdDeserializer": @"stdDeserializer", | |
| 15277 | + @"StdSerializer": @"stdSerializer", | |
| 15278 | + @"strictfp": @"strictfp", | |
| 15279 | + @"string": @"string", | |
| 15280 | + @"subscript": @"subscript", | |
| 15281 | + @"super": @"super", | |
| 15282 | + @"symbol": @"symbol", | |
| 15283 | + @"synchronized": @"synchronized", | |
| 15284 | + @"system": @"system", | |
| 15285 | + @"template": @"template", | |
| 15286 | + @"true": @"theTrue", | |
| 15287 | + @"then": @"then", | |
| 15288 | + @"this": @"this", | |
| 15289 | + @"thread_local": @"threadLocal", | |
| 15290 | + @"throw": @"throw", | |
| 15291 | + @"throws": @"throws", | |
| 15292 | + @"TimeOnly": @"timeOnly", | |
| 15293 | + @"TimeOnlyConverter": @"timeOnlyConverter", | |
| 15294 | + @"TimeZone": @"timeZone", | |
| 15295 | + @"to_json": @"toJSON", | |
| 15296 | + @"toString": @"toString", | |
| 15297 | + @"top_level": @"topLevel", | |
| 15298 | + @"transient": @"transient", | |
| 15299 | + @"try": @"try", | |
| 15300 | + @"Type": @"type", | |
| 15301 | + @"typealias": @"typealias", | |
| 15302 | + @"typeid": @"typeid", | |
| 15303 | + @"typename": @"typename", | |
| 15304 | + @"uint": @"uint", | |
| 15305 | + @"ulong": @"ulong", | |
| 15306 | + @"unchecked": @"unchecked", | |
| 15307 | + @"undefined": @"undefined", | |
| 15308 | + @"unowned": @"unowned", | |
| 15309 | + @"unsafe": @"unsafe", | |
| 15310 | + @"ushort": @"ushort", | |
| 15311 | + @"using": @"using", | |
| 15312 | + @"Utf8JsonReader": @"utf8JSONReader", | |
| 15115 | 15313 | }; |
| 15116 | 15314 | } |
| 15117 | 15315 | |
| 15118 | 15316 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 15119 | 15317 | { |
| 15120 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil; | |
| 15121 | -} | |
| 15122 | - | |
| 15123 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15124 | -{ | |
| 15125 | - if (self = [super init]) { | |
| 15126 | - if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil; | |
| 15127 | - if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil; | |
| 15128 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15129 | - } | |
| 15130 | - return self; | |
| 15131 | -} | |
| 15132 | - | |
| 15133 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15134 | -{ | |
| 15135 | - id resolved = QTSel.properties[key]; | |
| 15136 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15137 | -} | |
| 15138 | - | |
| 15139 | -- (void)setNilValueForKey:(NSString *)key | |
| 15140 | -{ | |
| 15141 | - id resolved = QTSel.properties[key]; | |
| 15142 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15143 | -} | |
| 15144 | - | |
| 15145 | -- (NSDictionary *)JSONDictionary | |
| 15146 | -{ | |
| 15147 | - id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy]; | |
| 15148 | - | |
| 15149 | - for (id jsonName in QTSel.properties) { | |
| 15150 | - id propertyName = QTSel.properties[jsonName]; | |
| 15151 | - if (![jsonName isEqualToString:propertyName]) { | |
| 15152 | - dict[jsonName] = dict[propertyName]; | |
| 15153 | - [dict removeObjectForKey:propertyName]; | |
| 15154 | - } | |
| 15155 | - } | |
| 15156 | - | |
| 15157 | - return dict; | |
| 15158 | -} | |
| 15159 | -@end | |
| 15160 | - | |
| 15161 | -@implementation QTSelect | |
| 15162 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15163 | -{ | |
| 15164 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15165 | - return properties = properties ? properties : @{ | |
| 15166 | - @"select": @"select", | |
| 15167 | - }; | |
| 15168 | -} | |
| 15169 | - | |
| 15170 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15171 | -{ | |
| 15172 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil; | |
| 15173 | -} | |
| 15174 | - | |
| 15175 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15176 | -{ | |
| 15177 | - if (self = [super init]) { | |
| 15178 | - if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil; | |
| 15179 | - if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil; | |
| 15180 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15181 | - } | |
| 15182 | - return self; | |
| 15183 | -} | |
| 15184 | - | |
| 15185 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15186 | -{ | |
| 15187 | - id resolved = QTSelect.properties[key]; | |
| 15188 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15189 | -} | |
| 15190 | - | |
| 15191 | -- (void)setNilValueForKey:(NSString *)key | |
| 15192 | -{ | |
| 15193 | - id resolved = QTSelect.properties[key]; | |
| 15194 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15195 | -} | |
| 15196 | - | |
| 15197 | -- (NSDictionary *)JSONDictionary | |
| 15198 | -{ | |
| 15199 | - return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues]; | |
| 15200 | -} | |
| 15201 | -@end | |
| 15202 | - | |
| 15203 | -@implementation QTObj5 | |
| 15204 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15205 | -{ | |
| 15206 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15207 | - return properties = properties ? properties : @{ | |
| 15208 | - @"dummy": @"dummy", | |
| 15209 | - @"self": @"obj5Self", | |
| 15210 | - @"short": @"obj5Short", | |
| 15211 | - @"signed": @"obj5Signed", | |
| 15212 | - @"sizeof": @"obj5Sizeof", | |
| 15213 | - @"static": @"obj5Static", | |
| 15214 | - @"struct": @"obj5Struct", | |
| 15215 | - @"switch": @"obj5Switch", | |
| 15216 | - @"True": @"obj5True", | |
| 15217 | - @"type": @"obj5Type", | |
| 15218 | - @"typedef": @"obj5Typedef", | |
| 15219 | - @"typeof": @"obj5Typeof", | |
| 15220 | - @"union": @"obj5Union", | |
| 15221 | - @"unsigned": @"obj5Unsigned", | |
| 15222 | - @"Self": @"self", | |
| 15223 | - @"Sendable": @"sendable", | |
| 15224 | - @"serialize": @"serialize", | |
| 15225 | - @"SerializerProvider": @"serializerProvider", | |
| 15226 | - @"set": @"set", | |
| 15227 | - @"SimpleModule": @"simpleModule", | |
| 15228 | - @"stackalloc": @"stackalloc", | |
| 15229 | - @"Standards": @"standards", | |
| 15230 | - @"static_assert": @"staticAssert", | |
| 15231 | - @"static_cast": @"staticCast", | |
| 15232 | - @"StdDeserializer": @"stdDeserializer", | |
| 15233 | - @"StdSerializer": @"stdSerializer", | |
| 15234 | - @"strictfp": @"strictfp", | |
| 15235 | - @"string": @"string", | |
| 15236 | - @"subscript": @"subscript", | |
| 15237 | - @"super": @"super", | |
| 15238 | - @"symbol": @"symbol", | |
| 15239 | - @"synchronized": @"synchronized", | |
| 15240 | - @"system": @"system", | |
| 15241 | - @"template": @"template", | |
| 15242 | - @"true": @"theTrue", | |
| 15243 | - @"then": @"then", | |
| 15244 | - @"this": @"this", | |
| 15245 | - @"thread_local": @"threadLocal", | |
| 15246 | - @"throw": @"throw", | |
| 15247 | - @"throws": @"throws", | |
| 15248 | - @"TimeOnly": @"timeOnly", | |
| 15249 | - @"TimeOnlyConverter": @"timeOnlyConverter", | |
| 15250 | - @"TimeZone": @"timeZone", | |
| 15251 | - @"to_json": @"toJSON", | |
| 15252 | - @"toString": @"toString", | |
| 15253 | - @"top_level": @"topLevel", | |
| 15254 | - @"transient": @"transient", | |
| 15255 | - @"try": @"try", | |
| 15256 | - @"Type": @"type", | |
| 15257 | - @"typealias": @"typealias", | |
| 15258 | - @"typeid": @"typeid", | |
| 15259 | - @"typename": @"typename", | |
| 15260 | - @"uint": @"uint", | |
| 15261 | - @"ulong": @"ulong", | |
| 15262 | - @"unchecked": @"unchecked", | |
| 15263 | - @"undefined": @"undefined", | |
| 15264 | - @"unowned": @"unowned", | |
| 15265 | - @"unsafe": @"unsafe", | |
| 15266 | - @"ushort": @"ushort", | |
| 15267 | - @"using": @"using", | |
| 15268 | - @"Utf8JsonReader": @"utf8JSONReader", | |
| 15269 | - @"Utf8JsonWriter": @"utf8JSONWriter", | |
| 15270 | - @"UUID": @"uuid", | |
| 15271 | - @"var": @"var", | |
| 15272 | - @"virtual": @"virtual", | |
| 15273 | - }; | |
| 15274 | -} | |
| 15275 | - | |
| 15276 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15277 | -{ | |
| 15278 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTObj5 alloc] initWithJSONDictionary:dict] : nil; | |
| 15318 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObj5 alloc] initWithJSONDictionary:dict] : nil; | |
| 15279 | 15319 | } |
| 15280 | 15320 | |
| 15281 | 15321 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| @@ -15296,8 +15336,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15296 | 15336 | if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil; |
| 15297 | 15337 | if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil; |
| 15298 | 15338 | if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil; |
| 15339 | + if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15340 | + if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15341 | + if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15299 | 15342 | if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil; |
| 15300 | 15343 | if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil; |
| 15344 | + if (![dict[@"SerializationFeature"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15301 | 15345 | if (![dict[@"serialize"] isKindOfClass:NSDictionary.class]) return nil; |
| 15302 | 15346 | if (![dict[@"SerializerProvider"] isKindOfClass:NSDictionary.class]) return nil; |
| 15303 | 15347 | if (![dict[@"set"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -15343,10 +15387,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15343 | 15387 | if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil; |
| 15344 | 15388 | if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil; |
| 15345 | 15389 | if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil; |
| 15346 | - if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15347 | - if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15348 | - if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15349 | - if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15350 | 15390 | [self setValuesForKeysWithDictionary:dict]; |
| 15351 | 15391 | _obj5Self = [QTSelfClass fromJSONDictionary:(id)_obj5Self]; |
| 15352 | 15392 | if (!_obj5Self && dict[@"self"] && ![dict[@"self"] isKindOfClass:NSNull.class]) return nil; |
| @@ -15374,10 +15414,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15374 | 15414 | if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil; |
| 15375 | 15415 | _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned]; |
| 15376 | 15416 | if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil; |
| 15417 | + _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; | |
| 15418 | + if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil; | |
| 15419 | + _sel = [QTSel fromJSONDictionary:(id)_sel]; | |
| 15420 | + if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil; | |
| 15421 | + _select = [QTSelect fromJSONDictionary:(id)_select]; | |
| 15422 | + if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil; | |
| 15377 | 15423 | _self = [QTSelf fromJSONDictionary:(id)_self]; |
| 15378 | 15424 | if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil; |
| 15379 | 15425 | _sendable = [QTSendable fromJSONDictionary:(id)_sendable]; |
| 15380 | 15426 | if (!_sendable && dict[@"Sendable"] && ![dict[@"Sendable"] isKindOfClass:NSNull.class]) return nil; |
| 15427 | + _serializationFeature = [QTSerializationFeature fromJSONDictionary:(id)_serializationFeature]; | |
| 15428 | + if (!_serializationFeature && dict[@"SerializationFeature"] && ![dict[@"SerializationFeature"] isKindOfClass:NSNull.class]) return nil; | |
| 15381 | 15429 | _serialize = [QTSerialize fromJSONDictionary:(id)_serialize]; |
| 15382 | 15430 | if (!_serialize && dict[@"serialize"] && ![dict[@"serialize"] isKindOfClass:NSNull.class]) return nil; |
| 15383 | 15431 | _serializerProvider = [QTSerializerProvider fromJSONDictionary:(id)_serializerProvider]; |
| @@ -15468,14 +15516,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15468 | 15516 | if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil; |
| 15469 | 15517 | _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader]; |
| 15470 | 15518 | if (!_utf8JSONReader && dict[@"Utf8JsonReader"] && ![dict[@"Utf8JsonReader"] isKindOfClass:NSNull.class]) return nil; |
| 15471 | - _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter]; | |
| 15472 | - if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil; | |
| 15473 | - _uuid = [QTUUID fromJSONDictionary:(id)_uuid]; | |
| 15474 | - if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil; | |
| 15475 | - _var = [QTVar fromJSONDictionary:(id)_var]; | |
| 15476 | - if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil; | |
| 15477 | - _virtual = [QTVirtual fromJSONDictionary:(id)_virtual]; | |
| 15478 | - if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil; | |
| 15479 | 15519 | } |
| 15480 | 15520 | return self; |
| 15481 | 15521 | } |
| @@ -15518,8 +15558,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15518 | 15558 | @"typeof": [_obj5Typeof JSONDictionary], |
| 15519 | 15559 | @"union": [_obj5Union JSONDictionary], |
| 15520 | 15560 | @"unsigned": [_obj5Unsigned JSONDictionary], |
| 15561 | + @"sealed": [_sealed JSONDictionary], | |
| 15562 | + @"SEL": [_sel JSONDictionary], | |
| 15563 | + @"select": [_select JSONDictionary], | |
| 15521 | 15564 | @"Self": [_self JSONDictionary], |
| 15522 | 15565 | @"Sendable": [_sendable JSONDictionary], |
| 15566 | + @"SerializationFeature": [_serializationFeature JSONDictionary], | |
| 15523 | 15567 | @"serialize": [_serialize JSONDictionary], |
| 15524 | 15568 | @"SerializerProvider": [_serializerProvider JSONDictionary], |
| 15525 | 15569 | @"set": [_set JSONDictionary], |
| @@ -15565,10 +15609,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15565 | 15609 | @"ushort": [_ushort JSONDictionary], |
| 15566 | 15610 | @"using": [_using JSONDictionary], |
| 15567 | 15611 | @"Utf8JsonReader": [_utf8JSONReader JSONDictionary], |
| 15568 | - @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary], | |
| 15569 | - @"UUID": [_uuid JSONDictionary], | |
| 15570 | - @"var": [_var JSONDictionary], | |
| 15571 | - @"virtual": [_virtual JSONDictionary], | |
| 15572 | 15612 | }]; |
| 15573 | 15613 | |
| 15574 | 15614 | return dict; |
| @@ -16231,25 +16271,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16231 | 16271 | } |
| 16232 | 16272 | @end |
| 16233 | 16273 | |
| 16234 | -@implementation QTSelf | |
| 16274 | +@implementation QTSealed | |
| 16235 | 16275 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16236 | 16276 | { |
| 16237 | 16277 | static NSDictionary<NSString *, NSString *> *properties; |
| 16238 | 16278 | return properties = properties ? properties : @{ |
| 16239 | - @"Self": @"self", | |
| 16279 | + @"sealed": @"sealed", | |
| 16240 | 16280 | }; |
| 16241 | 16281 | } |
| 16242 | 16282 | |
| 16243 | 16283 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16244 | 16284 | { |
| 16245 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil; | |
| 16285 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil; | |
| 16246 | 16286 | } |
| 16247 | 16287 | |
| 16248 | 16288 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16249 | 16289 | { |
| 16250 | 16290 | if (self = [super init]) { |
| 16251 | - if (![dict[@"Self"] isKindOfClass:NSNumber.class]) return nil; | |
| 16252 | - if ([dict[@"Self"] doubleValue] != [dict[@"Self"] longLongValue]) return nil; | |
| 16291 | + if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil; | |
| 16292 | + if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil; | |
| 16253 | 16293 | [self setValuesForKeysWithDictionary:dict]; |
| 16254 | 16294 | } |
| 16255 | 16295 | return self; |
| @@ -16257,51 +16297,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16257 | 16297 | |
| 16258 | 16298 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16259 | 16299 | { |
| 16260 | - id resolved = QTSelf.properties[key]; | |
| 16300 | + id resolved = QTSealed.properties[key]; | |
| 16261 | 16301 | if (resolved) [super setValue:value forKey:resolved]; |
| 16262 | 16302 | } |
| 16263 | 16303 | |
| 16264 | 16304 | - (void)setNilValueForKey:(NSString *)key |
| 16265 | 16305 | { |
| 16266 | - id resolved = QTSelf.properties[key]; | |
| 16306 | + id resolved = QTSealed.properties[key]; | |
| 16267 | 16307 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16268 | 16308 | } |
| 16269 | 16309 | |
| 16270 | 16310 | - (NSDictionary *)JSONDictionary |
| 16271 | 16311 | { |
| 16272 | - id dict = [[self dictionaryWithValuesForKeys:QTSelf.properties.allValues] mutableCopy]; | |
| 16273 | - | |
| 16274 | - for (id jsonName in QTSelf.properties) { | |
| 16275 | - id propertyName = QTSelf.properties[jsonName]; | |
| 16276 | - if (![jsonName isEqualToString:propertyName]) { | |
| 16277 | - dict[jsonName] = dict[propertyName]; | |
| 16278 | - [dict removeObjectForKey:propertyName]; | |
| 16279 | - } | |
| 16280 | - } | |
| 16281 | - | |
| 16282 | - return dict; | |
| 16312 | + return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues]; | |
| 16283 | 16313 | } |
| 16284 | 16314 | @end |
| 16285 | 16315 | |
| 16286 | -@implementation QTSendable | |
| 16316 | +@implementation QTSel | |
| 16287 | 16317 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16288 | 16318 | { |
| 16289 | 16319 | static NSDictionary<NSString *, NSString *> *properties; |
| 16290 | 16320 | return properties = properties ? properties : @{ |
| 16291 | - @"Sendable": @"sendable", | |
| 16321 | + @"SEL": @"sel", | |
| 16292 | 16322 | }; |
| 16293 | 16323 | } |
| 16294 | 16324 | |
| 16295 | 16325 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16296 | 16326 | { |
| 16297 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSendable alloc] initWithJSONDictionary:dict] : nil; | |
| 16327 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil; | |
| 16298 | 16328 | } |
| 16299 | 16329 | |
| 16300 | 16330 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16301 | 16331 | { |
| 16302 | 16332 | if (self = [super init]) { |
| 16303 | - if (![dict[@"Sendable"] isKindOfClass:NSNumber.class]) return nil; | |
| 16304 | - if ([dict[@"Sendable"] doubleValue] != [dict[@"Sendable"] longLongValue]) return nil; | |
| 16333 | + if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil; | |
| 16334 | + if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil; | |
| 16305 | 16335 | [self setValuesForKeysWithDictionary:dict]; |
| 16306 | 16336 | } |
| 16307 | 16337 | return self; |
| @@ -16309,22 +16339,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16309 | 16339 | |
| 16310 | 16340 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16311 | 16341 | { |
| 16312 | - id resolved = QTSendable.properties[key]; | |
| 16342 | + id resolved = QTSel.properties[key]; | |
| 16313 | 16343 | if (resolved) [super setValue:value forKey:resolved]; |
| 16314 | 16344 | } |
| 16315 | 16345 | |
| 16316 | 16346 | - (void)setNilValueForKey:(NSString *)key |
| 16317 | 16347 | { |
| 16318 | - id resolved = QTSendable.properties[key]; | |
| 16348 | + id resolved = QTSel.properties[key]; | |
| 16319 | 16349 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16320 | 16350 | } |
| 16321 | 16351 | |
| 16322 | 16352 | - (NSDictionary *)JSONDictionary |
| 16323 | 16353 | { |
| 16324 | - id dict = [[self dictionaryWithValuesForKeys:QTSendable.properties.allValues] mutableCopy]; | |
| 16354 | + id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy]; | |
| 16325 | 16355 | |
| 16326 | - for (id jsonName in QTSendable.properties) { | |
| 16327 | - id propertyName = QTSendable.properties[jsonName]; | |
| 16356 | + for (id jsonName in QTSel.properties) { | |
| 16357 | + id propertyName = QTSel.properties[jsonName]; | |
| 16328 | 16358 | if (![jsonName isEqualToString:propertyName]) { |
| 16329 | 16359 | dict[jsonName] = dict[propertyName]; |
| 16330 | 16360 | [dict removeObjectForKey:propertyName]; |
| @@ -16335,25 +16365,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16335 | 16365 | } |
| 16336 | 16366 | @end |
| 16337 | 16367 | |
| 16338 | -@implementation QTSerialize | |
| 16368 | +@implementation QTSelect | |
| 16339 | 16369 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16340 | 16370 | { |
| 16341 | 16371 | static NSDictionary<NSString *, NSString *> *properties; |
| 16342 | 16372 | return properties = properties ? properties : @{ |
| 16343 | - @"serialize": @"serialize", | |
| 16373 | + @"select": @"select", | |
| 16344 | 16374 | }; |
| 16345 | 16375 | } |
| 16346 | 16376 | |
| 16347 | 16377 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16348 | 16378 | { |
| 16349 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialize alloc] initWithJSONDictionary:dict] : nil; | |
| 16379 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil; | |
| 16350 | 16380 | } |
| 16351 | 16381 | |
| 16352 | 16382 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16353 | 16383 | { |
| 16354 | 16384 | if (self = [super init]) { |
| 16355 | - if (![dict[@"serialize"] isKindOfClass:NSNumber.class]) return nil; | |
| 16356 | - if ([dict[@"serialize"] doubleValue] != [dict[@"serialize"] longLongValue]) return nil; | |
| 16385 | + if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil; | |
| 16386 | + if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil; | |
| 16357 | 16387 | [self setValuesForKeysWithDictionary:dict]; |
| 16358 | 16388 | } |
| 16359 | 16389 | return self; |
| @@ -16361,41 +16391,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16361 | 16391 | |
| 16362 | 16392 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16363 | 16393 | { |
| 16364 | - id resolved = QTSerialize.properties[key]; | |
| 16394 | + id resolved = QTSelect.properties[key]; | |
| 16365 | 16395 | if (resolved) [super setValue:value forKey:resolved]; |
| 16366 | 16396 | } |
| 16367 | 16397 | |
| 16368 | 16398 | - (void)setNilValueForKey:(NSString *)key |
| 16369 | 16399 | { |
| 16370 | - id resolved = QTSerialize.properties[key]; | |
| 16400 | + id resolved = QTSelect.properties[key]; | |
| 16371 | 16401 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16372 | 16402 | } |
| 16373 | 16403 | |
| 16374 | 16404 | - (NSDictionary *)JSONDictionary |
| 16375 | 16405 | { |
| 16376 | - return [self dictionaryWithValuesForKeys:QTSerialize.properties.allValues]; | |
| 16406 | + return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues]; | |
| 16377 | 16407 | } |
| 16378 | 16408 | @end |
| 16379 | 16409 | |
| 16380 | -@implementation QTSerializerProvider | |
| 16410 | +@implementation QTSelf | |
| 16381 | 16411 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16382 | 16412 | { |
| 16383 | 16413 | static NSDictionary<NSString *, NSString *> *properties; |
| 16384 | 16414 | return properties = properties ? properties : @{ |
| 16385 | - @"SerializerProvider": @"serializerProvider", | |
| 16415 | + @"Self": @"self", | |
| 16386 | 16416 | }; |
| 16387 | 16417 | } |
| 16388 | 16418 | |
| 16389 | 16419 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16390 | 16420 | { |
| 16391 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializerProvider alloc] initWithJSONDictionary:dict] : nil; | |
| 16421 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSelf alloc] initWithJSONDictionary:dict] : nil; | |
| 16392 | 16422 | } |
| 16393 | 16423 | |
| 16394 | 16424 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16395 | 16425 | { |
| 16396 | 16426 | if (self = [super init]) { |
| 16397 | - if (![dict[@"SerializerProvider"] isKindOfClass:NSNumber.class]) return nil; | |
| 16398 | - if ([dict[@"SerializerProvider"] doubleValue] != [dict[@"SerializerProvider"] longLongValue]) return nil; | |
| 16427 | + if (![dict[@"Self"] isKindOfClass:NSNumber.class]) return nil; | |
| 16428 | + if ([dict[@"Self"] doubleValue] != [dict[@"Self"] longLongValue]) return nil; | |
| 16399 | 16429 | [self setValuesForKeysWithDictionary:dict]; |
| 16400 | 16430 | } |
| 16401 | 16431 | return self; |
| @@ -16403,22 +16433,220 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16403 | 16433 | |
| 16404 | 16434 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16405 | 16435 | { |
| 16406 | - id resolved = QTSerializerProvider.properties[key]; | |
| 16436 | + id resolved = QTSelf.properties[key]; | |
| 16407 | 16437 | if (resolved) [super setValue:value forKey:resolved]; |
| 16408 | 16438 | } |
| 16409 | 16439 | |
| 16410 | 16440 | - (void)setNilValueForKey:(NSString *)key |
| 16411 | 16441 | { |
| 16412 | - id resolved = QTSerializerProvider.properties[key]; | |
| 16442 | + id resolved = QTSelf.properties[key]; | |
| 16413 | 16443 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16414 | 16444 | } |
| 16415 | 16445 | |
| 16416 | 16446 | - (NSDictionary *)JSONDictionary |
| 16417 | 16447 | { |
| 16418 | - id dict = [[self dictionaryWithValuesForKeys:QTSerializerProvider.properties.allValues] mutableCopy]; | |
| 16448 | + id dict = [[self dictionaryWithValuesForKeys:QTSelf.properties.allValues] mutableCopy]; | |
| 16419 | 16449 | |
| 16420 | - for (id jsonName in QTSerializerProvider.properties) { | |
| 16421 | - id propertyName = QTSerializerProvider.properties[jsonName]; | |
| 16450 | + for (id jsonName in QTSelf.properties) { | |
| 16451 | + id propertyName = QTSelf.properties[jsonName]; | |
| 16452 | + if (![jsonName isEqualToString:propertyName]) { | |
| 16453 | + dict[jsonName] = dict[propertyName]; | |
| 16454 | + [dict removeObjectForKey:propertyName]; | |
| 16455 | + } | |
| 16456 | + } | |
| 16457 | + | |
| 16458 | + return dict; | |
| 16459 | +} | |
| 16460 | +@end | |
| 16461 | + | |
| 16462 | +@implementation QTSendable | |
| 16463 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16464 | +{ | |
| 16465 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16466 | + return properties = properties ? properties : @{ | |
| 16467 | + @"Sendable": @"sendable", | |
| 16468 | + }; | |
| 16469 | +} | |
| 16470 | + | |
| 16471 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16472 | +{ | |
| 16473 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSendable alloc] initWithJSONDictionary:dict] : nil; | |
| 16474 | +} | |
| 16475 | + | |
| 16476 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16477 | +{ | |
| 16478 | + if (self = [super init]) { | |
| 16479 | + if (![dict[@"Sendable"] isKindOfClass:NSNumber.class]) return nil; | |
| 16480 | + if ([dict[@"Sendable"] doubleValue] != [dict[@"Sendable"] longLongValue]) return nil; | |
| 16481 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16482 | + } | |
| 16483 | + return self; | |
| 16484 | +} | |
| 16485 | + | |
| 16486 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16487 | +{ | |
| 16488 | + id resolved = QTSendable.properties[key]; | |
| 16489 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16490 | +} | |
| 16491 | + | |
| 16492 | +- (void)setNilValueForKey:(NSString *)key | |
| 16493 | +{ | |
| 16494 | + id resolved = QTSendable.properties[key]; | |
| 16495 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16496 | +} | |
| 16497 | + | |
| 16498 | +- (NSDictionary *)JSONDictionary | |
| 16499 | +{ | |
| 16500 | + id dict = [[self dictionaryWithValuesForKeys:QTSendable.properties.allValues] mutableCopy]; | |
| 16501 | + | |
| 16502 | + for (id jsonName in QTSendable.properties) { | |
| 16503 | + id propertyName = QTSendable.properties[jsonName]; | |
| 16504 | + if (![jsonName isEqualToString:propertyName]) { | |
| 16505 | + dict[jsonName] = dict[propertyName]; | |
| 16506 | + [dict removeObjectForKey:propertyName]; | |
| 16507 | + } | |
| 16508 | + } | |
| 16509 | + | |
| 16510 | + return dict; | |
| 16511 | +} | |
| 16512 | +@end | |
| 16513 | + | |
| 16514 | +@implementation QTSerializationFeature | |
| 16515 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16516 | +{ | |
| 16517 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16518 | + return properties = properties ? properties : @{ | |
| 16519 | + @"SerializationFeature": @"serializationFeature", | |
| 16520 | + }; | |
| 16521 | +} | |
| 16522 | + | |
| 16523 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16524 | +{ | |
| 16525 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializationFeature alloc] initWithJSONDictionary:dict] : nil; | |
| 16526 | +} | |
| 16527 | + | |
| 16528 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16529 | +{ | |
| 16530 | + if (self = [super init]) { | |
| 16531 | + if (![dict[@"SerializationFeature"] isKindOfClass:NSNumber.class]) return nil; | |
| 16532 | + if ([dict[@"SerializationFeature"] doubleValue] != [dict[@"SerializationFeature"] longLongValue]) return nil; | |
| 16533 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16534 | + } | |
| 16535 | + return self; | |
| 16536 | +} | |
| 16537 | + | |
| 16538 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16539 | +{ | |
| 16540 | + id resolved = QTSerializationFeature.properties[key]; | |
| 16541 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16542 | +} | |
| 16543 | + | |
| 16544 | +- (void)setNilValueForKey:(NSString *)key | |
| 16545 | +{ | |
| 16546 | + id resolved = QTSerializationFeature.properties[key]; | |
| 16547 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16548 | +} | |
| 16549 | + | |
| 16550 | +- (NSDictionary *)JSONDictionary | |
| 16551 | +{ | |
| 16552 | + id dict = [[self dictionaryWithValuesForKeys:QTSerializationFeature.properties.allValues] mutableCopy]; | |
| 16553 | + | |
| 16554 | + for (id jsonName in QTSerializationFeature.properties) { | |
| 16555 | + id propertyName = QTSerializationFeature.properties[jsonName]; | |
| 16556 | + if (![jsonName isEqualToString:propertyName]) { | |
| 16557 | + dict[jsonName] = dict[propertyName]; | |
| 16558 | + [dict removeObjectForKey:propertyName]; | |
| 16559 | + } | |
| 16560 | + } | |
| 16561 | + | |
| 16562 | + return dict; | |
| 16563 | +} | |
| 16564 | +@end | |
| 16565 | + | |
| 16566 | +@implementation QTSerialize | |
| 16567 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16568 | +{ | |
| 16569 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16570 | + return properties = properties ? properties : @{ | |
| 16571 | + @"serialize": @"serialize", | |
| 16572 | + }; | |
| 16573 | +} | |
| 16574 | + | |
| 16575 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16576 | +{ | |
| 16577 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSerialize alloc] initWithJSONDictionary:dict] : nil; | |
| 16578 | +} | |
| 16579 | + | |
| 16580 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16581 | +{ | |
| 16582 | + if (self = [super init]) { | |
| 16583 | + if (![dict[@"serialize"] isKindOfClass:NSNumber.class]) return nil; | |
| 16584 | + if ([dict[@"serialize"] doubleValue] != [dict[@"serialize"] longLongValue]) return nil; | |
| 16585 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16586 | + } | |
| 16587 | + return self; | |
| 16588 | +} | |
| 16589 | + | |
| 16590 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16591 | +{ | |
| 16592 | + id resolved = QTSerialize.properties[key]; | |
| 16593 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16594 | +} | |
| 16595 | + | |
| 16596 | +- (void)setNilValueForKey:(NSString *)key | |
| 16597 | +{ | |
| 16598 | + id resolved = QTSerialize.properties[key]; | |
| 16599 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16600 | +} | |
| 16601 | + | |
| 16602 | +- (NSDictionary *)JSONDictionary | |
| 16603 | +{ | |
| 16604 | + return [self dictionaryWithValuesForKeys:QTSerialize.properties.allValues]; | |
| 16605 | +} | |
| 16606 | +@end | |
| 16607 | + | |
| 16608 | +@implementation QTSerializerProvider | |
| 16609 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16610 | +{ | |
| 16611 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16612 | + return properties = properties ? properties : @{ | |
| 16613 | + @"SerializerProvider": @"serializerProvider", | |
| 16614 | + }; | |
| 16615 | +} | |
| 16616 | + | |
| 16617 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16618 | +{ | |
| 16619 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializerProvider alloc] initWithJSONDictionary:dict] : nil; | |
| 16620 | +} | |
| 16621 | + | |
| 16622 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16623 | +{ | |
| 16624 | + if (self = [super init]) { | |
| 16625 | + if (![dict[@"SerializerProvider"] isKindOfClass:NSNumber.class]) return nil; | |
| 16626 | + if ([dict[@"SerializerProvider"] doubleValue] != [dict[@"SerializerProvider"] longLongValue]) return nil; | |
| 16627 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16628 | + } | |
| 16629 | + return self; | |
| 16630 | +} | |
| 16631 | + | |
| 16632 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16633 | +{ | |
| 16634 | + id resolved = QTSerializerProvider.properties[key]; | |
| 16635 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16636 | +} | |
| 16637 | + | |
| 16638 | +- (void)setNilValueForKey:(NSString *)key | |
| 16639 | +{ | |
| 16640 | + id resolved = QTSerializerProvider.properties[key]; | |
| 16641 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16642 | +} | |
| 16643 | + | |
| 16644 | +- (NSDictionary *)JSONDictionary | |
| 16645 | +{ | |
| 16646 | + id dict = [[self dictionaryWithValuesForKeys:QTSerializerProvider.properties.allValues] mutableCopy]; | |
| 16647 | + | |
| 16648 | + for (id jsonName in QTSerializerProvider.properties) { | |
| 16649 | + id propertyName = QTSerializerProvider.properties[jsonName]; | |
| 16422 | 16650 | if (![jsonName isEqualToString:propertyName]) { |
| 16423 | 16651 | dict[jsonName] = dict[propertyName]; |
| 16424 | 16652 | [dict removeObjectForKey:propertyName]; |
| @@ -18385,77 +18613,160 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18385 | 18613 | } |
| 18386 | 18614 | @end |
| 18387 | 18615 | |
| 18388 | -@implementation QTUtf8JSONWriter | |
| 18616 | +@implementation QTObj6 | |
| 18389 | 18617 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18390 | 18618 | { |
| 18391 | 18619 | static NSDictionary<NSString *, NSString *> *properties; |
| 18392 | 18620 | return properties = properties ? properties : @{ |
| 18621 | + @"dummy": @"dummy", | |
| 18622 | + @"void": @"obj6Void", | |
| 18623 | + @"volatile": @"obj6Volatile", | |
| 18624 | + @"while": @"obj6While", | |
| 18393 | 18625 | @"Utf8JsonWriter": @"utf8JSONWriter", |
| 18626 | + @"UUID": @"uuid", | |
| 18627 | + @"var": @"var", | |
| 18628 | + @"virtual": @"virtual", | |
| 18629 | + @"wchar_t": @"wcharT", | |
| 18630 | + @"weak": @"weak", | |
| 18631 | + @"where": @"where", | |
| 18632 | + @"willSet": @"willSet", | |
| 18633 | + @"with": @"with", | |
| 18634 | + @"xor": @"xor", | |
| 18635 | + @"xor_eq": @"xorEq", | |
| 18636 | + @"YES": @"yes", | |
| 18637 | + @"yield": @"yield", | |
| 18394 | 18638 | }; |
| 18395 | 18639 | } |
| 18396 | 18640 | |
| 18397 | 18641 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18398 | 18642 | { |
| 18399 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUtf8JSONWriter alloc] initWithJSONDictionary:dict] : nil; | |
| 18643 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil; | |
| 18400 | 18644 | } |
| 18401 | 18645 | |
| 18402 | 18646 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18403 | 18647 | { |
| 18404 | 18648 | if (self = [super init]) { |
| 18405 | - if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSNumber.class]) return nil; | |
| 18406 | - if ([dict[@"Utf8JsonWriter"] doubleValue] != [dict[@"Utf8JsonWriter"] longLongValue]) return nil; | |
| 18649 | + if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; | |
| 18650 | + if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; | |
| 18651 | + if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18652 | + if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18653 | + if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18654 | + if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18655 | + if (![dict[@"UUID"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18656 | + if (![dict[@"var"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18657 | + if (![dict[@"virtual"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18658 | + if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18659 | + if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18660 | + if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18661 | + if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18662 | + if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18663 | + if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18664 | + if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18665 | + if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18666 | + if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18407 | 18667 | [self setValuesForKeysWithDictionary:dict]; |
| 18668 | + _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void]; | |
| 18669 | + if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil; | |
| 18670 | + _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile]; | |
| 18671 | + if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil; | |
| 18672 | + _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While]; | |
| 18673 | + if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil; | |
| 18674 | + _utf8JSONWriter = [QTUtf8JSONWriter fromJSONDictionary:(id)_utf8JSONWriter]; | |
| 18675 | + if (!_utf8JSONWriter && dict[@"Utf8JsonWriter"] && ![dict[@"Utf8JsonWriter"] isKindOfClass:NSNull.class]) return nil; | |
| 18676 | + _uuid = [QTUUID fromJSONDictionary:(id)_uuid]; | |
| 18677 | + if (!_uuid && dict[@"UUID"] && ![dict[@"UUID"] isKindOfClass:NSNull.class]) return nil; | |
| 18678 | + _var = [QTVar fromJSONDictionary:(id)_var]; | |
| 18679 | + if (!_var && dict[@"var"] && ![dict[@"var"] isKindOfClass:NSNull.class]) return nil; | |
| 18680 | + _virtual = [QTVirtual fromJSONDictionary:(id)_virtual]; | |
| 18681 | + if (!_virtual && dict[@"virtual"] && ![dict[@"virtual"] isKindOfClass:NSNull.class]) return nil; | |
| 18682 | + _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT]; | |
| 18683 | + if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil; | |
| 18684 | + _weak = [QTWeak fromJSONDictionary:(id)_weak]; | |
| 18685 | + if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil; | |
| 18686 | + _where = [QTWhere fromJSONDictionary:(id)_where]; | |
| 18687 | + if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil; | |
| 18688 | + _willSet = [QTWillSet fromJSONDictionary:(id)_willSet]; | |
| 18689 | + if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil; | |
| 18690 | + _with = [QTWith fromJSONDictionary:(id)_with]; | |
| 18691 | + if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil; | |
| 18692 | + _xor = [QTXor fromJSONDictionary:(id)_xor]; | |
| 18693 | + if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil; | |
| 18694 | + _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq]; | |
| 18695 | + if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil; | |
| 18696 | + _yes = [QTYes fromJSONDictionary:(id)_yes]; | |
| 18697 | + if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil; | |
| 18698 | + _yield = [QTYield fromJSONDictionary:(id)_yield]; | |
| 18699 | + if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil; | |
| 18700 | + } | |
| 18701 | + return self; | |
| 18702 | +} | |
| 18703 | + | |
| 18704 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 18705 | +{ | |
| 18706 | + id resolved = QTObj6.properties[key]; | |
| 18707 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 18708 | +} | |
| 18709 | + | |
| 18710 | +- (void)setNilValueForKey:(NSString *)key | |
| 18711 | +{ | |
| 18712 | + id resolved = QTObj6.properties[key]; | |
| 18713 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 18714 | +} | |
| 18715 | + | |
| 18716 | +- (NSDictionary *)JSONDictionary | |
| 18717 | +{ | |
| 18718 | + id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy]; | |
| 18719 | + | |
| 18720 | + for (id jsonName in QTObj6.properties) { | |
| 18721 | + id propertyName = QTObj6.properties[jsonName]; | |
| 18722 | + if (![jsonName isEqualToString:propertyName]) { | |
| 18723 | + dict[jsonName] = dict[propertyName]; | |
| 18724 | + [dict removeObjectForKey:propertyName]; | |
| 18725 | + } | |
| 18408 | 18726 | } |
| 18409 | - return self; | |
| 18410 | -} | |
| 18411 | - | |
| 18412 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 18413 | -{ | |
| 18414 | - id resolved = QTUtf8JSONWriter.properties[key]; | |
| 18415 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 18416 | -} | |
| 18417 | - | |
| 18418 | -- (void)setNilValueForKey:(NSString *)key | |
| 18419 | -{ | |
| 18420 | - id resolved = QTUtf8JSONWriter.properties[key]; | |
| 18421 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 18422 | -} | |
| 18423 | - | |
| 18424 | -- (NSDictionary *)JSONDictionary | |
| 18425 | -{ | |
| 18426 | - id dict = [[self dictionaryWithValuesForKeys:QTUtf8JSONWriter.properties.allValues] mutableCopy]; | |
| 18427 | - | |
| 18428 | - for (id jsonName in QTUtf8JSONWriter.properties) { | |
| 18429 | - id propertyName = QTUtf8JSONWriter.properties[jsonName]; | |
| 18430 | - if (![jsonName isEqualToString:propertyName]) { | |
| 18431 | - dict[jsonName] = dict[propertyName]; | |
| 18432 | - [dict removeObjectForKey:propertyName]; | |
| 18433 | - } | |
| 18434 | - } | |
| 18727 | + | |
| 18728 | + [dict addEntriesFromDictionary:@{ | |
| 18729 | + @"void": [_obj6Void JSONDictionary], | |
| 18730 | + @"volatile": [_obj6Volatile JSONDictionary], | |
| 18731 | + @"while": [_obj6While JSONDictionary], | |
| 18732 | + @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary], | |
| 18733 | + @"UUID": [_uuid JSONDictionary], | |
| 18734 | + @"var": [_var JSONDictionary], | |
| 18735 | + @"virtual": [_virtual JSONDictionary], | |
| 18736 | + @"wchar_t": [_wcharT JSONDictionary], | |
| 18737 | + @"weak": [_weak JSONDictionary], | |
| 18738 | + @"where": [_where JSONDictionary], | |
| 18739 | + @"willSet": [_willSet JSONDictionary], | |
| 18740 | + @"with": [_with JSONDictionary], | |
| 18741 | + @"xor": [_xor JSONDictionary], | |
| 18742 | + @"xor_eq": [_xorEq JSONDictionary], | |
| 18743 | + @"YES": [_yes JSONDictionary], | |
| 18744 | + @"yield": [_yield JSONDictionary], | |
| 18745 | + }]; | |
| 18435 | 18746 | |
| 18436 | 18747 | return dict; |
| 18437 | 18748 | } |
| 18438 | 18749 | @end |
| 18439 | 18750 | |
| 18440 | -@implementation QTUUID | |
| 18751 | +@implementation QTVoid | |
| 18441 | 18752 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18442 | 18753 | { |
| 18443 | 18754 | static NSDictionary<NSString *, NSString *> *properties; |
| 18444 | 18755 | return properties = properties ? properties : @{ |
| 18445 | - @"UUID": @"uuid", | |
| 18756 | + @"void": @"voidVoid", | |
| 18446 | 18757 | }; |
| 18447 | 18758 | } |
| 18448 | 18759 | |
| 18449 | 18760 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18450 | 18761 | { |
| 18451 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUUID alloc] initWithJSONDictionary:dict] : nil; | |
| 18762 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil; | |
| 18452 | 18763 | } |
| 18453 | 18764 | |
| 18454 | 18765 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18455 | 18766 | { |
| 18456 | 18767 | if (self = [super init]) { |
| 18457 | - if (![dict[@"UUID"] isKindOfClass:NSNumber.class]) return nil; | |
| 18458 | - if ([dict[@"UUID"] doubleValue] != [dict[@"UUID"] longLongValue]) return nil; | |
| 18768 | + if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil; | |
| 18769 | + if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil; | |
| 18459 | 18770 | [self setValuesForKeysWithDictionary:dict]; |
| 18460 | 18771 | } |
| 18461 | 18772 | return self; |
| @@ -18463,22 +18774,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18463 | 18774 | |
| 18464 | 18775 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18465 | 18776 | { |
| 18466 | - id resolved = QTUUID.properties[key]; | |
| 18777 | + id resolved = QTVoid.properties[key]; | |
| 18467 | 18778 | if (resolved) [super setValue:value forKey:resolved]; |
| 18468 | 18779 | } |
| 18469 | 18780 | |
| 18470 | 18781 | - (void)setNilValueForKey:(NSString *)key |
| 18471 | 18782 | { |
| 18472 | - id resolved = QTUUID.properties[key]; | |
| 18783 | + id resolved = QTVoid.properties[key]; | |
| 18473 | 18784 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18474 | 18785 | } |
| 18475 | 18786 | |
| 18476 | 18787 | - (NSDictionary *)JSONDictionary |
| 18477 | 18788 | { |
| 18478 | - id dict = [[self dictionaryWithValuesForKeys:QTUUID.properties.allValues] mutableCopy]; | |
| 18789 | + id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy]; | |
| 18479 | 18790 | |
| 18480 | - for (id jsonName in QTUUID.properties) { | |
| 18481 | - id propertyName = QTUUID.properties[jsonName]; | |
| 18791 | + for (id jsonName in QTVoid.properties) { | |
| 18792 | + id propertyName = QTVoid.properties[jsonName]; | |
| 18482 | 18793 | if (![jsonName isEqualToString:propertyName]) { |
| 18483 | 18794 | dict[jsonName] = dict[propertyName]; |
| 18484 | 18795 | [dict removeObjectForKey:propertyName]; |
| @@ -18489,25 +18800,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18489 | 18800 | } |
| 18490 | 18801 | @end |
| 18491 | 18802 | |
| 18492 | -@implementation QTVar | |
| 18803 | +@implementation QTVolatile | |
| 18493 | 18804 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18494 | 18805 | { |
| 18495 | 18806 | static NSDictionary<NSString *, NSString *> *properties; |
| 18496 | 18807 | return properties = properties ? properties : @{ |
| 18497 | - @"var": @"var", | |
| 18808 | + @"volatile": @"volatileVolatile", | |
| 18498 | 18809 | }; |
| 18499 | 18810 | } |
| 18500 | 18811 | |
| 18501 | 18812 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18502 | 18813 | { |
| 18503 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil; | |
| 18814 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil; | |
| 18504 | 18815 | } |
| 18505 | 18816 | |
| 18506 | 18817 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18507 | 18818 | { |
| 18508 | 18819 | if (self = [super init]) { |
| 18509 | - if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil; | |
| 18510 | - if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil; | |
| 18820 | + if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil; | |
| 18821 | + if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil; | |
| 18511 | 18822 | [self setValuesForKeysWithDictionary:dict]; |
| 18512 | 18823 | } |
| 18513 | 18824 | return self; |
| @@ -18515,41 +18826,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18515 | 18826 | |
| 18516 | 18827 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18517 | 18828 | { |
| 18518 | - id resolved = QTVar.properties[key]; | |
| 18829 | + id resolved = QTVolatile.properties[key]; | |
| 18519 | 18830 | if (resolved) [super setValue:value forKey:resolved]; |
| 18520 | 18831 | } |
| 18521 | 18832 | |
| 18522 | 18833 | - (void)setNilValueForKey:(NSString *)key |
| 18523 | 18834 | { |
| 18524 | - id resolved = QTVar.properties[key]; | |
| 18835 | + id resolved = QTVolatile.properties[key]; | |
| 18525 | 18836 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18526 | 18837 | } |
| 18527 | 18838 | |
| 18528 | 18839 | - (NSDictionary *)JSONDictionary |
| 18529 | 18840 | { |
| 18530 | - return [self dictionaryWithValuesForKeys:QTVar.properties.allValues]; | |
| 18841 | + id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy]; | |
| 18842 | + | |
| 18843 | + for (id jsonName in QTVolatile.properties) { | |
| 18844 | + id propertyName = QTVolatile.properties[jsonName]; | |
| 18845 | + if (![jsonName isEqualToString:propertyName]) { | |
| 18846 | + dict[jsonName] = dict[propertyName]; | |
| 18847 | + [dict removeObjectForKey:propertyName]; | |
| 18848 | + } | |
| 18849 | + } | |
| 18850 | + | |
| 18851 | + return dict; | |
| 18531 | 18852 | } |
| 18532 | 18853 | @end |
| 18533 | 18854 | |
| 18534 | -@implementation QTVirtual | |
| 18855 | +@implementation QTWhile | |
| 18535 | 18856 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18536 | 18857 | { |
| 18537 | 18858 | static NSDictionary<NSString *, NSString *> *properties; |
| 18538 | 18859 | return properties = properties ? properties : @{ |
| 18539 | - @"virtual": @"virtual", | |
| 18860 | + @"while": @"whileWhile", | |
| 18540 | 18861 | }; |
| 18541 | 18862 | } |
| 18542 | 18863 | |
| 18543 | 18864 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18544 | 18865 | { |
| 18545 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil; | |
| 18866 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil; | |
| 18546 | 18867 | } |
| 18547 | 18868 | |
| 18548 | 18869 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18549 | 18870 | { |
| 18550 | 18871 | if (self = [super init]) { |
| 18551 | - if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil; | |
| 18552 | - if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil; | |
| 18872 | + if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil; | |
| 18873 | + if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil; | |
| 18553 | 18874 | [self setValuesForKeysWithDictionary:dict]; |
| 18554 | 18875 | } |
| 18555 | 18876 | return self; |
| @@ -18557,156 +18878,103 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18557 | 18878 | |
| 18558 | 18879 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18559 | 18880 | { |
| 18560 | - id resolved = QTVirtual.properties[key]; | |
| 18881 | + id resolved = QTWhile.properties[key]; | |
| 18561 | 18882 | if (resolved) [super setValue:value forKey:resolved]; |
| 18562 | 18883 | } |
| 18563 | 18884 | |
| 18564 | 18885 | - (void)setNilValueForKey:(NSString *)key |
| 18565 | 18886 | { |
| 18566 | - id resolved = QTVirtual.properties[key]; | |
| 18887 | + id resolved = QTWhile.properties[key]; | |
| 18567 | 18888 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18568 | 18889 | } |
| 18569 | 18890 | |
| 18570 | 18891 | - (NSDictionary *)JSONDictionary |
| 18571 | 18892 | { |
| 18572 | - return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues]; | |
| 18893 | + id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy]; | |
| 18894 | + | |
| 18895 | + for (id jsonName in QTWhile.properties) { | |
| 18896 | + id propertyName = QTWhile.properties[jsonName]; | |
| 18897 | + if (![jsonName isEqualToString:propertyName]) { | |
| 18898 | + dict[jsonName] = dict[propertyName]; | |
| 18899 | + [dict removeObjectForKey:propertyName]; | |
| 18900 | + } | |
| 18901 | + } | |
| 18902 | + | |
| 18903 | + return dict; | |
| 18573 | 18904 | } |
| 18574 | 18905 | @end |
| 18575 | 18906 | |
| 18576 | -@implementation QTObj6 | |
| 18907 | +@implementation QTUtf8JSONWriter | |
| 18577 | 18908 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18578 | 18909 | { |
| 18579 | 18910 | static NSDictionary<NSString *, NSString *> *properties; |
| 18580 | 18911 | return properties = properties ? properties : @{ |
| 18581 | - @"dummy": @"dummy", | |
| 18582 | - @"void": @"obj6Void", | |
| 18583 | - @"volatile": @"obj6Volatile", | |
| 18584 | - @"while": @"obj6While", | |
| 18585 | - @"wchar_t": @"wcharT", | |
| 18586 | - @"weak": @"weak", | |
| 18587 | - @"where": @"where", | |
| 18588 | - @"willSet": @"willSet", | |
| 18589 | - @"with": @"with", | |
| 18590 | - @"xor": @"xor", | |
| 18591 | - @"xor_eq": @"xorEq", | |
| 18592 | - @"YES": @"yes", | |
| 18593 | - @"yield": @"yield", | |
| 18912 | + @"Utf8JsonWriter": @"utf8JSONWriter", | |
| 18594 | 18913 | }; |
| 18595 | 18914 | } |
| 18596 | 18915 | |
| 18597 | 18916 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18598 | 18917 | { |
| 18599 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTObj6 alloc] initWithJSONDictionary:dict] : nil; | |
| 18918 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUtf8JSONWriter alloc] initWithJSONDictionary:dict] : nil; | |
| 18600 | 18919 | } |
| 18601 | 18920 | |
| 18602 | 18921 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18603 | 18922 | { |
| 18604 | 18923 | if (self = [super init]) { |
| 18605 | - if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; | |
| 18606 | - if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; | |
| 18607 | - if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18608 | - if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18609 | - if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18610 | - if (![dict[@"wchar_t"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18611 | - if (![dict[@"weak"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18612 | - if (![dict[@"where"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18613 | - if (![dict[@"willSet"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18614 | - if (![dict[@"with"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18615 | - if (![dict[@"xor"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18616 | - if (![dict[@"xor_eq"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18617 | - if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18618 | - if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18924 | + if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSNumber.class]) return nil; | |
| 18925 | + if ([dict[@"Utf8JsonWriter"] doubleValue] != [dict[@"Utf8JsonWriter"] longLongValue]) return nil; | |
| 18619 | 18926 | [self setValuesForKeysWithDictionary:dict]; |
| 18620 | - _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void]; | |
| 18621 | - if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil; | |
| 18622 | - _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile]; | |
| 18623 | - if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil; | |
| 18624 | - _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While]; | |
| 18625 | - if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil; | |
| 18626 | - _wcharT = [QTWcharT fromJSONDictionary:(id)_wcharT]; | |
| 18627 | - if (!_wcharT && dict[@"wchar_t"] && ![dict[@"wchar_t"] isKindOfClass:NSNull.class]) return nil; | |
| 18628 | - _weak = [QTWeak fromJSONDictionary:(id)_weak]; | |
| 18629 | - if (!_weak && dict[@"weak"] && ![dict[@"weak"] isKindOfClass:NSNull.class]) return nil; | |
| 18630 | - _where = [QTWhere fromJSONDictionary:(id)_where]; | |
| 18631 | - if (!_where && dict[@"where"] && ![dict[@"where"] isKindOfClass:NSNull.class]) return nil; | |
| 18632 | - _willSet = [QTWillSet fromJSONDictionary:(id)_willSet]; | |
| 18633 | - if (!_willSet && dict[@"willSet"] && ![dict[@"willSet"] isKindOfClass:NSNull.class]) return nil; | |
| 18634 | - _with = [QTWith fromJSONDictionary:(id)_with]; | |
| 18635 | - if (!_with && dict[@"with"] && ![dict[@"with"] isKindOfClass:NSNull.class]) return nil; | |
| 18636 | - _xor = [QTXor fromJSONDictionary:(id)_xor]; | |
| 18637 | - if (!_xor && dict[@"xor"] && ![dict[@"xor"] isKindOfClass:NSNull.class]) return nil; | |
| 18638 | - _xorEq = [QTXorEq fromJSONDictionary:(id)_xorEq]; | |
| 18639 | - if (!_xorEq && dict[@"xor_eq"] && ![dict[@"xor_eq"] isKindOfClass:NSNull.class]) return nil; | |
| 18640 | - _yes = [QTYes fromJSONDictionary:(id)_yes]; | |
| 18641 | - if (!_yes && dict[@"YES"] && ![dict[@"YES"] isKindOfClass:NSNull.class]) return nil; | |
| 18642 | - _yield = [QTYield fromJSONDictionary:(id)_yield]; | |
| 18643 | - if (!_yield && dict[@"yield"] && ![dict[@"yield"] isKindOfClass:NSNull.class]) return nil; | |
| 18644 | 18927 | } |
| 18645 | 18928 | return self; |
| 18646 | 18929 | } |
| 18647 | 18930 | |
| 18648 | 18931 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18649 | 18932 | { |
| 18650 | - id resolved = QTObj6.properties[key]; | |
| 18933 | + id resolved = QTUtf8JSONWriter.properties[key]; | |
| 18651 | 18934 | if (resolved) [super setValue:value forKey:resolved]; |
| 18652 | 18935 | } |
| 18653 | 18936 | |
| 18654 | 18937 | - (void)setNilValueForKey:(NSString *)key |
| 18655 | 18938 | { |
| 18656 | - id resolved = QTObj6.properties[key]; | |
| 18939 | + id resolved = QTUtf8JSONWriter.properties[key]; | |
| 18657 | 18940 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18658 | 18941 | } |
| 18659 | 18942 | |
| 18660 | 18943 | - (NSDictionary *)JSONDictionary |
| 18661 | 18944 | { |
| 18662 | - id dict = [[self dictionaryWithValuesForKeys:QTObj6.properties.allValues] mutableCopy]; | |
| 18945 | + id dict = [[self dictionaryWithValuesForKeys:QTUtf8JSONWriter.properties.allValues] mutableCopy]; | |
| 18663 | 18946 | |
| 18664 | - for (id jsonName in QTObj6.properties) { | |
| 18665 | - id propertyName = QTObj6.properties[jsonName]; | |
| 18947 | + for (id jsonName in QTUtf8JSONWriter.properties) { | |
| 18948 | + id propertyName = QTUtf8JSONWriter.properties[jsonName]; | |
| 18666 | 18949 | if (![jsonName isEqualToString:propertyName]) { |
| 18667 | 18950 | dict[jsonName] = dict[propertyName]; |
| 18668 | 18951 | [dict removeObjectForKey:propertyName]; |
| 18669 | 18952 | } |
| 18670 | 18953 | } |
| 18671 | 18954 | |
| 18672 | - [dict addEntriesFromDictionary:@{ | |
| 18673 | - @"void": [_obj6Void JSONDictionary], | |
| 18674 | - @"volatile": [_obj6Volatile JSONDictionary], | |
| 18675 | - @"while": [_obj6While JSONDictionary], | |
| 18676 | - @"wchar_t": [_wcharT JSONDictionary], | |
| 18677 | - @"weak": [_weak JSONDictionary], | |
| 18678 | - @"where": [_where JSONDictionary], | |
| 18679 | - @"willSet": [_willSet JSONDictionary], | |
| 18680 | - @"with": [_with JSONDictionary], | |
| 18681 | - @"xor": [_xor JSONDictionary], | |
| 18682 | - @"xor_eq": [_xorEq JSONDictionary], | |
| 18683 | - @"YES": [_yes JSONDictionary], | |
| 18684 | - @"yield": [_yield JSONDictionary], | |
| 18685 | - }]; | |
| 18686 | - | |
| 18687 | 18955 | return dict; |
| 18688 | 18956 | } |
| 18689 | 18957 | @end |
| 18690 | 18958 | |
| 18691 | -@implementation QTVoid | |
| 18959 | +@implementation QTUUID | |
| 18692 | 18960 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18693 | 18961 | { |
| 18694 | 18962 | static NSDictionary<NSString *, NSString *> *properties; |
| 18695 | 18963 | return properties = properties ? properties : @{ |
| 18696 | - @"void": @"voidVoid", | |
| 18964 | + @"UUID": @"uuid", | |
| 18697 | 18965 | }; |
| 18698 | 18966 | } |
| 18699 | 18967 | |
| 18700 | 18968 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18701 | 18969 | { |
| 18702 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTVoid alloc] initWithJSONDictionary:dict] : nil; | |
| 18970 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUUID alloc] initWithJSONDictionary:dict] : nil; | |
| 18703 | 18971 | } |
| 18704 | 18972 | |
| 18705 | 18973 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18706 | 18974 | { |
| 18707 | 18975 | if (self = [super init]) { |
| 18708 | - if (![dict[@"void"] isKindOfClass:NSNumber.class]) return nil; | |
| 18709 | - if ([dict[@"void"] doubleValue] != [dict[@"void"] longLongValue]) return nil; | |
| 18976 | + if (![dict[@"UUID"] isKindOfClass:NSNumber.class]) return nil; | |
| 18977 | + if ([dict[@"UUID"] doubleValue] != [dict[@"UUID"] longLongValue]) return nil; | |
| 18710 | 18978 | [self setValuesForKeysWithDictionary:dict]; |
| 18711 | 18979 | } |
| 18712 | 18980 | return self; |
| @@ -18714,22 +18982,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18714 | 18982 | |
| 18715 | 18983 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18716 | 18984 | { |
| 18717 | - id resolved = QTVoid.properties[key]; | |
| 18985 | + id resolved = QTUUID.properties[key]; | |
| 18718 | 18986 | if (resolved) [super setValue:value forKey:resolved]; |
| 18719 | 18987 | } |
| 18720 | 18988 | |
| 18721 | 18989 | - (void)setNilValueForKey:(NSString *)key |
| 18722 | 18990 | { |
| 18723 | - id resolved = QTVoid.properties[key]; | |
| 18991 | + id resolved = QTUUID.properties[key]; | |
| 18724 | 18992 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18725 | 18993 | } |
| 18726 | 18994 | |
| 18727 | 18995 | - (NSDictionary *)JSONDictionary |
| 18728 | 18996 | { |
| 18729 | - id dict = [[self dictionaryWithValuesForKeys:QTVoid.properties.allValues] mutableCopy]; | |
| 18997 | + id dict = [[self dictionaryWithValuesForKeys:QTUUID.properties.allValues] mutableCopy]; | |
| 18730 | 18998 | |
| 18731 | - for (id jsonName in QTVoid.properties) { | |
| 18732 | - id propertyName = QTVoid.properties[jsonName]; | |
| 18999 | + for (id jsonName in QTUUID.properties) { | |
| 19000 | + id propertyName = QTUUID.properties[jsonName]; | |
| 18733 | 19001 | if (![jsonName isEqualToString:propertyName]) { |
| 18734 | 19002 | dict[jsonName] = dict[propertyName]; |
| 18735 | 19003 | [dict removeObjectForKey:propertyName]; |
| @@ -18740,25 +19008,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18740 | 19008 | } |
| 18741 | 19009 | @end |
| 18742 | 19010 | |
| 18743 | -@implementation QTVolatile | |
| 19011 | +@implementation QTVar | |
| 18744 | 19012 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18745 | 19013 | { |
| 18746 | 19014 | static NSDictionary<NSString *, NSString *> *properties; |
| 18747 | 19015 | return properties = properties ? properties : @{ |
| 18748 | - @"volatile": @"volatileVolatile", | |
| 19016 | + @"var": @"var", | |
| 18749 | 19017 | }; |
| 18750 | 19018 | } |
| 18751 | 19019 | |
| 18752 | 19020 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18753 | 19021 | { |
| 18754 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTVolatile alloc] initWithJSONDictionary:dict] : nil; | |
| 19022 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTVar alloc] initWithJSONDictionary:dict] : nil; | |
| 18755 | 19023 | } |
| 18756 | 19024 | |
| 18757 | 19025 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18758 | 19026 | { |
| 18759 | 19027 | if (self = [super init]) { |
| 18760 | - if (![dict[@"volatile"] isKindOfClass:NSNumber.class]) return nil; | |
| 18761 | - if ([dict[@"volatile"] doubleValue] != [dict[@"volatile"] longLongValue]) return nil; | |
| 19028 | + if (![dict[@"var"] isKindOfClass:NSNumber.class]) return nil; | |
| 19029 | + if ([dict[@"var"] doubleValue] != [dict[@"var"] longLongValue]) return nil; | |
| 18762 | 19030 | [self setValuesForKeysWithDictionary:dict]; |
| 18763 | 19031 | } |
| 18764 | 19032 | return self; |
| @@ -18766,51 +19034,41 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18766 | 19034 | |
| 18767 | 19035 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18768 | 19036 | { |
| 18769 | - id resolved = QTVolatile.properties[key]; | |
| 19037 | + id resolved = QTVar.properties[key]; | |
| 18770 | 19038 | if (resolved) [super setValue:value forKey:resolved]; |
| 18771 | 19039 | } |
| 18772 | 19040 | |
| 18773 | 19041 | - (void)setNilValueForKey:(NSString *)key |
| 18774 | 19042 | { |
| 18775 | - id resolved = QTVolatile.properties[key]; | |
| 19043 | + id resolved = QTVar.properties[key]; | |
| 18776 | 19044 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18777 | 19045 | } |
| 18778 | 19046 | |
| 18779 | 19047 | - (NSDictionary *)JSONDictionary |
| 18780 | 19048 | { |
| 18781 | - id dict = [[self dictionaryWithValuesForKeys:QTVolatile.properties.allValues] mutableCopy]; | |
| 18782 | - | |
| 18783 | - for (id jsonName in QTVolatile.properties) { | |
| 18784 | - id propertyName = QTVolatile.properties[jsonName]; | |
| 18785 | - if (![jsonName isEqualToString:propertyName]) { | |
| 18786 | - dict[jsonName] = dict[propertyName]; | |
| 18787 | - [dict removeObjectForKey:propertyName]; | |
| 18788 | - } | |
| 18789 | - } | |
| 18790 | - | |
| 18791 | - return dict; | |
| 19049 | + return [self dictionaryWithValuesForKeys:QTVar.properties.allValues]; | |
| 18792 | 19050 | } |
| 18793 | 19051 | @end |
| 18794 | 19052 | |
| 18795 | -@implementation QTWhile | |
| 19053 | +@implementation QTVirtual | |
| 18796 | 19054 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18797 | 19055 | { |
| 18798 | 19056 | static NSDictionary<NSString *, NSString *> *properties; |
| 18799 | 19057 | return properties = properties ? properties : @{ |
| 18800 | - @"while": @"whileWhile", | |
| 19058 | + @"virtual": @"virtual", | |
| 18801 | 19059 | }; |
| 18802 | 19060 | } |
| 18803 | 19061 | |
| 18804 | 19062 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 18805 | 19063 | { |
| 18806 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTWhile alloc] initWithJSONDictionary:dict] : nil; | |
| 19064 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTVirtual alloc] initWithJSONDictionary:dict] : nil; | |
| 18807 | 19065 | } |
| 18808 | 19066 | |
| 18809 | 19067 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 18810 | 19068 | { |
| 18811 | 19069 | if (self = [super init]) { |
| 18812 | - if (![dict[@"while"] isKindOfClass:NSNumber.class]) return nil; | |
| 18813 | - if ([dict[@"while"] doubleValue] != [dict[@"while"] longLongValue]) return nil; | |
| 19070 | + if (![dict[@"virtual"] isKindOfClass:NSNumber.class]) return nil; | |
| 19071 | + if ([dict[@"virtual"] doubleValue] != [dict[@"virtual"] longLongValue]) return nil; | |
| 18814 | 19072 | [self setValuesForKeysWithDictionary:dict]; |
| 18815 | 19073 | } |
| 18816 | 19074 | return self; |
| @@ -18818,29 +19076,19 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18818 | 19076 | |
| 18819 | 19077 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 18820 | 19078 | { |
| 18821 | - id resolved = QTWhile.properties[key]; | |
| 19079 | + id resolved = QTVirtual.properties[key]; | |
| 18822 | 19080 | if (resolved) [super setValue:value forKey:resolved]; |
| 18823 | 19081 | } |
| 18824 | 19082 | |
| 18825 | 19083 | - (void)setNilValueForKey:(NSString *)key |
| 18826 | 19084 | { |
| 18827 | - id resolved = QTWhile.properties[key]; | |
| 19085 | + id resolved = QTVirtual.properties[key]; | |
| 18828 | 19086 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 18829 | 19087 | } |
| 18830 | 19088 | |
| 18831 | 19089 | - (NSDictionary *)JSONDictionary |
| 18832 | 19090 | { |
| 18833 | - id dict = [[self dictionaryWithValuesForKeys:QTWhile.properties.allValues] mutableCopy]; | |
| 18834 | - | |
| 18835 | - for (id jsonName in QTWhile.properties) { | |
| 18836 | - id propertyName = QTWhile.properties[jsonName]; | |
| 18837 | - if (![jsonName isEqualToString:propertyName]) { | |
| 18838 | - dict[jsonName] = dict[propertyName]; | |
| 18839 | - [dict removeObjectForKey:propertyName]; | |
| 18840 | - } | |
| 18841 | - } | |
| 18842 | - | |
| 18843 | - return dict; | |
| 19091 | + return [self dictionaryWithValuesForKeys:QTVirtual.properties.allValues]; | |
| 18844 | 19092 | } |
| 18845 | 19093 | @end |
Mphpdefault / TopLevel.php+2,433 −1,797
| @@ -10750,6 +10750,7 @@ class Obj2 { | ||
| 10750 | 10750 | private Del $del; // json:del Required |
| 10751 | 10751 | private Delegate $delegate; // json:delegate Required |
| 10752 | 10752 | private Delete $delete; // json:delete Required |
| 10753 | + private DeserializationFeature $deserializationFeature; // json:DeserializationFeature Required | |
| 10753 | 10754 | private Dict $dict; // json:dict Required |
| 10754 | 10755 | private Dictionary $dictionary; // json:dictionary Required |
| 10755 | 10756 | private DidSet $didSet; // json:didSet Required |
| @@ -10793,7 +10794,6 @@ class Obj2 { | ||
| 10793 | 10794 | private Get $get; // json:get Required |
| 10794 | 10795 | private GlobalClass $global; // json:global Required |
| 10795 | 10796 | private Go $go; // json:go Required |
| 10796 | - private GotoClass $goto; // json:goto Required | |
| 10797 | 10797 | private Obj2False $obj2False; // json:false Required |
| 10798 | 10798 | |
| 10799 | 10799 | /** |
| @@ -10817,6 +10817,7 @@ class Obj2 { | ||
| 10817 | 10817 | * @param Del $del |
| 10818 | 10818 | * @param Delegate $delegate |
| 10819 | 10819 | * @param Delete $delete |
| 10820 | + * @param DeserializationFeature $deserializationFeature | |
| 10820 | 10821 | * @param Dict $dict |
| 10821 | 10822 | * @param Dictionary $dictionary |
| 10822 | 10823 | * @param DidSet $didSet |
| @@ -10860,10 +10861,9 @@ class Obj2 { | ||
| 10860 | 10861 | * @param Get $get |
| 10861 | 10862 | * @param GlobalClass $global |
| 10862 | 10863 | * @param Go $go |
| 10863 | - * @param GotoClass $goto | |
| 10864 | 10864 | * @param Obj2False $obj2False |
| 10865 | 10865 | */ |
| 10866 | - public function __construct(DateFormatter $dateFormatter, DateOnly $dateOnly, DateOnlyConverter $dateOnlyConverter, DateParseHandling $dateParseHandling, DateTimeClass $dateTime, DateTimeStyles $dateTimeStyles, Debugger $debugger, Decimal $decimal, DeclareClass $declare, Decltype $decltype, DecodeString $decodeString, Decoder $decoder, DecodingError $decodingError, Def $def, DefaultClass $default, Defer $defer, Deinit $deinit, Del $del, Delegate $delegate, Delete $delete, Dict $dict, Dictionary $dictionary, DidSet $didSet, DoClass $do, Double $double, int $dummy, Dynamic $dynamic, DynamicCast $dynamicCast, Elif $elif, ElseClass $else, EncodeQuickType $encodeQuickType, Encoder $encoder, EnumClass $enum, EnumValues $enumValues, EqualityContract $equalityContract, Equatable $equatable, Event $event, Except $except, ExceptionClass $exception, Explicit $explicit, Export $export, Exposing $exposing, ExtendsClass $extends, Extension $extension, Extern $extern, Fallthrough $fallthrough, FalseClass $false, Fileprivate $fileprivate, FinalClass $final, FinallyClass $finally, Fixed $fixed, FloatClass $float, ForClass $for, ForeachClass $foreach, FormatException $formatException, Friend $friend, From $from, FromJSON $fromJSON, Func $func, FunctionClass $function, Get $get, GlobalClass $global, Go $go, GotoClass $goto, Obj2False $obj2False) { | |
| 10866 | + public function __construct(DateFormatter $dateFormatter, DateOnly $dateOnly, DateOnlyConverter $dateOnlyConverter, DateParseHandling $dateParseHandling, DateTimeClass $dateTime, DateTimeStyles $dateTimeStyles, Debugger $debugger, Decimal $decimal, DeclareClass $declare, Decltype $decltype, DecodeString $decodeString, Decoder $decoder, DecodingError $decodingError, Def $def, DefaultClass $default, Defer $defer, Deinit $deinit, Del $del, Delegate $delegate, Delete $delete, DeserializationFeature $deserializationFeature, Dict $dict, Dictionary $dictionary, DidSet $didSet, DoClass $do, Double $double, int $dummy, Dynamic $dynamic, DynamicCast $dynamicCast, Elif $elif, ElseClass $else, EncodeQuickType $encodeQuickType, Encoder $encoder, EnumClass $enum, EnumValues $enumValues, EqualityContract $equalityContract, Equatable $equatable, Event $event, Except $except, ExceptionClass $exception, Explicit $explicit, Export $export, Exposing $exposing, ExtendsClass $extends, Extension $extension, Extern $extern, Fallthrough $fallthrough, FalseClass $false, Fileprivate $fileprivate, FinalClass $final, FinallyClass $finally, Fixed $fixed, FloatClass $float, ForClass $for, ForeachClass $foreach, FormatException $formatException, Friend $friend, From $from, FromJSON $fromJSON, Func $func, FunctionClass $function, Get $get, GlobalClass $global, Go $go, Obj2False $obj2False) { | |
| 10867 | 10867 | $this->dateFormatter = $dateFormatter; |
| 10868 | 10868 | $this->dateOnly = $dateOnly; |
| 10869 | 10869 | $this->dateOnlyConverter = $dateOnlyConverter; |
| @@ -10884,6 +10884,7 @@ class Obj2 { | ||
| 10884 | 10884 | $this->del = $del; |
| 10885 | 10885 | $this->delegate = $delegate; |
| 10886 | 10886 | $this->delete = $delete; |
| 10887 | + $this->deserializationFeature = $deserializationFeature; | |
| 10887 | 10888 | $this->dict = $dict; |
| 10888 | 10889 | $this->dictionary = $dictionary; |
| 10889 | 10890 | $this->didSet = $didSet; |
| @@ -10927,7 +10928,6 @@ class Obj2 { | ||
| 10927 | 10928 | $this->get = $get; |
| 10928 | 10929 | $this->global = $global; |
| 10929 | 10930 | $this->go = $go; |
| 10930 | - $this->goto = $goto; | |
| 10931 | 10931 | $this->obj2False = $obj2False; |
| 10932 | 10932 | } |
| 10933 | 10933 | |
| @@ -11891,6 +11891,54 @@ class Obj2 { | ||
| 11891 | 11891 | return Delete::sample(); /*50:delete*/ |
| 11892 | 11892 | } |
| 11893 | 11893 | |
| 11894 | + /** | |
| 11895 | + * @param stdClass $value | |
| 11896 | + * @throws Exception | |
| 11897 | + * @return DeserializationFeature | |
| 11898 | + */ | |
| 11899 | + public static function fromDeserializationFeature(stdClass $value): DeserializationFeature { | |
| 11900 | + return DeserializationFeature::from($value); /*class*/ | |
| 11901 | + } | |
| 11902 | + | |
| 11903 | + /** | |
| 11904 | + * @throws Exception | |
| 11905 | + * @return stdClass | |
| 11906 | + */ | |
| 11907 | + public function toDeserializationFeature(): stdClass { | |
| 11908 | + if (Obj2::validateDeserializationFeature($this->deserializationFeature)) { | |
| 11909 | + return $this->deserializationFeature->to(); /*class*/ | |
| 11910 | + } | |
| 11911 | + throw new Exception('never get to this Obj2::deserializationFeature'); | |
| 11912 | + } | |
| 11913 | + | |
| 11914 | + /** | |
| 11915 | + * @param DeserializationFeature | |
| 11916 | + * @return bool | |
| 11917 | + * @throws Exception | |
| 11918 | + */ | |
| 11919 | + public static function validateDeserializationFeature(DeserializationFeature $value): bool { | |
| 11920 | + $value->validate(); | |
| 11921 | + return true; | |
| 11922 | + } | |
| 11923 | + | |
| 11924 | + /** | |
| 11925 | + * @throws Exception | |
| 11926 | + * @return DeserializationFeature | |
| 11927 | + */ | |
| 11928 | + public function getDeserializationFeature(): DeserializationFeature { | |
| 11929 | + if (Obj2::validateDeserializationFeature($this->deserializationFeature)) { | |
| 11930 | + return $this->deserializationFeature; | |
| 11931 | + } | |
| 11932 | + throw new Exception('never get to getDeserializationFeature Obj2::deserializationFeature'); | |
| 11933 | + } | |
| 11934 | + | |
| 11935 | + /** | |
| 11936 | + * @return DeserializationFeature | |
| 11937 | + */ | |
| 11938 | + public static function sampleDeserializationFeature(): DeserializationFeature { | |
| 11939 | + return DeserializationFeature::sample(); /*51:deserializationFeature*/ | |
| 11940 | + } | |
| 11941 | + | |
| 11894 | 11942 | /** |
| 11895 | 11943 | * @param stdClass $value |
| 11896 | 11944 | * @throws Exception |
| @@ -11936,7 +11984,7 @@ class Obj2 { | ||
| 11936 | 11984 | * @return Dict |
| 11937 | 11985 | */ |
| 11938 | 11986 | public static function sampleDict(): Dict { |
| 11939 | - return Dict::sample(); /*51:dict*/ | |
| 11987 | + return Dict::sample(); /*52:dict*/ | |
| 11940 | 11988 | } |
| 11941 | 11989 | |
| 11942 | 11990 | /** |
| @@ -11984,7 +12032,7 @@ class Obj2 { | ||
| 11984 | 12032 | * @return Dictionary |
| 11985 | 12033 | */ |
| 11986 | 12034 | public static function sampleDictionary(): Dictionary { |
| 11987 | - return Dictionary::sample(); /*52:dictionary*/ | |
| 12035 | + return Dictionary::sample(); /*53:dictionary*/ | |
| 11988 | 12036 | } |
| 11989 | 12037 | |
| 11990 | 12038 | /** |
| @@ -12032,7 +12080,7 @@ class Obj2 { | ||
| 12032 | 12080 | * @return DidSet |
| 12033 | 12081 | */ |
| 12034 | 12082 | public static function sampleDidSet(): DidSet { |
| 12035 | - return DidSet::sample(); /*53:didSet*/ | |
| 12083 | + return DidSet::sample(); /*54:didSet*/ | |
| 12036 | 12084 | } |
| 12037 | 12085 | |
| 12038 | 12086 | /** |
| @@ -12080,7 +12128,7 @@ class Obj2 { | ||
| 12080 | 12128 | * @return DoClass |
| 12081 | 12129 | */ |
| 12082 | 12130 | public static function sampleDo(): DoClass { |
| 12083 | - return DoClass::sample(); /*54:do*/ | |
| 12131 | + return DoClass::sample(); /*55:do*/ | |
| 12084 | 12132 | } |
| 12085 | 12133 | |
| 12086 | 12134 | /** |
| @@ -12128,7 +12176,7 @@ class Obj2 { | ||
| 12128 | 12176 | * @return Double |
| 12129 | 12177 | */ |
| 12130 | 12178 | public static function sampleDouble(): Double { |
| 12131 | - return Double::sample(); /*55:double*/ | |
| 12179 | + return Double::sample(); /*56:double*/ | |
| 12132 | 12180 | } |
| 12133 | 12181 | |
| 12134 | 12182 | /** |
| @@ -12175,7 +12223,7 @@ class Obj2 { | ||
| 12175 | 12223 | * @return int |
| 12176 | 12224 | */ |
| 12177 | 12225 | public static function sampleDummy(): int { |
| 12178 | - return 56; /*56:dummy*/ | |
| 12226 | + return 57; /*57:dummy*/ | |
| 12179 | 12227 | } |
| 12180 | 12228 | |
| 12181 | 12229 | /** |
| @@ -12223,7 +12271,7 @@ class Obj2 { | ||
| 12223 | 12271 | * @return Dynamic |
| 12224 | 12272 | */ |
| 12225 | 12273 | public static function sampleDynamic(): Dynamic { |
| 12226 | - return Dynamic::sample(); /*57:dynamic*/ | |
| 12274 | + return Dynamic::sample(); /*58:dynamic*/ | |
| 12227 | 12275 | } |
| 12228 | 12276 | |
| 12229 | 12277 | /** |
| @@ -12271,7 +12319,7 @@ class Obj2 { | ||
| 12271 | 12319 | * @return DynamicCast |
| 12272 | 12320 | */ |
| 12273 | 12321 | public static function sampleDynamicCast(): DynamicCast { |
| 12274 | - return DynamicCast::sample(); /*58:dynamicCast*/ | |
| 12322 | + return DynamicCast::sample(); /*59:dynamicCast*/ | |
| 12275 | 12323 | } |
| 12276 | 12324 | |
| 12277 | 12325 | /** |
| @@ -12319,7 +12367,7 @@ class Obj2 { | ||
| 12319 | 12367 | * @return Elif |
| 12320 | 12368 | */ |
| 12321 | 12369 | public static function sampleElif(): Elif { |
| 12322 | - return Elif::sample(); /*59:elif*/ | |
| 12370 | + return Elif::sample(); /*60:elif*/ | |
| 12323 | 12371 | } |
| 12324 | 12372 | |
| 12325 | 12373 | /** |
| @@ -12367,7 +12415,7 @@ class Obj2 { | ||
| 12367 | 12415 | * @return ElseClass |
| 12368 | 12416 | */ |
| 12369 | 12417 | public static function sampleElse(): ElseClass { |
| 12370 | - return ElseClass::sample(); /*60:else*/ | |
| 12418 | + return ElseClass::sample(); /*61:else*/ | |
| 12371 | 12419 | } |
| 12372 | 12420 | |
| 12373 | 12421 | /** |
| @@ -12415,7 +12463,7 @@ class Obj2 { | ||
| 12415 | 12463 | * @return EncodeQuickType |
| 12416 | 12464 | */ |
| 12417 | 12465 | public static function sampleEncodeQuickType(): EncodeQuickType { |
| 12418 | - return EncodeQuickType::sample(); /*61:encodeQuickType*/ | |
| 12466 | + return EncodeQuickType::sample(); /*62:encodeQuickType*/ | |
| 12419 | 12467 | } |
| 12420 | 12468 | |
| 12421 | 12469 | /** |
| @@ -12463,7 +12511,7 @@ class Obj2 { | ||
| 12463 | 12511 | * @return Encoder |
| 12464 | 12512 | */ |
| 12465 | 12513 | public static function sampleEncoder(): Encoder { |
| 12466 | - return Encoder::sample(); /*62:encoder*/ | |
| 12514 | + return Encoder::sample(); /*63:encoder*/ | |
| 12467 | 12515 | } |
| 12468 | 12516 | |
| 12469 | 12517 | /** |
| @@ -12511,7 +12559,7 @@ class Obj2 { | ||
| 12511 | 12559 | * @return EnumClass |
| 12512 | 12560 | */ |
| 12513 | 12561 | public static function sampleEnum(): EnumClass { |
| 12514 | - return EnumClass::sample(); /*63:enum*/ | |
| 12562 | + return EnumClass::sample(); /*64:enum*/ | |
| 12515 | 12563 | } |
| 12516 | 12564 | |
| 12517 | 12565 | /** |
| @@ -12559,7 +12607,7 @@ class Obj2 { | ||
| 12559 | 12607 | * @return EnumValues |
| 12560 | 12608 | */ |
| 12561 | 12609 | public static function sampleEnumValues(): EnumValues { |
| 12562 | - return EnumValues::sample(); /*64:enumValues*/ | |
| 12610 | + return EnumValues::sample(); /*65:enumValues*/ | |
| 12563 | 12611 | } |
| 12564 | 12612 | |
| 12565 | 12613 | /** |
| @@ -12607,7 +12655,7 @@ class Obj2 { | ||
| 12607 | 12655 | * @return EqualityContract |
| 12608 | 12656 | */ |
| 12609 | 12657 | public static function sampleEqualityContract(): EqualityContract { |
| 12610 | - return EqualityContract::sample(); /*65:equalityContract*/ | |
| 12658 | + return EqualityContract::sample(); /*66:equalityContract*/ | |
| 12611 | 12659 | } |
| 12612 | 12660 | |
| 12613 | 12661 | /** |
| @@ -12655,7 +12703,7 @@ class Obj2 { | ||
| 12655 | 12703 | * @return Equatable |
| 12656 | 12704 | */ |
| 12657 | 12705 | public static function sampleEquatable(): Equatable { |
| 12658 | - return Equatable::sample(); /*66:equatable*/ | |
| 12706 | + return Equatable::sample(); /*67:equatable*/ | |
| 12659 | 12707 | } |
| 12660 | 12708 | |
| 12661 | 12709 | /** |
| @@ -12703,7 +12751,7 @@ class Obj2 { | ||
| 12703 | 12751 | * @return Event |
| 12704 | 12752 | */ |
| 12705 | 12753 | public static function sampleEvent(): Event { |
| 12706 | - return Event::sample(); /*67:event*/ | |
| 12754 | + return Event::sample(); /*68:event*/ | |
| 12707 | 12755 | } |
| 12708 | 12756 | |
| 12709 | 12757 | /** |
| @@ -12751,7 +12799,7 @@ class Obj2 { | ||
| 12751 | 12799 | * @return Except |
| 12752 | 12800 | */ |
| 12753 | 12801 | public static function sampleExcept(): Except { |
| 12754 | - return Except::sample(); /*68:except*/ | |
| 12802 | + return Except::sample(); /*69:except*/ | |
| 12755 | 12803 | } |
| 12756 | 12804 | |
| 12757 | 12805 | /** |
| @@ -12799,7 +12847,7 @@ class Obj2 { | ||
| 12799 | 12847 | * @return ExceptionClass |
| 12800 | 12848 | */ |
| 12801 | 12849 | public static function sampleException(): ExceptionClass { |
| 12802 | - return ExceptionClass::sample(); /*69:exception*/ | |
| 12850 | + return ExceptionClass::sample(); /*70:exception*/ | |
| 12803 | 12851 | } |
| 12804 | 12852 | |
| 12805 | 12853 | /** |
| @@ -12847,7 +12895,7 @@ class Obj2 { | ||
| 12847 | 12895 | * @return Explicit |
| 12848 | 12896 | */ |
| 12849 | 12897 | public static function sampleExplicit(): Explicit { |
| 12850 | - return Explicit::sample(); /*70:explicit*/ | |
| 12898 | + return Explicit::sample(); /*71:explicit*/ | |
| 12851 | 12899 | } |
| 12852 | 12900 | |
| 12853 | 12901 | /** |
| @@ -12895,7 +12943,7 @@ class Obj2 { | ||
| 12895 | 12943 | * @return Export |
| 12896 | 12944 | */ |
| 12897 | 12945 | public static function sampleExport(): Export { |
| 12898 | - return Export::sample(); /*71:export*/ | |
| 12946 | + return Export::sample(); /*72:export*/ | |
| 12899 | 12947 | } |
| 12900 | 12948 | |
| 12901 | 12949 | /** |
| @@ -12943,7 +12991,7 @@ class Obj2 { | ||
| 12943 | 12991 | * @return Exposing |
| 12944 | 12992 | */ |
| 12945 | 12993 | public static function sampleExposing(): Exposing { |
| 12946 | - return Exposing::sample(); /*72:exposing*/ | |
| 12994 | + return Exposing::sample(); /*73:exposing*/ | |
| 12947 | 12995 | } |
| 12948 | 12996 | |
| 12949 | 12997 | /** |
| @@ -12991,7 +13039,7 @@ class Obj2 { | ||
| 12991 | 13039 | * @return ExtendsClass |
| 12992 | 13040 | */ |
| 12993 | 13041 | public static function sampleExtends(): ExtendsClass { |
| 12994 | - return ExtendsClass::sample(); /*73:extends*/ | |
| 13042 | + return ExtendsClass::sample(); /*74:extends*/ | |
| 12995 | 13043 | } |
| 12996 | 13044 | |
| 12997 | 13045 | /** |
| @@ -13039,7 +13087,7 @@ class Obj2 { | ||
| 13039 | 13087 | * @return Extension |
| 13040 | 13088 | */ |
| 13041 | 13089 | public static function sampleExtension(): Extension { |
| 13042 | - return Extension::sample(); /*74:extension*/ | |
| 13090 | + return Extension::sample(); /*75:extension*/ | |
| 13043 | 13091 | } |
| 13044 | 13092 | |
| 13045 | 13093 | /** |
| @@ -13087,7 +13135,7 @@ class Obj2 { | ||
| 13087 | 13135 | * @return Extern |
| 13088 | 13136 | */ |
| 13089 | 13137 | public static function sampleExtern(): Extern { |
| 13090 | - return Extern::sample(); /*75:extern*/ | |
| 13138 | + return Extern::sample(); /*76:extern*/ | |
| 13091 | 13139 | } |
| 13092 | 13140 | |
| 13093 | 13141 | /** |
| @@ -13135,7 +13183,7 @@ class Obj2 { | ||
| 13135 | 13183 | * @return Fallthrough |
| 13136 | 13184 | */ |
| 13137 | 13185 | public static function sampleFallthrough(): Fallthrough { |
| 13138 | - return Fallthrough::sample(); /*76:fallthrough*/ | |
| 13186 | + return Fallthrough::sample(); /*77:fallthrough*/ | |
| 13139 | 13187 | } |
| 13140 | 13188 | |
| 13141 | 13189 | /** |
| @@ -13183,7 +13231,7 @@ class Obj2 { | ||
| 13183 | 13231 | * @return FalseClass |
| 13184 | 13232 | */ |
| 13185 | 13233 | public static function sampleFalse(): FalseClass { |
| 13186 | - return FalseClass::sample(); /*77:false*/ | |
| 13234 | + return FalseClass::sample(); /*78:false*/ | |
| 13187 | 13235 | } |
| 13188 | 13236 | |
| 13189 | 13237 | /** |
| @@ -13231,7 +13279,7 @@ class Obj2 { | ||
| 13231 | 13279 | * @return Fileprivate |
| 13232 | 13280 | */ |
| 13233 | 13281 | public static function sampleFileprivate(): Fileprivate { |
| 13234 | - return Fileprivate::sample(); /*78:fileprivate*/ | |
| 13282 | + return Fileprivate::sample(); /*79:fileprivate*/ | |
| 13235 | 13283 | } |
| 13236 | 13284 | |
| 13237 | 13285 | /** |
| @@ -13279,7 +13327,7 @@ class Obj2 { | ||
| 13279 | 13327 | * @return FinalClass |
| 13280 | 13328 | */ |
| 13281 | 13329 | public static function sampleFinal(): FinalClass { |
| 13282 | - return FinalClass::sample(); /*79:final*/ | |
| 13330 | + return FinalClass::sample(); /*80:final*/ | |
| 13283 | 13331 | } |
| 13284 | 13332 | |
| 13285 | 13333 | /** |
| @@ -13327,7 +13375,7 @@ class Obj2 { | ||
| 13327 | 13375 | * @return FinallyClass |
| 13328 | 13376 | */ |
| 13329 | 13377 | public static function sampleFinally(): FinallyClass { |
| 13330 | - return FinallyClass::sample(); /*80:finally*/ | |
| 13378 | + return FinallyClass::sample(); /*81:finally*/ | |
| 13331 | 13379 | } |
| 13332 | 13380 | |
| 13333 | 13381 | /** |
| @@ -13375,7 +13423,7 @@ class Obj2 { | ||
| 13375 | 13423 | * @return Fixed |
| 13376 | 13424 | */ |
| 13377 | 13425 | public static function sampleFixed(): Fixed { |
| 13378 | - return Fixed::sample(); /*81:fixed*/ | |
| 13426 | + return Fixed::sample(); /*82:fixed*/ | |
| 13379 | 13427 | } |
| 13380 | 13428 | |
| 13381 | 13429 | /** |
| @@ -13423,7 +13471,7 @@ class Obj2 { | ||
| 13423 | 13471 | * @return FloatClass |
| 13424 | 13472 | */ |
| 13425 | 13473 | public static function sampleFloat(): FloatClass { |
| 13426 | - return FloatClass::sample(); /*82:float*/ | |
| 13474 | + return FloatClass::sample(); /*83:float*/ | |
| 13427 | 13475 | } |
| 13428 | 13476 | |
| 13429 | 13477 | /** |
| @@ -13471,7 +13519,7 @@ class Obj2 { | ||
| 13471 | 13519 | * @return ForClass |
| 13472 | 13520 | */ |
| 13473 | 13521 | public static function sampleFor(): ForClass { |
| 13474 | - return ForClass::sample(); /*83:for*/ | |
| 13522 | + return ForClass::sample(); /*84:for*/ | |
| 13475 | 13523 | } |
| 13476 | 13524 | |
| 13477 | 13525 | /** |
| @@ -13519,7 +13567,7 @@ class Obj2 { | ||
| 13519 | 13567 | * @return ForeachClass |
| 13520 | 13568 | */ |
| 13521 | 13569 | public static function sampleForeach(): ForeachClass { |
| 13522 | - return ForeachClass::sample(); /*84:foreach*/ | |
| 13570 | + return ForeachClass::sample(); /*85:foreach*/ | |
| 13523 | 13571 | } |
| 13524 | 13572 | |
| 13525 | 13573 | /** |
| @@ -13567,7 +13615,7 @@ class Obj2 { | ||
| 13567 | 13615 | * @return FormatException |
| 13568 | 13616 | */ |
| 13569 | 13617 | public static function sampleFormatException(): FormatException { |
| 13570 | - return FormatException::sample(); /*85:formatException*/ | |
| 13618 | + return FormatException::sample(); /*86:formatException*/ | |
| 13571 | 13619 | } |
| 13572 | 13620 | |
| 13573 | 13621 | /** |
| @@ -13615,7 +13663,7 @@ class Obj2 { | ||
| 13615 | 13663 | * @return Friend |
| 13616 | 13664 | */ |
| 13617 | 13665 | public static function sampleFriend(): Friend { |
| 13618 | - return Friend::sample(); /*86:friend*/ | |
| 13666 | + return Friend::sample(); /*87:friend*/ | |
| 13619 | 13667 | } |
| 13620 | 13668 | |
| 13621 | 13669 | /** |
| @@ -13663,7 +13711,7 @@ class Obj2 { | ||
| 13663 | 13711 | * @return From |
| 13664 | 13712 | */ |
| 13665 | 13713 | public static function sampleFrom(): From { |
| 13666 | - return From::sample(); /*87:from*/ | |
| 13714 | + return From::sample(); /*88:from*/ | |
| 13667 | 13715 | } |
| 13668 | 13716 | |
| 13669 | 13717 | /** |
| @@ -13711,7 +13759,7 @@ class Obj2 { | ||
| 13711 | 13759 | * @return FromJSON |
| 13712 | 13760 | */ |
| 13713 | 13761 | public static function sampleFromJSON(): FromJSON { |
| 13714 | - return FromJSON::sample(); /*88:fromJSON*/ | |
| 13762 | + return FromJSON::sample(); /*89:fromJSON*/ | |
| 13715 | 13763 | } |
| 13716 | 13764 | |
| 13717 | 13765 | /** |
| @@ -13759,7 +13807,7 @@ class Obj2 { | ||
| 13759 | 13807 | * @return Func |
| 13760 | 13808 | */ |
| 13761 | 13809 | public static function sampleFunc(): Func { |
| 13762 | - return Func::sample(); /*89:func*/ | |
| 13810 | + return Func::sample(); /*90:func*/ | |
| 13763 | 13811 | } |
| 13764 | 13812 | |
| 13765 | 13813 | /** |
| @@ -13807,7 +13855,7 @@ class Obj2 { | ||
| 13807 | 13855 | * @return FunctionClass |
| 13808 | 13856 | */ |
| 13809 | 13857 | public static function sampleFunction(): FunctionClass { |
| 13810 | - return FunctionClass::sample(); /*90:function*/ | |
| 13858 | + return FunctionClass::sample(); /*91:function*/ | |
| 13811 | 13859 | } |
| 13812 | 13860 | |
| 13813 | 13861 | /** |
| @@ -13855,7 +13903,7 @@ class Obj2 { | ||
| 13855 | 13903 | * @return Get |
| 13856 | 13904 | */ |
| 13857 | 13905 | public static function sampleGet(): Get { |
| 13858 | - return Get::sample(); /*91:get*/ | |
| 13906 | + return Get::sample(); /*92:get*/ | |
| 13859 | 13907 | } |
| 13860 | 13908 | |
| 13861 | 13909 | /** |
| @@ -13903,7 +13951,7 @@ class Obj2 { | ||
| 13903 | 13951 | * @return GlobalClass |
| 13904 | 13952 | */ |
| 13905 | 13953 | public static function sampleGlobal(): GlobalClass { |
| 13906 | - return GlobalClass::sample(); /*92:global*/ | |
| 13954 | + return GlobalClass::sample(); /*93:global*/ | |
| 13907 | 13955 | } |
| 13908 | 13956 | |
| 13909 | 13957 | /** |
| @@ -13951,55 +13999,7 @@ class Obj2 { | ||
| 13951 | 13999 | * @return Go |
| 13952 | 14000 | */ |
| 13953 | 14001 | public static function sampleGo(): Go { |
| 13954 | - return Go::sample(); /*93:go*/ | |
| 13955 | - } | |
| 13956 | - | |
| 13957 | - /** | |
| 13958 | - * @param stdClass $value | |
| 13959 | - * @throws Exception | |
| 13960 | - * @return GotoClass | |
| 13961 | - */ | |
| 13962 | - public static function fromGoto(stdClass $value): GotoClass { | |
| 13963 | - return GotoClass::from($value); /*class*/ | |
| 13964 | - } | |
| 13965 | - | |
| 13966 | - /** | |
| 13967 | - * @throws Exception | |
| 13968 | - * @return stdClass | |
| 13969 | - */ | |
| 13970 | - public function toGoto(): stdClass { | |
| 13971 | - if (Obj2::validateGoto($this->goto)) { | |
| 13972 | - return $this->goto->to(); /*class*/ | |
| 13973 | - } | |
| 13974 | - throw new Exception('never get to this Obj2::goto'); | |
| 13975 | - } | |
| 13976 | - | |
| 13977 | - /** | |
| 13978 | - * @param GotoClass | |
| 13979 | - * @return bool | |
| 13980 | - * @throws Exception | |
| 13981 | - */ | |
| 13982 | - public static function validateGoto(GotoClass $value): bool { | |
| 13983 | - $value->validate(); | |
| 13984 | - return true; | |
| 13985 | - } | |
| 13986 | - | |
| 13987 | - /** | |
| 13988 | - * @throws Exception | |
| 13989 | - * @return GotoClass | |
| 13990 | - */ | |
| 13991 | - public function getGoto(): GotoClass { | |
| 13992 | - if (Obj2::validateGoto($this->goto)) { | |
| 13993 | - return $this->goto; | |
| 13994 | - } | |
| 13995 | - throw new Exception('never get to getGoto Obj2::goto'); | |
| 13996 | - } | |
| 13997 | - | |
| 13998 | - /** | |
| 13999 | - * @return GotoClass | |
| 14000 | - */ | |
| 14001 | - public static function sampleGoto(): GotoClass { | |
| 14002 | - return GotoClass::sample(); /*94:goto*/ | |
| 14002 | + return Go::sample(); /*94:go*/ | |
| 14003 | 14003 | } |
| 14004 | 14004 | |
| 14005 | 14005 | /** |
| @@ -14075,6 +14075,7 @@ class Obj2 { | ||
| 14075 | 14075 | || Obj2::validateDel($this->del) |
| 14076 | 14076 | || Obj2::validateDelegate($this->delegate) |
| 14077 | 14077 | || Obj2::validateDelete($this->delete) |
| 14078 | + || Obj2::validateDeserializationFeature($this->deserializationFeature) | |
| 14078 | 14079 | || Obj2::validateDict($this->dict) |
| 14079 | 14080 | || Obj2::validateDictionary($this->dictionary) |
| 14080 | 14081 | || Obj2::validateDidSet($this->didSet) |
| @@ -14118,7 +14119,6 @@ class Obj2 { | ||
| 14118 | 14119 | || Obj2::validateGet($this->get) |
| 14119 | 14120 | || Obj2::validateGlobal($this->global) |
| 14120 | 14121 | || Obj2::validateGo($this->go) |
| 14121 | - || Obj2::validateGoto($this->goto) | |
| 14122 | 14122 | || Obj2::validateObj2False($this->obj2False); |
| 14123 | 14123 | } |
| 14124 | 14124 | |
| @@ -14148,6 +14148,7 @@ class Obj2 { | ||
| 14148 | 14148 | $out->{'del'} = $this->toDel(); |
| 14149 | 14149 | $out->{'delegate'} = $this->toDelegate(); |
| 14150 | 14150 | $out->{'delete'} = $this->toDelete(); |
| 14151 | + $out->{'DeserializationFeature'} = $this->toDeserializationFeature(); | |
| 14151 | 14152 | $out->{'dict'} = $this->toDict(); |
| 14152 | 14153 | $out->{'dictionary'} = $this->toDictionary(); |
| 14153 | 14154 | $out->{'didSet'} = $this->toDidSet(); |
| @@ -14191,7 +14192,6 @@ class Obj2 { | ||
| 14191 | 14192 | $out->{'get'} = $this->toGet(); |
| 14192 | 14193 | $out->{'global'} = $this->toGlobal(); |
| 14193 | 14194 | $out->{'go'} = $this->toGo(); |
| 14194 | - $out->{'goto'} = $this->toGoto(); | |
| 14195 | 14195 | $out->{'false'} = $this->toObj2False(); |
| 14196 | 14196 | return $out; |
| 14197 | 14197 | } |
| @@ -14262,6 +14262,9 @@ class Obj2 { | ||
| 14262 | 14262 | if (!property_exists($obj, 'delete')) { |
| 14263 | 14263 | throw new Exception("Missing required property"); |
| 14264 | 14264 | } |
| 14265 | + if (!property_exists($obj, 'DeserializationFeature')) { | |
| 14266 | + throw new Exception("Missing required property"); | |
| 14267 | + } | |
| 14265 | 14268 | if (!property_exists($obj, 'dict')) { |
| 14266 | 14269 | throw new Exception("Missing required property"); |
| 14267 | 14270 | } |
| @@ -14391,9 +14394,6 @@ class Obj2 { | ||
| 14391 | 14394 | if (!property_exists($obj, 'go')) { |
| 14392 | 14395 | throw new Exception("Missing required property"); |
| 14393 | 14396 | } |
| 14394 | - if (!property_exists($obj, 'goto')) { | |
| 14395 | - throw new Exception("Missing required property"); | |
| 14396 | - } | |
| 14397 | 14397 | if (!property_exists($obj, 'false')) { |
| 14398 | 14398 | throw new Exception("Missing required property"); |
| 14399 | 14399 | } |
| @@ -14418,6 +14418,7 @@ class Obj2 { | ||
| 14418 | 14418 | ,Obj2::fromDel($obj->{'del'}) |
| 14419 | 14419 | ,Obj2::fromDelegate($obj->{'delegate'}) |
| 14420 | 14420 | ,Obj2::fromDelete($obj->{'delete'}) |
| 14421 | + ,Obj2::fromDeserializationFeature($obj->{'DeserializationFeature'}) | |
| 14421 | 14422 | ,Obj2::fromDict($obj->{'dict'}) |
| 14422 | 14423 | ,Obj2::fromDictionary($obj->{'dictionary'}) |
| 14423 | 14424 | ,Obj2::fromDidSet($obj->{'didSet'}) |
| @@ -14461,7 +14462,6 @@ class Obj2 { | ||
| 14461 | 14462 | ,Obj2::fromGet($obj->{'get'}) |
| 14462 | 14463 | ,Obj2::fromGlobal($obj->{'global'}) |
| 14463 | 14464 | ,Obj2::fromGo($obj->{'go'}) |
| 14464 | - ,Obj2::fromGoto($obj->{'goto'}) | |
| 14465 | 14465 | ,Obj2::fromObj2False($obj->{'false'}) |
| 14466 | 14466 | ); |
| 14467 | 14467 | } |
| @@ -14491,6 +14491,7 @@ class Obj2 { | ||
| 14491 | 14491 | ,Obj2::sampleDel() |
| 14492 | 14492 | ,Obj2::sampleDelegate() |
| 14493 | 14493 | ,Obj2::sampleDelete() |
| 14494 | + ,Obj2::sampleDeserializationFeature() | |
| 14494 | 14495 | ,Obj2::sampleDict() |
| 14495 | 14496 | ,Obj2::sampleDictionary() |
| 14496 | 14497 | ,Obj2::sampleDidSet() |
| @@ -14534,7 +14535,6 @@ class Obj2 { | ||
| 14534 | 14535 | ,Obj2::sampleGet() |
| 14535 | 14536 | ,Obj2::sampleGlobal() |
| 14536 | 14537 | ,Obj2::sampleGo() |
| 14537 | - ,Obj2::sampleGoto() | |
| 14538 | 14538 | ,Obj2::sampleObj2False() |
| 14539 | 14539 | ); |
| 14540 | 14540 | } |
| @@ -16567,6 +16567,107 @@ class Delete { | ||
| 16567 | 16567 | } |
| 16568 | 16568 | } |
| 16569 | 16569 | |
| 16570 | +// This is an autogenerated file:DeserializationFeature | |
| 16571 | + | |
| 16572 | +class DeserializationFeature { | |
| 16573 | + private int $deserializationFeature; // json:DeserializationFeature Required | |
| 16574 | + | |
| 16575 | + /** | |
| 16576 | + * @param int $deserializationFeature | |
| 16577 | + */ | |
| 16578 | + public function __construct(int $deserializationFeature) { | |
| 16579 | + $this->deserializationFeature = $deserializationFeature; | |
| 16580 | + } | |
| 16581 | + | |
| 16582 | + /** | |
| 16583 | + * @param int $value | |
| 16584 | + * @throws Exception | |
| 16585 | + * @return int | |
| 16586 | + */ | |
| 16587 | + public static function fromDeserializationFeature(int $value): int { | |
| 16588 | + return $value; /*int*/ | |
| 16589 | + } | |
| 16590 | + | |
| 16591 | + /** | |
| 16592 | + * @throws Exception | |
| 16593 | + * @return int | |
| 16594 | + */ | |
| 16595 | + public function toDeserializationFeature(): int { | |
| 16596 | + if (DeserializationFeature::validateDeserializationFeature($this->deserializationFeature)) { | |
| 16597 | + return $this->deserializationFeature; /*int*/ | |
| 16598 | + } | |
| 16599 | + throw new Exception('never get to this DeserializationFeature::deserializationFeature'); | |
| 16600 | + } | |
| 16601 | + | |
| 16602 | + /** | |
| 16603 | + * @param int | |
| 16604 | + * @return bool | |
| 16605 | + * @throws Exception | |
| 16606 | + */ | |
| 16607 | + public static function validateDeserializationFeature(int $value): bool { | |
| 16608 | + return true; | |
| 16609 | + } | |
| 16610 | + | |
| 16611 | + /** | |
| 16612 | + * @throws Exception | |
| 16613 | + * @return int | |
| 16614 | + */ | |
| 16615 | + public function getDeserializationFeature(): int { | |
| 16616 | + if (DeserializationFeature::validateDeserializationFeature($this->deserializationFeature)) { | |
| 16617 | + return $this->deserializationFeature; | |
| 16618 | + } | |
| 16619 | + throw new Exception('never get to getDeserializationFeature DeserializationFeature::deserializationFeature'); | |
| 16620 | + } | |
| 16621 | + | |
| 16622 | + /** | |
| 16623 | + * @return int | |
| 16624 | + */ | |
| 16625 | + public static function sampleDeserializationFeature(): int { | |
| 16626 | + return 31; /*31:deserializationFeature*/ | |
| 16627 | + } | |
| 16628 | + | |
| 16629 | + /** | |
| 16630 | + * @throws Exception | |
| 16631 | + * @return bool | |
| 16632 | + */ | |
| 16633 | + public function validate(): bool { | |
| 16634 | + return DeserializationFeature::validateDeserializationFeature($this->deserializationFeature); | |
| 16635 | + } | |
| 16636 | + | |
| 16637 | + /** | |
| 16638 | + * @return stdClass | |
| 16639 | + * @throws Exception | |
| 16640 | + */ | |
| 16641 | + public function to(): stdClass { | |
| 16642 | + $out = new stdClass(); | |
| 16643 | + $out->{'DeserializationFeature'} = $this->toDeserializationFeature(); | |
| 16644 | + return $out; | |
| 16645 | + } | |
| 16646 | + | |
| 16647 | + /** | |
| 16648 | + * @param stdClass $obj | |
| 16649 | + * @return DeserializationFeature | |
| 16650 | + * @throws Exception | |
| 16651 | + */ | |
| 16652 | + public static function from(stdClass $obj): DeserializationFeature { | |
| 16653 | + if (!property_exists($obj, 'DeserializationFeature')) { | |
| 16654 | + throw new Exception("Missing required property"); | |
| 16655 | + } | |
| 16656 | + return new DeserializationFeature( | |
| 16657 | + DeserializationFeature::fromDeserializationFeature($obj->{'DeserializationFeature'}) | |
| 16658 | + ); | |
| 16659 | + } | |
| 16660 | + | |
| 16661 | + /** | |
| 16662 | + * @return DeserializationFeature | |
| 16663 | + */ | |
| 16664 | + public static function sample(): DeserializationFeature { | |
| 16665 | + return new DeserializationFeature( | |
| 16666 | + DeserializationFeature::sampleDeserializationFeature() | |
| 16667 | + ); | |
| 16668 | + } | |
| 16669 | +} | |
| 16670 | + | |
| 16570 | 16671 | // This is an autogenerated file:Dict |
| 16571 | 16672 | |
| 16572 | 16673 | class Dict { |
| @@ -20870,107 +20971,6 @@ class Go { | ||
| 20870 | 20971 | } |
| 20871 | 20972 | } |
| 20872 | 20973 | |
| 20873 | -// This is an autogenerated file:GotoClass | |
| 20874 | - | |
| 20875 | -class GotoClass { | |
| 20876 | - private int $goto; // json:goto Required | |
| 20877 | - | |
| 20878 | - /** | |
| 20879 | - * @param int $goto | |
| 20880 | - */ | |
| 20881 | - public function __construct(int $goto) { | |
| 20882 | - $this->goto = $goto; | |
| 20883 | - } | |
| 20884 | - | |
| 20885 | - /** | |
| 20886 | - * @param int $value | |
| 20887 | - * @throws Exception | |
| 20888 | - * @return int | |
| 20889 | - */ | |
| 20890 | - public static function fromGoto(int $value): int { | |
| 20891 | - return $value; /*int*/ | |
| 20892 | - } | |
| 20893 | - | |
| 20894 | - /** | |
| 20895 | - * @throws Exception | |
| 20896 | - * @return int | |
| 20897 | - */ | |
| 20898 | - public function toGoto(): int { | |
| 20899 | - if (GotoClass::validateGoto($this->goto)) { | |
| 20900 | - return $this->goto; /*int*/ | |
| 20901 | - } | |
| 20902 | - throw new Exception('never get to this GotoClass::goto'); | |
| 20903 | - } | |
| 20904 | - | |
| 20905 | - /** | |
| 20906 | - * @param int | |
| 20907 | - * @return bool | |
| 20908 | - * @throws Exception | |
| 20909 | - */ | |
| 20910 | - public static function validateGoto(int $value): bool { | |
| 20911 | - return true; | |
| 20912 | - } | |
| 20913 | - | |
| 20914 | - /** | |
| 20915 | - * @throws Exception | |
| 20916 | - * @return int | |
| 20917 | - */ | |
| 20918 | - public function getGoto(): int { | |
| 20919 | - if (GotoClass::validateGoto($this->goto)) { | |
| 20920 | - return $this->goto; | |
| 20921 | - } | |
| 20922 | - throw new Exception('never get to getGoto GotoClass::goto'); | |
| 20923 | - } | |
| 20924 | - | |
| 20925 | - /** | |
| 20926 | - * @return int | |
| 20927 | - */ | |
| 20928 | - public static function sampleGoto(): int { | |
| 20929 | - return 31; /*31:goto*/ | |
| 20930 | - } | |
| 20931 | - | |
| 20932 | - /** | |
| 20933 | - * @throws Exception | |
| 20934 | - * @return bool | |
| 20935 | - */ | |
| 20936 | - public function validate(): bool { | |
| 20937 | - return GotoClass::validateGoto($this->goto); | |
| 20938 | - } | |
| 20939 | - | |
| 20940 | - /** | |
| 20941 | - * @return stdClass | |
| 20942 | - * @throws Exception | |
| 20943 | - */ | |
| 20944 | - public function to(): stdClass { | |
| 20945 | - $out = new stdClass(); | |
| 20946 | - $out->{'goto'} = $this->toGoto(); | |
| 20947 | - return $out; | |
| 20948 | - } | |
| 20949 | - | |
| 20950 | - /** | |
| 20951 | - * @param stdClass $obj | |
| 20952 | - * @return GotoClass | |
| 20953 | - * @throws Exception | |
| 20954 | - */ | |
| 20955 | - public static function from(stdClass $obj): GotoClass { | |
| 20956 | - if (!property_exists($obj, 'goto')) { | |
| 20957 | - throw new Exception("Missing required property"); | |
| 20958 | - } | |
| 20959 | - return new GotoClass( | |
| 20960 | - GotoClass::fromGoto($obj->{'goto'}) | |
| 20961 | - ); | |
| 20962 | - } | |
| 20963 | - | |
| 20964 | - /** | |
| 20965 | - * @return GotoClass | |
| 20966 | - */ | |
| 20967 | - public static function sample(): GotoClass { | |
| 20968 | - return new GotoClass( | |
| 20969 | - GotoClass::sampleGoto() | |
| 20970 | - ); | |
| 20971 | - } | |
| 20972 | -} | |
| 20973 | - | |
| 20974 | 20974 | // This is an autogenerated file:Obj2False |
| 20975 | 20975 | |
| 20976 | 20976 | class Obj2False { |
| @@ -21076,6 +21076,7 @@ class Obj2False { | ||
| 21076 | 21076 | |
| 21077 | 21077 | class Obj3 { |
| 21078 | 21078 | private int $dummy; // json:dummy Required |
| 21079 | + private GotoClass $goto; // json:goto Required | |
| 21079 | 21080 | private Guard $guard; // json:guard Required |
| 21080 | 21081 | private HasOwnProperty $hasOwnProperty; // json:hasOwnProperty Required |
| 21081 | 21082 | private HashCode $hashCode; // json:hashCode Required |
| @@ -21139,10 +21140,10 @@ class Obj3 { | ||
| 21139 | 21140 | private Newtonsoft $newtonsoft; // json:newtonsoft Required |
| 21140 | 21141 | private Nil $nil; // json:nil Required |
| 21141 | 21142 | private No $no; // json:NO Required |
| 21142 | - private Noexcept $noexcept; // json:noexcept Required | |
| 21143 | 21143 | |
| 21144 | 21144 | /** |
| 21145 | 21145 | * @param int $dummy |
| 21146 | + * @param GotoClass $goto | |
| 21146 | 21147 | * @param Guard $guard |
| 21147 | 21148 | * @param HasOwnProperty $hasOwnProperty |
| 21148 | 21149 | * @param HashCode $hashCode |
| @@ -21206,10 +21207,10 @@ class Obj3 { | ||
| 21206 | 21207 | * @param Newtonsoft $newtonsoft |
| 21207 | 21208 | * @param Nil $nil |
| 21208 | 21209 | * @param No $no |
| 21209 | - * @param Noexcept $noexcept | |
| 21210 | 21210 | */ |
| 21211 | - public function __construct(int $dummy, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no, Noexcept $noexcept) { | |
| 21211 | + public function __construct(int $dummy, GotoClass $goto, Guard $guard, HasOwnProperty $hasOwnProperty, HashCode $hashCode, Hashable $hashable, Hasher $hasher, ID $id, IfClass $if, Imp $imp, ImplementsClass $implements, Implicit $implicit, Import $import, In $in, Indirect $indirect, Infix $infix, Init $init, Inline $inline, Inout $inout, InstanceofClass $instanceof, IntClass $int, InterfaceClass $interface, Internal $internal, Is $is, ISODateTimeOffsetConverter $isoDateTimeOffsetConverter, IterableClass $iterable, Jdec $jdec, Jenc $jenc, Jpipe $jpipe, JSON $json, JSONAny $jsonAny, JSONCodingKey $jsonCodingKey, JSONConverter $jsonConverter, JSONDecoder $jsonDecoder, JSONEncoder $jsonEncoder, JSONExceptionClass $jsonException, JSONGenerator $jsonGenerator, JSONNode $jsonNode, JSONNull $jsonNull, JSONParser $jsonParser, JSONReader $jsonReader, JSONSerializer $jsonSerializer, JSONToken $jsonToken, JSONTokenType $jsonTokenType, JSONWriter $jsonWriter, Lambda $lambda, Lazy $lazy, Left $left, Let $let, ListClass $list, LocaleClass $locale, Lock $lock, Long $long, Map $map, MapEntry $mapEntry, MetadataPropertyHandling $metadataPropertyHandling, Module $module, Mutable $mutable, Mutating $mutating, NamespaceClass $namespace, Native $native, NewClass $new, Newtonsoft $newtonsoft, Nil $nil, No $no) { | |
| 21212 | 21212 | $this->dummy = $dummy; |
| 21213 | + $this->goto = $goto; | |
| 21213 | 21214 | $this->guard = $guard; |
| 21214 | 21215 | $this->hasOwnProperty = $hasOwnProperty; |
| 21215 | 21216 | $this->hashCode = $hashCode; |
| @@ -21273,7 +21274,6 @@ class Obj3 { | ||
| 21273 | 21274 | $this->newtonsoft = $newtonsoft; |
| 21274 | 21275 | $this->nil = $nil; |
| 21275 | 21276 | $this->no = $no; |
| 21276 | - $this->noexcept = $noexcept; | |
| 21277 | 21277 | } |
| 21278 | 21278 | |
| 21279 | 21279 | /** |
| @@ -21323,6 +21323,54 @@ class Obj3 { | ||
| 21323 | 21323 | return 31; /*31:dummy*/ |
| 21324 | 21324 | } |
| 21325 | 21325 | |
| 21326 | + /** | |
| 21327 | + * @param stdClass $value | |
| 21328 | + * @throws Exception | |
| 21329 | + * @return GotoClass | |
| 21330 | + */ | |
| 21331 | + public static function fromGoto(stdClass $value): GotoClass { | |
| 21332 | + return GotoClass::from($value); /*class*/ | |
| 21333 | + } | |
| 21334 | + | |
| 21335 | + /** | |
| 21336 | + * @throws Exception | |
| 21337 | + * @return stdClass | |
| 21338 | + */ | |
| 21339 | + public function toGoto(): stdClass { | |
| 21340 | + if (Obj3::validateGoto($this->goto)) { | |
| 21341 | + return $this->goto->to(); /*class*/ | |
| 21342 | + } | |
| 21343 | + throw new Exception('never get to this Obj3::goto'); | |
| 21344 | + } | |
| 21345 | + | |
| 21346 | + /** | |
| 21347 | + * @param GotoClass | |
| 21348 | + * @return bool | |
| 21349 | + * @throws Exception | |
| 21350 | + */ | |
| 21351 | + public static function validateGoto(GotoClass $value): bool { | |
| 21352 | + $value->validate(); | |
| 21353 | + return true; | |
| 21354 | + } | |
| 21355 | + | |
| 21356 | + /** | |
| 21357 | + * @throws Exception | |
| 21358 | + * @return GotoClass | |
| 21359 | + */ | |
| 21360 | + public function getGoto(): GotoClass { | |
| 21361 | + if (Obj3::validateGoto($this->goto)) { | |
| 21362 | + return $this->goto; | |
| 21363 | + } | |
| 21364 | + throw new Exception('never get to getGoto Obj3::goto'); | |
| 21365 | + } | |
| 21366 | + | |
| 21367 | + /** | |
| 21368 | + * @return GotoClass | |
| 21369 | + */ | |
| 21370 | + public static function sampleGoto(): GotoClass { | |
| 21371 | + return GotoClass::sample(); /*32:goto*/ | |
| 21372 | + } | |
| 21373 | + | |
| 21326 | 21374 | /** |
| 21327 | 21375 | * @param stdClass $value |
| 21328 | 21376 | * @throws Exception |
| @@ -21368,7 +21416,7 @@ class Obj3 { | ||
| 21368 | 21416 | * @return Guard |
| 21369 | 21417 | */ |
| 21370 | 21418 | public static function sampleGuard(): Guard { |
| 21371 | - return Guard::sample(); /*32:guard*/ | |
| 21419 | + return Guard::sample(); /*33:guard*/ | |
| 21372 | 21420 | } |
| 21373 | 21421 | |
| 21374 | 21422 | /** |
| @@ -21416,7 +21464,7 @@ class Obj3 { | ||
| 21416 | 21464 | * @return HasOwnProperty |
| 21417 | 21465 | */ |
| 21418 | 21466 | public static function sampleHasOwnProperty(): HasOwnProperty { |
| 21419 | - return HasOwnProperty::sample(); /*33:hasOwnProperty*/ | |
| 21467 | + return HasOwnProperty::sample(); /*34:hasOwnProperty*/ | |
| 21420 | 21468 | } |
| 21421 | 21469 | |
| 21422 | 21470 | /** |
| @@ -21464,7 +21512,7 @@ class Obj3 { | ||
| 21464 | 21512 | * @return HashCode |
| 21465 | 21513 | */ |
| 21466 | 21514 | public static function sampleHashCode(): HashCode { |
| 21467 | - return HashCode::sample(); /*34:hashCode*/ | |
| 21515 | + return HashCode::sample(); /*35:hashCode*/ | |
| 21468 | 21516 | } |
| 21469 | 21517 | |
| 21470 | 21518 | /** |
| @@ -21512,7 +21560,7 @@ class Obj3 { | ||
| 21512 | 21560 | * @return Hashable |
| 21513 | 21561 | */ |
| 21514 | 21562 | public static function sampleHashable(): Hashable { |
| 21515 | - return Hashable::sample(); /*35:hashable*/ | |
| 21563 | + return Hashable::sample(); /*36:hashable*/ | |
| 21516 | 21564 | } |
| 21517 | 21565 | |
| 21518 | 21566 | /** |
| @@ -21560,7 +21608,7 @@ class Obj3 { | ||
| 21560 | 21608 | * @return Hasher |
| 21561 | 21609 | */ |
| 21562 | 21610 | public static function sampleHasher(): Hasher { |
| 21563 | - return Hasher::sample(); /*36:hasher*/ | |
| 21611 | + return Hasher::sample(); /*37:hasher*/ | |
| 21564 | 21612 | } |
| 21565 | 21613 | |
| 21566 | 21614 | /** |
| @@ -21608,7 +21656,7 @@ class Obj3 { | ||
| 21608 | 21656 | * @return ID |
| 21609 | 21657 | */ |
| 21610 | 21658 | public static function sampleID(): ID { |
| 21611 | - return ID::sample(); /*37:id*/ | |
| 21659 | + return ID::sample(); /*38:id*/ | |
| 21612 | 21660 | } |
| 21613 | 21661 | |
| 21614 | 21662 | /** |
| @@ -21656,7 +21704,7 @@ class Obj3 { | ||
| 21656 | 21704 | * @return IfClass |
| 21657 | 21705 | */ |
| 21658 | 21706 | public static function sampleIf(): IfClass { |
| 21659 | - return IfClass::sample(); /*38:if*/ | |
| 21707 | + return IfClass::sample(); /*39:if*/ | |
| 21660 | 21708 | } |
| 21661 | 21709 | |
| 21662 | 21710 | /** |
| @@ -21704,7 +21752,7 @@ class Obj3 { | ||
| 21704 | 21752 | * @return Imp |
| 21705 | 21753 | */ |
| 21706 | 21754 | public static function sampleImp(): Imp { |
| 21707 | - return Imp::sample(); /*39:imp*/ | |
| 21755 | + return Imp::sample(); /*40:imp*/ | |
| 21708 | 21756 | } |
| 21709 | 21757 | |
| 21710 | 21758 | /** |
| @@ -21752,7 +21800,7 @@ class Obj3 { | ||
| 21752 | 21800 | * @return ImplementsClass |
| 21753 | 21801 | */ |
| 21754 | 21802 | public static function sampleImplements(): ImplementsClass { |
| 21755 | - return ImplementsClass::sample(); /*40:implements*/ | |
| 21803 | + return ImplementsClass::sample(); /*41:implements*/ | |
| 21756 | 21804 | } |
| 21757 | 21805 | |
| 21758 | 21806 | /** |
| @@ -21800,7 +21848,7 @@ class Obj3 { | ||
| 21800 | 21848 | * @return Implicit |
| 21801 | 21849 | */ |
| 21802 | 21850 | public static function sampleImplicit(): Implicit { |
| 21803 | - return Implicit::sample(); /*41:implicit*/ | |
| 21851 | + return Implicit::sample(); /*42:implicit*/ | |
| 21804 | 21852 | } |
| 21805 | 21853 | |
| 21806 | 21854 | /** |
| @@ -21848,7 +21896,7 @@ class Obj3 { | ||
| 21848 | 21896 | * @return Import |
| 21849 | 21897 | */ |
| 21850 | 21898 | public static function sampleImport(): Import { |
| 21851 | - return Import::sample(); /*42:import*/ | |
| 21899 | + return Import::sample(); /*43:import*/ | |
| 21852 | 21900 | } |
| 21853 | 21901 | |
| 21854 | 21902 | /** |
| @@ -21896,7 +21944,7 @@ class Obj3 { | ||
| 21896 | 21944 | * @return In |
| 21897 | 21945 | */ |
| 21898 | 21946 | public static function sampleIn(): In { |
| 21899 | - return In::sample(); /*43:in*/ | |
| 21947 | + return In::sample(); /*44:in*/ | |
| 21900 | 21948 | } |
| 21901 | 21949 | |
| 21902 | 21950 | /** |
| @@ -21944,7 +21992,7 @@ class Obj3 { | ||
| 21944 | 21992 | * @return Indirect |
| 21945 | 21993 | */ |
| 21946 | 21994 | public static function sampleIndirect(): Indirect { |
| 21947 | - return Indirect::sample(); /*44:indirect*/ | |
| 21995 | + return Indirect::sample(); /*45:indirect*/ | |
| 21948 | 21996 | } |
| 21949 | 21997 | |
| 21950 | 21998 | /** |
| @@ -21992,7 +22040,7 @@ class Obj3 { | ||
| 21992 | 22040 | * @return Infix |
| 21993 | 22041 | */ |
| 21994 | 22042 | public static function sampleInfix(): Infix { |
| 21995 | - return Infix::sample(); /*45:infix*/ | |
| 22043 | + return Infix::sample(); /*46:infix*/ | |
| 21996 | 22044 | } |
| 21997 | 22045 | |
| 21998 | 22046 | /** |
| @@ -22040,7 +22088,7 @@ class Obj3 { | ||
| 22040 | 22088 | * @return Init |
| 22041 | 22089 | */ |
| 22042 | 22090 | public static function sampleInit(): Init { |
| 22043 | - return Init::sample(); /*46:init*/ | |
| 22091 | + return Init::sample(); /*47:init*/ | |
| 22044 | 22092 | } |
| 22045 | 22093 | |
| 22046 | 22094 | /** |
| @@ -22088,7 +22136,7 @@ class Obj3 { | ||
| 22088 | 22136 | * @return Inline |
| 22089 | 22137 | */ |
| 22090 | 22138 | public static function sampleInline(): Inline { |
| 22091 | - return Inline::sample(); /*47:inline*/ | |
| 22139 | + return Inline::sample(); /*48:inline*/ | |
| 22092 | 22140 | } |
| 22093 | 22141 | |
| 22094 | 22142 | /** |
| @@ -22136,7 +22184,7 @@ class Obj3 { | ||
| 22136 | 22184 | * @return Inout |
| 22137 | 22185 | */ |
| 22138 | 22186 | public static function sampleInout(): Inout { |
| 22139 | - return Inout::sample(); /*48:inout*/ | |
| 22187 | + return Inout::sample(); /*49:inout*/ | |
| 22140 | 22188 | } |
| 22141 | 22189 | |
| 22142 | 22190 | /** |
| @@ -22184,7 +22232,7 @@ class Obj3 { | ||
| 22184 | 22232 | * @return InstanceofClass |
| 22185 | 22233 | */ |
| 22186 | 22234 | public static function sampleInstanceof(): InstanceofClass { |
| 22187 | - return InstanceofClass::sample(); /*49:instanceof*/ | |
| 22235 | + return InstanceofClass::sample(); /*50:instanceof*/ | |
| 22188 | 22236 | } |
| 22189 | 22237 | |
| 22190 | 22238 | /** |
| @@ -22232,7 +22280,7 @@ class Obj3 { | ||
| 22232 | 22280 | * @return IntClass |
| 22233 | 22281 | */ |
| 22234 | 22282 | public static function sampleInt(): IntClass { |
| 22235 | - return IntClass::sample(); /*50:int*/ | |
| 22283 | + return IntClass::sample(); /*51:int*/ | |
| 22236 | 22284 | } |
| 22237 | 22285 | |
| 22238 | 22286 | /** |
| @@ -22280,7 +22328,7 @@ class Obj3 { | ||
| 22280 | 22328 | * @return InterfaceClass |
| 22281 | 22329 | */ |
| 22282 | 22330 | public static function sampleInterface(): InterfaceClass { |
| 22283 | - return InterfaceClass::sample(); /*51:interface*/ | |
| 22331 | + return InterfaceClass::sample(); /*52:interface*/ | |
| 22284 | 22332 | } |
| 22285 | 22333 | |
| 22286 | 22334 | /** |
| @@ -22328,7 +22376,7 @@ class Obj3 { | ||
| 22328 | 22376 | * @return Internal |
| 22329 | 22377 | */ |
| 22330 | 22378 | public static function sampleInternal(): Internal { |
| 22331 | - return Internal::sample(); /*52:internal*/ | |
| 22379 | + return Internal::sample(); /*53:internal*/ | |
| 22332 | 22380 | } |
| 22333 | 22381 | |
| 22334 | 22382 | /** |
| @@ -22376,7 +22424,7 @@ class Obj3 { | ||
| 22376 | 22424 | * @return Is |
| 22377 | 22425 | */ |
| 22378 | 22426 | public static function sampleIs(): Is { |
| 22379 | - return Is::sample(); /*53:is*/ | |
| 22427 | + return Is::sample(); /*54:is*/ | |
| 22380 | 22428 | } |
| 22381 | 22429 | |
| 22382 | 22430 | /** |
| @@ -22424,7 +22472,7 @@ class Obj3 { | ||
| 22424 | 22472 | * @return ISODateTimeOffsetConverter |
| 22425 | 22473 | */ |
| 22426 | 22474 | public static function sampleISODateTimeOffsetConverter(): ISODateTimeOffsetConverter { |
| 22427 | - return ISODateTimeOffsetConverter::sample(); /*54:isoDateTimeOffsetConverter*/ | |
| 22475 | + return ISODateTimeOffsetConverter::sample(); /*55:isoDateTimeOffsetConverter*/ | |
| 22428 | 22476 | } |
| 22429 | 22477 | |
| 22430 | 22478 | /** |
| @@ -22472,7 +22520,7 @@ class Obj3 { | ||
| 22472 | 22520 | * @return IterableClass |
| 22473 | 22521 | */ |
| 22474 | 22522 | public static function sampleIterable(): IterableClass { |
| 22475 | - return IterableClass::sample(); /*55:iterable*/ | |
| 22523 | + return IterableClass::sample(); /*56:iterable*/ | |
| 22476 | 22524 | } |
| 22477 | 22525 | |
| 22478 | 22526 | /** |
| @@ -22520,7 +22568,7 @@ class Obj3 { | ||
| 22520 | 22568 | * @return Jdec |
| 22521 | 22569 | */ |
| 22522 | 22570 | public static function sampleJdec(): Jdec { |
| 22523 | - return Jdec::sample(); /*56:jdec*/ | |
| 22571 | + return Jdec::sample(); /*57:jdec*/ | |
| 22524 | 22572 | } |
| 22525 | 22573 | |
| 22526 | 22574 | /** |
| @@ -22568,7 +22616,7 @@ class Obj3 { | ||
| 22568 | 22616 | * @return Jenc |
| 22569 | 22617 | */ |
| 22570 | 22618 | public static function sampleJenc(): Jenc { |
| 22571 | - return Jenc::sample(); /*57:jenc*/ | |
| 22619 | + return Jenc::sample(); /*58:jenc*/ | |
| 22572 | 22620 | } |
| 22573 | 22621 | |
| 22574 | 22622 | /** |
| @@ -22616,7 +22664,7 @@ class Obj3 { | ||
| 22616 | 22664 | * @return Jpipe |
| 22617 | 22665 | */ |
| 22618 | 22666 | public static function sampleJpipe(): Jpipe { |
| 22619 | - return Jpipe::sample(); /*58:jpipe*/ | |
| 22667 | + return Jpipe::sample(); /*59:jpipe*/ | |
| 22620 | 22668 | } |
| 22621 | 22669 | |
| 22622 | 22670 | /** |
| @@ -22664,7 +22712,7 @@ class Obj3 { | ||
| 22664 | 22712 | * @return JSON |
| 22665 | 22713 | */ |
| 22666 | 22714 | public static function sampleJSON(): JSON { |
| 22667 | - return JSON::sample(); /*59:json*/ | |
| 22715 | + return JSON::sample(); /*60:json*/ | |
| 22668 | 22716 | } |
| 22669 | 22717 | |
| 22670 | 22718 | /** |
| @@ -22712,7 +22760,7 @@ class Obj3 { | ||
| 22712 | 22760 | * @return JSONAny |
| 22713 | 22761 | */ |
| 22714 | 22762 | public static function sampleJSONAny(): JSONAny { |
| 22715 | - return JSONAny::sample(); /*60:jsonAny*/ | |
| 22763 | + return JSONAny::sample(); /*61:jsonAny*/ | |
| 22716 | 22764 | } |
| 22717 | 22765 | |
| 22718 | 22766 | /** |
| @@ -22760,7 +22808,7 @@ class Obj3 { | ||
| 22760 | 22808 | * @return JSONCodingKey |
| 22761 | 22809 | */ |
| 22762 | 22810 | public static function sampleJSONCodingKey(): JSONCodingKey { |
| 22763 | - return JSONCodingKey::sample(); /*61:jsonCodingKey*/ | |
| 22811 | + return JSONCodingKey::sample(); /*62:jsonCodingKey*/ | |
| 22764 | 22812 | } |
| 22765 | 22813 | |
| 22766 | 22814 | /** |
| @@ -22808,7 +22856,7 @@ class Obj3 { | ||
| 22808 | 22856 | * @return JSONConverter |
| 22809 | 22857 | */ |
| 22810 | 22858 | public static function sampleJSONConverter(): JSONConverter { |
| 22811 | - return JSONConverter::sample(); /*62:jsonConverter*/ | |
| 22859 | + return JSONConverter::sample(); /*63:jsonConverter*/ | |
| 22812 | 22860 | } |
| 22813 | 22861 | |
| 22814 | 22862 | /** |
| @@ -22856,7 +22904,7 @@ class Obj3 { | ||
| 22856 | 22904 | * @return JSONDecoder |
| 22857 | 22905 | */ |
| 22858 | 22906 | public static function sampleJSONDecoder(): JSONDecoder { |
| 22859 | - return JSONDecoder::sample(); /*63:jsonDecoder*/ | |
| 22907 | + return JSONDecoder::sample(); /*64:jsonDecoder*/ | |
| 22860 | 22908 | } |
| 22861 | 22909 | |
| 22862 | 22910 | /** |
| @@ -22904,7 +22952,7 @@ class Obj3 { | ||
| 22904 | 22952 | * @return JSONEncoder |
| 22905 | 22953 | */ |
| 22906 | 22954 | public static function sampleJSONEncoder(): JSONEncoder { |
| 22907 | - return JSONEncoder::sample(); /*64:jsonEncoder*/ | |
| 22955 | + return JSONEncoder::sample(); /*65:jsonEncoder*/ | |
| 22908 | 22956 | } |
| 22909 | 22957 | |
| 22910 | 22958 | /** |
| @@ -22952,7 +23000,7 @@ class Obj3 { | ||
| 22952 | 23000 | * @return JSONExceptionClass |
| 22953 | 23001 | */ |
| 22954 | 23002 | public static function sampleJSONException(): JSONExceptionClass { |
| 22955 | - return JSONExceptionClass::sample(); /*65:jsonException*/ | |
| 23003 | + return JSONExceptionClass::sample(); /*66:jsonException*/ | |
| 22956 | 23004 | } |
| 22957 | 23005 | |
| 22958 | 23006 | /** |
| @@ -23000,7 +23048,7 @@ class Obj3 { | ||
| 23000 | 23048 | * @return JSONGenerator |
| 23001 | 23049 | */ |
| 23002 | 23050 | public static function sampleJSONGenerator(): JSONGenerator { |
| 23003 | - return JSONGenerator::sample(); /*66:jsonGenerator*/ | |
| 23051 | + return JSONGenerator::sample(); /*67:jsonGenerator*/ | |
| 23004 | 23052 | } |
| 23005 | 23053 | |
| 23006 | 23054 | /** |
| @@ -23048,7 +23096,7 @@ class Obj3 { | ||
| 23048 | 23096 | * @return JSONNode |
| 23049 | 23097 | */ |
| 23050 | 23098 | public static function sampleJSONNode(): JSONNode { |
| 23051 | - return JSONNode::sample(); /*67:jsonNode*/ | |
| 23099 | + return JSONNode::sample(); /*68:jsonNode*/ | |
| 23052 | 23100 | } |
| 23053 | 23101 | |
| 23054 | 23102 | /** |
| @@ -23096,7 +23144,7 @@ class Obj3 { | ||
| 23096 | 23144 | * @return JSONNull |
| 23097 | 23145 | */ |
| 23098 | 23146 | public static function sampleJSONNull(): JSONNull { |
| 23099 | - return JSONNull::sample(); /*68:jsonNull*/ | |
| 23147 | + return JSONNull::sample(); /*69:jsonNull*/ | |
| 23100 | 23148 | } |
| 23101 | 23149 | |
| 23102 | 23150 | /** |
| @@ -23144,7 +23192,7 @@ class Obj3 { | ||
| 23144 | 23192 | * @return JSONParser |
| 23145 | 23193 | */ |
| 23146 | 23194 | public static function sampleJSONParser(): JSONParser { |
| 23147 | - return JSONParser::sample(); /*69:jsonParser*/ | |
| 23195 | + return JSONParser::sample(); /*70:jsonParser*/ | |
| 23148 | 23196 | } |
| 23149 | 23197 | |
| 23150 | 23198 | /** |
| @@ -23192,7 +23240,7 @@ class Obj3 { | ||
| 23192 | 23240 | * @return JSONReader |
| 23193 | 23241 | */ |
| 23194 | 23242 | public static function sampleJSONReader(): JSONReader { |
| 23195 | - return JSONReader::sample(); /*70:jsonReader*/ | |
| 23243 | + return JSONReader::sample(); /*71:jsonReader*/ | |
| 23196 | 23244 | } |
| 23197 | 23245 | |
| 23198 | 23246 | /** |
| @@ -23240,7 +23288,7 @@ class Obj3 { | ||
| 23240 | 23288 | * @return JSONSerializer |
| 23241 | 23289 | */ |
| 23242 | 23290 | public static function sampleJSONSerializer(): JSONSerializer { |
| 23243 | - return JSONSerializer::sample(); /*71:jsonSerializer*/ | |
| 23291 | + return JSONSerializer::sample(); /*72:jsonSerializer*/ | |
| 23244 | 23292 | } |
| 23245 | 23293 | |
| 23246 | 23294 | /** |
| @@ -23288,7 +23336,7 @@ class Obj3 { | ||
| 23288 | 23336 | * @return JSONToken |
| 23289 | 23337 | */ |
| 23290 | 23338 | public static function sampleJSONToken(): JSONToken { |
| 23291 | - return JSONToken::sample(); /*72:jsonToken*/ | |
| 23339 | + return JSONToken::sample(); /*73:jsonToken*/ | |
| 23292 | 23340 | } |
| 23293 | 23341 | |
| 23294 | 23342 | /** |
| @@ -23336,7 +23384,7 @@ class Obj3 { | ||
| 23336 | 23384 | * @return JSONTokenType |
| 23337 | 23385 | */ |
| 23338 | 23386 | public static function sampleJSONTokenType(): JSONTokenType { |
| 23339 | - return JSONTokenType::sample(); /*73:jsonTokenType*/ | |
| 23387 | + return JSONTokenType::sample(); /*74:jsonTokenType*/ | |
| 23340 | 23388 | } |
| 23341 | 23389 | |
| 23342 | 23390 | /** |
| @@ -23384,7 +23432,7 @@ class Obj3 { | ||
| 23384 | 23432 | * @return JSONWriter |
| 23385 | 23433 | */ |
| 23386 | 23434 | public static function sampleJSONWriter(): JSONWriter { |
| 23387 | - return JSONWriter::sample(); /*74:jsonWriter*/ | |
| 23435 | + return JSONWriter::sample(); /*75:jsonWriter*/ | |
| 23388 | 23436 | } |
| 23389 | 23437 | |
| 23390 | 23438 | /** |
| @@ -23432,7 +23480,7 @@ class Obj3 { | ||
| 23432 | 23480 | * @return Lambda |
| 23433 | 23481 | */ |
| 23434 | 23482 | public static function sampleLambda(): Lambda { |
| 23435 | - return Lambda::sample(); /*75:lambda*/ | |
| 23483 | + return Lambda::sample(); /*76:lambda*/ | |
| 23436 | 23484 | } |
| 23437 | 23485 | |
| 23438 | 23486 | /** |
| @@ -23480,7 +23528,7 @@ class Obj3 { | ||
| 23480 | 23528 | * @return Lazy |
| 23481 | 23529 | */ |
| 23482 | 23530 | public static function sampleLazy(): Lazy { |
| 23483 | - return Lazy::sample(); /*76:lazy*/ | |
| 23531 | + return Lazy::sample(); /*77:lazy*/ | |
| 23484 | 23532 | } |
| 23485 | 23533 | |
| 23486 | 23534 | /** |
| @@ -23528,7 +23576,7 @@ class Obj3 { | ||
| 23528 | 23576 | * @return Left |
| 23529 | 23577 | */ |
| 23530 | 23578 | public static function sampleLeft(): Left { |
| 23531 | - return Left::sample(); /*77:left*/ | |
| 23579 | + return Left::sample(); /*78:left*/ | |
| 23532 | 23580 | } |
| 23533 | 23581 | |
| 23534 | 23582 | /** |
| @@ -23576,7 +23624,7 @@ class Obj3 { | ||
| 23576 | 23624 | * @return Let |
| 23577 | 23625 | */ |
| 23578 | 23626 | public static function sampleLet(): Let { |
| 23579 | - return Let::sample(); /*78:let*/ | |
| 23627 | + return Let::sample(); /*79:let*/ | |
| 23580 | 23628 | } |
| 23581 | 23629 | |
| 23582 | 23630 | /** |
| @@ -23624,7 +23672,7 @@ class Obj3 { | ||
| 23624 | 23672 | * @return ListClass |
| 23625 | 23673 | */ |
| 23626 | 23674 | public static function sampleList(): ListClass { |
| 23627 | - return ListClass::sample(); /*79:list*/ | |
| 23675 | + return ListClass::sample(); /*80:list*/ | |
| 23628 | 23676 | } |
| 23629 | 23677 | |
| 23630 | 23678 | /** |
| @@ -23672,7 +23720,7 @@ class Obj3 { | ||
| 23672 | 23720 | * @return LocaleClass |
| 23673 | 23721 | */ |
| 23674 | 23722 | public static function sampleLocale(): LocaleClass { |
| 23675 | - return LocaleClass::sample(); /*80:locale*/ | |
| 23723 | + return LocaleClass::sample(); /*81:locale*/ | |
| 23676 | 23724 | } |
| 23677 | 23725 | |
| 23678 | 23726 | /** |
| @@ -23720,7 +23768,7 @@ class Obj3 { | ||
| 23720 | 23768 | * @return Lock |
| 23721 | 23769 | */ |
| 23722 | 23770 | public static function sampleLock(): Lock { |
| 23723 | - return Lock::sample(); /*81:lock*/ | |
| 23771 | + return Lock::sample(); /*82:lock*/ | |
| 23724 | 23772 | } |
| 23725 | 23773 | |
| 23726 | 23774 | /** |
| @@ -23768,7 +23816,7 @@ class Obj3 { | ||
| 23768 | 23816 | * @return Long |
| 23769 | 23817 | */ |
| 23770 | 23818 | public static function sampleLong(): Long { |
| 23771 | - return Long::sample(); /*82:long*/ | |
| 23819 | + return Long::sample(); /*83:long*/ | |
| 23772 | 23820 | } |
| 23773 | 23821 | |
| 23774 | 23822 | /** |
| @@ -23816,7 +23864,7 @@ class Obj3 { | ||
| 23816 | 23864 | * @return Map |
| 23817 | 23865 | */ |
| 23818 | 23866 | public static function sampleMap(): Map { |
| 23819 | - return Map::sample(); /*83:map*/ | |
| 23867 | + return Map::sample(); /*84:map*/ | |
| 23820 | 23868 | } |
| 23821 | 23869 | |
| 23822 | 23870 | /** |
| @@ -23864,7 +23912,7 @@ class Obj3 { | ||
| 23864 | 23912 | * @return MapEntry |
| 23865 | 23913 | */ |
| 23866 | 23914 | public static function sampleMapEntry(): MapEntry { |
| 23867 | - return MapEntry::sample(); /*84:mapEntry*/ | |
| 23915 | + return MapEntry::sample(); /*85:mapEntry*/ | |
| 23868 | 23916 | } |
| 23869 | 23917 | |
| 23870 | 23918 | /** |
| @@ -23912,7 +23960,7 @@ class Obj3 { | ||
| 23912 | 23960 | * @return MetadataPropertyHandling |
| 23913 | 23961 | */ |
| 23914 | 23962 | public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling { |
| 23915 | - return MetadataPropertyHandling::sample(); /*85:metadataPropertyHandling*/ | |
| 23963 | + return MetadataPropertyHandling::sample(); /*86:metadataPropertyHandling*/ | |
| 23916 | 23964 | } |
| 23917 | 23965 | |
| 23918 | 23966 | /** |
| @@ -23960,7 +24008,7 @@ class Obj3 { | ||
| 23960 | 24008 | * @return Module |
| 23961 | 24009 | */ |
| 23962 | 24010 | public static function sampleModule(): Module { |
| 23963 | - return Module::sample(); /*86:module*/ | |
| 24011 | + return Module::sample(); /*87:module*/ | |
| 23964 | 24012 | } |
| 23965 | 24013 | |
| 23966 | 24014 | /** |
| @@ -24008,7 +24056,7 @@ class Obj3 { | ||
| 24008 | 24056 | * @return Mutable |
| 24009 | 24057 | */ |
| 24010 | 24058 | public static function sampleMutable(): Mutable { |
| 24011 | - return Mutable::sample(); /*87:mutable*/ | |
| 24059 | + return Mutable::sample(); /*88:mutable*/ | |
| 24012 | 24060 | } |
| 24013 | 24061 | |
| 24014 | 24062 | /** |
| @@ -24056,7 +24104,7 @@ class Obj3 { | ||
| 24056 | 24104 | * @return Mutating |
| 24057 | 24105 | */ |
| 24058 | 24106 | public static function sampleMutating(): Mutating { |
| 24059 | - return Mutating::sample(); /*88:mutating*/ | |
| 24107 | + return Mutating::sample(); /*89:mutating*/ | |
| 24060 | 24108 | } |
| 24061 | 24109 | |
| 24062 | 24110 | /** |
| @@ -24104,7 +24152,7 @@ class Obj3 { | ||
| 24104 | 24152 | * @return NamespaceClass |
| 24105 | 24153 | */ |
| 24106 | 24154 | public static function sampleNamespace(): NamespaceClass { |
| 24107 | - return NamespaceClass::sample(); /*89:namespace*/ | |
| 24155 | + return NamespaceClass::sample(); /*90:namespace*/ | |
| 24108 | 24156 | } |
| 24109 | 24157 | |
| 24110 | 24158 | /** |
| @@ -24152,7 +24200,7 @@ class Obj3 { | ||
| 24152 | 24200 | * @return Native |
| 24153 | 24201 | */ |
| 24154 | 24202 | public static function sampleNative(): Native { |
| 24155 | - return Native::sample(); /*90:native*/ | |
| 24203 | + return Native::sample(); /*91:native*/ | |
| 24156 | 24204 | } |
| 24157 | 24205 | |
| 24158 | 24206 | /** |
| @@ -24200,7 +24248,7 @@ class Obj3 { | ||
| 24200 | 24248 | * @return NewClass |
| 24201 | 24249 | */ |
| 24202 | 24250 | public static function sampleNew(): NewClass { |
| 24203 | - return NewClass::sample(); /*91:new*/ | |
| 24251 | + return NewClass::sample(); /*92:new*/ | |
| 24204 | 24252 | } |
| 24205 | 24253 | |
| 24206 | 24254 | /** |
| @@ -24248,7 +24296,7 @@ class Obj3 { | ||
| 24248 | 24296 | * @return Newtonsoft |
| 24249 | 24297 | */ |
| 24250 | 24298 | public static function sampleNewtonsoft(): Newtonsoft { |
| 24251 | - return Newtonsoft::sample(); /*92:newtonsoft*/ | |
| 24299 | + return Newtonsoft::sample(); /*93:newtonsoft*/ | |
| 24252 | 24300 | } |
| 24253 | 24301 | |
| 24254 | 24302 | /** |
| @@ -24296,7 +24344,7 @@ class Obj3 { | ||
| 24296 | 24344 | * @return Nil |
| 24297 | 24345 | */ |
| 24298 | 24346 | public static function sampleNil(): Nil { |
| 24299 | - return Nil::sample(); /*93:nil*/ | |
| 24347 | + return Nil::sample(); /*94:nil*/ | |
| 24300 | 24348 | } |
| 24301 | 24349 | |
| 24302 | 24350 | /** |
| @@ -24344,55 +24392,7 @@ class Obj3 { | ||
| 24344 | 24392 | * @return No |
| 24345 | 24393 | */ |
| 24346 | 24394 | public static function sampleNo(): No { |
| 24347 | - return No::sample(); /*94:no*/ | |
| 24348 | - } | |
| 24349 | - | |
| 24350 | - /** | |
| 24351 | - * @param stdClass $value | |
| 24352 | - * @throws Exception | |
| 24353 | - * @return Noexcept | |
| 24354 | - */ | |
| 24355 | - public static function fromNoexcept(stdClass $value): Noexcept { | |
| 24356 | - return Noexcept::from($value); /*class*/ | |
| 24357 | - } | |
| 24358 | - | |
| 24359 | - /** | |
| 24360 | - * @throws Exception | |
| 24361 | - * @return stdClass | |
| 24362 | - */ | |
| 24363 | - public function toNoexcept(): stdClass { | |
| 24364 | - if (Obj3::validateNoexcept($this->noexcept)) { | |
| 24365 | - return $this->noexcept->to(); /*class*/ | |
| 24366 | - } | |
| 24367 | - throw new Exception('never get to this Obj3::noexcept'); | |
| 24368 | - } | |
| 24369 | - | |
| 24370 | - /** | |
| 24371 | - * @param Noexcept | |
| 24372 | - * @return bool | |
| 24373 | - * @throws Exception | |
| 24374 | - */ | |
| 24375 | - public static function validateNoexcept(Noexcept $value): bool { | |
| 24376 | - $value->validate(); | |
| 24377 | - return true; | |
| 24378 | - } | |
| 24379 | - | |
| 24380 | - /** | |
| 24381 | - * @throws Exception | |
| 24382 | - * @return Noexcept | |
| 24383 | - */ | |
| 24384 | - public function getNoexcept(): Noexcept { | |
| 24385 | - if (Obj3::validateNoexcept($this->noexcept)) { | |
| 24386 | - return $this->noexcept; | |
| 24387 | - } | |
| 24388 | - throw new Exception('never get to getNoexcept Obj3::noexcept'); | |
| 24389 | - } | |
| 24390 | - | |
| 24391 | - /** | |
| 24392 | - * @return Noexcept | |
| 24393 | - */ | |
| 24394 | - public static function sampleNoexcept(): Noexcept { | |
| 24395 | - return Noexcept::sample(); /*95:noexcept*/ | |
| 24395 | + return No::sample(); /*95:no*/ | |
| 24396 | 24396 | } |
| 24397 | 24397 | |
| 24398 | 24398 | /** |
| @@ -24401,6 +24401,7 @@ class Obj3 { | ||
| 24401 | 24401 | */ |
| 24402 | 24402 | public function validate(): bool { |
| 24403 | 24403 | return Obj3::validateDummy($this->dummy) |
| 24404 | + || Obj3::validateGoto($this->goto) | |
| 24404 | 24405 | || Obj3::validateGuard($this->guard) |
| 24405 | 24406 | || Obj3::validateHasOwnProperty($this->hasOwnProperty) |
| 24406 | 24407 | || Obj3::validateHashCode($this->hashCode) |
| @@ -24463,8 +24464,7 @@ class Obj3 { | ||
| 24463 | 24464 | || Obj3::validateNew($this->new) |
| 24464 | 24465 | || Obj3::validateNewtonsoft($this->newtonsoft) |
| 24465 | 24466 | || Obj3::validateNil($this->nil) |
| 24466 | - || Obj3::validateNo($this->no) | |
| 24467 | - || Obj3::validateNoexcept($this->noexcept); | |
| 24467 | + || Obj3::validateNo($this->no); | |
| 24468 | 24468 | } |
| 24469 | 24469 | |
| 24470 | 24470 | /** |
| @@ -24474,6 +24474,7 @@ class Obj3 { | ||
| 24474 | 24474 | public function to(): stdClass { |
| 24475 | 24475 | $out = new stdClass(); |
| 24476 | 24476 | $out->{'dummy'} = $this->toDummy(); |
| 24477 | + $out->{'goto'} = $this->toGoto(); | |
| 24477 | 24478 | $out->{'guard'} = $this->toGuard(); |
| 24478 | 24479 | $out->{'hasOwnProperty'} = $this->toHasOwnProperty(); |
| 24479 | 24480 | $out->{'hashCode'} = $this->toHashCode(); |
| @@ -24537,7 +24538,6 @@ class Obj3 { | ||
| 24537 | 24538 | $out->{'newtonsoft'} = $this->toNewtonsoft(); |
| 24538 | 24539 | $out->{'nil'} = $this->toNil(); |
| 24539 | 24540 | $out->{'NO'} = $this->toNo(); |
| 24540 | - $out->{'noexcept'} = $this->toNoexcept(); | |
| 24541 | 24541 | return $out; |
| 24542 | 24542 | } |
| 24543 | 24543 | |
| @@ -24550,6 +24550,9 @@ class Obj3 { | ||
| 24550 | 24550 | if (!property_exists($obj, 'dummy')) { |
| 24551 | 24551 | throw new Exception("Missing required property"); |
| 24552 | 24552 | } |
| 24553 | + if (!property_exists($obj, 'goto')) { | |
| 24554 | + throw new Exception("Missing required property"); | |
| 24555 | + } | |
| 24553 | 24556 | if (!property_exists($obj, 'guard')) { |
| 24554 | 24557 | throw new Exception("Missing required property"); |
| 24555 | 24558 | } |
| @@ -24739,11 +24742,9 @@ class Obj3 { | ||
| 24739 | 24742 | if (!property_exists($obj, 'NO')) { |
| 24740 | 24743 | throw new Exception("Missing required property"); |
| 24741 | 24744 | } |
| 24742 | - if (!property_exists($obj, 'noexcept')) { | |
| 24743 | - throw new Exception("Missing required property"); | |
| 24744 | - } | |
| 24745 | 24745 | return new Obj3( |
| 24746 | 24746 | Obj3::fromDummy($obj->{'dummy'}) |
| 24747 | + ,Obj3::fromGoto($obj->{'goto'}) | |
| 24747 | 24748 | ,Obj3::fromGuard($obj->{'guard'}) |
| 24748 | 24749 | ,Obj3::fromHasOwnProperty($obj->{'hasOwnProperty'}) |
| 24749 | 24750 | ,Obj3::fromHashCode($obj->{'hashCode'}) |
| @@ -24807,7 +24808,6 @@ class Obj3 { | ||
| 24807 | 24808 | ,Obj3::fromNewtonsoft($obj->{'newtonsoft'}) |
| 24808 | 24809 | ,Obj3::fromNil($obj->{'nil'}) |
| 24809 | 24810 | ,Obj3::fromNo($obj->{'NO'}) |
| 24810 | - ,Obj3::fromNoexcept($obj->{'noexcept'}) | |
| 24811 | 24811 | ); |
| 24812 | 24812 | } |
| 24813 | 24813 | |
| @@ -24817,6 +24817,7 @@ class Obj3 { | ||
| 24817 | 24817 | public static function sample(): Obj3 { |
| 24818 | 24818 | return new Obj3( |
| 24819 | 24819 | Obj3::sampleDummy() |
| 24820 | + ,Obj3::sampleGoto() | |
| 24820 | 24821 | ,Obj3::sampleGuard() |
| 24821 | 24822 | ,Obj3::sampleHasOwnProperty() |
| 24822 | 24823 | ,Obj3::sampleHashCode() |
| @@ -24880,7 +24881,107 @@ class Obj3 { | ||
| 24880 | 24881 | ,Obj3::sampleNewtonsoft() |
| 24881 | 24882 | ,Obj3::sampleNil() |
| 24882 | 24883 | ,Obj3::sampleNo() |
| 24883 | - ,Obj3::sampleNoexcept() | |
| 24884 | + ); | |
| 24885 | + } | |
| 24886 | +} | |
| 24887 | + | |
| 24888 | +// This is an autogenerated file:GotoClass | |
| 24889 | + | |
| 24890 | +class GotoClass { | |
| 24891 | + private int $goto; // json:goto Required | |
| 24892 | + | |
| 24893 | + /** | |
| 24894 | + * @param int $goto | |
| 24895 | + */ | |
| 24896 | + public function __construct(int $goto) { | |
| 24897 | + $this->goto = $goto; | |
| 24898 | + } | |
| 24899 | + | |
| 24900 | + /** | |
| 24901 | + * @param int $value | |
| 24902 | + * @throws Exception | |
| 24903 | + * @return int | |
| 24904 | + */ | |
| 24905 | + public static function fromGoto(int $value): int { | |
| 24906 | + return $value; /*int*/ | |
| 24907 | + } | |
| 24908 | + | |
| 24909 | + /** | |
| 24910 | + * @throws Exception | |
| 24911 | + * @return int | |
| 24912 | + */ | |
| 24913 | + public function toGoto(): int { | |
| 24914 | + if (GotoClass::validateGoto($this->goto)) { | |
| 24915 | + return $this->goto; /*int*/ | |
| 24916 | + } | |
| 24917 | + throw new Exception('never get to this GotoClass::goto'); | |
| 24918 | + } | |
| 24919 | + | |
| 24920 | + /** | |
| 24921 | + * @param int | |
| 24922 | + * @return bool | |
| 24923 | + * @throws Exception | |
| 24924 | + */ | |
| 24925 | + public static function validateGoto(int $value): bool { | |
| 24926 | + return true; | |
| 24927 | + } | |
| 24928 | + | |
| 24929 | + /** | |
| 24930 | + * @throws Exception | |
| 24931 | + * @return int | |
| 24932 | + */ | |
| 24933 | + public function getGoto(): int { | |
| 24934 | + if (GotoClass::validateGoto($this->goto)) { | |
| 24935 | + return $this->goto; | |
| 24936 | + } | |
| 24937 | + throw new Exception('never get to getGoto GotoClass::goto'); | |
| 24938 | + } | |
| 24939 | + | |
| 24940 | + /** | |
| 24941 | + * @return int | |
| 24942 | + */ | |
| 24943 | + public static function sampleGoto(): int { | |
| 24944 | + return 31; /*31:goto*/ | |
| 24945 | + } | |
| 24946 | + | |
| 24947 | + /** | |
| 24948 | + * @throws Exception | |
| 24949 | + * @return bool | |
| 24950 | + */ | |
| 24951 | + public function validate(): bool { | |
| 24952 | + return GotoClass::validateGoto($this->goto); | |
| 24953 | + } | |
| 24954 | + | |
| 24955 | + /** | |
| 24956 | + * @return stdClass | |
| 24957 | + * @throws Exception | |
| 24958 | + */ | |
| 24959 | + public function to(): stdClass { | |
| 24960 | + $out = new stdClass(); | |
| 24961 | + $out->{'goto'} = $this->toGoto(); | |
| 24962 | + return $out; | |
| 24963 | + } | |
| 24964 | + | |
| 24965 | + /** | |
| 24966 | + * @param stdClass $obj | |
| 24967 | + * @return GotoClass | |
| 24968 | + * @throws Exception | |
| 24969 | + */ | |
| 24970 | + public static function from(stdClass $obj): GotoClass { | |
| 24971 | + if (!property_exists($obj, 'goto')) { | |
| 24972 | + throw new Exception("Missing required property"); | |
| 24973 | + } | |
| 24974 | + return new GotoClass( | |
| 24975 | + GotoClass::fromGoto($obj->{'goto'}) | |
| 24976 | + ); | |
| 24977 | + } | |
| 24978 | + | |
| 24979 | + /** | |
| 24980 | + * @return GotoClass | |
| 24981 | + */ | |
| 24982 | + public static function sample(): GotoClass { | |
| 24983 | + return new GotoClass( | |
| 24984 | + GotoClass::sampleGoto() | |
| 24884 | 24985 | ); |
| 24885 | 24986 | } |
| 24886 | 24987 | } |
| @@ -31251,112 +31352,12 @@ class No { | ||
| 31251 | 31352 | } |
| 31252 | 31353 | } |
| 31253 | 31354 | |
| 31254 | -// This is an autogenerated file:Noexcept | |
| 31255 | - | |
| 31256 | -class Noexcept { | |
| 31257 | - private int $noexcept; // json:noexcept Required | |
| 31258 | - | |
| 31259 | - /** | |
| 31260 | - * @param int $noexcept | |
| 31261 | - */ | |
| 31262 | - public function __construct(int $noexcept) { | |
| 31263 | - $this->noexcept = $noexcept; | |
| 31264 | - } | |
| 31265 | - | |
| 31266 | - /** | |
| 31267 | - * @param int $value | |
| 31268 | - * @throws Exception | |
| 31269 | - * @return int | |
| 31270 | - */ | |
| 31271 | - public static function fromNoexcept(int $value): int { | |
| 31272 | - return $value; /*int*/ | |
| 31273 | - } | |
| 31274 | - | |
| 31275 | - /** | |
| 31276 | - * @throws Exception | |
| 31277 | - * @return int | |
| 31278 | - */ | |
| 31279 | - public function toNoexcept(): int { | |
| 31280 | - if (Noexcept::validateNoexcept($this->noexcept)) { | |
| 31281 | - return $this->noexcept; /*int*/ | |
| 31282 | - } | |
| 31283 | - throw new Exception('never get to this Noexcept::noexcept'); | |
| 31284 | - } | |
| 31285 | - | |
| 31286 | - /** | |
| 31287 | - * @param int | |
| 31288 | - * @return bool | |
| 31289 | - * @throws Exception | |
| 31290 | - */ | |
| 31291 | - public static function validateNoexcept(int $value): bool { | |
| 31292 | - return true; | |
| 31293 | - } | |
| 31294 | - | |
| 31295 | - /** | |
| 31296 | - * @throws Exception | |
| 31297 | - * @return int | |
| 31298 | - */ | |
| 31299 | - public function getNoexcept(): int { | |
| 31300 | - if (Noexcept::validateNoexcept($this->noexcept)) { | |
| 31301 | - return $this->noexcept; | |
| 31302 | - } | |
| 31303 | - throw new Exception('never get to getNoexcept Noexcept::noexcept'); | |
| 31304 | - } | |
| 31305 | - | |
| 31306 | - /** | |
| 31307 | - * @return int | |
| 31308 | - */ | |
| 31309 | - public static function sampleNoexcept(): int { | |
| 31310 | - return 31; /*31:noexcept*/ | |
| 31311 | - } | |
| 31312 | - | |
| 31313 | - /** | |
| 31314 | - * @throws Exception | |
| 31315 | - * @return bool | |
| 31316 | - */ | |
| 31317 | - public function validate(): bool { | |
| 31318 | - return Noexcept::validateNoexcept($this->noexcept); | |
| 31319 | - } | |
| 31320 | - | |
| 31321 | - /** | |
| 31322 | - * @return stdClass | |
| 31323 | - * @throws Exception | |
| 31324 | - */ | |
| 31325 | - public function to(): stdClass { | |
| 31326 | - $out = new stdClass(); | |
| 31327 | - $out->{'noexcept'} = $this->toNoexcept(); | |
| 31328 | - return $out; | |
| 31329 | - } | |
| 31330 | - | |
| 31331 | - /** | |
| 31332 | - * @param stdClass $obj | |
| 31333 | - * @return Noexcept | |
| 31334 | - * @throws Exception | |
| 31335 | - */ | |
| 31336 | - public static function from(stdClass $obj): Noexcept { | |
| 31337 | - if (!property_exists($obj, 'noexcept')) { | |
| 31338 | - throw new Exception("Missing required property"); | |
| 31339 | - } | |
| 31340 | - return new Noexcept( | |
| 31341 | - Noexcept::fromNoexcept($obj->{'noexcept'}) | |
| 31342 | - ); | |
| 31343 | - } | |
| 31344 | - | |
| 31345 | - /** | |
| 31346 | - * @return Noexcept | |
| 31347 | - */ | |
| 31348 | - public static function sample(): Noexcept { | |
| 31349 | - return new Noexcept( | |
| 31350 | - Noexcept::sampleNoexcept() | |
| 31351 | - ); | |
| 31352 | - } | |
| 31353 | -} | |
| 31354 | - | |
| 31355 | 31355 | // This is an autogenerated file:Obj4 |
| 31356 | 31356 | |
| 31357 | 31357 | class Obj4 { |
| 31358 | 31358 | private int $dummy; // json:dummy Required |
| 31359 | 31359 | private NoSuchMethod $noSuchMethod; // json:noSuchMethod Required |
| 31360 | + private Noexcept $noexcept; // json:noexcept Required | |
| 31360 | 31361 | private Nonatomic $nonatomic; // json:nonatomic Required |
| 31361 | 31362 | private None $none; // json:None Required |
| 31362 | 31363 | private Nonlocal $nonlocal; // json:nonlocal Required |
| @@ -31374,6 +31375,8 @@ class Obj4 { | ||
| 31374 | 31375 | private ProtocolClass $obj4Protocol; // json:protocol Required |
| 31375 | 31376 | private ObjectClass $object; // json:object Required |
| 31376 | 31377 | private ObjectMapper $objectMapper; // json:ObjectMapper Required |
| 31378 | + private ObjectReader $objectReader; // json:ObjectReader Required | |
| 31379 | + private ObjectWriter $objectWriter; // json:ObjectWriter Required | |
| 31377 | 31380 | private Of $of; // json:of Required |
| 31378 | 31381 | private Oneway $oneway; // json:oneway Required |
| 31379 | 31382 | private Open $open; // json:open Required |
| @@ -31417,13 +31420,11 @@ class Obj4 { | ||
| 31417 | 31420 | private RuntimeType $runtimeType; // json:runtimeType Required |
| 31418 | 31421 | private S $s; // json:s Required |
| 31419 | 31422 | private Sbyte $sbyte; // json:sbyte Required |
| 31420 | - private Sealed $sealed; // json:sealed Required | |
| 31421 | - private Sel $sel; // json:SEL Required | |
| 31422 | - private Select $select; // json:select Required | |
| 31423 | 31423 | |
| 31424 | 31424 | /** |
| 31425 | 31425 | * @param int $dummy |
| 31426 | 31426 | * @param NoSuchMethod $noSuchMethod |
| 31427 | + * @param Noexcept $noexcept | |
| 31427 | 31428 | * @param Nonatomic $nonatomic |
| 31428 | 31429 | * @param None $none |
| 31429 | 31430 | * @param Nonlocal $nonlocal |
| @@ -31441,6 +31442,8 @@ class Obj4 { | ||
| 31441 | 31442 | * @param ProtocolClass $obj4Protocol |
| 31442 | 31443 | * @param ObjectClass $object |
| 31443 | 31444 | * @param ObjectMapper $objectMapper |
| 31445 | + * @param ObjectReader $objectReader | |
| 31446 | + * @param ObjectWriter $objectWriter | |
| 31444 | 31447 | * @param Of $of |
| 31445 | 31448 | * @param Oneway $oneway |
| 31446 | 31449 | * @param Open $open |
| @@ -31484,13 +31487,11 @@ class Obj4 { | ||
| 31484 | 31487 | * @param RuntimeType $runtimeType |
| 31485 | 31488 | * @param S $s |
| 31486 | 31489 | * @param Sbyte $sbyte |
| 31487 | - * @param Sealed $sealed | |
| 31488 | - * @param Sel $sel | |
| 31489 | - * @param Select $select | |
| 31490 | 31490 | */ |
| 31491 | - public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, Of $of, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte, Sealed $sealed, Sel $sel, Select $select) { | |
| 31491 | + public function __construct(int $dummy, NoSuchMethod $noSuchMethod, Noexcept $noexcept, Nonatomic $nonatomic, None $none, Nonlocal $nonlocal, Nonmutating $nonmutating, Not $not, NotEq $notEq, NSError $nsError, NSObject $nsObject, NSString $nsString, NULLClass $null, Nullptr $nullptr, Number $number, NoneClass $obj4None, Obj4Null $obj4Null, ProtocolClass $obj4Protocol, ObjectClass $object, ObjectMapper $objectMapper, ObjectReader $objectReader, ObjectWriter $objectWriter, Of $of, Oneway $oneway, Open $open, Operator $operator, Optional $optional, OrClass $or, OrEq $orEq, Out $out, OverrideClass $override, Package $package, Params $params, Pass $pass, Port $port, Postfix $postfix, Precedence $precedence, Prefix $prefix, PrintClass $print, PrintMembers $printMembers, Printf $printf, PrivateClass $private, ProtectedClass $protected, Protocol $protocol, PublicClass $public, Quicktype $quicktype, Raise $raise, Range $range, ReadonlyClass $readonly, Ref $ref, RegExp $regExp, Register $register, ReinterpretCast $reinterpretCast, Repeat $repeat, RequireClass $require, Required $required, Requires $requires, Restrict $restrict, Retain $retain, Rethrows $rethrows, ReturnClass $return, Right $right, RuntimeType $runtimeType, S $s, Sbyte $sbyte) { | |
| 31492 | 31492 | $this->dummy = $dummy; |
| 31493 | 31493 | $this->noSuchMethod = $noSuchMethod; |
| 31494 | + $this->noexcept = $noexcept; | |
| 31494 | 31495 | $this->nonatomic = $nonatomic; |
| 31495 | 31496 | $this->none = $none; |
| 31496 | 31497 | $this->nonlocal = $nonlocal; |
| @@ -31508,6 +31509,8 @@ class Obj4 { | ||
| 31508 | 31509 | $this->obj4Protocol = $obj4Protocol; |
| 31509 | 31510 | $this->object = $object; |
| 31510 | 31511 | $this->objectMapper = $objectMapper; |
| 31512 | + $this->objectReader = $objectReader; | |
| 31513 | + $this->objectWriter = $objectWriter; | |
| 31511 | 31514 | $this->of = $of; |
| 31512 | 31515 | $this->oneway = $oneway; |
| 31513 | 31516 | $this->open = $open; |
| @@ -31551,9 +31554,6 @@ class Obj4 { | ||
| 31551 | 31554 | $this->runtimeType = $runtimeType; |
| 31552 | 31555 | $this->s = $s; |
| 31553 | 31556 | $this->sbyte = $sbyte; |
| 31554 | - $this->sealed = $sealed; | |
| 31555 | - $this->sel = $sel; | |
| 31556 | - $this->select = $select; | |
| 31557 | 31557 | } |
| 31558 | 31558 | |
| 31559 | 31559 | /** |
| @@ -31651,6 +31651,54 @@ class Obj4 { | ||
| 31651 | 31651 | return NoSuchMethod::sample(); /*32:noSuchMethod*/ |
| 31652 | 31652 | } |
| 31653 | 31653 | |
| 31654 | + /** | |
| 31655 | + * @param stdClass $value | |
| 31656 | + * @throws Exception | |
| 31657 | + * @return Noexcept | |
| 31658 | + */ | |
| 31659 | + public static function fromNoexcept(stdClass $value): Noexcept { | |
| 31660 | + return Noexcept::from($value); /*class*/ | |
| 31661 | + } | |
| 31662 | + | |
| 31663 | + /** | |
| 31664 | + * @throws Exception | |
| 31665 | + * @return stdClass | |
| 31666 | + */ | |
| 31667 | + public function toNoexcept(): stdClass { | |
| 31668 | + if (Obj4::validateNoexcept($this->noexcept)) { | |
| 31669 | + return $this->noexcept->to(); /*class*/ | |
| 31670 | + } | |
| 31671 | + throw new Exception('never get to this Obj4::noexcept'); | |
| 31672 | + } | |
| 31673 | + | |
| 31674 | + /** | |
| 31675 | + * @param Noexcept | |
| 31676 | + * @return bool | |
| 31677 | + * @throws Exception | |
| 31678 | + */ | |
| 31679 | + public static function validateNoexcept(Noexcept $value): bool { | |
| 31680 | + $value->validate(); | |
| 31681 | + return true; | |
| 31682 | + } | |
| 31683 | + | |
| 31684 | + /** | |
| 31685 | + * @throws Exception | |
| 31686 | + * @return Noexcept | |
| 31687 | + */ | |
| 31688 | + public function getNoexcept(): Noexcept { | |
| 31689 | + if (Obj4::validateNoexcept($this->noexcept)) { | |
| 31690 | + return $this->noexcept; | |
| 31691 | + } | |
| 31692 | + throw new Exception('never get to getNoexcept Obj4::noexcept'); | |
| 31693 | + } | |
| 31694 | + | |
| 31695 | + /** | |
| 31696 | + * @return Noexcept | |
| 31697 | + */ | |
| 31698 | + public static function sampleNoexcept(): Noexcept { | |
| 31699 | + return Noexcept::sample(); /*33:noexcept*/ | |
| 31700 | + } | |
| 31701 | + | |
| 31654 | 31702 | /** |
| 31655 | 31703 | * @param stdClass $value |
| 31656 | 31704 | * @throws Exception |
| @@ -31696,7 +31744,7 @@ class Obj4 { | ||
| 31696 | 31744 | * @return Nonatomic |
| 31697 | 31745 | */ |
| 31698 | 31746 | public static function sampleNonatomic(): Nonatomic { |
| 31699 | - return Nonatomic::sample(); /*33:nonatomic*/ | |
| 31747 | + return Nonatomic::sample(); /*34:nonatomic*/ | |
| 31700 | 31748 | } |
| 31701 | 31749 | |
| 31702 | 31750 | /** |
| @@ -31744,7 +31792,7 @@ class Obj4 { | ||
| 31744 | 31792 | * @return None |
| 31745 | 31793 | */ |
| 31746 | 31794 | public static function sampleNone(): None { |
| 31747 | - return None::sample(); /*34:none*/ | |
| 31795 | + return None::sample(); /*35:none*/ | |
| 31748 | 31796 | } |
| 31749 | 31797 | |
| 31750 | 31798 | /** |
| @@ -31792,7 +31840,7 @@ class Obj4 { | ||
| 31792 | 31840 | * @return Nonlocal |
| 31793 | 31841 | */ |
| 31794 | 31842 | public static function sampleNonlocal(): Nonlocal { |
| 31795 | - return Nonlocal::sample(); /*35:nonlocal*/ | |
| 31843 | + return Nonlocal::sample(); /*36:nonlocal*/ | |
| 31796 | 31844 | } |
| 31797 | 31845 | |
| 31798 | 31846 | /** |
| @@ -31840,7 +31888,7 @@ class Obj4 { | ||
| 31840 | 31888 | * @return Nonmutating |
| 31841 | 31889 | */ |
| 31842 | 31890 | public static function sampleNonmutating(): Nonmutating { |
| 31843 | - return Nonmutating::sample(); /*36:nonmutating*/ | |
| 31891 | + return Nonmutating::sample(); /*37:nonmutating*/ | |
| 31844 | 31892 | } |
| 31845 | 31893 | |
| 31846 | 31894 | /** |
| @@ -31888,7 +31936,7 @@ class Obj4 { | ||
| 31888 | 31936 | * @return Not |
| 31889 | 31937 | */ |
| 31890 | 31938 | public static function sampleNot(): Not { |
| 31891 | - return Not::sample(); /*37:not*/ | |
| 31939 | + return Not::sample(); /*38:not*/ | |
| 31892 | 31940 | } |
| 31893 | 31941 | |
| 31894 | 31942 | /** |
| @@ -31936,7 +31984,7 @@ class Obj4 { | ||
| 31936 | 31984 | * @return NotEq |
| 31937 | 31985 | */ |
| 31938 | 31986 | public static function sampleNotEq(): NotEq { |
| 31939 | - return NotEq::sample(); /*38:notEq*/ | |
| 31987 | + return NotEq::sample(); /*39:notEq*/ | |
| 31940 | 31988 | } |
| 31941 | 31989 | |
| 31942 | 31990 | /** |
| @@ -31984,7 +32032,7 @@ class Obj4 { | ||
| 31984 | 32032 | * @return NSError |
| 31985 | 32033 | */ |
| 31986 | 32034 | public static function sampleNSError(): NSError { |
| 31987 | - return NSError::sample(); /*39:nsError*/ | |
| 32035 | + return NSError::sample(); /*40:nsError*/ | |
| 31988 | 32036 | } |
| 31989 | 32037 | |
| 31990 | 32038 | /** |
| @@ -32032,7 +32080,7 @@ class Obj4 { | ||
| 32032 | 32080 | * @return NSObject |
| 32033 | 32081 | */ |
| 32034 | 32082 | public static function sampleNSObject(): NSObject { |
| 32035 | - return NSObject::sample(); /*40:nsObject*/ | |
| 32083 | + return NSObject::sample(); /*41:nsObject*/ | |
| 32036 | 32084 | } |
| 32037 | 32085 | |
| 32038 | 32086 | /** |
| @@ -32080,7 +32128,7 @@ class Obj4 { | ||
| 32080 | 32128 | * @return NSString |
| 32081 | 32129 | */ |
| 32082 | 32130 | public static function sampleNSString(): NSString { |
| 32083 | - return NSString::sample(); /*41:nsString*/ | |
| 32131 | + return NSString::sample(); /*42:nsString*/ | |
| 32084 | 32132 | } |
| 32085 | 32133 | |
| 32086 | 32134 | /** |
| @@ -32128,7 +32176,7 @@ class Obj4 { | ||
| 32128 | 32176 | * @return NULLClass |
| 32129 | 32177 | */ |
| 32130 | 32178 | public static function sampleNull(): NULLClass { |
| 32131 | - return NULLClass::sample(); /*42:null*/ | |
| 32179 | + return NULLClass::sample(); /*43:null*/ | |
| 32132 | 32180 | } |
| 32133 | 32181 | |
| 32134 | 32182 | /** |
| @@ -32176,7 +32224,7 @@ class Obj4 { | ||
| 32176 | 32224 | * @return Nullptr |
| 32177 | 32225 | */ |
| 32178 | 32226 | public static function sampleNullptr(): Nullptr { |
| 32179 | - return Nullptr::sample(); /*43:nullptr*/ | |
| 32227 | + return Nullptr::sample(); /*44:nullptr*/ | |
| 32180 | 32228 | } |
| 32181 | 32229 | |
| 32182 | 32230 | /** |
| @@ -32224,7 +32272,7 @@ class Obj4 { | ||
| 32224 | 32272 | * @return Number |
| 32225 | 32273 | */ |
| 32226 | 32274 | public static function sampleNumber(): Number { |
| 32227 | - return Number::sample(); /*44:number*/ | |
| 32275 | + return Number::sample(); /*45:number*/ | |
| 32228 | 32276 | } |
| 32229 | 32277 | |
| 32230 | 32278 | /** |
| @@ -32272,7 +32320,7 @@ class Obj4 { | ||
| 32272 | 32320 | * @return NoneClass |
| 32273 | 32321 | */ |
| 32274 | 32322 | public static function sampleObj4None(): NoneClass { |
| 32275 | - return NoneClass::sample(); /*45:obj4None*/ | |
| 32323 | + return NoneClass::sample(); /*46:obj4None*/ | |
| 32276 | 32324 | } |
| 32277 | 32325 | |
| 32278 | 32326 | /** |
| @@ -32320,7 +32368,7 @@ class Obj4 { | ||
| 32320 | 32368 | * @return Obj4Null |
| 32321 | 32369 | */ |
| 32322 | 32370 | public static function sampleObj4Null(): Obj4Null { |
| 32323 | - return Obj4Null::sample(); /*46:obj4Null*/ | |
| 32371 | + return Obj4Null::sample(); /*47:obj4Null*/ | |
| 32324 | 32372 | } |
| 32325 | 32373 | |
| 32326 | 32374 | /** |
| @@ -32368,7 +32416,7 @@ class Obj4 { | ||
| 32368 | 32416 | * @return ProtocolClass |
| 32369 | 32417 | */ |
| 32370 | 32418 | public static function sampleObj4Protocol(): ProtocolClass { |
| 32371 | - return ProtocolClass::sample(); /*47:obj4Protocol*/ | |
| 32419 | + return ProtocolClass::sample(); /*48:obj4Protocol*/ | |
| 32372 | 32420 | } |
| 32373 | 32421 | |
| 32374 | 32422 | /** |
| @@ -32416,7 +32464,7 @@ class Obj4 { | ||
| 32416 | 32464 | * @return ObjectClass |
| 32417 | 32465 | */ |
| 32418 | 32466 | public static function sampleObject(): ObjectClass { |
| 32419 | - return ObjectClass::sample(); /*48:object*/ | |
| 32467 | + return ObjectClass::sample(); /*49:object*/ | |
| 32420 | 32468 | } |
| 32421 | 32469 | |
| 32422 | 32470 | /** |
| @@ -32464,7 +32512,103 @@ class Obj4 { | ||
| 32464 | 32512 | * @return ObjectMapper |
| 32465 | 32513 | */ |
| 32466 | 32514 | public static function sampleObjectMapper(): ObjectMapper { |
| 32467 | - return ObjectMapper::sample(); /*49:objectMapper*/ | |
| 32515 | + return ObjectMapper::sample(); /*50:objectMapper*/ | |
| 32516 | + } | |
| 32517 | + | |
| 32518 | + /** | |
| 32519 | + * @param stdClass $value | |
| 32520 | + * @throws Exception | |
| 32521 | + * @return ObjectReader | |
| 32522 | + */ | |
| 32523 | + public static function fromObjectReader(stdClass $value): ObjectReader { | |
| 32524 | + return ObjectReader::from($value); /*class*/ | |
| 32525 | + } | |
| 32526 | + | |
| 32527 | + /** | |
| 32528 | + * @throws Exception | |
| 32529 | + * @return stdClass | |
| 32530 | + */ | |
| 32531 | + public function toObjectReader(): stdClass { | |
| 32532 | + if (Obj4::validateObjectReader($this->objectReader)) { | |
| 32533 | + return $this->objectReader->to(); /*class*/ | |
| 32534 | + } | |
| 32535 | + throw new Exception('never get to this Obj4::objectReader'); | |
| 32536 | + } | |
| 32537 | + | |
| 32538 | + /** | |
| 32539 | + * @param ObjectReader | |
| 32540 | + * @return bool | |
| 32541 | + * @throws Exception | |
| 32542 | + */ | |
| 32543 | + public static function validateObjectReader(ObjectReader $value): bool { | |
| 32544 | + $value->validate(); | |
| 32545 | + return true; | |
| 32546 | + } | |
| 32547 | + | |
| 32548 | + /** | |
| 32549 | + * @throws Exception | |
| 32550 | + * @return ObjectReader | |
| 32551 | + */ | |
| 32552 | + public function getObjectReader(): ObjectReader { | |
| 32553 | + if (Obj4::validateObjectReader($this->objectReader)) { | |
| 32554 | + return $this->objectReader; | |
| 32555 | + } | |
| 32556 | + throw new Exception('never get to getObjectReader Obj4::objectReader'); | |
| 32557 | + } | |
| 32558 | + | |
| 32559 | + /** | |
| 32560 | + * @return ObjectReader | |
| 32561 | + */ | |
| 32562 | + public static function sampleObjectReader(): ObjectReader { | |
| 32563 | + return ObjectReader::sample(); /*51:objectReader*/ | |
| 32564 | + } | |
| 32565 | + | |
| 32566 | + /** | |
| 32567 | + * @param stdClass $value | |
| 32568 | + * @throws Exception | |
| 32569 | + * @return ObjectWriter | |
| 32570 | + */ | |
| 32571 | + public static function fromObjectWriter(stdClass $value): ObjectWriter { | |
| 32572 | + return ObjectWriter::from($value); /*class*/ | |
| 32573 | + } | |
| 32574 | + | |
| 32575 | + /** | |
| 32576 | + * @throws Exception | |
| 32577 | + * @return stdClass | |
| 32578 | + */ | |
| 32579 | + public function toObjectWriter(): stdClass { | |
| 32580 | + if (Obj4::validateObjectWriter($this->objectWriter)) { | |
| 32581 | + return $this->objectWriter->to(); /*class*/ | |
| 32582 | + } | |
| 32583 | + throw new Exception('never get to this Obj4::objectWriter'); | |
| 32584 | + } | |
| 32585 | + | |
| 32586 | + /** | |
| 32587 | + * @param ObjectWriter | |
| 32588 | + * @return bool | |
| 32589 | + * @throws Exception | |
| 32590 | + */ | |
| 32591 | + public static function validateObjectWriter(ObjectWriter $value): bool { | |
| 32592 | + $value->validate(); | |
| 32593 | + return true; | |
| 32594 | + } | |
| 32595 | + | |
| 32596 | + /** | |
| 32597 | + * @throws Exception | |
| 32598 | + * @return ObjectWriter | |
| 32599 | + */ | |
| 32600 | + public function getObjectWriter(): ObjectWriter { | |
| 32601 | + if (Obj4::validateObjectWriter($this->objectWriter)) { | |
| 32602 | + return $this->objectWriter; | |
| 32603 | + } | |
| 32604 | + throw new Exception('never get to getObjectWriter Obj4::objectWriter'); | |
| 32605 | + } | |
| 32606 | + | |
| 32607 | + /** | |
| 32608 | + * @return ObjectWriter | |
| 32609 | + */ | |
| 32610 | + public static function sampleObjectWriter(): ObjectWriter { | |
| 32611 | + return ObjectWriter::sample(); /*52:objectWriter*/ | |
| 32468 | 32612 | } |
| 32469 | 32613 | |
| 32470 | 32614 | /** |
| @@ -32512,7 +32656,7 @@ class Obj4 { | ||
| 32512 | 32656 | * @return Of |
| 32513 | 32657 | */ |
| 32514 | 32658 | public static function sampleOf(): Of { |
| 32515 | - return Of::sample(); /*50:of*/ | |
| 32659 | + return Of::sample(); /*53:of*/ | |
| 32516 | 32660 | } |
| 32517 | 32661 | |
| 32518 | 32662 | /** |
| @@ -32560,7 +32704,7 @@ class Obj4 { | ||
| 32560 | 32704 | * @return Oneway |
| 32561 | 32705 | */ |
| 32562 | 32706 | public static function sampleOneway(): Oneway { |
| 32563 | - return Oneway::sample(); /*51:oneway*/ | |
| 32707 | + return Oneway::sample(); /*54:oneway*/ | |
| 32564 | 32708 | } |
| 32565 | 32709 | |
| 32566 | 32710 | /** |
| @@ -32608,7 +32752,7 @@ class Obj4 { | ||
| 32608 | 32752 | * @return Open |
| 32609 | 32753 | */ |
| 32610 | 32754 | public static function sampleOpen(): Open { |
| 32611 | - return Open::sample(); /*52:open*/ | |
| 32755 | + return Open::sample(); /*55:open*/ | |
| 32612 | 32756 | } |
| 32613 | 32757 | |
| 32614 | 32758 | /** |
| @@ -32656,7 +32800,7 @@ class Obj4 { | ||
| 32656 | 32800 | * @return Operator |
| 32657 | 32801 | */ |
| 32658 | 32802 | public static function sampleOperator(): Operator { |
| 32659 | - return Operator::sample(); /*53:operator*/ | |
| 32803 | + return Operator::sample(); /*56:operator*/ | |
| 32660 | 32804 | } |
| 32661 | 32805 | |
| 32662 | 32806 | /** |
| @@ -32704,7 +32848,7 @@ class Obj4 { | ||
| 32704 | 32848 | * @return Optional |
| 32705 | 32849 | */ |
| 32706 | 32850 | public static function sampleOptional(): Optional { |
| 32707 | - return Optional::sample(); /*54:optional*/ | |
| 32851 | + return Optional::sample(); /*57:optional*/ | |
| 32708 | 32852 | } |
| 32709 | 32853 | |
| 32710 | 32854 | /** |
| @@ -32752,7 +32896,7 @@ class Obj4 { | ||
| 32752 | 32896 | * @return OrClass |
| 32753 | 32897 | */ |
| 32754 | 32898 | public static function sampleOr(): OrClass { |
| 32755 | - return OrClass::sample(); /*55:or*/ | |
| 32899 | + return OrClass::sample(); /*58:or*/ | |
| 32756 | 32900 | } |
| 32757 | 32901 | |
| 32758 | 32902 | /** |
| @@ -32800,7 +32944,7 @@ class Obj4 { | ||
| 32800 | 32944 | * @return OrEq |
| 32801 | 32945 | */ |
| 32802 | 32946 | public static function sampleOrEq(): OrEq { |
| 32803 | - return OrEq::sample(); /*56:orEq*/ | |
| 32947 | + return OrEq::sample(); /*59:orEq*/ | |
| 32804 | 32948 | } |
| 32805 | 32949 | |
| 32806 | 32950 | /** |
| @@ -32848,7 +32992,7 @@ class Obj4 { | ||
| 32848 | 32992 | * @return Out |
| 32849 | 32993 | */ |
| 32850 | 32994 | public static function sampleOut(): Out { |
| 32851 | - return Out::sample(); /*57:out*/ | |
| 32995 | + return Out::sample(); /*60:out*/ | |
| 32852 | 32996 | } |
| 32853 | 32997 | |
| 32854 | 32998 | /** |
| @@ -32896,7 +33040,7 @@ class Obj4 { | ||
| 32896 | 33040 | * @return OverrideClass |
| 32897 | 33041 | */ |
| 32898 | 33042 | public static function sampleOverride(): OverrideClass { |
| 32899 | - return OverrideClass::sample(); /*58:override*/ | |
| 33043 | + return OverrideClass::sample(); /*61:override*/ | |
| 32900 | 33044 | } |
| 32901 | 33045 | |
| 32902 | 33046 | /** |
| @@ -32944,7 +33088,7 @@ class Obj4 { | ||
| 32944 | 33088 | * @return Package |
| 32945 | 33089 | */ |
| 32946 | 33090 | public static function samplePackage(): Package { |
| 32947 | - return Package::sample(); /*59:package*/ | |
| 33091 | + return Package::sample(); /*62:package*/ | |
| 32948 | 33092 | } |
| 32949 | 33093 | |
| 32950 | 33094 | /** |
| @@ -32992,7 +33136,7 @@ class Obj4 { | ||
| 32992 | 33136 | * @return Params |
| 32993 | 33137 | */ |
| 32994 | 33138 | public static function sampleParams(): Params { |
| 32995 | - return Params::sample(); /*60:params*/ | |
| 33139 | + return Params::sample(); /*63:params*/ | |
| 32996 | 33140 | } |
| 32997 | 33141 | |
| 32998 | 33142 | /** |
| @@ -33040,7 +33184,7 @@ class Obj4 { | ||
| 33040 | 33184 | * @return Pass |
| 33041 | 33185 | */ |
| 33042 | 33186 | public static function samplePass(): Pass { |
| 33043 | - return Pass::sample(); /*61:pass*/ | |
| 33187 | + return Pass::sample(); /*64:pass*/ | |
| 33044 | 33188 | } |
| 33045 | 33189 | |
| 33046 | 33190 | /** |
| @@ -33088,7 +33232,7 @@ class Obj4 { | ||
| 33088 | 33232 | * @return Port |
| 33089 | 33233 | */ |
| 33090 | 33234 | public static function samplePort(): Port { |
| 33091 | - return Port::sample(); /*62:port*/ | |
| 33235 | + return Port::sample(); /*65:port*/ | |
| 33092 | 33236 | } |
| 33093 | 33237 | |
| 33094 | 33238 | /** |
| @@ -33136,7 +33280,7 @@ class Obj4 { | ||
| 33136 | 33280 | * @return Postfix |
| 33137 | 33281 | */ |
| 33138 | 33282 | public static function samplePostfix(): Postfix { |
| 33139 | - return Postfix::sample(); /*63:postfix*/ | |
| 33283 | + return Postfix::sample(); /*66:postfix*/ | |
| 33140 | 33284 | } |
| 33141 | 33285 | |
| 33142 | 33286 | /** |
| @@ -33184,7 +33328,7 @@ class Obj4 { | ||
| 33184 | 33328 | * @return Precedence |
| 33185 | 33329 | */ |
| 33186 | 33330 | public static function samplePrecedence(): Precedence { |
| 33187 | - return Precedence::sample(); /*64:precedence*/ | |
| 33331 | + return Precedence::sample(); /*67:precedence*/ | |
| 33188 | 33332 | } |
| 33189 | 33333 | |
| 33190 | 33334 | /** |
| @@ -33232,7 +33376,7 @@ class Obj4 { | ||
| 33232 | 33376 | * @return Prefix |
| 33233 | 33377 | */ |
| 33234 | 33378 | public static function samplePrefix(): Prefix { |
| 33235 | - return Prefix::sample(); /*65:prefix*/ | |
| 33379 | + return Prefix::sample(); /*68:prefix*/ | |
| 33236 | 33380 | } |
| 33237 | 33381 | |
| 33238 | 33382 | /** |
| @@ -33280,7 +33424,7 @@ class Obj4 { | ||
| 33280 | 33424 | * @return PrintClass |
| 33281 | 33425 | */ |
| 33282 | 33426 | public static function samplePrint(): PrintClass { |
| 33283 | - return PrintClass::sample(); /*66:print*/ | |
| 33427 | + return PrintClass::sample(); /*69:print*/ | |
| 33284 | 33428 | } |
| 33285 | 33429 | |
| 33286 | 33430 | /** |
| @@ -33328,7 +33472,7 @@ class Obj4 { | ||
| 33328 | 33472 | * @return PrintMembers |
| 33329 | 33473 | */ |
| 33330 | 33474 | public static function samplePrintMembers(): PrintMembers { |
| 33331 | - return PrintMembers::sample(); /*67:printMembers*/ | |
| 33475 | + return PrintMembers::sample(); /*70:printMembers*/ | |
| 33332 | 33476 | } |
| 33333 | 33477 | |
| 33334 | 33478 | /** |
| @@ -33376,7 +33520,7 @@ class Obj4 { | ||
| 33376 | 33520 | * @return Printf |
| 33377 | 33521 | */ |
| 33378 | 33522 | public static function samplePrintf(): Printf { |
| 33379 | - return Printf::sample(); /*68:printf*/ | |
| 33523 | + return Printf::sample(); /*71:printf*/ | |
| 33380 | 33524 | } |
| 33381 | 33525 | |
| 33382 | 33526 | /** |
| @@ -33424,7 +33568,7 @@ class Obj4 { | ||
| 33424 | 33568 | * @return PrivateClass |
| 33425 | 33569 | */ |
| 33426 | 33570 | public static function samplePrivate(): PrivateClass { |
| 33427 | - return PrivateClass::sample(); /*69:private*/ | |
| 33571 | + return PrivateClass::sample(); /*72:private*/ | |
| 33428 | 33572 | } |
| 33429 | 33573 | |
| 33430 | 33574 | /** |
| @@ -33472,7 +33616,7 @@ class Obj4 { | ||
| 33472 | 33616 | * @return ProtectedClass |
| 33473 | 33617 | */ |
| 33474 | 33618 | public static function sampleProtected(): ProtectedClass { |
| 33475 | - return ProtectedClass::sample(); /*70:protected*/ | |
| 33619 | + return ProtectedClass::sample(); /*73:protected*/ | |
| 33476 | 33620 | } |
| 33477 | 33621 | |
| 33478 | 33622 | /** |
| @@ -33520,7 +33664,7 @@ class Obj4 { | ||
| 33520 | 33664 | * @return Protocol |
| 33521 | 33665 | */ |
| 33522 | 33666 | public static function sampleProtocol(): Protocol { |
| 33523 | - return Protocol::sample(); /*71:protocol*/ | |
| 33667 | + return Protocol::sample(); /*74:protocol*/ | |
| 33524 | 33668 | } |
| 33525 | 33669 | |
| 33526 | 33670 | /** |
| @@ -33568,7 +33712,7 @@ class Obj4 { | ||
| 33568 | 33712 | * @return PublicClass |
| 33569 | 33713 | */ |
| 33570 | 33714 | public static function samplePublic(): PublicClass { |
| 33571 | - return PublicClass::sample(); /*72:public*/ | |
| 33715 | + return PublicClass::sample(); /*75:public*/ | |
| 33572 | 33716 | } |
| 33573 | 33717 | |
| 33574 | 33718 | /** |
| @@ -33616,7 +33760,7 @@ class Obj4 { | ||
| 33616 | 33760 | * @return Quicktype |
| 33617 | 33761 | */ |
| 33618 | 33762 | public static function sampleQuicktype(): Quicktype { |
| 33619 | - return Quicktype::sample(); /*73:quicktype*/ | |
| 33763 | + return Quicktype::sample(); /*76:quicktype*/ | |
| 33620 | 33764 | } |
| 33621 | 33765 | |
| 33622 | 33766 | /** |
| @@ -33664,7 +33808,7 @@ class Obj4 { | ||
| 33664 | 33808 | * @return Raise |
| 33665 | 33809 | */ |
| 33666 | 33810 | public static function sampleRaise(): Raise { |
| 33667 | - return Raise::sample(); /*74:raise*/ | |
| 33811 | + return Raise::sample(); /*77:raise*/ | |
| 33668 | 33812 | } |
| 33669 | 33813 | |
| 33670 | 33814 | /** |
| @@ -33712,7 +33856,7 @@ class Obj4 { | ||
| 33712 | 33856 | * @return Range |
| 33713 | 33857 | */ |
| 33714 | 33858 | public static function sampleRange(): Range { |
| 33715 | - return Range::sample(); /*75:range*/ | |
| 33859 | + return Range::sample(); /*78:range*/ | |
| 33716 | 33860 | } |
| 33717 | 33861 | |
| 33718 | 33862 | /** |
| @@ -33760,7 +33904,7 @@ class Obj4 { | ||
| 33760 | 33904 | * @return ReadonlyClass |
| 33761 | 33905 | */ |
| 33762 | 33906 | public static function sampleReadonly(): ReadonlyClass { |
| 33763 | - return ReadonlyClass::sample(); /*76:readonly*/ | |
| 33907 | + return ReadonlyClass::sample(); /*79:readonly*/ | |
| 33764 | 33908 | } |
| 33765 | 33909 | |
| 33766 | 33910 | /** |
| @@ -33808,7 +33952,7 @@ class Obj4 { | ||
| 33808 | 33952 | * @return Ref |
| 33809 | 33953 | */ |
| 33810 | 33954 | public static function sampleRef(): Ref { |
| 33811 | - return Ref::sample(); /*77:ref*/ | |
| 33955 | + return Ref::sample(); /*80:ref*/ | |
| 33812 | 33956 | } |
| 33813 | 33957 | |
| 33814 | 33958 | /** |
| @@ -33856,7 +34000,7 @@ class Obj4 { | ||
| 33856 | 34000 | * @return RegExp |
| 33857 | 34001 | */ |
| 33858 | 34002 | public static function sampleRegExp(): RegExp { |
| 33859 | - return RegExp::sample(); /*78:regExp*/ | |
| 34003 | + return RegExp::sample(); /*81:regExp*/ | |
| 33860 | 34004 | } |
| 33861 | 34005 | |
| 33862 | 34006 | /** |
| @@ -33904,7 +34048,7 @@ class Obj4 { | ||
| 33904 | 34048 | * @return Register |
| 33905 | 34049 | */ |
| 33906 | 34050 | public static function sampleRegister(): Register { |
| 33907 | - return Register::sample(); /*79:register*/ | |
| 34051 | + return Register::sample(); /*82:register*/ | |
| 33908 | 34052 | } |
| 33909 | 34053 | |
| 33910 | 34054 | /** |
| @@ -33952,7 +34096,7 @@ class Obj4 { | ||
| 33952 | 34096 | * @return ReinterpretCast |
| 33953 | 34097 | */ |
| 33954 | 34098 | public static function sampleReinterpretCast(): ReinterpretCast { |
| 33955 | - return ReinterpretCast::sample(); /*80:reinterpretCast*/ | |
| 34099 | + return ReinterpretCast::sample(); /*83:reinterpretCast*/ | |
| 33956 | 34100 | } |
| 33957 | 34101 | |
| 33958 | 34102 | /** |
| @@ -34000,7 +34144,7 @@ class Obj4 { | ||
| 34000 | 34144 | * @return Repeat |
| 34001 | 34145 | */ |
| 34002 | 34146 | public static function sampleRepeat(): Repeat { |
| 34003 | - return Repeat::sample(); /*81:repeat*/ | |
| 34147 | + return Repeat::sample(); /*84:repeat*/ | |
| 34004 | 34148 | } |
| 34005 | 34149 | |
| 34006 | 34150 | /** |
| @@ -34048,7 +34192,7 @@ class Obj4 { | ||
| 34048 | 34192 | * @return RequireClass |
| 34049 | 34193 | */ |
| 34050 | 34194 | public static function sampleRequire(): RequireClass { |
| 34051 | - return RequireClass::sample(); /*82:require*/ | |
| 34195 | + return RequireClass::sample(); /*85:require*/ | |
| 34052 | 34196 | } |
| 34053 | 34197 | |
| 34054 | 34198 | /** |
| @@ -34096,7 +34240,7 @@ class Obj4 { | ||
| 34096 | 34240 | * @return Required |
| 34097 | 34241 | */ |
| 34098 | 34242 | public static function sampleRequired(): Required { |
| 34099 | - return Required::sample(); /*83:required*/ | |
| 34243 | + return Required::sample(); /*86:required*/ | |
| 34100 | 34244 | } |
| 34101 | 34245 | |
| 34102 | 34246 | /** |
| @@ -34144,7 +34288,7 @@ class Obj4 { | ||
| 34144 | 34288 | * @return Requires |
| 34145 | 34289 | */ |
| 34146 | 34290 | public static function sampleRequires(): Requires { |
| 34147 | - return Requires::sample(); /*84:requires*/ | |
| 34291 | + return Requires::sample(); /*87:requires*/ | |
| 34148 | 34292 | } |
| 34149 | 34293 | |
| 34150 | 34294 | /** |
| @@ -34192,7 +34336,7 @@ class Obj4 { | ||
| 34192 | 34336 | * @return Restrict |
| 34193 | 34337 | */ |
| 34194 | 34338 | public static function sampleRestrict(): Restrict { |
| 34195 | - return Restrict::sample(); /*85:restrict*/ | |
| 34339 | + return Restrict::sample(); /*88:restrict*/ | |
| 34196 | 34340 | } |
| 34197 | 34341 | |
| 34198 | 34342 | /** |
| @@ -34240,7 +34384,7 @@ class Obj4 { | ||
| 34240 | 34384 | * @return Retain |
| 34241 | 34385 | */ |
| 34242 | 34386 | public static function sampleRetain(): Retain { |
| 34243 | - return Retain::sample(); /*86:retain*/ | |
| 34387 | + return Retain::sample(); /*89:retain*/ | |
| 34244 | 34388 | } |
| 34245 | 34389 | |
| 34246 | 34390 | /** |
| @@ -34288,7 +34432,7 @@ class Obj4 { | ||
| 34288 | 34432 | * @return Rethrows |
| 34289 | 34433 | */ |
| 34290 | 34434 | public static function sampleRethrows(): Rethrows { |
| 34291 | - return Rethrows::sample(); /*87:rethrows*/ | |
| 34435 | + return Rethrows::sample(); /*90:rethrows*/ | |
| 34292 | 34436 | } |
| 34293 | 34437 | |
| 34294 | 34438 | /** |
| @@ -34336,7 +34480,7 @@ class Obj4 { | ||
| 34336 | 34480 | * @return ReturnClass |
| 34337 | 34481 | */ |
| 34338 | 34482 | public static function sampleReturn(): ReturnClass { |
| 34339 | - return ReturnClass::sample(); /*88:return*/ | |
| 34483 | + return ReturnClass::sample(); /*91:return*/ | |
| 34340 | 34484 | } |
| 34341 | 34485 | |
| 34342 | 34486 | /** |
| @@ -34384,7 +34528,7 @@ class Obj4 { | ||
| 34384 | 34528 | * @return Right |
| 34385 | 34529 | */ |
| 34386 | 34530 | public static function sampleRight(): Right { |
| 34387 | - return Right::sample(); /*89:right*/ | |
| 34531 | + return Right::sample(); /*92:right*/ | |
| 34388 | 34532 | } |
| 34389 | 34533 | |
| 34390 | 34534 | /** |
| @@ -34432,7 +34576,7 @@ class Obj4 { | ||
| 34432 | 34576 | * @return RuntimeType |
| 34433 | 34577 | */ |
| 34434 | 34578 | public static function sampleRuntimeType(): RuntimeType { |
| 34435 | - return RuntimeType::sample(); /*90:runtimeType*/ | |
| 34579 | + return RuntimeType::sample(); /*93:runtimeType*/ | |
| 34436 | 34580 | } |
| 34437 | 34581 | |
| 34438 | 34582 | /** |
| @@ -34480,7 +34624,7 @@ class Obj4 { | ||
| 34480 | 34624 | * @return S |
| 34481 | 34625 | */ |
| 34482 | 34626 | public static function sampleS(): S { |
| 34483 | - return S::sample(); /*91:s*/ | |
| 34627 | + return S::sample(); /*94:s*/ | |
| 34484 | 34628 | } |
| 34485 | 34629 | |
| 34486 | 34630 | /** |
| @@ -34528,151 +34672,7 @@ class Obj4 { | ||
| 34528 | 34672 | * @return Sbyte |
| 34529 | 34673 | */ |
| 34530 | 34674 | public static function sampleSbyte(): Sbyte { |
| 34531 | - return Sbyte::sample(); /*92:sbyte*/ | |
| 34532 | - } | |
| 34533 | - | |
| 34534 | - /** | |
| 34535 | - * @param stdClass $value | |
| 34536 | - * @throws Exception | |
| 34537 | - * @return Sealed | |
| 34538 | - */ | |
| 34539 | - public static function fromSealed(stdClass $value): Sealed { | |
| 34540 | - return Sealed::from($value); /*class*/ | |
| 34541 | - } | |
| 34542 | - | |
| 34543 | - /** | |
| 34544 | - * @throws Exception | |
| 34545 | - * @return stdClass | |
| 34546 | - */ | |
| 34547 | - public function toSealed(): stdClass { | |
| 34548 | - if (Obj4::validateSealed($this->sealed)) { | |
| 34549 | - return $this->sealed->to(); /*class*/ | |
| 34550 | - } | |
| 34551 | - throw new Exception('never get to this Obj4::sealed'); | |
| 34552 | - } | |
| 34553 | - | |
| 34554 | - /** | |
| 34555 | - * @param Sealed | |
| 34556 | - * @return bool | |
| 34557 | - * @throws Exception | |
| 34558 | - */ | |
| 34559 | - public static function validateSealed(Sealed $value): bool { | |
| 34560 | - $value->validate(); | |
| 34561 | - return true; | |
| 34562 | - } | |
| 34563 | - | |
| 34564 | - /** | |
| 34565 | - * @throws Exception | |
| 34566 | - * @return Sealed | |
| 34567 | - */ | |
| 34568 | - public function getSealed(): Sealed { | |
| 34569 | - if (Obj4::validateSealed($this->sealed)) { | |
| 34570 | - return $this->sealed; | |
| 34571 | - } | |
| 34572 | - throw new Exception('never get to getSealed Obj4::sealed'); | |
| 34573 | - } | |
| 34574 | - | |
| 34575 | - /** | |
| 34576 | - * @return Sealed | |
| 34577 | - */ | |
| 34578 | - public static function sampleSealed(): Sealed { | |
| 34579 | - return Sealed::sample(); /*93:sealed*/ | |
| 34580 | - } | |
| 34581 | - | |
| 34582 | - /** | |
| 34583 | - * @param stdClass $value | |
| 34584 | - * @throws Exception | |
| 34585 | - * @return Sel | |
| 34586 | - */ | |
| 34587 | - public static function fromSel(stdClass $value): Sel { | |
| 34588 | - return Sel::from($value); /*class*/ | |
| 34589 | - } | |
| 34590 | - | |
| 34591 | - /** | |
| 34592 | - * @throws Exception | |
| 34593 | - * @return stdClass | |
| 34594 | - */ | |
| 34595 | - public function toSel(): stdClass { | |
| 34596 | - if (Obj4::validateSel($this->sel)) { | |
| 34597 | - return $this->sel->to(); /*class*/ | |
| 34598 | - } | |
| 34599 | - throw new Exception('never get to this Obj4::sel'); | |
| 34600 | - } | |
| 34601 | - | |
| 34602 | - /** | |
| 34603 | - * @param Sel | |
| 34604 | - * @return bool | |
| 34605 | - * @throws Exception | |
| 34606 | - */ | |
| 34607 | - public static function validateSel(Sel $value): bool { | |
| 34608 | - $value->validate(); | |
| 34609 | - return true; | |
| 34610 | - } | |
| 34611 | - | |
| 34612 | - /** | |
| 34613 | - * @throws Exception | |
| 34614 | - * @return Sel | |
| 34615 | - */ | |
| 34616 | - public function getSel(): Sel { | |
| 34617 | - if (Obj4::validateSel($this->sel)) { | |
| 34618 | - return $this->sel; | |
| 34619 | - } | |
| 34620 | - throw new Exception('never get to getSel Obj4::sel'); | |
| 34621 | - } | |
| 34622 | - | |
| 34623 | - /** | |
| 34624 | - * @return Sel | |
| 34625 | - */ | |
| 34626 | - public static function sampleSel(): Sel { | |
| 34627 | - return Sel::sample(); /*94:sel*/ | |
| 34628 | - } | |
| 34629 | - | |
| 34630 | - /** | |
| 34631 | - * @param stdClass $value | |
| 34632 | - * @throws Exception | |
| 34633 | - * @return Select | |
| 34634 | - */ | |
| 34635 | - public static function fromSelect(stdClass $value): Select { | |
| 34636 | - return Select::from($value); /*class*/ | |
| 34637 | - } | |
| 34638 | - | |
| 34639 | - /** | |
| 34640 | - * @throws Exception | |
| 34641 | - * @return stdClass | |
| 34642 | - */ | |
| 34643 | - public function toSelect(): stdClass { | |
| 34644 | - if (Obj4::validateSelect($this->select)) { | |
| 34645 | - return $this->select->to(); /*class*/ | |
| 34646 | - } | |
| 34647 | - throw new Exception('never get to this Obj4::select'); | |
| 34648 | - } | |
| 34649 | - | |
| 34650 | - /** | |
| 34651 | - * @param Select | |
| 34652 | - * @return bool | |
| 34653 | - * @throws Exception | |
| 34654 | - */ | |
| 34655 | - public static function validateSelect(Select $value): bool { | |
| 34656 | - $value->validate(); | |
| 34657 | - return true; | |
| 34658 | - } | |
| 34659 | - | |
| 34660 | - /** | |
| 34661 | - * @throws Exception | |
| 34662 | - * @return Select | |
| 34663 | - */ | |
| 34664 | - public function getSelect(): Select { | |
| 34665 | - if (Obj4::validateSelect($this->select)) { | |
| 34666 | - return $this->select; | |
| 34667 | - } | |
| 34668 | - throw new Exception('never get to getSelect Obj4::select'); | |
| 34669 | - } | |
| 34670 | - | |
| 34671 | - /** | |
| 34672 | - * @return Select | |
| 34673 | - */ | |
| 34674 | - public static function sampleSelect(): Select { | |
| 34675 | - return Select::sample(); /*95:select*/ | |
| 34675 | + return Sbyte::sample(); /*95:sbyte*/ | |
| 34676 | 34676 | } |
| 34677 | 34677 | |
| 34678 | 34678 | /** |
| @@ -34682,6 +34682,7 @@ class Obj4 { | ||
| 34682 | 34682 | public function validate(): bool { |
| 34683 | 34683 | return Obj4::validateDummy($this->dummy) |
| 34684 | 34684 | || Obj4::validateNoSuchMethod($this->noSuchMethod) |
| 34685 | + || Obj4::validateNoexcept($this->noexcept) | |
| 34685 | 34686 | || Obj4::validateNonatomic($this->nonatomic) |
| 34686 | 34687 | || Obj4::validateNone($this->none) |
| 34687 | 34688 | || Obj4::validateNonlocal($this->nonlocal) |
| @@ -34699,6 +34700,8 @@ class Obj4 { | ||
| 34699 | 34700 | || Obj4::validateObj4Protocol($this->obj4Protocol) |
| 34700 | 34701 | || Obj4::validateObject($this->object) |
| 34701 | 34702 | || Obj4::validateObjectMapper($this->objectMapper) |
| 34703 | + || Obj4::validateObjectReader($this->objectReader) | |
| 34704 | + || Obj4::validateObjectWriter($this->objectWriter) | |
| 34702 | 34705 | || Obj4::validateOf($this->of) |
| 34703 | 34706 | || Obj4::validateOneway($this->oneway) |
| 34704 | 34707 | || Obj4::validateOpen($this->open) |
| @@ -34741,10 +34744,7 @@ class Obj4 { | ||
| 34741 | 34744 | || Obj4::validateRight($this->right) |
| 34742 | 34745 | || Obj4::validateRuntimeType($this->runtimeType) |
| 34743 | 34746 | || Obj4::validateS($this->s) |
| 34744 | - || Obj4::validateSbyte($this->sbyte) | |
| 34745 | - || Obj4::validateSealed($this->sealed) | |
| 34746 | - || Obj4::validateSel($this->sel) | |
| 34747 | - || Obj4::validateSelect($this->select); | |
| 34747 | + || Obj4::validateSbyte($this->sbyte); | |
| 34748 | 34748 | } |
| 34749 | 34749 | |
| 34750 | 34750 | /** |
| @@ -34755,6 +34755,7 @@ class Obj4 { | ||
| 34755 | 34755 | $out = new stdClass(); |
| 34756 | 34756 | $out->{'dummy'} = $this->toDummy(); |
| 34757 | 34757 | $out->{'noSuchMethod'} = $this->toNoSuchMethod(); |
| 34758 | + $out->{'noexcept'} = $this->toNoexcept(); | |
| 34758 | 34759 | $out->{'nonatomic'} = $this->toNonatomic(); |
| 34759 | 34760 | $out->{'None'} = $this->toNone(); |
| 34760 | 34761 | $out->{'nonlocal'} = $this->toNonlocal(); |
| @@ -34772,6 +34773,8 @@ class Obj4 { | ||
| 34772 | 34773 | $out->{'protocol'} = $this->toObj4Protocol(); |
| 34773 | 34774 | $out->{'object'} = $this->toObject(); |
| 34774 | 34775 | $out->{'ObjectMapper'} = $this->toObjectMapper(); |
| 34776 | + $out->{'ObjectReader'} = $this->toObjectReader(); | |
| 34777 | + $out->{'ObjectWriter'} = $this->toObjectWriter(); | |
| 34775 | 34778 | $out->{'of'} = $this->toOf(); |
| 34776 | 34779 | $out->{'oneway'} = $this->toOneway(); |
| 34777 | 34780 | $out->{'open'} = $this->toOpen(); |
| @@ -34815,9 +34818,6 @@ class Obj4 { | ||
| 34815 | 34818 | $out->{'runtimeType'} = $this->toRuntimeType(); |
| 34816 | 34819 | $out->{'s'} = $this->toS(); |
| 34817 | 34820 | $out->{'sbyte'} = $this->toSbyte(); |
| 34818 | - $out->{'sealed'} = $this->toSealed(); | |
| 34819 | - $out->{'SEL'} = $this->toSel(); | |
| 34820 | - $out->{'select'} = $this->toSelect(); | |
| 34821 | 34821 | return $out; |
| 34822 | 34822 | } |
| 34823 | 34823 | |
| @@ -34833,6 +34833,9 @@ class Obj4 { | ||
| 34833 | 34833 | if (!property_exists($obj, 'noSuchMethod')) { |
| 34834 | 34834 | throw new Exception("Missing required property"); |
| 34835 | 34835 | } |
| 34836 | + if (!property_exists($obj, 'noexcept')) { | |
| 34837 | + throw new Exception("Missing required property"); | |
| 34838 | + } | |
| 34836 | 34839 | if (!property_exists($obj, 'nonatomic')) { |
| 34837 | 34840 | throw new Exception("Missing required property"); |
| 34838 | 34841 | } |
| @@ -34884,6 +34887,12 @@ class Obj4 { | ||
| 34884 | 34887 | if (!property_exists($obj, 'ObjectMapper')) { |
| 34885 | 34888 | throw new Exception("Missing required property"); |
| 34886 | 34889 | } |
| 34890 | + if (!property_exists($obj, 'ObjectReader')) { | |
| 34891 | + throw new Exception("Missing required property"); | |
| 34892 | + } | |
| 34893 | + if (!property_exists($obj, 'ObjectWriter')) { | |
| 34894 | + throw new Exception("Missing required property"); | |
| 34895 | + } | |
| 34887 | 34896 | if (!property_exists($obj, 'of')) { |
| 34888 | 34897 | throw new Exception("Missing required property"); |
| 34889 | 34898 | } |
| @@ -35013,18 +35022,10 @@ class Obj4 { | ||
| 35013 | 35022 | if (!property_exists($obj, 'sbyte')) { |
| 35014 | 35023 | throw new Exception("Missing required property"); |
| 35015 | 35024 | } |
| 35016 | - if (!property_exists($obj, 'sealed')) { | |
| 35017 | - throw new Exception("Missing required property"); | |
| 35018 | - } | |
| 35019 | - if (!property_exists($obj, 'SEL')) { | |
| 35020 | - throw new Exception("Missing required property"); | |
| 35021 | - } | |
| 35022 | - if (!property_exists($obj, 'select')) { | |
| 35023 | - throw new Exception("Missing required property"); | |
| 35024 | - } | |
| 35025 | 35025 | return new Obj4( |
| 35026 | 35026 | Obj4::fromDummy($obj->{'dummy'}) |
| 35027 | 35027 | ,Obj4::fromNoSuchMethod($obj->{'noSuchMethod'}) |
| 35028 | + ,Obj4::fromNoexcept($obj->{'noexcept'}) | |
| 35028 | 35029 | ,Obj4::fromNonatomic($obj->{'nonatomic'}) |
| 35029 | 35030 | ,Obj4::fromNone($obj->{'None'}) |
| 35030 | 35031 | ,Obj4::fromNonlocal($obj->{'nonlocal'}) |
| @@ -35042,6 +35043,8 @@ class Obj4 { | ||
| 35042 | 35043 | ,Obj4::fromObj4Protocol($obj->{'protocol'}) |
| 35043 | 35044 | ,Obj4::fromObject($obj->{'object'}) |
| 35044 | 35045 | ,Obj4::fromObjectMapper($obj->{'ObjectMapper'}) |
| 35046 | + ,Obj4::fromObjectReader($obj->{'ObjectReader'}) | |
| 35047 | + ,Obj4::fromObjectWriter($obj->{'ObjectWriter'}) | |
| 35045 | 35048 | ,Obj4::fromOf($obj->{'of'}) |
| 35046 | 35049 | ,Obj4::fromOneway($obj->{'oneway'}) |
| 35047 | 35050 | ,Obj4::fromOpen($obj->{'open'}) |
| @@ -35085,9 +35088,6 @@ class Obj4 { | ||
| 35085 | 35088 | ,Obj4::fromRuntimeType($obj->{'runtimeType'}) |
| 35086 | 35089 | ,Obj4::fromS($obj->{'s'}) |
| 35087 | 35090 | ,Obj4::fromSbyte($obj->{'sbyte'}) |
| 35088 | - ,Obj4::fromSealed($obj->{'sealed'}) | |
| 35089 | - ,Obj4::fromSel($obj->{'SEL'}) | |
| 35090 | - ,Obj4::fromSelect($obj->{'select'}) | |
| 35091 | 35091 | ); |
| 35092 | 35092 | } |
| 35093 | 35093 | |
| @@ -35098,6 +35098,7 @@ class Obj4 { | ||
| 35098 | 35098 | return new Obj4( |
| 35099 | 35099 | Obj4::sampleDummy() |
| 35100 | 35100 | ,Obj4::sampleNoSuchMethod() |
| 35101 | + ,Obj4::sampleNoexcept() | |
| 35101 | 35102 | ,Obj4::sampleNonatomic() |
| 35102 | 35103 | ,Obj4::sampleNone() |
| 35103 | 35104 | ,Obj4::sampleNonlocal() |
| @@ -35115,6 +35116,8 @@ class Obj4 { | ||
| 35115 | 35116 | ,Obj4::sampleObj4Protocol() |
| 35116 | 35117 | ,Obj4::sampleObject() |
| 35117 | 35118 | ,Obj4::sampleObjectMapper() |
| 35119 | + ,Obj4::sampleObjectReader() | |
| 35120 | + ,Obj4::sampleObjectWriter() | |
| 35118 | 35121 | ,Obj4::sampleOf() |
| 35119 | 35122 | ,Obj4::sampleOneway() |
| 35120 | 35123 | ,Obj4::sampleOpen() |
| @@ -35158,9 +35161,6 @@ class Obj4 { | ||
| 35158 | 35161 | ,Obj4::sampleRuntimeType() |
| 35159 | 35162 | ,Obj4::sampleS() |
| 35160 | 35163 | ,Obj4::sampleSbyte() |
| 35161 | - ,Obj4::sampleSealed() | |
| 35162 | - ,Obj4::sampleSel() | |
| 35163 | - ,Obj4::sampleSelect() | |
| 35164 | 35164 | ); |
| 35165 | 35165 | } |
| 35166 | 35166 | } |
| @@ -35266,6 +35266,107 @@ class NoSuchMethod { | ||
| 35266 | 35266 | } |
| 35267 | 35267 | } |
| 35268 | 35268 | |
| 35269 | +// This is an autogenerated file:Noexcept | |
| 35270 | + | |
| 35271 | +class Noexcept { | |
| 35272 | + private int $noexcept; // json:noexcept Required | |
| 35273 | + | |
| 35274 | + /** | |
| 35275 | + * @param int $noexcept | |
| 35276 | + */ | |
| 35277 | + public function __construct(int $noexcept) { | |
| 35278 | + $this->noexcept = $noexcept; | |
| 35279 | + } | |
| 35280 | + | |
| 35281 | + /** | |
| 35282 | + * @param int $value | |
| 35283 | + * @throws Exception | |
| 35284 | + * @return int | |
| 35285 | + */ | |
| 35286 | + public static function fromNoexcept(int $value): int { | |
| 35287 | + return $value; /*int*/ | |
| 35288 | + } | |
| 35289 | + | |
| 35290 | + /** | |
| 35291 | + * @throws Exception | |
| 35292 | + * @return int | |
| 35293 | + */ | |
| 35294 | + public function toNoexcept(): int { | |
| 35295 | + if (Noexcept::validateNoexcept($this->noexcept)) { | |
| 35296 | + return $this->noexcept; /*int*/ | |
| 35297 | + } | |
| 35298 | + throw new Exception('never get to this Noexcept::noexcept'); | |
| 35299 | + } | |
| 35300 | + | |
| 35301 | + /** | |
| 35302 | + * @param int | |
| 35303 | + * @return bool | |
| 35304 | + * @throws Exception | |
| 35305 | + */ | |
| 35306 | + public static function validateNoexcept(int $value): bool { | |
| 35307 | + return true; | |
| 35308 | + } | |
| 35309 | + | |
| 35310 | + /** | |
| 35311 | + * @throws Exception | |
| 35312 | + * @return int | |
| 35313 | + */ | |
| 35314 | + public function getNoexcept(): int { | |
| 35315 | + if (Noexcept::validateNoexcept($this->noexcept)) { | |
| 35316 | + return $this->noexcept; | |
| 35317 | + } | |
| 35318 | + throw new Exception('never get to getNoexcept Noexcept::noexcept'); | |
| 35319 | + } | |
| 35320 | + | |
| 35321 | + /** | |
| 35322 | + * @return int | |
| 35323 | + */ | |
| 35324 | + public static function sampleNoexcept(): int { | |
| 35325 | + return 31; /*31:noexcept*/ | |
| 35326 | + } | |
| 35327 | + | |
| 35328 | + /** | |
| 35329 | + * @throws Exception | |
| 35330 | + * @return bool | |
| 35331 | + */ | |
| 35332 | + public function validate(): bool { | |
| 35333 | + return Noexcept::validateNoexcept($this->noexcept); | |
| 35334 | + } | |
| 35335 | + | |
| 35336 | + /** | |
| 35337 | + * @return stdClass | |
| 35338 | + * @throws Exception | |
| 35339 | + */ | |
| 35340 | + public function to(): stdClass { | |
| 35341 | + $out = new stdClass(); | |
| 35342 | + $out->{'noexcept'} = $this->toNoexcept(); | |
| 35343 | + return $out; | |
| 35344 | + } | |
| 35345 | + | |
| 35346 | + /** | |
| 35347 | + * @param stdClass $obj | |
| 35348 | + * @return Noexcept | |
| 35349 | + * @throws Exception | |
| 35350 | + */ | |
| 35351 | + public static function from(stdClass $obj): Noexcept { | |
| 35352 | + if (!property_exists($obj, 'noexcept')) { | |
| 35353 | + throw new Exception("Missing required property"); | |
| 35354 | + } | |
| 35355 | + return new Noexcept( | |
| 35356 | + Noexcept::fromNoexcept($obj->{'noexcept'}) | |
| 35357 | + ); | |
| 35358 | + } | |
| 35359 | + | |
| 35360 | + /** | |
| 35361 | + * @return Noexcept | |
| 35362 | + */ | |
| 35363 | + public static function sample(): Noexcept { | |
| 35364 | + return new Noexcept( | |
| 35365 | + Noexcept::sampleNoexcept() | |
| 35366 | + ); | |
| 35367 | + } | |
| 35368 | +} | |
| 35369 | + | |
| 35269 | 35370 | // This is an autogenerated file:Nonatomic |
| 35270 | 35371 | |
| 35271 | 35372 | class Nonatomic { |
| @@ -36983,6 +37084,208 @@ class ObjectMapper { | ||
| 36983 | 37084 | } |
| 36984 | 37085 | } |
| 36985 | 37086 | |
| 37087 | +// This is an autogenerated file:ObjectReader | |
| 37088 | + | |
| 37089 | +class ObjectReader { | |
| 37090 | + private int $objectReader; // json:ObjectReader Required | |
| 37091 | + | |
| 37092 | + /** | |
| 37093 | + * @param int $objectReader | |
| 37094 | + */ | |
| 37095 | + public function __construct(int $objectReader) { | |
| 37096 | + $this->objectReader = $objectReader; | |
| 37097 | + } | |
| 37098 | + | |
| 37099 | + /** | |
| 37100 | + * @param int $value | |
| 37101 | + * @throws Exception | |
| 37102 | + * @return int | |
| 37103 | + */ | |
| 37104 | + public static function fromObjectReader(int $value): int { | |
| 37105 | + return $value; /*int*/ | |
| 37106 | + } | |
| 37107 | + | |
| 37108 | + /** | |
| 37109 | + * @throws Exception | |
| 37110 | + * @return int | |
| 37111 | + */ | |
| 37112 | + public function toObjectReader(): int { | |
| 37113 | + if (ObjectReader::validateObjectReader($this->objectReader)) { | |
| 37114 | + return $this->objectReader; /*int*/ | |
| 37115 | + } | |
| 37116 | + throw new Exception('never get to this ObjectReader::objectReader'); | |
| 37117 | + } | |
| 37118 | + | |
| 37119 | + /** | |
| 37120 | + * @param int | |
| 37121 | + * @return bool | |
| 37122 | + * @throws Exception | |
| 37123 | + */ | |
| 37124 | + public static function validateObjectReader(int $value): bool { | |
| 37125 | + return true; | |
| 37126 | + } | |
| 37127 | + | |
| 37128 | + /** | |
| 37129 | + * @throws Exception | |
| 37130 | + * @return int | |
| 37131 | + */ | |
| 37132 | + public function getObjectReader(): int { | |
| 37133 | + if (ObjectReader::validateObjectReader($this->objectReader)) { | |
| 37134 | + return $this->objectReader; | |
| 37135 | + } | |
| 37136 | + throw new Exception('never get to getObjectReader ObjectReader::objectReader'); | |
| 37137 | + } | |
| 37138 | + | |
| 37139 | + /** | |
| 37140 | + * @return int | |
| 37141 | + */ | |
| 37142 | + public static function sampleObjectReader(): int { | |
| 37143 | + return 31; /*31:objectReader*/ | |
| 37144 | + } | |
| 37145 | + | |
| 37146 | + /** | |
| 37147 | + * @throws Exception | |
| 37148 | + * @return bool | |
| 37149 | + */ | |
| 37150 | + public function validate(): bool { | |
| 37151 | + return ObjectReader::validateObjectReader($this->objectReader); | |
| 37152 | + } | |
| 37153 | + | |
| 37154 | + /** | |
| 37155 | + * @return stdClass | |
| 37156 | + * @throws Exception | |
| 37157 | + */ | |
| 37158 | + public function to(): stdClass { | |
| 37159 | + $out = new stdClass(); | |
| 37160 | + $out->{'ObjectReader'} = $this->toObjectReader(); | |
| 37161 | + return $out; | |
| 37162 | + } | |
| 37163 | + | |
| 37164 | + /** | |
| 37165 | + * @param stdClass $obj | |
| 37166 | + * @return ObjectReader | |
| 37167 | + * @throws Exception | |
| 37168 | + */ | |
| 37169 | + public static function from(stdClass $obj): ObjectReader { | |
| 37170 | + if (!property_exists($obj, 'ObjectReader')) { | |
| 37171 | + throw new Exception("Missing required property"); | |
| 37172 | + } | |
| 37173 | + return new ObjectReader( | |
| 37174 | + ObjectReader::fromObjectReader($obj->{'ObjectReader'}) | |
| 37175 | + ); | |
| 37176 | + } | |
| 37177 | + | |
| 37178 | + /** | |
| 37179 | + * @return ObjectReader | |
| 37180 | + */ | |
| 37181 | + public static function sample(): ObjectReader { | |
| 37182 | + return new ObjectReader( | |
| 37183 | + ObjectReader::sampleObjectReader() | |
| 37184 | + ); | |
| 37185 | + } | |
| 37186 | +} | |
| 37187 | + | |
| 37188 | +// This is an autogenerated file:ObjectWriter | |
| 37189 | + | |
| 37190 | +class ObjectWriter { | |
| 37191 | + private int $objectWriter; // json:ObjectWriter Required | |
| 37192 | + | |
| 37193 | + /** | |
| 37194 | + * @param int $objectWriter | |
| 37195 | + */ | |
| 37196 | + public function __construct(int $objectWriter) { | |
| 37197 | + $this->objectWriter = $objectWriter; | |
| 37198 | + } | |
| 37199 | + | |
| 37200 | + /** | |
| 37201 | + * @param int $value | |
| 37202 | + * @throws Exception | |
| 37203 | + * @return int | |
| 37204 | + */ | |
| 37205 | + public static function fromObjectWriter(int $value): int { | |
| 37206 | + return $value; /*int*/ | |
| 37207 | + } | |
| 37208 | + | |
| 37209 | + /** | |
| 37210 | + * @throws Exception | |
| 37211 | + * @return int | |
| 37212 | + */ | |
| 37213 | + public function toObjectWriter(): int { | |
| 37214 | + if (ObjectWriter::validateObjectWriter($this->objectWriter)) { | |
| 37215 | + return $this->objectWriter; /*int*/ | |
| 37216 | + } | |
| 37217 | + throw new Exception('never get to this ObjectWriter::objectWriter'); | |
| 37218 | + } | |
| 37219 | + | |
| 37220 | + /** | |
| 37221 | + * @param int | |
| 37222 | + * @return bool | |
| 37223 | + * @throws Exception | |
| 37224 | + */ | |
| 37225 | + public static function validateObjectWriter(int $value): bool { | |
| 37226 | + return true; | |
| 37227 | + } | |
| 37228 | + | |
| 37229 | + /** | |
| 37230 | + * @throws Exception | |
| 37231 | + * @return int | |
| 37232 | + */ | |
| 37233 | + public function getObjectWriter(): int { | |
| 37234 | + if (ObjectWriter::validateObjectWriter($this->objectWriter)) { | |
| 37235 | + return $this->objectWriter; | |
| 37236 | + } | |
| 37237 | + throw new Exception('never get to getObjectWriter ObjectWriter::objectWriter'); | |
| 37238 | + } | |
| 37239 | + | |
| 37240 | + /** | |
| 37241 | + * @return int | |
| 37242 | + */ | |
| 37243 | + public static function sampleObjectWriter(): int { | |
| 37244 | + return 31; /*31:objectWriter*/ | |
| 37245 | + } | |
| 37246 | + | |
| 37247 | + /** | |
| 37248 | + * @throws Exception | |
| 37249 | + * @return bool | |
| 37250 | + */ | |
| 37251 | + public function validate(): bool { | |
| 37252 | + return ObjectWriter::validateObjectWriter($this->objectWriter); | |
| 37253 | + } | |
| 37254 | + | |
| 37255 | + /** | |
| 37256 | + * @return stdClass | |
| 37257 | + * @throws Exception | |
| 37258 | + */ | |
| 37259 | + public function to(): stdClass { | |
| 37260 | + $out = new stdClass(); | |
| 37261 | + $out->{'ObjectWriter'} = $this->toObjectWriter(); | |
| 37262 | + return $out; | |
| 37263 | + } | |
| 37264 | + | |
| 37265 | + /** | |
| 37266 | + * @param stdClass $obj | |
| 37267 | + * @return ObjectWriter | |
| 37268 | + * @throws Exception | |
| 37269 | + */ | |
| 37270 | + public static function from(stdClass $obj): ObjectWriter { | |
| 37271 | + if (!property_exists($obj, 'ObjectWriter')) { | |
| 37272 | + throw new Exception("Missing required property"); | |
| 37273 | + } | |
| 37274 | + return new ObjectWriter( | |
| 37275 | + ObjectWriter::fromObjectWriter($obj->{'ObjectWriter'}) | |
| 37276 | + ); | |
| 37277 | + } | |
| 37278 | + | |
| 37279 | + /** | |
| 37280 | + * @return ObjectWriter | |
| 37281 | + */ | |
| 37282 | + public static function sample(): ObjectWriter { | |
| 37283 | + return new ObjectWriter( | |
| 37284 | + ObjectWriter::sampleObjectWriter() | |
| 37285 | + ); | |
| 37286 | + } | |
| 37287 | +} | |
| 37288 | + | |
| 36986 | 37289 | // This is an autogenerated file:Of |
| 36987 | 37290 | |
| 36988 | 37291 | class Of { |
| @@ -41329,16 +41632,208 @@ class Sbyte { | ||
| 41329 | 41632 | } |
| 41330 | 41633 | } |
| 41331 | 41634 | |
| 41332 | -// This is an autogenerated file:Sealed | |
| 41635 | +// This is an autogenerated file:Obj5 | |
| 41333 | 41636 | |
| 41334 | -class Sealed { | |
| 41335 | - private int $sealed; // json:sealed Required | |
| 41637 | +class Obj5 { | |
| 41638 | + private int $dummy; // json:dummy Required | |
| 41639 | + private Obj5Self $obj5Self; // json:self Required | |
| 41640 | + private This $obj5This; // json:this Required | |
| 41641 | + private Obj5True $obj5True; // json:true Required | |
| 41642 | + private TypeClass $obj5Type; // json:type Required | |
| 41643 | + private Sealed $sealed; // json:sealed Required | |
| 41644 | + private Sel $sel; // json:SEL Required | |
| 41645 | + private Select $select; // json:select Required | |
| 41646 | + private SelfClass $self; // json:Self Required | |
| 41647 | + private Sendable $sendable; // json:Sendable Required | |
| 41648 | + private SerializationFeature $serializationFeature; // json:SerializationFeature Required | |
| 41649 | + private Serialize $serialize; // json:serialize Required | |
| 41650 | + private SerializerProvider $serializerProvider; // json:SerializerProvider Required | |
| 41651 | + private Set $set; // json:set Required | |
| 41652 | + private Short $short; // json:short Required | |
| 41653 | + private Signed $signed; // json:signed Required | |
| 41654 | + private SimpleModule $simpleModule; // json:SimpleModule Required | |
| 41655 | + private Sizeof $sizeof; // json:sizeof Required | |
| 41656 | + private Stackalloc $stackalloc; // json:stackalloc Required | |
| 41657 | + private Standards $standards; // json:Standards Required | |
| 41658 | + private StaticClass $static; // json:static Required | |
| 41659 | + private StaticAssert $staticAssert; // json:static_assert Required | |
| 41660 | + private StaticCast $staticCast; // json:static_cast Required | |
| 41661 | + private StdDeserializer $stdDeserializer; // json:StdDeserializer Required | |
| 41662 | + private StdSerializer $stdSerializer; // json:StdSerializer Required | |
| 41663 | + private Strictfp $strictfp; // json:strictfp Required | |
| 41664 | + private StringClass $string; // json:string Required | |
| 41665 | + private Struct $struct; // json:struct Required | |
| 41666 | + private Subscript $subscript; // json:subscript Required | |
| 41667 | + private Super $super; // json:super Required | |
| 41668 | + private SwitchClass $switch; // json:switch Required | |
| 41669 | + private Symbol $symbol; // json:symbol Required | |
| 41670 | + private Synchronized $synchronized; // json:synchronized Required | |
| 41671 | + private System $system; // json:system Required | |
| 41672 | + private Template $template; // json:template Required | |
| 41673 | + private Then $then; // json:then Required | |
| 41674 | + private ThreadLocal $threadLocal; // json:thread_local Required | |
| 41675 | + private ThrowClass $throw; // json:throw Required | |
| 41676 | + private Throws $throws; // json:throws Required | |
| 41677 | + private TimeOnly $timeOnly; // json:TimeOnly Required | |
| 41678 | + private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required | |
| 41679 | + private TimeZone $timeZone; // json:TimeZone Required | |
| 41680 | + private ToJSON $toJSON; // json:to_json Required | |
| 41681 | + private ToString $toString; // json:toString Required | |
| 41682 | + private TopLevelClass $topLevel; // json:top_level Required | |
| 41683 | + private Transient $transient; // json:transient Required | |
| 41684 | + private TrueClass $true; // json:True Required | |
| 41685 | + private TryClass $try; // json:try Required | |
| 41686 | + private Type $type; // json:Type Required | |
| 41687 | + private Typealias $typealias; // json:typealias Required | |
| 41688 | + private Typedef $typedef; // json:typedef Required | |
| 41689 | + private Typeid $typeid; // json:typeid Required | |
| 41690 | + private Typename $typename; // json:typename Required | |
| 41691 | + private Typeof $typeof; // json:typeof Required | |
| 41692 | + private Uint $uint; // json:uint Required | |
| 41693 | + private Ulong $ulong; // json:ulong Required | |
| 41694 | + private Unchecked $unchecked; // json:unchecked Required | |
| 41695 | + private Undefined $undefined; // json:undefined Required | |
| 41696 | + private Union $union; // json:union Required | |
| 41697 | + private Unowned $unowned; // json:unowned Required | |
| 41698 | + private Unsafe $unsafe; // json:unsafe Required | |
| 41699 | + private Unsigned $unsigned; // json:unsigned Required | |
| 41700 | + private Ushort $ushort; // json:ushort Required | |
| 41701 | + private Using $using; // json:using Required | |
| 41702 | + private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required | |
| 41336 | 41703 | |
| 41337 | 41704 | /** |
| 41338 | - * @param int $sealed | |
| 41705 | + * @param int $dummy | |
| 41706 | + * @param Obj5Self $obj5Self | |
| 41707 | + * @param This $obj5This | |
| 41708 | + * @param Obj5True $obj5True | |
| 41709 | + * @param TypeClass $obj5Type | |
| 41710 | + * @param Sealed $sealed | |
| 41711 | + * @param Sel $sel | |
| 41712 | + * @param Select $select | |
| 41713 | + * @param SelfClass $self | |
| 41714 | + * @param Sendable $sendable | |
| 41715 | + * @param SerializationFeature $serializationFeature | |
| 41716 | + * @param Serialize $serialize | |
| 41717 | + * @param SerializerProvider $serializerProvider | |
| 41718 | + * @param Set $set | |
| 41719 | + * @param Short $short | |
| 41720 | + * @param Signed $signed | |
| 41721 | + * @param SimpleModule $simpleModule | |
| 41722 | + * @param Sizeof $sizeof | |
| 41723 | + * @param Stackalloc $stackalloc | |
| 41724 | + * @param Standards $standards | |
| 41725 | + * @param StaticClass $static | |
| 41726 | + * @param StaticAssert $staticAssert | |
| 41727 | + * @param StaticCast $staticCast | |
| 41728 | + * @param StdDeserializer $stdDeserializer | |
| 41729 | + * @param StdSerializer $stdSerializer | |
| 41730 | + * @param Strictfp $strictfp | |
| 41731 | + * @param StringClass $string | |
| 41732 | + * @param Struct $struct | |
| 41733 | + * @param Subscript $subscript | |
| 41734 | + * @param Super $super | |
| 41735 | + * @param SwitchClass $switch | |
| 41736 | + * @param Symbol $symbol | |
| 41737 | + * @param Synchronized $synchronized | |
| 41738 | + * @param System $system | |
| 41739 | + * @param Template $template | |
| 41740 | + * @param Then $then | |
| 41741 | + * @param ThreadLocal $threadLocal | |
| 41742 | + * @param ThrowClass $throw | |
| 41743 | + * @param Throws $throws | |
| 41744 | + * @param TimeOnly $timeOnly | |
| 41745 | + * @param TimeOnlyConverter $timeOnlyConverter | |
| 41746 | + * @param TimeZone $timeZone | |
| 41747 | + * @param ToJSON $toJSON | |
| 41748 | + * @param ToString $toString | |
| 41749 | + * @param TopLevelClass $topLevel | |
| 41750 | + * @param Transient $transient | |
| 41751 | + * @param TrueClass $true | |
| 41752 | + * @param TryClass $try | |
| 41753 | + * @param Type $type | |
| 41754 | + * @param Typealias $typealias | |
| 41755 | + * @param Typedef $typedef | |
| 41756 | + * @param Typeid $typeid | |
| 41757 | + * @param Typename $typename | |
| 41758 | + * @param Typeof $typeof | |
| 41759 | + * @param Uint $uint | |
| 41760 | + * @param Ulong $ulong | |
| 41761 | + * @param Unchecked $unchecked | |
| 41762 | + * @param Undefined $undefined | |
| 41763 | + * @param Union $union | |
| 41764 | + * @param Unowned $unowned | |
| 41765 | + * @param Unsafe $unsafe | |
| 41766 | + * @param Unsigned $unsigned | |
| 41767 | + * @param Ushort $ushort | |
| 41768 | + * @param Using $using | |
| 41769 | + * @param Utf8JSONReader $utf8JSONReader | |
| 41339 | 41770 | */ |
| 41340 | - public function __construct(int $sealed) { | |
| 41771 | + public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, SerializationFeature $serializationFeature, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader) { | |
| 41772 | + $this->dummy = $dummy; | |
| 41773 | + $this->obj5Self = $obj5Self; | |
| 41774 | + $this->obj5This = $obj5This; | |
| 41775 | + $this->obj5True = $obj5True; | |
| 41776 | + $this->obj5Type = $obj5Type; | |
| 41341 | 41777 | $this->sealed = $sealed; |
| 41778 | + $this->sel = $sel; | |
| 41779 | + $this->select = $select; | |
| 41780 | + $this->self = $self; | |
| 41781 | + $this->sendable = $sendable; | |
| 41782 | + $this->serializationFeature = $serializationFeature; | |
| 41783 | + $this->serialize = $serialize; | |
| 41784 | + $this->serializerProvider = $serializerProvider; | |
| 41785 | + $this->set = $set; | |
| 41786 | + $this->short = $short; | |
| 41787 | + $this->signed = $signed; | |
| 41788 | + $this->simpleModule = $simpleModule; | |
| 41789 | + $this->sizeof = $sizeof; | |
| 41790 | + $this->stackalloc = $stackalloc; | |
| 41791 | + $this->standards = $standards; | |
| 41792 | + $this->static = $static; | |
| 41793 | + $this->staticAssert = $staticAssert; | |
| 41794 | + $this->staticCast = $staticCast; | |
| 41795 | + $this->stdDeserializer = $stdDeserializer; | |
| 41796 | + $this->stdSerializer = $stdSerializer; | |
| 41797 | + $this->strictfp = $strictfp; | |
| 41798 | + $this->string = $string; | |
| 41799 | + $this->struct = $struct; | |
| 41800 | + $this->subscript = $subscript; | |
| 41801 | + $this->super = $super; | |
| 41802 | + $this->switch = $switch; | |
| 41803 | + $this->symbol = $symbol; | |
| 41804 | + $this->synchronized = $synchronized; | |
| 41805 | + $this->system = $system; | |
| 41806 | + $this->template = $template; | |
| 41807 | + $this->then = $then; | |
| 41808 | + $this->threadLocal = $threadLocal; | |
| 41809 | + $this->throw = $throw; | |
| 41810 | + $this->throws = $throws; | |
| 41811 | + $this->timeOnly = $timeOnly; | |
| 41812 | + $this->timeOnlyConverter = $timeOnlyConverter; | |
| 41813 | + $this->timeZone = $timeZone; | |
| 41814 | + $this->toJSON = $toJSON; | |
| 41815 | + $this->toString = $toString; | |
| 41816 | + $this->topLevel = $topLevel; | |
| 41817 | + $this->transient = $transient; | |
| 41818 | + $this->true = $true; | |
| 41819 | + $this->try = $try; | |
| 41820 | + $this->type = $type; | |
| 41821 | + $this->typealias = $typealias; | |
| 41822 | + $this->typedef = $typedef; | |
| 41823 | + $this->typeid = $typeid; | |
| 41824 | + $this->typename = $typename; | |
| 41825 | + $this->typeof = $typeof; | |
| 41826 | + $this->uint = $uint; | |
| 41827 | + $this->ulong = $ulong; | |
| 41828 | + $this->unchecked = $unchecked; | |
| 41829 | + $this->undefined = $undefined; | |
| 41830 | + $this->union = $union; | |
| 41831 | + $this->unowned = $unowned; | |
| 41832 | + $this->unsafe = $unsafe; | |
| 41833 | + $this->unsigned = $unsigned; | |
| 41834 | + $this->ushort = $ushort; | |
| 41835 | + $this->using = $using; | |
| 41836 | + $this->utf8JSONReader = $utf8JSONReader; | |
| 41342 | 41837 | } |
| 41343 | 41838 | |
| 41344 | 41839 | /** |
| @@ -41346,7 +41841,7 @@ class Sealed { | ||
| 41346 | 41841 | * @throws Exception |
| 41347 | 41842 | * @return int |
| 41348 | 41843 | */ |
| 41349 | - public static function fromSealed(int $value): int { | |
| 41844 | + public static function fromDummy(int $value): int { | |
| 41350 | 41845 | return $value; /*int*/ |
| 41351 | 41846 | } |
| 41352 | 41847 | |
| @@ -41354,11 +41849,11 @@ class Sealed { | ||
| 41354 | 41849 | * @throws Exception |
| 41355 | 41850 | * @return int |
| 41356 | 41851 | */ |
| 41357 | - public function toSealed(): int { | |
| 41358 | - if (Sealed::validateSealed($this->sealed)) { | |
| 41359 | - return $this->sealed; /*int*/ | |
| 41852 | + public function toDummy(): int { | |
| 41853 | + if (Obj5::validateDummy($this->dummy)) { | |
| 41854 | + return $this->dummy; /*int*/ | |
| 41360 | 41855 | } |
| 41361 | - throw new Exception('never get to this Sealed::sealed'); | |
| 41856 | + throw new Exception('never get to this Obj5::dummy'); | |
| 41362 | 41857 | } |
| 41363 | 41858 | |
| 41364 | 41859 | /** |
| @@ -41366,7 +41861,7 @@ class Sealed { | ||
| 41366 | 41861 | * @return bool |
| 41367 | 41862 | * @throws Exception |
| 41368 | 41863 | */ |
| 41369 | - public static function validateSealed(int $value): bool { | |
| 41864 | + public static function validateDummy(int $value): bool { | |
| 41370 | 41865 | return true; |
| 41371 | 41866 | } |
| 41372 | 41867 | |
| @@ -41374,705 +41869,354 @@ class Sealed { | ||
| 41374 | 41869 | * @throws Exception |
| 41375 | 41870 | * @return int |
| 41376 | 41871 | */ |
| 41377 | - public function getSealed(): int { | |
| 41378 | - if (Sealed::validateSealed($this->sealed)) { | |
| 41379 | - return $this->sealed; | |
| 41872 | + public function getDummy(): int { | |
| 41873 | + if (Obj5::validateDummy($this->dummy)) { | |
| 41874 | + return $this->dummy; | |
| 41380 | 41875 | } |
| 41381 | - throw new Exception('never get to getSealed Sealed::sealed'); | |
| 41876 | + throw new Exception('never get to getDummy Obj5::dummy'); | |
| 41382 | 41877 | } |
| 41383 | 41878 | |
| 41384 | 41879 | /** |
| 41385 | 41880 | * @return int |
| 41386 | 41881 | */ |
| 41387 | - public static function sampleSealed(): int { | |
| 41388 | - return 31; /*31:sealed*/ | |
| 41882 | + public static function sampleDummy(): int { | |
| 41883 | + return 31; /*31:dummy*/ | |
| 41389 | 41884 | } |
| 41390 | 41885 | |
| 41391 | 41886 | /** |
| 41887 | + * @param stdClass $value | |
| 41392 | 41888 | * @throws Exception |
| 41393 | - * @return bool | |
| 41889 | + * @return Obj5Self | |
| 41394 | 41890 | */ |
| 41395 | - public function validate(): bool { | |
| 41396 | - return Sealed::validateSealed($this->sealed); | |
| 41891 | + public static function fromObj5Self(stdClass $value): Obj5Self { | |
| 41892 | + return Obj5Self::from($value); /*class*/ | |
| 41397 | 41893 | } |
| 41398 | 41894 | |
| 41399 | 41895 | /** |
| 41400 | - * @return stdClass | |
| 41401 | 41896 | * @throws Exception |
| 41897 | + * @return stdClass | |
| 41402 | 41898 | */ |
| 41403 | - public function to(): stdClass { | |
| 41404 | - $out = new stdClass(); | |
| 41405 | - $out->{'sealed'} = $this->toSealed(); | |
| 41406 | - return $out; | |
| 41899 | + public function toObj5Self(): stdClass { | |
| 41900 | + if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 41901 | + return $this->obj5Self->to(); /*class*/ | |
| 41902 | + } | |
| 41903 | + throw new Exception('never get to this Obj5::obj5Self'); | |
| 41407 | 41904 | } |
| 41408 | 41905 | |
| 41409 | 41906 | /** |
| 41410 | - * @param stdClass $obj | |
| 41411 | - * @return Sealed | |
| 41907 | + * @param Obj5Self | |
| 41908 | + * @return bool | |
| 41412 | 41909 | * @throws Exception |
| 41413 | 41910 | */ |
| 41414 | - public static function from(stdClass $obj): Sealed { | |
| 41415 | - if (!property_exists($obj, 'sealed')) { | |
| 41416 | - throw new Exception("Missing required property"); | |
| 41417 | - } | |
| 41418 | - return new Sealed( | |
| 41419 | - Sealed::fromSealed($obj->{'sealed'}) | |
| 41420 | - ); | |
| 41911 | + public static function validateObj5Self(Obj5Self $value): bool { | |
| 41912 | + $value->validate(); | |
| 41913 | + return true; | |
| 41421 | 41914 | } |
| 41422 | 41915 | |
| 41423 | 41916 | /** |
| 41424 | - * @return Sealed | |
| 41917 | + * @throws Exception | |
| 41918 | + * @return Obj5Self | |
| 41425 | 41919 | */ |
| 41426 | - public static function sample(): Sealed { | |
| 41427 | - return new Sealed( | |
| 41428 | - Sealed::sampleSealed() | |
| 41429 | - ); | |
| 41920 | + public function getObj5Self(): Obj5Self { | |
| 41921 | + if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 41922 | + return $this->obj5Self; | |
| 41923 | + } | |
| 41924 | + throw new Exception('never get to getObj5Self Obj5::obj5Self'); | |
| 41430 | 41925 | } |
| 41431 | -} | |
| 41432 | - | |
| 41433 | -// This is an autogenerated file:Sel | |
| 41434 | - | |
| 41435 | -class Sel { | |
| 41436 | - private int $sel; // json:SEL Required | |
| 41437 | 41926 | |
| 41438 | 41927 | /** |
| 41439 | - * @param int $sel | |
| 41440 | - */ | |
| 41441 | - public function __construct(int $sel) { | |
| 41442 | - $this->sel = $sel; | |
| 41443 | - } | |
| 41444 | - | |
| 41445 | - /** | |
| 41446 | - * @param int $value | |
| 41447 | - * @throws Exception | |
| 41448 | - * @return int | |
| 41449 | - */ | |
| 41450 | - public static function fromSel(int $value): int { | |
| 41451 | - return $value; /*int*/ | |
| 41452 | - } | |
| 41453 | - | |
| 41454 | - /** | |
| 41455 | - * @throws Exception | |
| 41456 | - * @return int | |
| 41457 | - */ | |
| 41458 | - public function toSel(): int { | |
| 41459 | - if (Sel::validateSel($this->sel)) { | |
| 41460 | - return $this->sel; /*int*/ | |
| 41461 | - } | |
| 41462 | - throw new Exception('never get to this Sel::sel'); | |
| 41463 | - } | |
| 41464 | - | |
| 41465 | - /** | |
| 41466 | - * @param int | |
| 41467 | - * @return bool | |
| 41468 | - * @throws Exception | |
| 41928 | + * @return Obj5Self | |
| 41469 | 41929 | */ |
| 41470 | - public static function validateSel(int $value): bool { | |
| 41471 | - return true; | |
| 41930 | + public static function sampleObj5Self(): Obj5Self { | |
| 41931 | + return Obj5Self::sample(); /*32:obj5Self*/ | |
| 41472 | 41932 | } |
| 41473 | 41933 | |
| 41474 | 41934 | /** |
| 41935 | + * @param stdClass $value | |
| 41475 | 41936 | * @throws Exception |
| 41476 | - * @return int | |
| 41477 | - */ | |
| 41478 | - public function getSel(): int { | |
| 41479 | - if (Sel::validateSel($this->sel)) { | |
| 41480 | - return $this->sel; | |
| 41481 | - } | |
| 41482 | - throw new Exception('never get to getSel Sel::sel'); | |
| 41483 | - } | |
| 41484 | - | |
| 41485 | - /** | |
| 41486 | - * @return int | |
| 41937 | + * @return This | |
| 41487 | 41938 | */ |
| 41488 | - public static function sampleSel(): int { | |
| 41489 | - return 31; /*31:sel*/ | |
| 41939 | + public static function fromObj5This(stdClass $value): This { | |
| 41940 | + return This::from($value); /*class*/ | |
| 41490 | 41941 | } |
| 41491 | 41942 | |
| 41492 | 41943 | /** |
| 41493 | 41944 | * @throws Exception |
| 41494 | - * @return bool | |
| 41495 | - */ | |
| 41496 | - public function validate(): bool { | |
| 41497 | - return Sel::validateSel($this->sel); | |
| 41498 | - } | |
| 41499 | - | |
| 41500 | - /** | |
| 41501 | 41945 | * @return stdClass |
| 41502 | - * @throws Exception | |
| 41503 | - */ | |
| 41504 | - public function to(): stdClass { | |
| 41505 | - $out = new stdClass(); | |
| 41506 | - $out->{'SEL'} = $this->toSel(); | |
| 41507 | - return $out; | |
| 41508 | - } | |
| 41509 | - | |
| 41510 | - /** | |
| 41511 | - * @param stdClass $obj | |
| 41512 | - * @return Sel | |
| 41513 | - * @throws Exception | |
| 41514 | - */ | |
| 41515 | - public static function from(stdClass $obj): Sel { | |
| 41516 | - if (!property_exists($obj, 'SEL')) { | |
| 41517 | - throw new Exception("Missing required property"); | |
| 41518 | - } | |
| 41519 | - return new Sel( | |
| 41520 | - Sel::fromSel($obj->{'SEL'}) | |
| 41521 | - ); | |
| 41522 | - } | |
| 41523 | - | |
| 41524 | - /** | |
| 41525 | - * @return Sel | |
| 41526 | - */ | |
| 41527 | - public static function sample(): Sel { | |
| 41528 | - return new Sel( | |
| 41529 | - Sel::sampleSel() | |
| 41530 | - ); | |
| 41531 | - } | |
| 41532 | -} | |
| 41533 | - | |
| 41534 | -// This is an autogenerated file:Select | |
| 41535 | - | |
| 41536 | -class Select { | |
| 41537 | - private int $select; // json:select Required | |
| 41538 | - | |
| 41539 | - /** | |
| 41540 | - * @param int $select | |
| 41541 | 41946 | */ |
| 41542 | - public function __construct(int $select) { | |
| 41543 | - $this->select = $select; | |
| 41544 | - } | |
| 41545 | - | |
| 41546 | - /** | |
| 41547 | - * @param int $value | |
| 41548 | - * @throws Exception | |
| 41549 | - * @return int | |
| 41550 | - */ | |
| 41551 | - public static function fromSelect(int $value): int { | |
| 41552 | - return $value; /*int*/ | |
| 41553 | - } | |
| 41554 | - | |
| 41555 | - /** | |
| 41556 | - * @throws Exception | |
| 41557 | - * @return int | |
| 41558 | - */ | |
| 41559 | - public function toSelect(): int { | |
| 41560 | - if (Select::validateSelect($this->select)) { | |
| 41561 | - return $this->select; /*int*/ | |
| 41947 | + public function toObj5This(): stdClass { | |
| 41948 | + if (Obj5::validateObj5This($this->obj5This)) { | |
| 41949 | + return $this->obj5This->to(); /*class*/ | |
| 41562 | 41950 | } |
| 41563 | - throw new Exception('never get to this Select::select'); | |
| 41951 | + throw new Exception('never get to this Obj5::obj5This'); | |
| 41564 | 41952 | } |
| 41565 | 41953 | |
| 41566 | 41954 | /** |
| 41567 | - * @param int | |
| 41955 | + * @param This | |
| 41568 | 41956 | * @return bool |
| 41569 | 41957 | * @throws Exception |
| 41570 | 41958 | */ |
| 41571 | - public static function validateSelect(int $value): bool { | |
| 41959 | + public static function validateObj5This(This $value): bool { | |
| 41960 | + $value->validate(); | |
| 41572 | 41961 | return true; |
| 41573 | 41962 | } |
| 41574 | 41963 | |
| 41575 | 41964 | /** |
| 41576 | 41965 | * @throws Exception |
| 41577 | - * @return int | |
| 41578 | - */ | |
| 41579 | - public function getSelect(): int { | |
| 41580 | - if (Select::validateSelect($this->select)) { | |
| 41581 | - return $this->select; | |
| 41582 | - } | |
| 41583 | - throw new Exception('never get to getSelect Select::select'); | |
| 41584 | - } | |
| 41585 | - | |
| 41586 | - /** | |
| 41587 | - * @return int | |
| 41588 | - */ | |
| 41589 | - public static function sampleSelect(): int { | |
| 41590 | - return 31; /*31:select*/ | |
| 41591 | - } | |
| 41592 | - | |
| 41593 | - /** | |
| 41594 | - * @throws Exception | |
| 41595 | - * @return bool | |
| 41596 | - */ | |
| 41597 | - public function validate(): bool { | |
| 41598 | - return Select::validateSelect($this->select); | |
| 41599 | - } | |
| 41600 | - | |
| 41601 | - /** | |
| 41602 | - * @return stdClass | |
| 41603 | - * @throws Exception | |
| 41604 | - */ | |
| 41605 | - public function to(): stdClass { | |
| 41606 | - $out = new stdClass(); | |
| 41607 | - $out->{'select'} = $this->toSelect(); | |
| 41608 | - return $out; | |
| 41609 | - } | |
| 41610 | - | |
| 41611 | - /** | |
| 41612 | - * @param stdClass $obj | |
| 41613 | - * @return Select | |
| 41614 | - * @throws Exception | |
| 41966 | + * @return This | |
| 41615 | 41967 | */ |
| 41616 | - public static function from(stdClass $obj): Select { | |
| 41617 | - if (!property_exists($obj, 'select')) { | |
| 41618 | - throw new Exception("Missing required property"); | |
| 41968 | + public function getObj5This(): This { | |
| 41969 | + if (Obj5::validateObj5This($this->obj5This)) { | |
| 41970 | + return $this->obj5This; | |
| 41619 | 41971 | } |
| 41620 | - return new Select( | |
| 41621 | - Select::fromSelect($obj->{'select'}) | |
| 41622 | - ); | |
| 41623 | - } | |
| 41624 | - | |
| 41625 | - /** | |
| 41626 | - * @return Select | |
| 41627 | - */ | |
| 41628 | - public static function sample(): Select { | |
| 41629 | - return new Select( | |
| 41630 | - Select::sampleSelect() | |
| 41631 | - ); | |
| 41972 | + throw new Exception('never get to getObj5This Obj5::obj5This'); | |
| 41632 | 41973 | } |
| 41633 | -} | |
| 41634 | - | |
| 41635 | -// This is an autogenerated file:Obj5 | |
| 41636 | - | |
| 41637 | -class Obj5 { | |
| 41638 | - private int $dummy; // json:dummy Required | |
| 41639 | - private Obj5Self $obj5Self; // json:self Required | |
| 41640 | - private This $obj5This; // json:this Required | |
| 41641 | - private Obj5True $obj5True; // json:true Required | |
| 41642 | - private TypeClass $obj5Type; // json:type Required | |
| 41643 | - private SelfClass $self; // json:Self Required | |
| 41644 | - private Sendable $sendable; // json:Sendable Required | |
| 41645 | - private Serialize $serialize; // json:serialize Required | |
| 41646 | - private SerializerProvider $serializerProvider; // json:SerializerProvider Required | |
| 41647 | - private Set $set; // json:set Required | |
| 41648 | - private Short $short; // json:short Required | |
| 41649 | - private Signed $signed; // json:signed Required | |
| 41650 | - private SimpleModule $simpleModule; // json:SimpleModule Required | |
| 41651 | - private Sizeof $sizeof; // json:sizeof Required | |
| 41652 | - private Stackalloc $stackalloc; // json:stackalloc Required | |
| 41653 | - private Standards $standards; // json:Standards Required | |
| 41654 | - private StaticClass $static; // json:static Required | |
| 41655 | - private StaticAssert $staticAssert; // json:static_assert Required | |
| 41656 | - private StaticCast $staticCast; // json:static_cast Required | |
| 41657 | - private StdDeserializer $stdDeserializer; // json:StdDeserializer Required | |
| 41658 | - private StdSerializer $stdSerializer; // json:StdSerializer Required | |
| 41659 | - private Strictfp $strictfp; // json:strictfp Required | |
| 41660 | - private StringClass $string; // json:string Required | |
| 41661 | - private Struct $struct; // json:struct Required | |
| 41662 | - private Subscript $subscript; // json:subscript Required | |
| 41663 | - private Super $super; // json:super Required | |
| 41664 | - private SwitchClass $switch; // json:switch Required | |
| 41665 | - private Symbol $symbol; // json:symbol Required | |
| 41666 | - private Synchronized $synchronized; // json:synchronized Required | |
| 41667 | - private System $system; // json:system Required | |
| 41668 | - private Template $template; // json:template Required | |
| 41669 | - private Then $then; // json:then Required | |
| 41670 | - private ThreadLocal $threadLocal; // json:thread_local Required | |
| 41671 | - private ThrowClass $throw; // json:throw Required | |
| 41672 | - private Throws $throws; // json:throws Required | |
| 41673 | - private TimeOnly $timeOnly; // json:TimeOnly Required | |
| 41674 | - private TimeOnlyConverter $timeOnlyConverter; // json:TimeOnlyConverter Required | |
| 41675 | - private TimeZone $timeZone; // json:TimeZone Required | |
| 41676 | - private ToJSON $toJSON; // json:to_json Required | |
| 41677 | - private ToString $toString; // json:toString Required | |
| 41678 | - private TopLevelClass $topLevel; // json:top_level Required | |
| 41679 | - private Transient $transient; // json:transient Required | |
| 41680 | - private TrueClass $true; // json:True Required | |
| 41681 | - private TryClass $try; // json:try Required | |
| 41682 | - private Type $type; // json:Type Required | |
| 41683 | - private Typealias $typealias; // json:typealias Required | |
| 41684 | - private Typedef $typedef; // json:typedef Required | |
| 41685 | - private Typeid $typeid; // json:typeid Required | |
| 41686 | - private Typename $typename; // json:typename Required | |
| 41687 | - private Typeof $typeof; // json:typeof Required | |
| 41688 | - private Uint $uint; // json:uint Required | |
| 41689 | - private Ulong $ulong; // json:ulong Required | |
| 41690 | - private Unchecked $unchecked; // json:unchecked Required | |
| 41691 | - private Undefined $undefined; // json:undefined Required | |
| 41692 | - private Union $union; // json:union Required | |
| 41693 | - private Unowned $unowned; // json:unowned Required | |
| 41694 | - private Unsafe $unsafe; // json:unsafe Required | |
| 41695 | - private Unsigned $unsigned; // json:unsigned Required | |
| 41696 | - private Ushort $ushort; // json:ushort Required | |
| 41697 | - private Using $using; // json:using Required | |
| 41698 | - private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required | |
| 41699 | - private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 41700 | - private UUID $uuid; // json:UUID Required | |
| 41701 | - private VarClass $var; // json:var Required | |
| 41702 | - private Virtual $virtual; // json:virtual Required | |
| 41703 | 41974 | |
| 41704 | 41975 | /** |
| 41705 | - * @param int $dummy | |
| 41706 | - * @param Obj5Self $obj5Self | |
| 41707 | - * @param This $obj5This | |
| 41708 | - * @param Obj5True $obj5True | |
| 41709 | - * @param TypeClass $obj5Type | |
| 41710 | - * @param SelfClass $self | |
| 41711 | - * @param Sendable $sendable | |
| 41712 | - * @param Serialize $serialize | |
| 41713 | - * @param SerializerProvider $serializerProvider | |
| 41714 | - * @param Set $set | |
| 41715 | - * @param Short $short | |
| 41716 | - * @param Signed $signed | |
| 41717 | - * @param SimpleModule $simpleModule | |
| 41718 | - * @param Sizeof $sizeof | |
| 41719 | - * @param Stackalloc $stackalloc | |
| 41720 | - * @param Standards $standards | |
| 41721 | - * @param StaticClass $static | |
| 41722 | - * @param StaticAssert $staticAssert | |
| 41723 | - * @param StaticCast $staticCast | |
| 41724 | - * @param StdDeserializer $stdDeserializer | |
| 41725 | - * @param StdSerializer $stdSerializer | |
| 41726 | - * @param Strictfp $strictfp | |
| 41727 | - * @param StringClass $string | |
| 41728 | - * @param Struct $struct | |
| 41729 | - * @param Subscript $subscript | |
| 41730 | - * @param Super $super | |
| 41731 | - * @param SwitchClass $switch | |
| 41732 | - * @param Symbol $symbol | |
| 41733 | - * @param Synchronized $synchronized | |
| 41734 | - * @param System $system | |
| 41735 | - * @param Template $template | |
| 41736 | - * @param Then $then | |
| 41737 | - * @param ThreadLocal $threadLocal | |
| 41738 | - * @param ThrowClass $throw | |
| 41739 | - * @param Throws $throws | |
| 41740 | - * @param TimeOnly $timeOnly | |
| 41741 | - * @param TimeOnlyConverter $timeOnlyConverter | |
| 41742 | - * @param TimeZone $timeZone | |
| 41743 | - * @param ToJSON $toJSON | |
| 41744 | - * @param ToString $toString | |
| 41745 | - * @param TopLevelClass $topLevel | |
| 41746 | - * @param Transient $transient | |
| 41747 | - * @param TrueClass $true | |
| 41748 | - * @param TryClass $try | |
| 41749 | - * @param Type $type | |
| 41750 | - * @param Typealias $typealias | |
| 41751 | - * @param Typedef $typedef | |
| 41752 | - * @param Typeid $typeid | |
| 41753 | - * @param Typename $typename | |
| 41754 | - * @param Typeof $typeof | |
| 41755 | - * @param Uint $uint | |
| 41756 | - * @param Ulong $ulong | |
| 41757 | - * @param Unchecked $unchecked | |
| 41758 | - * @param Undefined $undefined | |
| 41759 | - * @param Union $union | |
| 41760 | - * @param Unowned $unowned | |
| 41761 | - * @param Unsafe $unsafe | |
| 41762 | - * @param Unsigned $unsigned | |
| 41763 | - * @param Ushort $ushort | |
| 41764 | - * @param Using $using | |
| 41765 | - * @param Utf8JSONReader $utf8JSONReader | |
| 41766 | - * @param Utf8JSONWriter $utf8JSONWriter | |
| 41767 | - * @param UUID $uuid | |
| 41768 | - * @param VarClass $var | |
| 41769 | - * @param Virtual $virtual | |
| 41976 | + * @return This | |
| 41770 | 41977 | */ |
| 41771 | - public function __construct(int $dummy, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, SelfClass $self, Sendable $sendable, Serialize $serialize, SerializerProvider $serializerProvider, Set $set, Short $short, Signed $signed, SimpleModule $simpleModule, Sizeof $sizeof, Stackalloc $stackalloc, Standards $standards, StaticClass $static, StaticAssert $staticAssert, StaticCast $staticCast, StdDeserializer $stdDeserializer, StdSerializer $stdSerializer, Strictfp $strictfp, StringClass $string, Struct $struct, Subscript $subscript, Super $super, SwitchClass $switch, Symbol $symbol, Synchronized $synchronized, System $system, Template $template, Then $then, ThreadLocal $threadLocal, ThrowClass $throw, Throws $throws, TimeOnly $timeOnly, TimeOnlyConverter $timeOnlyConverter, TimeZone $timeZone, ToJSON $toJSON, ToString $toString, TopLevelClass $topLevel, Transient $transient, TrueClass $true, TryClass $try, Type $type, Typealias $typealias, Typedef $typedef, Typeid $typeid, Typename $typename, Typeof $typeof, Uint $uint, Ulong $ulong, Unchecked $unchecked, Undefined $undefined, Union $union, Unowned $unowned, Unsafe $unsafe, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual) { | |
| 41772 | - $this->dummy = $dummy; | |
| 41773 | - $this->obj5Self = $obj5Self; | |
| 41774 | - $this->obj5This = $obj5This; | |
| 41775 | - $this->obj5True = $obj5True; | |
| 41776 | - $this->obj5Type = $obj5Type; | |
| 41777 | - $this->self = $self; | |
| 41778 | - $this->sendable = $sendable; | |
| 41779 | - $this->serialize = $serialize; | |
| 41780 | - $this->serializerProvider = $serializerProvider; | |
| 41781 | - $this->set = $set; | |
| 41782 | - $this->short = $short; | |
| 41783 | - $this->signed = $signed; | |
| 41784 | - $this->simpleModule = $simpleModule; | |
| 41785 | - $this->sizeof = $sizeof; | |
| 41786 | - $this->stackalloc = $stackalloc; | |
| 41787 | - $this->standards = $standards; | |
| 41788 | - $this->static = $static; | |
| 41789 | - $this->staticAssert = $staticAssert; | |
| 41790 | - $this->staticCast = $staticCast; | |
| 41791 | - $this->stdDeserializer = $stdDeserializer; | |
| 41792 | - $this->stdSerializer = $stdSerializer; | |
| 41793 | - $this->strictfp = $strictfp; | |
| 41794 | - $this->string = $string; | |
| 41795 | - $this->struct = $struct; | |
| 41796 | - $this->subscript = $subscript; | |
| 41797 | - $this->super = $super; | |
| 41798 | - $this->switch = $switch; | |
| 41799 | - $this->symbol = $symbol; | |
| 41800 | - $this->synchronized = $synchronized; | |
| 41801 | - $this->system = $system; | |
| 41802 | - $this->template = $template; | |
| 41803 | - $this->then = $then; | |
| 41804 | - $this->threadLocal = $threadLocal; | |
| 41805 | - $this->throw = $throw; | |
| 41806 | - $this->throws = $throws; | |
| 41807 | - $this->timeOnly = $timeOnly; | |
| 41808 | - $this->timeOnlyConverter = $timeOnlyConverter; | |
| 41809 | - $this->timeZone = $timeZone; | |
| 41810 | - $this->toJSON = $toJSON; | |
| 41811 | - $this->toString = $toString; | |
| 41812 | - $this->topLevel = $topLevel; | |
| 41813 | - $this->transient = $transient; | |
| 41814 | - $this->true = $true; | |
| 41815 | - $this->try = $try; | |
| 41816 | - $this->type = $type; | |
| 41817 | - $this->typealias = $typealias; | |
| 41818 | - $this->typedef = $typedef; | |
| 41819 | - $this->typeid = $typeid; | |
| 41820 | - $this->typename = $typename; | |
| 41821 | - $this->typeof = $typeof; | |
| 41822 | - $this->uint = $uint; | |
| 41823 | - $this->ulong = $ulong; | |
| 41824 | - $this->unchecked = $unchecked; | |
| 41825 | - $this->undefined = $undefined; | |
| 41826 | - $this->union = $union; | |
| 41827 | - $this->unowned = $unowned; | |
| 41828 | - $this->unsafe = $unsafe; | |
| 41829 | - $this->unsigned = $unsigned; | |
| 41830 | - $this->ushort = $ushort; | |
| 41831 | - $this->using = $using; | |
| 41832 | - $this->utf8JSONReader = $utf8JSONReader; | |
| 41833 | - $this->utf8JSONWriter = $utf8JSONWriter; | |
| 41834 | - $this->uuid = $uuid; | |
| 41835 | - $this->var = $var; | |
| 41836 | - $this->virtual = $virtual; | |
| 41978 | + public static function sampleObj5This(): This { | |
| 41979 | + return This::sample(); /*33:obj5This*/ | |
| 41837 | 41980 | } |
| 41838 | 41981 | |
| 41839 | 41982 | /** |
| 41840 | - * @param int $value | |
| 41983 | + * @param stdClass $value | |
| 41841 | 41984 | * @throws Exception |
| 41842 | - * @return int | |
| 41985 | + * @return Obj5True | |
| 41843 | 41986 | */ |
| 41844 | - public static function fromDummy(int $value): int { | |
| 41845 | - return $value; /*int*/ | |
| 41987 | + public static function fromObj5True(stdClass $value): Obj5True { | |
| 41988 | + return Obj5True::from($value); /*class*/ | |
| 41846 | 41989 | } |
| 41847 | 41990 | |
| 41848 | 41991 | /** |
| 41849 | 41992 | * @throws Exception |
| 41850 | - * @return int | |
| 41993 | + * @return stdClass | |
| 41851 | 41994 | */ |
| 41852 | - public function toDummy(): int { | |
| 41853 | - if (Obj5::validateDummy($this->dummy)) { | |
| 41854 | - return $this->dummy; /*int*/ | |
| 41995 | + public function toObj5True(): stdClass { | |
| 41996 | + if (Obj5::validateObj5True($this->obj5True)) { | |
| 41997 | + return $this->obj5True->to(); /*class*/ | |
| 41855 | 41998 | } |
| 41856 | - throw new Exception('never get to this Obj5::dummy'); | |
| 41999 | + throw new Exception('never get to this Obj5::obj5True'); | |
| 41857 | 42000 | } |
| 41858 | 42001 | |
| 41859 | 42002 | /** |
| 41860 | - * @param int | |
| 42003 | + * @param Obj5True | |
| 41861 | 42004 | * @return bool |
| 41862 | 42005 | * @throws Exception |
| 41863 | 42006 | */ |
| 41864 | - public static function validateDummy(int $value): bool { | |
| 42007 | + public static function validateObj5True(Obj5True $value): bool { | |
| 42008 | + $value->validate(); | |
| 41865 | 42009 | return true; |
| 41866 | 42010 | } |
| 41867 | 42011 | |
| 41868 | 42012 | /** |
| 41869 | 42013 | * @throws Exception |
| 41870 | - * @return int | |
| 42014 | + * @return Obj5True | |
| 41871 | 42015 | */ |
| 41872 | - public function getDummy(): int { | |
| 41873 | - if (Obj5::validateDummy($this->dummy)) { | |
| 41874 | - return $this->dummy; | |
| 42016 | + public function getObj5True(): Obj5True { | |
| 42017 | + if (Obj5::validateObj5True($this->obj5True)) { | |
| 42018 | + return $this->obj5True; | |
| 41875 | 42019 | } |
| 41876 | - throw new Exception('never get to getDummy Obj5::dummy'); | |
| 42020 | + throw new Exception('never get to getObj5True Obj5::obj5True'); | |
| 41877 | 42021 | } |
| 41878 | 42022 | |
| 41879 | 42023 | /** |
| 41880 | - * @return int | |
| 42024 | + * @return Obj5True | |
| 41881 | 42025 | */ |
| 41882 | - public static function sampleDummy(): int { | |
| 41883 | - return 31; /*31:dummy*/ | |
| 42026 | + public static function sampleObj5True(): Obj5True { | |
| 42027 | + return Obj5True::sample(); /*34:obj5True*/ | |
| 41884 | 42028 | } |
| 41885 | 42029 | |
| 41886 | 42030 | /** |
| 41887 | 42031 | * @param stdClass $value |
| 41888 | 42032 | * @throws Exception |
| 41889 | - * @return Obj5Self | |
| 42033 | + * @return TypeClass | |
| 41890 | 42034 | */ |
| 41891 | - public static function fromObj5Self(stdClass $value): Obj5Self { | |
| 41892 | - return Obj5Self::from($value); /*class*/ | |
| 42035 | + public static function fromObj5Type(stdClass $value): TypeClass { | |
| 42036 | + return TypeClass::from($value); /*class*/ | |
| 41893 | 42037 | } |
| 41894 | 42038 | |
| 41895 | 42039 | /** |
| 41896 | 42040 | * @throws Exception |
| 41897 | 42041 | * @return stdClass |
| 41898 | 42042 | */ |
| 41899 | - public function toObj5Self(): stdClass { | |
| 41900 | - if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 41901 | - return $this->obj5Self->to(); /*class*/ | |
| 42043 | + public function toObj5Type(): stdClass { | |
| 42044 | + if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42045 | + return $this->obj5Type->to(); /*class*/ | |
| 41902 | 42046 | } |
| 41903 | - throw new Exception('never get to this Obj5::obj5Self'); | |
| 42047 | + throw new Exception('never get to this Obj5::obj5Type'); | |
| 41904 | 42048 | } |
| 41905 | 42049 | |
| 41906 | 42050 | /** |
| 41907 | - * @param Obj5Self | |
| 42051 | + * @param TypeClass | |
| 41908 | 42052 | * @return bool |
| 41909 | 42053 | * @throws Exception |
| 41910 | 42054 | */ |
| 41911 | - public static function validateObj5Self(Obj5Self $value): bool { | |
| 42055 | + public static function validateObj5Type(TypeClass $value): bool { | |
| 41912 | 42056 | $value->validate(); |
| 41913 | 42057 | return true; |
| 41914 | 42058 | } |
| 41915 | 42059 | |
| 41916 | 42060 | /** |
| 41917 | 42061 | * @throws Exception |
| 41918 | - * @return Obj5Self | |
| 42062 | + * @return TypeClass | |
| 41919 | 42063 | */ |
| 41920 | - public function getObj5Self(): Obj5Self { | |
| 41921 | - if (Obj5::validateObj5Self($this->obj5Self)) { | |
| 41922 | - return $this->obj5Self; | |
| 42064 | + public function getObj5Type(): TypeClass { | |
| 42065 | + if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42066 | + return $this->obj5Type; | |
| 41923 | 42067 | } |
| 41924 | - throw new Exception('never get to getObj5Self Obj5::obj5Self'); | |
| 42068 | + throw new Exception('never get to getObj5Type Obj5::obj5Type'); | |
| 41925 | 42069 | } |
| 41926 | 42070 | |
| 41927 | 42071 | /** |
| 41928 | - * @return Obj5Self | |
| 42072 | + * @return TypeClass | |
| 41929 | 42073 | */ |
| 41930 | - public static function sampleObj5Self(): Obj5Self { | |
| 41931 | - return Obj5Self::sample(); /*32:obj5Self*/ | |
| 42074 | + public static function sampleObj5Type(): TypeClass { | |
| 42075 | + return TypeClass::sample(); /*35:obj5Type*/ | |
| 41932 | 42076 | } |
| 41933 | 42077 | |
| 41934 | 42078 | /** |
| 41935 | 42079 | * @param stdClass $value |
| 41936 | 42080 | * @throws Exception |
| 41937 | - * @return This | |
| 42081 | + * @return Sealed | |
| 41938 | 42082 | */ |
| 41939 | - public static function fromObj5This(stdClass $value): This { | |
| 41940 | - return This::from($value); /*class*/ | |
| 42083 | + public static function fromSealed(stdClass $value): Sealed { | |
| 42084 | + return Sealed::from($value); /*class*/ | |
| 41941 | 42085 | } |
| 41942 | 42086 | |
| 41943 | 42087 | /** |
| 41944 | 42088 | * @throws Exception |
| 41945 | 42089 | * @return stdClass |
| 41946 | 42090 | */ |
| 41947 | - public function toObj5This(): stdClass { | |
| 41948 | - if (Obj5::validateObj5This($this->obj5This)) { | |
| 41949 | - return $this->obj5This->to(); /*class*/ | |
| 42091 | + public function toSealed(): stdClass { | |
| 42092 | + if (Obj5::validateSealed($this->sealed)) { | |
| 42093 | + return $this->sealed->to(); /*class*/ | |
| 41950 | 42094 | } |
| 41951 | - throw new Exception('never get to this Obj5::obj5This'); | |
| 42095 | + throw new Exception('never get to this Obj5::sealed'); | |
| 41952 | 42096 | } |
| 41953 | 42097 | |
| 41954 | 42098 | /** |
| 41955 | - * @param This | |
| 42099 | + * @param Sealed | |
| 41956 | 42100 | * @return bool |
| 41957 | 42101 | * @throws Exception |
| 41958 | 42102 | */ |
| 41959 | - public static function validateObj5This(This $value): bool { | |
| 42103 | + public static function validateSealed(Sealed $value): bool { | |
| 41960 | 42104 | $value->validate(); |
| 41961 | 42105 | return true; |
| 41962 | 42106 | } |
| 41963 | 42107 | |
| 41964 | 42108 | /** |
| 41965 | 42109 | * @throws Exception |
| 41966 | - * @return This | |
| 42110 | + * @return Sealed | |
| 41967 | 42111 | */ |
| 41968 | - public function getObj5This(): This { | |
| 41969 | - if (Obj5::validateObj5This($this->obj5This)) { | |
| 41970 | - return $this->obj5This; | |
| 42112 | + public function getSealed(): Sealed { | |
| 42113 | + if (Obj5::validateSealed($this->sealed)) { | |
| 42114 | + return $this->sealed; | |
| 41971 | 42115 | } |
| 41972 | - throw new Exception('never get to getObj5This Obj5::obj5This'); | |
| 42116 | + throw new Exception('never get to getSealed Obj5::sealed'); | |
| 41973 | 42117 | } |
| 41974 | 42118 | |
| 41975 | 42119 | /** |
| 41976 | - * @return This | |
| 42120 | + * @return Sealed | |
| 41977 | 42121 | */ |
| 41978 | - public static function sampleObj5This(): This { | |
| 41979 | - return This::sample(); /*33:obj5This*/ | |
| 42122 | + public static function sampleSealed(): Sealed { | |
| 42123 | + return Sealed::sample(); /*36:sealed*/ | |
| 41980 | 42124 | } |
| 41981 | 42125 | |
| 41982 | 42126 | /** |
| 41983 | 42127 | * @param stdClass $value |
| 41984 | 42128 | * @throws Exception |
| 41985 | - * @return Obj5True | |
| 42129 | + * @return Sel | |
| 41986 | 42130 | */ |
| 41987 | - public static function fromObj5True(stdClass $value): Obj5True { | |
| 41988 | - return Obj5True::from($value); /*class*/ | |
| 42131 | + public static function fromSel(stdClass $value): Sel { | |
| 42132 | + return Sel::from($value); /*class*/ | |
| 41989 | 42133 | } |
| 41990 | 42134 | |
| 41991 | 42135 | /** |
| 41992 | 42136 | * @throws Exception |
| 41993 | 42137 | * @return stdClass |
| 41994 | 42138 | */ |
| 41995 | - public function toObj5True(): stdClass { | |
| 41996 | - if (Obj5::validateObj5True($this->obj5True)) { | |
| 41997 | - return $this->obj5True->to(); /*class*/ | |
| 42139 | + public function toSel(): stdClass { | |
| 42140 | + if (Obj5::validateSel($this->sel)) { | |
| 42141 | + return $this->sel->to(); /*class*/ | |
| 41998 | 42142 | } |
| 41999 | - throw new Exception('never get to this Obj5::obj5True'); | |
| 42143 | + throw new Exception('never get to this Obj5::sel'); | |
| 42000 | 42144 | } |
| 42001 | 42145 | |
| 42002 | 42146 | /** |
| 42003 | - * @param Obj5True | |
| 42147 | + * @param Sel | |
| 42004 | 42148 | * @return bool |
| 42005 | 42149 | * @throws Exception |
| 42006 | 42150 | */ |
| 42007 | - public static function validateObj5True(Obj5True $value): bool { | |
| 42151 | + public static function validateSel(Sel $value): bool { | |
| 42008 | 42152 | $value->validate(); |
| 42009 | 42153 | return true; |
| 42010 | 42154 | } |
| 42011 | 42155 | |
| 42012 | 42156 | /** |
| 42013 | 42157 | * @throws Exception |
| 42014 | - * @return Obj5True | |
| 42158 | + * @return Sel | |
| 42015 | 42159 | */ |
| 42016 | - public function getObj5True(): Obj5True { | |
| 42017 | - if (Obj5::validateObj5True($this->obj5True)) { | |
| 42018 | - return $this->obj5True; | |
| 42160 | + public function getSel(): Sel { | |
| 42161 | + if (Obj5::validateSel($this->sel)) { | |
| 42162 | + return $this->sel; | |
| 42019 | 42163 | } |
| 42020 | - throw new Exception('never get to getObj5True Obj5::obj5True'); | |
| 42164 | + throw new Exception('never get to getSel Obj5::sel'); | |
| 42021 | 42165 | } |
| 42022 | 42166 | |
| 42023 | 42167 | /** |
| 42024 | - * @return Obj5True | |
| 42168 | + * @return Sel | |
| 42025 | 42169 | */ |
| 42026 | - public static function sampleObj5True(): Obj5True { | |
| 42027 | - return Obj5True::sample(); /*34:obj5True*/ | |
| 42170 | + public static function sampleSel(): Sel { | |
| 42171 | + return Sel::sample(); /*37:sel*/ | |
| 42028 | 42172 | } |
| 42029 | 42173 | |
| 42030 | 42174 | /** |
| 42031 | 42175 | * @param stdClass $value |
| 42032 | 42176 | * @throws Exception |
| 42033 | - * @return TypeClass | |
| 42177 | + * @return Select | |
| 42034 | 42178 | */ |
| 42035 | - public static function fromObj5Type(stdClass $value): TypeClass { | |
| 42036 | - return TypeClass::from($value); /*class*/ | |
| 42179 | + public static function fromSelect(stdClass $value): Select { | |
| 42180 | + return Select::from($value); /*class*/ | |
| 42037 | 42181 | } |
| 42038 | 42182 | |
| 42039 | 42183 | /** |
| 42040 | 42184 | * @throws Exception |
| 42041 | 42185 | * @return stdClass |
| 42042 | 42186 | */ |
| 42043 | - public function toObj5Type(): stdClass { | |
| 42044 | - if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42045 | - return $this->obj5Type->to(); /*class*/ | |
| 42187 | + public function toSelect(): stdClass { | |
| 42188 | + if (Obj5::validateSelect($this->select)) { | |
| 42189 | + return $this->select->to(); /*class*/ | |
| 42046 | 42190 | } |
| 42047 | - throw new Exception('never get to this Obj5::obj5Type'); | |
| 42191 | + throw new Exception('never get to this Obj5::select'); | |
| 42048 | 42192 | } |
| 42049 | 42193 | |
| 42050 | 42194 | /** |
| 42051 | - * @param TypeClass | |
| 42195 | + * @param Select | |
| 42052 | 42196 | * @return bool |
| 42053 | 42197 | * @throws Exception |
| 42054 | 42198 | */ |
| 42055 | - public static function validateObj5Type(TypeClass $value): bool { | |
| 42199 | + public static function validateSelect(Select $value): bool { | |
| 42056 | 42200 | $value->validate(); |
| 42057 | 42201 | return true; |
| 42058 | 42202 | } |
| 42059 | 42203 | |
| 42060 | 42204 | /** |
| 42061 | 42205 | * @throws Exception |
| 42062 | - * @return TypeClass | |
| 42206 | + * @return Select | |
| 42063 | 42207 | */ |
| 42064 | - public function getObj5Type(): TypeClass { | |
| 42065 | - if (Obj5::validateObj5Type($this->obj5Type)) { | |
| 42066 | - return $this->obj5Type; | |
| 42208 | + public function getSelect(): Select { | |
| 42209 | + if (Obj5::validateSelect($this->select)) { | |
| 42210 | + return $this->select; | |
| 42067 | 42211 | } |
| 42068 | - throw new Exception('never get to getObj5Type Obj5::obj5Type'); | |
| 42212 | + throw new Exception('never get to getSelect Obj5::select'); | |
| 42069 | 42213 | } |
| 42070 | 42214 | |
| 42071 | 42215 | /** |
| 42072 | - * @return TypeClass | |
| 42216 | + * @return Select | |
| 42073 | 42217 | */ |
| 42074 | - public static function sampleObj5Type(): TypeClass { | |
| 42075 | - return TypeClass::sample(); /*35:obj5Type*/ | |
| 42218 | + public static function sampleSelect(): Select { | |
| 42219 | + return Select::sample(); /*38:select*/ | |
| 42076 | 42220 | } |
| 42077 | 42221 | |
| 42078 | 42222 | /** |
| @@ -42120,7 +42264,7 @@ class Obj5 { | ||
| 42120 | 42264 | * @return SelfClass |
| 42121 | 42265 | */ |
| 42122 | 42266 | public static function sampleSelf(): SelfClass { |
| 42123 | - return SelfClass::sample(); /*36:self*/ | |
| 42267 | + return SelfClass::sample(); /*39:self*/ | |
| 42124 | 42268 | } |
| 42125 | 42269 | |
| 42126 | 42270 | /** |
| @@ -42168,7 +42312,55 @@ class Obj5 { | ||
| 42168 | 42312 | * @return Sendable |
| 42169 | 42313 | */ |
| 42170 | 42314 | public static function sampleSendable(): Sendable { |
| 42171 | - return Sendable::sample(); /*37:sendable*/ | |
| 42315 | + return Sendable::sample(); /*40:sendable*/ | |
| 42316 | + } | |
| 42317 | + | |
| 42318 | + /** | |
| 42319 | + * @param stdClass $value | |
| 42320 | + * @throws Exception | |
| 42321 | + * @return SerializationFeature | |
| 42322 | + */ | |
| 42323 | + public static function fromSerializationFeature(stdClass $value): SerializationFeature { | |
| 42324 | + return SerializationFeature::from($value); /*class*/ | |
| 42325 | + } | |
| 42326 | + | |
| 42327 | + /** | |
| 42328 | + * @throws Exception | |
| 42329 | + * @return stdClass | |
| 42330 | + */ | |
| 42331 | + public function toSerializationFeature(): stdClass { | |
| 42332 | + if (Obj5::validateSerializationFeature($this->serializationFeature)) { | |
| 42333 | + return $this->serializationFeature->to(); /*class*/ | |
| 42334 | + } | |
| 42335 | + throw new Exception('never get to this Obj5::serializationFeature'); | |
| 42336 | + } | |
| 42337 | + | |
| 42338 | + /** | |
| 42339 | + * @param SerializationFeature | |
| 42340 | + * @return bool | |
| 42341 | + * @throws Exception | |
| 42342 | + */ | |
| 42343 | + public static function validateSerializationFeature(SerializationFeature $value): bool { | |
| 42344 | + $value->validate(); | |
| 42345 | + return true; | |
| 42346 | + } | |
| 42347 | + | |
| 42348 | + /** | |
| 42349 | + * @throws Exception | |
| 42350 | + * @return SerializationFeature | |
| 42351 | + */ | |
| 42352 | + public function getSerializationFeature(): SerializationFeature { | |
| 42353 | + if (Obj5::validateSerializationFeature($this->serializationFeature)) { | |
| 42354 | + return $this->serializationFeature; | |
| 42355 | + } | |
| 42356 | + throw new Exception('never get to getSerializationFeature Obj5::serializationFeature'); | |
| 42357 | + } | |
| 42358 | + | |
| 42359 | + /** | |
| 42360 | + * @return SerializationFeature | |
| 42361 | + */ | |
| 42362 | + public static function sampleSerializationFeature(): SerializationFeature { | |
| 42363 | + return SerializationFeature::sample(); /*41:serializationFeature*/ | |
| 42172 | 42364 | } |
| 42173 | 42365 | |
| 42174 | 42366 | /** |
| @@ -42216,7 +42408,7 @@ class Obj5 { | ||
| 42216 | 42408 | * @return Serialize |
| 42217 | 42409 | */ |
| 42218 | 42410 | public static function sampleSerialize(): Serialize { |
| 42219 | - return Serialize::sample(); /*38:serialize*/ | |
| 42411 | + return Serialize::sample(); /*42:serialize*/ | |
| 42220 | 42412 | } |
| 42221 | 42413 | |
| 42222 | 42414 | /** |
| @@ -42264,7 +42456,7 @@ class Obj5 { | ||
| 42264 | 42456 | * @return SerializerProvider |
| 42265 | 42457 | */ |
| 42266 | 42458 | public static function sampleSerializerProvider(): SerializerProvider { |
| 42267 | - return SerializerProvider::sample(); /*39:serializerProvider*/ | |
| 42459 | + return SerializerProvider::sample(); /*43:serializerProvider*/ | |
| 42268 | 42460 | } |
| 42269 | 42461 | |
| 42270 | 42462 | /** |
| @@ -42312,7 +42504,7 @@ class Obj5 { | ||
| 42312 | 42504 | * @return Set |
| 42313 | 42505 | */ |
| 42314 | 42506 | public static function sampleSet(): Set { |
| 42315 | - return Set::sample(); /*40:set*/ | |
| 42507 | + return Set::sample(); /*44:set*/ | |
| 42316 | 42508 | } |
| 42317 | 42509 | |
| 42318 | 42510 | /** |
| @@ -42360,7 +42552,7 @@ class Obj5 { | ||
| 42360 | 42552 | * @return Short |
| 42361 | 42553 | */ |
| 42362 | 42554 | public static function sampleShort(): Short { |
| 42363 | - return Short::sample(); /*41:short*/ | |
| 42555 | + return Short::sample(); /*45:short*/ | |
| 42364 | 42556 | } |
| 42365 | 42557 | |
| 42366 | 42558 | /** |
| @@ -42408,7 +42600,7 @@ class Obj5 { | ||
| 42408 | 42600 | * @return Signed |
| 42409 | 42601 | */ |
| 42410 | 42602 | public static function sampleSigned(): Signed { |
| 42411 | - return Signed::sample(); /*42:signed*/ | |
| 42603 | + return Signed::sample(); /*46:signed*/ | |
| 42412 | 42604 | } |
| 42413 | 42605 | |
| 42414 | 42606 | /** |
| @@ -42456,7 +42648,7 @@ class Obj5 { | ||
| 42456 | 42648 | * @return SimpleModule |
| 42457 | 42649 | */ |
| 42458 | 42650 | public static function sampleSimpleModule(): SimpleModule { |
| 42459 | - return SimpleModule::sample(); /*43:simpleModule*/ | |
| 42651 | + return SimpleModule::sample(); /*47:simpleModule*/ | |
| 42460 | 42652 | } |
| 42461 | 42653 | |
| 42462 | 42654 | /** |
| @@ -42504,7 +42696,7 @@ class Obj5 { | ||
| 42504 | 42696 | * @return Sizeof |
| 42505 | 42697 | */ |
| 42506 | 42698 | public static function sampleSizeof(): Sizeof { |
| 42507 | - return Sizeof::sample(); /*44:sizeof*/ | |
| 42699 | + return Sizeof::sample(); /*48:sizeof*/ | |
| 42508 | 42700 | } |
| 42509 | 42701 | |
| 42510 | 42702 | /** |
| @@ -42552,7 +42744,7 @@ class Obj5 { | ||
| 42552 | 42744 | * @return Stackalloc |
| 42553 | 42745 | */ |
| 42554 | 42746 | public static function sampleStackalloc(): Stackalloc { |
| 42555 | - return Stackalloc::sample(); /*45:stackalloc*/ | |
| 42747 | + return Stackalloc::sample(); /*49:stackalloc*/ | |
| 42556 | 42748 | } |
| 42557 | 42749 | |
| 42558 | 42750 | /** |
| @@ -42600,7 +42792,7 @@ class Obj5 { | ||
| 42600 | 42792 | * @return Standards |
| 42601 | 42793 | */ |
| 42602 | 42794 | public static function sampleStandards(): Standards { |
| 42603 | - return Standards::sample(); /*46:standards*/ | |
| 42795 | + return Standards::sample(); /*50:standards*/ | |
| 42604 | 42796 | } |
| 42605 | 42797 | |
| 42606 | 42798 | /** |
| @@ -42648,7 +42840,7 @@ class Obj5 { | ||
| 42648 | 42840 | * @return StaticClass |
| 42649 | 42841 | */ |
| 42650 | 42842 | public static function sampleStatic(): StaticClass { |
| 42651 | - return StaticClass::sample(); /*47:static*/ | |
| 42843 | + return StaticClass::sample(); /*51:static*/ | |
| 42652 | 42844 | } |
| 42653 | 42845 | |
| 42654 | 42846 | /** |
| @@ -42696,7 +42888,7 @@ class Obj5 { | ||
| 42696 | 42888 | * @return StaticAssert |
| 42697 | 42889 | */ |
| 42698 | 42890 | public static function sampleStaticAssert(): StaticAssert { |
| 42699 | - return StaticAssert::sample(); /*48:staticAssert*/ | |
| 42891 | + return StaticAssert::sample(); /*52:staticAssert*/ | |
| 42700 | 42892 | } |
| 42701 | 42893 | |
| 42702 | 42894 | /** |
| @@ -42744,7 +42936,7 @@ class Obj5 { | ||
| 42744 | 42936 | * @return StaticCast |
| 42745 | 42937 | */ |
| 42746 | 42938 | public static function sampleStaticCast(): StaticCast { |
| 42747 | - return StaticCast::sample(); /*49:staticCast*/ | |
| 42939 | + return StaticCast::sample(); /*53:staticCast*/ | |
| 42748 | 42940 | } |
| 42749 | 42941 | |
| 42750 | 42942 | /** |
| @@ -42792,7 +42984,7 @@ class Obj5 { | ||
| 42792 | 42984 | * @return StdDeserializer |
| 42793 | 42985 | */ |
| 42794 | 42986 | public static function sampleStdDeserializer(): StdDeserializer { |
| 42795 | - return StdDeserializer::sample(); /*50:stdDeserializer*/ | |
| 42987 | + return StdDeserializer::sample(); /*54:stdDeserializer*/ | |
| 42796 | 42988 | } |
| 42797 | 42989 | |
| 42798 | 42990 | /** |
| @@ -42840,7 +43032,7 @@ class Obj5 { | ||
| 42840 | 43032 | * @return StdSerializer |
| 42841 | 43033 | */ |
| 42842 | 43034 | public static function sampleStdSerializer(): StdSerializer { |
| 42843 | - return StdSerializer::sample(); /*51:stdSerializer*/ | |
| 43035 | + return StdSerializer::sample(); /*55:stdSerializer*/ | |
| 42844 | 43036 | } |
| 42845 | 43037 | |
| 42846 | 43038 | /** |
| @@ -42888,7 +43080,7 @@ class Obj5 { | ||
| 42888 | 43080 | * @return Strictfp |
| 42889 | 43081 | */ |
| 42890 | 43082 | public static function sampleStrictfp(): Strictfp { |
| 42891 | - return Strictfp::sample(); /*52:strictfp*/ | |
| 43083 | + return Strictfp::sample(); /*56:strictfp*/ | |
| 42892 | 43084 | } |
| 42893 | 43085 | |
| 42894 | 43086 | /** |
| @@ -42936,7 +43128,7 @@ class Obj5 { | ||
| 42936 | 43128 | * @return StringClass |
| 42937 | 43129 | */ |
| 42938 | 43130 | public static function sampleString(): StringClass { |
| 42939 | - return StringClass::sample(); /*53:string*/ | |
| 43131 | + return StringClass::sample(); /*57:string*/ | |
| 42940 | 43132 | } |
| 42941 | 43133 | |
| 42942 | 43134 | /** |
| @@ -42984,7 +43176,7 @@ class Obj5 { | ||
| 42984 | 43176 | * @return Struct |
| 42985 | 43177 | */ |
| 42986 | 43178 | public static function sampleStruct(): Struct { |
| 42987 | - return Struct::sample(); /*54:struct*/ | |
| 43179 | + return Struct::sample(); /*58:struct*/ | |
| 42988 | 43180 | } |
| 42989 | 43181 | |
| 42990 | 43182 | /** |
| @@ -43032,7 +43224,7 @@ class Obj5 { | ||
| 43032 | 43224 | * @return Subscript |
| 43033 | 43225 | */ |
| 43034 | 43226 | public static function sampleSubscript(): Subscript { |
| 43035 | - return Subscript::sample(); /*55:subscript*/ | |
| 43227 | + return Subscript::sample(); /*59:subscript*/ | |
| 43036 | 43228 | } |
| 43037 | 43229 | |
| 43038 | 43230 | /** |
| @@ -43080,7 +43272,7 @@ class Obj5 { | ||
| 43080 | 43272 | * @return Super |
| 43081 | 43273 | */ |
| 43082 | 43274 | public static function sampleSuper(): Super { |
| 43083 | - return Super::sample(); /*56:super*/ | |
| 43275 | + return Super::sample(); /*60:super*/ | |
| 43084 | 43276 | } |
| 43085 | 43277 | |
| 43086 | 43278 | /** |
| @@ -43128,7 +43320,7 @@ class Obj5 { | ||
| 43128 | 43320 | * @return SwitchClass |
| 43129 | 43321 | */ |
| 43130 | 43322 | public static function sampleSwitch(): SwitchClass { |
| 43131 | - return SwitchClass::sample(); /*57:switch*/ | |
| 43323 | + return SwitchClass::sample(); /*61:switch*/ | |
| 43132 | 43324 | } |
| 43133 | 43325 | |
| 43134 | 43326 | /** |
| @@ -43176,7 +43368,7 @@ class Obj5 { | ||
| 43176 | 43368 | * @return Symbol |
| 43177 | 43369 | */ |
| 43178 | 43370 | public static function sampleSymbol(): Symbol { |
| 43179 | - return Symbol::sample(); /*58:symbol*/ | |
| 43371 | + return Symbol::sample(); /*62:symbol*/ | |
| 43180 | 43372 | } |
| 43181 | 43373 | |
| 43182 | 43374 | /** |
| @@ -43224,7 +43416,7 @@ class Obj5 { | ||
| 43224 | 43416 | * @return Synchronized |
| 43225 | 43417 | */ |
| 43226 | 43418 | public static function sampleSynchronized(): Synchronized { |
| 43227 | - return Synchronized::sample(); /*59:synchronized*/ | |
| 43419 | + return Synchronized::sample(); /*63:synchronized*/ | |
| 43228 | 43420 | } |
| 43229 | 43421 | |
| 43230 | 43422 | /** |
| @@ -43272,7 +43464,7 @@ class Obj5 { | ||
| 43272 | 43464 | * @return System |
| 43273 | 43465 | */ |
| 43274 | 43466 | public static function sampleSystem(): System { |
| 43275 | - return System::sample(); /*60:system*/ | |
| 43467 | + return System::sample(); /*64:system*/ | |
| 43276 | 43468 | } |
| 43277 | 43469 | |
| 43278 | 43470 | /** |
| @@ -43320,7 +43512,7 @@ class Obj5 { | ||
| 43320 | 43512 | * @return Template |
| 43321 | 43513 | */ |
| 43322 | 43514 | public static function sampleTemplate(): Template { |
| 43323 | - return Template::sample(); /*61:template*/ | |
| 43515 | + return Template::sample(); /*65:template*/ | |
| 43324 | 43516 | } |
| 43325 | 43517 | |
| 43326 | 43518 | /** |
| @@ -43368,7 +43560,7 @@ class Obj5 { | ||
| 43368 | 43560 | * @return Then |
| 43369 | 43561 | */ |
| 43370 | 43562 | public static function sampleThen(): Then { |
| 43371 | - return Then::sample(); /*62:then*/ | |
| 43563 | + return Then::sample(); /*66:then*/ | |
| 43372 | 43564 | } |
| 43373 | 43565 | |
| 43374 | 43566 | /** |
| @@ -43416,7 +43608,7 @@ class Obj5 { | ||
| 43416 | 43608 | * @return ThreadLocal |
| 43417 | 43609 | */ |
| 43418 | 43610 | public static function sampleThreadLocal(): ThreadLocal { |
| 43419 | - return ThreadLocal::sample(); /*63:threadLocal*/ | |
| 43611 | + return ThreadLocal::sample(); /*67:threadLocal*/ | |
| 43420 | 43612 | } |
| 43421 | 43613 | |
| 43422 | 43614 | /** |
| @@ -43464,7 +43656,7 @@ class Obj5 { | ||
| 43464 | 43656 | * @return ThrowClass |
| 43465 | 43657 | */ |
| 43466 | 43658 | public static function sampleThrow(): ThrowClass { |
| 43467 | - return ThrowClass::sample(); /*64:throw*/ | |
| 43659 | + return ThrowClass::sample(); /*68:throw*/ | |
| 43468 | 43660 | } |
| 43469 | 43661 | |
| 43470 | 43662 | /** |
| @@ -43512,7 +43704,7 @@ class Obj5 { | ||
| 43512 | 43704 | * @return Throws |
| 43513 | 43705 | */ |
| 43514 | 43706 | public static function sampleThrows(): Throws { |
| 43515 | - return Throws::sample(); /*65:throws*/ | |
| 43707 | + return Throws::sample(); /*69:throws*/ | |
| 43516 | 43708 | } |
| 43517 | 43709 | |
| 43518 | 43710 | /** |
| @@ -43560,7 +43752,7 @@ class Obj5 { | ||
| 43560 | 43752 | * @return TimeOnly |
| 43561 | 43753 | */ |
| 43562 | 43754 | public static function sampleTimeOnly(): TimeOnly { |
| 43563 | - return TimeOnly::sample(); /*66:timeOnly*/ | |
| 43755 | + return TimeOnly::sample(); /*70:timeOnly*/ | |
| 43564 | 43756 | } |
| 43565 | 43757 | |
| 43566 | 43758 | /** |
| @@ -43608,7 +43800,7 @@ class Obj5 { | ||
| 43608 | 43800 | * @return TimeOnlyConverter |
| 43609 | 43801 | */ |
| 43610 | 43802 | public static function sampleTimeOnlyConverter(): TimeOnlyConverter { |
| 43611 | - return TimeOnlyConverter::sample(); /*67:timeOnlyConverter*/ | |
| 43803 | + return TimeOnlyConverter::sample(); /*71:timeOnlyConverter*/ | |
| 43612 | 43804 | } |
| 43613 | 43805 | |
| 43614 | 43806 | /** |
| @@ -43656,7 +43848,7 @@ class Obj5 { | ||
| 43656 | 43848 | * @return TimeZone |
| 43657 | 43849 | */ |
| 43658 | 43850 | public static function sampleTimeZone(): TimeZone { |
| 43659 | - return TimeZone::sample(); /*68:timeZone*/ | |
| 43851 | + return TimeZone::sample(); /*72:timeZone*/ | |
| 43660 | 43852 | } |
| 43661 | 43853 | |
| 43662 | 43854 | /** |
| @@ -43704,7 +43896,7 @@ class Obj5 { | ||
| 43704 | 43896 | * @return ToJSON |
| 43705 | 43897 | */ |
| 43706 | 43898 | public static function sampleToJSON(): ToJSON { |
| 43707 | - return ToJSON::sample(); /*69:toJSON*/ | |
| 43899 | + return ToJSON::sample(); /*73:toJSON*/ | |
| 43708 | 43900 | } |
| 43709 | 43901 | |
| 43710 | 43902 | /** |
| @@ -43752,7 +43944,7 @@ class Obj5 { | ||
| 43752 | 43944 | * @return ToString |
| 43753 | 43945 | */ |
| 43754 | 43946 | public static function sampleToString(): ToString { |
| 43755 | - return ToString::sample(); /*70:toString*/ | |
| 43947 | + return ToString::sample(); /*74:toString*/ | |
| 43756 | 43948 | } |
| 43757 | 43949 | |
| 43758 | 43950 | /** |
| @@ -43800,7 +43992,7 @@ class Obj5 { | ||
| 43800 | 43992 | * @return TopLevelClass |
| 43801 | 43993 | */ |
| 43802 | 43994 | public static function sampleTopLevel(): TopLevelClass { |
| 43803 | - return TopLevelClass::sample(); /*71:topLevel*/ | |
| 43995 | + return TopLevelClass::sample(); /*75:topLevel*/ | |
| 43804 | 43996 | } |
| 43805 | 43997 | |
| 43806 | 43998 | /** |
| @@ -43848,7 +44040,7 @@ class Obj5 { | ||
| 43848 | 44040 | * @return Transient |
| 43849 | 44041 | */ |
| 43850 | 44042 | public static function sampleTransient(): Transient { |
| 43851 | - return Transient::sample(); /*72:transient*/ | |
| 44043 | + return Transient::sample(); /*76:transient*/ | |
| 43852 | 44044 | } |
| 43853 | 44045 | |
| 43854 | 44046 | /** |
| @@ -43896,7 +44088,7 @@ class Obj5 { | ||
| 43896 | 44088 | * @return TrueClass |
| 43897 | 44089 | */ |
| 43898 | 44090 | public static function sampleTrue(): TrueClass { |
| 43899 | - return TrueClass::sample(); /*73:true*/ | |
| 44091 | + return TrueClass::sample(); /*77:true*/ | |
| 43900 | 44092 | } |
| 43901 | 44093 | |
| 43902 | 44094 | /** |
| @@ -43944,7 +44136,7 @@ class Obj5 { | ||
| 43944 | 44136 | * @return TryClass |
| 43945 | 44137 | */ |
| 43946 | 44138 | public static function sampleTry(): TryClass { |
| 43947 | - return TryClass::sample(); /*74:try*/ | |
| 44139 | + return TryClass::sample(); /*78:try*/ | |
| 43948 | 44140 | } |
| 43949 | 44141 | |
| 43950 | 44142 | /** |
| @@ -43992,7 +44184,7 @@ class Obj5 { | ||
| 43992 | 44184 | * @return Type |
| 43993 | 44185 | */ |
| 43994 | 44186 | public static function sampleType(): Type { |
| 43995 | - return Type::sample(); /*75:type*/ | |
| 44187 | + return Type::sample(); /*79:type*/ | |
| 43996 | 44188 | } |
| 43997 | 44189 | |
| 43998 | 44190 | /** |
| @@ -44040,7 +44232,7 @@ class Obj5 { | ||
| 44040 | 44232 | * @return Typealias |
| 44041 | 44233 | */ |
| 44042 | 44234 | public static function sampleTypealias(): Typealias { |
| 44043 | - return Typealias::sample(); /*76:typealias*/ | |
| 44235 | + return Typealias::sample(); /*80:typealias*/ | |
| 44044 | 44236 | } |
| 44045 | 44237 | |
| 44046 | 44238 | /** |
| @@ -44088,7 +44280,7 @@ class Obj5 { | ||
| 44088 | 44280 | * @return Typedef |
| 44089 | 44281 | */ |
| 44090 | 44282 | public static function sampleTypedef(): Typedef { |
| 44091 | - return Typedef::sample(); /*77:typedef*/ | |
| 44283 | + return Typedef::sample(); /*81:typedef*/ | |
| 44092 | 44284 | } |
| 44093 | 44285 | |
| 44094 | 44286 | /** |
| @@ -44136,7 +44328,7 @@ class Obj5 { | ||
| 44136 | 44328 | * @return Typeid |
| 44137 | 44329 | */ |
| 44138 | 44330 | public static function sampleTypeid(): Typeid { |
| 44139 | - return Typeid::sample(); /*78:typeid*/ | |
| 44331 | + return Typeid::sample(); /*82:typeid*/ | |
| 44140 | 44332 | } |
| 44141 | 44333 | |
| 44142 | 44334 | /** |
| @@ -44184,7 +44376,7 @@ class Obj5 { | ||
| 44184 | 44376 | * @return Typename |
| 44185 | 44377 | */ |
| 44186 | 44378 | public static function sampleTypename(): Typename { |
| 44187 | - return Typename::sample(); /*79:typename*/ | |
| 44379 | + return Typename::sample(); /*83:typename*/ | |
| 44188 | 44380 | } |
| 44189 | 44381 | |
| 44190 | 44382 | /** |
| @@ -44232,7 +44424,7 @@ class Obj5 { | ||
| 44232 | 44424 | * @return Typeof |
| 44233 | 44425 | */ |
| 44234 | 44426 | public static function sampleTypeof(): Typeof { |
| 44235 | - return Typeof::sample(); /*80:typeof*/ | |
| 44427 | + return Typeof::sample(); /*84:typeof*/ | |
| 44236 | 44428 | } |
| 44237 | 44429 | |
| 44238 | 44430 | /** |
| @@ -44280,7 +44472,7 @@ class Obj5 { | ||
| 44280 | 44472 | * @return Uint |
| 44281 | 44473 | */ |
| 44282 | 44474 | public static function sampleUint(): Uint { |
| 44283 | - return Uint::sample(); /*81:uint*/ | |
| 44475 | + return Uint::sample(); /*85:uint*/ | |
| 44284 | 44476 | } |
| 44285 | 44477 | |
| 44286 | 44478 | /** |
| @@ -44328,7 +44520,7 @@ class Obj5 { | ||
| 44328 | 44520 | * @return Ulong |
| 44329 | 44521 | */ |
| 44330 | 44522 | public static function sampleUlong(): Ulong { |
| 44331 | - return Ulong::sample(); /*82:ulong*/ | |
| 44523 | + return Ulong::sample(); /*86:ulong*/ | |
| 44332 | 44524 | } |
| 44333 | 44525 | |
| 44334 | 44526 | /** |
| @@ -44376,7 +44568,7 @@ class Obj5 { | ||
| 44376 | 44568 | * @return Unchecked |
| 44377 | 44569 | */ |
| 44378 | 44570 | public static function sampleUnchecked(): Unchecked { |
| 44379 | - return Unchecked::sample(); /*83:unchecked*/ | |
| 44571 | + return Unchecked::sample(); /*87:unchecked*/ | |
| 44380 | 44572 | } |
| 44381 | 44573 | |
| 44382 | 44574 | /** |
| @@ -44424,7 +44616,7 @@ class Obj5 { | ||
| 44424 | 44616 | * @return Undefined |
| 44425 | 44617 | */ |
| 44426 | 44618 | public static function sampleUndefined(): Undefined { |
| 44427 | - return Undefined::sample(); /*84:undefined*/ | |
| 44619 | + return Undefined::sample(); /*88:undefined*/ | |
| 44428 | 44620 | } |
| 44429 | 44621 | |
| 44430 | 44622 | /** |
| @@ -44472,7 +44664,7 @@ class Obj5 { | ||
| 44472 | 44664 | * @return Union |
| 44473 | 44665 | */ |
| 44474 | 44666 | public static function sampleUnion(): Union { |
| 44475 | - return Union::sample(); /*85:union*/ | |
| 44667 | + return Union::sample(); /*89:union*/ | |
| 44476 | 44668 | } |
| 44477 | 44669 | |
| 44478 | 44670 | /** |
| @@ -44520,7 +44712,7 @@ class Obj5 { | ||
| 44520 | 44712 | * @return Unowned |
| 44521 | 44713 | */ |
| 44522 | 44714 | public static function sampleUnowned(): Unowned { |
| 44523 | - return Unowned::sample(); /*86:unowned*/ | |
| 44715 | + return Unowned::sample(); /*90:unowned*/ | |
| 44524 | 44716 | } |
| 44525 | 44717 | |
| 44526 | 44718 | /** |
| @@ -44568,7 +44760,7 @@ class Obj5 { | ||
| 44568 | 44760 | * @return Unsafe |
| 44569 | 44761 | */ |
| 44570 | 44762 | public static function sampleUnsafe(): Unsafe { |
| 44571 | - return Unsafe::sample(); /*87:unsafe*/ | |
| 44763 | + return Unsafe::sample(); /*91:unsafe*/ | |
| 44572 | 44764 | } |
| 44573 | 44765 | |
| 44574 | 44766 | /** |
| @@ -44616,7 +44808,7 @@ class Obj5 { | ||
| 44616 | 44808 | * @return Unsigned |
| 44617 | 44809 | */ |
| 44618 | 44810 | public static function sampleUnsigned(): Unsigned { |
| 44619 | - return Unsigned::sample(); /*88:unsigned*/ | |
| 44811 | + return Unsigned::sample(); /*92:unsigned*/ | |
| 44620 | 44812 | } |
| 44621 | 44813 | |
| 44622 | 44814 | /** |
| @@ -44664,7 +44856,7 @@ class Obj5 { | ||
| 44664 | 44856 | * @return Ushort |
| 44665 | 44857 | */ |
| 44666 | 44858 | public static function sampleUshort(): Ushort { |
| 44667 | - return Ushort::sample(); /*89:ushort*/ | |
| 44859 | + return Ushort::sample(); /*93:ushort*/ | |
| 44668 | 44860 | } |
| 44669 | 44861 | |
| 44670 | 44862 | /** |
| @@ -44712,7 +44904,7 @@ class Obj5 { | ||
| 44712 | 44904 | * @return Using |
| 44713 | 44905 | */ |
| 44714 | 44906 | public static function sampleUsing(): Using { |
| 44715 | - return Using::sample(); /*90:using*/ | |
| 44907 | + return Using::sample(); /*94:using*/ | |
| 44716 | 44908 | } |
| 44717 | 44909 | |
| 44718 | 44910 | /** |
| @@ -44760,199 +44952,7 @@ class Obj5 { | ||
| 44760 | 44952 | * @return Utf8JSONReader |
| 44761 | 44953 | */ |
| 44762 | 44954 | public static function sampleUtf8JSONReader(): Utf8JSONReader { |
| 44763 | - return Utf8JSONReader::sample(); /*91:utf8JSONReader*/ | |
| 44764 | - } | |
| 44765 | - | |
| 44766 | - /** | |
| 44767 | - * @param stdClass $value | |
| 44768 | - * @throws Exception | |
| 44769 | - * @return Utf8JSONWriter | |
| 44770 | - */ | |
| 44771 | - public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter { | |
| 44772 | - return Utf8JSONWriter::from($value); /*class*/ | |
| 44773 | - } | |
| 44774 | - | |
| 44775 | - /** | |
| 44776 | - * @throws Exception | |
| 44777 | - * @return stdClass | |
| 44778 | - */ | |
| 44779 | - public function toUtf8JSONWriter(): stdClass { | |
| 44780 | - if (Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 44781 | - return $this->utf8JSONWriter->to(); /*class*/ | |
| 44782 | - } | |
| 44783 | - throw new Exception('never get to this Obj5::utf8JSONWriter'); | |
| 44784 | - } | |
| 44785 | - | |
| 44786 | - /** | |
| 44787 | - * @param Utf8JSONWriter | |
| 44788 | - * @return bool | |
| 44789 | - * @throws Exception | |
| 44790 | - */ | |
| 44791 | - public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool { | |
| 44792 | - $value->validate(); | |
| 44793 | - return true; | |
| 44794 | - } | |
| 44795 | - | |
| 44796 | - /** | |
| 44797 | - * @throws Exception | |
| 44798 | - * @return Utf8JSONWriter | |
| 44799 | - */ | |
| 44800 | - public function getUtf8JSONWriter(): Utf8JSONWriter { | |
| 44801 | - if (Obj5::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 44802 | - return $this->utf8JSONWriter; | |
| 44803 | - } | |
| 44804 | - throw new Exception('never get to getUtf8JSONWriter Obj5::utf8JSONWriter'); | |
| 44805 | - } | |
| 44806 | - | |
| 44807 | - /** | |
| 44808 | - * @return Utf8JSONWriter | |
| 44809 | - */ | |
| 44810 | - public static function sampleUtf8JSONWriter(): Utf8JSONWriter { | |
| 44811 | - return Utf8JSONWriter::sample(); /*92:utf8JSONWriter*/ | |
| 44812 | - } | |
| 44813 | - | |
| 44814 | - /** | |
| 44815 | - * @param stdClass $value | |
| 44816 | - * @throws Exception | |
| 44817 | - * @return UUID | |
| 44818 | - */ | |
| 44819 | - public static function fromUUID(stdClass $value): UUID { | |
| 44820 | - return UUID::from($value); /*class*/ | |
| 44821 | - } | |
| 44822 | - | |
| 44823 | - /** | |
| 44824 | - * @throws Exception | |
| 44825 | - * @return stdClass | |
| 44826 | - */ | |
| 44827 | - public function toUUID(): stdClass { | |
| 44828 | - if (Obj5::validateUUID($this->uuid)) { | |
| 44829 | - return $this->uuid->to(); /*class*/ | |
| 44830 | - } | |
| 44831 | - throw new Exception('never get to this Obj5::uuid'); | |
| 44832 | - } | |
| 44833 | - | |
| 44834 | - /** | |
| 44835 | - * @param UUID | |
| 44836 | - * @return bool | |
| 44837 | - * @throws Exception | |
| 44838 | - */ | |
| 44839 | - public static function validateUUID(UUID $value): bool { | |
| 44840 | - $value->validate(); | |
| 44841 | - return true; | |
| 44842 | - } | |
| 44843 | - | |
| 44844 | - /** | |
| 44845 | - * @throws Exception | |
| 44846 | - * @return UUID | |
| 44847 | - */ | |
| 44848 | - public function getUUID(): UUID { | |
| 44849 | - if (Obj5::validateUUID($this->uuid)) { | |
| 44850 | - return $this->uuid; | |
| 44851 | - } | |
| 44852 | - throw new Exception('never get to getUUID Obj5::uuid'); | |
| 44853 | - } | |
| 44854 | - | |
| 44855 | - /** | |
| 44856 | - * @return UUID | |
| 44857 | - */ | |
| 44858 | - public static function sampleUUID(): UUID { | |
| 44859 | - return UUID::sample(); /*93:uuid*/ | |
| 44860 | - } | |
| 44861 | - | |
| 44862 | - /** | |
| 44863 | - * @param stdClass $value | |
| 44864 | - * @throws Exception | |
| 44865 | - * @return VarClass | |
| 44866 | - */ | |
| 44867 | - public static function fromVar(stdClass $value): VarClass { | |
| 44868 | - return VarClass::from($value); /*class*/ | |
| 44869 | - } | |
| 44870 | - | |
| 44871 | - /** | |
| 44872 | - * @throws Exception | |
| 44873 | - * @return stdClass | |
| 44874 | - */ | |
| 44875 | - public function toVar(): stdClass { | |
| 44876 | - if (Obj5::validateVar($this->var)) { | |
| 44877 | - return $this->var->to(); /*class*/ | |
| 44878 | - } | |
| 44879 | - throw new Exception('never get to this Obj5::var'); | |
| 44880 | - } | |
| 44881 | - | |
| 44882 | - /** | |
| 44883 | - * @param VarClass | |
| 44884 | - * @return bool | |
| 44885 | - * @throws Exception | |
| 44886 | - */ | |
| 44887 | - public static function validateVar(VarClass $value): bool { | |
| 44888 | - $value->validate(); | |
| 44889 | - return true; | |
| 44890 | - } | |
| 44891 | - | |
| 44892 | - /** | |
| 44893 | - * @throws Exception | |
| 44894 | - * @return VarClass | |
| 44895 | - */ | |
| 44896 | - public function getVar(): VarClass { | |
| 44897 | - if (Obj5::validateVar($this->var)) { | |
| 44898 | - return $this->var; | |
| 44899 | - } | |
| 44900 | - throw new Exception('never get to getVar Obj5::var'); | |
| 44901 | - } | |
| 44902 | - | |
| 44903 | - /** | |
| 44904 | - * @return VarClass | |
| 44905 | - */ | |
| 44906 | - public static function sampleVar(): VarClass { | |
| 44907 | - return VarClass::sample(); /*94:var*/ | |
| 44908 | - } | |
| 44909 | - | |
| 44910 | - /** | |
| 44911 | - * @param stdClass $value | |
| 44912 | - * @throws Exception | |
| 44913 | - * @return Virtual | |
| 44914 | - */ | |
| 44915 | - public static function fromVirtual(stdClass $value): Virtual { | |
| 44916 | - return Virtual::from($value); /*class*/ | |
| 44917 | - } | |
| 44918 | - | |
| 44919 | - /** | |
| 44920 | - * @throws Exception | |
| 44921 | - * @return stdClass | |
| 44922 | - */ | |
| 44923 | - public function toVirtual(): stdClass { | |
| 44924 | - if (Obj5::validateVirtual($this->virtual)) { | |
| 44925 | - return $this->virtual->to(); /*class*/ | |
| 44926 | - } | |
| 44927 | - throw new Exception('never get to this Obj5::virtual'); | |
| 44928 | - } | |
| 44929 | - | |
| 44930 | - /** | |
| 44931 | - * @param Virtual | |
| 44932 | - * @return bool | |
| 44933 | - * @throws Exception | |
| 44934 | - */ | |
| 44935 | - public static function validateVirtual(Virtual $value): bool { | |
| 44936 | - $value->validate(); | |
| 44937 | - return true; | |
| 44938 | - } | |
| 44939 | - | |
| 44940 | - /** | |
| 44941 | - * @throws Exception | |
| 44942 | - * @return Virtual | |
| 44943 | - */ | |
| 44944 | - public function getVirtual(): Virtual { | |
| 44945 | - if (Obj5::validateVirtual($this->virtual)) { | |
| 44946 | - return $this->virtual; | |
| 44947 | - } | |
| 44948 | - throw new Exception('never get to getVirtual Obj5::virtual'); | |
| 44949 | - } | |
| 44950 | - | |
| 44951 | - /** | |
| 44952 | - * @return Virtual | |
| 44953 | - */ | |
| 44954 | - public static function sampleVirtual(): Virtual { | |
| 44955 | - return Virtual::sample(); /*95:virtual*/ | |
| 44955 | + return Utf8JSONReader::sample(); /*95:utf8JSONReader*/ | |
| 44956 | 44956 | } |
| 44957 | 44957 | |
| 44958 | 44958 | /** |
| @@ -44965,8 +44965,12 @@ class Obj5 { | ||
| 44965 | 44965 | || Obj5::validateObj5This($this->obj5This) |
| 44966 | 44966 | || Obj5::validateObj5True($this->obj5True) |
| 44967 | 44967 | || Obj5::validateObj5Type($this->obj5Type) |
| 44968 | + || Obj5::validateSealed($this->sealed) | |
| 44969 | + || Obj5::validateSel($this->sel) | |
| 44970 | + || Obj5::validateSelect($this->select) | |
| 44968 | 44971 | || Obj5::validateSelf($this->self) |
| 44969 | 44972 | || Obj5::validateSendable($this->sendable) |
| 44973 | + || Obj5::validateSerializationFeature($this->serializationFeature) | |
| 44970 | 44974 | || Obj5::validateSerialize($this->serialize) |
| 44971 | 44975 | || Obj5::validateSerializerProvider($this->serializerProvider) |
| 44972 | 44976 | || Obj5::validateSet($this->set) |
| @@ -45020,11 +45024,7 @@ class Obj5 { | ||
| 45020 | 45024 | || Obj5::validateUnsigned($this->unsigned) |
| 45021 | 45025 | || Obj5::validateUshort($this->ushort) |
| 45022 | 45026 | || Obj5::validateUsing($this->using) |
| 45023 | - || Obj5::validateUtf8JSONReader($this->utf8JSONReader) | |
| 45024 | - || Obj5::validateUtf8JSONWriter($this->utf8JSONWriter) | |
| 45025 | - || Obj5::validateUUID($this->uuid) | |
| 45026 | - || Obj5::validateVar($this->var) | |
| 45027 | - || Obj5::validateVirtual($this->virtual); | |
| 45027 | + || Obj5::validateUtf8JSONReader($this->utf8JSONReader); | |
| 45028 | 45028 | } |
| 45029 | 45029 | |
| 45030 | 45030 | /** |
| @@ -45038,8 +45038,12 @@ class Obj5 { | ||
| 45038 | 45038 | $out->{'this'} = $this->toObj5This(); |
| 45039 | 45039 | $out->{'true'} = $this->toObj5True(); |
| 45040 | 45040 | $out->{'type'} = $this->toObj5Type(); |
| 45041 | + $out->{'sealed'} = $this->toSealed(); | |
| 45042 | + $out->{'SEL'} = $this->toSel(); | |
| 45043 | + $out->{'select'} = $this->toSelect(); | |
| 45041 | 45044 | $out->{'Self'} = $this->toSelf(); |
| 45042 | 45045 | $out->{'Sendable'} = $this->toSendable(); |
| 45046 | + $out->{'SerializationFeature'} = $this->toSerializationFeature(); | |
| 45043 | 45047 | $out->{'serialize'} = $this->toSerialize(); |
| 45044 | 45048 | $out->{'SerializerProvider'} = $this->toSerializerProvider(); |
| 45045 | 45049 | $out->{'set'} = $this->toSet(); |
| @@ -45094,10 +45098,6 @@ class Obj5 { | ||
| 45094 | 45098 | $out->{'ushort'} = $this->toUshort(); |
| 45095 | 45099 | $out->{'using'} = $this->toUsing(); |
| 45096 | 45100 | $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader(); |
| 45097 | - $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 45098 | - $out->{'UUID'} = $this->toUUID(); | |
| 45099 | - $out->{'var'} = $this->toVar(); | |
| 45100 | - $out->{'virtual'} = $this->toVirtual(); | |
| 45101 | 45101 | return $out; |
| 45102 | 45102 | } |
| 45103 | 45103 | |
| @@ -45122,12 +45122,24 @@ class Obj5 { | ||
| 45122 | 45122 | if (!property_exists($obj, 'type')) { |
| 45123 | 45123 | throw new Exception("Missing required property"); |
| 45124 | 45124 | } |
| 45125 | + if (!property_exists($obj, 'sealed')) { | |
| 45126 | + throw new Exception("Missing required property"); | |
| 45127 | + } | |
| 45128 | + if (!property_exists($obj, 'SEL')) { | |
| 45129 | + throw new Exception("Missing required property"); | |
| 45130 | + } | |
| 45131 | + if (!property_exists($obj, 'select')) { | |
| 45132 | + throw new Exception("Missing required property"); | |
| 45133 | + } | |
| 45125 | 45134 | if (!property_exists($obj, 'Self')) { |
| 45126 | 45135 | throw new Exception("Missing required property"); |
| 45127 | 45136 | } |
| 45128 | 45137 | if (!property_exists($obj, 'Sendable')) { |
| 45129 | 45138 | throw new Exception("Missing required property"); |
| 45130 | 45139 | } |
| 45140 | + if (!property_exists($obj, 'SerializationFeature')) { | |
| 45141 | + throw new Exception("Missing required property"); | |
| 45142 | + } | |
| 45131 | 45143 | if (!property_exists($obj, 'serialize')) { |
| 45132 | 45144 | throw new Exception("Missing required property"); |
| 45133 | 45145 | } |
| @@ -45290,26 +45302,18 @@ class Obj5 { | ||
| 45290 | 45302 | if (!property_exists($obj, 'Utf8JsonReader')) { |
| 45291 | 45303 | throw new Exception("Missing required property"); |
| 45292 | 45304 | } |
| 45293 | - if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 45294 | - throw new Exception("Missing required property"); | |
| 45295 | - } | |
| 45296 | - if (!property_exists($obj, 'UUID')) { | |
| 45297 | - throw new Exception("Missing required property"); | |
| 45298 | - } | |
| 45299 | - if (!property_exists($obj, 'var')) { | |
| 45300 | - throw new Exception("Missing required property"); | |
| 45301 | - } | |
| 45302 | - if (!property_exists($obj, 'virtual')) { | |
| 45303 | - throw new Exception("Missing required property"); | |
| 45304 | - } | |
| 45305 | 45305 | return new Obj5( |
| 45306 | 45306 | Obj5::fromDummy($obj->{'dummy'}) |
| 45307 | 45307 | ,Obj5::fromObj5Self($obj->{'self'}) |
| 45308 | 45308 | ,Obj5::fromObj5This($obj->{'this'}) |
| 45309 | 45309 | ,Obj5::fromObj5True($obj->{'true'}) |
| 45310 | 45310 | ,Obj5::fromObj5Type($obj->{'type'}) |
| 45311 | + ,Obj5::fromSealed($obj->{'sealed'}) | |
| 45312 | + ,Obj5::fromSel($obj->{'SEL'}) | |
| 45313 | + ,Obj5::fromSelect($obj->{'select'}) | |
| 45311 | 45314 | ,Obj5::fromSelf($obj->{'Self'}) |
| 45312 | 45315 | ,Obj5::fromSendable($obj->{'Sendable'}) |
| 45316 | + ,Obj5::fromSerializationFeature($obj->{'SerializationFeature'}) | |
| 45313 | 45317 | ,Obj5::fromSerialize($obj->{'serialize'}) |
| 45314 | 45318 | ,Obj5::fromSerializerProvider($obj->{'SerializerProvider'}) |
| 45315 | 45319 | ,Obj5::fromSet($obj->{'set'}) |
| @@ -45364,10 +45368,6 @@ class Obj5 { | ||
| 45364 | 45368 | ,Obj5::fromUshort($obj->{'ushort'}) |
| 45365 | 45369 | ,Obj5::fromUsing($obj->{'using'}) |
| 45366 | 45370 | ,Obj5::fromUtf8JSONReader($obj->{'Utf8JsonReader'}) |
| 45367 | - ,Obj5::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 45368 | - ,Obj5::fromUUID($obj->{'UUID'}) | |
| 45369 | - ,Obj5::fromVar($obj->{'var'}) | |
| 45370 | - ,Obj5::fromVirtual($obj->{'virtual'}) | |
| 45371 | 45371 | ); |
| 45372 | 45372 | } |
| 45373 | 45373 | |
| @@ -45381,8 +45381,12 @@ class Obj5 { | ||
| 45381 | 45381 | ,Obj5::sampleObj5This() |
| 45382 | 45382 | ,Obj5::sampleObj5True() |
| 45383 | 45383 | ,Obj5::sampleObj5Type() |
| 45384 | + ,Obj5::sampleSealed() | |
| 45385 | + ,Obj5::sampleSel() | |
| 45386 | + ,Obj5::sampleSelect() | |
| 45384 | 45387 | ,Obj5::sampleSelf() |
| 45385 | 45388 | ,Obj5::sampleSendable() |
| 45389 | + ,Obj5::sampleSerializationFeature() | |
| 45386 | 45390 | ,Obj5::sampleSerialize() |
| 45387 | 45391 | ,Obj5::sampleSerializerProvider() |
| 45388 | 45392 | ,Obj5::sampleSet() |
| @@ -45437,10 +45441,6 @@ class Obj5 { | ||
| 45437 | 45441 | ,Obj5::sampleUshort() |
| 45438 | 45442 | ,Obj5::sampleUsing() |
| 45439 | 45443 | ,Obj5::sampleUtf8JSONReader() |
| 45440 | - ,Obj5::sampleUtf8JSONWriter() | |
| 45441 | - ,Obj5::sampleUUID() | |
| 45442 | - ,Obj5::sampleVar() | |
| 45443 | - ,Obj5::sampleVirtual() | |
| 45444 | 45444 | ); |
| 45445 | 45445 | } |
| 45446 | 45446 | } |
| @@ -45849,6 +45849,309 @@ class TypeClass { | ||
| 45849 | 45849 | } |
| 45850 | 45850 | } |
| 45851 | 45851 | |
| 45852 | +// This is an autogenerated file:Sealed | |
| 45853 | + | |
| 45854 | +class Sealed { | |
| 45855 | + private int $sealed; // json:sealed Required | |
| 45856 | + | |
| 45857 | + /** | |
| 45858 | + * @param int $sealed | |
| 45859 | + */ | |
| 45860 | + public function __construct(int $sealed) { | |
| 45861 | + $this->sealed = $sealed; | |
| 45862 | + } | |
| 45863 | + | |
| 45864 | + /** | |
| 45865 | + * @param int $value | |
| 45866 | + * @throws Exception | |
| 45867 | + * @return int | |
| 45868 | + */ | |
| 45869 | + public static function fromSealed(int $value): int { | |
| 45870 | + return $value; /*int*/ | |
| 45871 | + } | |
| 45872 | + | |
| 45873 | + /** | |
| 45874 | + * @throws Exception | |
| 45875 | + * @return int | |
| 45876 | + */ | |
| 45877 | + public function toSealed(): int { | |
| 45878 | + if (Sealed::validateSealed($this->sealed)) { | |
| 45879 | + return $this->sealed; /*int*/ | |
| 45880 | + } | |
| 45881 | + throw new Exception('never get to this Sealed::sealed'); | |
| 45882 | + } | |
| 45883 | + | |
| 45884 | + /** | |
| 45885 | + * @param int | |
| 45886 | + * @return bool | |
| 45887 | + * @throws Exception | |
| 45888 | + */ | |
| 45889 | + public static function validateSealed(int $value): bool { | |
| 45890 | + return true; | |
| 45891 | + } | |
| 45892 | + | |
| 45893 | + /** | |
| 45894 | + * @throws Exception | |
| 45895 | + * @return int | |
| 45896 | + */ | |
| 45897 | + public function getSealed(): int { | |
| 45898 | + if (Sealed::validateSealed($this->sealed)) { | |
| 45899 | + return $this->sealed; | |
| 45900 | + } | |
| 45901 | + throw new Exception('never get to getSealed Sealed::sealed'); | |
| 45902 | + } | |
| 45903 | + | |
| 45904 | + /** | |
| 45905 | + * @return int | |
| 45906 | + */ | |
| 45907 | + public static function sampleSealed(): int { | |
| 45908 | + return 31; /*31:sealed*/ | |
| 45909 | + } | |
| 45910 | + | |
| 45911 | + /** | |
| 45912 | + * @throws Exception | |
| 45913 | + * @return bool | |
| 45914 | + */ | |
| 45915 | + public function validate(): bool { | |
| 45916 | + return Sealed::validateSealed($this->sealed); | |
| 45917 | + } | |
| 45918 | + | |
| 45919 | + /** | |
| 45920 | + * @return stdClass | |
| 45921 | + * @throws Exception | |
| 45922 | + */ | |
| 45923 | + public function to(): stdClass { | |
| 45924 | + $out = new stdClass(); | |
| 45925 | + $out->{'sealed'} = $this->toSealed(); | |
| 45926 | + return $out; | |
| 45927 | + } | |
| 45928 | + | |
| 45929 | + /** | |
| 45930 | + * @param stdClass $obj | |
| 45931 | + * @return Sealed | |
| 45932 | + * @throws Exception | |
| 45933 | + */ | |
| 45934 | + public static function from(stdClass $obj): Sealed { | |
| 45935 | + if (!property_exists($obj, 'sealed')) { | |
| 45936 | + throw new Exception("Missing required property"); | |
| 45937 | + } | |
| 45938 | + return new Sealed( | |
| 45939 | + Sealed::fromSealed($obj->{'sealed'}) | |
| 45940 | + ); | |
| 45941 | + } | |
| 45942 | + | |
| 45943 | + /** | |
| 45944 | + * @return Sealed | |
| 45945 | + */ | |
| 45946 | + public static function sample(): Sealed { | |
| 45947 | + return new Sealed( | |
| 45948 | + Sealed::sampleSealed() | |
| 45949 | + ); | |
| 45950 | + } | |
| 45951 | +} | |
| 45952 | + | |
| 45953 | +// This is an autogenerated file:Sel | |
| 45954 | + | |
| 45955 | +class Sel { | |
| 45956 | + private int $sel; // json:SEL Required | |
| 45957 | + | |
| 45958 | + /** | |
| 45959 | + * @param int $sel | |
| 45960 | + */ | |
| 45961 | + public function __construct(int $sel) { | |
| 45962 | + $this->sel = $sel; | |
| 45963 | + } | |
| 45964 | + | |
| 45965 | + /** | |
| 45966 | + * @param int $value | |
| 45967 | + * @throws Exception | |
| 45968 | + * @return int | |
| 45969 | + */ | |
| 45970 | + public static function fromSel(int $value): int { | |
| 45971 | + return $value; /*int*/ | |
| 45972 | + } | |
| 45973 | + | |
| 45974 | + /** | |
| 45975 | + * @throws Exception | |
| 45976 | + * @return int | |
| 45977 | + */ | |
| 45978 | + public function toSel(): int { | |
| 45979 | + if (Sel::validateSel($this->sel)) { | |
| 45980 | + return $this->sel; /*int*/ | |
| 45981 | + } | |
| 45982 | + throw new Exception('never get to this Sel::sel'); | |
| 45983 | + } | |
| 45984 | + | |
| 45985 | + /** | |
| 45986 | + * @param int | |
| 45987 | + * @return bool | |
| 45988 | + * @throws Exception | |
| 45989 | + */ | |
| 45990 | + public static function validateSel(int $value): bool { | |
| 45991 | + return true; | |
| 45992 | + } | |
| 45993 | + | |
| 45994 | + /** | |
| 45995 | + * @throws Exception | |
| 45996 | + * @return int | |
| 45997 | + */ | |
| 45998 | + public function getSel(): int { | |
| 45999 | + if (Sel::validateSel($this->sel)) { | |
| 46000 | + return $this->sel; | |
| 46001 | + } | |
| 46002 | + throw new Exception('never get to getSel Sel::sel'); | |
| 46003 | + } | |
| 46004 | + | |
| 46005 | + /** | |
| 46006 | + * @return int | |
| 46007 | + */ | |
| 46008 | + public static function sampleSel(): int { | |
| 46009 | + return 31; /*31:sel*/ | |
| 46010 | + } | |
| 46011 | + | |
| 46012 | + /** | |
| 46013 | + * @throws Exception | |
| 46014 | + * @return bool | |
| 46015 | + */ | |
| 46016 | + public function validate(): bool { | |
| 46017 | + return Sel::validateSel($this->sel); | |
| 46018 | + } | |
| 46019 | + | |
| 46020 | + /** | |
| 46021 | + * @return stdClass | |
| 46022 | + * @throws Exception | |
| 46023 | + */ | |
| 46024 | + public function to(): stdClass { | |
| 46025 | + $out = new stdClass(); | |
| 46026 | + $out->{'SEL'} = $this->toSel(); | |
| 46027 | + return $out; | |
| 46028 | + } | |
| 46029 | + | |
| 46030 | + /** | |
| 46031 | + * @param stdClass $obj | |
| 46032 | + * @return Sel | |
| 46033 | + * @throws Exception | |
| 46034 | + */ | |
| 46035 | + public static function from(stdClass $obj): Sel { | |
| 46036 | + if (!property_exists($obj, 'SEL')) { | |
| 46037 | + throw new Exception("Missing required property"); | |
| 46038 | + } | |
| 46039 | + return new Sel( | |
| 46040 | + Sel::fromSel($obj->{'SEL'}) | |
| 46041 | + ); | |
| 46042 | + } | |
| 46043 | + | |
| 46044 | + /** | |
| 46045 | + * @return Sel | |
| 46046 | + */ | |
| 46047 | + public static function sample(): Sel { | |
| 46048 | + return new Sel( | |
| 46049 | + Sel::sampleSel() | |
| 46050 | + ); | |
| 46051 | + } | |
| 46052 | +} | |
| 46053 | + | |
| 46054 | +// This is an autogenerated file:Select | |
| 46055 | + | |
| 46056 | +class Select { | |
| 46057 | + private int $select; // json:select Required | |
| 46058 | + | |
| 46059 | + /** | |
| 46060 | + * @param int $select | |
| 46061 | + */ | |
| 46062 | + public function __construct(int $select) { | |
| 46063 | + $this->select = $select; | |
| 46064 | + } | |
| 46065 | + | |
| 46066 | + /** | |
| 46067 | + * @param int $value | |
| 46068 | + * @throws Exception | |
| 46069 | + * @return int | |
| 46070 | + */ | |
| 46071 | + public static function fromSelect(int $value): int { | |
| 46072 | + return $value; /*int*/ | |
| 46073 | + } | |
| 46074 | + | |
| 46075 | + /** | |
| 46076 | + * @throws Exception | |
| 46077 | + * @return int | |
| 46078 | + */ | |
| 46079 | + public function toSelect(): int { | |
| 46080 | + if (Select::validateSelect($this->select)) { | |
| 46081 | + return $this->select; /*int*/ | |
| 46082 | + } | |
| 46083 | + throw new Exception('never get to this Select::select'); | |
| 46084 | + } | |
| 46085 | + | |
| 46086 | + /** | |
| 46087 | + * @param int | |
| 46088 | + * @return bool | |
| 46089 | + * @throws Exception | |
| 46090 | + */ | |
| 46091 | + public static function validateSelect(int $value): bool { | |
| 46092 | + return true; | |
| 46093 | + } | |
| 46094 | + | |
| 46095 | + /** | |
| 46096 | + * @throws Exception | |
| 46097 | + * @return int | |
| 46098 | + */ | |
| 46099 | + public function getSelect(): int { | |
| 46100 | + if (Select::validateSelect($this->select)) { | |
| 46101 | + return $this->select; | |
| 46102 | + } | |
| 46103 | + throw new Exception('never get to getSelect Select::select'); | |
| 46104 | + } | |
| 46105 | + | |
| 46106 | + /** | |
| 46107 | + * @return int | |
| 46108 | + */ | |
| 46109 | + public static function sampleSelect(): int { | |
| 46110 | + return 31; /*31:select*/ | |
| 46111 | + } | |
| 46112 | + | |
| 46113 | + /** | |
| 46114 | + * @throws Exception | |
| 46115 | + * @return bool | |
| 46116 | + */ | |
| 46117 | + public function validate(): bool { | |
| 46118 | + return Select::validateSelect($this->select); | |
| 46119 | + } | |
| 46120 | + | |
| 46121 | + /** | |
| 46122 | + * @return stdClass | |
| 46123 | + * @throws Exception | |
| 46124 | + */ | |
| 46125 | + public function to(): stdClass { | |
| 46126 | + $out = new stdClass(); | |
| 46127 | + $out->{'select'} = $this->toSelect(); | |
| 46128 | + return $out; | |
| 46129 | + } | |
| 46130 | + | |
| 46131 | + /** | |
| 46132 | + * @param stdClass $obj | |
| 46133 | + * @return Select | |
| 46134 | + * @throws Exception | |
| 46135 | + */ | |
| 46136 | + public static function from(stdClass $obj): Select { | |
| 46137 | + if (!property_exists($obj, 'select')) { | |
| 46138 | + throw new Exception("Missing required property"); | |
| 46139 | + } | |
| 46140 | + return new Select( | |
| 46141 | + Select::fromSelect($obj->{'select'}) | |
| 46142 | + ); | |
| 46143 | + } | |
| 46144 | + | |
| 46145 | + /** | |
| 46146 | + * @return Select | |
| 46147 | + */ | |
| 46148 | + public static function sample(): Select { | |
| 46149 | + return new Select( | |
| 46150 | + Select::sampleSelect() | |
| 46151 | + ); | |
| 46152 | + } | |
| 46153 | +} | |
| 46154 | + | |
| 45852 | 46155 | // This is an autogenerated file:SelfClass |
| 45853 | 46156 | |
| 45854 | 46157 | class SelfClass { |
| @@ -46051,6 +46354,107 @@ class Sendable { | ||
| 46051 | 46354 | } |
| 46052 | 46355 | } |
| 46053 | 46356 | |
| 46357 | +// This is an autogenerated file:SerializationFeature | |
| 46358 | + | |
| 46359 | +class SerializationFeature { | |
| 46360 | + private int $serializationFeature; // json:SerializationFeature Required | |
| 46361 | + | |
| 46362 | + /** | |
| 46363 | + * @param int $serializationFeature | |
| 46364 | + */ | |
| 46365 | + public function __construct(int $serializationFeature) { | |
| 46366 | + $this->serializationFeature = $serializationFeature; | |
| 46367 | + } | |
| 46368 | + | |
| 46369 | + /** | |
| 46370 | + * @param int $value | |
| 46371 | + * @throws Exception | |
| 46372 | + * @return int | |
| 46373 | + */ | |
| 46374 | + public static function fromSerializationFeature(int $value): int { | |
| 46375 | + return $value; /*int*/ | |
| 46376 | + } | |
| 46377 | + | |
| 46378 | + /** | |
| 46379 | + * @throws Exception | |
| 46380 | + * @return int | |
| 46381 | + */ | |
| 46382 | + public function toSerializationFeature(): int { | |
| 46383 | + if (SerializationFeature::validateSerializationFeature($this->serializationFeature)) { | |
| 46384 | + return $this->serializationFeature; /*int*/ | |
| 46385 | + } | |
| 46386 | + throw new Exception('never get to this SerializationFeature::serializationFeature'); | |
| 46387 | + } | |
| 46388 | + | |
| 46389 | + /** | |
| 46390 | + * @param int | |
| 46391 | + * @return bool | |
| 46392 | + * @throws Exception | |
| 46393 | + */ | |
| 46394 | + public static function validateSerializationFeature(int $value): bool { | |
| 46395 | + return true; | |
| 46396 | + } | |
| 46397 | + | |
| 46398 | + /** | |
| 46399 | + * @throws Exception | |
| 46400 | + * @return int | |
| 46401 | + */ | |
| 46402 | + public function getSerializationFeature(): int { | |
| 46403 | + if (SerializationFeature::validateSerializationFeature($this->serializationFeature)) { | |
| 46404 | + return $this->serializationFeature; | |
| 46405 | + } | |
| 46406 | + throw new Exception('never get to getSerializationFeature SerializationFeature::serializationFeature'); | |
| 46407 | + } | |
| 46408 | + | |
| 46409 | + /** | |
| 46410 | + * @return int | |
| 46411 | + */ | |
| 46412 | + public static function sampleSerializationFeature(): int { | |
| 46413 | + return 31; /*31:serializationFeature*/ | |
| 46414 | + } | |
| 46415 | + | |
| 46416 | + /** | |
| 46417 | + * @throws Exception | |
| 46418 | + * @return bool | |
| 46419 | + */ | |
| 46420 | + public function validate(): bool { | |
| 46421 | + return SerializationFeature::validateSerializationFeature($this->serializationFeature); | |
| 46422 | + } | |
| 46423 | + | |
| 46424 | + /** | |
| 46425 | + * @return stdClass | |
| 46426 | + * @throws Exception | |
| 46427 | + */ | |
| 46428 | + public function to(): stdClass { | |
| 46429 | + $out = new stdClass(); | |
| 46430 | + $out->{'SerializationFeature'} = $this->toSerializationFeature(); | |
| 46431 | + return $out; | |
| 46432 | + } | |
| 46433 | + | |
| 46434 | + /** | |
| 46435 | + * @param stdClass $obj | |
| 46436 | + * @return SerializationFeature | |
| 46437 | + * @throws Exception | |
| 46438 | + */ | |
| 46439 | + public static function from(stdClass $obj): SerializationFeature { | |
| 46440 | + if (!property_exists($obj, 'SerializationFeature')) { | |
| 46441 | + throw new Exception("Missing required property"); | |
| 46442 | + } | |
| 46443 | + return new SerializationFeature( | |
| 46444 | + SerializationFeature::fromSerializationFeature($obj->{'SerializationFeature'}) | |
| 46445 | + ); | |
| 46446 | + } | |
| 46447 | + | |
| 46448 | + /** | |
| 46449 | + * @return SerializationFeature | |
| 46450 | + */ | |
| 46451 | + public static function sample(): SerializationFeature { | |
| 46452 | + return new SerializationFeature( | |
| 46453 | + SerializationFeature::sampleSerializationFeature() | |
| 46454 | + ); | |
| 46455 | + } | |
| 46456 | +} | |
| 46457 | + | |
| 46054 | 46458 | // This is an autogenerated file:Serialize |
| 46055 | 46459 | |
| 46056 | 46460 | class Serialize { |
| @@ -51505,16 +51909,64 @@ class Utf8JSONReader { | ||
| 51505 | 51909 | } |
| 51506 | 51910 | } |
| 51507 | 51911 | |
| 51508 | -// This is an autogenerated file:Utf8JSONWriter | |
| 51912 | +// This is an autogenerated file:Obj6 | |
| 51509 | 51913 | |
| 51510 | -class Utf8JSONWriter { | |
| 51511 | - private int $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 51914 | +class Obj6 { | |
| 51915 | + private int $dummy; // json:dummy Required | |
| 51916 | + private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 51917 | + private UUID $uuid; // json:UUID Required | |
| 51918 | + private VarClass $var; // json:var Required | |
| 51919 | + private Virtual $virtual; // json:virtual Required | |
| 51920 | + private VoidClass $void; // json:void Required | |
| 51921 | + private Volatile $volatile; // json:volatile Required | |
| 51922 | + private WcharT $wcharT; // json:wchar_t Required | |
| 51923 | + private Weak $weak; // json:weak Required | |
| 51924 | + private Where $where; // json:where Required | |
| 51925 | + private WhileClass $while; // json:while Required | |
| 51926 | + private WillSet $willSet; // json:willSet Required | |
| 51927 | + private With $with; // json:with Required | |
| 51928 | + private XorClass $xor; // json:xor Required | |
| 51929 | + private XorEq $xorEq; // json:xor_eq Required | |
| 51930 | + private Yes $yes; // json:YES Required | |
| 51931 | + private YieldClass $yield; // json:yield Required | |
| 51512 | 51932 | |
| 51513 | 51933 | /** |
| 51514 | - * @param int $utf8JSONWriter | |
| 51934 | + * @param int $dummy | |
| 51935 | + * @param Utf8JSONWriter $utf8JSONWriter | |
| 51936 | + * @param UUID $uuid | |
| 51937 | + * @param VarClass $var | |
| 51938 | + * @param Virtual $virtual | |
| 51939 | + * @param VoidClass $void | |
| 51940 | + * @param Volatile $volatile | |
| 51941 | + * @param WcharT $wcharT | |
| 51942 | + * @param Weak $weak | |
| 51943 | + * @param Where $where | |
| 51944 | + * @param WhileClass $while | |
| 51945 | + * @param WillSet $willSet | |
| 51946 | + * @param With $with | |
| 51947 | + * @param XorClass $xor | |
| 51948 | + * @param XorEq $xorEq | |
| 51949 | + * @param Yes $yes | |
| 51950 | + * @param YieldClass $yield | |
| 51515 | 51951 | */ |
| 51516 | - public function __construct(int $utf8JSONWriter) { | |
| 51952 | + public function __construct(int $dummy, Utf8JSONWriter $utf8JSONWriter, UUID $uuid, VarClass $var, Virtual $virtual, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) { | |
| 51953 | + $this->dummy = $dummy; | |
| 51517 | 51954 | $this->utf8JSONWriter = $utf8JSONWriter; |
| 51955 | + $this->uuid = $uuid; | |
| 51956 | + $this->var = $var; | |
| 51957 | + $this->virtual = $virtual; | |
| 51958 | + $this->void = $void; | |
| 51959 | + $this->volatile = $volatile; | |
| 51960 | + $this->wcharT = $wcharT; | |
| 51961 | + $this->weak = $weak; | |
| 51962 | + $this->where = $where; | |
| 51963 | + $this->while = $while; | |
| 51964 | + $this->willSet = $willSet; | |
| 51965 | + $this->with = $with; | |
| 51966 | + $this->xor = $xor; | |
| 51967 | + $this->xorEq = $xorEq; | |
| 51968 | + $this->yes = $yes; | |
| 51969 | + $this->yield = $yield; | |
| 51518 | 51970 | } |
| 51519 | 51971 | |
| 51520 | 51972 | /** |
| @@ -51522,7 +51974,7 @@ class Utf8JSONWriter { | ||
| 51522 | 51974 | * @throws Exception |
| 51523 | 51975 | * @return int |
| 51524 | 51976 | */ |
| 51525 | - public static function fromUtf8JSONWriter(int $value): int { | |
| 51977 | + public static function fromDummy(int $value): int { | |
| 51526 | 51978 | return $value; /*int*/ |
| 51527 | 51979 | } |
| 51528 | 51980 | |
| @@ -51530,11 +51982,11 @@ class Utf8JSONWriter { | ||
| 51530 | 51982 | * @throws Exception |
| 51531 | 51983 | * @return int |
| 51532 | 51984 | */ |
| 51533 | - public function toUtf8JSONWriter(): int { | |
| 51534 | - if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 51535 | - return $this->utf8JSONWriter; /*int*/ | |
| 51985 | + public function toDummy(): int { | |
| 51986 | + if (Obj6::validateDummy($this->dummy)) { | |
| 51987 | + return $this->dummy; /*int*/ | |
| 51536 | 51988 | } |
| 51537 | - throw new Exception('never get to this Utf8JSONWriter::utf8JSONWriter'); | |
| 51989 | + throw new Exception('never get to this Obj6::dummy'); | |
| 51538 | 51990 | } |
| 51539 | 51991 | |
| 51540 | 51992 | /** |
| @@ -51542,7 +51994,7 @@ class Utf8JSONWriter { | ||
| 51542 | 51994 | * @return bool |
| 51543 | 51995 | * @throws Exception |
| 51544 | 51996 | */ |
| 51545 | - public static function validateUtf8JSONWriter(int $value): bool { | |
| 51997 | + public static function validateDummy(int $value): bool { | |
| 51546 | 51998 | return true; |
| 51547 | 51999 | } |
| 51548 | 52000 | |
| @@ -51550,458 +52002,210 @@ class Utf8JSONWriter { | ||
| 51550 | 52002 | * @throws Exception |
| 51551 | 52003 | * @return int |
| 51552 | 52004 | */ |
| 51553 | - public function getUtf8JSONWriter(): int { | |
| 51554 | - if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 51555 | - return $this->utf8JSONWriter; | |
| 52005 | + public function getDummy(): int { | |
| 52006 | + if (Obj6::validateDummy($this->dummy)) { | |
| 52007 | + return $this->dummy; | |
| 51556 | 52008 | } |
| 51557 | - throw new Exception('never get to getUtf8JSONWriter Utf8JSONWriter::utf8JSONWriter'); | |
| 52009 | + throw new Exception('never get to getDummy Obj6::dummy'); | |
| 51558 | 52010 | } |
| 51559 | 52011 | |
| 51560 | 52012 | /** |
| 51561 | 52013 | * @return int |
| 51562 | 52014 | */ |
| 51563 | - public static function sampleUtf8JSONWriter(): int { | |
| 51564 | - return 31; /*31:utf8JSONWriter*/ | |
| 51565 | - } | |
| 51566 | - | |
| 51567 | - /** | |
| 51568 | - * @throws Exception | |
| 51569 | - * @return bool | |
| 51570 | - */ | |
| 51571 | - public function validate(): bool { | |
| 51572 | - return Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter); | |
| 51573 | - } | |
| 51574 | - | |
| 51575 | - /** | |
| 51576 | - * @return stdClass | |
| 51577 | - * @throws Exception | |
| 51578 | - */ | |
| 51579 | - public function to(): stdClass { | |
| 51580 | - $out = new stdClass(); | |
| 51581 | - $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 51582 | - return $out; | |
| 52015 | + public static function sampleDummy(): int { | |
| 52016 | + return 31; /*31:dummy*/ | |
| 51583 | 52017 | } |
| 51584 | 52018 | |
| 51585 | 52019 | /** |
| 51586 | - * @param stdClass $obj | |
| 51587 | - * @return Utf8JSONWriter | |
| 52020 | + * @param stdClass $value | |
| 51588 | 52021 | * @throws Exception |
| 51589 | - */ | |
| 51590 | - public static function from(stdClass $obj): Utf8JSONWriter { | |
| 51591 | - if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 51592 | - throw new Exception("Missing required property"); | |
| 51593 | - } | |
| 51594 | - return new Utf8JSONWriter( | |
| 51595 | - Utf8JSONWriter::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 51596 | - ); | |
| 51597 | - } | |
| 51598 | - | |
| 51599 | - /** | |
| 51600 | 52022 | * @return Utf8JSONWriter |
| 51601 | 52023 | */ |
| 51602 | - public static function sample(): Utf8JSONWriter { | |
| 51603 | - return new Utf8JSONWriter( | |
| 51604 | - Utf8JSONWriter::sampleUtf8JSONWriter() | |
| 51605 | - ); | |
| 51606 | - } | |
| 51607 | -} | |
| 51608 | - | |
| 51609 | -// This is an autogenerated file:UUID | |
| 51610 | - | |
| 51611 | -class UUID { | |
| 51612 | - private int $uuid; // json:UUID Required | |
| 51613 | - | |
| 51614 | - /** | |
| 51615 | - * @param int $uuid | |
| 51616 | - */ | |
| 51617 | - public function __construct(int $uuid) { | |
| 51618 | - $this->uuid = $uuid; | |
| 51619 | - } | |
| 51620 | - | |
| 51621 | - /** | |
| 51622 | - * @param int $value | |
| 51623 | - * @throws Exception | |
| 51624 | - * @return int | |
| 51625 | - */ | |
| 51626 | - public static function fromUUID(int $value): int { | |
| 51627 | - return $value; /*int*/ | |
| 52024 | + public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter { | |
| 52025 | + return Utf8JSONWriter::from($value); /*class*/ | |
| 51628 | 52026 | } |
| 51629 | 52027 | |
| 51630 | 52028 | /** |
| 51631 | 52029 | * @throws Exception |
| 51632 | - * @return int | |
| 52030 | + * @return stdClass | |
| 51633 | 52031 | */ |
| 51634 | - public function toUUID(): int { | |
| 51635 | - if (UUID::validateUUID($this->uuid)) { | |
| 51636 | - return $this->uuid; /*int*/ | |
| 52032 | + public function toUtf8JSONWriter(): stdClass { | |
| 52033 | + if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52034 | + return $this->utf8JSONWriter->to(); /*class*/ | |
| 51637 | 52035 | } |
| 51638 | - throw new Exception('never get to this UUID::uuid'); | |
| 52036 | + throw new Exception('never get to this Obj6::utf8JSONWriter'); | |
| 51639 | 52037 | } |
| 51640 | 52038 | |
| 51641 | 52039 | /** |
| 51642 | - * @param int | |
| 52040 | + * @param Utf8JSONWriter | |
| 51643 | 52041 | * @return bool |
| 51644 | 52042 | * @throws Exception |
| 51645 | 52043 | */ |
| 51646 | - public static function validateUUID(int $value): bool { | |
| 52044 | + public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool { | |
| 52045 | + $value->validate(); | |
| 51647 | 52046 | return true; |
| 51648 | 52047 | } |
| 51649 | 52048 | |
| 51650 | 52049 | /** |
| 51651 | 52050 | * @throws Exception |
| 51652 | - * @return int | |
| 52051 | + * @return Utf8JSONWriter | |
| 51653 | 52052 | */ |
| 51654 | - public function getUUID(): int { | |
| 51655 | - if (UUID::validateUUID($this->uuid)) { | |
| 51656 | - return $this->uuid; | |
| 52053 | + public function getUtf8JSONWriter(): Utf8JSONWriter { | |
| 52054 | + if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52055 | + return $this->utf8JSONWriter; | |
| 51657 | 52056 | } |
| 51658 | - throw new Exception('never get to getUUID UUID::uuid'); | |
| 52057 | + throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter'); | |
| 51659 | 52058 | } |
| 51660 | 52059 | |
| 51661 | 52060 | /** |
| 51662 | - * @return int | |
| 51663 | - */ | |
| 51664 | - public static function sampleUUID(): int { | |
| 51665 | - return 31; /*31:uuid*/ | |
| 51666 | - } | |
| 51667 | - | |
| 51668 | - /** | |
| 51669 | - * @throws Exception | |
| 51670 | - * @return bool | |
| 51671 | - */ | |
| 51672 | - public function validate(): bool { | |
| 51673 | - return UUID::validateUUID($this->uuid); | |
| 51674 | - } | |
| 51675 | - | |
| 51676 | - /** | |
| 51677 | - * @return stdClass | |
| 51678 | - * @throws Exception | |
| 52061 | + * @return Utf8JSONWriter | |
| 51679 | 52062 | */ |
| 51680 | - public function to(): stdClass { | |
| 51681 | - $out = new stdClass(); | |
| 51682 | - $out->{'UUID'} = $this->toUUID(); | |
| 51683 | - return $out; | |
| 52063 | + public static function sampleUtf8JSONWriter(): Utf8JSONWriter { | |
| 52064 | + return Utf8JSONWriter::sample(); /*32:utf8JSONWriter*/ | |
| 51684 | 52065 | } |
| 51685 | 52066 | |
| 51686 | 52067 | /** |
| 51687 | - * @param stdClass $obj | |
| 51688 | - * @return UUID | |
| 52068 | + * @param stdClass $value | |
| 51689 | 52069 | * @throws Exception |
| 51690 | - */ | |
| 51691 | - public static function from(stdClass $obj): UUID { | |
| 51692 | - if (!property_exists($obj, 'UUID')) { | |
| 51693 | - throw new Exception("Missing required property"); | |
| 51694 | - } | |
| 51695 | - return new UUID( | |
| 51696 | - UUID::fromUUID($obj->{'UUID'}) | |
| 51697 | - ); | |
| 51698 | - } | |
| 51699 | - | |
| 51700 | - /** | |
| 51701 | 52070 | * @return UUID |
| 51702 | 52071 | */ |
| 51703 | - public static function sample(): UUID { | |
| 51704 | - return new UUID( | |
| 51705 | - UUID::sampleUUID() | |
| 51706 | - ); | |
| 51707 | - } | |
| 51708 | -} | |
| 51709 | - | |
| 51710 | -// This is an autogenerated file:VarClass | |
| 51711 | - | |
| 51712 | -class VarClass { | |
| 51713 | - private int $var; // json:var Required | |
| 51714 | - | |
| 51715 | - /** | |
| 51716 | - * @param int $var | |
| 51717 | - */ | |
| 51718 | - public function __construct(int $var) { | |
| 51719 | - $this->var = $var; | |
| 51720 | - } | |
| 51721 | - | |
| 51722 | - /** | |
| 51723 | - * @param int $value | |
| 51724 | - * @throws Exception | |
| 51725 | - * @return int | |
| 51726 | - */ | |
| 51727 | - public static function fromVar(int $value): int { | |
| 51728 | - return $value; /*int*/ | |
| 52072 | + public static function fromUUID(stdClass $value): UUID { | |
| 52073 | + return UUID::from($value); /*class*/ | |
| 51729 | 52074 | } |
| 51730 | 52075 | |
| 51731 | 52076 | /** |
| 51732 | 52077 | * @throws Exception |
| 51733 | - * @return int | |
| 52078 | + * @return stdClass | |
| 51734 | 52079 | */ |
| 51735 | - public function toVar(): int { | |
| 51736 | - if (VarClass::validateVar($this->var)) { | |
| 51737 | - return $this->var; /*int*/ | |
| 52080 | + public function toUUID(): stdClass { | |
| 52081 | + if (Obj6::validateUUID($this->uuid)) { | |
| 52082 | + return $this->uuid->to(); /*class*/ | |
| 51738 | 52083 | } |
| 51739 | - throw new Exception('never get to this VarClass::var'); | |
| 52084 | + throw new Exception('never get to this Obj6::uuid'); | |
| 51740 | 52085 | } |
| 51741 | 52086 | |
| 51742 | 52087 | /** |
| 51743 | - * @param int | |
| 52088 | + * @param UUID | |
| 51744 | 52089 | * @return bool |
| 51745 | 52090 | * @throws Exception |
| 51746 | 52091 | */ |
| 51747 | - public static function validateVar(int $value): bool { | |
| 52092 | + public static function validateUUID(UUID $value): bool { | |
| 52093 | + $value->validate(); | |
| 51748 | 52094 | return true; |
| 51749 | 52095 | } |
| 51750 | 52096 | |
| 51751 | 52097 | /** |
| 51752 | 52098 | * @throws Exception |
| 51753 | - * @return int | |
| 52099 | + * @return UUID | |
| 51754 | 52100 | */ |
| 51755 | - public function getVar(): int { | |
| 51756 | - if (VarClass::validateVar($this->var)) { | |
| 51757 | - return $this->var; | |
| 52101 | + public function getUUID(): UUID { | |
| 52102 | + if (Obj6::validateUUID($this->uuid)) { | |
| 52103 | + return $this->uuid; | |
| 51758 | 52104 | } |
| 51759 | - throw new Exception('never get to getVar VarClass::var'); | |
| 51760 | - } | |
| 51761 | - | |
| 51762 | - /** | |
| 51763 | - * @return int | |
| 51764 | - */ | |
| 51765 | - public static function sampleVar(): int { | |
| 51766 | - return 31; /*31:var*/ | |
| 52105 | + throw new Exception('never get to getUUID Obj6::uuid'); | |
| 51767 | 52106 | } |
| 51768 | 52107 | |
| 51769 | 52108 | /** |
| 51770 | - * @throws Exception | |
| 51771 | - * @return bool | |
| 51772 | - */ | |
| 51773 | - public function validate(): bool { | |
| 51774 | - return VarClass::validateVar($this->var); | |
| 51775 | - } | |
| 51776 | - | |
| 51777 | - /** | |
| 51778 | - * @return stdClass | |
| 51779 | - * @throws Exception | |
| 52109 | + * @return UUID | |
| 51780 | 52110 | */ |
| 51781 | - public function to(): stdClass { | |
| 51782 | - $out = new stdClass(); | |
| 51783 | - $out->{'var'} = $this->toVar(); | |
| 51784 | - return $out; | |
| 52111 | + public static function sampleUUID(): UUID { | |
| 52112 | + return UUID::sample(); /*33:uuid*/ | |
| 51785 | 52113 | } |
| 51786 | 52114 | |
| 51787 | 52115 | /** |
| 51788 | - * @param stdClass $obj | |
| 51789 | - * @return VarClass | |
| 52116 | + * @param stdClass $value | |
| 51790 | 52117 | * @throws Exception |
| 51791 | - */ | |
| 51792 | - public static function from(stdClass $obj): VarClass { | |
| 51793 | - if (!property_exists($obj, 'var')) { | |
| 51794 | - throw new Exception("Missing required property"); | |
| 51795 | - } | |
| 51796 | - return new VarClass( | |
| 51797 | - VarClass::fromVar($obj->{'var'}) | |
| 51798 | - ); | |
| 51799 | - } | |
| 51800 | - | |
| 51801 | - /** | |
| 51802 | 52118 | * @return VarClass |
| 51803 | 52119 | */ |
| 51804 | - public static function sample(): VarClass { | |
| 51805 | - return new VarClass( | |
| 51806 | - VarClass::sampleVar() | |
| 51807 | - ); | |
| 51808 | - } | |
| 51809 | -} | |
| 51810 | - | |
| 51811 | -// This is an autogenerated file:Virtual | |
| 51812 | - | |
| 51813 | -class Virtual { | |
| 51814 | - private int $virtual; // json:virtual Required | |
| 51815 | - | |
| 51816 | - /** | |
| 51817 | - * @param int $virtual | |
| 51818 | - */ | |
| 51819 | - public function __construct(int $virtual) { | |
| 51820 | - $this->virtual = $virtual; | |
| 51821 | - } | |
| 51822 | - | |
| 51823 | - /** | |
| 51824 | - * @param int $value | |
| 51825 | - * @throws Exception | |
| 51826 | - * @return int | |
| 51827 | - */ | |
| 51828 | - public static function fromVirtual(int $value): int { | |
| 51829 | - return $value; /*int*/ | |
| 51830 | - } | |
| 51831 | - | |
| 51832 | - /** | |
| 51833 | - * @throws Exception | |
| 51834 | - * @return int | |
| 51835 | - */ | |
| 51836 | - public function toVirtual(): int { | |
| 51837 | - if (Virtual::validateVirtual($this->virtual)) { | |
| 51838 | - return $this->virtual; /*int*/ | |
| 51839 | - } | |
| 51840 | - throw new Exception('never get to this Virtual::virtual'); | |
| 51841 | - } | |
| 51842 | - | |
| 51843 | - /** | |
| 51844 | - * @param int | |
| 51845 | - * @return bool | |
| 51846 | - * @throws Exception | |
| 51847 | - */ | |
| 51848 | - public static function validateVirtual(int $value): bool { | |
| 51849 | - return true; | |
| 52120 | + public static function fromVar(stdClass $value): VarClass { | |
| 52121 | + return VarClass::from($value); /*class*/ | |
| 51850 | 52122 | } |
| 51851 | 52123 | |
| 51852 | 52124 | /** |
| 51853 | 52125 | * @throws Exception |
| 51854 | - * @return int | |
| 52126 | + * @return stdClass | |
| 51855 | 52127 | */ |
| 51856 | - public function getVirtual(): int { | |
| 51857 | - if (Virtual::validateVirtual($this->virtual)) { | |
| 51858 | - return $this->virtual; | |
| 52128 | + public function toVar(): stdClass { | |
| 52129 | + if (Obj6::validateVar($this->var)) { | |
| 52130 | + return $this->var->to(); /*class*/ | |
| 51859 | 52131 | } |
| 51860 | - throw new Exception('never get to getVirtual Virtual::virtual'); | |
| 52132 | + throw new Exception('never get to this Obj6::var'); | |
| 51861 | 52133 | } |
| 51862 | 52134 | |
| 51863 | 52135 | /** |
| 51864 | - * @return int | |
| 51865 | - */ | |
| 51866 | - public static function sampleVirtual(): int { | |
| 51867 | - return 31; /*31:virtual*/ | |
| 51868 | - } | |
| 51869 | - | |
| 51870 | - /** | |
| 51871 | - * @throws Exception | |
| 52136 | + * @param VarClass | |
| 51872 | 52137 | * @return bool |
| 51873 | - */ | |
| 51874 | - public function validate(): bool { | |
| 51875 | - return Virtual::validateVirtual($this->virtual); | |
| 51876 | - } | |
| 51877 | - | |
| 51878 | - /** | |
| 51879 | - * @return stdClass | |
| 51880 | 52138 | * @throws Exception |
| 51881 | 52139 | */ |
| 51882 | - public function to(): stdClass { | |
| 51883 | - $out = new stdClass(); | |
| 51884 | - $out->{'virtual'} = $this->toVirtual(); | |
| 51885 | - return $out; | |
| 51886 | - } | |
| 51887 | - | |
| 51888 | - /** | |
| 51889 | - * @param stdClass $obj | |
| 51890 | - * @return Virtual | |
| 51891 | - * @throws Exception | |
| 51892 | - */ | |
| 51893 | - public static function from(stdClass $obj): Virtual { | |
| 51894 | - if (!property_exists($obj, 'virtual')) { | |
| 51895 | - throw new Exception("Missing required property"); | |
| 51896 | - } | |
| 51897 | - return new Virtual( | |
| 51898 | - Virtual::fromVirtual($obj->{'virtual'}) | |
| 51899 | - ); | |
| 52140 | + public static function validateVar(VarClass $value): bool { | |
| 52141 | + $value->validate(); | |
| 52142 | + return true; | |
| 51900 | 52143 | } |
| 51901 | 52144 | |
| 51902 | 52145 | /** |
| 51903 | - * @return Virtual | |
| 52146 | + * @throws Exception | |
| 52147 | + * @return VarClass | |
| 51904 | 52148 | */ |
| 51905 | - public static function sample(): Virtual { | |
| 51906 | - return new Virtual( | |
| 51907 | - Virtual::sampleVirtual() | |
| 51908 | - ); | |
| 52149 | + public function getVar(): VarClass { | |
| 52150 | + if (Obj6::validateVar($this->var)) { | |
| 52151 | + return $this->var; | |
| 52152 | + } | |
| 52153 | + throw new Exception('never get to getVar Obj6::var'); | |
| 51909 | 52154 | } |
| 51910 | -} | |
| 51911 | - | |
| 51912 | -// This is an autogenerated file:Obj6 | |
| 51913 | - | |
| 51914 | -class Obj6 { | |
| 51915 | - private int $dummy; // json:dummy Required | |
| 51916 | - private VoidClass $void; // json:void Required | |
| 51917 | - private Volatile $volatile; // json:volatile Required | |
| 51918 | - private WcharT $wcharT; // json:wchar_t Required | |
| 51919 | - private Weak $weak; // json:weak Required | |
| 51920 | - private Where $where; // json:where Required | |
| 51921 | - private WhileClass $while; // json:while Required | |
| 51922 | - private WillSet $willSet; // json:willSet Required | |
| 51923 | - private With $with; // json:with Required | |
| 51924 | - private XorClass $xor; // json:xor Required | |
| 51925 | - private XorEq $xorEq; // json:xor_eq Required | |
| 51926 | - private Yes $yes; // json:YES Required | |
| 51927 | - private YieldClass $yield; // json:yield Required | |
| 51928 | 52155 | |
| 51929 | 52156 | /** |
| 51930 | - * @param int $dummy | |
| 51931 | - * @param VoidClass $void | |
| 51932 | - * @param Volatile $volatile | |
| 51933 | - * @param WcharT $wcharT | |
| 51934 | - * @param Weak $weak | |
| 51935 | - * @param Where $where | |
| 51936 | - * @param WhileClass $while | |
| 51937 | - * @param WillSet $willSet | |
| 51938 | - * @param With $with | |
| 51939 | - * @param XorClass $xor | |
| 51940 | - * @param XorEq $xorEq | |
| 51941 | - * @param Yes $yes | |
| 51942 | - * @param YieldClass $yield | |
| 52157 | + * @return VarClass | |
| 51943 | 52158 | */ |
| 51944 | - public function __construct(int $dummy, VoidClass $void, Volatile $volatile, WcharT $wcharT, Weak $weak, Where $where, WhileClass $while, WillSet $willSet, With $with, XorClass $xor, XorEq $xorEq, Yes $yes, YieldClass $yield) { | |
| 51945 | - $this->dummy = $dummy; | |
| 51946 | - $this->void = $void; | |
| 51947 | - $this->volatile = $volatile; | |
| 51948 | - $this->wcharT = $wcharT; | |
| 51949 | - $this->weak = $weak; | |
| 51950 | - $this->where = $where; | |
| 51951 | - $this->while = $while; | |
| 51952 | - $this->willSet = $willSet; | |
| 51953 | - $this->with = $with; | |
| 51954 | - $this->xor = $xor; | |
| 51955 | - $this->xorEq = $xorEq; | |
| 51956 | - $this->yes = $yes; | |
| 51957 | - $this->yield = $yield; | |
| 52159 | + public static function sampleVar(): VarClass { | |
| 52160 | + return VarClass::sample(); /*34:var*/ | |
| 51958 | 52161 | } |
| 51959 | 52162 | |
| 51960 | 52163 | /** |
| 51961 | - * @param int $value | |
| 52164 | + * @param stdClass $value | |
| 51962 | 52165 | * @throws Exception |
| 51963 | - * @return int | |
| 52166 | + * @return Virtual | |
| 51964 | 52167 | */ |
| 51965 | - public static function fromDummy(int $value): int { | |
| 51966 | - return $value; /*int*/ | |
| 52168 | + public static function fromVirtual(stdClass $value): Virtual { | |
| 52169 | + return Virtual::from($value); /*class*/ | |
| 51967 | 52170 | } |
| 51968 | 52171 | |
| 51969 | 52172 | /** |
| 51970 | 52173 | * @throws Exception |
| 51971 | - * @return int | |
| 52174 | + * @return stdClass | |
| 51972 | 52175 | */ |
| 51973 | - public function toDummy(): int { | |
| 51974 | - if (Obj6::validateDummy($this->dummy)) { | |
| 51975 | - return $this->dummy; /*int*/ | |
| 52176 | + public function toVirtual(): stdClass { | |
| 52177 | + if (Obj6::validateVirtual($this->virtual)) { | |
| 52178 | + return $this->virtual->to(); /*class*/ | |
| 51976 | 52179 | } |
| 51977 | - throw new Exception('never get to this Obj6::dummy'); | |
| 52180 | + throw new Exception('never get to this Obj6::virtual'); | |
| 51978 | 52181 | } |
| 51979 | 52182 | |
| 51980 | 52183 | /** |
| 51981 | - * @param int | |
| 52184 | + * @param Virtual | |
| 51982 | 52185 | * @return bool |
| 51983 | 52186 | * @throws Exception |
| 51984 | 52187 | */ |
| 51985 | - public static function validateDummy(int $value): bool { | |
| 52188 | + public static function validateVirtual(Virtual $value): bool { | |
| 52189 | + $value->validate(); | |
| 51986 | 52190 | return true; |
| 51987 | 52191 | } |
| 51988 | 52192 | |
| 51989 | 52193 | /** |
| 51990 | 52194 | * @throws Exception |
| 51991 | - * @return int | |
| 52195 | + * @return Virtual | |
| 51992 | 52196 | */ |
| 51993 | - public function getDummy(): int { | |
| 51994 | - if (Obj6::validateDummy($this->dummy)) { | |
| 51995 | - return $this->dummy; | |
| 52197 | + public function getVirtual(): Virtual { | |
| 52198 | + if (Obj6::validateVirtual($this->virtual)) { | |
| 52199 | + return $this->virtual; | |
| 51996 | 52200 | } |
| 51997 | - throw new Exception('never get to getDummy Obj6::dummy'); | |
| 52201 | + throw new Exception('never get to getVirtual Obj6::virtual'); | |
| 51998 | 52202 | } |
| 51999 | 52203 | |
| 52000 | 52204 | /** |
| 52001 | - * @return int | |
| 52205 | + * @return Virtual | |
| 52002 | 52206 | */ |
| 52003 | - public static function sampleDummy(): int { | |
| 52004 | - return 31; /*31:dummy*/ | |
| 52207 | + public static function sampleVirtual(): Virtual { | |
| 52208 | + return Virtual::sample(); /*35:virtual*/ | |
| 52005 | 52209 | } |
| 52006 | 52210 | |
| 52007 | 52211 | /** |
| @@ -52049,7 +52253,7 @@ class Obj6 { | ||
| 52049 | 52253 | * @return VoidClass |
| 52050 | 52254 | */ |
| 52051 | 52255 | public static function sampleVoid(): VoidClass { |
| 52052 | - return VoidClass::sample(); /*32:void*/ | |
| 52256 | + return VoidClass::sample(); /*36:void*/ | |
| 52053 | 52257 | } |
| 52054 | 52258 | |
| 52055 | 52259 | /** |
| @@ -52097,7 +52301,7 @@ class Obj6 { | ||
| 52097 | 52301 | * @return Volatile |
| 52098 | 52302 | */ |
| 52099 | 52303 | public static function sampleVolatile(): Volatile { |
| 52100 | - return Volatile::sample(); /*33:volatile*/ | |
| 52304 | + return Volatile::sample(); /*37:volatile*/ | |
| 52101 | 52305 | } |
| 52102 | 52306 | |
| 52103 | 52307 | /** |
| @@ -52145,7 +52349,7 @@ class Obj6 { | ||
| 52145 | 52349 | * @return WcharT |
| 52146 | 52350 | */ |
| 52147 | 52351 | public static function sampleWcharT(): WcharT { |
| 52148 | - return WcharT::sample(); /*34:wcharT*/ | |
| 52352 | + return WcharT::sample(); /*38:wcharT*/ | |
| 52149 | 52353 | } |
| 52150 | 52354 | |
| 52151 | 52355 | /** |
| @@ -52193,7 +52397,7 @@ class Obj6 { | ||
| 52193 | 52397 | * @return Weak |
| 52194 | 52398 | */ |
| 52195 | 52399 | public static function sampleWeak(): Weak { |
| 52196 | - return Weak::sample(); /*35:weak*/ | |
| 52400 | + return Weak::sample(); /*39:weak*/ | |
| 52197 | 52401 | } |
| 52198 | 52402 | |
| 52199 | 52403 | /** |
| @@ -52241,7 +52445,7 @@ class Obj6 { | ||
| 52241 | 52445 | * @return Where |
| 52242 | 52446 | */ |
| 52243 | 52447 | public static function sampleWhere(): Where { |
| 52244 | - return Where::sample(); /*36:where*/ | |
| 52448 | + return Where::sample(); /*40:where*/ | |
| 52245 | 52449 | } |
| 52246 | 52450 | |
| 52247 | 52451 | /** |
| @@ -52289,7 +52493,7 @@ class Obj6 { | ||
| 52289 | 52493 | * @return WhileClass |
| 52290 | 52494 | */ |
| 52291 | 52495 | public static function sampleWhile(): WhileClass { |
| 52292 | - return WhileClass::sample(); /*37:while*/ | |
| 52496 | + return WhileClass::sample(); /*41:while*/ | |
| 52293 | 52497 | } |
| 52294 | 52498 | |
| 52295 | 52499 | /** |
| @@ -52337,7 +52541,7 @@ class Obj6 { | ||
| 52337 | 52541 | * @return WillSet |
| 52338 | 52542 | */ |
| 52339 | 52543 | public static function sampleWillSet(): WillSet { |
| 52340 | - return WillSet::sample(); /*38:willSet*/ | |
| 52544 | + return WillSet::sample(); /*42:willSet*/ | |
| 52341 | 52545 | } |
| 52342 | 52546 | |
| 52343 | 52547 | /** |
| @@ -52385,7 +52589,7 @@ class Obj6 { | ||
| 52385 | 52589 | * @return With |
| 52386 | 52590 | */ |
| 52387 | 52591 | public static function sampleWith(): With { |
| 52388 | - return With::sample(); /*39:with*/ | |
| 52592 | + return With::sample(); /*43:with*/ | |
| 52389 | 52593 | } |
| 52390 | 52594 | |
| 52391 | 52595 | /** |
| @@ -52433,7 +52637,7 @@ class Obj6 { | ||
| 52433 | 52637 | * @return XorClass |
| 52434 | 52638 | */ |
| 52435 | 52639 | public static function sampleXor(): XorClass { |
| 52436 | - return XorClass::sample(); /*40:xor*/ | |
| 52640 | + return XorClass::sample(); /*44:xor*/ | |
| 52437 | 52641 | } |
| 52438 | 52642 | |
| 52439 | 52643 | /** |
| @@ -52481,7 +52685,7 @@ class Obj6 { | ||
| 52481 | 52685 | * @return XorEq |
| 52482 | 52686 | */ |
| 52483 | 52687 | public static function sampleXorEq(): XorEq { |
| 52484 | - return XorEq::sample(); /*41:xorEq*/ | |
| 52688 | + return XorEq::sample(); /*45:xorEq*/ | |
| 52485 | 52689 | } |
| 52486 | 52690 | |
| 52487 | 52691 | /** |
| @@ -52529,7 +52733,7 @@ class Obj6 { | ||
| 52529 | 52733 | * @return Yes |
| 52530 | 52734 | */ |
| 52531 | 52735 | public static function sampleYes(): Yes { |
| 52532 | - return Yes::sample(); /*42:yes*/ | |
| 52736 | + return Yes::sample(); /*46:yes*/ | |
| 52533 | 52737 | } |
| 52534 | 52738 | |
| 52535 | 52739 | /** |
| @@ -52577,7 +52781,7 @@ class Obj6 { | ||
| 52577 | 52781 | * @return YieldClass |
| 52578 | 52782 | */ |
| 52579 | 52783 | public static function sampleYield(): YieldClass { |
| 52580 | - return YieldClass::sample(); /*43:yield*/ | |
| 52784 | + return YieldClass::sample(); /*47:yield*/ | |
| 52581 | 52785 | } |
| 52582 | 52786 | |
| 52583 | 52787 | /** |
| @@ -52586,6 +52790,10 @@ class Obj6 { | ||
| 52586 | 52790 | */ |
| 52587 | 52791 | public function validate(): bool { |
| 52588 | 52792 | return Obj6::validateDummy($this->dummy) |
| 52793 | + || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter) | |
| 52794 | + || Obj6::validateUUID($this->uuid) | |
| 52795 | + || Obj6::validateVar($this->var) | |
| 52796 | + || Obj6::validateVirtual($this->virtual) | |
| 52589 | 52797 | || Obj6::validateVoid($this->void) |
| 52590 | 52798 | || Obj6::validateVolatile($this->volatile) |
| 52591 | 52799 | || Obj6::validateWcharT($this->wcharT) |
| @@ -52607,6 +52815,10 @@ class Obj6 { | ||
| 52607 | 52815 | public function to(): stdClass { |
| 52608 | 52816 | $out = new stdClass(); |
| 52609 | 52817 | $out->{'dummy'} = $this->toDummy(); |
| 52818 | + $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 52819 | + $out->{'UUID'} = $this->toUUID(); | |
| 52820 | + $out->{'var'} = $this->toVar(); | |
| 52821 | + $out->{'virtual'} = $this->toVirtual(); | |
| 52610 | 52822 | $out->{'void'} = $this->toVoid(); |
| 52611 | 52823 | $out->{'volatile'} = $this->toVolatile(); |
| 52612 | 52824 | $out->{'wchar_t'} = $this->toWcharT(); |
| @@ -52631,6 +52843,18 @@ class Obj6 { | ||
| 52631 | 52843 | if (!property_exists($obj, 'dummy')) { |
| 52632 | 52844 | throw new Exception("Missing required property"); |
| 52633 | 52845 | } |
| 52846 | + if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 52847 | + throw new Exception("Missing required property"); | |
| 52848 | + } | |
| 52849 | + if (!property_exists($obj, 'UUID')) { | |
| 52850 | + throw new Exception("Missing required property"); | |
| 52851 | + } | |
| 52852 | + if (!property_exists($obj, 'var')) { | |
| 52853 | + throw new Exception("Missing required property"); | |
| 52854 | + } | |
| 52855 | + if (!property_exists($obj, 'virtual')) { | |
| 52856 | + throw new Exception("Missing required property"); | |
| 52857 | + } | |
| 52634 | 52858 | if (!property_exists($obj, 'void')) { |
| 52635 | 52859 | throw new Exception("Missing required property"); |
| 52636 | 52860 | } |
| @@ -52669,6 +52893,10 @@ class Obj6 { | ||
| 52669 | 52893 | } |
| 52670 | 52894 | return new Obj6( |
| 52671 | 52895 | Obj6::fromDummy($obj->{'dummy'}) |
| 52896 | + ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 52897 | + ,Obj6::fromUUID($obj->{'UUID'}) | |
| 52898 | + ,Obj6::fromVar($obj->{'var'}) | |
| 52899 | + ,Obj6::fromVirtual($obj->{'virtual'}) | |
| 52672 | 52900 | ,Obj6::fromVoid($obj->{'void'}) |
| 52673 | 52901 | ,Obj6::fromVolatile($obj->{'volatile'}) |
| 52674 | 52902 | ,Obj6::fromWcharT($obj->{'wchar_t'}) |
| @@ -52690,6 +52918,10 @@ class Obj6 { | ||
| 52690 | 52918 | public static function sample(): Obj6 { |
| 52691 | 52919 | return new Obj6( |
| 52692 | 52920 | Obj6::sampleDummy() |
| 52921 | + ,Obj6::sampleUtf8JSONWriter() | |
| 52922 | + ,Obj6::sampleUUID() | |
| 52923 | + ,Obj6::sampleVar() | |
| 52924 | + ,Obj6::sampleVirtual() | |
| 52693 | 52925 | ,Obj6::sampleVoid() |
| 52694 | 52926 | ,Obj6::sampleVolatile() |
| 52695 | 52927 | ,Obj6::sampleWcharT() |
| @@ -52706,6 +52938,410 @@ class Obj6 { | ||
| 52706 | 52938 | } |
| 52707 | 52939 | } |
| 52708 | 52940 | |
| 52941 | +// This is an autogenerated file:Utf8JSONWriter | |
| 52942 | + | |
| 52943 | +class Utf8JSONWriter { | |
| 52944 | + private int $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 52945 | + | |
| 52946 | + /** | |
| 52947 | + * @param int $utf8JSONWriter | |
| 52948 | + */ | |
| 52949 | + public function __construct(int $utf8JSONWriter) { | |
| 52950 | + $this->utf8JSONWriter = $utf8JSONWriter; | |
| 52951 | + } | |
| 52952 | + | |
| 52953 | + /** | |
| 52954 | + * @param int $value | |
| 52955 | + * @throws Exception | |
| 52956 | + * @return int | |
| 52957 | + */ | |
| 52958 | + public static function fromUtf8JSONWriter(int $value): int { | |
| 52959 | + return $value; /*int*/ | |
| 52960 | + } | |
| 52961 | + | |
| 52962 | + /** | |
| 52963 | + * @throws Exception | |
| 52964 | + * @return int | |
| 52965 | + */ | |
| 52966 | + public function toUtf8JSONWriter(): int { | |
| 52967 | + if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52968 | + return $this->utf8JSONWriter; /*int*/ | |
| 52969 | + } | |
| 52970 | + throw new Exception('never get to this Utf8JSONWriter::utf8JSONWriter'); | |
| 52971 | + } | |
| 52972 | + | |
| 52973 | + /** | |
| 52974 | + * @param int | |
| 52975 | + * @return bool | |
| 52976 | + * @throws Exception | |
| 52977 | + */ | |
| 52978 | + public static function validateUtf8JSONWriter(int $value): bool { | |
| 52979 | + return true; | |
| 52980 | + } | |
| 52981 | + | |
| 52982 | + /** | |
| 52983 | + * @throws Exception | |
| 52984 | + * @return int | |
| 52985 | + */ | |
| 52986 | + public function getUtf8JSONWriter(): int { | |
| 52987 | + if (Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52988 | + return $this->utf8JSONWriter; | |
| 52989 | + } | |
| 52990 | + throw new Exception('never get to getUtf8JSONWriter Utf8JSONWriter::utf8JSONWriter'); | |
| 52991 | + } | |
| 52992 | + | |
| 52993 | + /** | |
| 52994 | + * @return int | |
| 52995 | + */ | |
| 52996 | + public static function sampleUtf8JSONWriter(): int { | |
| 52997 | + return 31; /*31:utf8JSONWriter*/ | |
| 52998 | + } | |
| 52999 | + | |
| 53000 | + /** | |
| 53001 | + * @throws Exception | |
| 53002 | + * @return bool | |
| 53003 | + */ | |
| 53004 | + public function validate(): bool { | |
| 53005 | + return Utf8JSONWriter::validateUtf8JSONWriter($this->utf8JSONWriter); | |
| 53006 | + } | |
| 53007 | + | |
| 53008 | + /** | |
| 53009 | + * @return stdClass | |
| 53010 | + * @throws Exception | |
| 53011 | + */ | |
| 53012 | + public function to(): stdClass { | |
| 53013 | + $out = new stdClass(); | |
| 53014 | + $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 53015 | + return $out; | |
| 53016 | + } | |
| 53017 | + | |
| 53018 | + /** | |
| 53019 | + * @param stdClass $obj | |
| 53020 | + * @return Utf8JSONWriter | |
| 53021 | + * @throws Exception | |
| 53022 | + */ | |
| 53023 | + public static function from(stdClass $obj): Utf8JSONWriter { | |
| 53024 | + if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 53025 | + throw new Exception("Missing required property"); | |
| 53026 | + } | |
| 53027 | + return new Utf8JSONWriter( | |
| 53028 | + Utf8JSONWriter::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 53029 | + ); | |
| 53030 | + } | |
| 53031 | + | |
| 53032 | + /** | |
| 53033 | + * @return Utf8JSONWriter | |
| 53034 | + */ | |
| 53035 | + public static function sample(): Utf8JSONWriter { | |
| 53036 | + return new Utf8JSONWriter( | |
| 53037 | + Utf8JSONWriter::sampleUtf8JSONWriter() | |
| 53038 | + ); | |
| 53039 | + } | |
| 53040 | +} | |
| 53041 | + | |
| 53042 | +// This is an autogenerated file:UUID | |
| 53043 | + | |
| 53044 | +class UUID { | |
| 53045 | + private int $uuid; // json:UUID Required | |
| 53046 | + | |
| 53047 | + /** | |
| 53048 | + * @param int $uuid | |
| 53049 | + */ | |
| 53050 | + public function __construct(int $uuid) { | |
| 53051 | + $this->uuid = $uuid; | |
| 53052 | + } | |
| 53053 | + | |
| 53054 | + /** | |
| 53055 | + * @param int $value | |
| 53056 | + * @throws Exception | |
| 53057 | + * @return int | |
| 53058 | + */ | |
| 53059 | + public static function fromUUID(int $value): int { | |
| 53060 | + return $value; /*int*/ | |
| 53061 | + } | |
| 53062 | + | |
| 53063 | + /** | |
| 53064 | + * @throws Exception | |
| 53065 | + * @return int | |
| 53066 | + */ | |
| 53067 | + public function toUUID(): int { | |
| 53068 | + if (UUID::validateUUID($this->uuid)) { | |
| 53069 | + return $this->uuid; /*int*/ | |
| 53070 | + } | |
| 53071 | + throw new Exception('never get to this UUID::uuid'); | |
| 53072 | + } | |
| 53073 | + | |
| 53074 | + /** | |
| 53075 | + * @param int | |
| 53076 | + * @return bool | |
| 53077 | + * @throws Exception | |
| 53078 | + */ | |
| 53079 | + public static function validateUUID(int $value): bool { | |
| 53080 | + return true; | |
| 53081 | + } | |
| 53082 | + | |
| 53083 | + /** | |
| 53084 | + * @throws Exception | |
| 53085 | + * @return int | |
| 53086 | + */ | |
| 53087 | + public function getUUID(): int { | |
| 53088 | + if (UUID::validateUUID($this->uuid)) { | |
| 53089 | + return $this->uuid; | |
| 53090 | + } | |
| 53091 | + throw new Exception('never get to getUUID UUID::uuid'); | |
| 53092 | + } | |
| 53093 | + | |
| 53094 | + /** | |
| 53095 | + * @return int | |
| 53096 | + */ | |
| 53097 | + public static function sampleUUID(): int { | |
| 53098 | + return 31; /*31:uuid*/ | |
| 53099 | + } | |
| 53100 | + | |
| 53101 | + /** | |
| 53102 | + * @throws Exception | |
| 53103 | + * @return bool | |
| 53104 | + */ | |
| 53105 | + public function validate(): bool { | |
| 53106 | + return UUID::validateUUID($this->uuid); | |
| 53107 | + } | |
| 53108 | + | |
| 53109 | + /** | |
| 53110 | + * @return stdClass | |
| 53111 | + * @throws Exception | |
| 53112 | + */ | |
| 53113 | + public function to(): stdClass { | |
| 53114 | + $out = new stdClass(); | |
| 53115 | + $out->{'UUID'} = $this->toUUID(); | |
| 53116 | + return $out; | |
| 53117 | + } | |
| 53118 | + | |
| 53119 | + /** | |
| 53120 | + * @param stdClass $obj | |
| 53121 | + * @return UUID | |
| 53122 | + * @throws Exception | |
| 53123 | + */ | |
| 53124 | + public static function from(stdClass $obj): UUID { | |
| 53125 | + if (!property_exists($obj, 'UUID')) { | |
| 53126 | + throw new Exception("Missing required property"); | |
| 53127 | + } | |
| 53128 | + return new UUID( | |
| 53129 | + UUID::fromUUID($obj->{'UUID'}) | |
| 53130 | + ); | |
| 53131 | + } | |
| 53132 | + | |
| 53133 | + /** | |
| 53134 | + * @return UUID | |
| 53135 | + */ | |
| 53136 | + public static function sample(): UUID { | |
| 53137 | + return new UUID( | |
| 53138 | + UUID::sampleUUID() | |
| 53139 | + ); | |
| 53140 | + } | |
| 53141 | +} | |
| 53142 | + | |
| 53143 | +// This is an autogenerated file:VarClass | |
| 53144 | + | |
| 53145 | +class VarClass { | |
| 53146 | + private int $var; // json:var Required | |
| 53147 | + | |
| 53148 | + /** | |
| 53149 | + * @param int $var | |
| 53150 | + */ | |
| 53151 | + public function __construct(int $var) { | |
| 53152 | + $this->var = $var; | |
| 53153 | + } | |
| 53154 | + | |
| 53155 | + /** | |
| 53156 | + * @param int $value | |
| 53157 | + * @throws Exception | |
| 53158 | + * @return int | |
| 53159 | + */ | |
| 53160 | + public static function fromVar(int $value): int { | |
| 53161 | + return $value; /*int*/ | |
| 53162 | + } | |
| 53163 | + | |
| 53164 | + /** | |
| 53165 | + * @throws Exception | |
| 53166 | + * @return int | |
| 53167 | + */ | |
| 53168 | + public function toVar(): int { | |
| 53169 | + if (VarClass::validateVar($this->var)) { | |
| 53170 | + return $this->var; /*int*/ | |
| 53171 | + } | |
| 53172 | + throw new Exception('never get to this VarClass::var'); | |
| 53173 | + } | |
| 53174 | + | |
| 53175 | + /** | |
| 53176 | + * @param int | |
| 53177 | + * @return bool | |
| 53178 | + * @throws Exception | |
| 53179 | + */ | |
| 53180 | + public static function validateVar(int $value): bool { | |
| 53181 | + return true; | |
| 53182 | + } | |
| 53183 | + | |
| 53184 | + /** | |
| 53185 | + * @throws Exception | |
| 53186 | + * @return int | |
| 53187 | + */ | |
| 53188 | + public function getVar(): int { | |
| 53189 | + if (VarClass::validateVar($this->var)) { | |
| 53190 | + return $this->var; | |
| 53191 | + } | |
| 53192 | + throw new Exception('never get to getVar VarClass::var'); | |
| 53193 | + } | |
| 53194 | + | |
| 53195 | + /** | |
| 53196 | + * @return int | |
| 53197 | + */ | |
| 53198 | + public static function sampleVar(): int { | |
| 53199 | + return 31; /*31:var*/ | |
| 53200 | + } | |
| 53201 | + | |
| 53202 | + /** | |
| 53203 | + * @throws Exception | |
| 53204 | + * @return bool | |
| 53205 | + */ | |
| 53206 | + public function validate(): bool { | |
| 53207 | + return VarClass::validateVar($this->var); | |
| 53208 | + } | |
| 53209 | + | |
| 53210 | + /** | |
| 53211 | + * @return stdClass | |
| 53212 | + * @throws Exception | |
| 53213 | + */ | |
| 53214 | + public function to(): stdClass { | |
| 53215 | + $out = new stdClass(); | |
| 53216 | + $out->{'var'} = $this->toVar(); | |
| 53217 | + return $out; | |
| 53218 | + } | |
| 53219 | + | |
| 53220 | + /** | |
| 53221 | + * @param stdClass $obj | |
| 53222 | + * @return VarClass | |
| 53223 | + * @throws Exception | |
| 53224 | + */ | |
| 53225 | + public static function from(stdClass $obj): VarClass { | |
| 53226 | + if (!property_exists($obj, 'var')) { | |
| 53227 | + throw new Exception("Missing required property"); | |
| 53228 | + } | |
| 53229 | + return new VarClass( | |
| 53230 | + VarClass::fromVar($obj->{'var'}) | |
| 53231 | + ); | |
| 53232 | + } | |
| 53233 | + | |
| 53234 | + /** | |
| 53235 | + * @return VarClass | |
| 53236 | + */ | |
| 53237 | + public static function sample(): VarClass { | |
| 53238 | + return new VarClass( | |
| 53239 | + VarClass::sampleVar() | |
| 53240 | + ); | |
| 53241 | + } | |
| 53242 | +} | |
| 53243 | + | |
| 53244 | +// This is an autogenerated file:Virtual | |
| 53245 | + | |
| 53246 | +class Virtual { | |
| 53247 | + private int $virtual; // json:virtual Required | |
| 53248 | + | |
| 53249 | + /** | |
| 53250 | + * @param int $virtual | |
| 53251 | + */ | |
| 53252 | + public function __construct(int $virtual) { | |
| 53253 | + $this->virtual = $virtual; | |
| 53254 | + } | |
| 53255 | + | |
| 53256 | + /** | |
| 53257 | + * @param int $value | |
| 53258 | + * @throws Exception | |
| 53259 | + * @return int | |
| 53260 | + */ | |
| 53261 | + public static function fromVirtual(int $value): int { | |
| 53262 | + return $value; /*int*/ | |
| 53263 | + } | |
| 53264 | + | |
| 53265 | + /** | |
| 53266 | + * @throws Exception | |
| 53267 | + * @return int | |
| 53268 | + */ | |
| 53269 | + public function toVirtual(): int { | |
| 53270 | + if (Virtual::validateVirtual($this->virtual)) { | |
| 53271 | + return $this->virtual; /*int*/ | |
| 53272 | + } | |
| 53273 | + throw new Exception('never get to this Virtual::virtual'); | |
| 53274 | + } | |
| 53275 | + | |
| 53276 | + /** | |
| 53277 | + * @param int | |
| 53278 | + * @return bool | |
| 53279 | + * @throws Exception | |
| 53280 | + */ | |
| 53281 | + public static function validateVirtual(int $value): bool { | |
| 53282 | + return true; | |
| 53283 | + } | |
| 53284 | + | |
| 53285 | + /** | |
| 53286 | + * @throws Exception | |
| 53287 | + * @return int | |
| 53288 | + */ | |
| 53289 | + public function getVirtual(): int { | |
| 53290 | + if (Virtual::validateVirtual($this->virtual)) { | |
| 53291 | + return $this->virtual; | |
| 53292 | + } | |
| 53293 | + throw new Exception('never get to getVirtual Virtual::virtual'); | |
| 53294 | + } | |
| 53295 | + | |
| 53296 | + /** | |
| 53297 | + * @return int | |
| 53298 | + */ | |
| 53299 | + public static function sampleVirtual(): int { | |
| 53300 | + return 31; /*31:virtual*/ | |
| 53301 | + } | |
| 53302 | + | |
| 53303 | + /** | |
| 53304 | + * @throws Exception | |
| 53305 | + * @return bool | |
| 53306 | + */ | |
| 53307 | + public function validate(): bool { | |
| 53308 | + return Virtual::validateVirtual($this->virtual); | |
| 53309 | + } | |
| 53310 | + | |
| 53311 | + /** | |
| 53312 | + * @return stdClass | |
| 53313 | + * @throws Exception | |
| 53314 | + */ | |
| 53315 | + public function to(): stdClass { | |
| 53316 | + $out = new stdClass(); | |
| 53317 | + $out->{'virtual'} = $this->toVirtual(); | |
| 53318 | + return $out; | |
| 53319 | + } | |
| 53320 | + | |
| 53321 | + /** | |
| 53322 | + * @param stdClass $obj | |
| 53323 | + * @return Virtual | |
| 53324 | + * @throws Exception | |
| 53325 | + */ | |
| 53326 | + public static function from(stdClass $obj): Virtual { | |
| 53327 | + if (!property_exists($obj, 'virtual')) { | |
| 53328 | + throw new Exception("Missing required property"); | |
| 53329 | + } | |
| 53330 | + return new Virtual( | |
| 53331 | + Virtual::fromVirtual($obj->{'virtual'}) | |
| 53332 | + ); | |
| 53333 | + } | |
| 53334 | + | |
| 53335 | + /** | |
| 53336 | + * @return Virtual | |
| 53337 | + */ | |
| 53338 | + public static function sample(): Virtual { | |
| 53339 | + return new Virtual( | |
| 53340 | + Virtual::sampleVirtual() | |
| 53341 | + ); | |
| 53342 | + } | |
| 53343 | +} | |
| 53344 | + | |
| 52709 | 53345 | // This is an autogenerated file:VoidClass |
| 52710 | 53346 | |
| 52711 | 53347 | class VoidClass { |
Mpikedefault / TopLevel.pmod+461 −361
| @@ -1679,71 +1679,71 @@ ClassClass ClassClass_from_JSON(mixed json) { | ||
| 1679 | 1679 | } |
| 1680 | 1680 | |
| 1681 | 1681 | class Obj2 { |
| 1682 | - DateFormatter date_formatter; // json: "DateFormatter" | |
| 1683 | - DateOnly date_only; // json: "DateOnly" | |
| 1684 | - DateOnlyConverter date_only_converter; // json: "DateOnlyConverter" | |
| 1685 | - DateParseHandling date_parse_handling; // json: "date_parse_handling" | |
| 1686 | - DateTime date_time; // json: "DateTime" | |
| 1687 | - DateTimeStyles date_time_styles; // json: "DateTimeStyles" | |
| 1688 | - Debugger debugger; // json: "debugger" | |
| 1689 | - Decimal decimal; // json: "decimal" | |
| 1690 | - Declare declare; // json: "declare" | |
| 1691 | - Decltype decltype; // json: "decltype" | |
| 1692 | - DecodeString decode_string; // json: "decode_string" | |
| 1693 | - Decoder decoder; // json: "Decoder" | |
| 1694 | - DecodingError decoding_error; // json: "DecodingError" | |
| 1695 | - Def def; // json: "def" | |
| 1696 | - Defer defer; // json: "defer" | |
| 1697 | - Deinit deinit; // json: "deinit" | |
| 1698 | - Del del; // json: "del" | |
| 1699 | - Delegate delegate; // json: "delegate" | |
| 1700 | - Delete delete; // json: "delete" | |
| 1701 | - Dict dict; // json: "dict" | |
| 1702 | - Dictionary dictionary; // json: "dictionary" | |
| 1703 | - DidSet did_set; // json: "didSet" | |
| 1704 | - Double double; // json: "double" | |
| 1705 | - int dummy; // json: "dummy" | |
| 1706 | - Dynamic dynamic; // json: "dynamic" | |
| 1707 | - DynamicCast dynamic_cast; // json: "dynamic_cast" | |
| 1708 | - Elif elif; // json: "elif" | |
| 1709 | - EncodeQuickType encode_quick_type; // json: "encode_quick_type" | |
| 1710 | - Encoder encoder; // json: "Encoder" | |
| 1711 | - EnumValues enum_values; // json: "EnumValues" | |
| 1712 | - EqualityContract equality_contract; // json: "equalityContract" | |
| 1713 | - Equatable equatable; // json: "Equatable" | |
| 1714 | - Event event; // json: "event" | |
| 1715 | - Except except; // json: "except" | |
| 1716 | - Exception exception; // json: "exception" | |
| 1717 | - Explicit explicit; // json: "explicit" | |
| 1718 | - Export export; // json: "export" | |
| 1719 | - Exposing exposing; // json: "exposing" | |
| 1720 | - Extends extends; // json: "extends" | |
| 1721 | - Extension extension; // json: "extension" | |
| 1722 | - Fallthrough fallthrough; // json: "fallthrough" | |
| 1723 | - False false; // json: "False" | |
| 1724 | - Fileprivate fileprivate; // json: "fileprivate" | |
| 1725 | - Finally finally; // json: "finally" | |
| 1726 | - Fixed fixed; // json: "fixed" | |
| 1727 | - FormatException format_exception; // json: "FormatException" | |
| 1728 | - Friend friend; // json: "friend" | |
| 1729 | - From from; // json: "from" | |
| 1730 | - FromJson from_json; // json: "from_json" | |
| 1731 | - Func func; // json: "func" | |
| 1732 | - Get get; // json: "get" | |
| 1733 | - Go go; // json: "go" | |
| 1734 | - Goto goto; // json: "goto" | |
| 1735 | - Default obj2_default; // json: "default" | |
| 1736 | - Do obj2_do; // json: "do" | |
| 1737 | - Else obj2_else; // json: "else" | |
| 1738 | - Enum obj2_enum; // json: "enum" | |
| 1739 | - Extern obj2_extern; // json: "extern" | |
| 1740 | - FalseClass obj2_false; // json: "false" | |
| 1741 | - Final obj2_final; // json: "final" | |
| 1742 | - Float obj2_float; // json: "float" | |
| 1743 | - For obj2_for; // json: "for" | |
| 1744 | - Foreach obj2_foreach; // json: "foreach" | |
| 1745 | - Function obj2_function; // json: "function" | |
| 1746 | - Global obj2_global; // json: "global" | |
| 1682 | + DateFormatter date_formatter; // json: "DateFormatter" | |
| 1683 | + DateOnly date_only; // json: "DateOnly" | |
| 1684 | + DateOnlyConverter date_only_converter; // json: "DateOnlyConverter" | |
| 1685 | + DateParseHandling date_parse_handling; // json: "date_parse_handling" | |
| 1686 | + DateTime date_time; // json: "DateTime" | |
| 1687 | + DateTimeStyles date_time_styles; // json: "DateTimeStyles" | |
| 1688 | + Debugger debugger; // json: "debugger" | |
| 1689 | + Decimal decimal; // json: "decimal" | |
| 1690 | + Declare declare; // json: "declare" | |
| 1691 | + Decltype decltype; // json: "decltype" | |
| 1692 | + DecodeString decode_string; // json: "decode_string" | |
| 1693 | + Decoder decoder; // json: "Decoder" | |
| 1694 | + DecodingError decoding_error; // json: "DecodingError" | |
| 1695 | + Def def; // json: "def" | |
| 1696 | + Defer defer; // json: "defer" | |
| 1697 | + Deinit deinit; // json: "deinit" | |
| 1698 | + Del del; // json: "del" | |
| 1699 | + Delegate delegate; // json: "delegate" | |
| 1700 | + Delete delete; // json: "delete" | |
| 1701 | + DeserializationFeature deserialization_feature; // json: "DeserializationFeature" | |
| 1702 | + Dict dict; // json: "dict" | |
| 1703 | + Dictionary dictionary; // json: "dictionary" | |
| 1704 | + DidSet did_set; // json: "didSet" | |
| 1705 | + Double double; // json: "double" | |
| 1706 | + int dummy; // json: "dummy" | |
| 1707 | + Dynamic dynamic; // json: "dynamic" | |
| 1708 | + DynamicCast dynamic_cast; // json: "dynamic_cast" | |
| 1709 | + Elif elif; // json: "elif" | |
| 1710 | + EncodeQuickType encode_quick_type; // json: "encode_quick_type" | |
| 1711 | + Encoder encoder; // json: "Encoder" | |
| 1712 | + EnumValues enum_values; // json: "EnumValues" | |
| 1713 | + EqualityContract equality_contract; // json: "equalityContract" | |
| 1714 | + Equatable equatable; // json: "Equatable" | |
| 1715 | + Event event; // json: "event" | |
| 1716 | + Except except; // json: "except" | |
| 1717 | + Exception exception; // json: "exception" | |
| 1718 | + Explicit explicit; // json: "explicit" | |
| 1719 | + Export export; // json: "export" | |
| 1720 | + Exposing exposing; // json: "exposing" | |
| 1721 | + Extends extends; // json: "extends" | |
| 1722 | + Extension extension; // json: "extension" | |
| 1723 | + Fallthrough fallthrough; // json: "fallthrough" | |
| 1724 | + False false; // json: "False" | |
| 1725 | + Fileprivate fileprivate; // json: "fileprivate" | |
| 1726 | + Finally finally; // json: "finally" | |
| 1727 | + Fixed fixed; // json: "fixed" | |
| 1728 | + FormatException format_exception; // json: "FormatException" | |
| 1729 | + Friend friend; // json: "friend" | |
| 1730 | + From from; // json: "from" | |
| 1731 | + FromJson from_json; // json: "from_json" | |
| 1732 | + Func func; // json: "func" | |
| 1733 | + Get get; // json: "get" | |
| 1734 | + Go go; // json: "go" | |
| 1735 | + Default obj2_default; // json: "default" | |
| 1736 | + Do obj2_do; // json: "do" | |
| 1737 | + Else obj2_else; // json: "else" | |
| 1738 | + Enum obj2_enum; // json: "enum" | |
| 1739 | + Extern obj2_extern; // json: "extern" | |
| 1740 | + FalseClass obj2_false; // json: "false" | |
| 1741 | + Final obj2_final; // json: "final" | |
| 1742 | + Float obj2_float; // json: "float" | |
| 1743 | + For obj2_for; // json: "for" | |
| 1744 | + Foreach obj2_foreach; // json: "foreach" | |
| 1745 | + Function obj2_function; // json: "function" | |
| 1746 | + Global obj2_global; // json: "global" | |
| 1747 | 1747 | |
| 1748 | 1748 | string encode_json() { |
| 1749 | 1749 | mapping(string:mixed) json = ([ |
| @@ -1766,6 +1766,7 @@ class Obj2 { | ||
| 1766 | 1766 | "del" : del, |
| 1767 | 1767 | "delegate" : delegate, |
| 1768 | 1768 | "delete" : delete, |
| 1769 | + "DeserializationFeature" : deserialization_feature, | |
| 1769 | 1770 | "dict" : dict, |
| 1770 | 1771 | "dictionary" : dictionary, |
| 1771 | 1772 | "didSet" : did_set, |
| @@ -1799,7 +1800,6 @@ class Obj2 { | ||
| 1799 | 1800 | "func" : func, |
| 1800 | 1801 | "get" : get, |
| 1801 | 1802 | "go" : go, |
| 1802 | - "goto" : goto, | |
| 1803 | 1803 | "default" : obj2_default, |
| 1804 | 1804 | "do" : obj2_do, |
| 1805 | 1805 | "else" : obj2_else, |
| @@ -1859,6 +1859,8 @@ Obj2 Obj2_from_JSON(mixed json) { | ||
| 1859 | 1859 | retval.delegate = json["delegate"]; |
| 1860 | 1860 | if (!mappingp(json["delete"])) error("Expected object"); |
| 1861 | 1861 | retval.delete = json["delete"]; |
| 1862 | + if (!mappingp(json["DeserializationFeature"])) error("Expected object"); | |
| 1863 | + retval.deserialization_feature = json["DeserializationFeature"]; | |
| 1862 | 1864 | if (!mappingp(json["dict"])) error("Expected object"); |
| 1863 | 1865 | retval.dict = json["dict"]; |
| 1864 | 1866 | if (!mappingp(json["dictionary"])) error("Expected object"); |
| @@ -1925,8 +1927,6 @@ Obj2 Obj2_from_JSON(mixed json) { | ||
| 1925 | 1927 | retval.get = json["get"]; |
| 1926 | 1928 | if (!mappingp(json["go"])) error("Expected object"); |
| 1927 | 1929 | retval.go = json["go"]; |
| 1928 | - if (!mappingp(json["goto"])) error("Expected object"); | |
| 1929 | - retval.goto = json["goto"]; | |
| 1930 | 1930 | if (!mappingp(json["default"])) error("Expected object"); |
| 1931 | 1931 | retval.obj2_default = json["default"]; |
| 1932 | 1932 | if (!mappingp(json["do"])) error("Expected object"); |
| @@ -2353,6 +2353,27 @@ Delete Delete_from_JSON(mixed json) { | ||
| 2353 | 2353 | return retval; |
| 2354 | 2354 | } |
| 2355 | 2355 | |
| 2356 | +class DeserializationFeature { | |
| 2357 | + int deserialization_feature; // json: "DeserializationFeature" | |
| 2358 | + | |
| 2359 | + string encode_json() { | |
| 2360 | + mapping(string:mixed) json = ([ | |
| 2361 | + "DeserializationFeature" : deserialization_feature, | |
| 2362 | + ]); | |
| 2363 | + | |
| 2364 | + return Standards.JSON.encode(json); | |
| 2365 | + } | |
| 2366 | +} | |
| 2367 | + | |
| 2368 | +DeserializationFeature DeserializationFeature_from_JSON(mixed json) { | |
| 2369 | + DeserializationFeature retval = DeserializationFeature(); | |
| 2370 | + | |
| 2371 | + if (!intp(json["DeserializationFeature"])) error("Expected integer"); | |
| 2372 | + retval.deserialization_feature = json["DeserializationFeature"]; | |
| 2373 | + | |
| 2374 | + return retval; | |
| 2375 | +} | |
| 2376 | + | |
| 2356 | 2377 | class Dict { |
| 2357 | 2378 | int dict; // json: "dict" |
| 2358 | 2379 | |
| @@ -3033,27 +3054,6 @@ Go Go_from_JSON(mixed json) { | ||
| 3033 | 3054 | return retval; |
| 3034 | 3055 | } |
| 3035 | 3056 | |
| 3036 | -class Goto { | |
| 3037 | - int goto; // json: "goto" | |
| 3038 | - | |
| 3039 | - string encode_json() { | |
| 3040 | - mapping(string:mixed) json = ([ | |
| 3041 | - "goto" : goto, | |
| 3042 | - ]); | |
| 3043 | - | |
| 3044 | - return Standards.JSON.encode(json); | |
| 3045 | - } | |
| 3046 | -} | |
| 3047 | - | |
| 3048 | -Goto Goto_from_JSON(mixed json) { | |
| 3049 | - Goto retval = Goto(); | |
| 3050 | - | |
| 3051 | - if (!intp(json["goto"])) error("Expected integer"); | |
| 3052 | - retval.goto = json["goto"]; | |
| 3053 | - | |
| 3054 | - return retval; | |
| 3055 | -} | |
| 3056 | - | |
| 3057 | 3057 | class Default { |
| 3058 | 3058 | int default_default; // json: "default" |
| 3059 | 3059 | |
| @@ -3308,6 +3308,7 @@ Global Global_from_JSON(mixed json) { | ||
| 3308 | 3308 | |
| 3309 | 3309 | class Obj3 { |
| 3310 | 3310 | int dummy; // json: "dummy" |
| 3311 | + Goto goto; // json: "goto" | |
| 3311 | 3312 | Guard guard; // json: "guard" |
| 3312 | 3313 | HasOwnProperty has_own_property; // json: "hasOwnProperty" |
| 3313 | 3314 | HashCode hash_code; // json: "hashCode" |
| @@ -3366,7 +3367,6 @@ class Obj3 { | ||
| 3366 | 3367 | Newtonsoft newtonsoft; // json: "newtonsoft" |
| 3367 | 3368 | Nil nil; // json: "nil" |
| 3368 | 3369 | No no; // json: "NO" |
| 3369 | - Noexcept noexcept; // json: "noexcept" | |
| 3370 | 3370 | If obj3_if; // json: "if" |
| 3371 | 3371 | Import obj3_import; // json: "import" |
| 3372 | 3372 | Inline obj3_inline; // json: "inline" |
| @@ -3376,6 +3376,7 @@ class Obj3 { | ||
| 3376 | 3376 | string encode_json() { |
| 3377 | 3377 | mapping(string:mixed) json = ([ |
| 3378 | 3378 | "dummy" : dummy, |
| 3379 | + "goto" : goto, | |
| 3379 | 3380 | "guard" : guard, |
| 3380 | 3381 | "hasOwnProperty" : has_own_property, |
| 3381 | 3382 | "hashCode" : hash_code, |
| @@ -3434,7 +3435,6 @@ class Obj3 { | ||
| 3434 | 3435 | "newtonsoft" : newtonsoft, |
| 3435 | 3436 | "nil" : nil, |
| 3436 | 3437 | "NO" : no, |
| 3437 | - "noexcept" : noexcept, | |
| 3438 | 3438 | "if" : obj3_if, |
| 3439 | 3439 | "import" : obj3_import, |
| 3440 | 3440 | "inline" : obj3_inline, |
| @@ -3451,6 +3451,8 @@ Obj3 Obj3_from_JSON(mixed json) { | ||
| 3451 | 3451 | |
| 3452 | 3452 | if (!intp(json["dummy"])) error("Expected integer"); |
| 3453 | 3453 | retval.dummy = json["dummy"]; |
| 3454 | + if (!mappingp(json["goto"])) error("Expected object"); | |
| 3455 | + retval.goto = json["goto"]; | |
| 3454 | 3456 | if (!mappingp(json["guard"])) error("Expected object"); |
| 3455 | 3457 | retval.guard = json["guard"]; |
| 3456 | 3458 | if (!mappingp(json["hasOwnProperty"])) error("Expected object"); |
| @@ -3567,8 +3569,6 @@ Obj3 Obj3_from_JSON(mixed json) { | ||
| 3567 | 3569 | retval.nil = json["nil"]; |
| 3568 | 3570 | if (!mappingp(json["NO"])) error("Expected object"); |
| 3569 | 3571 | retval.no = json["NO"]; |
| 3570 | - if (!mappingp(json["noexcept"])) error("Expected object"); | |
| 3571 | - retval.noexcept = json["noexcept"]; | |
| 3572 | 3572 | if (!mappingp(json["if"])) error("Expected object"); |
| 3573 | 3573 | retval.obj3_if = json["if"]; |
| 3574 | 3574 | if (!mappingp(json["import"])) error("Expected object"); |
| @@ -3583,6 +3583,27 @@ Obj3 Obj3_from_JSON(mixed json) { | ||
| 3583 | 3583 | return retval; |
| 3584 | 3584 | } |
| 3585 | 3585 | |
| 3586 | +class Goto { | |
| 3587 | + int goto; // json: "goto" | |
| 3588 | + | |
| 3589 | + string encode_json() { | |
| 3590 | + mapping(string:mixed) json = ([ | |
| 3591 | + "goto" : goto, | |
| 3592 | + ]); | |
| 3593 | + | |
| 3594 | + return Standards.JSON.encode(json); | |
| 3595 | + } | |
| 3596 | +} | |
| 3597 | + | |
| 3598 | +Goto Goto_from_JSON(mixed json) { | |
| 3599 | + Goto retval = Goto(); | |
| 3600 | + | |
| 3601 | + if (!intp(json["goto"])) error("Expected integer"); | |
| 3602 | + retval.goto = json["goto"]; | |
| 3603 | + | |
| 3604 | + return retval; | |
| 3605 | +} | |
| 3606 | + | |
| 3586 | 3607 | class Guard { |
| 3587 | 3608 | int guard; // json: "guard" |
| 3588 | 3609 | |
| @@ -4800,27 +4821,6 @@ No No_from_JSON(mixed json) { | ||
| 4800 | 4821 | return retval; |
| 4801 | 4822 | } |
| 4802 | 4823 | |
| 4803 | -class Noexcept { | |
| 4804 | - int noexcept; // json: "noexcept" | |
| 4805 | - | |
| 4806 | - string encode_json() { | |
| 4807 | - mapping(string:mixed) json = ([ | |
| 4808 | - "noexcept" : noexcept, | |
| 4809 | - ]); | |
| 4810 | - | |
| 4811 | - return Standards.JSON.encode(json); | |
| 4812 | - } | |
| 4813 | -} | |
| 4814 | - | |
| 4815 | -Noexcept Noexcept_from_JSON(mixed json) { | |
| 4816 | - Noexcept retval = Noexcept(); | |
| 4817 | - | |
| 4818 | - if (!intp(json["noexcept"])) error("Expected integer"); | |
| 4819 | - retval.noexcept = json["noexcept"]; | |
| 4820 | - | |
| 4821 | - return retval; | |
| 4822 | -} | |
| 4823 | - | |
| 4824 | 4824 | class If { |
| 4825 | 4825 | int if_if; // json: "if" |
| 4826 | 4826 | |
| @@ -4929,6 +4929,7 @@ Lambda Lambda_from_JSON(mixed json) { | ||
| 4929 | 4929 | class Obj4 { |
| 4930 | 4930 | int dummy; // json: "dummy" |
| 4931 | 4931 | NoSuchMethod no_such_method; // json: "noSuchMethod" |
| 4932 | + Noexcept noexcept; // json: "noexcept" | |
| 4932 | 4933 | Nonatomic nonatomic; // json: "nonatomic" |
| 4933 | 4934 | None none; // json: "None" |
| 4934 | 4935 | Nonlocal nonlocal; // json: "nonlocal" |
| @@ -4951,6 +4952,8 @@ class Obj4 { | ||
| 4951 | 4952 | Public obj4_public; // json: "public" |
| 4952 | 4953 | Return obj4_return; // json: "return" |
| 4953 | 4954 | ObjectMapper object_mapper; // json: "ObjectMapper" |
| 4955 | + ObjectReader object_reader; // json: "ObjectReader" | |
| 4956 | + ObjectWriter object_writer; // json: "ObjectWriter" | |
| 4954 | 4957 | Of of; // json: "of" |
| 4955 | 4958 | Oneway oneway; // json: "oneway" |
| 4956 | 4959 | Open open; // json: "open" |
| @@ -4989,14 +4992,12 @@ class Obj4 { | ||
| 4989 | 4992 | RuntimeType runtime_type; // json: "runtimeType" |
| 4990 | 4993 | S s; // json: "s" |
| 4991 | 4994 | Sbyte sbyte; // json: "sbyte" |
| 4992 | - Sealed sealed; // json: "sealed" | |
| 4993 | - Sel sel; // json: "SEL" | |
| 4994 | - Select select; // json: "select" | |
| 4995 | 4995 | |
| 4996 | 4996 | string encode_json() { |
| 4997 | 4997 | mapping(string:mixed) json = ([ |
| 4998 | 4998 | "dummy" : dummy, |
| 4999 | 4999 | "noSuchMethod" : no_such_method, |
| 5000 | + "noexcept" : noexcept, | |
| 5000 | 5001 | "nonatomic" : nonatomic, |
| 5001 | 5002 | "None" : none, |
| 5002 | 5003 | "nonlocal" : nonlocal, |
| @@ -5019,6 +5020,8 @@ class Obj4 { | ||
| 5019 | 5020 | "public" : obj4_public, |
| 5020 | 5021 | "return" : obj4_return, |
| 5021 | 5022 | "ObjectMapper" : object_mapper, |
| 5023 | + "ObjectReader" : object_reader, | |
| 5024 | + "ObjectWriter" : object_writer, | |
| 5022 | 5025 | "of" : of, |
| 5023 | 5026 | "oneway" : oneway, |
| 5024 | 5027 | "open" : open, |
| @@ -5057,9 +5060,6 @@ class Obj4 { | ||
| 5057 | 5060 | "runtimeType" : runtime_type, |
| 5058 | 5061 | "s" : s, |
| 5059 | 5062 | "sbyte" : sbyte, |
| 5060 | - "sealed" : sealed, | |
| 5061 | - "SEL" : sel, | |
| 5062 | - "select" : select, | |
| 5063 | 5063 | ]); |
| 5064 | 5064 | |
| 5065 | 5065 | return Standards.JSON.encode(json); |
| @@ -5073,6 +5073,8 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5073 | 5073 | retval.dummy = json["dummy"]; |
| 5074 | 5074 | if (!mappingp(json["noSuchMethod"])) error("Expected object"); |
| 5075 | 5075 | retval.no_such_method = json["noSuchMethod"]; |
| 5076 | + if (!mappingp(json["noexcept"])) error("Expected object"); | |
| 5077 | + retval.noexcept = json["noexcept"]; | |
| 5076 | 5078 | if (!mappingp(json["nonatomic"])) error("Expected object"); |
| 5077 | 5079 | retval.nonatomic = json["nonatomic"]; |
| 5078 | 5080 | if (!mappingp(json["None"])) error("Expected object"); |
| @@ -5117,6 +5119,10 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5117 | 5119 | retval.obj4_return = json["return"]; |
| 5118 | 5120 | if (!mappingp(json["ObjectMapper"])) error("Expected object"); |
| 5119 | 5121 | retval.object_mapper = json["ObjectMapper"]; |
| 5122 | + if (!mappingp(json["ObjectReader"])) error("Expected object"); | |
| 5123 | + retval.object_reader = json["ObjectReader"]; | |
| 5124 | + if (!mappingp(json["ObjectWriter"])) error("Expected object"); | |
| 5125 | + retval.object_writer = json["ObjectWriter"]; | |
| 5120 | 5126 | if (!mappingp(json["of"])) error("Expected object"); |
| 5121 | 5127 | retval.of = json["of"]; |
| 5122 | 5128 | if (!mappingp(json["oneway"])) error("Expected object"); |
| @@ -5193,12 +5199,6 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5193 | 5199 | retval.s = json["s"]; |
| 5194 | 5200 | if (!mappingp(json["sbyte"])) error("Expected object"); |
| 5195 | 5201 | retval.sbyte = json["sbyte"]; |
| 5196 | - if (!mappingp(json["sealed"])) error("Expected object"); | |
| 5197 | - retval.sealed = json["sealed"]; | |
| 5198 | - if (!mappingp(json["SEL"])) error("Expected object"); | |
| 5199 | - retval.sel = json["SEL"]; | |
| 5200 | - if (!mappingp(json["select"])) error("Expected object"); | |
| 5201 | - retval.select = json["select"]; | |
| 5202 | 5202 | |
| 5203 | 5203 | return retval; |
| 5204 | 5204 | } |
| @@ -5224,6 +5224,27 @@ NoSuchMethod NoSuchMethod_from_JSON(mixed json) { | ||
| 5224 | 5224 | return retval; |
| 5225 | 5225 | } |
| 5226 | 5226 | |
| 5227 | +class Noexcept { | |
| 5228 | + int noexcept; // json: "noexcept" | |
| 5229 | + | |
| 5230 | + string encode_json() { | |
| 5231 | + mapping(string:mixed) json = ([ | |
| 5232 | + "noexcept" : noexcept, | |
| 5233 | + ]); | |
| 5234 | + | |
| 5235 | + return Standards.JSON.encode(json); | |
| 5236 | + } | |
| 5237 | +} | |
| 5238 | + | |
| 5239 | +Noexcept Noexcept_from_JSON(mixed json) { | |
| 5240 | + Noexcept retval = Noexcept(); | |
| 5241 | + | |
| 5242 | + if (!intp(json["noexcept"])) error("Expected integer"); | |
| 5243 | + retval.noexcept = json["noexcept"]; | |
| 5244 | + | |
| 5245 | + return retval; | |
| 5246 | +} | |
| 5247 | + | |
| 5227 | 5248 | class Nonatomic { |
| 5228 | 5249 | int nonatomic; // json: "nonatomic" |
| 5229 | 5250 | |
| @@ -5686,6 +5707,48 @@ ObjectMapper ObjectMapper_from_JSON(mixed json) { | ||
| 5686 | 5707 | return retval; |
| 5687 | 5708 | } |
| 5688 | 5709 | |
| 5710 | +class ObjectReader { | |
| 5711 | + int object_reader; // json: "ObjectReader" | |
| 5712 | + | |
| 5713 | + string encode_json() { | |
| 5714 | + mapping(string:mixed) json = ([ | |
| 5715 | + "ObjectReader" : object_reader, | |
| 5716 | + ]); | |
| 5717 | + | |
| 5718 | + return Standards.JSON.encode(json); | |
| 5719 | + } | |
| 5720 | +} | |
| 5721 | + | |
| 5722 | +ObjectReader ObjectReader_from_JSON(mixed json) { | |
| 5723 | + ObjectReader retval = ObjectReader(); | |
| 5724 | + | |
| 5725 | + if (!intp(json["ObjectReader"])) error("Expected integer"); | |
| 5726 | + retval.object_reader = json["ObjectReader"]; | |
| 5727 | + | |
| 5728 | + return retval; | |
| 5729 | +} | |
| 5730 | + | |
| 5731 | +class ObjectWriter { | |
| 5732 | + int object_writer; // json: "ObjectWriter" | |
| 5733 | + | |
| 5734 | + string encode_json() { | |
| 5735 | + mapping(string:mixed) json = ([ | |
| 5736 | + "ObjectWriter" : object_writer, | |
| 5737 | + ]); | |
| 5738 | + | |
| 5739 | + return Standards.JSON.encode(json); | |
| 5740 | + } | |
| 5741 | +} | |
| 5742 | + | |
| 5743 | +ObjectWriter ObjectWriter_from_JSON(mixed json) { | |
| 5744 | + ObjectWriter retval = ObjectWriter(); | |
| 5745 | + | |
| 5746 | + if (!intp(json["ObjectWriter"])) error("Expected integer"); | |
| 5747 | + retval.object_writer = json["ObjectWriter"]; | |
| 5748 | + | |
| 5749 | + return retval; | |
| 5750 | +} | |
| 5751 | + | |
| 5689 | 5752 | class Of { |
| 5690 | 5753 | int of; // json: "of" |
| 5691 | 5754 | |
| @@ -6483,135 +6546,72 @@ Sbyte Sbyte_from_JSON(mixed json) { | ||
| 6483 | 6546 | return retval; |
| 6484 | 6547 | } |
| 6485 | 6548 | |
| 6486 | -class Sealed { | |
| 6487 | - int sealed; // json: "sealed" | |
| 6488 | - | |
| 6489 | - string encode_json() { | |
| 6490 | - mapping(string:mixed) json = ([ | |
| 6491 | - "sealed" : sealed, | |
| 6492 | - ]); | |
| 6493 | - | |
| 6494 | - return Standards.JSON.encode(json); | |
| 6495 | - } | |
| 6496 | -} | |
| 6497 | - | |
| 6498 | -Sealed Sealed_from_JSON(mixed json) { | |
| 6499 | - Sealed retval = Sealed(); | |
| 6500 | - | |
| 6501 | - if (!intp(json["sealed"])) error("Expected integer"); | |
| 6502 | - retval.sealed = json["sealed"]; | |
| 6503 | - | |
| 6504 | - return retval; | |
| 6505 | -} | |
| 6506 | - | |
| 6507 | -class Sel { | |
| 6508 | - int sel; // json: "SEL" | |
| 6509 | - | |
| 6510 | - string encode_json() { | |
| 6511 | - mapping(string:mixed) json = ([ | |
| 6512 | - "SEL" : sel, | |
| 6513 | - ]); | |
| 6514 | - | |
| 6515 | - return Standards.JSON.encode(json); | |
| 6516 | - } | |
| 6517 | -} | |
| 6518 | - | |
| 6519 | -Sel Sel_from_JSON(mixed json) { | |
| 6520 | - Sel retval = Sel(); | |
| 6521 | - | |
| 6522 | - if (!intp(json["SEL"])) error("Expected integer"); | |
| 6523 | - retval.sel = json["SEL"]; | |
| 6524 | - | |
| 6525 | - return retval; | |
| 6526 | -} | |
| 6527 | - | |
| 6528 | -class Select { | |
| 6529 | - int select; // json: "select" | |
| 6530 | - | |
| 6531 | - string encode_json() { | |
| 6532 | - mapping(string:mixed) json = ([ | |
| 6533 | - "select" : select, | |
| 6534 | - ]); | |
| 6535 | - | |
| 6536 | - return Standards.JSON.encode(json); | |
| 6537 | - } | |
| 6538 | -} | |
| 6539 | - | |
| 6540 | -Select Select_from_JSON(mixed json) { | |
| 6541 | - Select retval = Select(); | |
| 6542 | - | |
| 6543 | - if (!intp(json["select"])) error("Expected integer"); | |
| 6544 | - retval.select = json["select"]; | |
| 6545 | - | |
| 6546 | - return retval; | |
| 6547 | -} | |
| 6548 | - | |
| 6549 | 6549 | class Obj5 { |
| 6550 | - int dummy; // json: "dummy" | |
| 6551 | - SelfClass obj5_self; // json: "self" | |
| 6552 | - Static obj5_static; // json: "static" | |
| 6553 | - String obj5_string; // json: "string" | |
| 6554 | - Switch obj5_switch; // json: "switch" | |
| 6555 | - TrueClass obj5_true; // json: "true" | |
| 6556 | - TypeClass obj5_type; // json: "type" | |
| 6557 | - Typedef obj5_typedef; // json: "typedef" | |
| 6558 | - Typeof obj5_typeof; // json: "typeof" | |
| 6559 | - Self self; // json: "Self" | |
| 6560 | - Sendable sendable; // json: "Sendable" | |
| 6561 | - Serialize serialize; // json: "serialize" | |
| 6562 | - SerializerProvider serializer_provider; // json: "SerializerProvider" | |
| 6563 | - Set set; // json: "set" | |
| 6564 | - Short short; // json: "short" | |
| 6565 | - Signed signed; // json: "signed" | |
| 6566 | - SimpleModule simple_module; // json: "SimpleModule" | |
| 6567 | - Sizeof sizeof; // json: "sizeof" | |
| 6568 | - Stackalloc stackalloc; // json: "stackalloc" | |
| 6569 | - StandardsClass standards; // json: "Standards" | |
| 6570 | - StaticAssert static_assert; // json: "static_assert" | |
| 6571 | - StaticCast static_cast; // json: "static_cast" | |
| 6572 | - StdDeserializer std_deserializer; // json: "StdDeserializer" | |
| 6573 | - StdSerializer std_serializer; // json: "StdSerializer" | |
| 6574 | - Strictfp strictfp; // json: "strictfp" | |
| 6575 | - Struct struct; // json: "struct" | |
| 6576 | - Subscript subscript; // json: "subscript" | |
| 6577 | - Super super; // json: "super" | |
| 6578 | - Symbol symbol; // json: "symbol" | |
| 6579 | - Synchronized synchronized; // json: "synchronized" | |
| 6580 | - System system; // json: "system" | |
| 6581 | - Template template; // json: "template" | |
| 6582 | - Then then; // json: "then" | |
| 6583 | - This this; // json: "this" | |
| 6584 | - ThreadLocal thread_local; // json: "thread_local" | |
| 6585 | - Throw throw; // json: "throw" | |
| 6586 | - Throws throws; // json: "throws" | |
| 6587 | - TimeOnly time_only; // json: "TimeOnly" | |
| 6588 | - TimeOnlyConverter time_only_converter; // json: "TimeOnlyConverter" | |
| 6589 | - TimeZone time_zone; // json: "TimeZone" | |
| 6590 | - ToJson to_json; // json: "to_json" | |
| 6591 | - ToString to_string; // json: "toString" | |
| 6592 | - TopLevelClass top_level; // json: "top_level" | |
| 6593 | - Transient transient; // json: "transient" | |
| 6594 | - True true; // json: "True" | |
| 6595 | - Try try; // json: "try" | |
| 6596 | - Type type; // json: "Type" | |
| 6597 | - Typealias typealias; // json: "typealias" | |
| 6598 | - Typeid typeid; // json: "typeid" | |
| 6599 | - Typename typename; // json: "typename" | |
| 6600 | - Uint uint; // json: "uint" | |
| 6601 | - Ulong ulong; // json: "ulong" | |
| 6602 | - Unchecked unchecked; // json: "unchecked" | |
| 6603 | - Undefined undefined; // json: "undefined" | |
| 6604 | - Union union; // json: "union" | |
| 6605 | - Unowned unowned; // json: "unowned" | |
| 6606 | - Unsafe unsafe; // json: "unsafe" | |
| 6607 | - Unsigned unsigned; // json: "unsigned" | |
| 6608 | - Ushort ushort; // json: "ushort" | |
| 6609 | - Using using; // json: "using" | |
| 6610 | - Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader" | |
| 6611 | - Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter" | |
| 6612 | - Uuid uuid; // json: "UUID" | |
| 6613 | - Var var; // json: "var" | |
| 6614 | - Virtual virtual; // json: "virtual" | |
| 6550 | + int dummy; // json: "dummy" | |
| 6551 | + SelfClass obj5_self; // json: "self" | |
| 6552 | + Static obj5_static; // json: "static" | |
| 6553 | + String obj5_string; // json: "string" | |
| 6554 | + Switch obj5_switch; // json: "switch" | |
| 6555 | + TrueClass obj5_true; // json: "true" | |
| 6556 | + TypeClass obj5_type; // json: "type" | |
| 6557 | + Typedef obj5_typedef; // json: "typedef" | |
| 6558 | + Typeof obj5_typeof; // json: "typeof" | |
| 6559 | + Sealed sealed; // json: "sealed" | |
| 6560 | + Sel sel; // json: "SEL" | |
| 6561 | + Select select; // json: "select" | |
| 6562 | + Self self; // json: "Self" | |
| 6563 | + Sendable sendable; // json: "Sendable" | |
| 6564 | + SerializationFeature serialization_feature; // json: "SerializationFeature" | |
| 6565 | + Serialize serialize; // json: "serialize" | |
| 6566 | + SerializerProvider serializer_provider; // json: "SerializerProvider" | |
| 6567 | + Set set; // json: "set" | |
| 6568 | + Short short; // json: "short" | |
| 6569 | + Signed signed; // json: "signed" | |
| 6570 | + SimpleModule simple_module; // json: "SimpleModule" | |
| 6571 | + Sizeof sizeof; // json: "sizeof" | |
| 6572 | + Stackalloc stackalloc; // json: "stackalloc" | |
| 6573 | + StandardsClass standards; // json: "Standards" | |
| 6574 | + StaticAssert static_assert; // json: "static_assert" | |
| 6575 | + StaticCast static_cast; // json: "static_cast" | |
| 6576 | + StdDeserializer std_deserializer; // json: "StdDeserializer" | |
| 6577 | + StdSerializer std_serializer; // json: "StdSerializer" | |
| 6578 | + Strictfp strictfp; // json: "strictfp" | |
| 6579 | + Struct struct; // json: "struct" | |
| 6580 | + Subscript subscript; // json: "subscript" | |
| 6581 | + Super super; // json: "super" | |
| 6582 | + Symbol symbol; // json: "symbol" | |
| 6583 | + Synchronized synchronized; // json: "synchronized" | |
| 6584 | + System system; // json: "system" | |
| 6585 | + Template template; // json: "template" | |
| 6586 | + Then then; // json: "then" | |
| 6587 | + This this; // json: "this" | |
| 6588 | + ThreadLocal thread_local; // json: "thread_local" | |
| 6589 | + Throw throw; // json: "throw" | |
| 6590 | + Throws throws; // json: "throws" | |
| 6591 | + TimeOnly time_only; // json: "TimeOnly" | |
| 6592 | + TimeOnlyConverter time_only_converter; // json: "TimeOnlyConverter" | |
| 6593 | + TimeZone time_zone; // json: "TimeZone" | |
| 6594 | + ToJson to_json; // json: "to_json" | |
| 6595 | + ToString to_string; // json: "toString" | |
| 6596 | + TopLevelClass top_level; // json: "top_level" | |
| 6597 | + Transient transient; // json: "transient" | |
| 6598 | + True true; // json: "True" | |
| 6599 | + Try try; // json: "try" | |
| 6600 | + Type type; // json: "Type" | |
| 6601 | + Typealias typealias; // json: "typealias" | |
| 6602 | + Typeid typeid; // json: "typeid" | |
| 6603 | + Typename typename; // json: "typename" | |
| 6604 | + Uint uint; // json: "uint" | |
| 6605 | + Ulong ulong; // json: "ulong" | |
| 6606 | + Unchecked unchecked; // json: "unchecked" | |
| 6607 | + Undefined undefined; // json: "undefined" | |
| 6608 | + Union union; // json: "union" | |
| 6609 | + Unowned unowned; // json: "unowned" | |
| 6610 | + Unsafe unsafe; // json: "unsafe" | |
| 6611 | + Unsigned unsigned; // json: "unsigned" | |
| 6612 | + Ushort ushort; // json: "ushort" | |
| 6613 | + Using using; // json: "using" | |
| 6614 | + Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader" | |
| 6615 | 6615 | |
| 6616 | 6616 | string encode_json() { |
| 6617 | 6617 | mapping(string:mixed) json = ([ |
| @@ -6624,8 +6624,12 @@ class Obj5 { | ||
| 6624 | 6624 | "type" : obj5_type, |
| 6625 | 6625 | "typedef" : obj5_typedef, |
| 6626 | 6626 | "typeof" : obj5_typeof, |
| 6627 | + "sealed" : sealed, | |
| 6628 | + "SEL" : sel, | |
| 6629 | + "select" : select, | |
| 6627 | 6630 | "Self" : self, |
| 6628 | 6631 | "Sendable" : sendable, |
| 6632 | + "SerializationFeature" : serialization_feature, | |
| 6629 | 6633 | "serialize" : serialize, |
| 6630 | 6634 | "SerializerProvider" : serializer_provider, |
| 6631 | 6635 | "set" : set, |
| @@ -6676,10 +6680,6 @@ class Obj5 { | ||
| 6676 | 6680 | "ushort" : ushort, |
| 6677 | 6681 | "using" : using, |
| 6678 | 6682 | "Utf8JsonReader" : utf8_json_reader, |
| 6679 | - "Utf8JsonWriter" : utf8_json_writer, | |
| 6680 | - "UUID" : uuid, | |
| 6681 | - "var" : var, | |
| 6682 | - "virtual" : virtual, | |
| 6683 | 6683 | ]); |
| 6684 | 6684 | |
| 6685 | 6685 | return Standards.JSON.encode(json); |
| @@ -6707,10 +6707,18 @@ Obj5 Obj5_from_JSON(mixed json) { | ||
| 6707 | 6707 | retval.obj5_typedef = json["typedef"]; |
| 6708 | 6708 | if (!mappingp(json["typeof"])) error("Expected object"); |
| 6709 | 6709 | retval.obj5_typeof = json["typeof"]; |
| 6710 | + if (!mappingp(json["sealed"])) error("Expected object"); | |
| 6711 | + retval.sealed = json["sealed"]; | |
| 6712 | + if (!mappingp(json["SEL"])) error("Expected object"); | |
| 6713 | + retval.sel = json["SEL"]; | |
| 6714 | + if (!mappingp(json["select"])) error("Expected object"); | |
| 6715 | + retval.select = json["select"]; | |
| 6710 | 6716 | if (!mappingp(json["Self"])) error("Expected object"); |
| 6711 | 6717 | retval.self = json["Self"]; |
| 6712 | 6718 | if (!mappingp(json["Sendable"])) error("Expected object"); |
| 6713 | 6719 | retval.sendable = json["Sendable"]; |
| 6720 | + if (!mappingp(json["SerializationFeature"])) error("Expected object"); | |
| 6721 | + retval.serialization_feature = json["SerializationFeature"]; | |
| 6714 | 6722 | if (!mappingp(json["serialize"])) error("Expected object"); |
| 6715 | 6723 | retval.serialize = json["serialize"]; |
| 6716 | 6724 | if (!mappingp(json["SerializerProvider"])) error("Expected object"); |
| @@ -6811,14 +6819,6 @@ Obj5 Obj5_from_JSON(mixed json) { | ||
| 6811 | 6819 | retval.using = json["using"]; |
| 6812 | 6820 | if (!mappingp(json["Utf8JsonReader"])) error("Expected object"); |
| 6813 | 6821 | retval.utf8_json_reader = json["Utf8JsonReader"]; |
| 6814 | - if (!mappingp(json["Utf8JsonWriter"])) error("Expected object"); | |
| 6815 | - retval.utf8_json_writer = json["Utf8JsonWriter"]; | |
| 6816 | - if (!mappingp(json["UUID"])) error("Expected object"); | |
| 6817 | - retval.uuid = json["UUID"]; | |
| 6818 | - if (!mappingp(json["var"])) error("Expected object"); | |
| 6819 | - retval.var = json["var"]; | |
| 6820 | - if (!mappingp(json["virtual"])) error("Expected object"); | |
| 6821 | - retval.virtual = json["virtual"]; | |
| 6822 | 6822 | |
| 6823 | 6823 | return retval; |
| 6824 | 6824 | } |
| @@ -6991,6 +6991,69 @@ Typeof Typeof_from_JSON(mixed json) { | ||
| 6991 | 6991 | return retval; |
| 6992 | 6992 | } |
| 6993 | 6993 | |
| 6994 | +class Sealed { | |
| 6995 | + int sealed; // json: "sealed" | |
| 6996 | + | |
| 6997 | + string encode_json() { | |
| 6998 | + mapping(string:mixed) json = ([ | |
| 6999 | + "sealed" : sealed, | |
| 7000 | + ]); | |
| 7001 | + | |
| 7002 | + return Standards.JSON.encode(json); | |
| 7003 | + } | |
| 7004 | +} | |
| 7005 | + | |
| 7006 | +Sealed Sealed_from_JSON(mixed json) { | |
| 7007 | + Sealed retval = Sealed(); | |
| 7008 | + | |
| 7009 | + if (!intp(json["sealed"])) error("Expected integer"); | |
| 7010 | + retval.sealed = json["sealed"]; | |
| 7011 | + | |
| 7012 | + return retval; | |
| 7013 | +} | |
| 7014 | + | |
| 7015 | +class Sel { | |
| 7016 | + int sel; // json: "SEL" | |
| 7017 | + | |
| 7018 | + string encode_json() { | |
| 7019 | + mapping(string:mixed) json = ([ | |
| 7020 | + "SEL" : sel, | |
| 7021 | + ]); | |
| 7022 | + | |
| 7023 | + return Standards.JSON.encode(json); | |
| 7024 | + } | |
| 7025 | +} | |
| 7026 | + | |
| 7027 | +Sel Sel_from_JSON(mixed json) { | |
| 7028 | + Sel retval = Sel(); | |
| 7029 | + | |
| 7030 | + if (!intp(json["SEL"])) error("Expected integer"); | |
| 7031 | + retval.sel = json["SEL"]; | |
| 7032 | + | |
| 7033 | + return retval; | |
| 7034 | +} | |
| 7035 | + | |
| 7036 | +class Select { | |
| 7037 | + int select; // json: "select" | |
| 7038 | + | |
| 7039 | + string encode_json() { | |
| 7040 | + mapping(string:mixed) json = ([ | |
| 7041 | + "select" : select, | |
| 7042 | + ]); | |
| 7043 | + | |
| 7044 | + return Standards.JSON.encode(json); | |
| 7045 | + } | |
| 7046 | +} | |
| 7047 | + | |
| 7048 | +Select Select_from_JSON(mixed json) { | |
| 7049 | + Select retval = Select(); | |
| 7050 | + | |
| 7051 | + if (!intp(json["select"])) error("Expected integer"); | |
| 7052 | + retval.select = json["select"]; | |
| 7053 | + | |
| 7054 | + return retval; | |
| 7055 | +} | |
| 7056 | + | |
| 6994 | 7057 | class Self { |
| 6995 | 7058 | int self; // json: "Self" |
| 6996 | 7059 | |
| @@ -7033,6 +7096,27 @@ Sendable Sendable_from_JSON(mixed json) { | ||
| 7033 | 7096 | return retval; |
| 7034 | 7097 | } |
| 7035 | 7098 | |
| 7099 | +class SerializationFeature { | |
| 7100 | + int serialization_feature; // json: "SerializationFeature" | |
| 7101 | + | |
| 7102 | + string encode_json() { | |
| 7103 | + mapping(string:mixed) json = ([ | |
| 7104 | + "SerializationFeature" : serialization_feature, | |
| 7105 | + ]); | |
| 7106 | + | |
| 7107 | + return Standards.JSON.encode(json); | |
| 7108 | + } | |
| 7109 | +} | |
| 7110 | + | |
| 7111 | +SerializationFeature SerializationFeature_from_JSON(mixed json) { | |
| 7112 | + SerializationFeature retval = SerializationFeature(); | |
| 7113 | + | |
| 7114 | + if (!intp(json["SerializationFeature"])) error("Expected integer"); | |
| 7115 | + retval.serialization_feature = json["SerializationFeature"]; | |
| 7116 | + | |
| 7117 | + return retval; | |
| 7118 | +} | |
| 7119 | + | |
| 7036 | 7120 | class Serialize { |
| 7037 | 7121 | int serialize; // json: "serialize" |
| 7038 | 7122 | |
| @@ -8083,197 +8167,213 @@ Utf8JsonReader Utf8JsonReader_from_JSON(mixed json) { | ||
| 8083 | 8167 | return retval; |
| 8084 | 8168 | } |
| 8085 | 8169 | |
| 8086 | -class Utf8JsonWriter { | |
| 8087 | - int utf8_json_writer; // json: "Utf8JsonWriter" | |
| 8170 | +class Obj6 { | |
| 8171 | + int dummy; // json: "dummy" | |
| 8172 | + Void obj6_void; // json: "void" | |
| 8173 | + While obj6_while; // json: "while" | |
| 8174 | + Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter" | |
| 8175 | + Uuid uuid; // json: "UUID" | |
| 8176 | + Var var; // json: "var" | |
| 8177 | + Virtual virtual; // json: "virtual" | |
| 8178 | + Volatile volatile; // json: "volatile" | |
| 8179 | + WcharT wchar_t; // json: "wchar_t" | |
| 8180 | + Weak weak; // json: "weak" | |
| 8181 | + Where where; // json: "where" | |
| 8182 | + WillSet will_set; // json: "willSet" | |
| 8183 | + With with; // json: "with" | |
| 8184 | + Xor xor; // json: "xor" | |
| 8185 | + XorEq xor_eq; // json: "xor_eq" | |
| 8186 | + Yes yes; // json: "YES" | |
| 8187 | + Yield yield; // json: "yield" | |
| 8088 | 8188 | |
| 8089 | 8189 | string encode_json() { |
| 8090 | 8190 | mapping(string:mixed) json = ([ |
| 8191 | + "dummy" : dummy, | |
| 8192 | + "void" : obj6_void, | |
| 8193 | + "while" : obj6_while, | |
| 8091 | 8194 | "Utf8JsonWriter" : utf8_json_writer, |
| 8195 | + "UUID" : uuid, | |
| 8196 | + "var" : var, | |
| 8197 | + "virtual" : virtual, | |
| 8198 | + "volatile" : volatile, | |
| 8199 | + "wchar_t" : wchar_t, | |
| 8200 | + "weak" : weak, | |
| 8201 | + "where" : where, | |
| 8202 | + "willSet" : will_set, | |
| 8203 | + "with" : with, | |
| 8204 | + "xor" : xor, | |
| 8205 | + "xor_eq" : xor_eq, | |
| 8206 | + "YES" : yes, | |
| 8207 | + "yield" : yield, | |
| 8092 | 8208 | ]); |
| 8093 | 8209 | |
| 8094 | 8210 | return Standards.JSON.encode(json); |
| 8095 | 8211 | } |
| 8096 | 8212 | } |
| 8097 | 8213 | |
| 8098 | -Utf8JsonWriter Utf8JsonWriter_from_JSON(mixed json) { | |
| 8099 | - Utf8JsonWriter retval = Utf8JsonWriter(); | |
| 8214 | +Obj6 Obj6_from_JSON(mixed json) { | |
| 8215 | + Obj6 retval = Obj6(); | |
| 8100 | 8216 | |
| 8101 | - if (!intp(json["Utf8JsonWriter"])) error("Expected integer"); | |
| 8217 | + if (!intp(json["dummy"])) error("Expected integer"); | |
| 8218 | + retval.dummy = json["dummy"]; | |
| 8219 | + if (!mappingp(json["void"])) error("Expected object"); | |
| 8220 | + retval.obj6_void = json["void"]; | |
| 8221 | + if (!mappingp(json["while"])) error("Expected object"); | |
| 8222 | + retval.obj6_while = json["while"]; | |
| 8223 | + if (!mappingp(json["Utf8JsonWriter"])) error("Expected object"); | |
| 8102 | 8224 | retval.utf8_json_writer = json["Utf8JsonWriter"]; |
| 8225 | + if (!mappingp(json["UUID"])) error("Expected object"); | |
| 8226 | + retval.uuid = json["UUID"]; | |
| 8227 | + if (!mappingp(json["var"])) error("Expected object"); | |
| 8228 | + retval.var = json["var"]; | |
| 8229 | + if (!mappingp(json["virtual"])) error("Expected object"); | |
| 8230 | + retval.virtual = json["virtual"]; | |
| 8231 | + if (!mappingp(json["volatile"])) error("Expected object"); | |
| 8232 | + retval.volatile = json["volatile"]; | |
| 8233 | + if (!mappingp(json["wchar_t"])) error("Expected object"); | |
| 8234 | + retval.wchar_t = json["wchar_t"]; | |
| 8235 | + if (!mappingp(json["weak"])) error("Expected object"); | |
| 8236 | + retval.weak = json["weak"]; | |
| 8237 | + if (!mappingp(json["where"])) error("Expected object"); | |
| 8238 | + retval.where = json["where"]; | |
| 8239 | + if (!mappingp(json["willSet"])) error("Expected object"); | |
| 8240 | + retval.will_set = json["willSet"]; | |
| 8241 | + if (!mappingp(json["with"])) error("Expected object"); | |
| 8242 | + retval.with = json["with"]; | |
| 8243 | + if (!mappingp(json["xor"])) error("Expected object"); | |
| 8244 | + retval.xor = json["xor"]; | |
| 8245 | + if (!mappingp(json["xor_eq"])) error("Expected object"); | |
| 8246 | + retval.xor_eq = json["xor_eq"]; | |
| 8247 | + if (!mappingp(json["YES"])) error("Expected object"); | |
| 8248 | + retval.yes = json["YES"]; | |
| 8249 | + if (!mappingp(json["yield"])) error("Expected object"); | |
| 8250 | + retval.yield = json["yield"]; | |
| 8103 | 8251 | |
| 8104 | 8252 | return retval; |
| 8105 | 8253 | } |
| 8106 | 8254 | |
| 8107 | -class Uuid { | |
| 8108 | - int uuid; // json: "UUID" | |
| 8255 | +class Void { | |
| 8256 | + int void_void; // json: "void" | |
| 8109 | 8257 | |
| 8110 | 8258 | string encode_json() { |
| 8111 | 8259 | mapping(string:mixed) json = ([ |
| 8112 | - "UUID" : uuid, | |
| 8260 | + "void" : void_void, | |
| 8113 | 8261 | ]); |
| 8114 | 8262 | |
| 8115 | 8263 | return Standards.JSON.encode(json); |
| 8116 | 8264 | } |
| 8117 | 8265 | } |
| 8118 | 8266 | |
| 8119 | -Uuid Uuid_from_JSON(mixed json) { | |
| 8120 | - Uuid retval = Uuid(); | |
| 8267 | +Void Void_from_JSON(mixed json) { | |
| 8268 | + Void retval = Void(); | |
| 8121 | 8269 | |
| 8122 | - if (!intp(json["UUID"])) error("Expected integer"); | |
| 8123 | - retval.uuid = json["UUID"]; | |
| 8270 | + if (!intp(json["void"])) error("Expected integer"); | |
| 8271 | + retval.void_void = json["void"]; | |
| 8124 | 8272 | |
| 8125 | 8273 | return retval; |
| 8126 | 8274 | } |
| 8127 | 8275 | |
| 8128 | -class Var { | |
| 8129 | - int var; // json: "var" | |
| 8276 | +class While { | |
| 8277 | + int while_while; // json: "while" | |
| 8130 | 8278 | |
| 8131 | 8279 | string encode_json() { |
| 8132 | 8280 | mapping(string:mixed) json = ([ |
| 8133 | - "var" : var, | |
| 8281 | + "while" : while_while, | |
| 8134 | 8282 | ]); |
| 8135 | 8283 | |
| 8136 | 8284 | return Standards.JSON.encode(json); |
| 8137 | 8285 | } |
| 8138 | 8286 | } |
| 8139 | 8287 | |
| 8140 | -Var Var_from_JSON(mixed json) { | |
| 8141 | - Var retval = Var(); | |
| 8288 | +While While_from_JSON(mixed json) { | |
| 8289 | + While retval = While(); | |
| 8142 | 8290 | |
| 8143 | - if (!intp(json["var"])) error("Expected integer"); | |
| 8144 | - retval.var = json["var"]; | |
| 8291 | + if (!intp(json["while"])) error("Expected integer"); | |
| 8292 | + retval.while_while = json["while"]; | |
| 8145 | 8293 | |
| 8146 | 8294 | return retval; |
| 8147 | 8295 | } |
| 8148 | 8296 | |
| 8149 | -class Virtual { | |
| 8150 | - int virtual; // json: "virtual" | |
| 8297 | +class Utf8JsonWriter { | |
| 8298 | + int utf8_json_writer; // json: "Utf8JsonWriter" | |
| 8151 | 8299 | |
| 8152 | 8300 | string encode_json() { |
| 8153 | 8301 | mapping(string:mixed) json = ([ |
| 8154 | - "virtual" : virtual, | |
| 8302 | + "Utf8JsonWriter" : utf8_json_writer, | |
| 8155 | 8303 | ]); |
| 8156 | 8304 | |
| 8157 | 8305 | return Standards.JSON.encode(json); |
| 8158 | 8306 | } |
| 8159 | 8307 | } |
| 8160 | 8308 | |
| 8161 | -Virtual Virtual_from_JSON(mixed json) { | |
| 8162 | - Virtual retval = Virtual(); | |
| 8309 | +Utf8JsonWriter Utf8JsonWriter_from_JSON(mixed json) { | |
| 8310 | + Utf8JsonWriter retval = Utf8JsonWriter(); | |
| 8163 | 8311 | |
| 8164 | - if (!intp(json["virtual"])) error("Expected integer"); | |
| 8165 | - retval.virtual = json["virtual"]; | |
| 8312 | + if (!intp(json["Utf8JsonWriter"])) error("Expected integer"); | |
| 8313 | + retval.utf8_json_writer = json["Utf8JsonWriter"]; | |
| 8166 | 8314 | |
| 8167 | 8315 | return retval; |
| 8168 | 8316 | } |
| 8169 | 8317 | |
| 8170 | -class Obj6 { | |
| 8171 | - int dummy; // json: "dummy" | |
| 8172 | - Void obj6_void; // json: "void" | |
| 8173 | - While obj6_while; // json: "while" | |
| 8174 | - Volatile volatile; // json: "volatile" | |
| 8175 | - WcharT wchar_t; // json: "wchar_t" | |
| 8176 | - Weak weak; // json: "weak" | |
| 8177 | - Where where; // json: "where" | |
| 8178 | - WillSet will_set; // json: "willSet" | |
| 8179 | - With with; // json: "with" | |
| 8180 | - Xor xor; // json: "xor" | |
| 8181 | - XorEq xor_eq; // json: "xor_eq" | |
| 8182 | - Yes yes; // json: "YES" | |
| 8183 | - Yield yield; // json: "yield" | |
| 8318 | +class Uuid { | |
| 8319 | + int uuid; // json: "UUID" | |
| 8184 | 8320 | |
| 8185 | 8321 | string encode_json() { |
| 8186 | 8322 | mapping(string:mixed) json = ([ |
| 8187 | - "dummy" : dummy, | |
| 8188 | - "void" : obj6_void, | |
| 8189 | - "while" : obj6_while, | |
| 8190 | - "volatile" : volatile, | |
| 8191 | - "wchar_t" : wchar_t, | |
| 8192 | - "weak" : weak, | |
| 8193 | - "where" : where, | |
| 8194 | - "willSet" : will_set, | |
| 8195 | - "with" : with, | |
| 8196 | - "xor" : xor, | |
| 8197 | - "xor_eq" : xor_eq, | |
| 8198 | - "YES" : yes, | |
| 8199 | - "yield" : yield, | |
| 8323 | + "UUID" : uuid, | |
| 8200 | 8324 | ]); |
| 8201 | 8325 | |
| 8202 | 8326 | return Standards.JSON.encode(json); |
| 8203 | 8327 | } |
| 8204 | 8328 | } |
| 8205 | 8329 | |
| 8206 | -Obj6 Obj6_from_JSON(mixed json) { | |
| 8207 | - Obj6 retval = Obj6(); | |
| 8330 | +Uuid Uuid_from_JSON(mixed json) { | |
| 8331 | + Uuid retval = Uuid(); | |
| 8208 | 8332 | |
| 8209 | - if (!intp(json["dummy"])) error("Expected integer"); | |
| 8210 | - retval.dummy = json["dummy"]; | |
| 8211 | - if (!mappingp(json["void"])) error("Expected object"); | |
| 8212 | - retval.obj6_void = json["void"]; | |
| 8213 | - if (!mappingp(json["while"])) error("Expected object"); | |
| 8214 | - retval.obj6_while = json["while"]; | |
| 8215 | - if (!mappingp(json["volatile"])) error("Expected object"); | |
| 8216 | - retval.volatile = json["volatile"]; | |
| 8217 | - if (!mappingp(json["wchar_t"])) error("Expected object"); | |
| 8218 | - retval.wchar_t = json["wchar_t"]; | |
| 8219 | - if (!mappingp(json["weak"])) error("Expected object"); | |
| 8220 | - retval.weak = json["weak"]; | |
| 8221 | - if (!mappingp(json["where"])) error("Expected object"); | |
| 8222 | - retval.where = json["where"]; | |
| 8223 | - if (!mappingp(json["willSet"])) error("Expected object"); | |
| 8224 | - retval.will_set = json["willSet"]; | |
| 8225 | - if (!mappingp(json["with"])) error("Expected object"); | |
| 8226 | - retval.with = json["with"]; | |
| 8227 | - if (!mappingp(json["xor"])) error("Expected object"); | |
| 8228 | - retval.xor = json["xor"]; | |
| 8229 | - if (!mappingp(json["xor_eq"])) error("Expected object"); | |
| 8230 | - retval.xor_eq = json["xor_eq"]; | |
| 8231 | - if (!mappingp(json["YES"])) error("Expected object"); | |
| 8232 | - retval.yes = json["YES"]; | |
| 8233 | - if (!mappingp(json["yield"])) error("Expected object"); | |
| 8234 | - retval.yield = json["yield"]; | |
| 8333 | + if (!intp(json["UUID"])) error("Expected integer"); | |
| 8334 | + retval.uuid = json["UUID"]; | |
| 8235 | 8335 | |
| 8236 | 8336 | return retval; |
| 8237 | 8337 | } |
| 8238 | 8338 | |
| 8239 | -class Void { | |
| 8240 | - int void_void; // json: "void" | |
| 8339 | +class Var { | |
| 8340 | + int var; // json: "var" | |
| 8241 | 8341 | |
| 8242 | 8342 | string encode_json() { |
| 8243 | 8343 | mapping(string:mixed) json = ([ |
| 8244 | - "void" : void_void, | |
| 8344 | + "var" : var, | |
| 8245 | 8345 | ]); |
| 8246 | 8346 | |
| 8247 | 8347 | return Standards.JSON.encode(json); |
| 8248 | 8348 | } |
| 8249 | 8349 | } |
| 8250 | 8350 | |
| 8251 | -Void Void_from_JSON(mixed json) { | |
| 8252 | - Void retval = Void(); | |
| 8351 | +Var Var_from_JSON(mixed json) { | |
| 8352 | + Var retval = Var(); | |
| 8253 | 8353 | |
| 8254 | - if (!intp(json["void"])) error("Expected integer"); | |
| 8255 | - retval.void_void = json["void"]; | |
| 8354 | + if (!intp(json["var"])) error("Expected integer"); | |
| 8355 | + retval.var = json["var"]; | |
| 8256 | 8356 | |
| 8257 | 8357 | return retval; |
| 8258 | 8358 | } |
| 8259 | 8359 | |
| 8260 | -class While { | |
| 8261 | - int while_while; // json: "while" | |
| 8360 | +class Virtual { | |
| 8361 | + int virtual; // json: "virtual" | |
| 8262 | 8362 | |
| 8263 | 8363 | string encode_json() { |
| 8264 | 8364 | mapping(string:mixed) json = ([ |
| 8265 | - "while" : while_while, | |
| 8365 | + "virtual" : virtual, | |
| 8266 | 8366 | ]); |
| 8267 | 8367 | |
| 8268 | 8368 | return Standards.JSON.encode(json); |
| 8269 | 8369 | } |
| 8270 | 8370 | } |
| 8271 | 8371 | |
| 8272 | -While While_from_JSON(mixed json) { | |
| 8273 | - While retval = While(); | |
| 8372 | +Virtual Virtual_from_JSON(mixed json) { | |
| 8373 | + Virtual retval = Virtual(); | |
| 8274 | 8374 | |
| 8275 | - if (!intp(json["while"])) error("Expected integer"); | |
| 8276 | - retval.while_while = json["while"]; | |
| 8375 | + if (!intp(json["virtual"])) error("Expected integer"); | |
| 8376 | + retval.virtual = json["virtual"]; | |
| 8277 | 8377 | |
| 8278 | 8378 | return retval; |
| 8279 | 8379 | } |
Mpythondefault / quicktype.py+252 −176
| @@ -1559,6 +1559,22 @@ class Delete: | ||
| 1559 | 1559 | return result |
| 1560 | 1560 | |
| 1561 | 1561 | |
| 1562 | +@dataclass | |
| 1563 | +class DeserializationFeature: | |
| 1564 | + deserialization_feature: int | |
| 1565 | + | |
| 1566 | + @staticmethod | |
| 1567 | + def from_dict(obj: Any) -> 'DeserializationFeature': | |
| 1568 | + assert isinstance(obj, dict) | |
| 1569 | + deserialization_feature = from_int(obj["DeserializationFeature"]) | |
| 1570 | + return DeserializationFeature(deserialization_feature) | |
| 1571 | + | |
| 1572 | + def to_dict(self) -> dict: | |
| 1573 | + result: dict = {} | |
| 1574 | + result["DeserializationFeature"] = from_int(self.deserialization_feature) | |
| 1575 | + return result | |
| 1576 | + | |
| 1577 | + | |
| 1562 | 1578 | @dataclass |
| 1563 | 1579 | class Dictionary: |
| 1564 | 1580 | dictionary: int |
| @@ -2092,22 +2108,6 @@ class Go: | ||
| 2092 | 2108 | return result |
| 2093 | 2109 | |
| 2094 | 2110 | |
| 2095 | -@dataclass | |
| 2096 | -class Goto: | |
| 2097 | - goto: int | |
| 2098 | - | |
| 2099 | - @staticmethod | |
| 2100 | - def from_dict(obj: Any) -> 'Goto': | |
| 2101 | - assert isinstance(obj, dict) | |
| 2102 | - goto = from_int(obj["goto"]) | |
| 2103 | - return Goto(goto) | |
| 2104 | - | |
| 2105 | - def to_dict(self) -> dict: | |
| 2106 | - result: dict = {} | |
| 2107 | - result["goto"] = from_int(self.goto) | |
| 2108 | - return result | |
| 2109 | - | |
| 2110 | - | |
| 2111 | 2111 | @dataclass |
| 2112 | 2112 | class Def: |
| 2113 | 2113 | def_def: int |
| @@ -2309,6 +2309,7 @@ class Obj2: | ||
| 2309 | 2309 | date_time_styles: DateTimeStyles |
| 2310 | 2310 | decoder: Decoder |
| 2311 | 2311 | decoding_error: DecodingError |
| 2312 | + deserialization_feature: DeserializationFeature | |
| 2312 | 2313 | encoder: Encoder |
| 2313 | 2314 | enum_values: EnumValues |
| 2314 | 2315 | equatable: Equatable |
| @@ -2366,7 +2367,6 @@ class Obj2: | ||
| 2366 | 2367 | get: Get |
| 2367 | 2368 | obj2_global: Global |
| 2368 | 2369 | go: Go |
| 2369 | - goto: Goto | |
| 2370 | 2370 | |
| 2371 | 2371 | @staticmethod |
| 2372 | 2372 | def from_dict(obj: Any) -> 'Obj2': |
| @@ -2378,6 +2378,7 @@ class Obj2: | ||
| 2378 | 2378 | date_time_styles = DateTimeStyles.from_dict(obj["DateTimeStyles"]) |
| 2379 | 2379 | decoder = Decoder.from_dict(obj["Decoder"]) |
| 2380 | 2380 | decoding_error = DecodingError.from_dict(obj["DecodingError"]) |
| 2381 | + deserialization_feature = DeserializationFeature.from_dict(obj["DeserializationFeature"]) | |
| 2381 | 2382 | encoder = Encoder.from_dict(obj["Encoder"]) |
| 2382 | 2383 | enum_values = EnumValues.from_dict(obj["EnumValues"]) |
| 2383 | 2384 | equatable = Equatable.from_dict(obj["Equatable"]) |
| @@ -2435,8 +2436,7 @@ class Obj2: | ||
| 2435 | 2436 | get = Get.from_dict(obj["get"]) |
| 2436 | 2437 | obj2_global = Global.from_dict(obj["global"]) |
| 2437 | 2438 | go = Go.from_dict(obj["go"]) |
| 2438 | - goto = Goto.from_dict(obj["goto"]) | |
| 2439 | - return Obj2(date_formatter, date_only, date_only_converter, date_time, date_time_styles, decoder, decoding_error, encoder, enum_values, equatable, false, format_exception, date_parse_handling, debugger, decimal, declare, decltype, decode_string, obj2_def, default, defer, deinit, obj2_del, delegate, delete, obj2_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, obj2_elif, obj2_else, encode_quick_type, enum, equality_contract, event, obj2_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, obj2_false, fileprivate, final, obj2_finally, fixed, obj2_float, obj2_for, foreach, friend, obj2_from, from_json, func, function, get, obj2_global, go, goto) | |
| 2439 | + return Obj2(date_formatter, date_only, date_only_converter, date_time, date_time_styles, decoder, decoding_error, deserialization_feature, encoder, enum_values, equatable, false, format_exception, date_parse_handling, debugger, decimal, declare, decltype, decode_string, obj2_def, default, defer, deinit, obj2_del, delegate, delete, obj2_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, obj2_elif, obj2_else, encode_quick_type, enum, equality_contract, event, obj2_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, obj2_false, fileprivate, final, obj2_finally, fixed, obj2_float, obj2_for, foreach, friend, obj2_from, from_json, func, function, get, obj2_global, go) | |
| 2440 | 2440 | |
| 2441 | 2441 | def to_dict(self) -> dict: |
| 2442 | 2442 | result: dict = {} |
| @@ -2447,6 +2447,7 @@ class Obj2: | ||
| 2447 | 2447 | result["DateTimeStyles"] = to_class(DateTimeStyles, self.date_time_styles) |
| 2448 | 2448 | result["Decoder"] = to_class(Decoder, self.decoder) |
| 2449 | 2449 | result["DecodingError"] = to_class(DecodingError, self.decoding_error) |
| 2450 | + result["DeserializationFeature"] = to_class(DeserializationFeature, self.deserialization_feature) | |
| 2450 | 2451 | result["Encoder"] = to_class(Encoder, self.encoder) |
| 2451 | 2452 | result["EnumValues"] = to_class(EnumValues, self.enum_values) |
| 2452 | 2453 | result["Equatable"] = to_class(Equatable, self.equatable) |
| @@ -2504,7 +2505,22 @@ class Obj2: | ||
| 2504 | 2505 | result["get"] = to_class(Get, self.get) |
| 2505 | 2506 | result["global"] = to_class(Global, self.obj2_global) |
| 2506 | 2507 | result["go"] = to_class(Go, self.go) |
| 2507 | - result["goto"] = to_class(Goto, self.goto) | |
| 2508 | + return result | |
| 2509 | + | |
| 2510 | + | |
| 2511 | +@dataclass | |
| 2512 | +class Goto: | |
| 2513 | + goto: int | |
| 2514 | + | |
| 2515 | + @staticmethod | |
| 2516 | + def from_dict(obj: Any) -> 'Goto': | |
| 2517 | + assert isinstance(obj, dict) | |
| 2518 | + goto = from_int(obj["goto"]) | |
| 2519 | + return Goto(goto) | |
| 2520 | + | |
| 2521 | + def to_dict(self) -> dict: | |
| 2522 | + result: dict = {} | |
| 2523 | + result["goto"] = from_int(self.goto) | |
| 2508 | 2524 | return result |
| 2509 | 2525 | |
| 2510 | 2526 | |
| @@ -3420,22 +3436,6 @@ class No: | ||
| 3420 | 3436 | return result |
| 3421 | 3437 | |
| 3422 | 3438 | |
| 3423 | -@dataclass | |
| 3424 | -class Noexcept: | |
| 3425 | - noexcept: int | |
| 3426 | - | |
| 3427 | - @staticmethod | |
| 3428 | - def from_dict(obj: Any) -> 'Noexcept': | |
| 3429 | - assert isinstance(obj, dict) | |
| 3430 | - noexcept = from_int(obj["noexcept"]) | |
| 3431 | - return Noexcept(noexcept) | |
| 3432 | - | |
| 3433 | - def to_dict(self) -> dict: | |
| 3434 | - result: dict = {} | |
| 3435 | - result["noexcept"] = from_int(self.noexcept) | |
| 3436 | - return result | |
| 3437 | - | |
| 3438 | - | |
| 3439 | 3439 | @dataclass |
| 3440 | 3440 | class If: |
| 3441 | 3441 | if_if: int |
| @@ -3553,6 +3553,7 @@ class Obj3: | ||
| 3553 | 3553 | map_entry: MapEntry |
| 3554 | 3554 | no: No |
| 3555 | 3555 | dummy: int |
| 3556 | + goto: Goto | |
| 3556 | 3557 | guard: Guard |
| 3557 | 3558 | has_own_property: HasOwnProperty |
| 3558 | 3559 | hash_code: HashCode |
| @@ -3598,7 +3599,6 @@ class Obj3: | ||
| 3598 | 3599 | new: New |
| 3599 | 3600 | newtonsoft: Newtonsoft |
| 3600 | 3601 | nil: Nil |
| 3601 | - noexcept: Noexcept | |
| 3602 | 3602 | |
| 3603 | 3603 | @staticmethod |
| 3604 | 3604 | def from_dict(obj: Any) -> 'Obj3': |
| @@ -3622,6 +3622,7 @@ class Obj3: | ||
| 3622 | 3622 | map_entry = MapEntry.from_dict(obj["MapEntry"]) |
| 3623 | 3623 | no = No.from_dict(obj["NO"]) |
| 3624 | 3624 | dummy = from_int(obj["dummy"]) |
| 3625 | + goto = Goto.from_dict(obj["goto"]) | |
| 3625 | 3626 | guard = Guard.from_dict(obj["guard"]) |
| 3626 | 3627 | has_own_property = HasOwnProperty.from_dict(obj["hasOwnProperty"]) |
| 3627 | 3628 | hash_code = HashCode.from_dict(obj["hashCode"]) |
| @@ -3667,8 +3668,7 @@ class Obj3: | ||
| 3667 | 3668 | new = New.from_dict(obj["new"]) |
| 3668 | 3669 | newtonsoft = Newtonsoft.from_dict(obj["newtonsoft"]) |
| 3669 | 3670 | nil = Nil.from_dict(obj["nil"]) |
| 3670 | - noexcept = Noexcept.from_dict(obj["noexcept"]) | |
| 3671 | - return Obj3(hashable, hasher, imp, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, locale, map_entry, no, dummy, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, noexcept) | |
| 3671 | + return Obj3(hashable, hasher, imp, iso_date_time_offset_converter, json_any, json_coding_key, json_decoder, json_encoder, json_null, json_exception, json_generator, json_node, json_parser, json_reader, json_token_type, locale, map_entry, no, dummy, goto, guard, has_own_property, hash_code, id, obj3_if, implements, implicit, obj3_import, obj3_in, indirect, infix, init, inline, inout, instanceof, obj3_int, interface, internal, obj3_is, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, obj3_lambda, lazy, left, let, list, lock, long, map, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil) | |
| 3672 | 3672 | |
| 3673 | 3673 | def to_dict(self) -> dict: |
| 3674 | 3674 | result: dict = {} |
| @@ -3691,6 +3691,7 @@ class Obj3: | ||
| 3691 | 3691 | result["MapEntry"] = to_class(MapEntry, self.map_entry) |
| 3692 | 3692 | result["NO"] = to_class(No, self.no) |
| 3693 | 3693 | result["dummy"] = from_int(self.dummy) |
| 3694 | + result["goto"] = to_class(Goto, self.goto) | |
| 3694 | 3695 | result["guard"] = to_class(Guard, self.guard) |
| 3695 | 3696 | result["hasOwnProperty"] = to_class(HasOwnProperty, self.has_own_property) |
| 3696 | 3697 | result["hashCode"] = to_class(HashCode, self.hash_code) |
| @@ -3736,7 +3737,6 @@ class Obj3: | ||
| 3736 | 3737 | result["new"] = to_class(New, self.new) |
| 3737 | 3738 | result["newtonsoft"] = to_class(Newtonsoft, self.newtonsoft) |
| 3738 | 3739 | result["nil"] = to_class(Nil, self.nil) |
| 3739 | - result["noexcept"] = to_class(Noexcept, self.noexcept) | |
| 3740 | 3740 | return result |
| 3741 | 3741 | |
| 3742 | 3742 | |
| @@ -3756,6 +3756,22 @@ class NoSuchMethod: | ||
| 3756 | 3756 | return result |
| 3757 | 3757 | |
| 3758 | 3758 | |
| 3759 | +@dataclass | |
| 3760 | +class Noexcept: | |
| 3761 | + noexcept: int | |
| 3762 | + | |
| 3763 | + @staticmethod | |
| 3764 | + def from_dict(obj: Any) -> 'Noexcept': | |
| 3765 | + assert isinstance(obj, dict) | |
| 3766 | + noexcept = from_int(obj["noexcept"]) | |
| 3767 | + return Noexcept(noexcept) | |
| 3768 | + | |
| 3769 | + def to_dict(self) -> dict: | |
| 3770 | + result: dict = {} | |
| 3771 | + result["noexcept"] = from_int(self.noexcept) | |
| 3772 | + return result | |
| 3773 | + | |
| 3774 | + | |
| 3759 | 3775 | @dataclass |
| 3760 | 3776 | class Nonatomic: |
| 3761 | 3777 | nonatomic: int |
| @@ -4108,6 +4124,38 @@ class ObjectMapper: | ||
| 4108 | 4124 | return result |
| 4109 | 4125 | |
| 4110 | 4126 | |
| 4127 | +@dataclass | |
| 4128 | +class ObjectReader: | |
| 4129 | + object_reader: int | |
| 4130 | + | |
| 4131 | + @staticmethod | |
| 4132 | + def from_dict(obj: Any) -> 'ObjectReader': | |
| 4133 | + assert isinstance(obj, dict) | |
| 4134 | + object_reader = from_int(obj["ObjectReader"]) | |
| 4135 | + return ObjectReader(object_reader) | |
| 4136 | + | |
| 4137 | + def to_dict(self) -> dict: | |
| 4138 | + result: dict = {} | |
| 4139 | + result["ObjectReader"] = from_int(self.object_reader) | |
| 4140 | + return result | |
| 4141 | + | |
| 4142 | + | |
| 4143 | +@dataclass | |
| 4144 | +class ObjectWriter: | |
| 4145 | + object_writer: int | |
| 4146 | + | |
| 4147 | + @staticmethod | |
| 4148 | + def from_dict(obj: Any) -> 'ObjectWriter': | |
| 4149 | + assert isinstance(obj, dict) | |
| 4150 | + object_writer = from_int(obj["ObjectWriter"]) | |
| 4151 | + return ObjectWriter(object_writer) | |
| 4152 | + | |
| 4153 | + def to_dict(self) -> dict: | |
| 4154 | + result: dict = {} | |
| 4155 | + result["ObjectWriter"] = from_int(self.object_writer) | |
| 4156 | + return result | |
| 4157 | + | |
| 4158 | + | |
| 4111 | 4159 | @dataclass |
| 4112 | 4160 | class Of: |
| 4113 | 4161 | of: int |
| @@ -4716,54 +4764,6 @@ class Sbyte: | ||
| 4716 | 4764 | return result |
| 4717 | 4765 | |
| 4718 | 4766 | |
| 4719 | -@dataclass | |
| 4720 | -class Sealed: | |
| 4721 | - sealed: int | |
| 4722 | - | |
| 4723 | - @staticmethod | |
| 4724 | - def from_dict(obj: Any) -> 'Sealed': | |
| 4725 | - assert isinstance(obj, dict) | |
| 4726 | - sealed = from_int(obj["sealed"]) | |
| 4727 | - return Sealed(sealed) | |
| 4728 | - | |
| 4729 | - def to_dict(self) -> dict: | |
| 4730 | - result: dict = {} | |
| 4731 | - result["sealed"] = from_int(self.sealed) | |
| 4732 | - return result | |
| 4733 | - | |
| 4734 | - | |
| 4735 | -@dataclass | |
| 4736 | -class Sel: | |
| 4737 | - sel: int | |
| 4738 | - | |
| 4739 | - @staticmethod | |
| 4740 | - def from_dict(obj: Any) -> 'Sel': | |
| 4741 | - assert isinstance(obj, dict) | |
| 4742 | - sel = from_int(obj["SEL"]) | |
| 4743 | - return Sel(sel) | |
| 4744 | - | |
| 4745 | - def to_dict(self) -> dict: | |
| 4746 | - result: dict = {} | |
| 4747 | - result["SEL"] = from_int(self.sel) | |
| 4748 | - return result | |
| 4749 | - | |
| 4750 | - | |
| 4751 | -@dataclass | |
| 4752 | -class Select: | |
| 4753 | - select: int | |
| 4754 | - | |
| 4755 | - @staticmethod | |
| 4756 | - def from_dict(obj: Any) -> 'Select': | |
| 4757 | - assert isinstance(obj, dict) | |
| 4758 | - select = from_int(obj["select"]) | |
| 4759 | - return Select(select) | |
| 4760 | - | |
| 4761 | - def to_dict(self) -> dict: | |
| 4762 | - result: dict = {} | |
| 4763 | - result["select"] = from_int(self.select) | |
| 4764 | - return result | |
| 4765 | - | |
| 4766 | - | |
| 4767 | 4767 | @dataclass |
| 4768 | 4768 | class Obj4: |
| 4769 | 4769 | ns_error: NSError |
| @@ -4772,11 +4772,13 @@ class Obj4: | ||
| 4772 | 4772 | null: Null |
| 4773 | 4773 | none: NoneClass |
| 4774 | 4774 | object_mapper: ObjectMapper |
| 4775 | + object_reader: ObjectReader | |
| 4776 | + object_writer: ObjectWriter | |
| 4775 | 4777 | protocol: Protocol |
| 4776 | 4778 | reg_exp: RegExp |
| 4777 | - sel: Sel | |
| 4778 | 4779 | dummy: int |
| 4779 | 4780 | no_such_method: NoSuchMethod |
| 4781 | + noexcept: Noexcept | |
| 4780 | 4782 | nonatomic: Nonatomic |
| 4781 | 4783 | obj4_none: Obj4None |
| 4782 | 4784 | obj4_nonlocal: Nonlocal |
| @@ -4829,8 +4831,6 @@ class Obj4: | ||
| 4829 | 4831 | runtime_type: RuntimeType |
| 4830 | 4832 | s: S |
| 4831 | 4833 | sbyte: Sbyte |
| 4832 | - sealed: Sealed | |
| 4833 | - select: Select | |
| 4834 | 4834 | |
| 4835 | 4835 | @staticmethod |
| 4836 | 4836 | def from_dict(obj: Any) -> 'Obj4': |
| @@ -4841,11 +4841,13 @@ class Obj4: | ||
| 4841 | 4841 | null = Null.from_dict(obj["NULL"]) |
| 4842 | 4842 | none = NoneClass.from_dict(obj["None"]) |
| 4843 | 4843 | object_mapper = ObjectMapper.from_dict(obj["ObjectMapper"]) |
| 4844 | + object_reader = ObjectReader.from_dict(obj["ObjectReader"]) | |
| 4845 | + object_writer = ObjectWriter.from_dict(obj["ObjectWriter"]) | |
| 4844 | 4846 | protocol = Protocol.from_dict(obj["Protocol"]) |
| 4845 | 4847 | reg_exp = RegExp.from_dict(obj["RegExp"]) |
| 4846 | - sel = Sel.from_dict(obj["SEL"]) | |
| 4847 | 4848 | dummy = from_int(obj["dummy"]) |
| 4848 | 4849 | no_such_method = NoSuchMethod.from_dict(obj["noSuchMethod"]) |
| 4850 | + noexcept = Noexcept.from_dict(obj["noexcept"]) | |
| 4849 | 4851 | nonatomic = Nonatomic.from_dict(obj["nonatomic"]) |
| 4850 | 4852 | obj4_none = Obj4None.from_dict(obj["none"]) |
| 4851 | 4853 | obj4_nonlocal = Nonlocal.from_dict(obj["nonlocal"]) |
| @@ -4898,9 +4900,7 @@ class Obj4: | ||
| 4898 | 4900 | runtime_type = RuntimeType.from_dict(obj["runtimeType"]) |
| 4899 | 4901 | s = S.from_dict(obj["s"]) |
| 4900 | 4902 | sbyte = Sbyte.from_dict(obj["sbyte"]) |
| 4901 | - sealed = Sealed.from_dict(obj["sealed"]) | |
| 4902 | - select = Select.from_dict(obj["select"]) | |
| 4903 | - return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, protocol, reg_exp, sel, dummy, no_such_method, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte, sealed, select) | |
| 4903 | + return Obj4(ns_error, ns_object, ns_string, null, none, object_mapper, object_reader, object_writer, protocol, reg_exp, dummy, no_such_method, noexcept, nonatomic, obj4_none, obj4_nonlocal, nonmutating, obj4_not, not_eq, obj4_null, nullptr, number, object, of, oneway, open, operator, optional, obj4_or, or_eq, out, override, package, params, obj4_pass, port, postfix, precedence, prefix, obj4_print, print_members, printf, private, protected, obj4_protocol, public, quicktype, obj4_raise, range, readonly, ref, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, obj4_return, right, runtime_type, s, sbyte) | |
| 4904 | 4904 | |
| 4905 | 4905 | def to_dict(self) -> dict: |
| 4906 | 4906 | result: dict = {} |
| @@ -4910,11 +4910,13 @@ class Obj4: | ||
| 4910 | 4910 | result["NULL"] = to_class(Null, self.null) |
| 4911 | 4911 | result["None"] = to_class(NoneClass, self.none) |
| 4912 | 4912 | result["ObjectMapper"] = to_class(ObjectMapper, self.object_mapper) |
| 4913 | + result["ObjectReader"] = to_class(ObjectReader, self.object_reader) | |
| 4914 | + result["ObjectWriter"] = to_class(ObjectWriter, self.object_writer) | |
| 4913 | 4915 | result["Protocol"] = to_class(Protocol, self.protocol) |
| 4914 | 4916 | result["RegExp"] = to_class(RegExp, self.reg_exp) |
| 4915 | - result["SEL"] = to_class(Sel, self.sel) | |
| 4916 | 4917 | result["dummy"] = from_int(self.dummy) |
| 4917 | 4918 | result["noSuchMethod"] = to_class(NoSuchMethod, self.no_such_method) |
| 4919 | + result["noexcept"] = to_class(Noexcept, self.noexcept) | |
| 4918 | 4920 | result["nonatomic"] = to_class(Nonatomic, self.nonatomic) |
| 4919 | 4921 | result["none"] = to_class(Obj4None, self.obj4_none) |
| 4920 | 4922 | result["nonlocal"] = to_class(Nonlocal, self.obj4_nonlocal) |
| @@ -4967,8 +4969,6 @@ class Obj4: | ||
| 4967 | 4969 | result["runtimeType"] = to_class(RuntimeType, self.runtime_type) |
| 4968 | 4970 | result["s"] = to_class(S, self.s) |
| 4969 | 4971 | result["sbyte"] = to_class(Sbyte, self.sbyte) |
| 4970 | - result["sealed"] = to_class(Sealed, self.sealed) | |
| 4971 | - result["select"] = to_class(Select, self.select) | |
| 4972 | 4972 | return result |
| 4973 | 4973 | |
| 4974 | 4974 | |
| @@ -5052,6 +5052,54 @@ class SelfClass: | ||
| 5052 | 5052 | return result |
| 5053 | 5053 | |
| 5054 | 5054 | |
| 5055 | +@dataclass | |
| 5056 | +class Sealed: | |
| 5057 | + sealed: int | |
| 5058 | + | |
| 5059 | + @staticmethod | |
| 5060 | + def from_dict(obj: Any) -> 'Sealed': | |
| 5061 | + assert isinstance(obj, dict) | |
| 5062 | + sealed = from_int(obj["sealed"]) | |
| 5063 | + return Sealed(sealed) | |
| 5064 | + | |
| 5065 | + def to_dict(self) -> dict: | |
| 5066 | + result: dict = {} | |
| 5067 | + result["sealed"] = from_int(self.sealed) | |
| 5068 | + return result | |
| 5069 | + | |
| 5070 | + | |
| 5071 | +@dataclass | |
| 5072 | +class Sel: | |
| 5073 | + sel: int | |
| 5074 | + | |
| 5075 | + @staticmethod | |
| 5076 | + def from_dict(obj: Any) -> 'Sel': | |
| 5077 | + assert isinstance(obj, dict) | |
| 5078 | + sel = from_int(obj["SEL"]) | |
| 5079 | + return Sel(sel) | |
| 5080 | + | |
| 5081 | + def to_dict(self) -> dict: | |
| 5082 | + result: dict = {} | |
| 5083 | + result["SEL"] = from_int(self.sel) | |
| 5084 | + return result | |
| 5085 | + | |
| 5086 | + | |
| 5087 | +@dataclass | |
| 5088 | +class Select: | |
| 5089 | + select: int | |
| 5090 | + | |
| 5091 | + @staticmethod | |
| 5092 | + def from_dict(obj: Any) -> 'Select': | |
| 5093 | + assert isinstance(obj, dict) | |
| 5094 | + select = from_int(obj["select"]) | |
| 5095 | + return Select(select) | |
| 5096 | + | |
| 5097 | + def to_dict(self) -> dict: | |
| 5098 | + result: dict = {} | |
| 5099 | + result["select"] = from_int(self.select) | |
| 5100 | + return result | |
| 5101 | + | |
| 5102 | + | |
| 5055 | 5103 | @dataclass |
| 5056 | 5104 | class Sendable: |
| 5057 | 5105 | sendable: int |
| @@ -5068,6 +5116,22 @@ class Sendable: | ||
| 5068 | 5116 | return result |
| 5069 | 5117 | |
| 5070 | 5118 | |
| 5119 | +@dataclass | |
| 5120 | +class SerializationFeature: | |
| 5121 | + serialization_feature: int | |
| 5122 | + | |
| 5123 | + @staticmethod | |
| 5124 | + def from_dict(obj: Any) -> 'SerializationFeature': | |
| 5125 | + assert isinstance(obj, dict) | |
| 5126 | + serialization_feature = from_int(obj["SerializationFeature"]) | |
| 5127 | + return SerializationFeature(serialization_feature) | |
| 5128 | + | |
| 5129 | + def to_dict(self) -> dict: | |
| 5130 | + result: dict = {} | |
| 5131 | + result["SerializationFeature"] = from_int(self.serialization_feature) | |
| 5132 | + return result | |
| 5133 | + | |
| 5134 | + | |
| 5071 | 5135 | @dataclass |
| 5072 | 5136 | class Serialize: |
| 5073 | 5137 | serialize: int |
| @@ -5932,74 +5996,12 @@ class Utf8JSONReader: | ||
| 5932 | 5996 | return result |
| 5933 | 5997 | |
| 5934 | 5998 | |
| 5935 | -@dataclass | |
| 5936 | -class Utf8JSONWriter: | |
| 5937 | - utf8_json_writer: int | |
| 5938 | - | |
| 5939 | - @staticmethod | |
| 5940 | - def from_dict(obj: Any) -> 'Utf8JSONWriter': | |
| 5941 | - assert isinstance(obj, dict) | |
| 5942 | - utf8_json_writer = from_int(obj["Utf8JsonWriter"]) | |
| 5943 | - return Utf8JSONWriter(utf8_json_writer) | |
| 5944 | - | |
| 5945 | - def to_dict(self) -> dict: | |
| 5946 | - result: dict = {} | |
| 5947 | - result["Utf8JsonWriter"] = from_int(self.utf8_json_writer) | |
| 5948 | - return result | |
| 5949 | - | |
| 5950 | - | |
| 5951 | -@dataclass | |
| 5952 | -class UUIDClass: | |
| 5953 | - uuid: int | |
| 5954 | - | |
| 5955 | - @staticmethod | |
| 5956 | - def from_dict(obj: Any) -> 'UUIDClass': | |
| 5957 | - assert isinstance(obj, dict) | |
| 5958 | - uuid = from_int(obj["UUID"]) | |
| 5959 | - return UUIDClass(uuid) | |
| 5960 | - | |
| 5961 | - def to_dict(self) -> dict: | |
| 5962 | - result: dict = {} | |
| 5963 | - result["UUID"] = from_int(self.uuid) | |
| 5964 | - return result | |
| 5965 | - | |
| 5966 | - | |
| 5967 | -@dataclass | |
| 5968 | -class Var: | |
| 5969 | - var: int | |
| 5970 | - | |
| 5971 | - @staticmethod | |
| 5972 | - def from_dict(obj: Any) -> 'Var': | |
| 5973 | - assert isinstance(obj, dict) | |
| 5974 | - var = from_int(obj["var"]) | |
| 5975 | - return Var(var) | |
| 5976 | - | |
| 5977 | - def to_dict(self) -> dict: | |
| 5978 | - result: dict = {} | |
| 5979 | - result["var"] = from_int(self.var) | |
| 5980 | - return result | |
| 5981 | - | |
| 5982 | - | |
| 5983 | -@dataclass | |
| 5984 | -class Virtual: | |
| 5985 | - virtual: int | |
| 5986 | - | |
| 5987 | - @staticmethod | |
| 5988 | - def from_dict(obj: Any) -> 'Virtual': | |
| 5989 | - assert isinstance(obj, dict) | |
| 5990 | - virtual = from_int(obj["virtual"]) | |
| 5991 | - return Virtual(virtual) | |
| 5992 | - | |
| 5993 | - def to_dict(self) -> dict: | |
| 5994 | - result: dict = {} | |
| 5995 | - result["virtual"] = from_int(self.virtual) | |
| 5996 | - return result | |
| 5997 | - | |
| 5998 | - | |
| 5999 | 5999 | @dataclass |
| 6000 | 6000 | class Obj5: |
| 6001 | + sel: Sel | |
| 6001 | 6002 | obj5_self: Self |
| 6002 | 6003 | sendable: Sendable |
| 6004 | + serialization_feature: SerializationFeature | |
| 6003 | 6005 | serializer_provider: SerializerProvider |
| 6004 | 6006 | simple_module: SimpleModule |
| 6005 | 6007 | standards: Standards |
| @@ -6010,10 +6012,10 @@ class Obj5: | ||
| 6010 | 6012 | time_zone: TimeZone |
| 6011 | 6013 | true: TrueClass |
| 6012 | 6014 | type: TypeClass |
| 6013 | - uuid: UUIDClass | |
| 6014 | 6015 | utf8_json_reader: Utf8JSONReader |
| 6015 | - utf8_json_writer: Utf8JSONWriter | |
| 6016 | 6016 | dummy: int |
| 6017 | + sealed: Sealed | |
| 6018 | + select: Select | |
| 6017 | 6019 | purple_self: SelfClass |
| 6018 | 6020 | serialize: Serialize |
| 6019 | 6021 | set: Set |
| @@ -6061,14 +6063,14 @@ class Obj5: | ||
| 6061 | 6063 | unsigned: Unsigned |
| 6062 | 6064 | ushort: Ushort |
| 6063 | 6065 | using: Using |
| 6064 | - var: Var | |
| 6065 | - virtual: Virtual | |
| 6066 | 6066 | |
| 6067 | 6067 | @staticmethod |
| 6068 | 6068 | def from_dict(obj: Any) -> 'Obj5': |
| 6069 | 6069 | assert isinstance(obj, dict) |
| 6070 | + sel = Sel.from_dict(obj["SEL"]) | |
| 6070 | 6071 | obj5_self = Self.from_dict(obj["Self"]) |
| 6071 | 6072 | sendable = Sendable.from_dict(obj["Sendable"]) |
| 6073 | + serialization_feature = SerializationFeature.from_dict(obj["SerializationFeature"]) | |
| 6072 | 6074 | serializer_provider = SerializerProvider.from_dict(obj["SerializerProvider"]) |
| 6073 | 6075 | simple_module = SimpleModule.from_dict(obj["SimpleModule"]) |
| 6074 | 6076 | standards = Standards.from_dict(obj["Standards"]) |
| @@ -6079,10 +6081,10 @@ class Obj5: | ||
| 6079 | 6081 | time_zone = TimeZone.from_dict(obj["TimeZone"]) |
| 6080 | 6082 | true = TrueClass.from_dict(obj["True"]) |
| 6081 | 6083 | type = TypeClass.from_dict(obj["Type"]) |
| 6082 | - uuid = UUIDClass.from_dict(obj["UUID"]) | |
| 6083 | 6084 | utf8_json_reader = Utf8JSONReader.from_dict(obj["Utf8JsonReader"]) |
| 6084 | - utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"]) | |
| 6085 | 6085 | dummy = from_int(obj["dummy"]) |
| 6086 | + sealed = Sealed.from_dict(obj["sealed"]) | |
| 6087 | + select = Select.from_dict(obj["select"]) | |
| 6086 | 6088 | purple_self = SelfClass.from_dict(obj["self"]) |
| 6087 | 6089 | serialize = Serialize.from_dict(obj["serialize"]) |
| 6088 | 6090 | set = Set.from_dict(obj["set"]) |
| @@ -6130,14 +6132,14 @@ class Obj5: | ||
| 6130 | 6132 | unsigned = Unsigned.from_dict(obj["unsigned"]) |
| 6131 | 6133 | ushort = Ushort.from_dict(obj["ushort"]) |
| 6132 | 6134 | using = Using.from_dict(obj["using"]) |
| 6133 | - var = Var.from_dict(obj["var"]) | |
| 6134 | - virtual = Virtual.from_dict(obj["virtual"]) | |
| 6135 | - return Obj5(obj5_self, sendable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, uuid, utf8_json_reader, utf8_json_writer, dummy, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, var, virtual) | |
| 6135 | + return Obj5(sel, obj5_self, sendable, serialization_feature, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, utf8_json_reader, dummy, sealed, select, purple_self, serialize, set, short, signed, sizeof, stackalloc, static, static_assert, static_cast, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, to_string, to_json, top_level, transient, obj5_true, obj5_try, obj5_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using) | |
| 6136 | 6136 | |
| 6137 | 6137 | def to_dict(self) -> dict: |
| 6138 | 6138 | result: dict = {} |
| 6139 | + result["SEL"] = to_class(Sel, self.sel) | |
| 6139 | 6140 | result["Self"] = to_class(Self, self.obj5_self) |
| 6140 | 6141 | result["Sendable"] = to_class(Sendable, self.sendable) |
| 6142 | + result["SerializationFeature"] = to_class(SerializationFeature, self.serialization_feature) | |
| 6141 | 6143 | result["SerializerProvider"] = to_class(SerializerProvider, self.serializer_provider) |
| 6142 | 6144 | result["SimpleModule"] = to_class(SimpleModule, self.simple_module) |
| 6143 | 6145 | result["Standards"] = to_class(Standards, self.standards) |
| @@ -6148,10 +6150,10 @@ class Obj5: | ||
| 6148 | 6150 | result["TimeZone"] = to_class(TimeZone, self.time_zone) |
| 6149 | 6151 | result["True"] = to_class(TrueClass, self.true) |
| 6150 | 6152 | result["Type"] = to_class(TypeClass, self.type) |
| 6151 | - result["UUID"] = to_class(UUIDClass, self.uuid) | |
| 6152 | 6153 | result["Utf8JsonReader"] = to_class(Utf8JSONReader, self.utf8_json_reader) |
| 6153 | - result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer) | |
| 6154 | 6154 | result["dummy"] = from_int(self.dummy) |
| 6155 | + result["sealed"] = to_class(Sealed, self.sealed) | |
| 6156 | + result["select"] = to_class(Select, self.select) | |
| 6155 | 6157 | result["self"] = to_class(SelfClass, self.purple_self) |
| 6156 | 6158 | result["serialize"] = to_class(Serialize, self.serialize) |
| 6157 | 6159 | result["set"] = to_class(Set, self.set) |
| @@ -6199,8 +6201,6 @@ class Obj5: | ||
| 6199 | 6201 | result["unsigned"] = to_class(Unsigned, self.unsigned) |
| 6200 | 6202 | result["ushort"] = to_class(Ushort, self.ushort) |
| 6201 | 6203 | result["using"] = to_class(Using, self.using) |
| 6202 | - result["var"] = to_class(Var, self.var) | |
| 6203 | - result["virtual"] = to_class(Virtual, self.virtual) | |
| 6204 | 6204 | return result |
| 6205 | 6205 | |
| 6206 | 6206 | |
| @@ -6252,6 +6252,70 @@ class Yield: | ||
| 6252 | 6252 | return result |
| 6253 | 6253 | |
| 6254 | 6254 | |
| 6255 | +@dataclass | |
| 6256 | +class Utf8JSONWriter: | |
| 6257 | + utf8_json_writer: int | |
| 6258 | + | |
| 6259 | + @staticmethod | |
| 6260 | + def from_dict(obj: Any) -> 'Utf8JSONWriter': | |
| 6261 | + assert isinstance(obj, dict) | |
| 6262 | + utf8_json_writer = from_int(obj["Utf8JsonWriter"]) | |
| 6263 | + return Utf8JSONWriter(utf8_json_writer) | |
| 6264 | + | |
| 6265 | + def to_dict(self) -> dict: | |
| 6266 | + result: dict = {} | |
| 6267 | + result["Utf8JsonWriter"] = from_int(self.utf8_json_writer) | |
| 6268 | + return result | |
| 6269 | + | |
| 6270 | + | |
| 6271 | +@dataclass | |
| 6272 | +class UUIDClass: | |
| 6273 | + uuid: int | |
| 6274 | + | |
| 6275 | + @staticmethod | |
| 6276 | + def from_dict(obj: Any) -> 'UUIDClass': | |
| 6277 | + assert isinstance(obj, dict) | |
| 6278 | + uuid = from_int(obj["UUID"]) | |
| 6279 | + return UUIDClass(uuid) | |
| 6280 | + | |
| 6281 | + def to_dict(self) -> dict: | |
| 6282 | + result: dict = {} | |
| 6283 | + result["UUID"] = from_int(self.uuid) | |
| 6284 | + return result | |
| 6285 | + | |
| 6286 | + | |
| 6287 | +@dataclass | |
| 6288 | +class Var: | |
| 6289 | + var: int | |
| 6290 | + | |
| 6291 | + @staticmethod | |
| 6292 | + def from_dict(obj: Any) -> 'Var': | |
| 6293 | + assert isinstance(obj, dict) | |
| 6294 | + var = from_int(obj["var"]) | |
| 6295 | + return Var(var) | |
| 6296 | + | |
| 6297 | + def to_dict(self) -> dict: | |
| 6298 | + result: dict = {} | |
| 6299 | + result["var"] = from_int(self.var) | |
| 6300 | + return result | |
| 6301 | + | |
| 6302 | + | |
| 6303 | +@dataclass | |
| 6304 | +class Virtual: | |
| 6305 | + virtual: int | |
| 6306 | + | |
| 6307 | + @staticmethod | |
| 6308 | + def from_dict(obj: Any) -> 'Virtual': | |
| 6309 | + assert isinstance(obj, dict) | |
| 6310 | + virtual = from_int(obj["virtual"]) | |
| 6311 | + return Virtual(virtual) | |
| 6312 | + | |
| 6313 | + def to_dict(self) -> dict: | |
| 6314 | + result: dict = {} | |
| 6315 | + result["virtual"] = from_int(self.virtual) | |
| 6316 | + return result | |
| 6317 | + | |
| 6318 | + | |
| 6255 | 6319 | @dataclass |
| 6256 | 6320 | class Void: |
| 6257 | 6321 | void: int |
| @@ -6398,8 +6462,12 @@ class Yes: | ||
| 6398 | 6462 | |
| 6399 | 6463 | @dataclass |
| 6400 | 6464 | class Obj6: |
| 6465 | + uuid: UUIDClass | |
| 6466 | + utf8_json_writer: Utf8JSONWriter | |
| 6401 | 6467 | yes: Yes |
| 6402 | 6468 | dummy: int |
| 6469 | + var: Var | |
| 6470 | + virtual: Virtual | |
| 6403 | 6471 | void: Void |
| 6404 | 6472 | volatile: Volatile |
| 6405 | 6473 | wchar_t: WcharT |
| @@ -6415,8 +6483,12 @@ class Obj6: | ||
| 6415 | 6483 | @staticmethod |
| 6416 | 6484 | def from_dict(obj: Any) -> 'Obj6': |
| 6417 | 6485 | assert isinstance(obj, dict) |
| 6486 | + uuid = UUIDClass.from_dict(obj["UUID"]) | |
| 6487 | + utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"]) | |
| 6418 | 6488 | yes = Yes.from_dict(obj["YES"]) |
| 6419 | 6489 | dummy = from_int(obj["dummy"]) |
| 6490 | + var = Var.from_dict(obj["var"]) | |
| 6491 | + virtual = Virtual.from_dict(obj["virtual"]) | |
| 6420 | 6492 | void = Void.from_dict(obj["void"]) |
| 6421 | 6493 | volatile = Volatile.from_dict(obj["volatile"]) |
| 6422 | 6494 | wchar_t = WcharT.from_dict(obj["wchar_t"]) |
| @@ -6428,12 +6500,16 @@ class Obj6: | ||
| 6428 | 6500 | xor = Xor.from_dict(obj["xor"]) |
| 6429 | 6501 | xor_eq = XorEq.from_dict(obj["xor_eq"]) |
| 6430 | 6502 | obj6_yield = Yield.from_dict(obj["yield"]) |
| 6431 | - return Obj6(yes, dummy, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield) | |
| 6503 | + return Obj6(uuid, utf8_json_writer, yes, dummy, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield) | |
| 6432 | 6504 | |
| 6433 | 6505 | def to_dict(self) -> dict: |
| 6434 | 6506 | result: dict = {} |
| 6507 | + result["UUID"] = to_class(UUIDClass, self.uuid) | |
| 6508 | + result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer) | |
| 6435 | 6509 | result["YES"] = to_class(Yes, self.yes) |
| 6436 | 6510 | result["dummy"] = from_int(self.dummy) |
| 6511 | + result["var"] = to_class(Var, self.var) | |
| 6512 | + result["virtual"] = to_class(Virtual, self.virtual) | |
| 6437 | 6513 | result["void"] = to_class(Void, self.void) |
| 6438 | 6514 | result["volatile"] = to_class(Volatile, self.volatile) |
| 6439 | 6515 | result["wchar_t"] = to_class(WcharT, self.wchar_t) |
Mrubydefault / TopLevel.rb+737 −625
| @@ -2289,6 +2289,31 @@ class Delete < Dry::Struct | ||
| 2289 | 2289 | end |
| 2290 | 2290 | end |
| 2291 | 2291 | |
| 2292 | +class DeserializationFeature < Dry::Struct | |
| 2293 | + attribute :deserialization_feature, Types::Integer | |
| 2294 | + | |
| 2295 | + def self.from_dynamic!(d) | |
| 2296 | + d = Types::Hash[d] | |
| 2297 | + new( | |
| 2298 | + deserialization_feature: d.fetch("DeserializationFeature"), | |
| 2299 | + ) | |
| 2300 | + end | |
| 2301 | + | |
| 2302 | + def self.from_json!(json) | |
| 2303 | + from_dynamic!(JSON.parse(json)) | |
| 2304 | + end | |
| 2305 | + | |
| 2306 | + def to_dynamic | |
| 2307 | + { | |
| 2308 | + "DeserializationFeature" => deserialization_feature, | |
| 2309 | + } | |
| 2310 | + end | |
| 2311 | + | |
| 2312 | + def to_json(options = nil) | |
| 2313 | + JSON.generate(to_dynamic, options) | |
| 2314 | + end | |
| 2315 | +end | |
| 2316 | + | |
| 2292 | 2317 | class Dict < Dry::Struct |
| 2293 | 2318 | attribute :dict, Types::Integer |
| 2294 | 2319 | |
| @@ -3244,31 +3269,6 @@ class Go < Dry::Struct | ||
| 3244 | 3269 | end |
| 3245 | 3270 | end |
| 3246 | 3271 | |
| 3247 | -class Goto < Dry::Struct | |
| 3248 | - attribute :goto, Types::Integer | |
| 3249 | - | |
| 3250 | - def self.from_dynamic!(d) | |
| 3251 | - d = Types::Hash[d] | |
| 3252 | - new( | |
| 3253 | - goto: d.fetch("goto"), | |
| 3254 | - ) | |
| 3255 | - end | |
| 3256 | - | |
| 3257 | - def self.from_json!(json) | |
| 3258 | - from_dynamic!(JSON.parse(json)) | |
| 3259 | - end | |
| 3260 | - | |
| 3261 | - def to_dynamic | |
| 3262 | - { | |
| 3263 | - "goto" => goto, | |
| 3264 | - } | |
| 3265 | - end | |
| 3266 | - | |
| 3267 | - def to_json(options = nil) | |
| 3268 | - JSON.generate(to_dynamic, options) | |
| 3269 | - end | |
| 3270 | -end | |
| 3271 | - | |
| 3272 | 3272 | class Def < Dry::Struct |
| 3273 | 3273 | attribute :def_def, Types::Integer |
| 3274 | 3274 | |
| @@ -3445,214 +3445,239 @@ class For < Dry::Struct | ||
| 3445 | 3445 | end |
| 3446 | 3446 | |
| 3447 | 3447 | class Obj2 < Dry::Struct |
| 3448 | - attribute :date_formatter, DateFormatter | |
| 3449 | - attribute :date_only, DateOnly | |
| 3450 | - attribute :date_only_converter, DateOnlyConverter | |
| 3451 | - attribute :date_parse_handling, DateParseHandling | |
| 3452 | - attribute :date_time, DateTimeClass | |
| 3453 | - attribute :date_time_styles, DateTimeStyles | |
| 3454 | - attribute :debugger, Debugger | |
| 3455 | - attribute :decimal, Decimal | |
| 3456 | - attribute :declare, Declare | |
| 3457 | - attribute :decltype, Decltype | |
| 3458 | - attribute :decode_string, DecodeString | |
| 3459 | - attribute :decoder, Decoder | |
| 3460 | - attribute :decoding_error, DecodingError | |
| 3461 | - attribute :defer, Defer | |
| 3462 | - attribute :deinit, Deinit | |
| 3463 | - attribute :del, Del | |
| 3464 | - attribute :delegate, Delegate | |
| 3465 | - attribute :delete, Delete | |
| 3466 | - attribute :dict, Dict | |
| 3467 | - attribute :dictionary, Dictionary | |
| 3468 | - attribute :did_set, DidSet | |
| 3469 | - attribute :double, Double | |
| 3470 | - attribute :dummy, Types::Integer | |
| 3471 | - attribute :dynamic, Dynamic | |
| 3472 | - attribute :dynamic_cast, DynamicCast | |
| 3473 | - attribute :elif, Elif | |
| 3474 | - attribute :encode_quick_type, EncodeQuickType | |
| 3475 | - attribute :encoder, Encoder | |
| 3476 | - attribute :enum_values, EnumValues | |
| 3477 | - attribute :equality_contract, EqualityContract | |
| 3478 | - attribute :equatable, Equatable | |
| 3479 | - attribute :event, Event | |
| 3480 | - attribute :except, Except | |
| 3481 | - attribute :exception, ExceptionClass | |
| 3482 | - attribute :explicit, Explicit | |
| 3483 | - attribute :export, Export | |
| 3484 | - attribute :exposing, Exposing | |
| 3485 | - attribute :extends, Extends | |
| 3486 | - attribute :extension, Extension | |
| 3487 | - attribute :extern, Extern | |
| 3488 | - attribute :fallthrough, Fallthrough | |
| 3489 | - attribute :false_1, Obj2False | |
| 3490 | - attribute :fileprivate, Fileprivate | |
| 3491 | - attribute :final, Final | |
| 3492 | - attribute :finally, Finally | |
| 3493 | - attribute :fixed, Fixed | |
| 3494 | - attribute :float, FloatClass | |
| 3495 | - attribute :foreach, Foreach | |
| 3496 | - attribute :format_exception, FormatException | |
| 3497 | - attribute :friend, Friend | |
| 3498 | - attribute :from, From | |
| 3499 | - attribute :from_json, FromJSON | |
| 3500 | - attribute :func, Func | |
| 3501 | - attribute :function, Function | |
| 3502 | - attribute :get, Get | |
| 3503 | - attribute :global, Global | |
| 3504 | - attribute :go, Go | |
| 3505 | - attribute :goto, Goto | |
| 3506 | - attribute :obj2_def, Def | |
| 3507 | - attribute :obj2_default, Default | |
| 3508 | - attribute :obj2_do, Do | |
| 3509 | - attribute :obj2_else, Else | |
| 3510 | - attribute :obj2_enum, Enum | |
| 3511 | - attribute :obj2_false, False | |
| 3512 | - attribute :obj2_for, For | |
| 3513 | - | |
| 3514 | - def self.from_dynamic!(d) | |
| 3515 | - d = Types::Hash[d] | |
| 3516 | - new( | |
| 3517 | - date_formatter: DateFormatter.from_dynamic!(d.fetch("DateFormatter")), | |
| 3518 | - date_only: DateOnly.from_dynamic!(d.fetch("DateOnly")), | |
| 3519 | - date_only_converter: DateOnlyConverter.from_dynamic!(d.fetch("DateOnlyConverter")), | |
| 3520 | - date_parse_handling: DateParseHandling.from_dynamic!(d.fetch("date_parse_handling")), | |
| 3521 | - date_time: DateTimeClass.from_dynamic!(d.fetch("DateTime")), | |
| 3522 | - date_time_styles: DateTimeStyles.from_dynamic!(d.fetch("DateTimeStyles")), | |
| 3523 | - debugger: Debugger.from_dynamic!(d.fetch("debugger")), | |
| 3524 | - decimal: Decimal.from_dynamic!(d.fetch("decimal")), | |
| 3525 | - declare: Declare.from_dynamic!(d.fetch("declare")), | |
| 3526 | - decltype: Decltype.from_dynamic!(d.fetch("decltype")), | |
| 3527 | - decode_string: DecodeString.from_dynamic!(d.fetch("decode_string")), | |
| 3528 | - decoder: Decoder.from_dynamic!(d.fetch("Decoder")), | |
| 3529 | - decoding_error: DecodingError.from_dynamic!(d.fetch("DecodingError")), | |
| 3530 | - defer: Defer.from_dynamic!(d.fetch("defer")), | |
| 3531 | - deinit: Deinit.from_dynamic!(d.fetch("deinit")), | |
| 3532 | - del: Del.from_dynamic!(d.fetch("del")), | |
| 3533 | - delegate: Delegate.from_dynamic!(d.fetch("delegate")), | |
| 3534 | - delete: Delete.from_dynamic!(d.fetch("delete")), | |
| 3535 | - dict: Dict.from_dynamic!(d.fetch("dict")), | |
| 3536 | - dictionary: Dictionary.from_dynamic!(d.fetch("dictionary")), | |
| 3537 | - did_set: DidSet.from_dynamic!(d.fetch("didSet")), | |
| 3538 | - double: Double.from_dynamic!(d.fetch("double")), | |
| 3539 | - dummy: d.fetch("dummy"), | |
| 3540 | - dynamic: Dynamic.from_dynamic!(d.fetch("dynamic")), | |
| 3541 | - dynamic_cast: DynamicCast.from_dynamic!(d.fetch("dynamic_cast")), | |
| 3542 | - elif: Elif.from_dynamic!(d.fetch("elif")), | |
| 3543 | - encode_quick_type: EncodeQuickType.from_dynamic!(d.fetch("encode_quick_type")), | |
| 3544 | - encoder: Encoder.from_dynamic!(d.fetch("Encoder")), | |
| 3545 | - enum_values: EnumValues.from_dynamic!(d.fetch("EnumValues")), | |
| 3546 | - equality_contract: EqualityContract.from_dynamic!(d.fetch("equalityContract")), | |
| 3547 | - equatable: Equatable.from_dynamic!(d.fetch("Equatable")), | |
| 3548 | - event: Event.from_dynamic!(d.fetch("event")), | |
| 3549 | - except: Except.from_dynamic!(d.fetch("except")), | |
| 3550 | - exception: ExceptionClass.from_dynamic!(d.fetch("exception")), | |
| 3551 | - explicit: Explicit.from_dynamic!(d.fetch("explicit")), | |
| 3552 | - export: Export.from_dynamic!(d.fetch("export")), | |
| 3553 | - exposing: Exposing.from_dynamic!(d.fetch("exposing")), | |
| 3554 | - extends: Extends.from_dynamic!(d.fetch("extends")), | |
| 3555 | - extension: Extension.from_dynamic!(d.fetch("extension")), | |
| 3556 | - extern: Extern.from_dynamic!(d.fetch("extern")), | |
| 3557 | - fallthrough: Fallthrough.from_dynamic!(d.fetch("fallthrough")), | |
| 3558 | - false_1: Obj2False.from_dynamic!(d.fetch("false")), | |
| 3559 | - fileprivate: Fileprivate.from_dynamic!(d.fetch("fileprivate")), | |
| 3560 | - final: Final.from_dynamic!(d.fetch("final")), | |
| 3561 | - finally: Finally.from_dynamic!(d.fetch("finally")), | |
| 3562 | - fixed: Fixed.from_dynamic!(d.fetch("fixed")), | |
| 3563 | - float: FloatClass.from_dynamic!(d.fetch("float")), | |
| 3564 | - foreach: Foreach.from_dynamic!(d.fetch("foreach")), | |
| 3565 | - format_exception: FormatException.from_dynamic!(d.fetch("FormatException")), | |
| 3566 | - friend: Friend.from_dynamic!(d.fetch("friend")), | |
| 3567 | - from: From.from_dynamic!(d.fetch("from")), | |
| 3568 | - from_json: FromJSON.from_dynamic!(d.fetch("from_json")), | |
| 3569 | - func: Func.from_dynamic!(d.fetch("func")), | |
| 3570 | - function: Function.from_dynamic!(d.fetch("function")), | |
| 3571 | - get: Get.from_dynamic!(d.fetch("get")), | |
| 3572 | - global: Global.from_dynamic!(d.fetch("global")), | |
| 3573 | - go: Go.from_dynamic!(d.fetch("go")), | |
| 3574 | - goto: Goto.from_dynamic!(d.fetch("goto")), | |
| 3575 | - obj2_def: Def.from_dynamic!(d.fetch("def")), | |
| 3576 | - obj2_default: Default.from_dynamic!(d.fetch("default")), | |
| 3577 | - obj2_do: Do.from_dynamic!(d.fetch("do")), | |
| 3578 | - obj2_else: Else.from_dynamic!(d.fetch("else")), | |
| 3579 | - obj2_enum: Enum.from_dynamic!(d.fetch("enum")), | |
| 3580 | - obj2_false: False.from_dynamic!(d.fetch("False")), | |
| 3581 | - obj2_for: For.from_dynamic!(d.fetch("for")), | |
| 3582 | - ) | |
| 3583 | - end | |
| 3584 | - | |
| 3585 | - def self.from_json!(json) | |
| 3586 | - from_dynamic!(JSON.parse(json)) | |
| 3587 | - end | |
| 3588 | - | |
| 3589 | - def to_dynamic | |
| 3590 | - { | |
| 3591 | - "DateFormatter" => date_formatter.to_dynamic, | |
| 3592 | - "DateOnly" => date_only.to_dynamic, | |
| 3593 | - "DateOnlyConverter" => date_only_converter.to_dynamic, | |
| 3594 | - "date_parse_handling" => date_parse_handling.to_dynamic, | |
| 3595 | - "DateTime" => date_time.to_dynamic, | |
| 3596 | - "DateTimeStyles" => date_time_styles.to_dynamic, | |
| 3597 | - "debugger" => debugger.to_dynamic, | |
| 3598 | - "decimal" => decimal.to_dynamic, | |
| 3599 | - "declare" => declare.to_dynamic, | |
| 3600 | - "decltype" => decltype.to_dynamic, | |
| 3601 | - "decode_string" => decode_string.to_dynamic, | |
| 3602 | - "Decoder" => decoder.to_dynamic, | |
| 3603 | - "DecodingError" => decoding_error.to_dynamic, | |
| 3604 | - "defer" => defer.to_dynamic, | |
| 3605 | - "deinit" => deinit.to_dynamic, | |
| 3606 | - "del" => del.to_dynamic, | |
| 3607 | - "delegate" => delegate.to_dynamic, | |
| 3608 | - "delete" => delete.to_dynamic, | |
| 3609 | - "dict" => dict.to_dynamic, | |
| 3610 | - "dictionary" => dictionary.to_dynamic, | |
| 3611 | - "didSet" => did_set.to_dynamic, | |
| 3612 | - "double" => double.to_dynamic, | |
| 3613 | - "dummy" => dummy, | |
| 3614 | - "dynamic" => dynamic.to_dynamic, | |
| 3615 | - "dynamic_cast" => dynamic_cast.to_dynamic, | |
| 3616 | - "elif" => elif.to_dynamic, | |
| 3617 | - "encode_quick_type" => encode_quick_type.to_dynamic, | |
| 3618 | - "Encoder" => encoder.to_dynamic, | |
| 3619 | - "EnumValues" => enum_values.to_dynamic, | |
| 3620 | - "equalityContract" => equality_contract.to_dynamic, | |
| 3621 | - "Equatable" => equatable.to_dynamic, | |
| 3622 | - "event" => event.to_dynamic, | |
| 3623 | - "except" => except.to_dynamic, | |
| 3624 | - "exception" => exception.to_dynamic, | |
| 3625 | - "explicit" => explicit.to_dynamic, | |
| 3626 | - "export" => export.to_dynamic, | |
| 3627 | - "exposing" => exposing.to_dynamic, | |
| 3628 | - "extends" => extends.to_dynamic, | |
| 3629 | - "extension" => extension.to_dynamic, | |
| 3630 | - "extern" => extern.to_dynamic, | |
| 3631 | - "fallthrough" => fallthrough.to_dynamic, | |
| 3632 | - "false" => false_1.to_dynamic, | |
| 3633 | - "fileprivate" => fileprivate.to_dynamic, | |
| 3634 | - "final" => final.to_dynamic, | |
| 3635 | - "finally" => finally.to_dynamic, | |
| 3636 | - "fixed" => fixed.to_dynamic, | |
| 3637 | - "float" => float.to_dynamic, | |
| 3638 | - "foreach" => foreach.to_dynamic, | |
| 3639 | - "FormatException" => format_exception.to_dynamic, | |
| 3640 | - "friend" => friend.to_dynamic, | |
| 3641 | - "from" => from.to_dynamic, | |
| 3642 | - "from_json" => from_json.to_dynamic, | |
| 3643 | - "func" => func.to_dynamic, | |
| 3644 | - "function" => function.to_dynamic, | |
| 3645 | - "get" => get.to_dynamic, | |
| 3646 | - "global" => global.to_dynamic, | |
| 3647 | - "go" => go.to_dynamic, | |
| 3648 | - "goto" => goto.to_dynamic, | |
| 3649 | - "def" => obj2_def.to_dynamic, | |
| 3650 | - "default" => obj2_default.to_dynamic, | |
| 3651 | - "do" => obj2_do.to_dynamic, | |
| 3652 | - "else" => obj2_else.to_dynamic, | |
| 3653 | - "enum" => obj2_enum.to_dynamic, | |
| 3654 | - "False" => obj2_false.to_dynamic, | |
| 3655 | - "for" => obj2_for.to_dynamic, | |
| 3448 | + attribute :date_formatter, DateFormatter | |
| 3449 | + attribute :date_only, DateOnly | |
| 3450 | + attribute :date_only_converter, DateOnlyConverter | |
| 3451 | + attribute :date_parse_handling, DateParseHandling | |
| 3452 | + attribute :date_time, DateTimeClass | |
| 3453 | + attribute :date_time_styles, DateTimeStyles | |
| 3454 | + attribute :debugger, Debugger | |
| 3455 | + attribute :decimal, Decimal | |
| 3456 | + attribute :declare, Declare | |
| 3457 | + attribute :decltype, Decltype | |
| 3458 | + attribute :decode_string, DecodeString | |
| 3459 | + attribute :decoder, Decoder | |
| 3460 | + attribute :decoding_error, DecodingError | |
| 3461 | + attribute :defer, Defer | |
| 3462 | + attribute :deinit, Deinit | |
| 3463 | + attribute :del, Del | |
| 3464 | + attribute :delegate, Delegate | |
| 3465 | + attribute :delete, Delete | |
| 3466 | + attribute :deserialization_feature, DeserializationFeature | |
| 3467 | + attribute :dict, Dict | |
| 3468 | + attribute :dictionary, Dictionary | |
| 3469 | + attribute :did_set, DidSet | |
| 3470 | + attribute :double, Double | |
| 3471 | + attribute :dummy, Types::Integer | |
| 3472 | + attribute :dynamic, Dynamic | |
| 3473 | + attribute :dynamic_cast, DynamicCast | |
| 3474 | + attribute :elif, Elif | |
| 3475 | + attribute :encode_quick_type, EncodeQuickType | |
| 3476 | + attribute :encoder, Encoder | |
| 3477 | + attribute :enum_values, EnumValues | |
| 3478 | + attribute :equality_contract, EqualityContract | |
| 3479 | + attribute :equatable, Equatable | |
| 3480 | + attribute :event, Event | |
| 3481 | + attribute :except, Except | |
| 3482 | + attribute :exception, ExceptionClass | |
| 3483 | + attribute :explicit, Explicit | |
| 3484 | + attribute :export, Export | |
| 3485 | + attribute :exposing, Exposing | |
| 3486 | + attribute :extends, Extends | |
| 3487 | + attribute :extension, Extension | |
| 3488 | + attribute :extern, Extern | |
| 3489 | + attribute :fallthrough, Fallthrough | |
| 3490 | + attribute :false_1, Obj2False | |
| 3491 | + attribute :fileprivate, Fileprivate | |
| 3492 | + attribute :final, Final | |
| 3493 | + attribute :finally, Finally | |
| 3494 | + attribute :fixed, Fixed | |
| 3495 | + attribute :float, FloatClass | |
| 3496 | + attribute :foreach, Foreach | |
| 3497 | + attribute :format_exception, FormatException | |
| 3498 | + attribute :friend, Friend | |
| 3499 | + attribute :from, From | |
| 3500 | + attribute :from_json, FromJSON | |
| 3501 | + attribute :func, Func | |
| 3502 | + attribute :function, Function | |
| 3503 | + attribute :get, Get | |
| 3504 | + attribute :global, Global | |
| 3505 | + attribute :go, Go | |
| 3506 | + attribute :obj2_def, Def | |
| 3507 | + attribute :obj2_default, Default | |
| 3508 | + attribute :obj2_do, Do | |
| 3509 | + attribute :obj2_else, Else | |
| 3510 | + attribute :obj2_enum, Enum | |
| 3511 | + attribute :obj2_false, False | |
| 3512 | + attribute :obj2_for, For | |
| 3513 | + | |
| 3514 | + def self.from_dynamic!(d) | |
| 3515 | + d = Types::Hash[d] | |
| 3516 | + new( | |
| 3517 | + date_formatter: DateFormatter.from_dynamic!(d.fetch("DateFormatter")), | |
| 3518 | + date_only: DateOnly.from_dynamic!(d.fetch("DateOnly")), | |
| 3519 | + date_only_converter: DateOnlyConverter.from_dynamic!(d.fetch("DateOnlyConverter")), | |
| 3520 | + date_parse_handling: DateParseHandling.from_dynamic!(d.fetch("date_parse_handling")), | |
| 3521 | + date_time: DateTimeClass.from_dynamic!(d.fetch("DateTime")), | |
| 3522 | + date_time_styles: DateTimeStyles.from_dynamic!(d.fetch("DateTimeStyles")), | |
| 3523 | + debugger: Debugger.from_dynamic!(d.fetch("debugger")), | |
| 3524 | + decimal: Decimal.from_dynamic!(d.fetch("decimal")), | |
| 3525 | + declare: Declare.from_dynamic!(d.fetch("declare")), | |
| 3526 | + decltype: Decltype.from_dynamic!(d.fetch("decltype")), | |
| 3527 | + decode_string: DecodeString.from_dynamic!(d.fetch("decode_string")), | |
| 3528 | + decoder: Decoder.from_dynamic!(d.fetch("Decoder")), | |
| 3529 | + decoding_error: DecodingError.from_dynamic!(d.fetch("DecodingError")), | |
| 3530 | + defer: Defer.from_dynamic!(d.fetch("defer")), | |
| 3531 | + deinit: Deinit.from_dynamic!(d.fetch("deinit")), | |
| 3532 | + del: Del.from_dynamic!(d.fetch("del")), | |
| 3533 | + delegate: Delegate.from_dynamic!(d.fetch("delegate")), | |
| 3534 | + delete: Delete.from_dynamic!(d.fetch("delete")), | |
| 3535 | + deserialization_feature: DeserializationFeature.from_dynamic!(d.fetch("DeserializationFeature")), | |
| 3536 | + dict: Dict.from_dynamic!(d.fetch("dict")), | |
| 3537 | + dictionary: Dictionary.from_dynamic!(d.fetch("dictionary")), | |
| 3538 | + did_set: DidSet.from_dynamic!(d.fetch("didSet")), | |
| 3539 | + double: Double.from_dynamic!(d.fetch("double")), | |
| 3540 | + dummy: d.fetch("dummy"), | |
| 3541 | + dynamic: Dynamic.from_dynamic!(d.fetch("dynamic")), | |
| 3542 | + dynamic_cast: DynamicCast.from_dynamic!(d.fetch("dynamic_cast")), | |
| 3543 | + elif: Elif.from_dynamic!(d.fetch("elif")), | |
| 3544 | + encode_quick_type: EncodeQuickType.from_dynamic!(d.fetch("encode_quick_type")), | |
| 3545 | + encoder: Encoder.from_dynamic!(d.fetch("Encoder")), | |
| 3546 | + enum_values: EnumValues.from_dynamic!(d.fetch("EnumValues")), | |
| 3547 | + equality_contract: EqualityContract.from_dynamic!(d.fetch("equalityContract")), | |
| 3548 | + equatable: Equatable.from_dynamic!(d.fetch("Equatable")), | |
| 3549 | + event: Event.from_dynamic!(d.fetch("event")), | |
| 3550 | + except: Except.from_dynamic!(d.fetch("except")), | |
| 3551 | + exception: ExceptionClass.from_dynamic!(d.fetch("exception")), | |
| 3552 | + explicit: Explicit.from_dynamic!(d.fetch("explicit")), | |
| 3553 | + export: Export.from_dynamic!(d.fetch("export")), | |
| 3554 | + exposing: Exposing.from_dynamic!(d.fetch("exposing")), | |
| 3555 | + extends: Extends.from_dynamic!(d.fetch("extends")), | |
| 3556 | + extension: Extension.from_dynamic!(d.fetch("extension")), | |
| 3557 | + extern: Extern.from_dynamic!(d.fetch("extern")), | |
| 3558 | + fallthrough: Fallthrough.from_dynamic!(d.fetch("fallthrough")), | |
| 3559 | + false_1: Obj2False.from_dynamic!(d.fetch("false")), | |
| 3560 | + fileprivate: Fileprivate.from_dynamic!(d.fetch("fileprivate")), | |
| 3561 | + final: Final.from_dynamic!(d.fetch("final")), | |
| 3562 | + finally: Finally.from_dynamic!(d.fetch("finally")), | |
| 3563 | + fixed: Fixed.from_dynamic!(d.fetch("fixed")), | |
| 3564 | + float: FloatClass.from_dynamic!(d.fetch("float")), | |
| 3565 | + foreach: Foreach.from_dynamic!(d.fetch("foreach")), | |
| 3566 | + format_exception: FormatException.from_dynamic!(d.fetch("FormatException")), | |
| 3567 | + friend: Friend.from_dynamic!(d.fetch("friend")), | |
| 3568 | + from: From.from_dynamic!(d.fetch("from")), | |
| 3569 | + from_json: FromJSON.from_dynamic!(d.fetch("from_json")), | |
| 3570 | + func: Func.from_dynamic!(d.fetch("func")), | |
| 3571 | + function: Function.from_dynamic!(d.fetch("function")), | |
| 3572 | + get: Get.from_dynamic!(d.fetch("get")), | |
| 3573 | + global: Global.from_dynamic!(d.fetch("global")), | |
| 3574 | + go: Go.from_dynamic!(d.fetch("go")), | |
| 3575 | + obj2_def: Def.from_dynamic!(d.fetch("def")), | |
| 3576 | + obj2_default: Default.from_dynamic!(d.fetch("default")), | |
| 3577 | + obj2_do: Do.from_dynamic!(d.fetch("do")), | |
| 3578 | + obj2_else: Else.from_dynamic!(d.fetch("else")), | |
| 3579 | + obj2_enum: Enum.from_dynamic!(d.fetch("enum")), | |
| 3580 | + obj2_false: False.from_dynamic!(d.fetch("False")), | |
| 3581 | + obj2_for: For.from_dynamic!(d.fetch("for")), | |
| 3582 | + ) | |
| 3583 | + end | |
| 3584 | + | |
| 3585 | + def self.from_json!(json) | |
| 3586 | + from_dynamic!(JSON.parse(json)) | |
| 3587 | + end | |
| 3588 | + | |
| 3589 | + def to_dynamic | |
| 3590 | + { | |
| 3591 | + "DateFormatter" => date_formatter.to_dynamic, | |
| 3592 | + "DateOnly" => date_only.to_dynamic, | |
| 3593 | + "DateOnlyConverter" => date_only_converter.to_dynamic, | |
| 3594 | + "date_parse_handling" => date_parse_handling.to_dynamic, | |
| 3595 | + "DateTime" => date_time.to_dynamic, | |
| 3596 | + "DateTimeStyles" => date_time_styles.to_dynamic, | |
| 3597 | + "debugger" => debugger.to_dynamic, | |
| 3598 | + "decimal" => decimal.to_dynamic, | |
| 3599 | + "declare" => declare.to_dynamic, | |
| 3600 | + "decltype" => decltype.to_dynamic, | |
| 3601 | + "decode_string" => decode_string.to_dynamic, | |
| 3602 | + "Decoder" => decoder.to_dynamic, | |
| 3603 | + "DecodingError" => decoding_error.to_dynamic, | |
| 3604 | + "defer" => defer.to_dynamic, | |
| 3605 | + "deinit" => deinit.to_dynamic, | |
| 3606 | + "del" => del.to_dynamic, | |
| 3607 | + "delegate" => delegate.to_dynamic, | |
| 3608 | + "delete" => delete.to_dynamic, | |
| 3609 | + "DeserializationFeature" => deserialization_feature.to_dynamic, | |
| 3610 | + "dict" => dict.to_dynamic, | |
| 3611 | + "dictionary" => dictionary.to_dynamic, | |
| 3612 | + "didSet" => did_set.to_dynamic, | |
| 3613 | + "double" => double.to_dynamic, | |
| 3614 | + "dummy" => dummy, | |
| 3615 | + "dynamic" => dynamic.to_dynamic, | |
| 3616 | + "dynamic_cast" => dynamic_cast.to_dynamic, | |
| 3617 | + "elif" => elif.to_dynamic, | |
| 3618 | + "encode_quick_type" => encode_quick_type.to_dynamic, | |
| 3619 | + "Encoder" => encoder.to_dynamic, | |
| 3620 | + "EnumValues" => enum_values.to_dynamic, | |
| 3621 | + "equalityContract" => equality_contract.to_dynamic, | |
| 3622 | + "Equatable" => equatable.to_dynamic, | |
| 3623 | + "event" => event.to_dynamic, | |
| 3624 | + "except" => except.to_dynamic, | |
| 3625 | + "exception" => exception.to_dynamic, | |
| 3626 | + "explicit" => explicit.to_dynamic, | |
| 3627 | + "export" => export.to_dynamic, | |
| 3628 | + "exposing" => exposing.to_dynamic, | |
| 3629 | + "extends" => extends.to_dynamic, | |
| 3630 | + "extension" => extension.to_dynamic, | |
| 3631 | + "extern" => extern.to_dynamic, | |
| 3632 | + "fallthrough" => fallthrough.to_dynamic, | |
| 3633 | + "false" => false_1.to_dynamic, | |
| 3634 | + "fileprivate" => fileprivate.to_dynamic, | |
| 3635 | + "final" => final.to_dynamic, | |
| 3636 | + "finally" => finally.to_dynamic, | |
| 3637 | + "fixed" => fixed.to_dynamic, | |
| 3638 | + "float" => float.to_dynamic, | |
| 3639 | + "foreach" => foreach.to_dynamic, | |
| 3640 | + "FormatException" => format_exception.to_dynamic, | |
| 3641 | + "friend" => friend.to_dynamic, | |
| 3642 | + "from" => from.to_dynamic, | |
| 3643 | + "from_json" => from_json.to_dynamic, | |
| 3644 | + "func" => func.to_dynamic, | |
| 3645 | + "function" => function.to_dynamic, | |
| 3646 | + "get" => get.to_dynamic, | |
| 3647 | + "global" => global.to_dynamic, | |
| 3648 | + "go" => go.to_dynamic, | |
| 3649 | + "def" => obj2_def.to_dynamic, | |
| 3650 | + "default" => obj2_default.to_dynamic, | |
| 3651 | + "do" => obj2_do.to_dynamic, | |
| 3652 | + "else" => obj2_else.to_dynamic, | |
| 3653 | + "enum" => obj2_enum.to_dynamic, | |
| 3654 | + "False" => obj2_false.to_dynamic, | |
| 3655 | + "for" => obj2_for.to_dynamic, | |
| 3656 | + } | |
| 3657 | + end | |
| 3658 | + | |
| 3659 | + def to_json(options = nil) | |
| 3660 | + JSON.generate(to_dynamic, options) | |
| 3661 | + end | |
| 3662 | +end | |
| 3663 | + | |
| 3664 | +class Goto < Dry::Struct | |
| 3665 | + attribute :goto, Types::Integer | |
| 3666 | + | |
| 3667 | + def self.from_dynamic!(d) | |
| 3668 | + d = Types::Hash[d] | |
| 3669 | + new( | |
| 3670 | + goto: d.fetch("goto"), | |
| 3671 | + ) | |
| 3672 | + end | |
| 3673 | + | |
| 3674 | + def self.from_json!(json) | |
| 3675 | + from_dynamic!(JSON.parse(json)) | |
| 3676 | + end | |
| 3677 | + | |
| 3678 | + def to_dynamic | |
| 3679 | + { | |
| 3680 | + "goto" => goto, | |
| 3656 | 3681 | } |
| 3657 | 3682 | end |
| 3658 | 3683 | |
| @@ -5086,31 +5111,6 @@ class No < Dry::Struct | ||
| 5086 | 5111 | end |
| 5087 | 5112 | end |
| 5088 | 5113 | |
| 5089 | -class Noexcept < Dry::Struct | |
| 5090 | - attribute :noexcept, Types::Integer | |
| 5091 | - | |
| 5092 | - def self.from_dynamic!(d) | |
| 5093 | - d = Types::Hash[d] | |
| 5094 | - new( | |
| 5095 | - noexcept: d.fetch("noexcept"), | |
| 5096 | - ) | |
| 5097 | - end | |
| 5098 | - | |
| 5099 | - def self.from_json!(json) | |
| 5100 | - from_dynamic!(JSON.parse(json)) | |
| 5101 | - end | |
| 5102 | - | |
| 5103 | - def to_dynamic | |
| 5104 | - { | |
| 5105 | - "noexcept" => noexcept, | |
| 5106 | - } | |
| 5107 | - end | |
| 5108 | - | |
| 5109 | - def to_json(options = nil) | |
| 5110 | - JSON.generate(to_dynamic, options) | |
| 5111 | - end | |
| 5112 | -end | |
| 5113 | - | |
| 5114 | 5114 | class If < Dry::Struct |
| 5115 | 5115 | attribute :if_if, Types::Integer |
| 5116 | 5116 | |
| @@ -5263,6 +5263,7 @@ end | ||
| 5263 | 5263 | |
| 5264 | 5264 | class Obj3 < Dry::Struct |
| 5265 | 5265 | attribute :dummy, Types::Integer |
| 5266 | + attribute :goto, Goto | |
| 5266 | 5267 | attribute :guard, Guard |
| 5267 | 5268 | attribute :has_own_property, HasOwnProperty |
| 5268 | 5269 | attribute :hash_code, HashCode |
| @@ -5320,7 +5321,6 @@ class Obj3 < Dry::Struct | ||
| 5320 | 5321 | attribute :native, Native |
| 5321 | 5322 | attribute :newtonsoft, Newtonsoft |
| 5322 | 5323 | attribute :no, No |
| 5323 | - attribute :noexcept, Noexcept | |
| 5324 | 5324 | attribute :obj3_if, If |
| 5325 | 5325 | attribute :obj3_in, In |
| 5326 | 5326 | attribute :obj3_lambda, Lambda |
| @@ -5332,6 +5332,7 @@ class Obj3 < Dry::Struct | ||
| 5332 | 5332 | d = Types::Hash[d] |
| 5333 | 5333 | new( |
| 5334 | 5334 | dummy: d.fetch("dummy"), |
| 5335 | + goto: Goto.from_dynamic!(d.fetch("goto")), | |
| 5335 | 5336 | guard: Guard.from_dynamic!(d.fetch("guard")), |
| 5336 | 5337 | has_own_property: HasOwnProperty.from_dynamic!(d.fetch("hasOwnProperty")), |
| 5337 | 5338 | hash_code: HashCode.from_dynamic!(d.fetch("hashCode")), |
| @@ -5389,7 +5390,6 @@ class Obj3 < Dry::Struct | ||
| 5389 | 5390 | native: Native.from_dynamic!(d.fetch("native")), |
| 5390 | 5391 | newtonsoft: Newtonsoft.from_dynamic!(d.fetch("newtonsoft")), |
| 5391 | 5392 | no: No.from_dynamic!(d.fetch("NO")), |
| 5392 | - noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")), | |
| 5393 | 5393 | obj3_if: If.from_dynamic!(d.fetch("if")), |
| 5394 | 5394 | obj3_in: In.from_dynamic!(d.fetch("in")), |
| 5395 | 5395 | obj3_lambda: Lambda.from_dynamic!(d.fetch("lambda")), |
| @@ -5406,6 +5406,7 @@ class Obj3 < Dry::Struct | ||
| 5406 | 5406 | def to_dynamic |
| 5407 | 5407 | { |
| 5408 | 5408 | "dummy" => dummy, |
| 5409 | + "goto" => goto.to_dynamic, | |
| 5409 | 5410 | "guard" => guard.to_dynamic, |
| 5410 | 5411 | "hasOwnProperty" => has_own_property.to_dynamic, |
| 5411 | 5412 | "hashCode" => hash_code.to_dynamic, |
| @@ -5463,7 +5464,6 @@ class Obj3 < Dry::Struct | ||
| 5463 | 5464 | "native" => native.to_dynamic, |
| 5464 | 5465 | "newtonsoft" => newtonsoft.to_dynamic, |
| 5465 | 5466 | "NO" => no.to_dynamic, |
| 5466 | - "noexcept" => noexcept.to_dynamic, | |
| 5467 | 5467 | "if" => obj3_if.to_dynamic, |
| 5468 | 5468 | "in" => obj3_in.to_dynamic, |
| 5469 | 5469 | "lambda" => obj3_lambda.to_dynamic, |
| @@ -5503,6 +5503,31 @@ class NoSuchMethod < Dry::Struct | ||
| 5503 | 5503 | end |
| 5504 | 5504 | end |
| 5505 | 5505 | |
| 5506 | +class Noexcept < Dry::Struct | |
| 5507 | + attribute :noexcept, Types::Integer | |
| 5508 | + | |
| 5509 | + def self.from_dynamic!(d) | |
| 5510 | + d = Types::Hash[d] | |
| 5511 | + new( | |
| 5512 | + noexcept: d.fetch("noexcept"), | |
| 5513 | + ) | |
| 5514 | + end | |
| 5515 | + | |
| 5516 | + def self.from_json!(json) | |
| 5517 | + from_dynamic!(JSON.parse(json)) | |
| 5518 | + end | |
| 5519 | + | |
| 5520 | + def to_dynamic | |
| 5521 | + { | |
| 5522 | + "noexcept" => noexcept, | |
| 5523 | + } | |
| 5524 | + end | |
| 5525 | + | |
| 5526 | + def to_json(options = nil) | |
| 5527 | + JSON.generate(to_dynamic, options) | |
| 5528 | + end | |
| 5529 | +end | |
| 5530 | + | |
| 5506 | 5531 | class Nonatomic < Dry::Struct |
| 5507 | 5532 | attribute :nonatomic, Types::Integer |
| 5508 | 5533 | |
| @@ -6078,13 +6103,13 @@ class Return < Dry::Struct | ||
| 6078 | 6103 | end |
| 6079 | 6104 | end |
| 6080 | 6105 | |
| 6081 | -class Select < Dry::Struct | |
| 6082 | - attribute :select_select, Types::Integer | |
| 6106 | +class ObjectClass < Dry::Struct | |
| 6107 | + attribute :object, Types::Integer | |
| 6083 | 6108 | |
| 6084 | 6109 | def self.from_dynamic!(d) |
| 6085 | 6110 | d = Types::Hash[d] |
| 6086 | 6111 | new( |
| 6087 | - select_select: d.fetch("select"), | |
| 6112 | + object: d.fetch("object"), | |
| 6088 | 6113 | ) |
| 6089 | 6114 | end |
| 6090 | 6115 | |
| @@ -6094,7 +6119,7 @@ class Select < Dry::Struct | ||
| 6094 | 6119 | |
| 6095 | 6120 | def to_dynamic |
| 6096 | 6121 | { |
| 6097 | - "select" => select_select, | |
| 6122 | + "object" => object, | |
| 6098 | 6123 | } |
| 6099 | 6124 | end |
| 6100 | 6125 | |
| @@ -6103,13 +6128,13 @@ class Select < Dry::Struct | ||
| 6103 | 6128 | end |
| 6104 | 6129 | end |
| 6105 | 6130 | |
| 6106 | -class ObjectClass < Dry::Struct | |
| 6107 | - attribute :object, Types::Integer | |
| 6131 | +class ObjectMapper < Dry::Struct | |
| 6132 | + attribute :object_mapper, Types::Integer | |
| 6108 | 6133 | |
| 6109 | 6134 | def self.from_dynamic!(d) |
| 6110 | 6135 | d = Types::Hash[d] |
| 6111 | 6136 | new( |
| 6112 | - object: d.fetch("object"), | |
| 6137 | + object_mapper: d.fetch("ObjectMapper"), | |
| 6113 | 6138 | ) |
| 6114 | 6139 | end |
| 6115 | 6140 | |
| @@ -6119,7 +6144,7 @@ class ObjectClass < Dry::Struct | ||
| 6119 | 6144 | |
| 6120 | 6145 | def to_dynamic |
| 6121 | 6146 | { |
| 6122 | - "object" => object, | |
| 6147 | + "ObjectMapper" => object_mapper, | |
| 6123 | 6148 | } |
| 6124 | 6149 | end |
| 6125 | 6150 | |
| @@ -6128,13 +6153,13 @@ class ObjectClass < Dry::Struct | ||
| 6128 | 6153 | end |
| 6129 | 6154 | end |
| 6130 | 6155 | |
| 6131 | -class ObjectMapper < Dry::Struct | |
| 6132 | - attribute :object_mapper, Types::Integer | |
| 6156 | +class ObjectReader < Dry::Struct | |
| 6157 | + attribute :object_reader, Types::Integer | |
| 6133 | 6158 | |
| 6134 | 6159 | def self.from_dynamic!(d) |
| 6135 | 6160 | d = Types::Hash[d] |
| 6136 | 6161 | new( |
| 6137 | - object_mapper: d.fetch("ObjectMapper"), | |
| 6162 | + object_reader: d.fetch("ObjectReader"), | |
| 6138 | 6163 | ) |
| 6139 | 6164 | end |
| 6140 | 6165 | |
| @@ -6144,7 +6169,32 @@ class ObjectMapper < Dry::Struct | ||
| 6144 | 6169 | |
| 6145 | 6170 | def to_dynamic |
| 6146 | 6171 | { |
| 6147 | - "ObjectMapper" => object_mapper, | |
| 6172 | + "ObjectReader" => object_reader, | |
| 6173 | + } | |
| 6174 | + end | |
| 6175 | + | |
| 6176 | + def to_json(options = nil) | |
| 6177 | + JSON.generate(to_dynamic, options) | |
| 6178 | + end | |
| 6179 | +end | |
| 6180 | + | |
| 6181 | +class ObjectWriter < Dry::Struct | |
| 6182 | + attribute :object_writer, Types::Integer | |
| 6183 | + | |
| 6184 | + def self.from_dynamic!(d) | |
| 6185 | + d = Types::Hash[d] | |
| 6186 | + new( | |
| 6187 | + object_writer: d.fetch("ObjectWriter"), | |
| 6188 | + ) | |
| 6189 | + end | |
| 6190 | + | |
| 6191 | + def self.from_json!(json) | |
| 6192 | + from_dynamic!(JSON.parse(json)) | |
| 6193 | + end | |
| 6194 | + | |
| 6195 | + def to_dynamic | |
| 6196 | + { | |
| 6197 | + "ObjectWriter" => object_writer, | |
| 6148 | 6198 | } |
| 6149 | 6199 | end |
| 6150 | 6200 | |
| @@ -7028,59 +7078,10 @@ class Sbyte < Dry::Struct | ||
| 7028 | 7078 | end |
| 7029 | 7079 | end |
| 7030 | 7080 | |
| 7031 | -class Sealed < Dry::Struct | |
| 7032 | - attribute :sealed, Types::Integer | |
| 7033 | - | |
| 7034 | - def self.from_dynamic!(d) | |
| 7035 | - d = Types::Hash[d] | |
| 7036 | - new( | |
| 7037 | - sealed: d.fetch("sealed"), | |
| 7038 | - ) | |
| 7039 | - end | |
| 7040 | - | |
| 7041 | - def self.from_json!(json) | |
| 7042 | - from_dynamic!(JSON.parse(json)) | |
| 7043 | - end | |
| 7044 | - | |
| 7045 | - def to_dynamic | |
| 7046 | - { | |
| 7047 | - "sealed" => sealed, | |
| 7048 | - } | |
| 7049 | - end | |
| 7050 | - | |
| 7051 | - def to_json(options = nil) | |
| 7052 | - JSON.generate(to_dynamic, options) | |
| 7053 | - end | |
| 7054 | -end | |
| 7055 | - | |
| 7056 | -class Sel < Dry::Struct | |
| 7057 | - attribute :sel, Types::Integer | |
| 7058 | - | |
| 7059 | - def self.from_dynamic!(d) | |
| 7060 | - d = Types::Hash[d] | |
| 7061 | - new( | |
| 7062 | - sel: d.fetch("SEL"), | |
| 7063 | - ) | |
| 7064 | - end | |
| 7065 | - | |
| 7066 | - def self.from_json!(json) | |
| 7067 | - from_dynamic!(JSON.parse(json)) | |
| 7068 | - end | |
| 7069 | - | |
| 7070 | - def to_dynamic | |
| 7071 | - { | |
| 7072 | - "SEL" => sel, | |
| 7073 | - } | |
| 7074 | - end | |
| 7075 | - | |
| 7076 | - def to_json(options = nil) | |
| 7077 | - JSON.generate(to_dynamic, options) | |
| 7078 | - end | |
| 7079 | -end | |
| 7080 | - | |
| 7081 | 7081 | class Obj4 < Dry::Struct |
| 7082 | 7082 | attribute :dummy, Types::Integer |
| 7083 | 7083 | attribute :no_such_method, NoSuchMethod |
| 7084 | + attribute :noexcept, Noexcept | |
| 7084 | 7085 | attribute :nonatomic, Nonatomic |
| 7085 | 7086 | attribute :none, None |
| 7086 | 7087 | attribute :nonlocal, Nonlocal |
| @@ -7104,9 +7105,10 @@ class Obj4 < Dry::Struct | ||
| 7104 | 7105 | attribute :obj4_raise, Raise |
| 7105 | 7106 | attribute :obj4_require, Require |
| 7106 | 7107 | attribute :obj4_return, Return |
| 7107 | - attribute :obj4_select, Select | |
| 7108 | 7108 | attribute :object, ObjectClass |
| 7109 | 7109 | attribute :object_mapper, ObjectMapper |
| 7110 | + attribute :object_reader, ObjectReader | |
| 7111 | + attribute :object_writer, ObjectWriter | |
| 7110 | 7112 | attribute :of, Of |
| 7111 | 7113 | attribute :oneway, Oneway |
| 7112 | 7114 | attribute :operator, Operator |
| @@ -7142,14 +7144,13 @@ class Obj4 < Dry::Struct | ||
| 7142 | 7144 | attribute :runtime_type, RuntimeType |
| 7143 | 7145 | attribute :s, S |
| 7144 | 7146 | attribute :sbyte, Sbyte |
| 7145 | - attribute :sealed, Sealed | |
| 7146 | - attribute :sel, Sel | |
| 7147 | 7147 | |
| 7148 | 7148 | def self.from_dynamic!(d) |
| 7149 | 7149 | d = Types::Hash[d] |
| 7150 | 7150 | new( |
| 7151 | 7151 | dummy: d.fetch("dummy"), |
| 7152 | 7152 | no_such_method: NoSuchMethod.from_dynamic!(d.fetch("noSuchMethod")), |
| 7153 | + noexcept: Noexcept.from_dynamic!(d.fetch("noexcept")), | |
| 7153 | 7154 | nonatomic: Nonatomic.from_dynamic!(d.fetch("nonatomic")), |
| 7154 | 7155 | none: None.from_dynamic!(d.fetch("None")), |
| 7155 | 7156 | nonlocal: Nonlocal.from_dynamic!(d.fetch("nonlocal")), |
| @@ -7173,9 +7174,10 @@ class Obj4 < Dry::Struct | ||
| 7173 | 7174 | obj4_raise: Raise.from_dynamic!(d.fetch("raise")), |
| 7174 | 7175 | obj4_require: Require.from_dynamic!(d.fetch("require")), |
| 7175 | 7176 | obj4_return: Return.from_dynamic!(d.fetch("return")), |
| 7176 | - obj4_select: Select.from_dynamic!(d.fetch("select")), | |
| 7177 | 7177 | object: ObjectClass.from_dynamic!(d.fetch("object")), |
| 7178 | 7178 | object_mapper: ObjectMapper.from_dynamic!(d.fetch("ObjectMapper")), |
| 7179 | + object_reader: ObjectReader.from_dynamic!(d.fetch("ObjectReader")), | |
| 7180 | + object_writer: ObjectWriter.from_dynamic!(d.fetch("ObjectWriter")), | |
| 7179 | 7181 | of: Of.from_dynamic!(d.fetch("of")), |
| 7180 | 7182 | oneway: Oneway.from_dynamic!(d.fetch("oneway")), |
| 7181 | 7183 | operator: Operator.from_dynamic!(d.fetch("operator")), |
| @@ -7211,8 +7213,6 @@ class Obj4 < Dry::Struct | ||
| 7211 | 7213 | runtime_type: RuntimeType.from_dynamic!(d.fetch("runtimeType")), |
| 7212 | 7214 | s: S.from_dynamic!(d.fetch("s")), |
| 7213 | 7215 | sbyte: Sbyte.from_dynamic!(d.fetch("sbyte")), |
| 7214 | - sealed: Sealed.from_dynamic!(d.fetch("sealed")), | |
| 7215 | - sel: Sel.from_dynamic!(d.fetch("SEL")), | |
| 7216 | 7216 | ) |
| 7217 | 7217 | end |
| 7218 | 7218 | |
| @@ -7224,6 +7224,7 @@ class Obj4 < Dry::Struct | ||
| 7224 | 7224 | { |
| 7225 | 7225 | "dummy" => dummy, |
| 7226 | 7226 | "noSuchMethod" => no_such_method.to_dynamic, |
| 7227 | + "noexcept" => noexcept.to_dynamic, | |
| 7227 | 7228 | "nonatomic" => nonatomic.to_dynamic, |
| 7228 | 7229 | "None" => none.to_dynamic, |
| 7229 | 7230 | "nonlocal" => nonlocal.to_dynamic, |
| @@ -7247,9 +7248,10 @@ class Obj4 < Dry::Struct | ||
| 7247 | 7248 | "raise" => obj4_raise.to_dynamic, |
| 7248 | 7249 | "require" => obj4_require.to_dynamic, |
| 7249 | 7250 | "return" => obj4_return.to_dynamic, |
| 7250 | - "select" => obj4_select.to_dynamic, | |
| 7251 | 7251 | "object" => object.to_dynamic, |
| 7252 | 7252 | "ObjectMapper" => object_mapper.to_dynamic, |
| 7253 | + "ObjectReader" => object_reader.to_dynamic, | |
| 7254 | + "ObjectWriter" => object_writer.to_dynamic, | |
| 7253 | 7255 | "of" => of.to_dynamic, |
| 7254 | 7256 | "oneway" => oneway.to_dynamic, |
| 7255 | 7257 | "operator" => operator.to_dynamic, |
| @@ -7285,8 +7287,31 @@ class Obj4 < Dry::Struct | ||
| 7285 | 7287 | "runtimeType" => runtime_type.to_dynamic, |
| 7286 | 7288 | "s" => s.to_dynamic, |
| 7287 | 7289 | "sbyte" => sbyte.to_dynamic, |
| 7288 | - "sealed" => sealed.to_dynamic, | |
| 7289 | - "SEL" => sel.to_dynamic, | |
| 7290 | + } | |
| 7291 | + end | |
| 7292 | + | |
| 7293 | + def to_json(options = nil) | |
| 7294 | + JSON.generate(to_dynamic, options) | |
| 7295 | + end | |
| 7296 | +end | |
| 7297 | + | |
| 7298 | +class Select < Dry::Struct | |
| 7299 | + attribute :select_select, Types::Integer | |
| 7300 | + | |
| 7301 | + def self.from_dynamic!(d) | |
| 7302 | + d = Types::Hash[d] | |
| 7303 | + new( | |
| 7304 | + select_select: d.fetch("select"), | |
| 7305 | + ) | |
| 7306 | + end | |
| 7307 | + | |
| 7308 | + def self.from_json!(json) | |
| 7309 | + from_dynamic!(JSON.parse(json)) | |
| 7310 | + end | |
| 7311 | + | |
| 7312 | + def to_dynamic | |
| 7313 | + { | |
| 7314 | + "select" => select_select, | |
| 7290 | 7315 | } |
| 7291 | 7316 | end |
| 7292 | 7317 | |
| @@ -7520,6 +7545,56 @@ class Type < Dry::Struct | ||
| 7520 | 7545 | end |
| 7521 | 7546 | end |
| 7522 | 7547 | |
| 7548 | +class Sealed < Dry::Struct | |
| 7549 | + attribute :sealed, Types::Integer | |
| 7550 | + | |
| 7551 | + def self.from_dynamic!(d) | |
| 7552 | + d = Types::Hash[d] | |
| 7553 | + new( | |
| 7554 | + sealed: d.fetch("sealed"), | |
| 7555 | + ) | |
| 7556 | + end | |
| 7557 | + | |
| 7558 | + def self.from_json!(json) | |
| 7559 | + from_dynamic!(JSON.parse(json)) | |
| 7560 | + end | |
| 7561 | + | |
| 7562 | + def to_dynamic | |
| 7563 | + { | |
| 7564 | + "sealed" => sealed, | |
| 7565 | + } | |
| 7566 | + end | |
| 7567 | + | |
| 7568 | + def to_json(options = nil) | |
| 7569 | + JSON.generate(to_dynamic, options) | |
| 7570 | + end | |
| 7571 | +end | |
| 7572 | + | |
| 7573 | +class Sel < Dry::Struct | |
| 7574 | + attribute :sel, Types::Integer | |
| 7575 | + | |
| 7576 | + def self.from_dynamic!(d) | |
| 7577 | + d = Types::Hash[d] | |
| 7578 | + new( | |
| 7579 | + sel: d.fetch("SEL"), | |
| 7580 | + ) | |
| 7581 | + end | |
| 7582 | + | |
| 7583 | + def self.from_json!(json) | |
| 7584 | + from_dynamic!(JSON.parse(json)) | |
| 7585 | + end | |
| 7586 | + | |
| 7587 | + def to_dynamic | |
| 7588 | + { | |
| 7589 | + "SEL" => sel, | |
| 7590 | + } | |
| 7591 | + end | |
| 7592 | + | |
| 7593 | + def to_json(options = nil) | |
| 7594 | + JSON.generate(to_dynamic, options) | |
| 7595 | + end | |
| 7596 | +end | |
| 7597 | + | |
| 7523 | 7598 | class Obj5Self < Dry::Struct |
| 7524 | 7599 | attribute :self_self, Types::Integer |
| 7525 | 7600 | |
| @@ -7570,6 +7645,31 @@ class Sendable < Dry::Struct | ||
| 7570 | 7645 | end |
| 7571 | 7646 | end |
| 7572 | 7647 | |
| 7648 | +class SerializationFeature < Dry::Struct | |
| 7649 | + attribute :serialization_feature, Types::Integer | |
| 7650 | + | |
| 7651 | + def self.from_dynamic!(d) | |
| 7652 | + d = Types::Hash[d] | |
| 7653 | + new( | |
| 7654 | + serialization_feature: d.fetch("SerializationFeature"), | |
| 7655 | + ) | |
| 7656 | + end | |
| 7657 | + | |
| 7658 | + def self.from_json!(json) | |
| 7659 | + from_dynamic!(JSON.parse(json)) | |
| 7660 | + end | |
| 7661 | + | |
| 7662 | + def to_dynamic | |
| 7663 | + { | |
| 7664 | + "SerializationFeature" => serialization_feature, | |
| 7665 | + } | |
| 7666 | + end | |
| 7667 | + | |
| 7668 | + def to_json(options = nil) | |
| 7669 | + JSON.generate(to_dynamic, options) | |
| 7670 | + end | |
| 7671 | +end | |
| 7672 | + | |
| 7573 | 7673 | class Serialize < Dry::Struct |
| 7574 | 7674 | attribute :serialize, Types::Integer |
| 7575 | 7675 | |
| @@ -8795,13 +8895,230 @@ class Utf8JSONReader < Dry::Struct | ||
| 8795 | 8895 | end |
| 8796 | 8896 | end |
| 8797 | 8897 | |
| 8798 | -class Utf8JSONWriter < Dry::Struct | |
| 8799 | - attribute :utf8_json_writer, Types::Integer | |
| 8898 | +class Obj5 < Dry::Struct | |
| 8899 | + attribute :dummy, Types::Integer | |
| 8900 | + attribute :obj5_select, Select | |
| 8901 | + attribute :obj5_self, SelfClass | |
| 8902 | + attribute :obj5_super, Super | |
| 8903 | + attribute :obj5_system, System | |
| 8904 | + attribute :obj5_then, Then | |
| 8905 | + attribute :obj5_throw, Throw | |
| 8906 | + attribute :obj5_to_json, ToJSON | |
| 8907 | + attribute :obj5_true, True | |
| 8908 | + attribute :obj5_try, Try | |
| 8909 | + attribute :obj5_type, Type | |
| 8910 | + attribute :sealed, Sealed | |
| 8911 | + attribute :sel, Sel | |
| 8912 | + attribute :self_1, Obj5Self | |
| 8913 | + attribute :sendable, Sendable | |
| 8914 | + attribute :serialization_feature, SerializationFeature | |
| 8915 | + attribute :serialize, Serialize | |
| 8916 | + attribute :serializer_provider, SerializerProvider | |
| 8917 | + attribute :set, SetClass | |
| 8918 | + attribute :short, Short | |
| 8919 | + attribute :signed, Signed | |
| 8920 | + attribute :simple_module, SimpleModule | |
| 8921 | + attribute :sizeof, Sizeof | |
| 8922 | + attribute :stackalloc, Stackalloc | |
| 8923 | + attribute :standards, Standards | |
| 8924 | + attribute :static, Static | |
| 8925 | + attribute :static_assert, StaticAssert | |
| 8926 | + attribute :static_cast, StaticCast | |
| 8927 | + attribute :std_deserializer, StdDeserializer | |
| 8928 | + attribute :std_serializer, StdSerializer | |
| 8929 | + attribute :strictfp, Strictfp | |
| 8930 | + attribute :string, StringClass | |
| 8931 | + attribute :struct, StructClass | |
| 8932 | + attribute :subscript, Subscript | |
| 8933 | + attribute :switch, Switch | |
| 8934 | + attribute :symbol, SymbolClass | |
| 8935 | + attribute :synchronized, Synchronized | |
| 8936 | + attribute :template, Template | |
| 8937 | + attribute :this, This | |
| 8938 | + attribute :thread_local, ThreadLocal | |
| 8939 | + attribute :throws, Throws | |
| 8940 | + attribute :time_only, TimeOnly | |
| 8941 | + attribute :time_only_converter, TimeOnlyConverter | |
| 8942 | + attribute :time_zone, TimeZone | |
| 8943 | + attribute :to_string, ToString | |
| 8944 | + attribute :top_level, TopLevelClass | |
| 8945 | + attribute :transient, Transient | |
| 8946 | + attribute :true_1, Obj5True | |
| 8947 | + attribute :type_1, TypeClass | |
| 8948 | + attribute :typealias, Typealias | |
| 8949 | + attribute :typedef, Typedef | |
| 8950 | + attribute :typeid, Typeid | |
| 8951 | + attribute :typename, Typename | |
| 8952 | + attribute :typeof, Typeof | |
| 8953 | + attribute :uint, Uint | |
| 8954 | + attribute :ulong, Ulong | |
| 8955 | + attribute :unchecked, Unchecked | |
| 8956 | + attribute :undefined, UndefinedClass | |
| 8957 | + attribute :union, Union | |
| 8958 | + attribute :unowned, Unowned | |
| 8959 | + attribute :unsafe, Unsafe | |
| 8960 | + attribute :unsigned, Unsigned | |
| 8961 | + attribute :ushort, Ushort | |
| 8962 | + attribute :using, Using | |
| 8963 | + attribute :utf8_json_reader, Utf8JSONReader | |
| 8964 | + | |
| 8965 | + def self.from_dynamic!(d) | |
| 8966 | + d = Types::Hash[d] | |
| 8967 | + new( | |
| 8968 | + dummy: d.fetch("dummy"), | |
| 8969 | + obj5_select: Select.from_dynamic!(d.fetch("select")), | |
| 8970 | + obj5_self: SelfClass.from_dynamic!(d.fetch("Self")), | |
| 8971 | + obj5_super: Super.from_dynamic!(d.fetch("super")), | |
| 8972 | + obj5_system: System.from_dynamic!(d.fetch("system")), | |
| 8973 | + obj5_then: Then.from_dynamic!(d.fetch("then")), | |
| 8974 | + obj5_throw: Throw.from_dynamic!(d.fetch("throw")), | |
| 8975 | + obj5_to_json: ToJSON.from_dynamic!(d.fetch("to_json")), | |
| 8976 | + obj5_true: True.from_dynamic!(d.fetch("True")), | |
| 8977 | + obj5_try: Try.from_dynamic!(d.fetch("try")), | |
| 8978 | + obj5_type: Type.from_dynamic!(d.fetch("Type")), | |
| 8979 | + sealed: Sealed.from_dynamic!(d.fetch("sealed")), | |
| 8980 | + sel: Sel.from_dynamic!(d.fetch("SEL")), | |
| 8981 | + self_1: Obj5Self.from_dynamic!(d.fetch("self")), | |
| 8982 | + sendable: Sendable.from_dynamic!(d.fetch("Sendable")), | |
| 8983 | + serialization_feature: SerializationFeature.from_dynamic!(d.fetch("SerializationFeature")), | |
| 8984 | + serialize: Serialize.from_dynamic!(d.fetch("serialize")), | |
| 8985 | + serializer_provider: SerializerProvider.from_dynamic!(d.fetch("SerializerProvider")), | |
| 8986 | + set: SetClass.from_dynamic!(d.fetch("set")), | |
| 8987 | + short: Short.from_dynamic!(d.fetch("short")), | |
| 8988 | + signed: Signed.from_dynamic!(d.fetch("signed")), | |
| 8989 | + simple_module: SimpleModule.from_dynamic!(d.fetch("SimpleModule")), | |
| 8990 | + sizeof: Sizeof.from_dynamic!(d.fetch("sizeof")), | |
| 8991 | + stackalloc: Stackalloc.from_dynamic!(d.fetch("stackalloc")), | |
| 8992 | + standards: Standards.from_dynamic!(d.fetch("Standards")), | |
| 8993 | + static: Static.from_dynamic!(d.fetch("static")), | |
| 8994 | + static_assert: StaticAssert.from_dynamic!(d.fetch("static_assert")), | |
| 8995 | + static_cast: StaticCast.from_dynamic!(d.fetch("static_cast")), | |
| 8996 | + std_deserializer: StdDeserializer.from_dynamic!(d.fetch("StdDeserializer")), | |
| 8997 | + std_serializer: StdSerializer.from_dynamic!(d.fetch("StdSerializer")), | |
| 8998 | + strictfp: Strictfp.from_dynamic!(d.fetch("strictfp")), | |
| 8999 | + string: StringClass.from_dynamic!(d.fetch("string")), | |
| 9000 | + struct: StructClass.from_dynamic!(d.fetch("struct")), | |
| 9001 | + subscript: Subscript.from_dynamic!(d.fetch("subscript")), | |
| 9002 | + switch: Switch.from_dynamic!(d.fetch("switch")), | |
| 9003 | + symbol: SymbolClass.from_dynamic!(d.fetch("symbol")), | |
| 9004 | + synchronized: Synchronized.from_dynamic!(d.fetch("synchronized")), | |
| 9005 | + template: Template.from_dynamic!(d.fetch("template")), | |
| 9006 | + this: This.from_dynamic!(d.fetch("this")), | |
| 9007 | + thread_local: ThreadLocal.from_dynamic!(d.fetch("thread_local")), | |
| 9008 | + throws: Throws.from_dynamic!(d.fetch("throws")), | |
| 9009 | + time_only: TimeOnly.from_dynamic!(d.fetch("TimeOnly")), | |
| 9010 | + time_only_converter: TimeOnlyConverter.from_dynamic!(d.fetch("TimeOnlyConverter")), | |
| 9011 | + time_zone: TimeZone.from_dynamic!(d.fetch("TimeZone")), | |
| 9012 | + to_string: ToString.from_dynamic!(d.fetch("toString")), | |
| 9013 | + top_level: TopLevelClass.from_dynamic!(d.fetch("top_level")), | |
| 9014 | + transient: Transient.from_dynamic!(d.fetch("transient")), | |
| 9015 | + true_1: Obj5True.from_dynamic!(d.fetch("true")), | |
| 9016 | + type_1: TypeClass.from_dynamic!(d.fetch("type")), | |
| 9017 | + typealias: Typealias.from_dynamic!(d.fetch("typealias")), | |
| 9018 | + typedef: Typedef.from_dynamic!(d.fetch("typedef")), | |
| 9019 | + typeid: Typeid.from_dynamic!(d.fetch("typeid")), | |
| 9020 | + typename: Typename.from_dynamic!(d.fetch("typename")), | |
| 9021 | + typeof: Typeof.from_dynamic!(d.fetch("typeof")), | |
| 9022 | + uint: Uint.from_dynamic!(d.fetch("uint")), | |
| 9023 | + ulong: Ulong.from_dynamic!(d.fetch("ulong")), | |
| 9024 | + unchecked: Unchecked.from_dynamic!(d.fetch("unchecked")), | |
| 9025 | + undefined: UndefinedClass.from_dynamic!(d.fetch("undefined")), | |
| 9026 | + union: Union.from_dynamic!(d.fetch("union")), | |
| 9027 | + unowned: Unowned.from_dynamic!(d.fetch("unowned")), | |
| 9028 | + unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")), | |
| 9029 | + unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")), | |
| 9030 | + ushort: Ushort.from_dynamic!(d.fetch("ushort")), | |
| 9031 | + using: Using.from_dynamic!(d.fetch("using")), | |
| 9032 | + utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")), | |
| 9033 | + ) | |
| 9034 | + end | |
| 9035 | + | |
| 9036 | + def self.from_json!(json) | |
| 9037 | + from_dynamic!(JSON.parse(json)) | |
| 9038 | + end | |
| 9039 | + | |
| 9040 | + def to_dynamic | |
| 9041 | + { | |
| 9042 | + "dummy" => dummy, | |
| 9043 | + "select" => obj5_select.to_dynamic, | |
| 9044 | + "Self" => obj5_self.to_dynamic, | |
| 9045 | + "super" => obj5_super.to_dynamic, | |
| 9046 | + "system" => obj5_system.to_dynamic, | |
| 9047 | + "then" => obj5_then.to_dynamic, | |
| 9048 | + "throw" => obj5_throw.to_dynamic, | |
| 9049 | + "to_json" => obj5_to_json.to_dynamic, | |
| 9050 | + "True" => obj5_true.to_dynamic, | |
| 9051 | + "try" => obj5_try.to_dynamic, | |
| 9052 | + "Type" => obj5_type.to_dynamic, | |
| 9053 | + "sealed" => sealed.to_dynamic, | |
| 9054 | + "SEL" => sel.to_dynamic, | |
| 9055 | + "self" => self_1.to_dynamic, | |
| 9056 | + "Sendable" => sendable.to_dynamic, | |
| 9057 | + "SerializationFeature" => serialization_feature.to_dynamic, | |
| 9058 | + "serialize" => serialize.to_dynamic, | |
| 9059 | + "SerializerProvider" => serializer_provider.to_dynamic, | |
| 9060 | + "set" => set.to_dynamic, | |
| 9061 | + "short" => short.to_dynamic, | |
| 9062 | + "signed" => signed.to_dynamic, | |
| 9063 | + "SimpleModule" => simple_module.to_dynamic, | |
| 9064 | + "sizeof" => sizeof.to_dynamic, | |
| 9065 | + "stackalloc" => stackalloc.to_dynamic, | |
| 9066 | + "Standards" => standards.to_dynamic, | |
| 9067 | + "static" => static.to_dynamic, | |
| 9068 | + "static_assert" => static_assert.to_dynamic, | |
| 9069 | + "static_cast" => static_cast.to_dynamic, | |
| 9070 | + "StdDeserializer" => std_deserializer.to_dynamic, | |
| 9071 | + "StdSerializer" => std_serializer.to_dynamic, | |
| 9072 | + "strictfp" => strictfp.to_dynamic, | |
| 9073 | + "string" => string.to_dynamic, | |
| 9074 | + "struct" => struct.to_dynamic, | |
| 9075 | + "subscript" => subscript.to_dynamic, | |
| 9076 | + "switch" => switch.to_dynamic, | |
| 9077 | + "symbol" => symbol.to_dynamic, | |
| 9078 | + "synchronized" => synchronized.to_dynamic, | |
| 9079 | + "template" => template.to_dynamic, | |
| 9080 | + "this" => this.to_dynamic, | |
| 9081 | + "thread_local" => thread_local.to_dynamic, | |
| 9082 | + "throws" => throws.to_dynamic, | |
| 9083 | + "TimeOnly" => time_only.to_dynamic, | |
| 9084 | + "TimeOnlyConverter" => time_only_converter.to_dynamic, | |
| 9085 | + "TimeZone" => time_zone.to_dynamic, | |
| 9086 | + "toString" => to_string.to_dynamic, | |
| 9087 | + "top_level" => top_level.to_dynamic, | |
| 9088 | + "transient" => transient.to_dynamic, | |
| 9089 | + "true" => true_1.to_dynamic, | |
| 9090 | + "type" => type_1.to_dynamic, | |
| 9091 | + "typealias" => typealias.to_dynamic, | |
| 9092 | + "typedef" => typedef.to_dynamic, | |
| 9093 | + "typeid" => typeid.to_dynamic, | |
| 9094 | + "typename" => typename.to_dynamic, | |
| 9095 | + "typeof" => typeof.to_dynamic, | |
| 9096 | + "uint" => uint.to_dynamic, | |
| 9097 | + "ulong" => ulong.to_dynamic, | |
| 9098 | + "unchecked" => unchecked.to_dynamic, | |
| 9099 | + "undefined" => undefined.to_dynamic, | |
| 9100 | + "union" => union.to_dynamic, | |
| 9101 | + "unowned" => unowned.to_dynamic, | |
| 9102 | + "unsafe" => unsafe.to_dynamic, | |
| 9103 | + "unsigned" => unsigned.to_dynamic, | |
| 9104 | + "ushort" => ushort.to_dynamic, | |
| 9105 | + "using" => using.to_dynamic, | |
| 9106 | + "Utf8JsonReader" => utf8_json_reader.to_dynamic, | |
| 9107 | + } | |
| 9108 | + end | |
| 9109 | + | |
| 9110 | + def to_json(options = nil) | |
| 9111 | + JSON.generate(to_dynamic, options) | |
| 9112 | + end | |
| 9113 | +end | |
| 9114 | + | |
| 9115 | +class While < Dry::Struct | |
| 9116 | + attribute :while_while, Types::Integer | |
| 8800 | 9117 | |
| 8801 | 9118 | def self.from_dynamic!(d) |
| 8802 | 9119 | d = Types::Hash[d] |
| 8803 | 9120 | new( |
| 8804 | - utf8_json_writer: d.fetch("Utf8JsonWriter"), | |
| 9121 | + while_while: d.fetch("while"), | |
| 8805 | 9122 | ) |
| 8806 | 9123 | end |
| 8807 | 9124 | |
| @@ -8811,7 +9128,7 @@ class Utf8JSONWriter < Dry::Struct | ||
| 8811 | 9128 | |
| 8812 | 9129 | def to_dynamic |
| 8813 | 9130 | { |
| 8814 | - "Utf8JsonWriter" => utf8_json_writer, | |
| 9131 | + "while" => while_while, | |
| 8815 | 9132 | } |
| 8816 | 9133 | end |
| 8817 | 9134 | |
| @@ -8820,13 +9137,13 @@ class Utf8JSONWriter < Dry::Struct | ||
| 8820 | 9137 | end |
| 8821 | 9138 | end |
| 8822 | 9139 | |
| 8823 | -class UUID < Dry::Struct | |
| 8824 | - attribute :uuid, Types::Integer | |
| 9140 | +class With < Dry::Struct | |
| 9141 | + attribute :with_with, Types::Integer | |
| 8825 | 9142 | |
| 8826 | 9143 | def self.from_dynamic!(d) |
| 8827 | 9144 | d = Types::Hash[d] |
| 8828 | 9145 | new( |
| 8829 | - uuid: d.fetch("UUID"), | |
| 9146 | + with_with: d.fetch("with"), | |
| 8830 | 9147 | ) |
| 8831 | 9148 | end |
| 8832 | 9149 | |
| @@ -8836,7 +9153,7 @@ class UUID < Dry::Struct | ||
| 8836 | 9153 | |
| 8837 | 9154 | def to_dynamic |
| 8838 | 9155 | { |
| 8839 | - "UUID" => uuid, | |
| 9156 | + "with" => with_with, | |
| 8840 | 9157 | } |
| 8841 | 9158 | end |
| 8842 | 9159 | |
| @@ -8845,13 +9162,13 @@ class UUID < Dry::Struct | ||
| 8845 | 9162 | end |
| 8846 | 9163 | end |
| 8847 | 9164 | |
| 8848 | -class Var < Dry::Struct | |
| 8849 | - attribute :var, Types::Integer | |
| 9165 | +class Yield < Dry::Struct | |
| 9166 | + attribute :yield_yield, Types::Integer | |
| 8850 | 9167 | |
| 8851 | 9168 | def self.from_dynamic!(d) |
| 8852 | 9169 | d = Types::Hash[d] |
| 8853 | 9170 | new( |
| 8854 | - var: d.fetch("var"), | |
| 9171 | + yield_yield: d.fetch("yield"), | |
| 8855 | 9172 | ) |
| 8856 | 9173 | end |
| 8857 | 9174 | |
| @@ -8861,7 +9178,7 @@ class Var < Dry::Struct | ||
| 8861 | 9178 | |
| 8862 | 9179 | def to_dynamic |
| 8863 | 9180 | { |
| 8864 | - "var" => var, | |
| 9181 | + "yield" => yield_yield, | |
| 8865 | 9182 | } |
| 8866 | 9183 | end |
| 8867 | 9184 | |
| @@ -8870,13 +9187,13 @@ class Var < Dry::Struct | ||
| 8870 | 9187 | end |
| 8871 | 9188 | end |
| 8872 | 9189 | |
| 8873 | -class Virtual < Dry::Struct | |
| 8874 | - attribute :virtual, Types::Integer | |
| 9190 | +class Utf8JSONWriter < Dry::Struct | |
| 9191 | + attribute :utf8_json_writer, Types::Integer | |
| 8875 | 9192 | |
| 8876 | 9193 | def self.from_dynamic!(d) |
| 8877 | 9194 | d = Types::Hash[d] |
| 8878 | 9195 | new( |
| 8879 | - virtual: d.fetch("virtual"), | |
| 9196 | + utf8_json_writer: d.fetch("Utf8JsonWriter"), | |
| 8880 | 9197 | ) |
| 8881 | 9198 | end |
| 8882 | 9199 | |
| @@ -8886,224 +9203,7 @@ class Virtual < Dry::Struct | ||
| 8886 | 9203 | |
| 8887 | 9204 | def to_dynamic |
| 8888 | 9205 | { |
| 8889 | - "virtual" => virtual, | |
| 8890 | - } | |
| 8891 | - end | |
| 8892 | - | |
| 8893 | - def to_json(options = nil) | |
| 8894 | - JSON.generate(to_dynamic, options) | |
| 8895 | - end | |
| 8896 | -end | |
| 8897 | - | |
| 8898 | -class Obj5 < Dry::Struct | |
| 8899 | - attribute :dummy, Types::Integer | |
| 8900 | - attribute :obj5_self, SelfClass | |
| 8901 | - attribute :obj5_super, Super | |
| 8902 | - attribute :obj5_system, System | |
| 8903 | - attribute :obj5_then, Then | |
| 8904 | - attribute :obj5_throw, Throw | |
| 8905 | - attribute :obj5_to_json, ToJSON | |
| 8906 | - attribute :obj5_true, True | |
| 8907 | - attribute :obj5_try, Try | |
| 8908 | - attribute :obj5_type, Type | |
| 8909 | - attribute :self_1, Obj5Self | |
| 8910 | - attribute :sendable, Sendable | |
| 8911 | - attribute :serialize, Serialize | |
| 8912 | - attribute :serializer_provider, SerializerProvider | |
| 8913 | - attribute :set, SetClass | |
| 8914 | - attribute :short, Short | |
| 8915 | - attribute :signed, Signed | |
| 8916 | - attribute :simple_module, SimpleModule | |
| 8917 | - attribute :sizeof, Sizeof | |
| 8918 | - attribute :stackalloc, Stackalloc | |
| 8919 | - attribute :standards, Standards | |
| 8920 | - attribute :static, Static | |
| 8921 | - attribute :static_assert, StaticAssert | |
| 8922 | - attribute :static_cast, StaticCast | |
| 8923 | - attribute :std_deserializer, StdDeserializer | |
| 8924 | - attribute :std_serializer, StdSerializer | |
| 8925 | - attribute :strictfp, Strictfp | |
| 8926 | - attribute :string, StringClass | |
| 8927 | - attribute :struct, StructClass | |
| 8928 | - attribute :subscript, Subscript | |
| 8929 | - attribute :switch, Switch | |
| 8930 | - attribute :symbol, SymbolClass | |
| 8931 | - attribute :synchronized, Synchronized | |
| 8932 | - attribute :template, Template | |
| 8933 | - attribute :this, This | |
| 8934 | - attribute :thread_local, ThreadLocal | |
| 8935 | - attribute :throws, Throws | |
| 8936 | - attribute :time_only, TimeOnly | |
| 8937 | - attribute :time_only_converter, TimeOnlyConverter | |
| 8938 | - attribute :time_zone, TimeZone | |
| 8939 | - attribute :to_string, ToString | |
| 8940 | - attribute :top_level, TopLevelClass | |
| 8941 | - attribute :transient, Transient | |
| 8942 | - attribute :true_1, Obj5True | |
| 8943 | - attribute :type_1, TypeClass | |
| 8944 | - attribute :typealias, Typealias | |
| 8945 | - attribute :typedef, Typedef | |
| 8946 | - attribute :typeid, Typeid | |
| 8947 | - attribute :typename, Typename | |
| 8948 | - attribute :typeof, Typeof | |
| 8949 | - attribute :uint, Uint | |
| 8950 | - attribute :ulong, Ulong | |
| 8951 | - attribute :unchecked, Unchecked | |
| 8952 | - attribute :undefined, UndefinedClass | |
| 8953 | - attribute :union, Union | |
| 8954 | - attribute :unowned, Unowned | |
| 8955 | - attribute :unsafe, Unsafe | |
| 8956 | - attribute :unsigned, Unsigned | |
| 8957 | - attribute :ushort, Ushort | |
| 8958 | - attribute :using, Using | |
| 8959 | - attribute :utf8_json_reader, Utf8JSONReader | |
| 8960 | - attribute :utf8_json_writer, Utf8JSONWriter | |
| 8961 | - attribute :uuid, UUID | |
| 8962 | - attribute :var, Var | |
| 8963 | - attribute :virtual, Virtual | |
| 8964 | - | |
| 8965 | - def self.from_dynamic!(d) | |
| 8966 | - d = Types::Hash[d] | |
| 8967 | - new( | |
| 8968 | - dummy: d.fetch("dummy"), | |
| 8969 | - obj5_self: SelfClass.from_dynamic!(d.fetch("Self")), | |
| 8970 | - obj5_super: Super.from_dynamic!(d.fetch("super")), | |
| 8971 | - obj5_system: System.from_dynamic!(d.fetch("system")), | |
| 8972 | - obj5_then: Then.from_dynamic!(d.fetch("then")), | |
| 8973 | - obj5_throw: Throw.from_dynamic!(d.fetch("throw")), | |
| 8974 | - obj5_to_json: ToJSON.from_dynamic!(d.fetch("to_json")), | |
| 8975 | - obj5_true: True.from_dynamic!(d.fetch("True")), | |
| 8976 | - obj5_try: Try.from_dynamic!(d.fetch("try")), | |
| 8977 | - obj5_type: Type.from_dynamic!(d.fetch("Type")), | |
| 8978 | - self_1: Obj5Self.from_dynamic!(d.fetch("self")), | |
| 8979 | - sendable: Sendable.from_dynamic!(d.fetch("Sendable")), | |
| 8980 | - serialize: Serialize.from_dynamic!(d.fetch("serialize")), | |
| 8981 | - serializer_provider: SerializerProvider.from_dynamic!(d.fetch("SerializerProvider")), | |
| 8982 | - set: SetClass.from_dynamic!(d.fetch("set")), | |
| 8983 | - short: Short.from_dynamic!(d.fetch("short")), | |
| 8984 | - signed: Signed.from_dynamic!(d.fetch("signed")), | |
| 8985 | - simple_module: SimpleModule.from_dynamic!(d.fetch("SimpleModule")), | |
| 8986 | - sizeof: Sizeof.from_dynamic!(d.fetch("sizeof")), | |
| 8987 | - stackalloc: Stackalloc.from_dynamic!(d.fetch("stackalloc")), | |
| 8988 | - standards: Standards.from_dynamic!(d.fetch("Standards")), | |
| 8989 | - static: Static.from_dynamic!(d.fetch("static")), | |
| 8990 | - static_assert: StaticAssert.from_dynamic!(d.fetch("static_assert")), | |
| 8991 | - static_cast: StaticCast.from_dynamic!(d.fetch("static_cast")), | |
| 8992 | - std_deserializer: StdDeserializer.from_dynamic!(d.fetch("StdDeserializer")), | |
| 8993 | - std_serializer: StdSerializer.from_dynamic!(d.fetch("StdSerializer")), | |
| 8994 | - strictfp: Strictfp.from_dynamic!(d.fetch("strictfp")), | |
| 8995 | - string: StringClass.from_dynamic!(d.fetch("string")), | |
| 8996 | - struct: StructClass.from_dynamic!(d.fetch("struct")), | |
| 8997 | - subscript: Subscript.from_dynamic!(d.fetch("subscript")), | |
| 8998 | - switch: Switch.from_dynamic!(d.fetch("switch")), | |
| 8999 | - symbol: SymbolClass.from_dynamic!(d.fetch("symbol")), | |
| 9000 | - synchronized: Synchronized.from_dynamic!(d.fetch("synchronized")), | |
| 9001 | - template: Template.from_dynamic!(d.fetch("template")), | |
| 9002 | - this: This.from_dynamic!(d.fetch("this")), | |
| 9003 | - thread_local: ThreadLocal.from_dynamic!(d.fetch("thread_local")), | |
| 9004 | - throws: Throws.from_dynamic!(d.fetch("throws")), | |
| 9005 | - time_only: TimeOnly.from_dynamic!(d.fetch("TimeOnly")), | |
| 9006 | - time_only_converter: TimeOnlyConverter.from_dynamic!(d.fetch("TimeOnlyConverter")), | |
| 9007 | - time_zone: TimeZone.from_dynamic!(d.fetch("TimeZone")), | |
| 9008 | - to_string: ToString.from_dynamic!(d.fetch("toString")), | |
| 9009 | - top_level: TopLevelClass.from_dynamic!(d.fetch("top_level")), | |
| 9010 | - transient: Transient.from_dynamic!(d.fetch("transient")), | |
| 9011 | - true_1: Obj5True.from_dynamic!(d.fetch("true")), | |
| 9012 | - type_1: TypeClass.from_dynamic!(d.fetch("type")), | |
| 9013 | - typealias: Typealias.from_dynamic!(d.fetch("typealias")), | |
| 9014 | - typedef: Typedef.from_dynamic!(d.fetch("typedef")), | |
| 9015 | - typeid: Typeid.from_dynamic!(d.fetch("typeid")), | |
| 9016 | - typename: Typename.from_dynamic!(d.fetch("typename")), | |
| 9017 | - typeof: Typeof.from_dynamic!(d.fetch("typeof")), | |
| 9018 | - uint: Uint.from_dynamic!(d.fetch("uint")), | |
| 9019 | - ulong: Ulong.from_dynamic!(d.fetch("ulong")), | |
| 9020 | - unchecked: Unchecked.from_dynamic!(d.fetch("unchecked")), | |
| 9021 | - undefined: UndefinedClass.from_dynamic!(d.fetch("undefined")), | |
| 9022 | - union: Union.from_dynamic!(d.fetch("union")), | |
| 9023 | - unowned: Unowned.from_dynamic!(d.fetch("unowned")), | |
| 9024 | - unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")), | |
| 9025 | - unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")), | |
| 9026 | - ushort: Ushort.from_dynamic!(d.fetch("ushort")), | |
| 9027 | - using: Using.from_dynamic!(d.fetch("using")), | |
| 9028 | - utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")), | |
| 9029 | - utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")), | |
| 9030 | - uuid: UUID.from_dynamic!(d.fetch("UUID")), | |
| 9031 | - var: Var.from_dynamic!(d.fetch("var")), | |
| 9032 | - virtual: Virtual.from_dynamic!(d.fetch("virtual")), | |
| 9033 | - ) | |
| 9034 | - end | |
| 9035 | - | |
| 9036 | - def self.from_json!(json) | |
| 9037 | - from_dynamic!(JSON.parse(json)) | |
| 9038 | - end | |
| 9039 | - | |
| 9040 | - def to_dynamic | |
| 9041 | - { | |
| 9042 | - "dummy" => dummy, | |
| 9043 | - "Self" => obj5_self.to_dynamic, | |
| 9044 | - "super" => obj5_super.to_dynamic, | |
| 9045 | - "system" => obj5_system.to_dynamic, | |
| 9046 | - "then" => obj5_then.to_dynamic, | |
| 9047 | - "throw" => obj5_throw.to_dynamic, | |
| 9048 | - "to_json" => obj5_to_json.to_dynamic, | |
| 9049 | - "True" => obj5_true.to_dynamic, | |
| 9050 | - "try" => obj5_try.to_dynamic, | |
| 9051 | - "Type" => obj5_type.to_dynamic, | |
| 9052 | - "self" => self_1.to_dynamic, | |
| 9053 | - "Sendable" => sendable.to_dynamic, | |
| 9054 | - "serialize" => serialize.to_dynamic, | |
| 9055 | - "SerializerProvider" => serializer_provider.to_dynamic, | |
| 9056 | - "set" => set.to_dynamic, | |
| 9057 | - "short" => short.to_dynamic, | |
| 9058 | - "signed" => signed.to_dynamic, | |
| 9059 | - "SimpleModule" => simple_module.to_dynamic, | |
| 9060 | - "sizeof" => sizeof.to_dynamic, | |
| 9061 | - "stackalloc" => stackalloc.to_dynamic, | |
| 9062 | - "Standards" => standards.to_dynamic, | |
| 9063 | - "static" => static.to_dynamic, | |
| 9064 | - "static_assert" => static_assert.to_dynamic, | |
| 9065 | - "static_cast" => static_cast.to_dynamic, | |
| 9066 | - "StdDeserializer" => std_deserializer.to_dynamic, | |
| 9067 | - "StdSerializer" => std_serializer.to_dynamic, | |
| 9068 | - "strictfp" => strictfp.to_dynamic, | |
| 9069 | - "string" => string.to_dynamic, | |
| 9070 | - "struct" => struct.to_dynamic, | |
| 9071 | - "subscript" => subscript.to_dynamic, | |
| 9072 | - "switch" => switch.to_dynamic, | |
| 9073 | - "symbol" => symbol.to_dynamic, | |
| 9074 | - "synchronized" => synchronized.to_dynamic, | |
| 9075 | - "template" => template.to_dynamic, | |
| 9076 | - "this" => this.to_dynamic, | |
| 9077 | - "thread_local" => thread_local.to_dynamic, | |
| 9078 | - "throws" => throws.to_dynamic, | |
| 9079 | - "TimeOnly" => time_only.to_dynamic, | |
| 9080 | - "TimeOnlyConverter" => time_only_converter.to_dynamic, | |
| 9081 | - "TimeZone" => time_zone.to_dynamic, | |
| 9082 | - "toString" => to_string.to_dynamic, | |
| 9083 | - "top_level" => top_level.to_dynamic, | |
| 9084 | - "transient" => transient.to_dynamic, | |
| 9085 | - "true" => true_1.to_dynamic, | |
| 9086 | - "type" => type_1.to_dynamic, | |
| 9087 | - "typealias" => typealias.to_dynamic, | |
| 9088 | - "typedef" => typedef.to_dynamic, | |
| 9089 | - "typeid" => typeid.to_dynamic, | |
| 9090 | - "typename" => typename.to_dynamic, | |
| 9091 | - "typeof" => typeof.to_dynamic, | |
| 9092 | - "uint" => uint.to_dynamic, | |
| 9093 | - "ulong" => ulong.to_dynamic, | |
| 9094 | - "unchecked" => unchecked.to_dynamic, | |
| 9095 | - "undefined" => undefined.to_dynamic, | |
| 9096 | - "union" => union.to_dynamic, | |
| 9097 | - "unowned" => unowned.to_dynamic, | |
| 9098 | - "unsafe" => unsafe.to_dynamic, | |
| 9099 | - "unsigned" => unsigned.to_dynamic, | |
| 9100 | - "ushort" => ushort.to_dynamic, | |
| 9101 | - "using" => using.to_dynamic, | |
| 9102 | - "Utf8JsonReader" => utf8_json_reader.to_dynamic, | |
| 9103 | - "Utf8JsonWriter" => utf8_json_writer.to_dynamic, | |
| 9104 | - "UUID" => uuid.to_dynamic, | |
| 9105 | - "var" => var.to_dynamic, | |
| 9106 | - "virtual" => virtual.to_dynamic, | |
| 9206 | + "Utf8JsonWriter" => utf8_json_writer, | |
| 9107 | 9207 | } |
| 9108 | 9208 | end |
| 9109 | 9209 | |
| @@ -9112,13 +9212,13 @@ class Obj5 < Dry::Struct | ||
| 9112 | 9212 | end |
| 9113 | 9213 | end |
| 9114 | 9214 | |
| 9115 | -class While < Dry::Struct | |
| 9116 | - attribute :while_while, Types::Integer | |
| 9215 | +class UUID < Dry::Struct | |
| 9216 | + attribute :uuid, Types::Integer | |
| 9117 | 9217 | |
| 9118 | 9218 | def self.from_dynamic!(d) |
| 9119 | 9219 | d = Types::Hash[d] |
| 9120 | 9220 | new( |
| 9121 | - while_while: d.fetch("while"), | |
| 9221 | + uuid: d.fetch("UUID"), | |
| 9122 | 9222 | ) |
| 9123 | 9223 | end |
| 9124 | 9224 | |
| @@ -9128,7 +9228,7 @@ class While < Dry::Struct | ||
| 9128 | 9228 | |
| 9129 | 9229 | def to_dynamic |
| 9130 | 9230 | { |
| 9131 | - "while" => while_while, | |
| 9231 | + "UUID" => uuid, | |
| 9132 | 9232 | } |
| 9133 | 9233 | end |
| 9134 | 9234 | |
| @@ -9137,13 +9237,13 @@ class While < Dry::Struct | ||
| 9137 | 9237 | end |
| 9138 | 9238 | end |
| 9139 | 9239 | |
| 9140 | -class With < Dry::Struct | |
| 9141 | - attribute :with_with, Types::Integer | |
| 9240 | +class Var < Dry::Struct | |
| 9241 | + attribute :var, Types::Integer | |
| 9142 | 9242 | |
| 9143 | 9243 | def self.from_dynamic!(d) |
| 9144 | 9244 | d = Types::Hash[d] |
| 9145 | 9245 | new( |
| 9146 | - with_with: d.fetch("with"), | |
| 9246 | + var: d.fetch("var"), | |
| 9147 | 9247 | ) |
| 9148 | 9248 | end |
| 9149 | 9249 | |
| @@ -9153,7 +9253,7 @@ class With < Dry::Struct | ||
| 9153 | 9253 | |
| 9154 | 9254 | def to_dynamic |
| 9155 | 9255 | { |
| 9156 | - "with" => with_with, | |
| 9256 | + "var" => var, | |
| 9157 | 9257 | } |
| 9158 | 9258 | end |
| 9159 | 9259 | |
| @@ -9162,13 +9262,13 @@ class With < Dry::Struct | ||
| 9162 | 9262 | end |
| 9163 | 9263 | end |
| 9164 | 9264 | |
| 9165 | -class Yield < Dry::Struct | |
| 9166 | - attribute :yield_yield, Types::Integer | |
| 9265 | +class Virtual < Dry::Struct | |
| 9266 | + attribute :virtual, Types::Integer | |
| 9167 | 9267 | |
| 9168 | 9268 | def self.from_dynamic!(d) |
| 9169 | 9269 | d = Types::Hash[d] |
| 9170 | 9270 | new( |
| 9171 | - yield_yield: d.fetch("yield"), | |
| 9271 | + virtual: d.fetch("virtual"), | |
| 9172 | 9272 | ) |
| 9173 | 9273 | end |
| 9174 | 9274 | |
| @@ -9178,7 +9278,7 @@ class Yield < Dry::Struct | ||
| 9178 | 9278 | |
| 9179 | 9279 | def to_dynamic |
| 9180 | 9280 | { |
| 9181 | - "yield" => yield_yield, | |
| 9281 | + "virtual" => virtual, | |
| 9182 | 9282 | } |
| 9183 | 9283 | end |
| 9184 | 9284 | |
| @@ -9413,58 +9513,70 @@ class Yes < Dry::Struct | ||
| 9413 | 9513 | end |
| 9414 | 9514 | |
| 9415 | 9515 | class Obj6 < Dry::Struct |
| 9416 | - attribute :dummy, Types::Integer | |
| 9417 | - attribute :obj6_while, While | |
| 9418 | - attribute :obj6_with, With | |
| 9419 | - attribute :obj6_yield, Yield | |
| 9420 | - attribute :void, Void | |
| 9421 | - attribute :volatile, Volatile | |
| 9422 | - attribute :wchar_t, WcharT | |
| 9423 | - attribute :weak, Weak | |
| 9424 | - attribute :where, Where | |
| 9425 | - attribute :will_set, WillSet | |
| 9426 | - attribute :xor, Xor | |
| 9427 | - attribute :xor_eq, XorEq | |
| 9428 | - attribute :yes, Yes | |
| 9516 | + attribute :dummy, Types::Integer | |
| 9517 | + attribute :obj6_while, While | |
| 9518 | + attribute :obj6_with, With | |
| 9519 | + attribute :obj6_yield, Yield | |
| 9520 | + attribute :utf8_json_writer, Utf8JSONWriter | |
| 9521 | + attribute :uuid, UUID | |
| 9522 | + attribute :var, Var | |
| 9523 | + attribute :virtual, Virtual | |
| 9524 | + attribute :void, Void | |
| 9525 | + attribute :volatile, Volatile | |
| 9526 | + attribute :wchar_t, WcharT | |
| 9527 | + attribute :weak, Weak | |
| 9528 | + attribute :where, Where | |
| 9529 | + attribute :will_set, WillSet | |
| 9530 | + attribute :xor, Xor | |
| 9531 | + attribute :xor_eq, XorEq | |
| 9532 | + attribute :yes, Yes | |
| 9429 | 9533 | |
| 9430 | 9534 | def self.from_dynamic!(d) |
| 9431 | 9535 | d = Types::Hash[d] |
| 9432 | 9536 | new( |
| 9433 | - dummy: d.fetch("dummy"), | |
| 9434 | - obj6_while: While.from_dynamic!(d.fetch("while")), | |
| 9435 | - obj6_with: With.from_dynamic!(d.fetch("with")), | |
| 9436 | - obj6_yield: Yield.from_dynamic!(d.fetch("yield")), | |
| 9437 | - void: Void.from_dynamic!(d.fetch("void")), | |
| 9438 | - volatile: Volatile.from_dynamic!(d.fetch("volatile")), | |
| 9439 | - wchar_t: WcharT.from_dynamic!(d.fetch("wchar_t")), | |
| 9440 | - weak: Weak.from_dynamic!(d.fetch("weak")), | |
| 9441 | - where: Where.from_dynamic!(d.fetch("where")), | |
| 9442 | - will_set: WillSet.from_dynamic!(d.fetch("willSet")), | |
| 9443 | - xor: Xor.from_dynamic!(d.fetch("xor")), | |
| 9444 | - xor_eq: XorEq.from_dynamic!(d.fetch("xor_eq")), | |
| 9445 | - yes: Yes.from_dynamic!(d.fetch("YES")), | |
| 9446 | - ) | |
| 9447 | - end | |
| 9448 | - | |
| 9449 | - def self.from_json!(json) | |
| 9450 | - from_dynamic!(JSON.parse(json)) | |
| 9451 | - end | |
| 9452 | - | |
| 9453 | - def to_dynamic | |
| 9454 | - { | |
| 9455 | - "dummy" => dummy, | |
| 9456 | - "while" => obj6_while.to_dynamic, | |
| 9457 | - "with" => obj6_with.to_dynamic, | |
| 9458 | - "yield" => obj6_yield.to_dynamic, | |
| 9459 | - "void" => void.to_dynamic, | |
| 9460 | - "volatile" => volatile.to_dynamic, | |
| 9461 | - "wchar_t" => wchar_t.to_dynamic, | |
| 9462 | - "weak" => weak.to_dynamic, | |
| 9463 | - "where" => where.to_dynamic, | |
| 9464 | - "willSet" => will_set.to_dynamic, | |
| 9465 | - "xor" => xor.to_dynamic, | |
| 9466 | - "xor_eq" => xor_eq.to_dynamic, | |
| 9467 | - "YES" => yes.to_dynamic, | |
| 9537 | + dummy: d.fetch("dummy"), | |
| 9538 | + obj6_while: While.from_dynamic!(d.fetch("while")), | |
| 9539 | + obj6_with: With.from_dynamic!(d.fetch("with")), | |
| 9540 | + obj6_yield: Yield.from_dynamic!(d.fetch("yield")), | |
| 9541 | + utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")), | |
| 9542 | + uuid: UUID.from_dynamic!(d.fetch("UUID")), | |
| 9543 | + var: Var.from_dynamic!(d.fetch("var")), | |
| 9544 | + virtual: Virtual.from_dynamic!(d.fetch("virtual")), | |
| 9545 | + void: Void.from_dynamic!(d.fetch("void")), | |
| 9546 | + volatile: Volatile.from_dynamic!(d.fetch("volatile")), | |
| 9547 | + wchar_t: WcharT.from_dynamic!(d.fetch("wchar_t")), | |
| 9548 | + weak: Weak.from_dynamic!(d.fetch("weak")), | |
| 9549 | + where: Where.from_dynamic!(d.fetch("where")), | |
| 9550 | + will_set: WillSet.from_dynamic!(d.fetch("willSet")), | |
| 9551 | + xor: Xor.from_dynamic!(d.fetch("xor")), | |
| 9552 | + xor_eq: XorEq.from_dynamic!(d.fetch("xor_eq")), | |
| 9553 | + yes: Yes.from_dynamic!(d.fetch("YES")), | |
| 9554 | + ) | |
| 9555 | + end | |
| 9556 | + | |
| 9557 | + def self.from_json!(json) | |
| 9558 | + from_dynamic!(JSON.parse(json)) | |
| 9559 | + end | |
| 9560 | + | |
| 9561 | + def to_dynamic | |
| 9562 | + { | |
| 9563 | + "dummy" => dummy, | |
| 9564 | + "while" => obj6_while.to_dynamic, | |
| 9565 | + "with" => obj6_with.to_dynamic, | |
| 9566 | + "yield" => obj6_yield.to_dynamic, | |
| 9567 | + "Utf8JsonWriter" => utf8_json_writer.to_dynamic, | |
| 9568 | + "UUID" => uuid.to_dynamic, | |
| 9569 | + "var" => var.to_dynamic, | |
| 9570 | + "virtual" => virtual.to_dynamic, | |
| 9571 | + "void" => void.to_dynamic, | |
| 9572 | + "volatile" => volatile.to_dynamic, | |
| 9573 | + "wchar_t" => wchar_t.to_dynamic, | |
| 9574 | + "weak" => weak.to_dynamic, | |
| 9575 | + "where" => where.to_dynamic, | |
| 9576 | + "willSet" => will_set.to_dynamic, | |
| 9577 | + "xor" => xor.to_dynamic, | |
| 9578 | + "xor_eq" => xor_eq.to_dynamic, | |
| 9579 | + "YES" => yes.to_dynamic, | |
| 9468 | 9580 | } |
| 9469 | 9581 | end |
Mrustdefault / module_under_test.rs+107 −71
| @@ -573,6 +573,9 @@ pub struct Obj2 { | ||
| 573 | 573 | |
| 574 | 574 | pub delete: Delete, |
| 575 | 575 | |
| 576 | + #[serde(rename = "DeserializationFeature")] | |
| 577 | + pub deserialization_feature: DeserializationFeature, | |
| 578 | + | |
| 576 | 579 | pub dict: Dict, |
| 577 | 580 | |
| 578 | 581 | pub dictionary: Dictionary, |
| @@ -651,8 +654,6 @@ pub struct Obj2 { | ||
| 651 | 654 | |
| 652 | 655 | pub go: Go, |
| 653 | 656 | |
| 654 | - pub goto: Goto, | |
| 655 | - | |
| 656 | 657 | #[serde(rename = "default")] |
| 657 | 658 | pub obj2_default: Default, |
| 658 | 659 | |
| @@ -783,6 +784,12 @@ pub struct Delete { | ||
| 783 | 784 | pub delete: i64, |
| 784 | 785 | } |
| 785 | 786 | |
| 787 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 788 | +#[serde(rename_all = "PascalCase")] | |
| 789 | +pub struct DeserializationFeature { | |
| 790 | + pub deserialization_feature: i64, | |
| 791 | +} | |
| 792 | + | |
| 786 | 793 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 787 | 794 | pub struct Dict { |
| 788 | 795 | pub dict: i64, |
| @@ -972,11 +979,6 @@ pub struct Go { | ||
| 972 | 979 | pub go: i64, |
| 973 | 980 | } |
| 974 | 981 | |
| 975 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 976 | -pub struct Goto { | |
| 977 | - pub goto: i64, | |
| 978 | -} | |
| 979 | - | |
| 980 | 982 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 981 | 983 | pub struct Default { |
| 982 | 984 | #[serde(rename = "default")] |
| @@ -1036,6 +1038,8 @@ pub struct FalseClass { | ||
| 1036 | 1038 | pub struct Obj3 { |
| 1037 | 1039 | pub dummy: i64, |
| 1038 | 1040 | |
| 1041 | + pub goto: Goto, | |
| 1042 | + | |
| 1039 | 1043 | pub guard: Guard, |
| 1040 | 1044 | |
| 1041 | 1045 | #[serde(rename = "hasOwnProperty")] |
| @@ -1176,8 +1180,6 @@ pub struct Obj3 { | ||
| 1176 | 1180 | #[serde(rename = "NO")] |
| 1177 | 1181 | pub no: No, |
| 1178 | 1182 | |
| 1179 | - pub noexcept: Noexcept, | |
| 1180 | - | |
| 1181 | 1183 | #[serde(rename = "if")] |
| 1182 | 1184 | pub obj3_if: If, |
| 1183 | 1185 | |
| @@ -1188,6 +1190,11 @@ pub struct Obj3 { | ||
| 1188 | 1190 | pub obj3_let: Let, |
| 1189 | 1191 | } |
| 1190 | 1192 | |
| 1193 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1194 | +pub struct Goto { | |
| 1195 | + pub goto: i64, | |
| 1196 | +} | |
| 1197 | + | |
| 1191 | 1198 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1192 | 1199 | pub struct Guard { |
| 1193 | 1200 | pub guard: i64, |
| @@ -1513,11 +1520,6 @@ pub struct No { | ||
| 1513 | 1520 | pub no: i64, |
| 1514 | 1521 | } |
| 1515 | 1522 | |
| 1516 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1517 | -pub struct Noexcept { | |
| 1518 | - pub noexcept: i64, | |
| 1519 | -} | |
| 1520 | - | |
| 1521 | 1523 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1522 | 1524 | pub struct If { |
| 1523 | 1525 | #[serde(rename = "if")] |
| @@ -1543,6 +1545,8 @@ pub struct Obj4 { | ||
| 1543 | 1545 | #[serde(rename = "noSuchMethod")] |
| 1544 | 1546 | pub no_such_method: NoSuchMethod, |
| 1545 | 1547 | |
| 1548 | + pub noexcept: Noexcept, | |
| 1549 | + | |
| 1546 | 1550 | pub nonatomic: Nonatomic, |
| 1547 | 1551 | |
| 1548 | 1552 | #[serde(rename = "None")] |
| @@ -1595,6 +1599,12 @@ pub struct Obj4 { | ||
| 1595 | 1599 | #[serde(rename = "ObjectMapper")] |
| 1596 | 1600 | pub object_mapper: ObjectMapper, |
| 1597 | 1601 | |
| 1602 | + #[serde(rename = "ObjectReader")] | |
| 1603 | + pub object_reader: ObjectReader, | |
| 1604 | + | |
| 1605 | + #[serde(rename = "ObjectWriter")] | |
| 1606 | + pub object_writer: ObjectWriter, | |
| 1607 | + | |
| 1598 | 1608 | pub of: Of, |
| 1599 | 1609 | |
| 1600 | 1610 | pub oneway: Oneway, |
| @@ -1678,13 +1688,6 @@ pub struct Obj4 { | ||
| 1678 | 1688 | pub s: S, |
| 1679 | 1689 | |
| 1680 | 1690 | pub sbyte: Sbyte, |
| 1681 | - | |
| 1682 | - pub sealed: Sealed, | |
| 1683 | - | |
| 1684 | - #[serde(rename = "SEL")] | |
| 1685 | - pub sel: Sel, | |
| 1686 | - | |
| 1687 | - pub select: Select, | |
| 1688 | 1691 | } |
| 1689 | 1692 | |
| 1690 | 1693 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| @@ -1693,6 +1696,11 @@ pub struct NoSuchMethod { | ||
| 1693 | 1696 | pub no_such_method: i64, |
| 1694 | 1697 | } |
| 1695 | 1698 | |
| 1699 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1700 | +pub struct Noexcept { | |
| 1701 | + pub noexcept: i64, | |
| 1702 | +} | |
| 1703 | + | |
| 1696 | 1704 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1697 | 1705 | pub struct Nonatomic { |
| 1698 | 1706 | pub nonatomic: i64, |
| @@ -1805,6 +1813,18 @@ pub struct ObjectMapper { | ||
| 1805 | 1813 | pub object_mapper: i64, |
| 1806 | 1814 | } |
| 1807 | 1815 | |
| 1816 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1817 | +#[serde(rename_all = "PascalCase")] | |
| 1818 | +pub struct ObjectReader { | |
| 1819 | + pub object_reader: i64, | |
| 1820 | +} | |
| 1821 | + | |
| 1822 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1823 | +#[serde(rename_all = "PascalCase")] | |
| 1824 | +pub struct ObjectWriter { | |
| 1825 | + pub object_writer: i64, | |
| 1826 | +} | |
| 1827 | + | |
| 1808 | 1828 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1809 | 1829 | pub struct Of { |
| 1810 | 1830 | pub of: i64, |
| @@ -2009,22 +2029,6 @@ pub struct Sbyte { | ||
| 2009 | 2029 | pub sbyte: i64, |
| 2010 | 2030 | } |
| 2011 | 2031 | |
| 2012 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2013 | -pub struct Sealed { | |
| 2014 | - pub sealed: i64, | |
| 2015 | -} | |
| 2016 | - | |
| 2017 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2018 | -#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2019 | -pub struct Sel { | |
| 2020 | - pub sel: i64, | |
| 2021 | -} | |
| 2022 | - | |
| 2023 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2024 | -pub struct Select { | |
| 2025 | - pub select: i64, | |
| 2026 | -} | |
| 2027 | - | |
| 2028 | 2032 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2029 | 2033 | pub struct Obj5 { |
| 2030 | 2034 | pub dummy: i64, |
| @@ -2059,9 +2063,6 @@ pub struct Obj5 { | ||
| 2059 | 2063 | #[serde(rename = "unsafe")] |
| 2060 | 2064 | pub obj5_unsafe: Unsafe, |
| 2061 | 2065 | |
| 2062 | - #[serde(rename = "virtual")] | |
| 2063 | - pub obj5_virtual: Virtual, | |
| 2064 | - | |
| 2065 | 2066 | #[serde(rename = "self")] |
| 2066 | 2067 | pub purple_self: Obj5Self, |
| 2067 | 2068 | |
| @@ -2071,9 +2072,19 @@ pub struct Obj5 { | ||
| 2071 | 2072 | #[serde(rename = "type")] |
| 2072 | 2073 | pub purple_type: TypeClass, |
| 2073 | 2074 | |
| 2075 | + pub sealed: Sealed, | |
| 2076 | + | |
| 2077 | + #[serde(rename = "SEL")] | |
| 2078 | + pub sel: Sel, | |
| 2079 | + | |
| 2080 | + pub select: Select, | |
| 2081 | + | |
| 2074 | 2082 | #[serde(rename = "Sendable")] |
| 2075 | 2083 | pub sendable: Sendable, |
| 2076 | 2084 | |
| 2085 | + #[serde(rename = "SerializationFeature")] | |
| 2086 | + pub serialization_feature: SerializationFeature, | |
| 2087 | + | |
| 2077 | 2088 | pub serialize: SerializeClass, |
| 2078 | 2089 | |
| 2079 | 2090 | #[serde(rename = "SerializerProvider")] |
| @@ -2175,14 +2186,6 @@ pub struct Obj5 { | ||
| 2175 | 2186 | |
| 2176 | 2187 | #[serde(rename = "Utf8JsonReader")] |
| 2177 | 2188 | pub utf8_json_reader: Utf8JsonReader, |
| 2178 | - | |
| 2179 | - #[serde(rename = "Utf8JsonWriter")] | |
| 2180 | - pub utf8_json_writer: Utf8JsonWriter, | |
| 2181 | - | |
| 2182 | - #[serde(rename = "UUID")] | |
| 2183 | - pub uuid: Uuid, | |
| 2184 | - | |
| 2185 | - pub var: Var, | |
| 2186 | 2189 | } |
| 2187 | 2190 | |
| 2188 | 2191 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| @@ -2248,12 +2251,6 @@ pub struct Unsafe { | ||
| 2248 | 2251 | pub unsafe_unsafe: i64, |
| 2249 | 2252 | } |
| 2250 | 2253 | |
| 2251 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2252 | -pub struct Virtual { | |
| 2253 | - #[serde(rename = "virtual")] | |
| 2254 | - pub virtual_virtual: i64, | |
| 2255 | -} | |
| 2256 | - | |
| 2257 | 2254 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2258 | 2255 | pub struct Obj5Self { |
| 2259 | 2256 | #[serde(rename = "self")] |
| @@ -2272,12 +2269,34 @@ pub struct TypeClass { | ||
| 2272 | 2269 | pub type_type: i64, |
| 2273 | 2270 | } |
| 2274 | 2271 | |
| 2272 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2273 | +pub struct Sealed { | |
| 2274 | + pub sealed: i64, | |
| 2275 | +} | |
| 2276 | + | |
| 2277 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2278 | +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2279 | +pub struct Sel { | |
| 2280 | + pub sel: i64, | |
| 2281 | +} | |
| 2282 | + | |
| 2283 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2284 | +pub struct Select { | |
| 2285 | + pub select: i64, | |
| 2286 | +} | |
| 2287 | + | |
| 2275 | 2288 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2276 | 2289 | #[serde(rename_all = "PascalCase")] |
| 2277 | 2290 | pub struct Sendable { |
| 2278 | 2291 | pub sendable: i64, |
| 2279 | 2292 | } |
| 2280 | 2293 | |
| 2294 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2295 | +#[serde(rename_all = "PascalCase")] | |
| 2296 | +pub struct SerializationFeature { | |
| 2297 | + pub serialization_feature: i64, | |
| 2298 | +} | |
| 2299 | + | |
| 2281 | 2300 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2282 | 2301 | pub struct SerializeClass { |
| 2283 | 2302 | pub serialize: i64, |
| @@ -2518,27 +2537,13 @@ pub struct Utf8JsonReader { | ||
| 2518 | 2537 | pub utf8_json_reader: i64, |
| 2519 | 2538 | } |
| 2520 | 2539 | |
| 2521 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2522 | -#[serde(rename_all = "PascalCase")] | |
| 2523 | -pub struct Utf8JsonWriter { | |
| 2524 | - pub utf8_json_writer: i64, | |
| 2525 | -} | |
| 2526 | - | |
| 2527 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2528 | -#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2529 | -pub struct Uuid { | |
| 2530 | - pub uuid: i64, | |
| 2531 | -} | |
| 2532 | - | |
| 2533 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2534 | -pub struct Var { | |
| 2535 | - pub var: i64, | |
| 2536 | -} | |
| 2537 | - | |
| 2538 | 2540 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2539 | 2541 | pub struct Obj6 { |
| 2540 | 2542 | pub dummy: i64, |
| 2541 | 2543 | |
| 2544 | + #[serde(rename = "virtual")] | |
| 2545 | + pub obj6_virtual: Virtual, | |
| 2546 | + | |
| 2542 | 2547 | #[serde(rename = "where")] |
| 2543 | 2548 | pub obj6_where: Where, |
| 2544 | 2549 | |
| @@ -2548,6 +2553,14 @@ pub struct Obj6 { | ||
| 2548 | 2553 | #[serde(rename = "yield")] |
| 2549 | 2554 | pub obj6_yield: Yield, |
| 2550 | 2555 | |
| 2556 | + #[serde(rename = "Utf8JsonWriter")] | |
| 2557 | + pub utf8_json_writer: Utf8JsonWriter, | |
| 2558 | + | |
| 2559 | + #[serde(rename = "UUID")] | |
| 2560 | + pub uuid: Uuid, | |
| 2561 | + | |
| 2562 | + pub var: Var, | |
| 2563 | + | |
| 2551 | 2564 | pub void: Void, |
| 2552 | 2565 | |
| 2553 | 2566 | pub volatile: Volatile, |
| @@ -2569,6 +2582,12 @@ pub struct Obj6 { | ||
| 2569 | 2582 | pub yes: Yes, |
| 2570 | 2583 | } |
| 2571 | 2584 | |
| 2585 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2586 | +pub struct Virtual { | |
| 2587 | + #[serde(rename = "virtual")] | |
| 2588 | + pub virtual_virtual: i64, | |
| 2589 | +} | |
| 2590 | + | |
| 2572 | 2591 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2573 | 2592 | pub struct Where { |
| 2574 | 2593 | #[serde(rename = "where")] |
| @@ -2587,6 +2606,23 @@ pub struct Yield { | ||
| 2587 | 2606 | pub yield_yield: i64, |
| 2588 | 2607 | } |
| 2589 | 2608 | |
| 2609 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2610 | +#[serde(rename_all = "PascalCase")] | |
| 2611 | +pub struct Utf8JsonWriter { | |
| 2612 | + pub utf8_json_writer: i64, | |
| 2613 | +} | |
| 2614 | + | |
| 2615 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2616 | +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2617 | +pub struct Uuid { | |
| 2618 | + pub uuid: i64, | |
| 2619 | +} | |
| 2620 | + | |
| 2621 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2622 | +pub struct Var { | |
| 2623 | + pub var: i64, | |
| 2624 | +} | |
| 2625 | + | |
| 2590 | 2626 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2591 | 2627 | pub struct Void { |
| 2592 | 2628 | pub void: i64, |
Mscala3-upickledefault / TopLevel.scala+67 −47
| @@ -436,6 +436,7 @@ case class Obj2 ( | ||
| 436 | 436 | val del : Del, |
| 437 | 437 | val delegate : Delegate, |
| 438 | 438 | val delete : Delete, |
| 439 | + val DeserializationFeature : DeserializationFeature, | |
| 439 | 440 | val dict : Dict, |
| 440 | 441 | val dictionary : Dictionary, |
| 441 | 442 | val didSet : DidSet, |
| @@ -470,7 +471,6 @@ case class Obj2 ( | ||
| 470 | 471 | val get : Get, |
| 471 | 472 | val global : Global, |
| 472 | 473 | val go : Go, |
| 473 | - val goto : Goto, | |
| 474 | 474 | val `def` : Def, |
| 475 | 475 | val `do` : Do, |
| 476 | 476 | val `else` : Else, |
| @@ -560,6 +560,10 @@ case class Delete ( | ||
| 560 | 560 | val delete : Long |
| 561 | 561 | ) derives OptionPickler.ReadWriter |
| 562 | 562 | |
| 563 | +case class DeserializationFeature ( | |
| 564 | + val DeserializationFeature : Long | |
| 565 | +) derives OptionPickler.ReadWriter | |
| 566 | + | |
| 563 | 567 | case class Dict ( |
| 564 | 568 | val dict : Long |
| 565 | 569 | ) derives OptionPickler.ReadWriter |
| @@ -708,10 +712,6 @@ case class Go ( | ||
| 708 | 712 | val go : Long |
| 709 | 713 | ) derives OptionPickler.ReadWriter |
| 710 | 714 | |
| 711 | -case class Goto ( | |
| 712 | - val goto : Long | |
| 713 | -) derives OptionPickler.ReadWriter | |
| 714 | - | |
| 715 | 715 | case class Def ( |
| 716 | 716 | val `def` : Long |
| 717 | 717 | ) derives OptionPickler.ReadWriter |
| @@ -758,6 +758,7 @@ case class FalseClass ( | ||
| 758 | 758 | |
| 759 | 759 | case class Obj3 ( |
| 760 | 760 | val dummy : Long, |
| 761 | + val goto : Goto, | |
| 761 | 762 | val guard : Guard, |
| 762 | 763 | val hasOwnProperty : HasOwnProperty, |
| 763 | 764 | @upickle.implicits.key("hashCode") |
| @@ -817,7 +818,6 @@ case class Obj3 ( | ||
| 817 | 818 | val newtonsoft : Newtonsoft, |
| 818 | 819 | val nil : Nil, |
| 819 | 820 | val NO : No, |
| 820 | - val noexcept : Noexcept, | |
| 821 | 821 | val `if` : If, |
| 822 | 822 | val `implicit` : Implicit, |
| 823 | 823 | val `import` : Import, |
| @@ -825,6 +825,10 @@ case class Obj3 ( | ||
| 825 | 825 | val `new` : New |
| 826 | 826 | ) derives OptionPickler.ReadWriter |
| 827 | 827 | |
| 828 | +case class Goto ( | |
| 829 | + val goto : Long | |
| 830 | +) derives OptionPickler.ReadWriter | |
| 831 | + | |
| 828 | 832 | case class Guard ( |
| 829 | 833 | val guard : Long |
| 830 | 834 | ) derives OptionPickler.ReadWriter |
| @@ -1058,10 +1062,6 @@ case class No ( | ||
| 1058 | 1062 | val NO : Long |
| 1059 | 1063 | ) derives OptionPickler.ReadWriter |
| 1060 | 1064 | |
| 1061 | -case class Noexcept ( | |
| 1062 | - val noexcept : Long | |
| 1063 | -) derives OptionPickler.ReadWriter | |
| 1064 | - | |
| 1065 | 1065 | case class If ( |
| 1066 | 1066 | val `if` : Long |
| 1067 | 1067 | ) derives OptionPickler.ReadWriter |
| @@ -1085,6 +1085,7 @@ case class New ( | ||
| 1085 | 1085 | case class Obj4 ( |
| 1086 | 1086 | val dummy : Long, |
| 1087 | 1087 | val noSuchMethod : NoSuchMethod, |
| 1088 | + val noexcept : Noexcept, | |
| 1088 | 1089 | val nonatomic : Nonatomic, |
| 1089 | 1090 | val None : NoneClass, |
| 1090 | 1091 | val nonlocal : Nonlocal, |
| @@ -1106,8 +1107,9 @@ case class Obj4 ( | ||
| 1106 | 1107 | val `protected` : Protected, |
| 1107 | 1108 | val protocol : ProtocolClass, |
| 1108 | 1109 | val `return` : Return, |
| 1109 | - val `sealed` : Sealed, | |
| 1110 | 1110 | val ObjectMapper : ObjectMapper, |
| 1111 | + val ObjectReader : ObjectReader, | |
| 1112 | + val ObjectWriter : ObjectWriter, | |
| 1111 | 1113 | val of : Of, |
| 1112 | 1114 | val oneway : Oneway, |
| 1113 | 1115 | val open : Open, |
| @@ -1145,15 +1147,17 @@ case class Obj4 ( | ||
| 1145 | 1147 | val right : Right, |
| 1146 | 1148 | val runtimeType : RuntimeType, |
| 1147 | 1149 | val s : S, |
| 1148 | - val sbyte : Sbyte, | |
| 1149 | - val SEL : Sel, | |
| 1150 | - val select : Select | |
| 1150 | + val sbyte : Sbyte | |
| 1151 | 1151 | ) derives OptionPickler.ReadWriter |
| 1152 | 1152 | |
| 1153 | 1153 | case class NoSuchMethod ( |
| 1154 | 1154 | val noSuchMethod : Long |
| 1155 | 1155 | ) derives OptionPickler.ReadWriter |
| 1156 | 1156 | |
| 1157 | +case class Noexcept ( | |
| 1158 | + val noexcept : Long | |
| 1159 | +) derives OptionPickler.ReadWriter | |
| 1160 | + | |
| 1157 | 1161 | case class Nonatomic ( |
| 1158 | 1162 | val nonatomic : Long |
| 1159 | 1163 | ) derives OptionPickler.ReadWriter |
| @@ -1238,14 +1242,18 @@ case class Return ( | ||
| 1238 | 1242 | val `return` : Long |
| 1239 | 1243 | ) derives OptionPickler.ReadWriter |
| 1240 | 1244 | |
| 1241 | -case class Sealed ( | |
| 1242 | - val `sealed` : Long | |
| 1243 | -) derives OptionPickler.ReadWriter | |
| 1244 | - | |
| 1245 | 1245 | case class ObjectMapper ( |
| 1246 | 1246 | val ObjectMapper : Long |
| 1247 | 1247 | ) derives OptionPickler.ReadWriter |
| 1248 | 1248 | |
| 1249 | +case class ObjectReader ( | |
| 1250 | + val ObjectReader : Long | |
| 1251 | +) derives OptionPickler.ReadWriter | |
| 1252 | + | |
| 1253 | +case class ObjectWriter ( | |
| 1254 | + val ObjectWriter : Long | |
| 1255 | +) derives OptionPickler.ReadWriter | |
| 1256 | + | |
| 1249 | 1257 | case class Of ( |
| 1250 | 1258 | val of : Long |
| 1251 | 1259 | ) derives OptionPickler.ReadWriter |
| @@ -1398,16 +1406,9 @@ case class Sbyte ( | ||
| 1398 | 1406 | val sbyte : Long |
| 1399 | 1407 | ) derives OptionPickler.ReadWriter |
| 1400 | 1408 | |
| 1401 | -case class Sel ( | |
| 1402 | - val SEL : Long | |
| 1403 | -) derives OptionPickler.ReadWriter | |
| 1404 | - | |
| 1405 | -case class Select ( | |
| 1406 | - val select : Long | |
| 1407 | -) derives OptionPickler.ReadWriter | |
| 1408 | - | |
| 1409 | 1409 | case class Obj5 ( |
| 1410 | 1410 | val dummy : Long, |
| 1411 | + val `sealed` : Sealed, | |
| 1411 | 1412 | val self : SelfClass, |
| 1412 | 1413 | val `super` : Super, |
| 1413 | 1414 | val `then` : Then, |
| @@ -1416,11 +1417,13 @@ case class Obj5 ( | ||
| 1416 | 1417 | val True : True, |
| 1417 | 1418 | val `try` : Try, |
| 1418 | 1419 | val Type : Type, |
| 1419 | - val `var` : Var, | |
| 1420 | 1420 | val `true` : TrueClass, |
| 1421 | 1421 | val `type` : TypeClass, |
| 1422 | + val SEL : Sel, | |
| 1423 | + val select : Select, | |
| 1422 | 1424 | val Self : Self, |
| 1423 | 1425 | val Sendable : Sendable, |
| 1426 | + val SerializationFeature : SerializationFeature, | |
| 1424 | 1427 | val serialize : Serialize, |
| 1425 | 1428 | val SerializerProvider : SerializerProvider, |
| 1426 | 1429 | val set : Set, |
| @@ -1470,10 +1473,11 @@ case class Obj5 ( | ||
| 1470 | 1473 | val unsigned : Unsigned, |
| 1471 | 1474 | val ushort : Ushort, |
| 1472 | 1475 | val using : Using, |
| 1473 | - val Utf8JsonReader : Utf8JSONReader, | |
| 1474 | - val Utf8JsonWriter : Utf8JSONWriter, | |
| 1475 | - val UUID : UUID, | |
| 1476 | - val virtual : Virtual | |
| 1476 | + val Utf8JsonReader : Utf8JSONReader | |
| 1477 | +) derives OptionPickler.ReadWriter | |
| 1478 | + | |
| 1479 | +case class Sealed ( | |
| 1480 | + val `sealed` : Long | |
| 1477 | 1481 | ) derives OptionPickler.ReadWriter |
| 1478 | 1482 | |
| 1479 | 1483 | case class SelfClass ( |
| @@ -1508,10 +1512,6 @@ case class Type ( | ||
| 1508 | 1512 | val Type : Long |
| 1509 | 1513 | ) derives OptionPickler.ReadWriter |
| 1510 | 1514 | |
| 1511 | -case class Var ( | |
| 1512 | - val `var` : Long | |
| 1513 | -) derives OptionPickler.ReadWriter | |
| 1514 | - | |
| 1515 | 1515 | case class TrueClass ( |
| 1516 | 1516 | val `true` : Long |
| 1517 | 1517 | ) derives OptionPickler.ReadWriter |
| @@ -1520,6 +1520,14 @@ case class TypeClass ( | ||
| 1520 | 1520 | val `type` : Long |
| 1521 | 1521 | ) derives OptionPickler.ReadWriter |
| 1522 | 1522 | |
| 1523 | +case class Sel ( | |
| 1524 | + val SEL : Long | |
| 1525 | +) derives OptionPickler.ReadWriter | |
| 1526 | + | |
| 1527 | +case class Select ( | |
| 1528 | + val select : Long | |
| 1529 | +) derives OptionPickler.ReadWriter | |
| 1530 | + | |
| 1523 | 1531 | case class Self ( |
| 1524 | 1532 | val Self : Long |
| 1525 | 1533 | ) derives OptionPickler.ReadWriter |
| @@ -1528,6 +1536,10 @@ case class Sendable ( | ||
| 1528 | 1536 | val Sendable : Long |
| 1529 | 1537 | ) derives OptionPickler.ReadWriter |
| 1530 | 1538 | |
| 1539 | +case class SerializationFeature ( | |
| 1540 | + val SerializationFeature : Long | |
| 1541 | +) derives OptionPickler.ReadWriter | |
| 1542 | + | |
| 1531 | 1543 | case class Serialize ( |
| 1532 | 1544 | val serialize : Long |
| 1533 | 1545 | ) derives OptionPickler.ReadWriter |
| @@ -1722,23 +1734,15 @@ case class Utf8JSONReader ( | ||
| 1722 | 1734 | val Utf8JsonReader : Long |
| 1723 | 1735 | ) derives OptionPickler.ReadWriter |
| 1724 | 1736 | |
| 1725 | -case class Utf8JSONWriter ( | |
| 1726 | - val Utf8JsonWriter : Long | |
| 1727 | -) derives OptionPickler.ReadWriter | |
| 1728 | - | |
| 1729 | -case class UUID ( | |
| 1730 | - val UUID : Long | |
| 1731 | -) derives OptionPickler.ReadWriter | |
| 1732 | - | |
| 1733 | -case class Virtual ( | |
| 1734 | - val virtual : Long | |
| 1735 | -) derives OptionPickler.ReadWriter | |
| 1736 | - | |
| 1737 | 1737 | case class Obj6 ( |
| 1738 | 1738 | val dummy : Long, |
| 1739 | + val `var` : Var, | |
| 1739 | 1740 | val `while` : While, |
| 1740 | 1741 | val `with` : With, |
| 1741 | 1742 | val `yield` : Yield, |
| 1743 | + val Utf8JsonWriter : Utf8JSONWriter, | |
| 1744 | + val UUID : UUID, | |
| 1745 | + val virtual : Virtual, | |
| 1742 | 1746 | val void : Void, |
| 1743 | 1747 | val volatile : Volatile, |
| 1744 | 1748 | val wchar_t : WcharT, |
| @@ -1750,6 +1754,10 @@ case class Obj6 ( | ||
| 1750 | 1754 | val YES : Yes |
| 1751 | 1755 | ) derives OptionPickler.ReadWriter |
| 1752 | 1756 | |
| 1757 | +case class Var ( | |
| 1758 | + val `var` : Long | |
| 1759 | +) derives OptionPickler.ReadWriter | |
| 1760 | + | |
| 1753 | 1761 | case class While ( |
| 1754 | 1762 | val `while` : Long |
| 1755 | 1763 | ) derives OptionPickler.ReadWriter |
| @@ -1762,6 +1770,18 @@ case class Yield ( | ||
| 1762 | 1770 | val `yield` : Long |
| 1763 | 1771 | ) derives OptionPickler.ReadWriter |
| 1764 | 1772 | |
| 1773 | +case class Utf8JSONWriter ( | |
| 1774 | + val Utf8JsonWriter : Long | |
| 1775 | +) derives OptionPickler.ReadWriter | |
| 1776 | + | |
| 1777 | +case class UUID ( | |
| 1778 | + val UUID : Long | |
| 1779 | +) derives OptionPickler.ReadWriter | |
| 1780 | + | |
| 1781 | +case class Virtual ( | |
| 1782 | + val virtual : Long | |
| 1783 | +) derives OptionPickler.ReadWriter | |
| 1784 | + | |
| 1765 | 1785 | case class Void ( |
| 1766 | 1786 | val void : Long |
| 1767 | 1787 | ) derives OptionPickler.ReadWriter |
Mscala3default / TopLevel.scala+67 −47
| @@ -389,6 +389,7 @@ case class Obj2 ( | ||
| 389 | 389 | val del : Del, |
| 390 | 390 | val delegate : Delegate, |
| 391 | 391 | val delete : Delete, |
| 392 | + val DeserializationFeature : DeserializationFeature, | |
| 392 | 393 | val dict : Dict, |
| 393 | 394 | val dictionary : Dictionary, |
| 394 | 395 | val didSet : DidSet, |
| @@ -423,7 +424,6 @@ case class Obj2 ( | ||
| 423 | 424 | val get : Get, |
| 424 | 425 | val global : Global, |
| 425 | 426 | val go : Go, |
| 426 | - val goto : Goto, | |
| 427 | 427 | val `def` : Def, |
| 428 | 428 | val `do` : Do, |
| 429 | 429 | val `else` : Else, |
| @@ -513,6 +513,10 @@ case class Delete ( | ||
| 513 | 513 | val delete : Long |
| 514 | 514 | ) derives Encoder.AsObject, Decoder |
| 515 | 515 | |
| 516 | +case class DeserializationFeature ( | |
| 517 | + val DeserializationFeature : Long | |
| 518 | +) derives Encoder.AsObject, Decoder | |
| 519 | + | |
| 516 | 520 | case class Dict ( |
| 517 | 521 | val dict : Long |
| 518 | 522 | ) derives Encoder.AsObject, Decoder |
| @@ -659,10 +663,6 @@ case class Go ( | ||
| 659 | 663 | val go : Long |
| 660 | 664 | ) derives Encoder.AsObject, Decoder |
| 661 | 665 | |
| 662 | -case class Goto ( | |
| 663 | - val goto : Long | |
| 664 | -) derives Encoder.AsObject, Decoder | |
| 665 | - | |
| 666 | 666 | case class Def ( |
| 667 | 667 | val `def` : Long |
| 668 | 668 | ) derives Encoder.AsObject, Decoder |
| @@ -709,6 +709,7 @@ case class FalseClass ( | ||
| 709 | 709 | |
| 710 | 710 | case class Obj3 ( |
| 711 | 711 | val dummy : Long, |
| 712 | + val goto : Goto, | |
| 712 | 713 | val guard : Guard, |
| 713 | 714 | val hasOwnProperty : HasOwnProperty, |
| 714 | 715 | val hashCodeValue : HashCode, |
| @@ -767,7 +768,6 @@ case class Obj3 ( | ||
| 767 | 768 | val newtonsoft : Newtonsoft, |
| 768 | 769 | val nil : Nil, |
| 769 | 770 | val NO : No, |
| 770 | - val noexcept : Noexcept, | |
| 771 | 771 | val `if` : If, |
| 772 | 772 | val `implicit` : Implicit, |
| 773 | 773 | val `import` : Import, |
| @@ -784,6 +784,10 @@ object Obj3: | ||
| 784 | 784 | ) |
| 785 | 785 | given io.circe.Codec.AsObject[Obj3] = io.circe.derivation.ConfiguredCodec.derived |
| 786 | 786 | |
| 787 | +case class Goto ( | |
| 788 | + val goto : Long | |
| 789 | +) derives Encoder.AsObject, Decoder | |
| 790 | + | |
| 787 | 791 | case class Guard ( |
| 788 | 792 | val guard : Long |
| 789 | 793 | ) derives Encoder.AsObject, Decoder |
| @@ -1025,10 +1029,6 @@ case class No ( | ||
| 1025 | 1029 | val NO : Long |
| 1026 | 1030 | ) derives Encoder.AsObject, Decoder |
| 1027 | 1031 | |
| 1028 | -case class Noexcept ( | |
| 1029 | - val noexcept : Long | |
| 1030 | -) derives Encoder.AsObject, Decoder | |
| 1031 | - | |
| 1032 | 1032 | case class If ( |
| 1033 | 1033 | val `if` : Long |
| 1034 | 1034 | ) derives Encoder.AsObject, Decoder |
| @@ -1052,6 +1052,7 @@ case class New ( | ||
| 1052 | 1052 | case class Obj4 ( |
| 1053 | 1053 | val dummy : Long, |
| 1054 | 1054 | val noSuchMethod : NoSuchMethod, |
| 1055 | + val noexcept : Noexcept, | |
| 1055 | 1056 | val nonatomic : Nonatomic, |
| 1056 | 1057 | val None : NoneClass, |
| 1057 | 1058 | val nonlocal : Nonlocal, |
| @@ -1073,8 +1074,9 @@ case class Obj4 ( | ||
| 1073 | 1074 | val `protected` : Protected, |
| 1074 | 1075 | val protocol : ProtocolClass, |
| 1075 | 1076 | val `return` : Return, |
| 1076 | - val `sealed` : Sealed, | |
| 1077 | 1077 | val ObjectMapper : ObjectMapper, |
| 1078 | + val ObjectReader : ObjectReader, | |
| 1079 | + val ObjectWriter : ObjectWriter, | |
| 1078 | 1080 | val of : Of, |
| 1079 | 1081 | val oneway : Oneway, |
| 1080 | 1082 | val open : Open, |
| @@ -1112,15 +1114,17 @@ case class Obj4 ( | ||
| 1112 | 1114 | val right : Right, |
| 1113 | 1115 | val runtimeType : RuntimeType, |
| 1114 | 1116 | val s : S, |
| 1115 | - val sbyte : Sbyte, | |
| 1116 | - val SEL : Sel, | |
| 1117 | - val select : Select | |
| 1117 | + val sbyte : Sbyte | |
| 1118 | 1118 | ) derives Encoder.AsObject, Decoder |
| 1119 | 1119 | |
| 1120 | 1120 | case class NoSuchMethod ( |
| 1121 | 1121 | val noSuchMethod : Long |
| 1122 | 1122 | ) derives Encoder.AsObject, Decoder |
| 1123 | 1123 | |
| 1124 | +case class Noexcept ( | |
| 1125 | + val noexcept : Long | |
| 1126 | +) derives Encoder.AsObject, Decoder | |
| 1127 | + | |
| 1124 | 1128 | case class Nonatomic ( |
| 1125 | 1129 | val nonatomic : Long |
| 1126 | 1130 | ) derives Encoder.AsObject, Decoder |
| @@ -1205,14 +1209,18 @@ case class Return ( | ||
| 1205 | 1209 | val `return` : Long |
| 1206 | 1210 | ) derives Encoder.AsObject, Decoder |
| 1207 | 1211 | |
| 1208 | -case class Sealed ( | |
| 1209 | - val `sealed` : Long | |
| 1210 | -) derives Encoder.AsObject, Decoder | |
| 1211 | - | |
| 1212 | 1212 | case class ObjectMapper ( |
| 1213 | 1213 | val ObjectMapper : Long |
| 1214 | 1214 | ) derives Encoder.AsObject, Decoder |
| 1215 | 1215 | |
| 1216 | +case class ObjectReader ( | |
| 1217 | + val ObjectReader : Long | |
| 1218 | +) derives Encoder.AsObject, Decoder | |
| 1219 | + | |
| 1220 | +case class ObjectWriter ( | |
| 1221 | + val ObjectWriter : Long | |
| 1222 | +) derives Encoder.AsObject, Decoder | |
| 1223 | + | |
| 1216 | 1224 | case class Of ( |
| 1217 | 1225 | val of : Long |
| 1218 | 1226 | ) derives Encoder.AsObject, Decoder |
| @@ -1365,16 +1373,9 @@ case class Sbyte ( | ||
| 1365 | 1373 | val sbyte : Long |
| 1366 | 1374 | ) derives Encoder.AsObject, Decoder |
| 1367 | 1375 | |
| 1368 | -case class Sel ( | |
| 1369 | - val SEL : Long | |
| 1370 | -) derives Encoder.AsObject, Decoder | |
| 1371 | - | |
| 1372 | -case class Select ( | |
| 1373 | - val select : Long | |
| 1374 | -) derives Encoder.AsObject, Decoder | |
| 1375 | - | |
| 1376 | 1376 | case class Obj5 ( |
| 1377 | 1377 | val dummy : Long, |
| 1378 | + val `sealed` : Sealed, | |
| 1378 | 1379 | val self : SelfClass, |
| 1379 | 1380 | val `super` : Super, |
| 1380 | 1381 | val `then` : Then, |
| @@ -1383,11 +1384,13 @@ case class Obj5 ( | ||
| 1383 | 1384 | val True : True, |
| 1384 | 1385 | val `try` : Try, |
| 1385 | 1386 | val Type : Type, |
| 1386 | - val `var` : Var, | |
| 1387 | 1387 | val `true` : TrueClass, |
| 1388 | 1388 | val `type` : TypeClass, |
| 1389 | + val SEL : Sel, | |
| 1390 | + val select : Select, | |
| 1389 | 1391 | val Self : Self, |
| 1390 | 1392 | val Sendable : Sendable, |
| 1393 | + val SerializationFeature : SerializationFeature, | |
| 1391 | 1394 | val serialize : Serialize, |
| 1392 | 1395 | val SerializerProvider : SerializerProvider, |
| 1393 | 1396 | val set : Set, |
| @@ -1435,10 +1438,7 @@ case class Obj5 ( | ||
| 1435 | 1438 | val unsigned : Unsigned, |
| 1436 | 1439 | val ushort : Ushort, |
| 1437 | 1440 | val using : Using, |
| 1438 | - val Utf8JsonReader : Utf8JSONReader, | |
| 1439 | - val Utf8JsonWriter : Utf8JSONWriter, | |
| 1440 | - val UUID : UUID, | |
| 1441 | - val virtual : Virtual | |
| 1441 | + val Utf8JsonReader : Utf8JSONReader | |
| 1442 | 1442 | ) |
| 1443 | 1443 | |
| 1444 | 1444 | object Obj5: |
| @@ -1451,6 +1451,10 @@ object Obj5: | ||
| 1451 | 1451 | ) |
| 1452 | 1452 | given io.circe.Codec.AsObject[Obj5] = io.circe.derivation.ConfiguredCodec.derived |
| 1453 | 1453 | |
| 1454 | +case class Sealed ( | |
| 1455 | + val `sealed` : Long | |
| 1456 | +) derives Encoder.AsObject, Decoder | |
| 1457 | + | |
| 1454 | 1458 | case class SelfClass ( |
| 1455 | 1459 | val self : Long |
| 1456 | 1460 | ) derives Encoder.AsObject, Decoder |
| @@ -1483,10 +1487,6 @@ case class Type ( | ||
| 1483 | 1487 | val Type : Long |
| 1484 | 1488 | ) derives Encoder.AsObject, Decoder |
| 1485 | 1489 | |
| 1486 | -case class Var ( | |
| 1487 | - val `var` : Long | |
| 1488 | -) derives Encoder.AsObject, Decoder | |
| 1489 | - | |
| 1490 | 1490 | case class TrueClass ( |
| 1491 | 1491 | val `true` : Long |
| 1492 | 1492 | ) derives Encoder.AsObject, Decoder |
| @@ -1495,6 +1495,14 @@ case class TypeClass ( | ||
| 1495 | 1495 | val `type` : Long |
| 1496 | 1496 | ) derives Encoder.AsObject, Decoder |
| 1497 | 1497 | |
| 1498 | +case class Sel ( | |
| 1499 | + val SEL : Long | |
| 1500 | +) derives Encoder.AsObject, Decoder | |
| 1501 | + | |
| 1502 | +case class Select ( | |
| 1503 | + val select : Long | |
| 1504 | +) derives Encoder.AsObject, Decoder | |
| 1505 | + | |
| 1498 | 1506 | case class Self ( |
| 1499 | 1507 | val Self : Long |
| 1500 | 1508 | ) derives Encoder.AsObject, Decoder |
| @@ -1503,6 +1511,10 @@ case class Sendable ( | ||
| 1503 | 1511 | val Sendable : Long |
| 1504 | 1512 | ) derives Encoder.AsObject, Decoder |
| 1505 | 1513 | |
| 1514 | +case class SerializationFeature ( | |
| 1515 | + val SerializationFeature : Long | |
| 1516 | +) derives Encoder.AsObject, Decoder | |
| 1517 | + | |
| 1506 | 1518 | case class Serialize ( |
| 1507 | 1519 | val serialize : Long |
| 1508 | 1520 | ) derives Encoder.AsObject, Decoder |
| @@ -1713,23 +1725,15 @@ case class Utf8JSONReader ( | ||
| 1713 | 1725 | val Utf8JsonReader : Long |
| 1714 | 1726 | ) derives Encoder.AsObject, Decoder |
| 1715 | 1727 | |
| 1716 | -case class Utf8JSONWriter ( | |
| 1717 | - val Utf8JsonWriter : Long | |
| 1718 | -) derives Encoder.AsObject, Decoder | |
| 1719 | - | |
| 1720 | -case class UUID ( | |
| 1721 | - val UUID : Long | |
| 1722 | -) derives Encoder.AsObject, Decoder | |
| 1723 | - | |
| 1724 | -case class Virtual ( | |
| 1725 | - val virtual : Long | |
| 1726 | -) derives Encoder.AsObject, Decoder | |
| 1727 | - | |
| 1728 | 1728 | case class Obj6 ( |
| 1729 | 1729 | val dummy : Long, |
| 1730 | + val `var` : Var, | |
| 1730 | 1731 | val `while` : While, |
| 1731 | 1732 | val `with` : With, |
| 1732 | 1733 | val `yield` : Yield, |
| 1734 | + val Utf8JsonWriter : Utf8JSONWriter, | |
| 1735 | + val UUID : UUID, | |
| 1736 | + val virtual : Virtual, | |
| 1733 | 1737 | val void : Void, |
| 1734 | 1738 | val volatile : Volatile, |
| 1735 | 1739 | val wchar_t : WcharT, |
| @@ -1741,6 +1745,10 @@ case class Obj6 ( | ||
| 1741 | 1745 | val YES : Yes |
| 1742 | 1746 | ) derives Encoder.AsObject, Decoder |
| 1743 | 1747 | |
| 1748 | +case class Var ( | |
| 1749 | + val `var` : Long | |
| 1750 | +) derives Encoder.AsObject, Decoder | |
| 1751 | + | |
| 1744 | 1752 | case class While ( |
| 1745 | 1753 | val `while` : Long |
| 1746 | 1754 | ) derives Encoder.AsObject, Decoder |
| @@ -1753,6 +1761,18 @@ case class Yield ( | ||
| 1753 | 1761 | val `yield` : Long |
| 1754 | 1762 | ) derives Encoder.AsObject, Decoder |
| 1755 | 1763 | |
| 1764 | +case class Utf8JSONWriter ( | |
| 1765 | + val Utf8JsonWriter : Long | |
| 1766 | +) derives Encoder.AsObject, Decoder | |
| 1767 | + | |
| 1768 | +case class UUID ( | |
| 1769 | + val UUID : Long | |
| 1770 | +) derives Encoder.AsObject, Decoder | |
| 1771 | + | |
| 1772 | +case class Virtual ( | |
| 1773 | + val virtual : Long | |
| 1774 | +) derives Encoder.AsObject, Decoder | |
| 1775 | + | |
| 1756 | 1776 | case class Void ( |
| 1757 | 1777 | val void : Long |
| 1758 | 1778 | ) derives Encoder.AsObject, Decoder |
Mswiftdefault / quicktype.swift+636 −444
| @@ -3208,6 +3208,7 @@ struct Obj2: Codable { | ||
| 3208 | 3208 | let del: Del |
| 3209 | 3209 | let delegate: Delegate |
| 3210 | 3210 | let delete: Delete |
| 3211 | + let deserializationFeature: DeserializationFeature | |
| 3211 | 3212 | let dict: Dict |
| 3212 | 3213 | let dictionary: Dictionary |
| 3213 | 3214 | let double: DoubleClass |
| @@ -3238,7 +3239,6 @@ struct Obj2: Codable { | ||
| 3238 | 3239 | let function: Function |
| 3239 | 3240 | let global: Global |
| 3240 | 3241 | let go: Go |
| 3241 | - let goto: Goto | |
| 3242 | 3242 | let obj2Default: Default |
| 3243 | 3243 | let obj2Defer: Defer |
| 3244 | 3244 | let obj2Deinit: Deinit |
| @@ -3275,6 +3275,7 @@ struct Obj2: Codable { | ||
| 3275 | 3275 | case del = "del" |
| 3276 | 3276 | case delegate = "delegate" |
| 3277 | 3277 | case delete = "delete" |
| 3278 | + case deserializationFeature = "DeserializationFeature" | |
| 3278 | 3279 | case dict = "dict" |
| 3279 | 3280 | case dictionary = "dictionary" |
| 3280 | 3281 | case double = "double" |
| @@ -3305,7 +3306,6 @@ struct Obj2: Codable { | ||
| 3305 | 3306 | case function = "function" |
| 3306 | 3307 | case global = "global" |
| 3307 | 3308 | case go = "go" |
| 3308 | - case goto = "goto" | |
| 3309 | 3309 | case obj2Default = "default" |
| 3310 | 3310 | case obj2Defer = "defer" |
| 3311 | 3311 | case obj2Deinit = "deinit" |
| @@ -3362,6 +3362,7 @@ extension Obj2 { | ||
| 3362 | 3362 | del: Del? = nil, |
| 3363 | 3363 | delegate: Delegate? = nil, |
| 3364 | 3364 | delete: Delete? = nil, |
| 3365 | + deserializationFeature: DeserializationFeature? = nil, | |
| 3365 | 3366 | dict: Dict? = nil, |
| 3366 | 3367 | dictionary: Dictionary? = nil, |
| 3367 | 3368 | double: DoubleClass? = nil, |
| @@ -3392,7 +3393,6 @@ extension Obj2 { | ||
| 3392 | 3393 | function: Function? = nil, |
| 3393 | 3394 | global: Global? = nil, |
| 3394 | 3395 | go: Go? = nil, |
| 3395 | - goto: Goto? = nil, | |
| 3396 | 3396 | obj2Default: Default? = nil, |
| 3397 | 3397 | obj2Defer: Defer? = nil, |
| 3398 | 3398 | obj2Deinit: Deinit? = nil, |
| @@ -3429,6 +3429,7 @@ extension Obj2 { | ||
| 3429 | 3429 | del: del ?? self.del, |
| 3430 | 3430 | delegate: delegate ?? self.delegate, |
| 3431 | 3431 | delete: delete ?? self.delete, |
| 3432 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature, | |
| 3432 | 3433 | dict: dict ?? self.dict, |
| 3433 | 3434 | dictionary: dictionary ?? self.dictionary, |
| 3434 | 3435 | double: double ?? self.double, |
| @@ -3459,7 +3460,6 @@ extension Obj2 { | ||
| 3459 | 3460 | function: function ?? self.function, |
| 3460 | 3461 | global: global ?? self.global, |
| 3461 | 3462 | go: go ?? self.go, |
| 3462 | - goto: goto ?? self.goto, | |
| 3463 | 3463 | obj2Default: obj2Default ?? self.obj2Default, |
| 3464 | 3464 | obj2Defer: obj2Defer ?? self.obj2Defer, |
| 3465 | 3465 | obj2Deinit: obj2Deinit ?? self.obj2Deinit, |
| @@ -4237,6 +4237,50 @@ extension Delete { | ||
| 4237 | 4237 | } |
| 4238 | 4238 | } |
| 4239 | 4239 | |
| 4240 | +// MARK: - DeserializationFeature | |
| 4241 | +struct DeserializationFeature: Codable { | |
| 4242 | + let deserializationFeature: Int | |
| 4243 | + | |
| 4244 | + enum CodingKeys: String, CodingKey { | |
| 4245 | + case deserializationFeature = "DeserializationFeature" | |
| 4246 | + } | |
| 4247 | +} | |
| 4248 | + | |
| 4249 | +// MARK: DeserializationFeature convenience initializers and mutators | |
| 4250 | + | |
| 4251 | +extension DeserializationFeature { | |
| 4252 | + init(data: Data) throws { | |
| 4253 | + self = try newJSONDecoder().decode(DeserializationFeature.self, from: data) | |
| 4254 | + } | |
| 4255 | + | |
| 4256 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 4257 | + guard let data = json.data(using: encoding) else { | |
| 4258 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 4259 | + } | |
| 4260 | + try self.init(data: data) | |
| 4261 | + } | |
| 4262 | + | |
| 4263 | + init(fromURL url: URL) throws { | |
| 4264 | + try self.init(data: try Data(contentsOf: url)) | |
| 4265 | + } | |
| 4266 | + | |
| 4267 | + func with( | |
| 4268 | + deserializationFeature: Int? = nil | |
| 4269 | + ) -> DeserializationFeature { | |
| 4270 | + return DeserializationFeature( | |
| 4271 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature | |
| 4272 | + ) | |
| 4273 | + } | |
| 4274 | + | |
| 4275 | + func jsonData() throws -> Data { | |
| 4276 | + return try newJSONEncoder().encode(self) | |
| 4277 | + } | |
| 4278 | + | |
| 4279 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 4280 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 4281 | + } | |
| 4282 | +} | |
| 4283 | + | |
| 4240 | 4284 | // MARK: - Dict |
| 4241 | 4285 | struct Dict: Codable { |
| 4242 | 4286 | let dict: Int |
| @@ -5518,50 +5562,6 @@ extension Go { | ||
| 5518 | 5562 | } |
| 5519 | 5563 | } |
| 5520 | 5564 | |
| 5521 | -// MARK: - Goto | |
| 5522 | -struct Goto: Codable { | |
| 5523 | - let goto: Int | |
| 5524 | - | |
| 5525 | - enum CodingKeys: String, CodingKey { | |
| 5526 | - case goto = "goto" | |
| 5527 | - } | |
| 5528 | -} | |
| 5529 | - | |
| 5530 | -// MARK: Goto convenience initializers and mutators | |
| 5531 | - | |
| 5532 | -extension Goto { | |
| 5533 | - init(data: Data) throws { | |
| 5534 | - self = try newJSONDecoder().decode(Goto.self, from: data) | |
| 5535 | - } | |
| 5536 | - | |
| 5537 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 5538 | - guard let data = json.data(using: encoding) else { | |
| 5539 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 5540 | - } | |
| 5541 | - try self.init(data: data) | |
| 5542 | - } | |
| 5543 | - | |
| 5544 | - init(fromURL url: URL) throws { | |
| 5545 | - try self.init(data: try Data(contentsOf: url)) | |
| 5546 | - } | |
| 5547 | - | |
| 5548 | - func with( | |
| 5549 | - goto: Int? = nil | |
| 5550 | - ) -> Goto { | |
| 5551 | - return Goto( | |
| 5552 | - goto: goto ?? self.goto | |
| 5553 | - ) | |
| 5554 | - } | |
| 5555 | - | |
| 5556 | - func jsonData() throws -> Data { | |
| 5557 | - return try newJSONEncoder().encode(self) | |
| 5558 | - } | |
| 5559 | - | |
| 5560 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 5561 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 5562 | - } | |
| 5563 | -} | |
| 5564 | - | |
| 5565 | 5565 | // MARK: - Default |
| 5566 | 5566 | struct Default: Codable { |
| 5567 | 5567 | let defaultDefault: Int |
| @@ -6313,6 +6313,7 @@ extension FalseClass { | ||
| 6313 | 6313 | // MARK: - Obj3 |
| 6314 | 6314 | struct Obj3: Codable { |
| 6315 | 6315 | let dummy: Int |
| 6316 | + let goto: Goto | |
| 6316 | 6317 | let hasOwnProperty: HasOwnProperty |
| 6317 | 6318 | let hashCode: HashCode |
| 6318 | 6319 | let hashable: HashableClass |
| @@ -6360,7 +6361,6 @@ struct Obj3: Codable { | ||
| 6360 | 6361 | let new: New |
| 6361 | 6362 | let newtonsoft: Newtonsoft |
| 6362 | 6363 | let no: No |
| 6363 | - let noexcept: Noexcept | |
| 6364 | 6364 | let obj3Guard: Guard |
| 6365 | 6365 | let obj3If: If |
| 6366 | 6366 | let obj3Import: Import |
| @@ -6380,6 +6380,7 @@ struct Obj3: Codable { | ||
| 6380 | 6380 | |
| 6381 | 6381 | enum CodingKeys: String, CodingKey { |
| 6382 | 6382 | case dummy = "dummy" |
| 6383 | + case goto = "goto" | |
| 6383 | 6384 | case hasOwnProperty = "hasOwnProperty" |
| 6384 | 6385 | case hashCode = "hashCode" |
| 6385 | 6386 | case hashable = "Hashable" |
| @@ -6427,7 +6428,6 @@ struct Obj3: Codable { | ||
| 6427 | 6428 | case new = "new" |
| 6428 | 6429 | case newtonsoft = "newtonsoft" |
| 6429 | 6430 | case no = "NO" |
| 6430 | - case noexcept = "noexcept" | |
| 6431 | 6431 | case obj3Guard = "guard" |
| 6432 | 6432 | case obj3If = "if" |
| 6433 | 6433 | case obj3Import = "import" |
| @@ -6467,6 +6467,7 @@ extension Obj3 { | ||
| 6467 | 6467 | |
| 6468 | 6468 | func with( |
| 6469 | 6469 | dummy: Int? = nil, |
| 6470 | + goto: Goto? = nil, | |
| 6470 | 6471 | hasOwnProperty: HasOwnProperty? = nil, |
| 6471 | 6472 | hashCode: HashCode? = nil, |
| 6472 | 6473 | hashable: HashableClass? = nil, |
| @@ -6514,7 +6515,6 @@ extension Obj3 { | ||
| 6514 | 6515 | new: New? = nil, |
| 6515 | 6516 | newtonsoft: Newtonsoft? = nil, |
| 6516 | 6517 | no: No? = nil, |
| 6517 | - noexcept: Noexcept? = nil, | |
| 6518 | 6518 | obj3Guard: Guard? = nil, |
| 6519 | 6519 | obj3If: If? = nil, |
| 6520 | 6520 | obj3Import: Import? = nil, |
| @@ -6534,6 +6534,7 @@ extension Obj3 { | ||
| 6534 | 6534 | ) -> Obj3 { |
| 6535 | 6535 | return Obj3( |
| 6536 | 6536 | dummy: dummy ?? self.dummy, |
| 6537 | + goto: goto ?? self.goto, | |
| 6537 | 6538 | hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty, |
| 6538 | 6539 | hashCode: hashCode ?? self.hashCode, |
| 6539 | 6540 | hashable: hashable ?? self.hashable, |
| @@ -6581,7 +6582,6 @@ extension Obj3 { | ||
| 6581 | 6582 | new: new ?? self.new, |
| 6582 | 6583 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 6583 | 6584 | no: no ?? self.no, |
| 6584 | - noexcept: noexcept ?? self.noexcept, | |
| 6585 | 6585 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 6586 | 6586 | obj3If: obj3If ?? self.obj3If, |
| 6587 | 6587 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -6610,6 +6610,50 @@ extension Obj3 { | ||
| 6610 | 6610 | } |
| 6611 | 6611 | } |
| 6612 | 6612 | |
| 6613 | +// MARK: - Goto | |
| 6614 | +struct Goto: Codable { | |
| 6615 | + let goto: Int | |
| 6616 | + | |
| 6617 | + enum CodingKeys: String, CodingKey { | |
| 6618 | + case goto = "goto" | |
| 6619 | + } | |
| 6620 | +} | |
| 6621 | + | |
| 6622 | +// MARK: Goto convenience initializers and mutators | |
| 6623 | + | |
| 6624 | +extension Goto { | |
| 6625 | + init(data: Data) throws { | |
| 6626 | + self = try newJSONDecoder().decode(Goto.self, from: data) | |
| 6627 | + } | |
| 6628 | + | |
| 6629 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 6630 | + guard let data = json.data(using: encoding) else { | |
| 6631 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 6632 | + } | |
| 6633 | + try self.init(data: data) | |
| 6634 | + } | |
| 6635 | + | |
| 6636 | + init(fromURL url: URL) throws { | |
| 6637 | + try self.init(data: try Data(contentsOf: url)) | |
| 6638 | + } | |
| 6639 | + | |
| 6640 | + func with( | |
| 6641 | + goto: Int? = nil | |
| 6642 | + ) -> Goto { | |
| 6643 | + return Goto( | |
| 6644 | + goto: goto ?? self.goto | |
| 6645 | + ) | |
| 6646 | + } | |
| 6647 | + | |
| 6648 | + func jsonData() throws -> Data { | |
| 6649 | + return try newJSONEncoder().encode(self) | |
| 6650 | + } | |
| 6651 | + | |
| 6652 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 6653 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 6654 | + } | |
| 6655 | +} | |
| 6656 | + | |
| 6613 | 6657 | // MARK: - HasOwnProperty |
| 6614 | 6658 | struct HasOwnProperty: Codable { |
| 6615 | 6659 | let hasOwnProperty: Int |
| @@ -8678,50 +8722,6 @@ extension No { | ||
| 8678 | 8722 | } |
| 8679 | 8723 | } |
| 8680 | 8724 | |
| 8681 | -// MARK: - Noexcept | |
| 8682 | -struct Noexcept: Codable { | |
| 8683 | - let noexcept: Int | |
| 8684 | - | |
| 8685 | - enum CodingKeys: String, CodingKey { | |
| 8686 | - case noexcept = "noexcept" | |
| 8687 | - } | |
| 8688 | -} | |
| 8689 | - | |
| 8690 | -// MARK: Noexcept convenience initializers and mutators | |
| 8691 | - | |
| 8692 | -extension Noexcept { | |
| 8693 | - init(data: Data) throws { | |
| 8694 | - self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 8695 | - } | |
| 8696 | - | |
| 8697 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8698 | - guard let data = json.data(using: encoding) else { | |
| 8699 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8700 | - } | |
| 8701 | - try self.init(data: data) | |
| 8702 | - } | |
| 8703 | - | |
| 8704 | - init(fromURL url: URL) throws { | |
| 8705 | - try self.init(data: try Data(contentsOf: url)) | |
| 8706 | - } | |
| 8707 | - | |
| 8708 | - func with( | |
| 8709 | - noexcept: Int? = nil | |
| 8710 | - ) -> Noexcept { | |
| 8711 | - return Noexcept( | |
| 8712 | - noexcept: noexcept ?? self.noexcept | |
| 8713 | - ) | |
| 8714 | - } | |
| 8715 | - | |
| 8716 | - func jsonData() throws -> Data { | |
| 8717 | - return try newJSONEncoder().encode(self) | |
| 8718 | - } | |
| 8719 | - | |
| 8720 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8721 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 8722 | - } | |
| 8723 | -} | |
| 8724 | - | |
| 8725 | 8725 | // MARK: - Guard |
| 8726 | 8726 | struct Guard: Codable { |
| 8727 | 8727 | let guardGuard: Int |
| @@ -9430,6 +9430,7 @@ extension Nil { | ||
| 9430 | 9430 | struct Obj4: Codable { |
| 9431 | 9431 | let dummy: Int |
| 9432 | 9432 | let noSuchMethod: NoSuchMethod |
| 9433 | + let noexcept: Noexcept | |
| 9433 | 9434 | let nonatomic: Nonatomic |
| 9434 | 9435 | let none: None |
| 9435 | 9436 | let nonlocal: Nonlocal |
| @@ -9461,6 +9462,8 @@ struct Obj4: Codable { | ||
| 9461 | 9462 | let obj4Right: Right |
| 9462 | 9463 | let object: Object |
| 9463 | 9464 | let objectMapper: ObjectMapper |
| 9465 | + let objectReader: ObjectReader | |
| 9466 | + let objectWriter: ObjectWriter | |
| 9464 | 9467 | let of: Of |
| 9465 | 9468 | let oneway: Oneway |
| 9466 | 9469 | let or: Or |
| @@ -9490,13 +9493,11 @@ struct Obj4: Codable { | ||
| 9490 | 9493 | let runtimeType: RuntimeType |
| 9491 | 9494 | let s: S |
| 9492 | 9495 | let sbyte: Sbyte |
| 9493 | - let sealed: Sealed | |
| 9494 | - let sel: Sel | |
| 9495 | - let select: Select | |
| 9496 | 9496 | |
| 9497 | 9497 | enum CodingKeys: String, CodingKey { |
| 9498 | 9498 | case dummy = "dummy" |
| 9499 | 9499 | case noSuchMethod = "noSuchMethod" |
| 9500 | + case noexcept = "noexcept" | |
| 9500 | 9501 | case nonatomic = "nonatomic" |
| 9501 | 9502 | case none = "None" |
| 9502 | 9503 | case nonlocal = "nonlocal" |
| @@ -9528,6 +9529,8 @@ struct Obj4: Codable { | ||
| 9528 | 9529 | case obj4Right = "right" |
| 9529 | 9530 | case object = "object" |
| 9530 | 9531 | case objectMapper = "ObjectMapper" |
| 9532 | + case objectReader = "ObjectReader" | |
| 9533 | + case objectWriter = "ObjectWriter" | |
| 9531 | 9534 | case of = "of" |
| 9532 | 9535 | case oneway = "oneway" |
| 9533 | 9536 | case or = "or" |
| @@ -9557,9 +9560,6 @@ struct Obj4: Codable { | ||
| 9557 | 9560 | case runtimeType = "runtimeType" |
| 9558 | 9561 | case s = "s" |
| 9559 | 9562 | case sbyte = "sbyte" |
| 9560 | - case sealed = "sealed" | |
| 9561 | - case sel = "SEL" | |
| 9562 | - case select = "select" | |
| 9563 | 9563 | } |
| 9564 | 9564 | } |
| 9565 | 9565 | |
| @@ -9584,6 +9584,7 @@ extension Obj4 { | ||
| 9584 | 9584 | func with( |
| 9585 | 9585 | dummy: Int? = nil, |
| 9586 | 9586 | noSuchMethod: NoSuchMethod? = nil, |
| 9587 | + noexcept: Noexcept? = nil, | |
| 9587 | 9588 | nonatomic: Nonatomic? = nil, |
| 9588 | 9589 | none: None? = nil, |
| 9589 | 9590 | nonlocal: Nonlocal? = nil, |
| @@ -9615,6 +9616,8 @@ extension Obj4 { | ||
| 9615 | 9616 | obj4Right: Right? = nil, |
| 9616 | 9617 | object: Object? = nil, |
| 9617 | 9618 | objectMapper: ObjectMapper? = nil, |
| 9619 | + objectReader: ObjectReader? = nil, | |
| 9620 | + objectWriter: ObjectWriter? = nil, | |
| 9618 | 9621 | of: Of? = nil, |
| 9619 | 9622 | oneway: Oneway? = nil, |
| 9620 | 9623 | or: Or? = nil, |
| @@ -9643,14 +9646,12 @@ extension Obj4 { | ||
| 9643 | 9646 | retain: Retain? = nil, |
| 9644 | 9647 | runtimeType: RuntimeType? = nil, |
| 9645 | 9648 | s: S? = nil, |
| 9646 | - sbyte: Sbyte? = nil, | |
| 9647 | - sealed: Sealed? = nil, | |
| 9648 | - sel: Sel? = nil, | |
| 9649 | - select: Select? = nil | |
| 9649 | + sbyte: Sbyte? = nil | |
| 9650 | 9650 | ) -> Obj4 { |
| 9651 | 9651 | return Obj4( |
| 9652 | 9652 | dummy: dummy ?? self.dummy, |
| 9653 | 9653 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 9654 | + noexcept: noexcept ?? self.noexcept, | |
| 9654 | 9655 | nonatomic: nonatomic ?? self.nonatomic, |
| 9655 | 9656 | none: none ?? self.none, |
| 9656 | 9657 | nonlocal: nonlocal ?? self.nonlocal, |
| @@ -9682,6 +9683,8 @@ extension Obj4 { | ||
| 9682 | 9683 | obj4Right: obj4Right ?? self.obj4Right, |
| 9683 | 9684 | object: object ?? self.object, |
| 9684 | 9685 | objectMapper: objectMapper ?? self.objectMapper, |
| 9686 | + objectReader: objectReader ?? self.objectReader, | |
| 9687 | + objectWriter: objectWriter ?? self.objectWriter, | |
| 9685 | 9688 | of: of ?? self.of, |
| 9686 | 9689 | oneway: oneway ?? self.oneway, |
| 9687 | 9690 | or: or ?? self.or, |
| @@ -9710,10 +9713,7 @@ extension Obj4 { | ||
| 9710 | 9713 | retain: retain ?? self.retain, |
| 9711 | 9714 | runtimeType: runtimeType ?? self.runtimeType, |
| 9712 | 9715 | s: s ?? self.s, |
| 9713 | - sbyte: sbyte ?? self.sbyte, | |
| 9714 | - sealed: sealed ?? self.sealed, | |
| 9715 | - sel: sel ?? self.sel, | |
| 9716 | - select: select ?? self.select | |
| 9716 | + sbyte: sbyte ?? self.sbyte | |
| 9717 | 9717 | ) |
| 9718 | 9718 | } |
| 9719 | 9719 | |
| @@ -9770,6 +9770,50 @@ extension NoSuchMethod { | ||
| 9770 | 9770 | } |
| 9771 | 9771 | } |
| 9772 | 9772 | |
| 9773 | +// MARK: - Noexcept | |
| 9774 | +struct Noexcept: Codable { | |
| 9775 | + let noexcept: Int | |
| 9776 | + | |
| 9777 | + enum CodingKeys: String, CodingKey { | |
| 9778 | + case noexcept = "noexcept" | |
| 9779 | + } | |
| 9780 | +} | |
| 9781 | + | |
| 9782 | +// MARK: Noexcept convenience initializers and mutators | |
| 9783 | + | |
| 9784 | +extension Noexcept { | |
| 9785 | + init(data: Data) throws { | |
| 9786 | + self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 9787 | + } | |
| 9788 | + | |
| 9789 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9790 | + guard let data = json.data(using: encoding) else { | |
| 9791 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9792 | + } | |
| 9793 | + try self.init(data: data) | |
| 9794 | + } | |
| 9795 | + | |
| 9796 | + init(fromURL url: URL) throws { | |
| 9797 | + try self.init(data: try Data(contentsOf: url)) | |
| 9798 | + } | |
| 9799 | + | |
| 9800 | + func with( | |
| 9801 | + noexcept: Int? = nil | |
| 9802 | + ) -> Noexcept { | |
| 9803 | + return Noexcept( | |
| 9804 | + noexcept: noexcept ?? self.noexcept | |
| 9805 | + ) | |
| 9806 | + } | |
| 9807 | + | |
| 9808 | + func jsonData() throws -> Data { | |
| 9809 | + return try newJSONEncoder().encode(self) | |
| 9810 | + } | |
| 9811 | + | |
| 9812 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9813 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9814 | + } | |
| 9815 | +} | |
| 9816 | + | |
| 9773 | 9817 | // MARK: - Nonatomic |
| 9774 | 9818 | struct Nonatomic: Codable { |
| 9775 | 9819 | let nonatomic: Int |
| @@ -11134,20 +11178,20 @@ extension ObjectMapper { | ||
| 11134 | 11178 | } |
| 11135 | 11179 | } |
| 11136 | 11180 | |
| 11137 | -// MARK: - Of | |
| 11138 | -struct Of: Codable { | |
| 11139 | - let of: Int | |
| 11181 | +// MARK: - ObjectReader | |
| 11182 | +struct ObjectReader: Codable { | |
| 11183 | + let objectReader: Int | |
| 11140 | 11184 | |
| 11141 | 11185 | enum CodingKeys: String, CodingKey { |
| 11142 | - case of = "of" | |
| 11186 | + case objectReader = "ObjectReader" | |
| 11143 | 11187 | } |
| 11144 | 11188 | } |
| 11145 | 11189 | |
| 11146 | -// MARK: Of convenience initializers and mutators | |
| 11190 | +// MARK: ObjectReader convenience initializers and mutators | |
| 11147 | 11191 | |
| 11148 | -extension Of { | |
| 11192 | +extension ObjectReader { | |
| 11149 | 11193 | init(data: Data) throws { |
| 11150 | - self = try newJSONDecoder().decode(Of.self, from: data) | |
| 11194 | + self = try newJSONDecoder().decode(ObjectReader.self, from: data) | |
| 11151 | 11195 | } |
| 11152 | 11196 | |
| 11153 | 11197 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11162,10 +11206,10 @@ extension Of { | ||
| 11162 | 11206 | } |
| 11163 | 11207 | |
| 11164 | 11208 | func with( |
| 11165 | - of: Int? = nil | |
| 11166 | - ) -> Of { | |
| 11167 | - return Of( | |
| 11168 | - of: of ?? self.of | |
| 11209 | + objectReader: Int? = nil | |
| 11210 | + ) -> ObjectReader { | |
| 11211 | + return ObjectReader( | |
| 11212 | + objectReader: objectReader ?? self.objectReader | |
| 11169 | 11213 | ) |
| 11170 | 11214 | } |
| 11171 | 11215 | |
| @@ -11178,20 +11222,20 @@ extension Of { | ||
| 11178 | 11222 | } |
| 11179 | 11223 | } |
| 11180 | 11224 | |
| 11181 | -// MARK: - Oneway | |
| 11182 | -struct Oneway: Codable { | |
| 11183 | - let oneway: Int | |
| 11225 | +// MARK: - ObjectWriter | |
| 11226 | +struct ObjectWriter: Codable { | |
| 11227 | + let objectWriter: Int | |
| 11184 | 11228 | |
| 11185 | 11229 | enum CodingKeys: String, CodingKey { |
| 11186 | - case oneway = "oneway" | |
| 11230 | + case objectWriter = "ObjectWriter" | |
| 11187 | 11231 | } |
| 11188 | 11232 | } |
| 11189 | 11233 | |
| 11190 | -// MARK: Oneway convenience initializers and mutators | |
| 11234 | +// MARK: ObjectWriter convenience initializers and mutators | |
| 11191 | 11235 | |
| 11192 | -extension Oneway { | |
| 11236 | +extension ObjectWriter { | |
| 11193 | 11237 | init(data: Data) throws { |
| 11194 | - self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11238 | + self = try newJSONDecoder().decode(ObjectWriter.self, from: data) | |
| 11195 | 11239 | } |
| 11196 | 11240 | |
| 11197 | 11241 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11206,7 +11250,95 @@ extension Oneway { | ||
| 11206 | 11250 | } |
| 11207 | 11251 | |
| 11208 | 11252 | func with( |
| 11209 | - oneway: Int? = nil | |
| 11253 | + objectWriter: Int? = nil | |
| 11254 | + ) -> ObjectWriter { | |
| 11255 | + return ObjectWriter( | |
| 11256 | + objectWriter: objectWriter ?? self.objectWriter | |
| 11257 | + ) | |
| 11258 | + } | |
| 11259 | + | |
| 11260 | + func jsonData() throws -> Data { | |
| 11261 | + return try newJSONEncoder().encode(self) | |
| 11262 | + } | |
| 11263 | + | |
| 11264 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11265 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11266 | + } | |
| 11267 | +} | |
| 11268 | + | |
| 11269 | +// MARK: - Of | |
| 11270 | +struct Of: Codable { | |
| 11271 | + let of: Int | |
| 11272 | + | |
| 11273 | + enum CodingKeys: String, CodingKey { | |
| 11274 | + case of = "of" | |
| 11275 | + } | |
| 11276 | +} | |
| 11277 | + | |
| 11278 | +// MARK: Of convenience initializers and mutators | |
| 11279 | + | |
| 11280 | +extension Of { | |
| 11281 | + init(data: Data) throws { | |
| 11282 | + self = try newJSONDecoder().decode(Of.self, from: data) | |
| 11283 | + } | |
| 11284 | + | |
| 11285 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11286 | + guard let data = json.data(using: encoding) else { | |
| 11287 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11288 | + } | |
| 11289 | + try self.init(data: data) | |
| 11290 | + } | |
| 11291 | + | |
| 11292 | + init(fromURL url: URL) throws { | |
| 11293 | + try self.init(data: try Data(contentsOf: url)) | |
| 11294 | + } | |
| 11295 | + | |
| 11296 | + func with( | |
| 11297 | + of: Int? = nil | |
| 11298 | + ) -> Of { | |
| 11299 | + return Of( | |
| 11300 | + of: of ?? self.of | |
| 11301 | + ) | |
| 11302 | + } | |
| 11303 | + | |
| 11304 | + func jsonData() throws -> Data { | |
| 11305 | + return try newJSONEncoder().encode(self) | |
| 11306 | + } | |
| 11307 | + | |
| 11308 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11309 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11310 | + } | |
| 11311 | +} | |
| 11312 | + | |
| 11313 | +// MARK: - Oneway | |
| 11314 | +struct Oneway: Codable { | |
| 11315 | + let oneway: Int | |
| 11316 | + | |
| 11317 | + enum CodingKeys: String, CodingKey { | |
| 11318 | + case oneway = "oneway" | |
| 11319 | + } | |
| 11320 | +} | |
| 11321 | + | |
| 11322 | +// MARK: Oneway convenience initializers and mutators | |
| 11323 | + | |
| 11324 | +extension Oneway { | |
| 11325 | + init(data: Data) throws { | |
| 11326 | + self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11327 | + } | |
| 11328 | + | |
| 11329 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11330 | + guard let data = json.data(using: encoding) else { | |
| 11331 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11332 | + } | |
| 11333 | + try self.init(data: data) | |
| 11334 | + } | |
| 11335 | + | |
| 11336 | + init(fromURL url: URL) throws { | |
| 11337 | + try self.init(data: try Data(contentsOf: url)) | |
| 11338 | + } | |
| 11339 | + | |
| 11340 | + func with( | |
| 11341 | + oneway: Int? = nil | |
| 11210 | 11342 | ) -> Oneway { |
| 11211 | 11343 | return Oneway( |
| 11212 | 11344 | oneway: oneway ?? self.oneway |
| @@ -12410,138 +12542,6 @@ extension Sbyte { | ||
| 12410 | 12542 | } |
| 12411 | 12543 | } |
| 12412 | 12544 | |
| 12413 | -// MARK: - Sealed | |
| 12414 | -struct Sealed: Codable { | |
| 12415 | - let sealed: Int | |
| 12416 | - | |
| 12417 | - enum CodingKeys: String, CodingKey { | |
| 12418 | - case sealed = "sealed" | |
| 12419 | - } | |
| 12420 | -} | |
| 12421 | - | |
| 12422 | -// MARK: Sealed convenience initializers and mutators | |
| 12423 | - | |
| 12424 | -extension Sealed { | |
| 12425 | - init(data: Data) throws { | |
| 12426 | - self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 12427 | - } | |
| 12428 | - | |
| 12429 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12430 | - guard let data = json.data(using: encoding) else { | |
| 12431 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12432 | - } | |
| 12433 | - try self.init(data: data) | |
| 12434 | - } | |
| 12435 | - | |
| 12436 | - init(fromURL url: URL) throws { | |
| 12437 | - try self.init(data: try Data(contentsOf: url)) | |
| 12438 | - } | |
| 12439 | - | |
| 12440 | - func with( | |
| 12441 | - sealed: Int? = nil | |
| 12442 | - ) -> Sealed { | |
| 12443 | - return Sealed( | |
| 12444 | - sealed: sealed ?? self.sealed | |
| 12445 | - ) | |
| 12446 | - } | |
| 12447 | - | |
| 12448 | - func jsonData() throws -> Data { | |
| 12449 | - return try newJSONEncoder().encode(self) | |
| 12450 | - } | |
| 12451 | - | |
| 12452 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12453 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12454 | - } | |
| 12455 | -} | |
| 12456 | - | |
| 12457 | -// MARK: - Sel | |
| 12458 | -struct Sel: Codable { | |
| 12459 | - let sel: Int | |
| 12460 | - | |
| 12461 | - enum CodingKeys: String, CodingKey { | |
| 12462 | - case sel = "SEL" | |
| 12463 | - } | |
| 12464 | -} | |
| 12465 | - | |
| 12466 | -// MARK: Sel convenience initializers and mutators | |
| 12467 | - | |
| 12468 | -extension Sel { | |
| 12469 | - init(data: Data) throws { | |
| 12470 | - self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 12471 | - } | |
| 12472 | - | |
| 12473 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12474 | - guard let data = json.data(using: encoding) else { | |
| 12475 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12476 | - } | |
| 12477 | - try self.init(data: data) | |
| 12478 | - } | |
| 12479 | - | |
| 12480 | - init(fromURL url: URL) throws { | |
| 12481 | - try self.init(data: try Data(contentsOf: url)) | |
| 12482 | - } | |
| 12483 | - | |
| 12484 | - func with( | |
| 12485 | - sel: Int? = nil | |
| 12486 | - ) -> Sel { | |
| 12487 | - return Sel( | |
| 12488 | - sel: sel ?? self.sel | |
| 12489 | - ) | |
| 12490 | - } | |
| 12491 | - | |
| 12492 | - func jsonData() throws -> Data { | |
| 12493 | - return try newJSONEncoder().encode(self) | |
| 12494 | - } | |
| 12495 | - | |
| 12496 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12497 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12498 | - } | |
| 12499 | -} | |
| 12500 | - | |
| 12501 | -// MARK: - Select | |
| 12502 | -struct Select: Codable { | |
| 12503 | - let select: Int | |
| 12504 | - | |
| 12505 | - enum CodingKeys: String, CodingKey { | |
| 12506 | - case select = "select" | |
| 12507 | - } | |
| 12508 | -} | |
| 12509 | - | |
| 12510 | -// MARK: Select convenience initializers and mutators | |
| 12511 | - | |
| 12512 | -extension Select { | |
| 12513 | - init(data: Data) throws { | |
| 12514 | - self = try newJSONDecoder().decode(Select.self, from: data) | |
| 12515 | - } | |
| 12516 | - | |
| 12517 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12518 | - guard let data = json.data(using: encoding) else { | |
| 12519 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12520 | - } | |
| 12521 | - try self.init(data: data) | |
| 12522 | - } | |
| 12523 | - | |
| 12524 | - init(fromURL url: URL) throws { | |
| 12525 | - try self.init(data: try Data(contentsOf: url)) | |
| 12526 | - } | |
| 12527 | - | |
| 12528 | - func with( | |
| 12529 | - select: Int? = nil | |
| 12530 | - ) -> Select { | |
| 12531 | - return Select( | |
| 12532 | - select: select ?? self.select | |
| 12533 | - ) | |
| 12534 | - } | |
| 12535 | - | |
| 12536 | - func jsonData() throws -> Data { | |
| 12537 | - return try newJSONEncoder().encode(self) | |
| 12538 | - } | |
| 12539 | - | |
| 12540 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12541 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12542 | - } | |
| 12543 | -} | |
| 12544 | - | |
| 12545 | 12545 | // MARK: - Obj5 |
| 12546 | 12546 | struct Obj5: Codable { |
| 12547 | 12547 | let dummy: Int |
| @@ -12559,10 +12559,13 @@ struct Obj5: Codable { | ||
| 12559 | 12559 | let obj5Type: Obj5Type |
| 12560 | 12560 | let obj5Typealias: Typealias |
| 12561 | 12561 | let obj5Unowned: Unowned |
| 12562 | - let obj5Var: Var | |
| 12563 | 12562 | let purpleSelf: Obj5Self |
| 12564 | 12563 | let purpleTrue: TrueClass |
| 12564 | + let sealed: Sealed | |
| 12565 | + let sel: Sel | |
| 12566 | + let select: Select | |
| 12565 | 12567 | let sendable: Sendable |
| 12568 | + let serializationFeature: SerializationFeature | |
| 12566 | 12569 | let serialize: Serialize |
| 12567 | 12570 | let serializerProvider: SerializerProvider |
| 12568 | 12571 | let short: Short |
| @@ -12606,9 +12609,6 @@ struct Obj5: Codable { | ||
| 12606 | 12609 | let ushort: Ushort |
| 12607 | 12610 | let using: Using |
| 12608 | 12611 | let utf8JSONReader: Utf8JSONReader |
| 12609 | - let utf8JSONWriter: Utf8JSONWriter | |
| 12610 | - let uuid: UUIDClass | |
| 12611 | - let virtual: Virtual | |
| 12612 | 12612 | |
| 12613 | 12613 | enum CodingKeys: String, CodingKey { |
| 12614 | 12614 | case dummy = "dummy" |
| @@ -12626,10 +12626,13 @@ struct Obj5: Codable { | ||
| 12626 | 12626 | case obj5Type = "type" |
| 12627 | 12627 | case obj5Typealias = "typealias" |
| 12628 | 12628 | case obj5Unowned = "unowned" |
| 12629 | - case obj5Var = "var" | |
| 12630 | 12629 | case purpleSelf = "self" |
| 12631 | 12630 | case purpleTrue = "true" |
| 12631 | + case sealed = "sealed" | |
| 12632 | + case sel = "SEL" | |
| 12633 | + case select = "select" | |
| 12632 | 12634 | case sendable = "Sendable" |
| 12635 | + case serializationFeature = "SerializationFeature" | |
| 12633 | 12636 | case serialize = "serialize" |
| 12634 | 12637 | case serializerProvider = "SerializerProvider" |
| 12635 | 12638 | case short = "short" |
| @@ -12673,9 +12676,6 @@ struct Obj5: Codable { | ||
| 12673 | 12676 | case ushort = "ushort" |
| 12674 | 12677 | case using = "using" |
| 12675 | 12678 | case utf8JSONReader = "Utf8JsonReader" |
| 12676 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 12677 | - case uuid = "UUID" | |
| 12678 | - case virtual = "virtual" | |
| 12679 | 12679 | } |
| 12680 | 12680 | } |
| 12681 | 12681 | |
| @@ -12713,10 +12713,13 @@ extension Obj5 { | ||
| 12713 | 12713 | obj5Type: Obj5Type? = nil, |
| 12714 | 12714 | obj5Typealias: Typealias? = nil, |
| 12715 | 12715 | obj5Unowned: Unowned? = nil, |
| 12716 | - obj5Var: Var? = nil, | |
| 12717 | 12716 | purpleSelf: Obj5Self? = nil, |
| 12718 | 12717 | purpleTrue: TrueClass? = nil, |
| 12718 | + sealed: Sealed? = nil, | |
| 12719 | + sel: Sel? = nil, | |
| 12720 | + select: Select? = nil, | |
| 12719 | 12721 | sendable: Sendable? = nil, |
| 12722 | + serializationFeature: SerializationFeature? = nil, | |
| 12720 | 12723 | serialize: Serialize? = nil, |
| 12721 | 12724 | serializerProvider: SerializerProvider? = nil, |
| 12722 | 12725 | short: Short? = nil, |
| @@ -12759,10 +12762,7 @@ extension Obj5 { | ||
| 12759 | 12762 | unsigned: Unsigned? = nil, |
| 12760 | 12763 | ushort: Ushort? = nil, |
| 12761 | 12764 | using: Using? = nil, |
| 12762 | - utf8JSONReader: Utf8JSONReader? = nil, | |
| 12763 | - utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 12764 | - uuid: UUIDClass? = nil, | |
| 12765 | - virtual: Virtual? = nil | |
| 12765 | + utf8JSONReader: Utf8JSONReader? = nil | |
| 12766 | 12766 | ) -> Obj5 { |
| 12767 | 12767 | return Obj5( |
| 12768 | 12768 | dummy: dummy ?? self.dummy, |
| @@ -12780,10 +12780,13 @@ extension Obj5 { | ||
| 12780 | 12780 | obj5Type: obj5Type ?? self.obj5Type, |
| 12781 | 12781 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 12782 | 12782 | obj5Unowned: obj5Unowned ?? self.obj5Unowned, |
| 12783 | - obj5Var: obj5Var ?? self.obj5Var, | |
| 12784 | 12783 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 12785 | 12784 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 12785 | + sealed: sealed ?? self.sealed, | |
| 12786 | + sel: sel ?? self.sel, | |
| 12787 | + select: select ?? self.select, | |
| 12786 | 12788 | sendable: sendable ?? self.sendable, |
| 12789 | + serializationFeature: serializationFeature ?? self.serializationFeature, | |
| 12787 | 12790 | serialize: serialize ?? self.serialize, |
| 12788 | 12791 | serializerProvider: serializerProvider ?? self.serializerProvider, |
| 12789 | 12792 | short: short ?? self.short, |
| @@ -12826,10 +12829,7 @@ extension Obj5 { | ||
| 12826 | 12829 | unsigned: unsigned ?? self.unsigned, |
| 12827 | 12830 | ushort: ushort ?? self.ushort, |
| 12828 | 12831 | using: using ?? self.using, |
| 12829 | - utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, | |
| 12830 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 12831 | - uuid: uuid ?? self.uuid, | |
| 12832 | - virtual: virtual ?? self.virtual | |
| 12832 | + utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader | |
| 12833 | 12833 | ) |
| 12834 | 12834 | } |
| 12835 | 12835 | |
| @@ -13458,20 +13458,20 @@ extension Unowned { | ||
| 13458 | 13458 | } |
| 13459 | 13459 | } |
| 13460 | 13460 | |
| 13461 | -// MARK: - Var | |
| 13462 | -struct Var: Codable { | |
| 13463 | - let varVar: Int | |
| 13461 | +// MARK: - Obj5Self | |
| 13462 | +struct Obj5Self: Codable { | |
| 13463 | + let selfSelf: Int | |
| 13464 | 13464 | |
| 13465 | 13465 | enum CodingKeys: String, CodingKey { |
| 13466 | - case varVar = "var" | |
| 13466 | + case selfSelf = "self" | |
| 13467 | 13467 | } |
| 13468 | 13468 | } |
| 13469 | 13469 | |
| 13470 | -// MARK: Var convenience initializers and mutators | |
| 13470 | +// MARK: Obj5Self convenience initializers and mutators | |
| 13471 | 13471 | |
| 13472 | -extension Var { | |
| 13472 | +extension Obj5Self { | |
| 13473 | 13473 | init(data: Data) throws { |
| 13474 | - self = try newJSONDecoder().decode(Var.self, from: data) | |
| 13474 | + self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13475 | 13475 | } |
| 13476 | 13476 | |
| 13477 | 13477 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13486,10 +13486,10 @@ extension Var { | ||
| 13486 | 13486 | } |
| 13487 | 13487 | |
| 13488 | 13488 | func with( |
| 13489 | - varVar: Int? = nil | |
| 13490 | - ) -> Var { | |
| 13491 | - return Var( | |
| 13492 | - varVar: varVar ?? self.varVar | |
| 13489 | + selfSelf: Int? = nil | |
| 13490 | + ) -> Obj5Self { | |
| 13491 | + return Obj5Self( | |
| 13492 | + selfSelf: selfSelf ?? self.selfSelf | |
| 13493 | 13493 | ) |
| 13494 | 13494 | } |
| 13495 | 13495 | |
| @@ -13502,20 +13502,20 @@ extension Var { | ||
| 13502 | 13502 | } |
| 13503 | 13503 | } |
| 13504 | 13504 | |
| 13505 | -// MARK: - Obj5Self | |
| 13506 | -struct Obj5Self: Codable { | |
| 13507 | - let selfSelf: Int | |
| 13505 | +// MARK: - TrueClass | |
| 13506 | +struct TrueClass: Codable { | |
| 13507 | + let trueTrue: Int | |
| 13508 | 13508 | |
| 13509 | 13509 | enum CodingKeys: String, CodingKey { |
| 13510 | - case selfSelf = "self" | |
| 13510 | + case trueTrue = "true" | |
| 13511 | 13511 | } |
| 13512 | 13512 | } |
| 13513 | 13513 | |
| 13514 | -// MARK: Obj5Self convenience initializers and mutators | |
| 13514 | +// MARK: TrueClass convenience initializers and mutators | |
| 13515 | 13515 | |
| 13516 | -extension Obj5Self { | |
| 13516 | +extension TrueClass { | |
| 13517 | 13517 | init(data: Data) throws { |
| 13518 | - self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13518 | + self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13519 | 13519 | } |
| 13520 | 13520 | |
| 13521 | 13521 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13530,10 +13530,10 @@ extension Obj5Self { | ||
| 13530 | 13530 | } |
| 13531 | 13531 | |
| 13532 | 13532 | func with( |
| 13533 | - selfSelf: Int? = nil | |
| 13534 | - ) -> Obj5Self { | |
| 13535 | - return Obj5Self( | |
| 13536 | - selfSelf: selfSelf ?? self.selfSelf | |
| 13533 | + trueTrue: Int? = nil | |
| 13534 | + ) -> TrueClass { | |
| 13535 | + return TrueClass( | |
| 13536 | + trueTrue: trueTrue ?? self.trueTrue | |
| 13537 | 13537 | ) |
| 13538 | 13538 | } |
| 13539 | 13539 | |
| @@ -13546,20 +13546,20 @@ extension Obj5Self { | ||
| 13546 | 13546 | } |
| 13547 | 13547 | } |
| 13548 | 13548 | |
| 13549 | -// MARK: - TrueClass | |
| 13550 | -struct TrueClass: Codable { | |
| 13551 | - let trueTrue: Int | |
| 13549 | +// MARK: - Sealed | |
| 13550 | +struct Sealed: Codable { | |
| 13551 | + let sealed: Int | |
| 13552 | 13552 | |
| 13553 | 13553 | enum CodingKeys: String, CodingKey { |
| 13554 | - case trueTrue = "true" | |
| 13554 | + case sealed = "sealed" | |
| 13555 | 13555 | } |
| 13556 | 13556 | } |
| 13557 | 13557 | |
| 13558 | -// MARK: TrueClass convenience initializers and mutators | |
| 13558 | +// MARK: Sealed convenience initializers and mutators | |
| 13559 | 13559 | |
| 13560 | -extension TrueClass { | |
| 13560 | +extension Sealed { | |
| 13561 | 13561 | init(data: Data) throws { |
| 13562 | - self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13562 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 13563 | 13563 | } |
| 13564 | 13564 | |
| 13565 | 13565 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13574,10 +13574,98 @@ extension TrueClass { | ||
| 13574 | 13574 | } |
| 13575 | 13575 | |
| 13576 | 13576 | func with( |
| 13577 | - trueTrue: Int? = nil | |
| 13578 | - ) -> TrueClass { | |
| 13579 | - return TrueClass( | |
| 13580 | - trueTrue: trueTrue ?? self.trueTrue | |
| 13577 | + sealed: Int? = nil | |
| 13578 | + ) -> Sealed { | |
| 13579 | + return Sealed( | |
| 13580 | + sealed: sealed ?? self.sealed | |
| 13581 | + ) | |
| 13582 | + } | |
| 13583 | + | |
| 13584 | + func jsonData() throws -> Data { | |
| 13585 | + return try newJSONEncoder().encode(self) | |
| 13586 | + } | |
| 13587 | + | |
| 13588 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13589 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13590 | + } | |
| 13591 | +} | |
| 13592 | + | |
| 13593 | +// MARK: - Sel | |
| 13594 | +struct Sel: Codable { | |
| 13595 | + let sel: Int | |
| 13596 | + | |
| 13597 | + enum CodingKeys: String, CodingKey { | |
| 13598 | + case sel = "SEL" | |
| 13599 | + } | |
| 13600 | +} | |
| 13601 | + | |
| 13602 | +// MARK: Sel convenience initializers and mutators | |
| 13603 | + | |
| 13604 | +extension Sel { | |
| 13605 | + init(data: Data) throws { | |
| 13606 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 13607 | + } | |
| 13608 | + | |
| 13609 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13610 | + guard let data = json.data(using: encoding) else { | |
| 13611 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13612 | + } | |
| 13613 | + try self.init(data: data) | |
| 13614 | + } | |
| 13615 | + | |
| 13616 | + init(fromURL url: URL) throws { | |
| 13617 | + try self.init(data: try Data(contentsOf: url)) | |
| 13618 | + } | |
| 13619 | + | |
| 13620 | + func with( | |
| 13621 | + sel: Int? = nil | |
| 13622 | + ) -> Sel { | |
| 13623 | + return Sel( | |
| 13624 | + sel: sel ?? self.sel | |
| 13625 | + ) | |
| 13626 | + } | |
| 13627 | + | |
| 13628 | + func jsonData() throws -> Data { | |
| 13629 | + return try newJSONEncoder().encode(self) | |
| 13630 | + } | |
| 13631 | + | |
| 13632 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13633 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13634 | + } | |
| 13635 | +} | |
| 13636 | + | |
| 13637 | +// MARK: - Select | |
| 13638 | +struct Select: Codable { | |
| 13639 | + let select: Int | |
| 13640 | + | |
| 13641 | + enum CodingKeys: String, CodingKey { | |
| 13642 | + case select = "select" | |
| 13643 | + } | |
| 13644 | +} | |
| 13645 | + | |
| 13646 | +// MARK: Select convenience initializers and mutators | |
| 13647 | + | |
| 13648 | +extension Select { | |
| 13649 | + init(data: Data) throws { | |
| 13650 | + self = try newJSONDecoder().decode(Select.self, from: data) | |
| 13651 | + } | |
| 13652 | + | |
| 13653 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13654 | + guard let data = json.data(using: encoding) else { | |
| 13655 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13656 | + } | |
| 13657 | + try self.init(data: data) | |
| 13658 | + } | |
| 13659 | + | |
| 13660 | + init(fromURL url: URL) throws { | |
| 13661 | + try self.init(data: try Data(contentsOf: url)) | |
| 13662 | + } | |
| 13663 | + | |
| 13664 | + func with( | |
| 13665 | + select: Int? = nil | |
| 13666 | + ) -> Select { | |
| 13667 | + return Select( | |
| 13668 | + select: select ?? self.select | |
| 13581 | 13669 | ) |
| 13582 | 13670 | } |
| 13583 | 13671 | |
| @@ -13634,6 +13722,50 @@ extension Sendable { | ||
| 13634 | 13722 | } |
| 13635 | 13723 | } |
| 13636 | 13724 | |
| 13725 | +// MARK: - SerializationFeature | |
| 13726 | +struct SerializationFeature: Codable { | |
| 13727 | + let serializationFeature: Int | |
| 13728 | + | |
| 13729 | + enum CodingKeys: String, CodingKey { | |
| 13730 | + case serializationFeature = "SerializationFeature" | |
| 13731 | + } | |
| 13732 | +} | |
| 13733 | + | |
| 13734 | +// MARK: SerializationFeature convenience initializers and mutators | |
| 13735 | + | |
| 13736 | +extension SerializationFeature { | |
| 13737 | + init(data: Data) throws { | |
| 13738 | + self = try newJSONDecoder().decode(SerializationFeature.self, from: data) | |
| 13739 | + } | |
| 13740 | + | |
| 13741 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13742 | + guard let data = json.data(using: encoding) else { | |
| 13743 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13744 | + } | |
| 13745 | + try self.init(data: data) | |
| 13746 | + } | |
| 13747 | + | |
| 13748 | + init(fromURL url: URL) throws { | |
| 13749 | + try self.init(data: try Data(contentsOf: url)) | |
| 13750 | + } | |
| 13751 | + | |
| 13752 | + func with( | |
| 13753 | + serializationFeature: Int? = nil | |
| 13754 | + ) -> SerializationFeature { | |
| 13755 | + return SerializationFeature( | |
| 13756 | + serializationFeature: serializationFeature ?? self.serializationFeature | |
| 13757 | + ) | |
| 13758 | + } | |
| 13759 | + | |
| 13760 | + func jsonData() throws -> Data { | |
| 13761 | + return try newJSONEncoder().encode(self) | |
| 13762 | + } | |
| 13763 | + | |
| 13764 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13765 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13766 | + } | |
| 13767 | +} | |
| 13768 | + | |
| 13637 | 13769 | // MARK: - Serialize |
| 13638 | 13770 | struct Serialize: Codable { |
| 13639 | 13771 | let serialize: Int |
| @@ -15526,145 +15658,17 @@ extension Utf8JSONReader { | ||
| 15526 | 15658 | } |
| 15527 | 15659 | } |
| 15528 | 15660 | |
| 15529 | -// MARK: - Utf8JSONWriter | |
| 15530 | -struct Utf8JSONWriter: Codable { | |
| 15531 | - let utf8JSONWriter: Int | |
| 15532 | - | |
| 15533 | - enum CodingKeys: String, CodingKey { | |
| 15534 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 15535 | - } | |
| 15536 | -} | |
| 15537 | - | |
| 15538 | -// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 15539 | - | |
| 15540 | -extension Utf8JSONWriter { | |
| 15541 | - init(data: Data) throws { | |
| 15542 | - self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 15543 | - } | |
| 15544 | - | |
| 15545 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15546 | - guard let data = json.data(using: encoding) else { | |
| 15547 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15548 | - } | |
| 15549 | - try self.init(data: data) | |
| 15550 | - } | |
| 15551 | - | |
| 15552 | - init(fromURL url: URL) throws { | |
| 15553 | - try self.init(data: try Data(contentsOf: url)) | |
| 15554 | - } | |
| 15555 | - | |
| 15556 | - func with( | |
| 15557 | - utf8JSONWriter: Int? = nil | |
| 15558 | - ) -> Utf8JSONWriter { | |
| 15559 | - return Utf8JSONWriter( | |
| 15560 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 15561 | - ) | |
| 15562 | - } | |
| 15563 | - | |
| 15564 | - func jsonData() throws -> Data { | |
| 15565 | - return try newJSONEncoder().encode(self) | |
| 15566 | - } | |
| 15567 | - | |
| 15568 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15569 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15570 | - } | |
| 15571 | -} | |
| 15572 | - | |
| 15573 | -// MARK: - UUIDClass | |
| 15574 | -struct UUIDClass: Codable { | |
| 15575 | - let uuid: Int | |
| 15576 | - | |
| 15577 | - enum CodingKeys: String, CodingKey { | |
| 15578 | - case uuid = "UUID" | |
| 15579 | - } | |
| 15580 | -} | |
| 15581 | - | |
| 15582 | -// MARK: UUIDClass convenience initializers and mutators | |
| 15583 | - | |
| 15584 | -extension UUIDClass { | |
| 15585 | - init(data: Data) throws { | |
| 15586 | - self = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 15587 | - } | |
| 15588 | - | |
| 15589 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15590 | - guard let data = json.data(using: encoding) else { | |
| 15591 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15592 | - } | |
| 15593 | - try self.init(data: data) | |
| 15594 | - } | |
| 15595 | - | |
| 15596 | - init(fromURL url: URL) throws { | |
| 15597 | - try self.init(data: try Data(contentsOf: url)) | |
| 15598 | - } | |
| 15599 | - | |
| 15600 | - func with( | |
| 15601 | - uuid: Int? = nil | |
| 15602 | - ) -> UUIDClass { | |
| 15603 | - return UUIDClass( | |
| 15604 | - uuid: uuid ?? self.uuid | |
| 15605 | - ) | |
| 15606 | - } | |
| 15607 | - | |
| 15608 | - func jsonData() throws -> Data { | |
| 15609 | - return try newJSONEncoder().encode(self) | |
| 15610 | - } | |
| 15611 | - | |
| 15612 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15613 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15614 | - } | |
| 15615 | -} | |
| 15616 | - | |
| 15617 | -// MARK: - Virtual | |
| 15618 | -struct Virtual: Codable { | |
| 15619 | - let virtual: Int | |
| 15620 | - | |
| 15621 | - enum CodingKeys: String, CodingKey { | |
| 15622 | - case virtual = "virtual" | |
| 15623 | - } | |
| 15624 | -} | |
| 15625 | - | |
| 15626 | -// MARK: Virtual convenience initializers and mutators | |
| 15627 | - | |
| 15628 | -extension Virtual { | |
| 15629 | - init(data: Data) throws { | |
| 15630 | - self = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 15631 | - } | |
| 15632 | - | |
| 15633 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15634 | - guard let data = json.data(using: encoding) else { | |
| 15635 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15636 | - } | |
| 15637 | - try self.init(data: data) | |
| 15638 | - } | |
| 15639 | - | |
| 15640 | - init(fromURL url: URL) throws { | |
| 15641 | - try self.init(data: try Data(contentsOf: url)) | |
| 15642 | - } | |
| 15643 | - | |
| 15644 | - func with( | |
| 15645 | - virtual: Int? = nil | |
| 15646 | - ) -> Virtual { | |
| 15647 | - return Virtual( | |
| 15648 | - virtual: virtual ?? self.virtual | |
| 15649 | - ) | |
| 15650 | - } | |
| 15651 | - | |
| 15652 | - func jsonData() throws -> Data { | |
| 15653 | - return try newJSONEncoder().encode(self) | |
| 15654 | - } | |
| 15655 | - | |
| 15656 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15657 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15658 | - } | |
| 15659 | -} | |
| 15660 | - | |
| 15661 | 15661 | // MARK: - Obj6 |
| 15662 | 15662 | struct Obj6: Codable { |
| 15663 | 15663 | let dummy: Int |
| 15664 | + let obj6Var: Var | |
| 15664 | 15665 | let obj6Weak: Weak |
| 15665 | 15666 | let obj6Where: Where |
| 15666 | 15667 | let obj6While: While |
| 15667 | 15668 | let obj6WillSet: WillSet |
| 15669 | + let utf8JSONWriter: Utf8JSONWriter | |
| 15670 | + let uuid: UUIDClass | |
| 15671 | + let virtual: Virtual | |
| 15668 | 15672 | let void: Void |
| 15669 | 15673 | let volatile: Volatile |
| 15670 | 15674 | let wcharT: WcharT |
| @@ -15676,10 +15680,14 @@ struct Obj6: Codable { | ||
| 15676 | 15680 | |
| 15677 | 15681 | enum CodingKeys: String, CodingKey { |
| 15678 | 15682 | case dummy = "dummy" |
| 15683 | + case obj6Var = "var" | |
| 15679 | 15684 | case obj6Weak = "weak" |
| 15680 | 15685 | case obj6Where = "where" |
| 15681 | 15686 | case obj6While = "while" |
| 15682 | 15687 | case obj6WillSet = "willSet" |
| 15688 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 15689 | + case uuid = "UUID" | |
| 15690 | + case virtual = "virtual" | |
| 15683 | 15691 | case void = "void" |
| 15684 | 15692 | case volatile = "volatile" |
| 15685 | 15693 | case wcharT = "wchar_t" |
| @@ -15711,10 +15719,14 @@ extension Obj6 { | ||
| 15711 | 15719 | |
| 15712 | 15720 | func with( |
| 15713 | 15721 | dummy: Int? = nil, |
| 15722 | + obj6Var: Var? = nil, | |
| 15714 | 15723 | obj6Weak: Weak? = nil, |
| 15715 | 15724 | obj6Where: Where? = nil, |
| 15716 | 15725 | obj6While: While? = nil, |
| 15717 | 15726 | obj6WillSet: WillSet? = nil, |
| 15727 | + utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 15728 | + uuid: UUIDClass? = nil, | |
| 15729 | + virtual: Virtual? = nil, | |
| 15718 | 15730 | void: Void? = nil, |
| 15719 | 15731 | volatile: Volatile? = nil, |
| 15720 | 15732 | wcharT: WcharT? = nil, |
| @@ -15726,10 +15738,14 @@ extension Obj6 { | ||
| 15726 | 15738 | ) -> Obj6 { |
| 15727 | 15739 | return Obj6( |
| 15728 | 15740 | dummy: dummy ?? self.dummy, |
| 15741 | + obj6Var: obj6Var ?? self.obj6Var, | |
| 15729 | 15742 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 15730 | 15743 | obj6Where: obj6Where ?? self.obj6Where, |
| 15731 | 15744 | obj6While: obj6While ?? self.obj6While, |
| 15732 | 15745 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 15746 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 15747 | + uuid: uuid ?? self.uuid, | |
| 15748 | + virtual: virtual ?? self.virtual, | |
| 15733 | 15749 | void: void ?? self.void, |
| 15734 | 15750 | volatile: volatile ?? self.volatile, |
| 15735 | 15751 | wcharT: wcharT ?? self.wcharT, |
| @@ -15750,6 +15766,50 @@ extension Obj6 { | ||
| 15750 | 15766 | } |
| 15751 | 15767 | } |
| 15752 | 15768 | |
| 15769 | +// MARK: - Var | |
| 15770 | +struct Var: Codable { | |
| 15771 | + let varVar: Int | |
| 15772 | + | |
| 15773 | + enum CodingKeys: String, CodingKey { | |
| 15774 | + case varVar = "var" | |
| 15775 | + } | |
| 15776 | +} | |
| 15777 | + | |
| 15778 | +// MARK: Var convenience initializers and mutators | |
| 15779 | + | |
| 15780 | +extension Var { | |
| 15781 | + init(data: Data) throws { | |
| 15782 | + self = try newJSONDecoder().decode(Var.self, from: data) | |
| 15783 | + } | |
| 15784 | + | |
| 15785 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15786 | + guard let data = json.data(using: encoding) else { | |
| 15787 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15788 | + } | |
| 15789 | + try self.init(data: data) | |
| 15790 | + } | |
| 15791 | + | |
| 15792 | + init(fromURL url: URL) throws { | |
| 15793 | + try self.init(data: try Data(contentsOf: url)) | |
| 15794 | + } | |
| 15795 | + | |
| 15796 | + func with( | |
| 15797 | + varVar: Int? = nil | |
| 15798 | + ) -> Var { | |
| 15799 | + return Var( | |
| 15800 | + varVar: varVar ?? self.varVar | |
| 15801 | + ) | |
| 15802 | + } | |
| 15803 | + | |
| 15804 | + func jsonData() throws -> Data { | |
| 15805 | + return try newJSONEncoder().encode(self) | |
| 15806 | + } | |
| 15807 | + | |
| 15808 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15809 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15810 | + } | |
| 15811 | +} | |
| 15812 | + | |
| 15753 | 15813 | // MARK: - Weak |
| 15754 | 15814 | struct Weak: Codable { |
| 15755 | 15815 | let weakWeak: Int |
| @@ -15926,6 +15986,138 @@ extension WillSet { | ||
| 15926 | 15986 | } |
| 15927 | 15987 | } |
| 15928 | 15988 | |
| 15989 | +// MARK: - Utf8JSONWriter | |
| 15990 | +struct Utf8JSONWriter: Codable { | |
| 15991 | + let utf8JSONWriter: Int | |
| 15992 | + | |
| 15993 | + enum CodingKeys: String, CodingKey { | |
| 15994 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 15995 | + } | |
| 15996 | +} | |
| 15997 | + | |
| 15998 | +// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 15999 | + | |
| 16000 | +extension Utf8JSONWriter { | |
| 16001 | + init(data: Data) throws { | |
| 16002 | + self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 16003 | + } | |
| 16004 | + | |
| 16005 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16006 | + guard let data = json.data(using: encoding) else { | |
| 16007 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16008 | + } | |
| 16009 | + try self.init(data: data) | |
| 16010 | + } | |
| 16011 | + | |
| 16012 | + init(fromURL url: URL) throws { | |
| 16013 | + try self.init(data: try Data(contentsOf: url)) | |
| 16014 | + } | |
| 16015 | + | |
| 16016 | + func with( | |
| 16017 | + utf8JSONWriter: Int? = nil | |
| 16018 | + ) -> Utf8JSONWriter { | |
| 16019 | + return Utf8JSONWriter( | |
| 16020 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 16021 | + ) | |
| 16022 | + } | |
| 16023 | + | |
| 16024 | + func jsonData() throws -> Data { | |
| 16025 | + return try newJSONEncoder().encode(self) | |
| 16026 | + } | |
| 16027 | + | |
| 16028 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16029 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16030 | + } | |
| 16031 | +} | |
| 16032 | + | |
| 16033 | +// MARK: - UUIDClass | |
| 16034 | +struct UUIDClass: Codable { | |
| 16035 | + let uuid: Int | |
| 16036 | + | |
| 16037 | + enum CodingKeys: String, CodingKey { | |
| 16038 | + case uuid = "UUID" | |
| 16039 | + } | |
| 16040 | +} | |
| 16041 | + | |
| 16042 | +// MARK: UUIDClass convenience initializers and mutators | |
| 16043 | + | |
| 16044 | +extension UUIDClass { | |
| 16045 | + init(data: Data) throws { | |
| 16046 | + self = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 16047 | + } | |
| 16048 | + | |
| 16049 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16050 | + guard let data = json.data(using: encoding) else { | |
| 16051 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16052 | + } | |
| 16053 | + try self.init(data: data) | |
| 16054 | + } | |
| 16055 | + | |
| 16056 | + init(fromURL url: URL) throws { | |
| 16057 | + try self.init(data: try Data(contentsOf: url)) | |
| 16058 | + } | |
| 16059 | + | |
| 16060 | + func with( | |
| 16061 | + uuid: Int? = nil | |
| 16062 | + ) -> UUIDClass { | |
| 16063 | + return UUIDClass( | |
| 16064 | + uuid: uuid ?? self.uuid | |
| 16065 | + ) | |
| 16066 | + } | |
| 16067 | + | |
| 16068 | + func jsonData() throws -> Data { | |
| 16069 | + return try newJSONEncoder().encode(self) | |
| 16070 | + } | |
| 16071 | + | |
| 16072 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16073 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16074 | + } | |
| 16075 | +} | |
| 16076 | + | |
| 16077 | +// MARK: - Virtual | |
| 16078 | +struct Virtual: Codable { | |
| 16079 | + let virtual: Int | |
| 16080 | + | |
| 16081 | + enum CodingKeys: String, CodingKey { | |
| 16082 | + case virtual = "virtual" | |
| 16083 | + } | |
| 16084 | +} | |
| 16085 | + | |
| 16086 | +// MARK: Virtual convenience initializers and mutators | |
| 16087 | + | |
| 16088 | +extension Virtual { | |
| 16089 | + init(data: Data) throws { | |
| 16090 | + self = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 16091 | + } | |
| 16092 | + | |
| 16093 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16094 | + guard let data = json.data(using: encoding) else { | |
| 16095 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16096 | + } | |
| 16097 | + try self.init(data: data) | |
| 16098 | + } | |
| 16099 | + | |
| 16100 | + init(fromURL url: URL) throws { | |
| 16101 | + try self.init(data: try Data(contentsOf: url)) | |
| 16102 | + } | |
| 16103 | + | |
| 16104 | + func with( | |
| 16105 | + virtual: Int? = nil | |
| 16106 | + ) -> Virtual { | |
| 16107 | + return Virtual( | |
| 16108 | + virtual: virtual ?? self.virtual | |
| 16109 | + ) | |
| 16110 | + } | |
| 16111 | + | |
| 16112 | + func jsonData() throws -> Data { | |
| 16113 | + return try newJSONEncoder().encode(self) | |
| 16114 | + } | |
| 16115 | + | |
| 16116 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16117 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16118 | + } | |
| 16119 | +} | |
| 16120 | + | |
| 15929 | 16121 | // MARK: - Void |
| 15930 | 16122 | struct Void: Codable { |
| 15931 | 16123 | let void: Int |
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+896 −680
| @@ -3608,6 +3608,7 @@ extension ClassClass { | ||
| 3608 | 3608 | let del: Del |
| 3609 | 3609 | let delegate: Delegate |
| 3610 | 3610 | let delete: Delete |
| 3611 | + let deserializationFeature: DeserializationFeature | |
| 3611 | 3612 | let dict: Dict |
| 3612 | 3613 | let dictionary: Dictionary |
| 3613 | 3614 | let double: DoubleClass |
| @@ -3638,7 +3639,6 @@ extension ClassClass { | ||
| 3638 | 3639 | let function: Function |
| 3639 | 3640 | let global: Global |
| 3640 | 3641 | let go: Go |
| 3641 | - let goto: Goto | |
| 3642 | 3642 | let obj2Default: Default |
| 3643 | 3643 | let obj2Defer: Defer |
| 3644 | 3644 | let obj2Deinit: Deinit |
| @@ -3675,6 +3675,7 @@ extension ClassClass { | ||
| 3675 | 3675 | case del = "del" |
| 3676 | 3676 | case delegate = "delegate" |
| 3677 | 3677 | case delete = "delete" |
| 3678 | + case deserializationFeature = "DeserializationFeature" | |
| 3678 | 3679 | case dict = "dict" |
| 3679 | 3680 | case dictionary = "dictionary" |
| 3680 | 3681 | case double = "double" |
| @@ -3705,7 +3706,6 @@ extension ClassClass { | ||
| 3705 | 3706 | case function = "function" |
| 3706 | 3707 | case global = "global" |
| 3707 | 3708 | case go = "go" |
| 3708 | - case goto = "goto" | |
| 3709 | 3709 | case obj2Default = "default" |
| 3710 | 3710 | case obj2Defer = "defer" |
| 3711 | 3711 | case obj2Deinit = "deinit" |
| @@ -3725,7 +3725,7 @@ extension ClassClass { | ||
| 3725 | 3725 | case purpleFalse = "false" |
| 3726 | 3726 | } |
| 3727 | 3727 | |
| 3728 | - init(dateFormatter: DateFormatterClass, dateOnly: DateOnly, dateOnlyConverter: DateOnlyConverter, dateParseHandling: DateParseHandling, dateTime: DateTime, dateTimeStyles: DateTimeStyles, debugger: Debugger, decimal: Decimal, declare: Declare, decltype: Decltype, decodeString: DecodeString, decoder: DecoderClass, decodingError: DecodingErrorClass, def: Def, del: Del, delegate: Delegate, delete: Delete, dict: Dict, dictionary: Dictionary, double: DoubleClass, dummy: Int, dynamicCast: DynamicCast, elif: Elif, encodeQuickType: EncodeQuickType, encoder: EncoderClass, enumValues: EnumValues, equalityContract: EqualityContract, equatable: Equatable, event: Event, except: Except, exception: Exception, explicit: Explicit, export: Export, exposing: Exposing, extends: Extends, extern: Extern, finally: Finally, fixed: Fixed, float: Float, foreach: Foreach, formatException: FormatException, friend: Friend, from: From, fromJSON: FromJSON, function: Function, global: Global, go: Go, goto: Goto, obj2Default: Default, obj2Defer: Defer, obj2Deinit: Deinit, obj2DidSet: DidSet, obj2Do: Do, obj2Dynamic: Dynamic, obj2Else: Else, obj2Enum: Enum, obj2Extension: Extension, obj2Fallthrough: Fallthrough, obj2False: False, obj2Fileprivate: Fileprivate, obj2Final: Final, obj2For: For, obj2Func: Func, obj2Get: Get, purpleFalse: FalseClass) { | |
| 3728 | + init(dateFormatter: DateFormatterClass, dateOnly: DateOnly, dateOnlyConverter: DateOnlyConverter, dateParseHandling: DateParseHandling, dateTime: DateTime, dateTimeStyles: DateTimeStyles, debugger: Debugger, decimal: Decimal, declare: Declare, decltype: Decltype, decodeString: DecodeString, decoder: DecoderClass, decodingError: DecodingErrorClass, def: Def, del: Del, delegate: Delegate, delete: Delete, deserializationFeature: DeserializationFeature, dict: Dict, dictionary: Dictionary, double: DoubleClass, dummy: Int, dynamicCast: DynamicCast, elif: Elif, encodeQuickType: EncodeQuickType, encoder: EncoderClass, enumValues: EnumValues, equalityContract: EqualityContract, equatable: Equatable, event: Event, except: Except, exception: Exception, explicit: Explicit, export: Export, exposing: Exposing, extends: Extends, extern: Extern, finally: Finally, fixed: Fixed, float: Float, foreach: Foreach, formatException: FormatException, friend: Friend, from: From, fromJSON: FromJSON, function: Function, global: Global, go: Go, obj2Default: Default, obj2Defer: Defer, obj2Deinit: Deinit, obj2DidSet: DidSet, obj2Do: Do, obj2Dynamic: Dynamic, obj2Else: Else, obj2Enum: Enum, obj2Extension: Extension, obj2Fallthrough: Fallthrough, obj2False: False, obj2Fileprivate: Fileprivate, obj2Final: Final, obj2For: For, obj2Func: Func, obj2Get: Get, purpleFalse: FalseClass) { | |
| 3729 | 3729 | self.dateFormatter = dateFormatter |
| 3730 | 3730 | self.dateOnly = dateOnly |
| 3731 | 3731 | self.dateOnlyConverter = dateOnlyConverter |
| @@ -3743,6 +3743,7 @@ extension ClassClass { | ||
| 3743 | 3743 | self.del = del |
| 3744 | 3744 | self.delegate = delegate |
| 3745 | 3745 | self.delete = delete |
| 3746 | + self.deserializationFeature = deserializationFeature | |
| 3746 | 3747 | self.dict = dict |
| 3747 | 3748 | self.dictionary = dictionary |
| 3748 | 3749 | self.double = double |
| @@ -3773,7 +3774,6 @@ extension ClassClass { | ||
| 3773 | 3774 | self.function = function |
| 3774 | 3775 | self.global = global |
| 3775 | 3776 | self.go = go |
| 3776 | - self.goto = goto | |
| 3777 | 3777 | self.obj2Default = obj2Default |
| 3778 | 3778 | self.obj2Defer = obj2Defer |
| 3779 | 3779 | self.obj2Deinit = obj2Deinit |
| @@ -3799,7 +3799,7 @@ extension ClassClass { | ||
| 3799 | 3799 | extension Obj2 { |
| 3800 | 3800 | convenience init(data: Data) throws { |
| 3801 | 3801 | let me = try newJSONDecoder().decode(Obj2.self, from: data) |
| 3802 | - self.init(dateFormatter: me.dateFormatter, dateOnly: me.dateOnly, dateOnlyConverter: me.dateOnlyConverter, dateParseHandling: me.dateParseHandling, dateTime: me.dateTime, dateTimeStyles: me.dateTimeStyles, debugger: me.debugger, decimal: me.decimal, declare: me.declare, decltype: me.decltype, decodeString: me.decodeString, decoder: me.decoder, decodingError: me.decodingError, def: me.def, del: me.del, delegate: me.delegate, delete: me.delete, dict: me.dict, dictionary: me.dictionary, double: me.double, dummy: me.dummy, dynamicCast: me.dynamicCast, elif: me.elif, encodeQuickType: me.encodeQuickType, encoder: me.encoder, enumValues: me.enumValues, equalityContract: me.equalityContract, equatable: me.equatable, event: me.event, except: me.except, exception: me.exception, explicit: me.explicit, export: me.export, exposing: me.exposing, extends: me.extends, extern: me.extern, finally: me.finally, fixed: me.fixed, float: me.float, foreach: me.foreach, formatException: me.formatException, friend: me.friend, from: me.from, fromJSON: me.fromJSON, function: me.function, global: me.global, go: me.go, goto: me.goto, obj2Default: me.obj2Default, obj2Defer: me.obj2Defer, obj2Deinit: me.obj2Deinit, obj2DidSet: me.obj2DidSet, obj2Do: me.obj2Do, obj2Dynamic: me.obj2Dynamic, obj2Else: me.obj2Else, obj2Enum: me.obj2Enum, obj2Extension: me.obj2Extension, obj2Fallthrough: me.obj2Fallthrough, obj2False: me.obj2False, obj2Fileprivate: me.obj2Fileprivate, obj2Final: me.obj2Final, obj2For: me.obj2For, obj2Func: me.obj2Func, obj2Get: me.obj2Get, purpleFalse: me.purpleFalse) | |
| 3802 | + self.init(dateFormatter: me.dateFormatter, dateOnly: me.dateOnly, dateOnlyConverter: me.dateOnlyConverter, dateParseHandling: me.dateParseHandling, dateTime: me.dateTime, dateTimeStyles: me.dateTimeStyles, debugger: me.debugger, decimal: me.decimal, declare: me.declare, decltype: me.decltype, decodeString: me.decodeString, decoder: me.decoder, decodingError: me.decodingError, def: me.def, del: me.del, delegate: me.delegate, delete: me.delete, deserializationFeature: me.deserializationFeature, dict: me.dict, dictionary: me.dictionary, double: me.double, dummy: me.dummy, dynamicCast: me.dynamicCast, elif: me.elif, encodeQuickType: me.encodeQuickType, encoder: me.encoder, enumValues: me.enumValues, equalityContract: me.equalityContract, equatable: me.equatable, event: me.event, except: me.except, exception: me.exception, explicit: me.explicit, export: me.export, exposing: me.exposing, extends: me.extends, extern: me.extern, finally: me.finally, fixed: me.fixed, float: me.float, foreach: me.foreach, formatException: me.formatException, friend: me.friend, from: me.from, fromJSON: me.fromJSON, function: me.function, global: me.global, go: me.go, obj2Default: me.obj2Default, obj2Defer: me.obj2Defer, obj2Deinit: me.obj2Deinit, obj2DidSet: me.obj2DidSet, obj2Do: me.obj2Do, obj2Dynamic: me.obj2Dynamic, obj2Else: me.obj2Else, obj2Enum: me.obj2Enum, obj2Extension: me.obj2Extension, obj2Fallthrough: me.obj2Fallthrough, obj2False: me.obj2False, obj2Fileprivate: me.obj2Fileprivate, obj2Final: me.obj2Final, obj2For: me.obj2For, obj2Func: me.obj2Func, obj2Get: me.obj2Get, purpleFalse: me.purpleFalse) | |
| 3803 | 3803 | } |
| 3804 | 3804 | |
| 3805 | 3805 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -3831,6 +3831,7 @@ extension Obj2 { | ||
| 3831 | 3831 | del: Del? = nil, |
| 3832 | 3832 | delegate: Delegate? = nil, |
| 3833 | 3833 | delete: Delete? = nil, |
| 3834 | + deserializationFeature: DeserializationFeature? = nil, | |
| 3834 | 3835 | dict: Dict? = nil, |
| 3835 | 3836 | dictionary: Dictionary? = nil, |
| 3836 | 3837 | double: DoubleClass? = nil, |
| @@ -3861,7 +3862,6 @@ extension Obj2 { | ||
| 3861 | 3862 | function: Function? = nil, |
| 3862 | 3863 | global: Global? = nil, |
| 3863 | 3864 | go: Go? = nil, |
| 3864 | - goto: Goto? = nil, | |
| 3865 | 3865 | obj2Default: Default? = nil, |
| 3866 | 3866 | obj2Defer: Defer? = nil, |
| 3867 | 3867 | obj2Deinit: Deinit? = nil, |
| @@ -3898,6 +3898,7 @@ extension Obj2 { | ||
| 3898 | 3898 | del: del ?? self.del, |
| 3899 | 3899 | delegate: delegate ?? self.delegate, |
| 3900 | 3900 | delete: delete ?? self.delete, |
| 3901 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature, | |
| 3901 | 3902 | dict: dict ?? self.dict, |
| 3902 | 3903 | dictionary: dictionary ?? self.dictionary, |
| 3903 | 3904 | double: double ?? self.double, |
| @@ -3928,7 +3929,6 @@ extension Obj2 { | ||
| 3928 | 3929 | function: function ?? self.function, |
| 3929 | 3930 | global: global ?? self.global, |
| 3930 | 3931 | go: go ?? self.go, |
| 3931 | - goto: goto ?? self.goto, | |
| 3932 | 3932 | obj2Default: obj2Default ?? self.obj2Default, |
| 3933 | 3933 | obj2Defer: obj2Defer ?? self.obj2Defer, |
| 3934 | 3934 | obj2Deinit: obj2Deinit ?? self.obj2Deinit, |
| @@ -4791,6 +4791,55 @@ extension Delete { | ||
| 4791 | 4791 | } |
| 4792 | 4792 | } |
| 4793 | 4793 | |
| 4794 | +// MARK: - DeserializationFeature | |
| 4795 | +@objcMembers class DeserializationFeature: NSObject, Codable { | |
| 4796 | + let deserializationFeature: Int | |
| 4797 | + | |
| 4798 | + enum CodingKeys: String, CodingKey { | |
| 4799 | + case deserializationFeature = "DeserializationFeature" | |
| 4800 | + } | |
| 4801 | + | |
| 4802 | + init(deserializationFeature: Int) { | |
| 4803 | + self.deserializationFeature = deserializationFeature | |
| 4804 | + } | |
| 4805 | +} | |
| 4806 | + | |
| 4807 | +// MARK: DeserializationFeature convenience initializers and mutators | |
| 4808 | + | |
| 4809 | +extension DeserializationFeature { | |
| 4810 | + convenience init(data: Data) throws { | |
| 4811 | + let me = try newJSONDecoder().decode(DeserializationFeature.self, from: data) | |
| 4812 | + self.init(deserializationFeature: me.deserializationFeature) | |
| 4813 | + } | |
| 4814 | + | |
| 4815 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 4816 | + guard let data = json.data(using: encoding) else { | |
| 4817 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 4818 | + } | |
| 4819 | + try self.init(data: data) | |
| 4820 | + } | |
| 4821 | + | |
| 4822 | + convenience init(fromURL url: URL) throws { | |
| 4823 | + try self.init(data: try Data(contentsOf: url)) | |
| 4824 | + } | |
| 4825 | + | |
| 4826 | + func with( | |
| 4827 | + deserializationFeature: Int? = nil | |
| 4828 | + ) -> DeserializationFeature { | |
| 4829 | + return DeserializationFeature( | |
| 4830 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature | |
| 4831 | + ) | |
| 4832 | + } | |
| 4833 | + | |
| 4834 | + func jsonData() throws -> Data { | |
| 4835 | + return try newJSONEncoder().encode(self) | |
| 4836 | + } | |
| 4837 | + | |
| 4838 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 4839 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 4840 | + } | |
| 4841 | +} | |
| 4842 | + | |
| 4794 | 4843 | // MARK: - Dict |
| 4795 | 4844 | @objcMembers class Dict: NSObject, Codable { |
| 4796 | 4845 | let dict: Int |
| @@ -6217,55 +6266,6 @@ extension Go { | ||
| 6217 | 6266 | } |
| 6218 | 6267 | } |
| 6219 | 6268 | |
| 6220 | -// MARK: - Goto | |
| 6221 | -@objcMembers class Goto: NSObject, Codable { | |
| 6222 | - let goto: Int | |
| 6223 | - | |
| 6224 | - enum CodingKeys: String, CodingKey { | |
| 6225 | - case goto = "goto" | |
| 6226 | - } | |
| 6227 | - | |
| 6228 | - init(goto: Int) { | |
| 6229 | - self.goto = goto | |
| 6230 | - } | |
| 6231 | -} | |
| 6232 | - | |
| 6233 | -// MARK: Goto convenience initializers and mutators | |
| 6234 | - | |
| 6235 | -extension Goto { | |
| 6236 | - convenience init(data: Data) throws { | |
| 6237 | - let me = try newJSONDecoder().decode(Goto.self, from: data) | |
| 6238 | - self.init(goto: me.goto) | |
| 6239 | - } | |
| 6240 | - | |
| 6241 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 6242 | - guard let data = json.data(using: encoding) else { | |
| 6243 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 6244 | - } | |
| 6245 | - try self.init(data: data) | |
| 6246 | - } | |
| 6247 | - | |
| 6248 | - convenience init(fromURL url: URL) throws { | |
| 6249 | - try self.init(data: try Data(contentsOf: url)) | |
| 6250 | - } | |
| 6251 | - | |
| 6252 | - func with( | |
| 6253 | - goto: Int? = nil | |
| 6254 | - ) -> Goto { | |
| 6255 | - return Goto( | |
| 6256 | - goto: goto ?? self.goto | |
| 6257 | - ) | |
| 6258 | - } | |
| 6259 | - | |
| 6260 | - func jsonData() throws -> Data { | |
| 6261 | - return try newJSONEncoder().encode(self) | |
| 6262 | - } | |
| 6263 | - | |
| 6264 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 6265 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 6266 | - } | |
| 6267 | -} | |
| 6268 | - | |
| 6269 | 6269 | // MARK: - Default |
| 6270 | 6270 | @objcMembers class Default: NSObject, Codable { |
| 6271 | 6271 | let defaultDefault: Int |
| @@ -7102,6 +7102,7 @@ extension FalseClass { | ||
| 7102 | 7102 | // MARK: - Obj3 |
| 7103 | 7103 | @objcMembers class Obj3: NSObject, Codable { |
| 7104 | 7104 | let dummy: Int |
| 7105 | + let goto: Goto | |
| 7105 | 7106 | let hasOwnProperty: HasOwnProperty |
| 7106 | 7107 | let hashCode: HashCode |
| 7107 | 7108 | let hashable: HashableClass |
| @@ -7149,7 +7150,6 @@ extension FalseClass { | ||
| 7149 | 7150 | let new: New |
| 7150 | 7151 | let newtonsoft: Newtonsoft |
| 7151 | 7152 | let no: No |
| 7152 | - let noexcept: Noexcept | |
| 7153 | 7153 | let obj3Guard: Guard |
| 7154 | 7154 | let obj3If: If |
| 7155 | 7155 | let obj3Import: Import |
| @@ -7169,6 +7169,7 @@ extension FalseClass { | ||
| 7169 | 7169 | |
| 7170 | 7170 | enum CodingKeys: String, CodingKey { |
| 7171 | 7171 | case dummy = "dummy" |
| 7172 | + case goto = "goto" | |
| 7172 | 7173 | case hasOwnProperty = "hasOwnProperty" |
| 7173 | 7174 | case hashCode = "hashCode" |
| 7174 | 7175 | case hashable = "Hashable" |
| @@ -7216,7 +7217,6 @@ extension FalseClass { | ||
| 7216 | 7217 | case new = "new" |
| 7217 | 7218 | case newtonsoft = "newtonsoft" |
| 7218 | 7219 | case no = "NO" |
| 7219 | - case noexcept = "noexcept" | |
| 7220 | 7220 | case obj3Guard = "guard" |
| 7221 | 7221 | case obj3If = "if" |
| 7222 | 7222 | case obj3Import = "import" |
| @@ -7235,8 +7235,9 @@ extension FalseClass { | ||
| 7235 | 7235 | case obj3Nil = "nil" |
| 7236 | 7236 | } |
| 7237 | 7237 | |
| 7238 | - init(dummy: Int, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, noexcept: Noexcept, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating, obj3Nil: Nil) { | |
| 7238 | + init(dummy: Int, goto: Goto, hasOwnProperty: HasOwnProperty, hashCode: HashCode, hashable: HashableClass, hasher: HasherClass, id: ID, imp: Imp, implements: Implements, implicit: Implicit, inline: Inline, instanceof: Instanceof, int: IntClass, interface: Interface, isoDateTimeOffsetConverter: ISODateTimeOffsetConverter, iterable: Iterable, jdec: Jdec, jenc: Jenc, jpipe: Jpipe, jsonAny: JSONAnyClass, jsonCodingKey: JSONCodingKeyClass, jsonConverter: JSONConverter, jsonDecoder: JSONDecoderClass, jsonEncoder: JSONEncoderClass, jsonException: JSONException, jsonGenerator: JSONGenerator, jsonNode: JSONNode, jsonNull: JSONNullClass, jsonParser: JSONParser, jsonReader: JSONReader, jsonSerializer: JSONSerializer, jsonToken: JSONToken, jsonTokenType: JSONTokenType, jsonWriter: JSONWriter, lambda: Lambda, list: List, locale: LocaleClass, lock: Lock, long: Long, map: Map, mapEntry: MapEntry, metadataPropertyHandling: MetadataPropertyHandling, module: Module, mutable: Mutable, namespace: Namespace, native: Native, new: New, newtonsoft: Newtonsoft, no: No, obj3Guard: Guard, obj3If: If, obj3Import: Import, obj3In: In, obj3Indirect: Indirect, obj3Infix: Infix, obj3Init: Init, obj3Inout: Inout, obj3Internal: Internal, obj3Is: Is, obj3JSON: JSON, obj3Lazy: Lazy, obj3Left: Left, obj3Let: Let, obj3Mutating: Mutating, obj3Nil: Nil) { | |
| 7239 | 7239 | self.dummy = dummy |
| 7240 | + self.goto = goto | |
| 7240 | 7241 | self.hasOwnProperty = hasOwnProperty |
| 7241 | 7242 | self.hashCode = hashCode |
| 7242 | 7243 | self.hashable = hashable |
| @@ -7284,7 +7285,6 @@ extension FalseClass { | ||
| 7284 | 7285 | self.new = new |
| 7285 | 7286 | self.newtonsoft = newtonsoft |
| 7286 | 7287 | self.no = no |
| 7287 | - self.noexcept = noexcept | |
| 7288 | 7288 | self.obj3Guard = obj3Guard |
| 7289 | 7289 | self.obj3If = obj3If |
| 7290 | 7290 | self.obj3Import = obj3Import |
| @@ -7309,7 +7309,7 @@ extension FalseClass { | ||
| 7309 | 7309 | extension Obj3 { |
| 7310 | 7310 | convenience init(data: Data) throws { |
| 7311 | 7311 | let me = try newJSONDecoder().decode(Obj3.self, from: data) |
| 7312 | - self.init(dummy: me.dummy, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, noexcept: me.noexcept, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating, obj3Nil: me.obj3Nil) | |
| 7312 | + self.init(dummy: me.dummy, goto: me.goto, hasOwnProperty: me.hasOwnProperty, hashCode: me.hashCode, hashable: me.hashable, hasher: me.hasher, id: me.id, imp: me.imp, implements: me.implements, implicit: me.implicit, inline: me.inline, instanceof: me.instanceof, int: me.int, interface: me.interface, isoDateTimeOffsetConverter: me.isoDateTimeOffsetConverter, iterable: me.iterable, jdec: me.jdec, jenc: me.jenc, jpipe: me.jpipe, jsonAny: me.jsonAny, jsonCodingKey: me.jsonCodingKey, jsonConverter: me.jsonConverter, jsonDecoder: me.jsonDecoder, jsonEncoder: me.jsonEncoder, jsonException: me.jsonException, jsonGenerator: me.jsonGenerator, jsonNode: me.jsonNode, jsonNull: me.jsonNull, jsonParser: me.jsonParser, jsonReader: me.jsonReader, jsonSerializer: me.jsonSerializer, jsonToken: me.jsonToken, jsonTokenType: me.jsonTokenType, jsonWriter: me.jsonWriter, lambda: me.lambda, list: me.list, locale: me.locale, lock: me.lock, long: me.long, map: me.map, mapEntry: me.mapEntry, metadataPropertyHandling: me.metadataPropertyHandling, module: me.module, mutable: me.mutable, namespace: me.namespace, native: me.native, new: me.new, newtonsoft: me.newtonsoft, no: me.no, obj3Guard: me.obj3Guard, obj3If: me.obj3If, obj3Import: me.obj3Import, obj3In: me.obj3In, obj3Indirect: me.obj3Indirect, obj3Infix: me.obj3Infix, obj3Init: me.obj3Init, obj3Inout: me.obj3Inout, obj3Internal: me.obj3Internal, obj3Is: me.obj3Is, obj3JSON: me.obj3JSON, obj3Lazy: me.obj3Lazy, obj3Left: me.obj3Left, obj3Let: me.obj3Let, obj3Mutating: me.obj3Mutating, obj3Nil: me.obj3Nil) | |
| 7313 | 7313 | } |
| 7314 | 7314 | |
| 7315 | 7315 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -7325,6 +7325,7 @@ extension Obj3 { | ||
| 7325 | 7325 | |
| 7326 | 7326 | func with( |
| 7327 | 7327 | dummy: Int? = nil, |
| 7328 | + goto: Goto? = nil, | |
| 7328 | 7329 | hasOwnProperty: HasOwnProperty? = nil, |
| 7329 | 7330 | hashCode: HashCode? = nil, |
| 7330 | 7331 | hashable: HashableClass? = nil, |
| @@ -7372,7 +7373,6 @@ extension Obj3 { | ||
| 7372 | 7373 | new: New? = nil, |
| 7373 | 7374 | newtonsoft: Newtonsoft? = nil, |
| 7374 | 7375 | no: No? = nil, |
| 7375 | - noexcept: Noexcept? = nil, | |
| 7376 | 7376 | obj3Guard: Guard? = nil, |
| 7377 | 7377 | obj3If: If? = nil, |
| 7378 | 7378 | obj3Import: Import? = nil, |
| @@ -7392,6 +7392,7 @@ extension Obj3 { | ||
| 7392 | 7392 | ) -> Obj3 { |
| 7393 | 7393 | return Obj3( |
| 7394 | 7394 | dummy: dummy ?? self.dummy, |
| 7395 | + goto: goto ?? self.goto, | |
| 7395 | 7396 | hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty, |
| 7396 | 7397 | hashCode: hashCode ?? self.hashCode, |
| 7397 | 7398 | hashable: hashable ?? self.hashable, |
| @@ -7439,7 +7440,6 @@ extension Obj3 { | ||
| 7439 | 7440 | new: new ?? self.new, |
| 7440 | 7441 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 7441 | 7442 | no: no ?? self.no, |
| 7442 | - noexcept: noexcept ?? self.noexcept, | |
| 7443 | 7443 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 7444 | 7444 | obj3If: obj3If ?? self.obj3If, |
| 7445 | 7445 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -7468,6 +7468,55 @@ extension Obj3 { | ||
| 7468 | 7468 | } |
| 7469 | 7469 | } |
| 7470 | 7470 | |
| 7471 | +// MARK: - Goto | |
| 7472 | +@objcMembers class Goto: NSObject, Codable { | |
| 7473 | + let goto: Int | |
| 7474 | + | |
| 7475 | + enum CodingKeys: String, CodingKey { | |
| 7476 | + case goto = "goto" | |
| 7477 | + } | |
| 7478 | + | |
| 7479 | + init(goto: Int) { | |
| 7480 | + self.goto = goto | |
| 7481 | + } | |
| 7482 | +} | |
| 7483 | + | |
| 7484 | +// MARK: Goto convenience initializers and mutators | |
| 7485 | + | |
| 7486 | +extension Goto { | |
| 7487 | + convenience init(data: Data) throws { | |
| 7488 | + let me = try newJSONDecoder().decode(Goto.self, from: data) | |
| 7489 | + self.init(goto: me.goto) | |
| 7490 | + } | |
| 7491 | + | |
| 7492 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 7493 | + guard let data = json.data(using: encoding) else { | |
| 7494 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 7495 | + } | |
| 7496 | + try self.init(data: data) | |
| 7497 | + } | |
| 7498 | + | |
| 7499 | + convenience init(fromURL url: URL) throws { | |
| 7500 | + try self.init(data: try Data(contentsOf: url)) | |
| 7501 | + } | |
| 7502 | + | |
| 7503 | + func with( | |
| 7504 | + goto: Int? = nil | |
| 7505 | + ) -> Goto { | |
| 7506 | + return Goto( | |
| 7507 | + goto: goto ?? self.goto | |
| 7508 | + ) | |
| 7509 | + } | |
| 7510 | + | |
| 7511 | + func jsonData() throws -> Data { | |
| 7512 | + return try newJSONEncoder().encode(self) | |
| 7513 | + } | |
| 7514 | + | |
| 7515 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 7516 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 7517 | + } | |
| 7518 | +} | |
| 7519 | + | |
| 7471 | 7520 | // MARK: - HasOwnProperty |
| 7472 | 7521 | @objcMembers class HasOwnProperty: NSObject, Codable { |
| 7473 | 7522 | let hasOwnProperty: Int |
| @@ -9771,55 +9820,6 @@ extension No { | ||
| 9771 | 9820 | } |
| 9772 | 9821 | } |
| 9773 | 9822 | |
| 9774 | -// MARK: - Noexcept | |
| 9775 | -@objcMembers class Noexcept: NSObject, Codable { | |
| 9776 | - let noexcept: Int | |
| 9777 | - | |
| 9778 | - enum CodingKeys: String, CodingKey { | |
| 9779 | - case noexcept = "noexcept" | |
| 9780 | - } | |
| 9781 | - | |
| 9782 | - init(noexcept: Int) { | |
| 9783 | - self.noexcept = noexcept | |
| 9784 | - } | |
| 9785 | -} | |
| 9786 | - | |
| 9787 | -// MARK: Noexcept convenience initializers and mutators | |
| 9788 | - | |
| 9789 | -extension Noexcept { | |
| 9790 | - convenience init(data: Data) throws { | |
| 9791 | - let me = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 9792 | - self.init(noexcept: me.noexcept) | |
| 9793 | - } | |
| 9794 | - | |
| 9795 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9796 | - guard let data = json.data(using: encoding) else { | |
| 9797 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9798 | - } | |
| 9799 | - try self.init(data: data) | |
| 9800 | - } | |
| 9801 | - | |
| 9802 | - convenience init(fromURL url: URL) throws { | |
| 9803 | - try self.init(data: try Data(contentsOf: url)) | |
| 9804 | - } | |
| 9805 | - | |
| 9806 | - func with( | |
| 9807 | - noexcept: Int? = nil | |
| 9808 | - ) -> Noexcept { | |
| 9809 | - return Noexcept( | |
| 9810 | - noexcept: noexcept ?? self.noexcept | |
| 9811 | - ) | |
| 9812 | - } | |
| 9813 | - | |
| 9814 | - func jsonData() throws -> Data { | |
| 9815 | - return try newJSONEncoder().encode(self) | |
| 9816 | - } | |
| 9817 | - | |
| 9818 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9819 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 9820 | - } | |
| 9821 | -} | |
| 9822 | - | |
| 9823 | 9823 | // MARK: - Guard |
| 9824 | 9824 | @objcMembers class Guard: NSObject, Codable { |
| 9825 | 9825 | let guardGuard: Int |
| @@ -10608,6 +10608,7 @@ extension Nil { | ||
| 10608 | 10608 | @objcMembers class Obj4: NSObject, Codable { |
| 10609 | 10609 | let dummy: Int |
| 10610 | 10610 | let noSuchMethod: NoSuchMethod |
| 10611 | + let noexcept: Noexcept | |
| 10611 | 10612 | let nonatomic: Nonatomic |
| 10612 | 10613 | let none: None |
| 10613 | 10614 | let nonlocal: Nonlocal |
| @@ -10640,6 +10641,8 @@ extension Nil { | ||
| 10640 | 10641 | let obj4Right: Right |
| 10641 | 10642 | let object: Object |
| 10642 | 10643 | let objectMapper: ObjectMapper |
| 10644 | + let objectReader: ObjectReader | |
| 10645 | + let objectWriter: ObjectWriter | |
| 10643 | 10646 | let of: Of |
| 10644 | 10647 | let oneway: Oneway |
| 10645 | 10648 | let or: Or |
| @@ -10668,13 +10671,11 @@ extension Nil { | ||
| 10668 | 10671 | let runtimeType: RuntimeType |
| 10669 | 10672 | let s: S |
| 10670 | 10673 | let sbyte: Sbyte |
| 10671 | - let sealed: Sealed | |
| 10672 | - let sel: Sel | |
| 10673 | - let select: Select | |
| 10674 | 10674 | |
| 10675 | 10675 | enum CodingKeys: String, CodingKey { |
| 10676 | 10676 | case dummy = "dummy" |
| 10677 | 10677 | case noSuchMethod = "noSuchMethod" |
| 10678 | + case noexcept = "noexcept" | |
| 10678 | 10679 | case nonatomic = "nonatomic" |
| 10679 | 10680 | case none = "None" |
| 10680 | 10681 | case nonlocal = "nonlocal" |
| @@ -10707,6 +10708,8 @@ extension Nil { | ||
| 10707 | 10708 | case obj4Right = "right" |
| 10708 | 10709 | case object = "object" |
| 10709 | 10710 | case objectMapper = "ObjectMapper" |
| 10711 | + case objectReader = "ObjectReader" | |
| 10712 | + case objectWriter = "ObjectWriter" | |
| 10710 | 10713 | case of = "of" |
| 10711 | 10714 | case oneway = "oneway" |
| 10712 | 10715 | case or = "or" |
| @@ -10735,14 +10738,12 @@ extension Nil { | ||
| 10735 | 10738 | case runtimeType = "runtimeType" |
| 10736 | 10739 | case s = "s" |
| 10737 | 10740 | case sbyte = "sbyte" |
| 10738 | - case sealed = "sealed" | |
| 10739 | - case sel = "SEL" | |
| 10740 | - case select = "select" | |
| 10741 | 10741 | } |
| 10742 | 10742 | |
| 10743 | - init(dummy: Int, noSuchMethod: NoSuchMethod, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, of: Of, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte, sealed: Sealed, sel: Sel, select: Select) { | |
| 10743 | + init(dummy: Int, noSuchMethod: NoSuchMethod, noexcept: Noexcept, nonatomic: Nonatomic, none: None, nonlocal: Nonlocal, not: Not, notEq: NotEq, nsError: NSErrorClass, nsObject: NSObjectClass, nsString: NSString, null: Null, nullptr: Nullptr, number: Number, obj4None: NoneClass, obj4Nonmutating: Nonmutating, obj4Null: NullClass, obj4Open: Open, obj4Operator: Operator, obj4Optional: Optional, obj4Override: Override, obj4Postfix: Postfix, obj4Precedence: Precedence, obj4Prefix: Prefix, obj4Private: Private, obj4Protocol: ProtocolClass, obj4Public: Public, obj4Repeat: Repeat, obj4Required: Required, obj4Retain: Retain, obj4Rethrows: Rethrows, obj4Return: Return, obj4Right: Right, object: Object, objectMapper: ObjectMapper, objectReader: ObjectReader, objectWriter: ObjectWriter, of: Of, oneway: Oneway, or: Or, orEq: OrEq, out: Out, package: Package, params: Params, pass: Pass, port: Port, print: Print, printMembers: PrintMembers, printf: Printf, protected: Protected, purpleProtocol: Obj4Protocol, quicktype: Quicktype, raise: Raise, range: Range, readonly: Readonly, ref: Ref, regExp: RegExp, register: Register, reinterpretCast: ReinterpretCast, require: Require, requires: Requires, restrict: Restrict, runtimeType: RuntimeType, s: S, sbyte: Sbyte) { | |
| 10744 | 10744 | self.dummy = dummy |
| 10745 | 10745 | self.noSuchMethod = noSuchMethod |
| 10746 | + self.noexcept = noexcept | |
| 10746 | 10747 | self.nonatomic = nonatomic |
| 10747 | 10748 | self.none = none |
| 10748 | 10749 | self.nonlocal = nonlocal |
| @@ -10775,6 +10776,8 @@ extension Nil { | ||
| 10775 | 10776 | self.obj4Right = obj4Right |
| 10776 | 10777 | self.object = object |
| 10777 | 10778 | self.objectMapper = objectMapper |
| 10779 | + self.objectReader = objectReader | |
| 10780 | + self.objectWriter = objectWriter | |
| 10778 | 10781 | self.of = of |
| 10779 | 10782 | self.oneway = oneway |
| 10780 | 10783 | self.or = or |
| @@ -10803,9 +10806,6 @@ extension Nil { | ||
| 10803 | 10806 | self.runtimeType = runtimeType |
| 10804 | 10807 | self.s = s |
| 10805 | 10808 | self.sbyte = sbyte |
| 10806 | - self.sealed = sealed | |
| 10807 | - self.sel = sel | |
| 10808 | - self.select = select | |
| 10809 | 10809 | } |
| 10810 | 10810 | } |
| 10811 | 10811 | |
| @@ -10814,7 +10814,7 @@ extension Nil { | ||
| 10814 | 10814 | extension Obj4 { |
| 10815 | 10815 | convenience init(data: Data) throws { |
| 10816 | 10816 | let me = try newJSONDecoder().decode(Obj4.self, from: data) |
| 10817 | - self.init(dummy: me.dummy, noSuchMethod: me.noSuchMethod, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullptr: me.nullptr, number: me.number, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, of: me.of, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte, sealed: me.sealed, sel: me.sel, select: me.select) | |
| 10817 | + self.init(dummy: me.dummy, noSuchMethod: me.noSuchMethod, noexcept: me.noexcept, nonatomic: me.nonatomic, none: me.none, nonlocal: me.nonlocal, not: me.not, notEq: me.notEq, nsError: me.nsError, nsObject: me.nsObject, nsString: me.nsString, null: me.null, nullptr: me.nullptr, number: me.number, obj4None: me.obj4None, obj4Nonmutating: me.obj4Nonmutating, obj4Null: me.obj4Null, obj4Open: me.obj4Open, obj4Operator: me.obj4Operator, obj4Optional: me.obj4Optional, obj4Override: me.obj4Override, obj4Postfix: me.obj4Postfix, obj4Precedence: me.obj4Precedence, obj4Prefix: me.obj4Prefix, obj4Private: me.obj4Private, obj4Protocol: me.obj4Protocol, obj4Public: me.obj4Public, obj4Repeat: me.obj4Repeat, obj4Required: me.obj4Required, obj4Retain: me.obj4Retain, obj4Rethrows: me.obj4Rethrows, obj4Return: me.obj4Return, obj4Right: me.obj4Right, object: me.object, objectMapper: me.objectMapper, objectReader: me.objectReader, objectWriter: me.objectWriter, of: me.of, oneway: me.oneway, or: me.or, orEq: me.orEq, out: me.out, package: me.package, params: me.params, pass: me.pass, port: me.port, print: me.print, printMembers: me.printMembers, printf: me.printf, protected: me.protected, purpleProtocol: me.purpleProtocol, quicktype: me.quicktype, raise: me.raise, range: me.range, readonly: me.readonly, ref: me.ref, regExp: me.regExp, register: me.register, reinterpretCast: me.reinterpretCast, require: me.require, requires: me.requires, restrict: me.restrict, runtimeType: me.runtimeType, s: me.s, sbyte: me.sbyte) | |
| 10818 | 10818 | } |
| 10819 | 10819 | |
| 10820 | 10820 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -10831,6 +10831,7 @@ extension Obj4 { | ||
| 10831 | 10831 | func with( |
| 10832 | 10832 | dummy: Int? = nil, |
| 10833 | 10833 | noSuchMethod: NoSuchMethod? = nil, |
| 10834 | + noexcept: Noexcept? = nil, | |
| 10834 | 10835 | nonatomic: Nonatomic? = nil, |
| 10835 | 10836 | none: None? = nil, |
| 10836 | 10837 | nonlocal: Nonlocal? = nil, |
| @@ -10863,6 +10864,8 @@ extension Obj4 { | ||
| 10863 | 10864 | obj4Right: Right? = nil, |
| 10864 | 10865 | object: Object? = nil, |
| 10865 | 10866 | objectMapper: ObjectMapper? = nil, |
| 10867 | + objectReader: ObjectReader? = nil, | |
| 10868 | + objectWriter: ObjectWriter? = nil, | |
| 10866 | 10869 | of: Of? = nil, |
| 10867 | 10870 | oneway: Oneway? = nil, |
| 10868 | 10871 | or: Or? = nil, |
| @@ -10890,14 +10893,12 @@ extension Obj4 { | ||
| 10890 | 10893 | restrict: Restrict? = nil, |
| 10891 | 10894 | runtimeType: RuntimeType? = nil, |
| 10892 | 10895 | s: S? = nil, |
| 10893 | - sbyte: Sbyte? = nil, | |
| 10894 | - sealed: Sealed? = nil, | |
| 10895 | - sel: Sel? = nil, | |
| 10896 | - select: Select? = nil | |
| 10896 | + sbyte: Sbyte? = nil | |
| 10897 | 10897 | ) -> Obj4 { |
| 10898 | 10898 | return Obj4( |
| 10899 | 10899 | dummy: dummy ?? self.dummy, |
| 10900 | 10900 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 10901 | + noexcept: noexcept ?? self.noexcept, | |
| 10901 | 10902 | nonatomic: nonatomic ?? self.nonatomic, |
| 10902 | 10903 | none: none ?? self.none, |
| 10903 | 10904 | nonlocal: nonlocal ?? self.nonlocal, |
| @@ -10930,6 +10931,8 @@ extension Obj4 { | ||
| 10930 | 10931 | obj4Right: obj4Right ?? self.obj4Right, |
| 10931 | 10932 | object: object ?? self.object, |
| 10932 | 10933 | objectMapper: objectMapper ?? self.objectMapper, |
| 10934 | + objectReader: objectReader ?? self.objectReader, | |
| 10935 | + objectWriter: objectWriter ?? self.objectWriter, | |
| 10933 | 10936 | of: of ?? self.of, |
| 10934 | 10937 | oneway: oneway ?? self.oneway, |
| 10935 | 10938 | or: or ?? self.or, |
| @@ -10957,10 +10960,7 @@ extension Obj4 { | ||
| 10957 | 10960 | restrict: restrict ?? self.restrict, |
| 10958 | 10961 | runtimeType: runtimeType ?? self.runtimeType, |
| 10959 | 10962 | s: s ?? self.s, |
| 10960 | - sbyte: sbyte ?? self.sbyte, | |
| 10961 | - sealed: sealed ?? self.sealed, | |
| 10962 | - sel: sel ?? self.sel, | |
| 10963 | - select: select ?? self.select | |
| 10963 | + sbyte: sbyte ?? self.sbyte | |
| 10964 | 10964 | ) |
| 10965 | 10965 | } |
| 10966 | 10966 | |
| @@ -11022,25 +11022,25 @@ extension NoSuchMethod { | ||
| 11022 | 11022 | } |
| 11023 | 11023 | } |
| 11024 | 11024 | |
| 11025 | -// MARK: - Nonatomic | |
| 11026 | -@objcMembers class Nonatomic: NSObject, Codable { | |
| 11027 | - let nonatomic: Int | |
| 11025 | +// MARK: - Noexcept | |
| 11026 | +@objcMembers class Noexcept: NSObject, Codable { | |
| 11027 | + let noexcept: Int | |
| 11028 | 11028 | |
| 11029 | 11029 | enum CodingKeys: String, CodingKey { |
| 11030 | - case nonatomic = "nonatomic" | |
| 11030 | + case noexcept = "noexcept" | |
| 11031 | 11031 | } |
| 11032 | 11032 | |
| 11033 | - init(nonatomic: Int) { | |
| 11034 | - self.nonatomic = nonatomic | |
| 11033 | + init(noexcept: Int) { | |
| 11034 | + self.noexcept = noexcept | |
| 11035 | 11035 | } |
| 11036 | 11036 | } |
| 11037 | 11037 | |
| 11038 | -// MARK: Nonatomic convenience initializers and mutators | |
| 11038 | +// MARK: Noexcept convenience initializers and mutators | |
| 11039 | 11039 | |
| 11040 | -extension Nonatomic { | |
| 11040 | +extension Noexcept { | |
| 11041 | 11041 | convenience init(data: Data) throws { |
| 11042 | - let me = try newJSONDecoder().decode(Nonatomic.self, from: data) | |
| 11043 | - self.init(nonatomic: me.nonatomic) | |
| 11042 | + let me = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 11043 | + self.init(noexcept: me.noexcept) | |
| 11044 | 11044 | } |
| 11045 | 11045 | |
| 11046 | 11046 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11055,10 +11055,10 @@ extension Nonatomic { | ||
| 11055 | 11055 | } |
| 11056 | 11056 | |
| 11057 | 11057 | func with( |
| 11058 | - nonatomic: Int? = nil | |
| 11059 | - ) -> Nonatomic { | |
| 11060 | - return Nonatomic( | |
| 11061 | - nonatomic: nonatomic ?? self.nonatomic | |
| 11058 | + noexcept: Int? = nil | |
| 11059 | + ) -> Noexcept { | |
| 11060 | + return Noexcept( | |
| 11061 | + noexcept: noexcept ?? self.noexcept | |
| 11062 | 11062 | ) |
| 11063 | 11063 | } |
| 11064 | 11064 | |
| @@ -11071,17 +11071,66 @@ extension Nonatomic { | ||
| 11071 | 11071 | } |
| 11072 | 11072 | } |
| 11073 | 11073 | |
| 11074 | -// MARK: - None | |
| 11075 | -@objcMembers class None: NSObject, Codable { | |
| 11076 | - let none: Int | |
| 11074 | +// MARK: - Nonatomic | |
| 11075 | +@objcMembers class Nonatomic: NSObject, Codable { | |
| 11076 | + let nonatomic: Int | |
| 11077 | 11077 | |
| 11078 | 11078 | enum CodingKeys: String, CodingKey { |
| 11079 | - case none = "None" | |
| 11079 | + case nonatomic = "nonatomic" | |
| 11080 | 11080 | } |
| 11081 | 11081 | |
| 11082 | - init(none: Int) { | |
| 11083 | - self.none = none | |
| 11084 | - } | |
| 11082 | + init(nonatomic: Int) { | |
| 11083 | + self.nonatomic = nonatomic | |
| 11084 | + } | |
| 11085 | +} | |
| 11086 | + | |
| 11087 | +// MARK: Nonatomic convenience initializers and mutators | |
| 11088 | + | |
| 11089 | +extension Nonatomic { | |
| 11090 | + convenience init(data: Data) throws { | |
| 11091 | + let me = try newJSONDecoder().decode(Nonatomic.self, from: data) | |
| 11092 | + self.init(nonatomic: me.nonatomic) | |
| 11093 | + } | |
| 11094 | + | |
| 11095 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11096 | + guard let data = json.data(using: encoding) else { | |
| 11097 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11098 | + } | |
| 11099 | + try self.init(data: data) | |
| 11100 | + } | |
| 11101 | + | |
| 11102 | + convenience init(fromURL url: URL) throws { | |
| 11103 | + try self.init(data: try Data(contentsOf: url)) | |
| 11104 | + } | |
| 11105 | + | |
| 11106 | + func with( | |
| 11107 | + nonatomic: Int? = nil | |
| 11108 | + ) -> Nonatomic { | |
| 11109 | + return Nonatomic( | |
| 11110 | + nonatomic: nonatomic ?? self.nonatomic | |
| 11111 | + ) | |
| 11112 | + } | |
| 11113 | + | |
| 11114 | + func jsonData() throws -> Data { | |
| 11115 | + return try newJSONEncoder().encode(self) | |
| 11116 | + } | |
| 11117 | + | |
| 11118 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11119 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11120 | + } | |
| 11121 | +} | |
| 11122 | + | |
| 11123 | +// MARK: - None | |
| 11124 | +@objcMembers class None: NSObject, Codable { | |
| 11125 | + let none: Int | |
| 11126 | + | |
| 11127 | + enum CodingKeys: String, CodingKey { | |
| 11128 | + case none = "None" | |
| 11129 | + } | |
| 11130 | + | |
| 11131 | + init(none: Int) { | |
| 11132 | + self.none = none | |
| 11133 | + } | |
| 11085 | 11134 | } |
| 11086 | 11135 | |
| 11087 | 11136 | // MARK: None convenience initializers and mutators |
| @@ -12590,6 +12639,104 @@ extension ObjectMapper { | ||
| 12590 | 12639 | } |
| 12591 | 12640 | } |
| 12592 | 12641 | |
| 12642 | +// MARK: - ObjectReader | |
| 12643 | +@objcMembers class ObjectReader: NSObject, Codable { | |
| 12644 | + let objectReader: Int | |
| 12645 | + | |
| 12646 | + enum CodingKeys: String, CodingKey { | |
| 12647 | + case objectReader = "ObjectReader" | |
| 12648 | + } | |
| 12649 | + | |
| 12650 | + init(objectReader: Int) { | |
| 12651 | + self.objectReader = objectReader | |
| 12652 | + } | |
| 12653 | +} | |
| 12654 | + | |
| 12655 | +// MARK: ObjectReader convenience initializers and mutators | |
| 12656 | + | |
| 12657 | +extension ObjectReader { | |
| 12658 | + convenience init(data: Data) throws { | |
| 12659 | + let me = try newJSONDecoder().decode(ObjectReader.self, from: data) | |
| 12660 | + self.init(objectReader: me.objectReader) | |
| 12661 | + } | |
| 12662 | + | |
| 12663 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12664 | + guard let data = json.data(using: encoding) else { | |
| 12665 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12666 | + } | |
| 12667 | + try self.init(data: data) | |
| 12668 | + } | |
| 12669 | + | |
| 12670 | + convenience init(fromURL url: URL) throws { | |
| 12671 | + try self.init(data: try Data(contentsOf: url)) | |
| 12672 | + } | |
| 12673 | + | |
| 12674 | + func with( | |
| 12675 | + objectReader: Int? = nil | |
| 12676 | + ) -> ObjectReader { | |
| 12677 | + return ObjectReader( | |
| 12678 | + objectReader: objectReader ?? self.objectReader | |
| 12679 | + ) | |
| 12680 | + } | |
| 12681 | + | |
| 12682 | + func jsonData() throws -> Data { | |
| 12683 | + return try newJSONEncoder().encode(self) | |
| 12684 | + } | |
| 12685 | + | |
| 12686 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12687 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12688 | + } | |
| 12689 | +} | |
| 12690 | + | |
| 12691 | +// MARK: - ObjectWriter | |
| 12692 | +@objcMembers class ObjectWriter: NSObject, Codable { | |
| 12693 | + let objectWriter: Int | |
| 12694 | + | |
| 12695 | + enum CodingKeys: String, CodingKey { | |
| 12696 | + case objectWriter = "ObjectWriter" | |
| 12697 | + } | |
| 12698 | + | |
| 12699 | + init(objectWriter: Int) { | |
| 12700 | + self.objectWriter = objectWriter | |
| 12701 | + } | |
| 12702 | +} | |
| 12703 | + | |
| 12704 | +// MARK: ObjectWriter convenience initializers and mutators | |
| 12705 | + | |
| 12706 | +extension ObjectWriter { | |
| 12707 | + convenience init(data: Data) throws { | |
| 12708 | + let me = try newJSONDecoder().decode(ObjectWriter.self, from: data) | |
| 12709 | + self.init(objectWriter: me.objectWriter) | |
| 12710 | + } | |
| 12711 | + | |
| 12712 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12713 | + guard let data = json.data(using: encoding) else { | |
| 12714 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12715 | + } | |
| 12716 | + try self.init(data: data) | |
| 12717 | + } | |
| 12718 | + | |
| 12719 | + convenience init(fromURL url: URL) throws { | |
| 12720 | + try self.init(data: try Data(contentsOf: url)) | |
| 12721 | + } | |
| 12722 | + | |
| 12723 | + func with( | |
| 12724 | + objectWriter: Int? = nil | |
| 12725 | + ) -> ObjectWriter { | |
| 12726 | + return ObjectWriter( | |
| 12727 | + objectWriter: objectWriter ?? self.objectWriter | |
| 12728 | + ) | |
| 12729 | + } | |
| 12730 | + | |
| 12731 | + func jsonData() throws -> Data { | |
| 12732 | + return try newJSONEncoder().encode(self) | |
| 12733 | + } | |
| 12734 | + | |
| 12735 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12736 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12737 | + } | |
| 12738 | +} | |
| 12739 | + | |
| 12593 | 12740 | // MARK: - Of |
| 12594 | 12741 | @objcMembers class Of: NSObject, Codable { |
| 12595 | 12742 | let of: Int |
| @@ -13962,290 +14109,143 @@ extension Sbyte { | ||
| 13962 | 14109 | } |
| 13963 | 14110 | } |
| 13964 | 14111 | |
| 13965 | -// MARK: - Sealed | |
| 13966 | -@objcMembers class Sealed: NSObject, Codable { | |
| 13967 | - let sealed: Int | |
| 14112 | +// MARK: - Obj5 | |
| 14113 | +@objcMembers class Obj5: NSObject, Codable { | |
| 14114 | + let dummy: Int | |
| 14115 | + let obj5Self: SelfClass | |
| 14116 | + let obj5Set: Set | |
| 14117 | + let obj5Static: Static | |
| 14118 | + let obj5Struct: Struct | |
| 14119 | + let obj5Subscript: Subscript | |
| 14120 | + let obj5Super: Super | |
| 14121 | + let obj5Switch: Switch | |
| 14122 | + let obj5Throw: Throw | |
| 14123 | + let obj5Throws: Throws | |
| 14124 | + let obj5True: True | |
| 14125 | + let obj5Try: Try | |
| 14126 | + let obj5Type: Obj5Type | |
| 14127 | + let obj5Typealias: Typealias | |
| 14128 | + let obj5Unowned: Unowned | |
| 14129 | + let purpleSelf: Obj5Self | |
| 14130 | + let purpleTrue: TrueClass | |
| 14131 | + let sealed: Sealed | |
| 14132 | + let sel: Sel | |
| 14133 | + let select: Select | |
| 14134 | + let sendable: Sendable | |
| 14135 | + let serializationFeature: SerializationFeature | |
| 14136 | + let serialize: Serialize | |
| 14137 | + let serializerProvider: SerializerProvider | |
| 14138 | + let short: Short | |
| 14139 | + let signed: Signed | |
| 14140 | + let simpleModule: SimpleModule | |
| 14141 | + let sizeof: Sizeof | |
| 14142 | + let stackalloc: Stackalloc | |
| 14143 | + let standards: Standards | |
| 14144 | + let staticAssert: StaticAssert | |
| 14145 | + let staticCast: StaticCast | |
| 14146 | + let stdDeserializer: StdDeserializer | |
| 14147 | + let stdSerializer: StdSerializer | |
| 14148 | + let strictfp: Strictfp | |
| 14149 | + let string: StringClass | |
| 14150 | + let symbol: Symbol | |
| 14151 | + let synchronized: Synchronized | |
| 14152 | + let system: System | |
| 14153 | + let template: Template | |
| 14154 | + let then: Then | |
| 14155 | + let this: This | |
| 14156 | + let threadLocal: ThreadLocal | |
| 14157 | + let timeOnly: TimeOnly | |
| 14158 | + let timeOnlyConverter: TimeOnlyConverter | |
| 14159 | + let timeZone: TimeZoneClass | |
| 14160 | + let toJSON: ToJSON | |
| 14161 | + let toString: ToString | |
| 14162 | + let topLevel: TopLevelClass | |
| 14163 | + let transient: Transient | |
| 14164 | + let type: TypeClass | |
| 14165 | + let typedef: Typedef | |
| 14166 | + let typeid: Typeid | |
| 14167 | + let typename: Typename | |
| 14168 | + let typeof: Typeof | |
| 14169 | + let uint: Uint | |
| 14170 | + let ulong: Ulong | |
| 14171 | + let unchecked: Unchecked | |
| 14172 | + let undefined: Undefined | |
| 14173 | + let union: Union | |
| 14174 | + let unsafe: Unsafe | |
| 14175 | + let unsigned: Unsigned | |
| 14176 | + let ushort: Ushort | |
| 14177 | + let using: Using | |
| 14178 | + let utf8JSONReader: Utf8JSONReader | |
| 13968 | 14179 | |
| 13969 | 14180 | enum CodingKeys: String, CodingKey { |
| 14181 | + case dummy = "dummy" | |
| 14182 | + case obj5Self = "Self" | |
| 14183 | + case obj5Set = "set" | |
| 14184 | + case obj5Static = "static" | |
| 14185 | + case obj5Struct = "struct" | |
| 14186 | + case obj5Subscript = "subscript" | |
| 14187 | + case obj5Super = "super" | |
| 14188 | + case obj5Switch = "switch" | |
| 14189 | + case obj5Throw = "throw" | |
| 14190 | + case obj5Throws = "throws" | |
| 14191 | + case obj5True = "True" | |
| 14192 | + case obj5Try = "try" | |
| 14193 | + case obj5Type = "type" | |
| 14194 | + case obj5Typealias = "typealias" | |
| 14195 | + case obj5Unowned = "unowned" | |
| 14196 | + case purpleSelf = "self" | |
| 14197 | + case purpleTrue = "true" | |
| 13970 | 14198 | case sealed = "sealed" |
| 14199 | + case sel = "SEL" | |
| 14200 | + case select = "select" | |
| 14201 | + case sendable = "Sendable" | |
| 14202 | + case serializationFeature = "SerializationFeature" | |
| 14203 | + case serialize = "serialize" | |
| 14204 | + case serializerProvider = "SerializerProvider" | |
| 14205 | + case short = "short" | |
| 14206 | + case signed = "signed" | |
| 14207 | + case simpleModule = "SimpleModule" | |
| 14208 | + case sizeof = "sizeof" | |
| 14209 | + case stackalloc = "stackalloc" | |
| 14210 | + case standards = "Standards" | |
| 14211 | + case staticAssert = "static_assert" | |
| 14212 | + case staticCast = "static_cast" | |
| 14213 | + case stdDeserializer = "StdDeserializer" | |
| 14214 | + case stdSerializer = "StdSerializer" | |
| 14215 | + case strictfp = "strictfp" | |
| 14216 | + case string = "string" | |
| 14217 | + case symbol = "symbol" | |
| 14218 | + case synchronized = "synchronized" | |
| 14219 | + case system = "system" | |
| 14220 | + case template = "template" | |
| 14221 | + case then = "then" | |
| 14222 | + case this = "this" | |
| 14223 | + case threadLocal = "thread_local" | |
| 14224 | + case timeOnly = "TimeOnly" | |
| 14225 | + case timeOnlyConverter = "TimeOnlyConverter" | |
| 14226 | + case timeZone = "TimeZone" | |
| 14227 | + case toJSON = "to_json" | |
| 14228 | + case toString = "toString" | |
| 14229 | + case topLevel = "top_level" | |
| 14230 | + case transient = "transient" | |
| 14231 | + case type = "Type" | |
| 14232 | + case typedef = "typedef" | |
| 14233 | + case typeid = "typeid" | |
| 14234 | + case typename = "typename" | |
| 14235 | + case typeof = "typeof" | |
| 14236 | + case uint = "uint" | |
| 14237 | + case ulong = "ulong" | |
| 14238 | + case unchecked = "unchecked" | |
| 14239 | + case undefined = "undefined" | |
| 14240 | + case union = "union" | |
| 14241 | + case unsafe = "unsafe" | |
| 14242 | + case unsigned = "unsigned" | |
| 14243 | + case ushort = "ushort" | |
| 14244 | + case using = "using" | |
| 14245 | + case utf8JSONReader = "Utf8JsonReader" | |
| 13971 | 14246 | } |
| 13972 | 14247 | |
| 13973 | - init(sealed: Int) { | |
| 13974 | - self.sealed = sealed | |
| 13975 | - } | |
| 13976 | -} | |
| 13977 | - | |
| 13978 | -// MARK: Sealed convenience initializers and mutators | |
| 13979 | - | |
| 13980 | -extension Sealed { | |
| 13981 | - convenience init(data: Data) throws { | |
| 13982 | - let me = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 13983 | - self.init(sealed: me.sealed) | |
| 13984 | - } | |
| 13985 | - | |
| 13986 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13987 | - guard let data = json.data(using: encoding) else { | |
| 13988 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13989 | - } | |
| 13990 | - try self.init(data: data) | |
| 13991 | - } | |
| 13992 | - | |
| 13993 | - convenience init(fromURL url: URL) throws { | |
| 13994 | - try self.init(data: try Data(contentsOf: url)) | |
| 13995 | - } | |
| 13996 | - | |
| 13997 | - func with( | |
| 13998 | - sealed: Int? = nil | |
| 13999 | - ) -> Sealed { | |
| 14000 | - return Sealed( | |
| 14001 | - sealed: sealed ?? self.sealed | |
| 14002 | - ) | |
| 14003 | - } | |
| 14004 | - | |
| 14005 | - func jsonData() throws -> Data { | |
| 14006 | - return try newJSONEncoder().encode(self) | |
| 14007 | - } | |
| 14008 | - | |
| 14009 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14010 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14011 | - } | |
| 14012 | -} | |
| 14013 | - | |
| 14014 | -// MARK: - Sel | |
| 14015 | -@objcMembers class Sel: NSObject, Codable { | |
| 14016 | - let sel: Int | |
| 14017 | - | |
| 14018 | - enum CodingKeys: String, CodingKey { | |
| 14019 | - case sel = "SEL" | |
| 14020 | - } | |
| 14021 | - | |
| 14022 | - init(sel: Int) { | |
| 14023 | - self.sel = sel | |
| 14024 | - } | |
| 14025 | -} | |
| 14026 | - | |
| 14027 | -// MARK: Sel convenience initializers and mutators | |
| 14028 | - | |
| 14029 | -extension Sel { | |
| 14030 | - convenience init(data: Data) throws { | |
| 14031 | - let me = try newJSONDecoder().decode(Sel.self, from: data) | |
| 14032 | - self.init(sel: me.sel) | |
| 14033 | - } | |
| 14034 | - | |
| 14035 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14036 | - guard let data = json.data(using: encoding) else { | |
| 14037 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14038 | - } | |
| 14039 | - try self.init(data: data) | |
| 14040 | - } | |
| 14041 | - | |
| 14042 | - convenience init(fromURL url: URL) throws { | |
| 14043 | - try self.init(data: try Data(contentsOf: url)) | |
| 14044 | - } | |
| 14045 | - | |
| 14046 | - func with( | |
| 14047 | - sel: Int? = nil | |
| 14048 | - ) -> Sel { | |
| 14049 | - return Sel( | |
| 14050 | - sel: sel ?? self.sel | |
| 14051 | - ) | |
| 14052 | - } | |
| 14053 | - | |
| 14054 | - func jsonData() throws -> Data { | |
| 14055 | - return try newJSONEncoder().encode(self) | |
| 14056 | - } | |
| 14057 | - | |
| 14058 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14059 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14060 | - } | |
| 14061 | -} | |
| 14062 | - | |
| 14063 | -// MARK: - Select | |
| 14064 | -@objcMembers class Select: NSObject, Codable { | |
| 14065 | - let select: Int | |
| 14066 | - | |
| 14067 | - enum CodingKeys: String, CodingKey { | |
| 14068 | - case select = "select" | |
| 14069 | - } | |
| 14070 | - | |
| 14071 | - init(select: Int) { | |
| 14072 | - self.select = select | |
| 14073 | - } | |
| 14074 | -} | |
| 14075 | - | |
| 14076 | -// MARK: Select convenience initializers and mutators | |
| 14077 | - | |
| 14078 | -extension Select { | |
| 14079 | - convenience init(data: Data) throws { | |
| 14080 | - let me = try newJSONDecoder().decode(Select.self, from: data) | |
| 14081 | - self.init(select: me.select) | |
| 14082 | - } | |
| 14083 | - | |
| 14084 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14085 | - guard let data = json.data(using: encoding) else { | |
| 14086 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14087 | - } | |
| 14088 | - try self.init(data: data) | |
| 14089 | - } | |
| 14090 | - | |
| 14091 | - convenience init(fromURL url: URL) throws { | |
| 14092 | - try self.init(data: try Data(contentsOf: url)) | |
| 14093 | - } | |
| 14094 | - | |
| 14095 | - func with( | |
| 14096 | - select: Int? = nil | |
| 14097 | - ) -> Select { | |
| 14098 | - return Select( | |
| 14099 | - select: select ?? self.select | |
| 14100 | - ) | |
| 14101 | - } | |
| 14102 | - | |
| 14103 | - func jsonData() throws -> Data { | |
| 14104 | - return try newJSONEncoder().encode(self) | |
| 14105 | - } | |
| 14106 | - | |
| 14107 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14108 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14109 | - } | |
| 14110 | -} | |
| 14111 | - | |
| 14112 | -// MARK: - Obj5 | |
| 14113 | -@objcMembers class Obj5: NSObject, Codable { | |
| 14114 | - let dummy: Int | |
| 14115 | - let obj5Self: SelfClass | |
| 14116 | - let obj5Set: Set | |
| 14117 | - let obj5Static: Static | |
| 14118 | - let obj5Struct: Struct | |
| 14119 | - let obj5Subscript: Subscript | |
| 14120 | - let obj5Super: Super | |
| 14121 | - let obj5Switch: Switch | |
| 14122 | - let obj5Throw: Throw | |
| 14123 | - let obj5Throws: Throws | |
| 14124 | - let obj5True: True | |
| 14125 | - let obj5Try: Try | |
| 14126 | - let obj5Type: Obj5Type | |
| 14127 | - let obj5Typealias: Typealias | |
| 14128 | - let obj5Unowned: Unowned | |
| 14129 | - let obj5Var: Var | |
| 14130 | - let purpleSelf: Obj5Self | |
| 14131 | - let purpleTrue: TrueClass | |
| 14132 | - let sendable: Sendable | |
| 14133 | - let serialize: Serialize | |
| 14134 | - let serializerProvider: SerializerProvider | |
| 14135 | - let short: Short | |
| 14136 | - let signed: Signed | |
| 14137 | - let simpleModule: SimpleModule | |
| 14138 | - let sizeof: Sizeof | |
| 14139 | - let stackalloc: Stackalloc | |
| 14140 | - let standards: Standards | |
| 14141 | - let staticAssert: StaticAssert | |
| 14142 | - let staticCast: StaticCast | |
| 14143 | - let stdDeserializer: StdDeserializer | |
| 14144 | - let stdSerializer: StdSerializer | |
| 14145 | - let strictfp: Strictfp | |
| 14146 | - let string: StringClass | |
| 14147 | - let symbol: Symbol | |
| 14148 | - let synchronized: Synchronized | |
| 14149 | - let system: System | |
| 14150 | - let template: Template | |
| 14151 | - let then: Then | |
| 14152 | - let this: This | |
| 14153 | - let threadLocal: ThreadLocal | |
| 14154 | - let timeOnly: TimeOnly | |
| 14155 | - let timeOnlyConverter: TimeOnlyConverter | |
| 14156 | - let timeZone: TimeZoneClass | |
| 14157 | - let toJSON: ToJSON | |
| 14158 | - let toString: ToString | |
| 14159 | - let topLevel: TopLevelClass | |
| 14160 | - let transient: Transient | |
| 14161 | - let type: TypeClass | |
| 14162 | - let typedef: Typedef | |
| 14163 | - let typeid: Typeid | |
| 14164 | - let typename: Typename | |
| 14165 | - let typeof: Typeof | |
| 14166 | - let uint: Uint | |
| 14167 | - let ulong: Ulong | |
| 14168 | - let unchecked: Unchecked | |
| 14169 | - let undefined: Undefined | |
| 14170 | - let union: Union | |
| 14171 | - let unsafe: Unsafe | |
| 14172 | - let unsigned: Unsigned | |
| 14173 | - let ushort: Ushort | |
| 14174 | - let using: Using | |
| 14175 | - let utf8JSONReader: Utf8JSONReader | |
| 14176 | - let utf8JSONWriter: Utf8JSONWriter | |
| 14177 | - let uuid: UUIDClass | |
| 14178 | - let virtual: Virtual | |
| 14179 | - | |
| 14180 | - enum CodingKeys: String, CodingKey { | |
| 14181 | - case dummy = "dummy" | |
| 14182 | - case obj5Self = "Self" | |
| 14183 | - case obj5Set = "set" | |
| 14184 | - case obj5Static = "static" | |
| 14185 | - case obj5Struct = "struct" | |
| 14186 | - case obj5Subscript = "subscript" | |
| 14187 | - case obj5Super = "super" | |
| 14188 | - case obj5Switch = "switch" | |
| 14189 | - case obj5Throw = "throw" | |
| 14190 | - case obj5Throws = "throws" | |
| 14191 | - case obj5True = "True" | |
| 14192 | - case obj5Try = "try" | |
| 14193 | - case obj5Type = "type" | |
| 14194 | - case obj5Typealias = "typealias" | |
| 14195 | - case obj5Unowned = "unowned" | |
| 14196 | - case obj5Var = "var" | |
| 14197 | - case purpleSelf = "self" | |
| 14198 | - case purpleTrue = "true" | |
| 14199 | - case sendable = "Sendable" | |
| 14200 | - case serialize = "serialize" | |
| 14201 | - case serializerProvider = "SerializerProvider" | |
| 14202 | - case short = "short" | |
| 14203 | - case signed = "signed" | |
| 14204 | - case simpleModule = "SimpleModule" | |
| 14205 | - case sizeof = "sizeof" | |
| 14206 | - case stackalloc = "stackalloc" | |
| 14207 | - case standards = "Standards" | |
| 14208 | - case staticAssert = "static_assert" | |
| 14209 | - case staticCast = "static_cast" | |
| 14210 | - case stdDeserializer = "StdDeserializer" | |
| 14211 | - case stdSerializer = "StdSerializer" | |
| 14212 | - case strictfp = "strictfp" | |
| 14213 | - case string = "string" | |
| 14214 | - case symbol = "symbol" | |
| 14215 | - case synchronized = "synchronized" | |
| 14216 | - case system = "system" | |
| 14217 | - case template = "template" | |
| 14218 | - case then = "then" | |
| 14219 | - case this = "this" | |
| 14220 | - case threadLocal = "thread_local" | |
| 14221 | - case timeOnly = "TimeOnly" | |
| 14222 | - case timeOnlyConverter = "TimeOnlyConverter" | |
| 14223 | - case timeZone = "TimeZone" | |
| 14224 | - case toJSON = "to_json" | |
| 14225 | - case toString = "toString" | |
| 14226 | - case topLevel = "top_level" | |
| 14227 | - case transient = "transient" | |
| 14228 | - case type = "Type" | |
| 14229 | - case typedef = "typedef" | |
| 14230 | - case typeid = "typeid" | |
| 14231 | - case typename = "typename" | |
| 14232 | - case typeof = "typeof" | |
| 14233 | - case uint = "uint" | |
| 14234 | - case ulong = "ulong" | |
| 14235 | - case unchecked = "unchecked" | |
| 14236 | - case undefined = "undefined" | |
| 14237 | - case union = "union" | |
| 14238 | - case unsafe = "unsafe" | |
| 14239 | - case unsigned = "unsigned" | |
| 14240 | - case ushort = "ushort" | |
| 14241 | - case using = "using" | |
| 14242 | - case utf8JSONReader = "Utf8JsonReader" | |
| 14243 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 14244 | - case uuid = "UUID" | |
| 14245 | - case virtual = "virtual" | |
| 14246 | - } | |
| 14247 | - | |
| 14248 | - init(dummy: Int, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, obj5Var: Var, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual) { | |
| 14248 | + init(dummy: Int, obj5Self: SelfClass, obj5Set: Set, obj5Static: Static, obj5Struct: Struct, obj5Subscript: Subscript, obj5Super: Super, obj5Switch: Switch, obj5Throw: Throw, obj5Throws: Throws, obj5True: True, obj5Try: Try, obj5Type: Obj5Type, obj5Typealias: Typealias, obj5Unowned: Unowned, purpleSelf: Obj5Self, purpleTrue: TrueClass, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, serializationFeature: SerializationFeature, serialize: Serialize, serializerProvider: SerializerProvider, short: Short, signed: Signed, simpleModule: SimpleModule, sizeof: Sizeof, stackalloc: Stackalloc, standards: Standards, staticAssert: StaticAssert, staticCast: StaticCast, stdDeserializer: StdDeserializer, stdSerializer: StdSerializer, strictfp: Strictfp, string: StringClass, symbol: Symbol, synchronized: Synchronized, system: System, template: Template, then: Then, this: This, threadLocal: ThreadLocal, timeOnly: TimeOnly, timeOnlyConverter: TimeOnlyConverter, timeZone: TimeZoneClass, toJSON: ToJSON, toString: ToString, topLevel: TopLevelClass, transient: Transient, type: TypeClass, typedef: Typedef, typeid: Typeid, typename: Typename, typeof: Typeof, uint: Uint, ulong: Ulong, unchecked: Unchecked, undefined: Undefined, union: Union, unsafe: Unsafe, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader) { | |
| 14249 | 14249 | self.dummy = dummy |
| 14250 | 14250 | self.obj5Self = obj5Self |
| 14251 | 14251 | self.obj5Set = obj5Set |
| @@ -14261,10 +14261,13 @@ extension Select { | ||
| 14261 | 14261 | self.obj5Type = obj5Type |
| 14262 | 14262 | self.obj5Typealias = obj5Typealias |
| 14263 | 14263 | self.obj5Unowned = obj5Unowned |
| 14264 | - self.obj5Var = obj5Var | |
| 14265 | 14264 | self.purpleSelf = purpleSelf |
| 14266 | 14265 | self.purpleTrue = purpleTrue |
| 14266 | + self.sealed = sealed | |
| 14267 | + self.sel = sel | |
| 14268 | + self.select = select | |
| 14267 | 14269 | self.sendable = sendable |
| 14270 | + self.serializationFeature = serializationFeature | |
| 14268 | 14271 | self.serialize = serialize |
| 14269 | 14272 | self.serializerProvider = serializerProvider |
| 14270 | 14273 | self.short = short |
| @@ -14308,9 +14311,6 @@ extension Select { | ||
| 14308 | 14311 | self.ushort = ushort |
| 14309 | 14312 | self.using = using |
| 14310 | 14313 | self.utf8JSONReader = utf8JSONReader |
| 14311 | - self.utf8JSONWriter = utf8JSONWriter | |
| 14312 | - self.uuid = uuid | |
| 14313 | - self.virtual = virtual | |
| 14314 | 14314 | } |
| 14315 | 14315 | } |
| 14316 | 14316 | |
| @@ -14319,7 +14319,7 @@ extension Select { | ||
| 14319 | 14319 | extension Obj5 { |
| 14320 | 14320 | convenience init(data: Data) throws { |
| 14321 | 14321 | let me = try newJSONDecoder().decode(Obj5.self, from: data) |
| 14322 | - self.init(dummy: me.dummy, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, obj5Var: me.obj5Var, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unsafe: me.unsafe, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual) | |
| 14322 | + self.init(dummy: me.dummy, obj5Self: me.obj5Self, obj5Set: me.obj5Set, obj5Static: me.obj5Static, obj5Struct: me.obj5Struct, obj5Subscript: me.obj5Subscript, obj5Super: me.obj5Super, obj5Switch: me.obj5Switch, obj5Throw: me.obj5Throw, obj5Throws: me.obj5Throws, obj5True: me.obj5True, obj5Try: me.obj5Try, obj5Type: me.obj5Type, obj5Typealias: me.obj5Typealias, obj5Unowned: me.obj5Unowned, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, serializationFeature: me.serializationFeature, serialize: me.serialize, serializerProvider: me.serializerProvider, short: me.short, signed: me.signed, simpleModule: me.simpleModule, sizeof: me.sizeof, stackalloc: me.stackalloc, standards: me.standards, staticAssert: me.staticAssert, staticCast: me.staticCast, stdDeserializer: me.stdDeserializer, stdSerializer: me.stdSerializer, strictfp: me.strictfp, string: me.string, symbol: me.symbol, synchronized: me.synchronized, system: me.system, template: me.template, then: me.then, this: me.this, threadLocal: me.threadLocal, timeOnly: me.timeOnly, timeOnlyConverter: me.timeOnlyConverter, timeZone: me.timeZone, toJSON: me.toJSON, toString: me.toString, topLevel: me.topLevel, transient: me.transient, type: me.type, typedef: me.typedef, typeid: me.typeid, typename: me.typename, typeof: me.typeof, uint: me.uint, ulong: me.ulong, unchecked: me.unchecked, undefined: me.undefined, union: me.union, unsafe: me.unsafe, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader) | |
| 14323 | 14323 | } |
| 14324 | 14324 | |
| 14325 | 14325 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -14349,10 +14349,13 @@ extension Obj5 { | ||
| 14349 | 14349 | obj5Type: Obj5Type? = nil, |
| 14350 | 14350 | obj5Typealias: Typealias? = nil, |
| 14351 | 14351 | obj5Unowned: Unowned? = nil, |
| 14352 | - obj5Var: Var? = nil, | |
| 14353 | 14352 | purpleSelf: Obj5Self? = nil, |
| 14354 | 14353 | purpleTrue: TrueClass? = nil, |
| 14354 | + sealed: Sealed? = nil, | |
| 14355 | + sel: Sel? = nil, | |
| 14356 | + select: Select? = nil, | |
| 14355 | 14357 | sendable: Sendable? = nil, |
| 14358 | + serializationFeature: SerializationFeature? = nil, | |
| 14356 | 14359 | serialize: Serialize? = nil, |
| 14357 | 14360 | serializerProvider: SerializerProvider? = nil, |
| 14358 | 14361 | short: Short? = nil, |
| @@ -14395,10 +14398,7 @@ extension Obj5 { | ||
| 14395 | 14398 | unsigned: Unsigned? = nil, |
| 14396 | 14399 | ushort: Ushort? = nil, |
| 14397 | 14400 | using: Using? = nil, |
| 14398 | - utf8JSONReader: Utf8JSONReader? = nil, | |
| 14399 | - utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 14400 | - uuid: UUIDClass? = nil, | |
| 14401 | - virtual: Virtual? = nil | |
| 14401 | + utf8JSONReader: Utf8JSONReader? = nil | |
| 14402 | 14402 | ) -> Obj5 { |
| 14403 | 14403 | return Obj5( |
| 14404 | 14404 | dummy: dummy ?? self.dummy, |
| @@ -14416,10 +14416,13 @@ extension Obj5 { | ||
| 14416 | 14416 | obj5Type: obj5Type ?? self.obj5Type, |
| 14417 | 14417 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 14418 | 14418 | obj5Unowned: obj5Unowned ?? self.obj5Unowned, |
| 14419 | - obj5Var: obj5Var ?? self.obj5Var, | |
| 14420 | 14419 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 14421 | 14420 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 14421 | + sealed: sealed ?? self.sealed, | |
| 14422 | + sel: sel ?? self.sel, | |
| 14423 | + select: select ?? self.select, | |
| 14422 | 14424 | sendable: sendable ?? self.sendable, |
| 14425 | + serializationFeature: serializationFeature ?? self.serializationFeature, | |
| 14423 | 14426 | serialize: serialize ?? self.serialize, |
| 14424 | 14427 | serializerProvider: serializerProvider ?? self.serializerProvider, |
| 14425 | 14428 | short: short ?? self.short, |
| @@ -14462,10 +14465,7 @@ extension Obj5 { | ||
| 14462 | 14465 | unsigned: unsigned ?? self.unsigned, |
| 14463 | 14466 | ushort: ushort ?? self.ushort, |
| 14464 | 14467 | using: using ?? self.using, |
| 14465 | - utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, | |
| 14466 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 14467 | - uuid: uuid ?? self.uuid, | |
| 14468 | - virtual: virtual ?? self.virtual | |
| 14468 | + utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader | |
| 14469 | 14469 | ) |
| 14470 | 14470 | } |
| 14471 | 14471 | |
| @@ -15148,10 +15148,157 @@ extension Unowned { | ||
| 15148 | 15148 | } |
| 15149 | 15149 | |
| 15150 | 15150 | func with( |
| 15151 | - unownedUnowned: Int? = nil | |
| 15152 | - ) -> Unowned { | |
| 15153 | - return Unowned( | |
| 15154 | - unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 15151 | + unownedUnowned: Int? = nil | |
| 15152 | + ) -> Unowned { | |
| 15153 | + return Unowned( | |
| 15154 | + unownedUnowned: unownedUnowned ?? self.unownedUnowned | |
| 15155 | + ) | |
| 15156 | + } | |
| 15157 | + | |
| 15158 | + func jsonData() throws -> Data { | |
| 15159 | + return try newJSONEncoder().encode(self) | |
| 15160 | + } | |
| 15161 | + | |
| 15162 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15163 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15164 | + } | |
| 15165 | +} | |
| 15166 | + | |
| 15167 | +// MARK: - Obj5Self | |
| 15168 | +@objcMembers class Obj5Self: NSObject, Codable { | |
| 15169 | + let selfSelf: Int | |
| 15170 | + | |
| 15171 | + enum CodingKeys: String, CodingKey { | |
| 15172 | + case selfSelf = "self" | |
| 15173 | + } | |
| 15174 | + | |
| 15175 | + init(selfSelf: Int) { | |
| 15176 | + self.selfSelf = selfSelf | |
| 15177 | + } | |
| 15178 | +} | |
| 15179 | + | |
| 15180 | +// MARK: Obj5Self convenience initializers and mutators | |
| 15181 | + | |
| 15182 | +extension Obj5Self { | |
| 15183 | + convenience init(data: Data) throws { | |
| 15184 | + let me = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 15185 | + self.init(selfSelf: me.selfSelf) | |
| 15186 | + } | |
| 15187 | + | |
| 15188 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15189 | + guard let data = json.data(using: encoding) else { | |
| 15190 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15191 | + } | |
| 15192 | + try self.init(data: data) | |
| 15193 | + } | |
| 15194 | + | |
| 15195 | + convenience init(fromURL url: URL) throws { | |
| 15196 | + try self.init(data: try Data(contentsOf: url)) | |
| 15197 | + } | |
| 15198 | + | |
| 15199 | + func with( | |
| 15200 | + selfSelf: Int? = nil | |
| 15201 | + ) -> Obj5Self { | |
| 15202 | + return Obj5Self( | |
| 15203 | + selfSelf: selfSelf ?? self.selfSelf | |
| 15204 | + ) | |
| 15205 | + } | |
| 15206 | + | |
| 15207 | + func jsonData() throws -> Data { | |
| 15208 | + return try newJSONEncoder().encode(self) | |
| 15209 | + } | |
| 15210 | + | |
| 15211 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15212 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15213 | + } | |
| 15214 | +} | |
| 15215 | + | |
| 15216 | +// MARK: - TrueClass | |
| 15217 | +@objcMembers class TrueClass: NSObject, Codable { | |
| 15218 | + let trueTrue: Int | |
| 15219 | + | |
| 15220 | + enum CodingKeys: String, CodingKey { | |
| 15221 | + case trueTrue = "true" | |
| 15222 | + } | |
| 15223 | + | |
| 15224 | + init(trueTrue: Int) { | |
| 15225 | + self.trueTrue = trueTrue | |
| 15226 | + } | |
| 15227 | +} | |
| 15228 | + | |
| 15229 | +// MARK: TrueClass convenience initializers and mutators | |
| 15230 | + | |
| 15231 | +extension TrueClass { | |
| 15232 | + convenience init(data: Data) throws { | |
| 15233 | + let me = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 15234 | + self.init(trueTrue: me.trueTrue) | |
| 15235 | + } | |
| 15236 | + | |
| 15237 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15238 | + guard let data = json.data(using: encoding) else { | |
| 15239 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15240 | + } | |
| 15241 | + try self.init(data: data) | |
| 15242 | + } | |
| 15243 | + | |
| 15244 | + convenience init(fromURL url: URL) throws { | |
| 15245 | + try self.init(data: try Data(contentsOf: url)) | |
| 15246 | + } | |
| 15247 | + | |
| 15248 | + func with( | |
| 15249 | + trueTrue: Int? = nil | |
| 15250 | + ) -> TrueClass { | |
| 15251 | + return TrueClass( | |
| 15252 | + trueTrue: trueTrue ?? self.trueTrue | |
| 15253 | + ) | |
| 15254 | + } | |
| 15255 | + | |
| 15256 | + func jsonData() throws -> Data { | |
| 15257 | + return try newJSONEncoder().encode(self) | |
| 15258 | + } | |
| 15259 | + | |
| 15260 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15261 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15262 | + } | |
| 15263 | +} | |
| 15264 | + | |
| 15265 | +// MARK: - Sealed | |
| 15266 | +@objcMembers class Sealed: NSObject, Codable { | |
| 15267 | + let sealed: Int | |
| 15268 | + | |
| 15269 | + enum CodingKeys: String, CodingKey { | |
| 15270 | + case sealed = "sealed" | |
| 15271 | + } | |
| 15272 | + | |
| 15273 | + init(sealed: Int) { | |
| 15274 | + self.sealed = sealed | |
| 15275 | + } | |
| 15276 | +} | |
| 15277 | + | |
| 15278 | +// MARK: Sealed convenience initializers and mutators | |
| 15279 | + | |
| 15280 | +extension Sealed { | |
| 15281 | + convenience init(data: Data) throws { | |
| 15282 | + let me = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 15283 | + self.init(sealed: me.sealed) | |
| 15284 | + } | |
| 15285 | + | |
| 15286 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15287 | + guard let data = json.data(using: encoding) else { | |
| 15288 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15289 | + } | |
| 15290 | + try self.init(data: data) | |
| 15291 | + } | |
| 15292 | + | |
| 15293 | + convenience init(fromURL url: URL) throws { | |
| 15294 | + try self.init(data: try Data(contentsOf: url)) | |
| 15295 | + } | |
| 15296 | + | |
| 15297 | + func with( | |
| 15298 | + sealed: Int? = nil | |
| 15299 | + ) -> Sealed { | |
| 15300 | + return Sealed( | |
| 15301 | + sealed: sealed ?? self.sealed | |
| 15155 | 15302 | ) |
| 15156 | 15303 | } |
| 15157 | 15304 | |
| @@ -15164,25 +15311,25 @@ extension Unowned { | ||
| 15164 | 15311 | } |
| 15165 | 15312 | } |
| 15166 | 15313 | |
| 15167 | -// MARK: - Var | |
| 15168 | -@objcMembers class Var: NSObject, Codable { | |
| 15169 | - let varVar: Int | |
| 15314 | +// MARK: - Sel | |
| 15315 | +@objcMembers class Sel: NSObject, Codable { | |
| 15316 | + let sel: Int | |
| 15170 | 15317 | |
| 15171 | 15318 | enum CodingKeys: String, CodingKey { |
| 15172 | - case varVar = "var" | |
| 15319 | + case sel = "SEL" | |
| 15173 | 15320 | } |
| 15174 | 15321 | |
| 15175 | - init(varVar: Int) { | |
| 15176 | - self.varVar = varVar | |
| 15322 | + init(sel: Int) { | |
| 15323 | + self.sel = sel | |
| 15177 | 15324 | } |
| 15178 | 15325 | } |
| 15179 | 15326 | |
| 15180 | -// MARK: Var convenience initializers and mutators | |
| 15327 | +// MARK: Sel convenience initializers and mutators | |
| 15181 | 15328 | |
| 15182 | -extension Var { | |
| 15329 | +extension Sel { | |
| 15183 | 15330 | convenience init(data: Data) throws { |
| 15184 | - let me = try newJSONDecoder().decode(Var.self, from: data) | |
| 15185 | - self.init(varVar: me.varVar) | |
| 15331 | + let me = try newJSONDecoder().decode(Sel.self, from: data) | |
| 15332 | + self.init(sel: me.sel) | |
| 15186 | 15333 | } |
| 15187 | 15334 | |
| 15188 | 15335 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15197,10 +15344,10 @@ extension Var { | ||
| 15197 | 15344 | } |
| 15198 | 15345 | |
| 15199 | 15346 | func with( |
| 15200 | - varVar: Int? = nil | |
| 15201 | - ) -> Var { | |
| 15202 | - return Var( | |
| 15203 | - varVar: varVar ?? self.varVar | |
| 15347 | + sel: Int? = nil | |
| 15348 | + ) -> Sel { | |
| 15349 | + return Sel( | |
| 15350 | + sel: sel ?? self.sel | |
| 15204 | 15351 | ) |
| 15205 | 15352 | } |
| 15206 | 15353 | |
| @@ -15213,25 +15360,25 @@ extension Var { | ||
| 15213 | 15360 | } |
| 15214 | 15361 | } |
| 15215 | 15362 | |
| 15216 | -// MARK: - Obj5Self | |
| 15217 | -@objcMembers class Obj5Self: NSObject, Codable { | |
| 15218 | - let selfSelf: Int | |
| 15363 | +// MARK: - Select | |
| 15364 | +@objcMembers class Select: NSObject, Codable { | |
| 15365 | + let select: Int | |
| 15219 | 15366 | |
| 15220 | 15367 | enum CodingKeys: String, CodingKey { |
| 15221 | - case selfSelf = "self" | |
| 15368 | + case select = "select" | |
| 15222 | 15369 | } |
| 15223 | 15370 | |
| 15224 | - init(selfSelf: Int) { | |
| 15225 | - self.selfSelf = selfSelf | |
| 15371 | + init(select: Int) { | |
| 15372 | + self.select = select | |
| 15226 | 15373 | } |
| 15227 | 15374 | } |
| 15228 | 15375 | |
| 15229 | -// MARK: Obj5Self convenience initializers and mutators | |
| 15376 | +// MARK: Select convenience initializers and mutators | |
| 15230 | 15377 | |
| 15231 | -extension Obj5Self { | |
| 15378 | +extension Select { | |
| 15232 | 15379 | convenience init(data: Data) throws { |
| 15233 | - let me = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 15234 | - self.init(selfSelf: me.selfSelf) | |
| 15380 | + let me = try newJSONDecoder().decode(Select.self, from: data) | |
| 15381 | + self.init(select: me.select) | |
| 15235 | 15382 | } |
| 15236 | 15383 | |
| 15237 | 15384 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15246,10 +15393,10 @@ extension Obj5Self { | ||
| 15246 | 15393 | } |
| 15247 | 15394 | |
| 15248 | 15395 | func with( |
| 15249 | - selfSelf: Int? = nil | |
| 15250 | - ) -> Obj5Self { | |
| 15251 | - return Obj5Self( | |
| 15252 | - selfSelf: selfSelf ?? self.selfSelf | |
| 15396 | + select: Int? = nil | |
| 15397 | + ) -> Select { | |
| 15398 | + return Select( | |
| 15399 | + select: select ?? self.select | |
| 15253 | 15400 | ) |
| 15254 | 15401 | } |
| 15255 | 15402 | |
| @@ -15262,25 +15409,25 @@ extension Obj5Self { | ||
| 15262 | 15409 | } |
| 15263 | 15410 | } |
| 15264 | 15411 | |
| 15265 | -// MARK: - TrueClass | |
| 15266 | -@objcMembers class TrueClass: NSObject, Codable { | |
| 15267 | - let trueTrue: Int | |
| 15412 | +// MARK: - Sendable | |
| 15413 | +@objcMembers class Sendable: NSObject, Codable { | |
| 15414 | + let sendable: Int | |
| 15268 | 15415 | |
| 15269 | 15416 | enum CodingKeys: String, CodingKey { |
| 15270 | - case trueTrue = "true" | |
| 15417 | + case sendable = "Sendable" | |
| 15271 | 15418 | } |
| 15272 | 15419 | |
| 15273 | - init(trueTrue: Int) { | |
| 15274 | - self.trueTrue = trueTrue | |
| 15420 | + init(sendable: Int) { | |
| 15421 | + self.sendable = sendable | |
| 15275 | 15422 | } |
| 15276 | 15423 | } |
| 15277 | 15424 | |
| 15278 | -// MARK: TrueClass convenience initializers and mutators | |
| 15425 | +// MARK: Sendable convenience initializers and mutators | |
| 15279 | 15426 | |
| 15280 | -extension TrueClass { | |
| 15427 | +extension Sendable { | |
| 15281 | 15428 | convenience init(data: Data) throws { |
| 15282 | - let me = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 15283 | - self.init(trueTrue: me.trueTrue) | |
| 15429 | + let me = try newJSONDecoder().decode(Sendable.self, from: data) | |
| 15430 | + self.init(sendable: me.sendable) | |
| 15284 | 15431 | } |
| 15285 | 15432 | |
| 15286 | 15433 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15295,10 +15442,10 @@ extension TrueClass { | ||
| 15295 | 15442 | } |
| 15296 | 15443 | |
| 15297 | 15444 | func with( |
| 15298 | - trueTrue: Int? = nil | |
| 15299 | - ) -> TrueClass { | |
| 15300 | - return TrueClass( | |
| 15301 | - trueTrue: trueTrue ?? self.trueTrue | |
| 15445 | + sendable: Int? = nil | |
| 15446 | + ) -> Sendable { | |
| 15447 | + return Sendable( | |
| 15448 | + sendable: sendable ?? self.sendable | |
| 15302 | 15449 | ) |
| 15303 | 15450 | } |
| 15304 | 15451 | |
| @@ -15311,25 +15458,25 @@ extension TrueClass { | ||
| 15311 | 15458 | } |
| 15312 | 15459 | } |
| 15313 | 15460 | |
| 15314 | -// MARK: - Sendable | |
| 15315 | -@objcMembers class Sendable: NSObject, Codable { | |
| 15316 | - let sendable: Int | |
| 15461 | +// MARK: - SerializationFeature | |
| 15462 | +@objcMembers class SerializationFeature: NSObject, Codable { | |
| 15463 | + let serializationFeature: Int | |
| 15317 | 15464 | |
| 15318 | 15465 | enum CodingKeys: String, CodingKey { |
| 15319 | - case sendable = "Sendable" | |
| 15466 | + case serializationFeature = "SerializationFeature" | |
| 15320 | 15467 | } |
| 15321 | 15468 | |
| 15322 | - init(sendable: Int) { | |
| 15323 | - self.sendable = sendable | |
| 15469 | + init(serializationFeature: Int) { | |
| 15470 | + self.serializationFeature = serializationFeature | |
| 15324 | 15471 | } |
| 15325 | 15472 | } |
| 15326 | 15473 | |
| 15327 | -// MARK: Sendable convenience initializers and mutators | |
| 15474 | +// MARK: SerializationFeature convenience initializers and mutators | |
| 15328 | 15475 | |
| 15329 | -extension Sendable { | |
| 15476 | +extension SerializationFeature { | |
| 15330 | 15477 | convenience init(data: Data) throws { |
| 15331 | - let me = try newJSONDecoder().decode(Sendable.self, from: data) | |
| 15332 | - self.init(sendable: me.sendable) | |
| 15478 | + let me = try newJSONDecoder().decode(SerializationFeature.self, from: data) | |
| 15479 | + self.init(serializationFeature: me.serializationFeature) | |
| 15333 | 15480 | } |
| 15334 | 15481 | |
| 15335 | 15482 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15344,10 +15491,10 @@ extension Sendable { | ||
| 15344 | 15491 | } |
| 15345 | 15492 | |
| 15346 | 15493 | func with( |
| 15347 | - sendable: Int? = nil | |
| 15348 | - ) -> Sendable { | |
| 15349 | - return Sendable( | |
| 15350 | - sendable: sendable ?? self.sendable | |
| 15494 | + serializationFeature: Int? = nil | |
| 15495 | + ) -> SerializationFeature { | |
| 15496 | + return SerializationFeature( | |
| 15497 | + serializationFeature: serializationFeature ?? self.serializationFeature | |
| 15351 | 15498 | ) |
| 15352 | 15499 | } |
| 15353 | 15500 | |
| @@ -17376,165 +17523,18 @@ extension Ushort { | ||
| 17376 | 17523 | enum CodingKeys: String, CodingKey { |
| 17377 | 17524 | case using = "using" |
| 17378 | 17525 | } |
| 17379 | - | |
| 17380 | - init(using: Int) { | |
| 17381 | - self.using = using | |
| 17382 | - } | |
| 17383 | -} | |
| 17384 | - | |
| 17385 | -// MARK: Using convenience initializers and mutators | |
| 17386 | - | |
| 17387 | -extension Using { | |
| 17388 | - convenience init(data: Data) throws { | |
| 17389 | - let me = try newJSONDecoder().decode(Using.self, from: data) | |
| 17390 | - self.init(using: me.using) | |
| 17391 | - } | |
| 17392 | - | |
| 17393 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17394 | - guard let data = json.data(using: encoding) else { | |
| 17395 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17396 | - } | |
| 17397 | - try self.init(data: data) | |
| 17398 | - } | |
| 17399 | - | |
| 17400 | - convenience init(fromURL url: URL) throws { | |
| 17401 | - try self.init(data: try Data(contentsOf: url)) | |
| 17402 | - } | |
| 17403 | - | |
| 17404 | - func with( | |
| 17405 | - using: Int? = nil | |
| 17406 | - ) -> Using { | |
| 17407 | - return Using( | |
| 17408 | - using: using ?? self.using | |
| 17409 | - ) | |
| 17410 | - } | |
| 17411 | - | |
| 17412 | - func jsonData() throws -> Data { | |
| 17413 | - return try newJSONEncoder().encode(self) | |
| 17414 | - } | |
| 17415 | - | |
| 17416 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17417 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17418 | - } | |
| 17419 | -} | |
| 17420 | - | |
| 17421 | -// MARK: - Utf8JSONReader | |
| 17422 | -@objcMembers class Utf8JSONReader: NSObject, Codable { | |
| 17423 | - let utf8JSONReader: Int | |
| 17424 | - | |
| 17425 | - enum CodingKeys: String, CodingKey { | |
| 17426 | - case utf8JSONReader = "Utf8JsonReader" | |
| 17427 | - } | |
| 17428 | - | |
| 17429 | - init(utf8JSONReader: Int) { | |
| 17430 | - self.utf8JSONReader = utf8JSONReader | |
| 17431 | - } | |
| 17432 | -} | |
| 17433 | - | |
| 17434 | -// MARK: Utf8JSONReader convenience initializers and mutators | |
| 17435 | - | |
| 17436 | -extension Utf8JSONReader { | |
| 17437 | - convenience init(data: Data) throws { | |
| 17438 | - let me = try newJSONDecoder().decode(Utf8JSONReader.self, from: data) | |
| 17439 | - self.init(utf8JSONReader: me.utf8JSONReader) | |
| 17440 | - } | |
| 17441 | - | |
| 17442 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17443 | - guard let data = json.data(using: encoding) else { | |
| 17444 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17445 | - } | |
| 17446 | - try self.init(data: data) | |
| 17447 | - } | |
| 17448 | - | |
| 17449 | - convenience init(fromURL url: URL) throws { | |
| 17450 | - try self.init(data: try Data(contentsOf: url)) | |
| 17451 | - } | |
| 17452 | - | |
| 17453 | - func with( | |
| 17454 | - utf8JSONReader: Int? = nil | |
| 17455 | - ) -> Utf8JSONReader { | |
| 17456 | - return Utf8JSONReader( | |
| 17457 | - utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader | |
| 17458 | - ) | |
| 17459 | - } | |
| 17460 | - | |
| 17461 | - func jsonData() throws -> Data { | |
| 17462 | - return try newJSONEncoder().encode(self) | |
| 17463 | - } | |
| 17464 | - | |
| 17465 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17466 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17467 | - } | |
| 17468 | -} | |
| 17469 | - | |
| 17470 | -// MARK: - Utf8JSONWriter | |
| 17471 | -@objcMembers class Utf8JSONWriter: NSObject, Codable { | |
| 17472 | - let utf8JSONWriter: Int | |
| 17473 | - | |
| 17474 | - enum CodingKeys: String, CodingKey { | |
| 17475 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 17476 | - } | |
| 17477 | - | |
| 17478 | - init(utf8JSONWriter: Int) { | |
| 17479 | - self.utf8JSONWriter = utf8JSONWriter | |
| 17480 | - } | |
| 17481 | -} | |
| 17482 | - | |
| 17483 | -// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 17484 | - | |
| 17485 | -extension Utf8JSONWriter { | |
| 17486 | - convenience init(data: Data) throws { | |
| 17487 | - let me = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 17488 | - self.init(utf8JSONWriter: me.utf8JSONWriter) | |
| 17489 | - } | |
| 17490 | - | |
| 17491 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17492 | - guard let data = json.data(using: encoding) else { | |
| 17493 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17494 | - } | |
| 17495 | - try self.init(data: data) | |
| 17496 | - } | |
| 17497 | - | |
| 17498 | - convenience init(fromURL url: URL) throws { | |
| 17499 | - try self.init(data: try Data(contentsOf: url)) | |
| 17500 | - } | |
| 17501 | - | |
| 17502 | - func with( | |
| 17503 | - utf8JSONWriter: Int? = nil | |
| 17504 | - ) -> Utf8JSONWriter { | |
| 17505 | - return Utf8JSONWriter( | |
| 17506 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 17507 | - ) | |
| 17508 | - } | |
| 17509 | - | |
| 17510 | - func jsonData() throws -> Data { | |
| 17511 | - return try newJSONEncoder().encode(self) | |
| 17512 | - } | |
| 17513 | - | |
| 17514 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17515 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17516 | - } | |
| 17517 | -} | |
| 17518 | - | |
| 17519 | -// MARK: - UUIDClass | |
| 17520 | -@objcMembers class UUIDClass: NSObject, Codable { | |
| 17521 | - let uuid: Int | |
| 17522 | - | |
| 17523 | - enum CodingKeys: String, CodingKey { | |
| 17524 | - case uuid = "UUID" | |
| 17525 | - } | |
| 17526 | - | |
| 17527 | - init(uuid: Int) { | |
| 17528 | - self.uuid = uuid | |
| 17526 | + | |
| 17527 | + init(using: Int) { | |
| 17528 | + self.using = using | |
| 17529 | 17529 | } |
| 17530 | 17530 | } |
| 17531 | 17531 | |
| 17532 | -// MARK: UUIDClass convenience initializers and mutators | |
| 17532 | +// MARK: Using convenience initializers and mutators | |
| 17533 | 17533 | |
| 17534 | -extension UUIDClass { | |
| 17534 | +extension Using { | |
| 17535 | 17535 | convenience init(data: Data) throws { |
| 17536 | - let me = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 17537 | - self.init(uuid: me.uuid) | |
| 17536 | + let me = try newJSONDecoder().decode(Using.self, from: data) | |
| 17537 | + self.init(using: me.using) | |
| 17538 | 17538 | } |
| 17539 | 17539 | |
| 17540 | 17540 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17549,10 +17549,10 @@ extension UUIDClass { | ||
| 17549 | 17549 | } |
| 17550 | 17550 | |
| 17551 | 17551 | func with( |
| 17552 | - uuid: Int? = nil | |
| 17553 | - ) -> UUIDClass { | |
| 17554 | - return UUIDClass( | |
| 17555 | - uuid: uuid ?? self.uuid | |
| 17552 | + using: Int? = nil | |
| 17553 | + ) -> Using { | |
| 17554 | + return Using( | |
| 17555 | + using: using ?? self.using | |
| 17556 | 17556 | ) |
| 17557 | 17557 | } |
| 17558 | 17558 | |
| @@ -17565,25 +17565,25 @@ extension UUIDClass { | ||
| 17565 | 17565 | } |
| 17566 | 17566 | } |
| 17567 | 17567 | |
| 17568 | -// MARK: - Virtual | |
| 17569 | -@objcMembers class Virtual: NSObject, Codable { | |
| 17570 | - let virtual: Int | |
| 17568 | +// MARK: - Utf8JSONReader | |
| 17569 | +@objcMembers class Utf8JSONReader: NSObject, Codable { | |
| 17570 | + let utf8JSONReader: Int | |
| 17571 | 17571 | |
| 17572 | 17572 | enum CodingKeys: String, CodingKey { |
| 17573 | - case virtual = "virtual" | |
| 17573 | + case utf8JSONReader = "Utf8JsonReader" | |
| 17574 | 17574 | } |
| 17575 | 17575 | |
| 17576 | - init(virtual: Int) { | |
| 17577 | - self.virtual = virtual | |
| 17576 | + init(utf8JSONReader: Int) { | |
| 17577 | + self.utf8JSONReader = utf8JSONReader | |
| 17578 | 17578 | } |
| 17579 | 17579 | } |
| 17580 | 17580 | |
| 17581 | -// MARK: Virtual convenience initializers and mutators | |
| 17581 | +// MARK: Utf8JSONReader convenience initializers and mutators | |
| 17582 | 17582 | |
| 17583 | -extension Virtual { | |
| 17583 | +extension Utf8JSONReader { | |
| 17584 | 17584 | convenience init(data: Data) throws { |
| 17585 | - let me = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 17586 | - self.init(virtual: me.virtual) | |
| 17585 | + let me = try newJSONDecoder().decode(Utf8JSONReader.self, from: data) | |
| 17586 | + self.init(utf8JSONReader: me.utf8JSONReader) | |
| 17587 | 17587 | } |
| 17588 | 17588 | |
| 17589 | 17589 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17598,10 +17598,10 @@ extension Virtual { | ||
| 17598 | 17598 | } |
| 17599 | 17599 | |
| 17600 | 17600 | func with( |
| 17601 | - virtual: Int? = nil | |
| 17602 | - ) -> Virtual { | |
| 17603 | - return Virtual( | |
| 17604 | - virtual: virtual ?? self.virtual | |
| 17601 | + utf8JSONReader: Int? = nil | |
| 17602 | + ) -> Utf8JSONReader { | |
| 17603 | + return Utf8JSONReader( | |
| 17604 | + utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader | |
| 17605 | 17605 | ) |
| 17606 | 17606 | } |
| 17607 | 17607 | |
| @@ -17617,10 +17617,14 @@ extension Virtual { | ||
| 17617 | 17617 | // MARK: - Obj6 |
| 17618 | 17618 | @objcMembers class Obj6: NSObject, Codable { |
| 17619 | 17619 | let dummy: Int |
| 17620 | + let obj6Var: Var | |
| 17620 | 17621 | let obj6Weak: Weak |
| 17621 | 17622 | let obj6Where: Where |
| 17622 | 17623 | let obj6While: While |
| 17623 | 17624 | let obj6WillSet: WillSet |
| 17625 | + let utf8JSONWriter: Utf8JSONWriter | |
| 17626 | + let uuid: UUIDClass | |
| 17627 | + let virtual: Virtual | |
| 17624 | 17628 | let void: Void |
| 17625 | 17629 | let volatile: Volatile |
| 17626 | 17630 | let wcharT: WcharT |
| @@ -17632,10 +17636,14 @@ extension Virtual { | ||
| 17632 | 17636 | |
| 17633 | 17637 | enum CodingKeys: String, CodingKey { |
| 17634 | 17638 | case dummy = "dummy" |
| 17639 | + case obj6Var = "var" | |
| 17635 | 17640 | case obj6Weak = "weak" |
| 17636 | 17641 | case obj6Where = "where" |
| 17637 | 17642 | case obj6While = "while" |
| 17638 | 17643 | case obj6WillSet = "willSet" |
| 17644 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 17645 | + case uuid = "UUID" | |
| 17646 | + case virtual = "virtual" | |
| 17639 | 17647 | case void = "void" |
| 17640 | 17648 | case volatile = "volatile" |
| 17641 | 17649 | case wcharT = "wchar_t" |
| @@ -17646,12 +17654,16 @@ extension Virtual { | ||
| 17646 | 17654 | case yield = "yield" |
| 17647 | 17655 | } |
| 17648 | 17656 | |
| 17649 | - init(dummy: Int, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) { | |
| 17657 | + init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) { | |
| 17650 | 17658 | self.dummy = dummy |
| 17659 | + self.obj6Var = obj6Var | |
| 17651 | 17660 | self.obj6Weak = obj6Weak |
| 17652 | 17661 | self.obj6Where = obj6Where |
| 17653 | 17662 | self.obj6While = obj6While |
| 17654 | 17663 | self.obj6WillSet = obj6WillSet |
| 17664 | + self.utf8JSONWriter = utf8JSONWriter | |
| 17665 | + self.uuid = uuid | |
| 17666 | + self.virtual = virtual | |
| 17655 | 17667 | self.void = void |
| 17656 | 17668 | self.volatile = volatile |
| 17657 | 17669 | self.wcharT = wcharT |
| @@ -17668,7 +17680,7 @@ extension Virtual { | ||
| 17668 | 17680 | extension Obj6 { |
| 17669 | 17681 | convenience init(data: Data) throws { |
| 17670 | 17682 | let me = try newJSONDecoder().decode(Obj6.self, from: data) |
| 17671 | - self.init(dummy: me.dummy, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield) | |
| 17683 | + self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, utf8JSONWriter: me.utf8JSONWriter, uuid: me.uuid, virtual: me.virtual, void: me.void, volatile: me.volatile, wcharT: me.wcharT, with: me.with, xor: me.xor, xorEq: me.xorEq, yes: me.yes, yield: me.yield) | |
| 17672 | 17684 | } |
| 17673 | 17685 | |
| 17674 | 17686 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17684,10 +17696,14 @@ extension Obj6 { | ||
| 17684 | 17696 | |
| 17685 | 17697 | func with( |
| 17686 | 17698 | dummy: Int? = nil, |
| 17699 | + obj6Var: Var? = nil, | |
| 17687 | 17700 | obj6Weak: Weak? = nil, |
| 17688 | 17701 | obj6Where: Where? = nil, |
| 17689 | 17702 | obj6While: While? = nil, |
| 17690 | 17703 | obj6WillSet: WillSet? = nil, |
| 17704 | + utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 17705 | + uuid: UUIDClass? = nil, | |
| 17706 | + virtual: Virtual? = nil, | |
| 17691 | 17707 | void: Void? = nil, |
| 17692 | 17708 | volatile: Volatile? = nil, |
| 17693 | 17709 | wcharT: WcharT? = nil, |
| @@ -17699,10 +17715,14 @@ extension Obj6 { | ||
| 17699 | 17715 | ) -> Obj6 { |
| 17700 | 17716 | return Obj6( |
| 17701 | 17717 | dummy: dummy ?? self.dummy, |
| 17718 | + obj6Var: obj6Var ?? self.obj6Var, | |
| 17702 | 17719 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 17703 | 17720 | obj6Where: obj6Where ?? self.obj6Where, |
| 17704 | 17721 | obj6While: obj6While ?? self.obj6While, |
| 17705 | 17722 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 17723 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 17724 | + uuid: uuid ?? self.uuid, | |
| 17725 | + virtual: virtual ?? self.virtual, | |
| 17706 | 17726 | void: void ?? self.void, |
| 17707 | 17727 | volatile: volatile ?? self.volatile, |
| 17708 | 17728 | wcharT: wcharT ?? self.wcharT, |
| @@ -17723,6 +17743,55 @@ extension Obj6 { | ||
| 17723 | 17743 | } |
| 17724 | 17744 | } |
| 17725 | 17745 | |
| 17746 | +// MARK: - Var | |
| 17747 | +@objcMembers class Var: NSObject, Codable { | |
| 17748 | + let varVar: Int | |
| 17749 | + | |
| 17750 | + enum CodingKeys: String, CodingKey { | |
| 17751 | + case varVar = "var" | |
| 17752 | + } | |
| 17753 | + | |
| 17754 | + init(varVar: Int) { | |
| 17755 | + self.varVar = varVar | |
| 17756 | + } | |
| 17757 | +} | |
| 17758 | + | |
| 17759 | +// MARK: Var convenience initializers and mutators | |
| 17760 | + | |
| 17761 | +extension Var { | |
| 17762 | + convenience init(data: Data) throws { | |
| 17763 | + let me = try newJSONDecoder().decode(Var.self, from: data) | |
| 17764 | + self.init(varVar: me.varVar) | |
| 17765 | + } | |
| 17766 | + | |
| 17767 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17768 | + guard let data = json.data(using: encoding) else { | |
| 17769 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17770 | + } | |
| 17771 | + try self.init(data: data) | |
| 17772 | + } | |
| 17773 | + | |
| 17774 | + convenience init(fromURL url: URL) throws { | |
| 17775 | + try self.init(data: try Data(contentsOf: url)) | |
| 17776 | + } | |
| 17777 | + | |
| 17778 | + func with( | |
| 17779 | + varVar: Int? = nil | |
| 17780 | + ) -> Var { | |
| 17781 | + return Var( | |
| 17782 | + varVar: varVar ?? self.varVar | |
| 17783 | + ) | |
| 17784 | + } | |
| 17785 | + | |
| 17786 | + func jsonData() throws -> Data { | |
| 17787 | + return try newJSONEncoder().encode(self) | |
| 17788 | + } | |
| 17789 | + | |
| 17790 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17791 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 17792 | + } | |
| 17793 | +} | |
| 17794 | + | |
| 17726 | 17795 | // MARK: - Weak |
| 17727 | 17796 | @objcMembers class Weak: NSObject, Codable { |
| 17728 | 17797 | let weakWeak: Int |
| @@ -17919,6 +17988,153 @@ extension WillSet { | ||
| 17919 | 17988 | } |
| 17920 | 17989 | } |
| 17921 | 17990 | |
| 17991 | +// MARK: - Utf8JSONWriter | |
| 17992 | +@objcMembers class Utf8JSONWriter: NSObject, Codable { | |
| 17993 | + let utf8JSONWriter: Int | |
| 17994 | + | |
| 17995 | + enum CodingKeys: String, CodingKey { | |
| 17996 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 17997 | + } | |
| 17998 | + | |
| 17999 | + init(utf8JSONWriter: Int) { | |
| 18000 | + self.utf8JSONWriter = utf8JSONWriter | |
| 18001 | + } | |
| 18002 | +} | |
| 18003 | + | |
| 18004 | +// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 18005 | + | |
| 18006 | +extension Utf8JSONWriter { | |
| 18007 | + convenience init(data: Data) throws { | |
| 18008 | + let me = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 18009 | + self.init(utf8JSONWriter: me.utf8JSONWriter) | |
| 18010 | + } | |
| 18011 | + | |
| 18012 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18013 | + guard let data = json.data(using: encoding) else { | |
| 18014 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18015 | + } | |
| 18016 | + try self.init(data: data) | |
| 18017 | + } | |
| 18018 | + | |
| 18019 | + convenience init(fromURL url: URL) throws { | |
| 18020 | + try self.init(data: try Data(contentsOf: url)) | |
| 18021 | + } | |
| 18022 | + | |
| 18023 | + func with( | |
| 18024 | + utf8JSONWriter: Int? = nil | |
| 18025 | + ) -> Utf8JSONWriter { | |
| 18026 | + return Utf8JSONWriter( | |
| 18027 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 18028 | + ) | |
| 18029 | + } | |
| 18030 | + | |
| 18031 | + func jsonData() throws -> Data { | |
| 18032 | + return try newJSONEncoder().encode(self) | |
| 18033 | + } | |
| 18034 | + | |
| 18035 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18036 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18037 | + } | |
| 18038 | +} | |
| 18039 | + | |
| 18040 | +// MARK: - UUIDClass | |
| 18041 | +@objcMembers class UUIDClass: NSObject, Codable { | |
| 18042 | + let uuid: Int | |
| 18043 | + | |
| 18044 | + enum CodingKeys: String, CodingKey { | |
| 18045 | + case uuid = "UUID" | |
| 18046 | + } | |
| 18047 | + | |
| 18048 | + init(uuid: Int) { | |
| 18049 | + self.uuid = uuid | |
| 18050 | + } | |
| 18051 | +} | |
| 18052 | + | |
| 18053 | +// MARK: UUIDClass convenience initializers and mutators | |
| 18054 | + | |
| 18055 | +extension UUIDClass { | |
| 18056 | + convenience init(data: Data) throws { | |
| 18057 | + let me = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 18058 | + self.init(uuid: me.uuid) | |
| 18059 | + } | |
| 18060 | + | |
| 18061 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18062 | + guard let data = json.data(using: encoding) else { | |
| 18063 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18064 | + } | |
| 18065 | + try self.init(data: data) | |
| 18066 | + } | |
| 18067 | + | |
| 18068 | + convenience init(fromURL url: URL) throws { | |
| 18069 | + try self.init(data: try Data(contentsOf: url)) | |
| 18070 | + } | |
| 18071 | + | |
| 18072 | + func with( | |
| 18073 | + uuid: Int? = nil | |
| 18074 | + ) -> UUIDClass { | |
| 18075 | + return UUIDClass( | |
| 18076 | + uuid: uuid ?? self.uuid | |
| 18077 | + ) | |
| 18078 | + } | |
| 18079 | + | |
| 18080 | + func jsonData() throws -> Data { | |
| 18081 | + return try newJSONEncoder().encode(self) | |
| 18082 | + } | |
| 18083 | + | |
| 18084 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18085 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18086 | + } | |
| 18087 | +} | |
| 18088 | + | |
| 18089 | +// MARK: - Virtual | |
| 18090 | +@objcMembers class Virtual: NSObject, Codable { | |
| 18091 | + let virtual: Int | |
| 18092 | + | |
| 18093 | + enum CodingKeys: String, CodingKey { | |
| 18094 | + case virtual = "virtual" | |
| 18095 | + } | |
| 18096 | + | |
| 18097 | + init(virtual: Int) { | |
| 18098 | + self.virtual = virtual | |
| 18099 | + } | |
| 18100 | +} | |
| 18101 | + | |
| 18102 | +// MARK: Virtual convenience initializers and mutators | |
| 18103 | + | |
| 18104 | +extension Virtual { | |
| 18105 | + convenience init(data: Data) throws { | |
| 18106 | + let me = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 18107 | + self.init(virtual: me.virtual) | |
| 18108 | + } | |
| 18109 | + | |
| 18110 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18111 | + guard let data = json.data(using: encoding) else { | |
| 18112 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18113 | + } | |
| 18114 | + try self.init(data: data) | |
| 18115 | + } | |
| 18116 | + | |
| 18117 | + convenience init(fromURL url: URL) throws { | |
| 18118 | + try self.init(data: try Data(contentsOf: url)) | |
| 18119 | + } | |
| 18120 | + | |
| 18121 | + func with( | |
| 18122 | + virtual: Int? = nil | |
| 18123 | + ) -> Virtual { | |
| 18124 | + return Virtual( | |
| 18125 | + virtual: virtual ?? self.virtual | |
| 18126 | + ) | |
| 18127 | + } | |
| 18128 | + | |
| 18129 | + func jsonData() throws -> Data { | |
| 18130 | + return try newJSONEncoder().encode(self) | |
| 18131 | + } | |
| 18132 | + | |
| 18133 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18134 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18135 | + } | |
| 18136 | +} | |
| 18137 | + | |
| 17922 | 18138 | // MARK: - Void |
| 17923 | 18139 | @objcMembers class Void: NSObject, Codable { |
| 17924 | 18140 | let void: Int |
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+810 −594
| @@ -3610,6 +3610,7 @@ struct Obj2: Codable, Equatable { | ||
| 3610 | 3610 | let del: Del |
| 3611 | 3611 | let delegate: Delegate |
| 3612 | 3612 | let delete: Delete |
| 3613 | + let deserializationFeature: DeserializationFeature | |
| 3613 | 3614 | let dict: Dict |
| 3614 | 3615 | let dictionary: Dictionary |
| 3615 | 3616 | let double: DoubleClass |
| @@ -3640,7 +3641,6 @@ struct Obj2: Codable, Equatable { | ||
| 3640 | 3641 | let function: Function |
| 3641 | 3642 | let global: Global |
| 3642 | 3643 | let go: Go |
| 3643 | - let goto: Goto | |
| 3644 | 3644 | let obj2Default: Default |
| 3645 | 3645 | let obj2Defer: Defer |
| 3646 | 3646 | let obj2Deinit: Deinit |
| @@ -3677,6 +3677,7 @@ struct Obj2: Codable, Equatable { | ||
| 3677 | 3677 | case del = "del" |
| 3678 | 3678 | case delegate = "delegate" |
| 3679 | 3679 | case delete = "delete" |
| 3680 | + case deserializationFeature = "DeserializationFeature" | |
| 3680 | 3681 | case dict = "dict" |
| 3681 | 3682 | case dictionary = "dictionary" |
| 3682 | 3683 | case double = "double" |
| @@ -3707,7 +3708,6 @@ struct Obj2: Codable, Equatable { | ||
| 3707 | 3708 | case function = "function" |
| 3708 | 3709 | case global = "global" |
| 3709 | 3710 | case go = "go" |
| 3710 | - case goto = "goto" | |
| 3711 | 3711 | case obj2Default = "default" |
| 3712 | 3712 | case obj2Defer = "defer" |
| 3713 | 3713 | case obj2Deinit = "deinit" |
| @@ -3764,6 +3764,7 @@ extension Obj2 { | ||
| 3764 | 3764 | del: Del? = nil, |
| 3765 | 3765 | delegate: Delegate? = nil, |
| 3766 | 3766 | delete: Delete? = nil, |
| 3767 | + deserializationFeature: DeserializationFeature? = nil, | |
| 3767 | 3768 | dict: Dict? = nil, |
| 3768 | 3769 | dictionary: Dictionary? = nil, |
| 3769 | 3770 | double: DoubleClass? = nil, |
| @@ -3794,7 +3795,6 @@ extension Obj2 { | ||
| 3794 | 3795 | function: Function? = nil, |
| 3795 | 3796 | global: Global? = nil, |
| 3796 | 3797 | go: Go? = nil, |
| 3797 | - goto: Goto? = nil, | |
| 3798 | 3798 | obj2Default: Default? = nil, |
| 3799 | 3799 | obj2Defer: Defer? = nil, |
| 3800 | 3800 | obj2Deinit: Deinit? = nil, |
| @@ -3831,6 +3831,7 @@ extension Obj2 { | ||
| 3831 | 3831 | del: del ?? self.del, |
| 3832 | 3832 | delegate: delegate ?? self.delegate, |
| 3833 | 3833 | delete: delete ?? self.delete, |
| 3834 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature, | |
| 3834 | 3835 | dict: dict ?? self.dict, |
| 3835 | 3836 | dictionary: dictionary ?? self.dictionary, |
| 3836 | 3837 | double: double ?? self.double, |
| @@ -3861,7 +3862,6 @@ extension Obj2 { | ||
| 3861 | 3862 | function: function ?? self.function, |
| 3862 | 3863 | global: global ?? self.global, |
| 3863 | 3864 | go: go ?? self.go, |
| 3864 | - goto: goto ?? self.goto, | |
| 3865 | 3865 | obj2Default: obj2Default ?? self.obj2Default, |
| 3866 | 3866 | obj2Defer: obj2Defer ?? self.obj2Defer, |
| 3867 | 3867 | obj2Deinit: obj2Deinit ?? self.obj2Deinit, |
| @@ -4747,6 +4747,56 @@ extension Delete { | ||
| 4747 | 4747 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 4748 | 4748 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 4749 | 4749 | |
| 4750 | +// MARK: - DeserializationFeature | |
| 4751 | +struct DeserializationFeature: Codable, Equatable { | |
| 4752 | + let deserializationFeature: Int | |
| 4753 | + | |
| 4754 | + enum CodingKeys: String, CodingKey { | |
| 4755 | + case deserializationFeature = "DeserializationFeature" | |
| 4756 | + } | |
| 4757 | +} | |
| 4758 | + | |
| 4759 | +// MARK: DeserializationFeature convenience initializers and mutators | |
| 4760 | + | |
| 4761 | +extension DeserializationFeature { | |
| 4762 | + init(data: Data) throws { | |
| 4763 | + self = try newJSONDecoder().decode(DeserializationFeature.self, from: data) | |
| 4764 | + } | |
| 4765 | + | |
| 4766 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 4767 | + guard let data = json.data(using: encoding) else { | |
| 4768 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 4769 | + } | |
| 4770 | + try self.init(data: data) | |
| 4771 | + } | |
| 4772 | + | |
| 4773 | + init(fromURL url: URL) throws { | |
| 4774 | + try self.init(data: try Data(contentsOf: url)) | |
| 4775 | + } | |
| 4776 | + | |
| 4777 | + func with( | |
| 4778 | + deserializationFeature: Int? = nil | |
| 4779 | + ) -> DeserializationFeature { | |
| 4780 | + return DeserializationFeature( | |
| 4781 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature | |
| 4782 | + ) | |
| 4783 | + } | |
| 4784 | + | |
| 4785 | + func jsonData() throws -> Data { | |
| 4786 | + return try newJSONEncoder().encode(self) | |
| 4787 | + } | |
| 4788 | + | |
| 4789 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 4790 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 4791 | + } | |
| 4792 | +} | |
| 4793 | + | |
| 4794 | +// | |
| 4795 | +// Hashable or Equatable: | |
| 4796 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 4797 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 4798 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 4799 | + | |
| 4750 | 4800 | // MARK: - Dict |
| 4751 | 4801 | struct Dict: Codable, Equatable { |
| 4752 | 4802 | let dict: Int |
| @@ -6202,56 +6252,6 @@ extension Go { | ||
| 6202 | 6252 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 6203 | 6253 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 6204 | 6254 | |
| 6205 | -// MARK: - Goto | |
| 6206 | -struct Goto: Codable, Equatable { | |
| 6207 | - let goto: Int | |
| 6208 | - | |
| 6209 | - enum CodingKeys: String, CodingKey { | |
| 6210 | - case goto = "goto" | |
| 6211 | - } | |
| 6212 | -} | |
| 6213 | - | |
| 6214 | -// MARK: Goto convenience initializers and mutators | |
| 6215 | - | |
| 6216 | -extension Goto { | |
| 6217 | - init(data: Data) throws { | |
| 6218 | - self = try newJSONDecoder().decode(Goto.self, from: data) | |
| 6219 | - } | |
| 6220 | - | |
| 6221 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 6222 | - guard let data = json.data(using: encoding) else { | |
| 6223 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 6224 | - } | |
| 6225 | - try self.init(data: data) | |
| 6226 | - } | |
| 6227 | - | |
| 6228 | - init(fromURL url: URL) throws { | |
| 6229 | - try self.init(data: try Data(contentsOf: url)) | |
| 6230 | - } | |
| 6231 | - | |
| 6232 | - func with( | |
| 6233 | - goto: Int? = nil | |
| 6234 | - ) -> Goto { | |
| 6235 | - return Goto( | |
| 6236 | - goto: goto ?? self.goto | |
| 6237 | - ) | |
| 6238 | - } | |
| 6239 | - | |
| 6240 | - func jsonData() throws -> Data { | |
| 6241 | - return try newJSONEncoder().encode(self) | |
| 6242 | - } | |
| 6243 | - | |
| 6244 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 6245 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 6246 | - } | |
| 6247 | -} | |
| 6248 | - | |
| 6249 | -// | |
| 6250 | -// Hashable or Equatable: | |
| 6251 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 6252 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 6253 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 6254 | - | |
| 6255 | 6255 | // MARK: - Default |
| 6256 | 6256 | struct Default: Codable, Equatable { |
| 6257 | 6257 | let defaultDefault: Int |
| @@ -7105,6 +7105,7 @@ extension FalseClass { | ||
| 7105 | 7105 | // MARK: - Obj3 |
| 7106 | 7106 | struct Obj3: Codable, Equatable { |
| 7107 | 7107 | let dummy: Int |
| 7108 | + let goto: Goto | |
| 7108 | 7109 | let hasOwnProperty: HasOwnProperty |
| 7109 | 7110 | let hashCode: HashCode |
| 7110 | 7111 | let hashable: HashableClass |
| @@ -7152,7 +7153,6 @@ struct Obj3: Codable, Equatable { | ||
| 7152 | 7153 | let new: New |
| 7153 | 7154 | let newtonsoft: Newtonsoft |
| 7154 | 7155 | let no: No |
| 7155 | - let noexcept: Noexcept | |
| 7156 | 7156 | let obj3Guard: Guard |
| 7157 | 7157 | let obj3If: If |
| 7158 | 7158 | let obj3Import: Import |
| @@ -7172,6 +7172,7 @@ struct Obj3: Codable, Equatable { | ||
| 7172 | 7172 | |
| 7173 | 7173 | enum CodingKeys: String, CodingKey { |
| 7174 | 7174 | case dummy = "dummy" |
| 7175 | + case goto = "goto" | |
| 7175 | 7176 | case hasOwnProperty = "hasOwnProperty" |
| 7176 | 7177 | case hashCode = "hashCode" |
| 7177 | 7178 | case hashable = "Hashable" |
| @@ -7219,7 +7220,6 @@ struct Obj3: Codable, Equatable { | ||
| 7219 | 7220 | case new = "new" |
| 7220 | 7221 | case newtonsoft = "newtonsoft" |
| 7221 | 7222 | case no = "NO" |
| 7222 | - case noexcept = "noexcept" | |
| 7223 | 7223 | case obj3Guard = "guard" |
| 7224 | 7224 | case obj3If = "if" |
| 7225 | 7225 | case obj3Import = "import" |
| @@ -7259,6 +7259,7 @@ extension Obj3 { | ||
| 7259 | 7259 | |
| 7260 | 7260 | func with( |
| 7261 | 7261 | dummy: Int? = nil, |
| 7262 | + goto: Goto? = nil, | |
| 7262 | 7263 | hasOwnProperty: HasOwnProperty? = nil, |
| 7263 | 7264 | hashCode: HashCode? = nil, |
| 7264 | 7265 | hashable: HashableClass? = nil, |
| @@ -7306,7 +7307,6 @@ extension Obj3 { | ||
| 7306 | 7307 | new: New? = nil, |
| 7307 | 7308 | newtonsoft: Newtonsoft? = nil, |
| 7308 | 7309 | no: No? = nil, |
| 7309 | - noexcept: Noexcept? = nil, | |
| 7310 | 7310 | obj3Guard: Guard? = nil, |
| 7311 | 7311 | obj3If: If? = nil, |
| 7312 | 7312 | obj3Import: Import? = nil, |
| @@ -7326,6 +7326,7 @@ extension Obj3 { | ||
| 7326 | 7326 | ) -> Obj3 { |
| 7327 | 7327 | return Obj3( |
| 7328 | 7328 | dummy: dummy ?? self.dummy, |
| 7329 | + goto: goto ?? self.goto, | |
| 7329 | 7330 | hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty, |
| 7330 | 7331 | hashCode: hashCode ?? self.hashCode, |
| 7331 | 7332 | hashable: hashable ?? self.hashable, |
| @@ -7373,7 +7374,6 @@ extension Obj3 { | ||
| 7373 | 7374 | new: new ?? self.new, |
| 7374 | 7375 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 7375 | 7376 | no: no ?? self.no, |
| 7376 | - noexcept: noexcept ?? self.noexcept, | |
| 7377 | 7377 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 7378 | 7378 | obj3If: obj3If ?? self.obj3If, |
| 7379 | 7379 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -7408,6 +7408,56 @@ extension Obj3 { | ||
| 7408 | 7408 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 7409 | 7409 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 7410 | 7410 | |
| 7411 | +// MARK: - Goto | |
| 7412 | +struct Goto: Codable, Equatable { | |
| 7413 | + let goto: Int | |
| 7414 | + | |
| 7415 | + enum CodingKeys: String, CodingKey { | |
| 7416 | + case goto = "goto" | |
| 7417 | + } | |
| 7418 | +} | |
| 7419 | + | |
| 7420 | +// MARK: Goto convenience initializers and mutators | |
| 7421 | + | |
| 7422 | +extension Goto { | |
| 7423 | + init(data: Data) throws { | |
| 7424 | + self = try newJSONDecoder().decode(Goto.self, from: data) | |
| 7425 | + } | |
| 7426 | + | |
| 7427 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 7428 | + guard let data = json.data(using: encoding) else { | |
| 7429 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 7430 | + } | |
| 7431 | + try self.init(data: data) | |
| 7432 | + } | |
| 7433 | + | |
| 7434 | + init(fromURL url: URL) throws { | |
| 7435 | + try self.init(data: try Data(contentsOf: url)) | |
| 7436 | + } | |
| 7437 | + | |
| 7438 | + func with( | |
| 7439 | + goto: Int? = nil | |
| 7440 | + ) -> Goto { | |
| 7441 | + return Goto( | |
| 7442 | + goto: goto ?? self.goto | |
| 7443 | + ) | |
| 7444 | + } | |
| 7445 | + | |
| 7446 | + func jsonData() throws -> Data { | |
| 7447 | + return try newJSONEncoder().encode(self) | |
| 7448 | + } | |
| 7449 | + | |
| 7450 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 7451 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 7452 | + } | |
| 7453 | +} | |
| 7454 | + | |
| 7455 | +// | |
| 7456 | +// Hashable or Equatable: | |
| 7457 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 7458 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 7459 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 7460 | + | |
| 7411 | 7461 | // MARK: - HasOwnProperty |
| 7412 | 7462 | struct HasOwnProperty: Codable, Equatable { |
| 7413 | 7463 | let hasOwnProperty: Int |
| @@ -9758,56 +9808,6 @@ extension No { | ||
| 9758 | 9808 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 9759 | 9809 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 9760 | 9810 | |
| 9761 | -// MARK: - Noexcept | |
| 9762 | -struct Noexcept: Codable, Equatable { | |
| 9763 | - let noexcept: Int | |
| 9764 | - | |
| 9765 | - enum CodingKeys: String, CodingKey { | |
| 9766 | - case noexcept = "noexcept" | |
| 9767 | - } | |
| 9768 | -} | |
| 9769 | - | |
| 9770 | -// MARK: Noexcept convenience initializers and mutators | |
| 9771 | - | |
| 9772 | -extension Noexcept { | |
| 9773 | - init(data: Data) throws { | |
| 9774 | - self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 9775 | - } | |
| 9776 | - | |
| 9777 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9778 | - guard let data = json.data(using: encoding) else { | |
| 9779 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9780 | - } | |
| 9781 | - try self.init(data: data) | |
| 9782 | - } | |
| 9783 | - | |
| 9784 | - init(fromURL url: URL) throws { | |
| 9785 | - try self.init(data: try Data(contentsOf: url)) | |
| 9786 | - } | |
| 9787 | - | |
| 9788 | - func with( | |
| 9789 | - noexcept: Int? = nil | |
| 9790 | - ) -> Noexcept { | |
| 9791 | - return Noexcept( | |
| 9792 | - noexcept: noexcept ?? self.noexcept | |
| 9793 | - ) | |
| 9794 | - } | |
| 9795 | - | |
| 9796 | - func jsonData() throws -> Data { | |
| 9797 | - return try newJSONEncoder().encode(self) | |
| 9798 | - } | |
| 9799 | - | |
| 9800 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9801 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 9802 | - } | |
| 9803 | -} | |
| 9804 | - | |
| 9805 | -// | |
| 9806 | -// Hashable or Equatable: | |
| 9807 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 9808 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 9809 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 9810 | - | |
| 9811 | 9811 | // MARK: - Guard |
| 9812 | 9812 | struct Guard: Codable, Equatable { |
| 9813 | 9813 | let guardGuard: Int |
| @@ -10612,6 +10612,7 @@ extension Nil { | ||
| 10612 | 10612 | struct Obj4: Codable, Equatable { |
| 10613 | 10613 | let dummy: Int |
| 10614 | 10614 | let noSuchMethod: NoSuchMethod |
| 10615 | + let noexcept: Noexcept | |
| 10615 | 10616 | let nonatomic: Nonatomic |
| 10616 | 10617 | let none: None |
| 10617 | 10618 | let nonlocal: Nonlocal |
| @@ -10643,6 +10644,8 @@ struct Obj4: Codable, Equatable { | ||
| 10643 | 10644 | let obj4Right: Right |
| 10644 | 10645 | let object: Object |
| 10645 | 10646 | let objectMapper: ObjectMapper |
| 10647 | + let objectReader: ObjectReader | |
| 10648 | + let objectWriter: ObjectWriter | |
| 10646 | 10649 | let of: Of |
| 10647 | 10650 | let oneway: Oneway |
| 10648 | 10651 | let or: Or |
| @@ -10672,13 +10675,11 @@ struct Obj4: Codable, Equatable { | ||
| 10672 | 10675 | let runtimeType: RuntimeType |
| 10673 | 10676 | let s: S |
| 10674 | 10677 | let sbyte: Sbyte |
| 10675 | - let sealed: Sealed | |
| 10676 | - let sel: Sel | |
| 10677 | - let select: Select | |
| 10678 | 10678 | |
| 10679 | 10679 | enum CodingKeys: String, CodingKey { |
| 10680 | 10680 | case dummy = "dummy" |
| 10681 | 10681 | case noSuchMethod = "noSuchMethod" |
| 10682 | + case noexcept = "noexcept" | |
| 10682 | 10683 | case nonatomic = "nonatomic" |
| 10683 | 10684 | case none = "None" |
| 10684 | 10685 | case nonlocal = "nonlocal" |
| @@ -10710,6 +10711,8 @@ struct Obj4: Codable, Equatable { | ||
| 10710 | 10711 | case obj4Right = "right" |
| 10711 | 10712 | case object = "object" |
| 10712 | 10713 | case objectMapper = "ObjectMapper" |
| 10714 | + case objectReader = "ObjectReader" | |
| 10715 | + case objectWriter = "ObjectWriter" | |
| 10713 | 10716 | case of = "of" |
| 10714 | 10717 | case oneway = "oneway" |
| 10715 | 10718 | case or = "or" |
| @@ -10739,9 +10742,6 @@ struct Obj4: Codable, Equatable { | ||
| 10739 | 10742 | case runtimeType = "runtimeType" |
| 10740 | 10743 | case s = "s" |
| 10741 | 10744 | case sbyte = "sbyte" |
| 10742 | - case sealed = "sealed" | |
| 10743 | - case sel = "SEL" | |
| 10744 | - case select = "select" | |
| 10745 | 10745 | } |
| 10746 | 10746 | } |
| 10747 | 10747 | |
| @@ -10766,6 +10766,7 @@ extension Obj4 { | ||
| 10766 | 10766 | func with( |
| 10767 | 10767 | dummy: Int? = nil, |
| 10768 | 10768 | noSuchMethod: NoSuchMethod? = nil, |
| 10769 | + noexcept: Noexcept? = nil, | |
| 10769 | 10770 | nonatomic: Nonatomic? = nil, |
| 10770 | 10771 | none: None? = nil, |
| 10771 | 10772 | nonlocal: Nonlocal? = nil, |
| @@ -10797,6 +10798,8 @@ extension Obj4 { | ||
| 10797 | 10798 | obj4Right: Right? = nil, |
| 10798 | 10799 | object: Object? = nil, |
| 10799 | 10800 | objectMapper: ObjectMapper? = nil, |
| 10801 | + objectReader: ObjectReader? = nil, | |
| 10802 | + objectWriter: ObjectWriter? = nil, | |
| 10800 | 10803 | of: Of? = nil, |
| 10801 | 10804 | oneway: Oneway? = nil, |
| 10802 | 10805 | or: Or? = nil, |
| @@ -10825,14 +10828,12 @@ extension Obj4 { | ||
| 10825 | 10828 | retain: Retain? = nil, |
| 10826 | 10829 | runtimeType: RuntimeType? = nil, |
| 10827 | 10830 | s: S? = nil, |
| 10828 | - sbyte: Sbyte? = nil, | |
| 10829 | - sealed: Sealed? = nil, | |
| 10830 | - sel: Sel? = nil, | |
| 10831 | - select: Select? = nil | |
| 10831 | + sbyte: Sbyte? = nil | |
| 10832 | 10832 | ) -> Obj4 { |
| 10833 | 10833 | return Obj4( |
| 10834 | 10834 | dummy: dummy ?? self.dummy, |
| 10835 | 10835 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 10836 | + noexcept: noexcept ?? self.noexcept, | |
| 10836 | 10837 | nonatomic: nonatomic ?? self.nonatomic, |
| 10837 | 10838 | none: none ?? self.none, |
| 10838 | 10839 | nonlocal: nonlocal ?? self.nonlocal, |
| @@ -10864,6 +10865,8 @@ extension Obj4 { | ||
| 10864 | 10865 | obj4Right: obj4Right ?? self.obj4Right, |
| 10865 | 10866 | object: object ?? self.object, |
| 10866 | 10867 | objectMapper: objectMapper ?? self.objectMapper, |
| 10868 | + objectReader: objectReader ?? self.objectReader, | |
| 10869 | + objectWriter: objectWriter ?? self.objectWriter, | |
| 10867 | 10870 | of: of ?? self.of, |
| 10868 | 10871 | oneway: oneway ?? self.oneway, |
| 10869 | 10872 | or: or ?? self.or, |
| @@ -10892,10 +10895,7 @@ extension Obj4 { | ||
| 10892 | 10895 | retain: retain ?? self.retain, |
| 10893 | 10896 | runtimeType: runtimeType ?? self.runtimeType, |
| 10894 | 10897 | s: s ?? self.s, |
| 10895 | - sbyte: sbyte ?? self.sbyte, | |
| 10896 | - sealed: sealed ?? self.sealed, | |
| 10897 | - sel: sel ?? self.sel, | |
| 10898 | - select: select ?? self.select | |
| 10898 | + sbyte: sbyte ?? self.sbyte | |
| 10899 | 10899 | ) |
| 10900 | 10900 | } |
| 10901 | 10901 | |
| @@ -10964,20 +10964,20 @@ extension NoSuchMethod { | ||
| 10964 | 10964 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 10965 | 10965 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 10966 | 10966 | |
| 10967 | -// MARK: - Nonatomic | |
| 10968 | -struct Nonatomic: Codable, Equatable { | |
| 10969 | - let nonatomic: Int | |
| 10967 | +// MARK: - Noexcept | |
| 10968 | +struct Noexcept: Codable, Equatable { | |
| 10969 | + let noexcept: Int | |
| 10970 | 10970 | |
| 10971 | 10971 | enum CodingKeys: String, CodingKey { |
| 10972 | - case nonatomic = "nonatomic" | |
| 10972 | + case noexcept = "noexcept" | |
| 10973 | 10973 | } |
| 10974 | 10974 | } |
| 10975 | 10975 | |
| 10976 | -// MARK: Nonatomic convenience initializers and mutators | |
| 10976 | +// MARK: Noexcept convenience initializers and mutators | |
| 10977 | 10977 | |
| 10978 | -extension Nonatomic { | |
| 10978 | +extension Noexcept { | |
| 10979 | 10979 | init(data: Data) throws { |
| 10980 | - self = try newJSONDecoder().decode(Nonatomic.self, from: data) | |
| 10980 | + self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 10981 | 10981 | } |
| 10982 | 10982 | |
| 10983 | 10983 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -10992,10 +10992,10 @@ extension Nonatomic { | ||
| 10992 | 10992 | } |
| 10993 | 10993 | |
| 10994 | 10994 | func with( |
| 10995 | - nonatomic: Int? = nil | |
| 10996 | - ) -> Nonatomic { | |
| 10997 | - return Nonatomic( | |
| 10998 | - nonatomic: nonatomic ?? self.nonatomic | |
| 10995 | + noexcept: Int? = nil | |
| 10996 | + ) -> Noexcept { | |
| 10997 | + return Noexcept( | |
| 10998 | + noexcept: noexcept ?? self.noexcept | |
| 10999 | 10999 | ) |
| 11000 | 11000 | } |
| 11001 | 11001 | |
| @@ -11014,20 +11014,20 @@ extension Nonatomic { | ||
| 11014 | 11014 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 11015 | 11015 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 11016 | 11016 | |
| 11017 | -// MARK: - None | |
| 11018 | -struct None: Codable, Equatable { | |
| 11019 | - let none: Int | |
| 11017 | +// MARK: - Nonatomic | |
| 11018 | +struct Nonatomic: Codable, Equatable { | |
| 11019 | + let nonatomic: Int | |
| 11020 | 11020 | |
| 11021 | 11021 | enum CodingKeys: String, CodingKey { |
| 11022 | - case none = "None" | |
| 11022 | + case nonatomic = "nonatomic" | |
| 11023 | 11023 | } |
| 11024 | 11024 | } |
| 11025 | 11025 | |
| 11026 | -// MARK: None convenience initializers and mutators | |
| 11026 | +// MARK: Nonatomic convenience initializers and mutators | |
| 11027 | 11027 | |
| 11028 | -extension None { | |
| 11028 | +extension Nonatomic { | |
| 11029 | 11029 | init(data: Data) throws { |
| 11030 | - self = try newJSONDecoder().decode(None.self, from: data) | |
| 11030 | + self = try newJSONDecoder().decode(Nonatomic.self, from: data) | |
| 11031 | 11031 | } |
| 11032 | 11032 | |
| 11033 | 11033 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11042,9 +11042,59 @@ extension None { | ||
| 11042 | 11042 | } |
| 11043 | 11043 | |
| 11044 | 11044 | func with( |
| 11045 | - none: Int? = nil | |
| 11046 | - ) -> None { | |
| 11047 | - return None( | |
| 11045 | + nonatomic: Int? = nil | |
| 11046 | + ) -> Nonatomic { | |
| 11047 | + return Nonatomic( | |
| 11048 | + nonatomic: nonatomic ?? self.nonatomic | |
| 11049 | + ) | |
| 11050 | + } | |
| 11051 | + | |
| 11052 | + func jsonData() throws -> Data { | |
| 11053 | + return try newJSONEncoder().encode(self) | |
| 11054 | + } | |
| 11055 | + | |
| 11056 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11057 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11058 | + } | |
| 11059 | +} | |
| 11060 | + | |
| 11061 | +// | |
| 11062 | +// Hashable or Equatable: | |
| 11063 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 11064 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 11065 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 11066 | + | |
| 11067 | +// MARK: - None | |
| 11068 | +struct None: Codable, Equatable { | |
| 11069 | + let none: Int | |
| 11070 | + | |
| 11071 | + enum CodingKeys: String, CodingKey { | |
| 11072 | + case none = "None" | |
| 11073 | + } | |
| 11074 | +} | |
| 11075 | + | |
| 11076 | +// MARK: None convenience initializers and mutators | |
| 11077 | + | |
| 11078 | +extension None { | |
| 11079 | + init(data: Data) throws { | |
| 11080 | + self = try newJSONDecoder().decode(None.self, from: data) | |
| 11081 | + } | |
| 11082 | + | |
| 11083 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11084 | + guard let data = json.data(using: encoding) else { | |
| 11085 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11086 | + } | |
| 11087 | + try self.init(data: data) | |
| 11088 | + } | |
| 11089 | + | |
| 11090 | + init(fromURL url: URL) throws { | |
| 11091 | + try self.init(data: try Data(contentsOf: url)) | |
| 11092 | + } | |
| 11093 | + | |
| 11094 | + func with( | |
| 11095 | + none: Int? = nil | |
| 11096 | + ) -> None { | |
| 11097 | + return None( | |
| 11048 | 11098 | none: none ?? self.none |
| 11049 | 11099 | ) |
| 11050 | 11100 | } |
| @@ -12514,6 +12564,106 @@ extension ObjectMapper { | ||
| 12514 | 12564 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 12515 | 12565 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 12516 | 12566 | |
| 12567 | +// MARK: - ObjectReader | |
| 12568 | +struct ObjectReader: Codable, Equatable { | |
| 12569 | + let objectReader: Int | |
| 12570 | + | |
| 12571 | + enum CodingKeys: String, CodingKey { | |
| 12572 | + case objectReader = "ObjectReader" | |
| 12573 | + } | |
| 12574 | +} | |
| 12575 | + | |
| 12576 | +// MARK: ObjectReader convenience initializers and mutators | |
| 12577 | + | |
| 12578 | +extension ObjectReader { | |
| 12579 | + init(data: Data) throws { | |
| 12580 | + self = try newJSONDecoder().decode(ObjectReader.self, from: data) | |
| 12581 | + } | |
| 12582 | + | |
| 12583 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12584 | + guard let data = json.data(using: encoding) else { | |
| 12585 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12586 | + } | |
| 12587 | + try self.init(data: data) | |
| 12588 | + } | |
| 12589 | + | |
| 12590 | + init(fromURL url: URL) throws { | |
| 12591 | + try self.init(data: try Data(contentsOf: url)) | |
| 12592 | + } | |
| 12593 | + | |
| 12594 | + func with( | |
| 12595 | + objectReader: Int? = nil | |
| 12596 | + ) -> ObjectReader { | |
| 12597 | + return ObjectReader( | |
| 12598 | + objectReader: objectReader ?? self.objectReader | |
| 12599 | + ) | |
| 12600 | + } | |
| 12601 | + | |
| 12602 | + func jsonData() throws -> Data { | |
| 12603 | + return try newJSONEncoder().encode(self) | |
| 12604 | + } | |
| 12605 | + | |
| 12606 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12607 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12608 | + } | |
| 12609 | +} | |
| 12610 | + | |
| 12611 | +// | |
| 12612 | +// Hashable or Equatable: | |
| 12613 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 12614 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 12615 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 12616 | + | |
| 12617 | +// MARK: - ObjectWriter | |
| 12618 | +struct ObjectWriter: Codable, Equatable { | |
| 12619 | + let objectWriter: Int | |
| 12620 | + | |
| 12621 | + enum CodingKeys: String, CodingKey { | |
| 12622 | + case objectWriter = "ObjectWriter" | |
| 12623 | + } | |
| 12624 | +} | |
| 12625 | + | |
| 12626 | +// MARK: ObjectWriter convenience initializers and mutators | |
| 12627 | + | |
| 12628 | +extension ObjectWriter { | |
| 12629 | + init(data: Data) throws { | |
| 12630 | + self = try newJSONDecoder().decode(ObjectWriter.self, from: data) | |
| 12631 | + } | |
| 12632 | + | |
| 12633 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12634 | + guard let data = json.data(using: encoding) else { | |
| 12635 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12636 | + } | |
| 12637 | + try self.init(data: data) | |
| 12638 | + } | |
| 12639 | + | |
| 12640 | + init(fromURL url: URL) throws { | |
| 12641 | + try self.init(data: try Data(contentsOf: url)) | |
| 12642 | + } | |
| 12643 | + | |
| 12644 | + func with( | |
| 12645 | + objectWriter: Int? = nil | |
| 12646 | + ) -> ObjectWriter { | |
| 12647 | + return ObjectWriter( | |
| 12648 | + objectWriter: objectWriter ?? self.objectWriter | |
| 12649 | + ) | |
| 12650 | + } | |
| 12651 | + | |
| 12652 | + func jsonData() throws -> Data { | |
| 12653 | + return try newJSONEncoder().encode(self) | |
| 12654 | + } | |
| 12655 | + | |
| 12656 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12657 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12658 | + } | |
| 12659 | +} | |
| 12660 | + | |
| 12661 | +// | |
| 12662 | +// Hashable or Equatable: | |
| 12663 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 12664 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 12665 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 12666 | + | |
| 12517 | 12667 | // MARK: - Of |
| 12518 | 12668 | struct Of: Codable, Equatable { |
| 12519 | 12669 | let of: Int |
| @@ -13964,244 +14114,97 @@ extension Sbyte { | ||
| 13964 | 14114 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 13965 | 14115 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 13966 | 14116 | |
| 13967 | -// MARK: - Sealed | |
| 13968 | -struct Sealed: Codable, Equatable { | |
| 13969 | - let sealed: Int | |
| 14117 | +// MARK: - Obj5 | |
| 14118 | +struct Obj5: Codable, Equatable { | |
| 14119 | + let dummy: Int | |
| 14120 | + let obj5Self: SelfClass | |
| 14121 | + let obj5Set: Set | |
| 14122 | + let obj5Static: Static | |
| 14123 | + let obj5Struct: Struct | |
| 14124 | + let obj5Subscript: Subscript | |
| 14125 | + let obj5Super: Super | |
| 14126 | + let obj5Switch: Switch | |
| 14127 | + let obj5Throw: Throw | |
| 14128 | + let obj5Throws: Throws | |
| 14129 | + let obj5True: True | |
| 14130 | + let obj5Try: Try | |
| 14131 | + let obj5Type: Obj5Type | |
| 14132 | + let obj5Typealias: Typealias | |
| 14133 | + let obj5Unowned: Unowned | |
| 14134 | + let purpleSelf: Obj5Self | |
| 14135 | + let purpleTrue: TrueClass | |
| 14136 | + let sealed: Sealed | |
| 14137 | + let sel: Sel | |
| 14138 | + let select: Select | |
| 14139 | + let sendable: Sendable | |
| 14140 | + let serializationFeature: SerializationFeature | |
| 14141 | + let serialize: Serialize | |
| 14142 | + let serializerProvider: SerializerProvider | |
| 14143 | + let short: Short | |
| 14144 | + let signed: Signed | |
| 14145 | + let simpleModule: SimpleModule | |
| 14146 | + let sizeof: Sizeof | |
| 14147 | + let stackalloc: Stackalloc | |
| 14148 | + let standards: Standards | |
| 14149 | + let staticAssert: StaticAssert | |
| 14150 | + let staticCast: StaticCast | |
| 14151 | + let stdDeserializer: StdDeserializer | |
| 14152 | + let stdSerializer: StdSerializer | |
| 14153 | + let strictfp: Strictfp | |
| 14154 | + let string: StringClass | |
| 14155 | + let symbol: Symbol | |
| 14156 | + let synchronized: Synchronized | |
| 14157 | + let system: System | |
| 14158 | + let template: Template | |
| 14159 | + let then: Then | |
| 14160 | + let this: This | |
| 14161 | + let threadLocal: ThreadLocal | |
| 14162 | + let timeOnly: TimeOnly | |
| 14163 | + let timeOnlyConverter: TimeOnlyConverter | |
| 14164 | + let timeZone: TimeZoneClass | |
| 14165 | + let toJSON: ToJSON | |
| 14166 | + let toString: ToString | |
| 14167 | + let topLevel: TopLevelClass | |
| 14168 | + let transient: Transient | |
| 14169 | + let type: TypeClass | |
| 14170 | + let typedef: Typedef | |
| 14171 | + let typeid: Typeid | |
| 14172 | + let typename: Typename | |
| 14173 | + let typeof: Typeof | |
| 14174 | + let uint: Uint | |
| 14175 | + let ulong: Ulong | |
| 14176 | + let unchecked: Unchecked | |
| 14177 | + let undefined: Undefined | |
| 14178 | + let union: Union | |
| 14179 | + let unsafe: Unsafe | |
| 14180 | + let unsigned: Unsigned | |
| 14181 | + let ushort: Ushort | |
| 14182 | + let using: Using | |
| 14183 | + let utf8JSONReader: Utf8JSONReader | |
| 13970 | 14184 | |
| 13971 | 14185 | enum CodingKeys: String, CodingKey { |
| 14186 | + case dummy = "dummy" | |
| 14187 | + case obj5Self = "Self" | |
| 14188 | + case obj5Set = "set" | |
| 14189 | + case obj5Static = "static" | |
| 14190 | + case obj5Struct = "struct" | |
| 14191 | + case obj5Subscript = "subscript" | |
| 14192 | + case obj5Super = "super" | |
| 14193 | + case obj5Switch = "switch" | |
| 14194 | + case obj5Throw = "throw" | |
| 14195 | + case obj5Throws = "throws" | |
| 14196 | + case obj5True = "True" | |
| 14197 | + case obj5Try = "try" | |
| 14198 | + case obj5Type = "type" | |
| 14199 | + case obj5Typealias = "typealias" | |
| 14200 | + case obj5Unowned = "unowned" | |
| 14201 | + case purpleSelf = "self" | |
| 14202 | + case purpleTrue = "true" | |
| 13972 | 14203 | case sealed = "sealed" |
| 13973 | - } | |
| 13974 | -} | |
| 13975 | - | |
| 13976 | -// MARK: Sealed convenience initializers and mutators | |
| 13977 | - | |
| 13978 | -extension Sealed { | |
| 13979 | - init(data: Data) throws { | |
| 13980 | - self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 13981 | - } | |
| 13982 | - | |
| 13983 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13984 | - guard let data = json.data(using: encoding) else { | |
| 13985 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13986 | - } | |
| 13987 | - try self.init(data: data) | |
| 13988 | - } | |
| 13989 | - | |
| 13990 | - init(fromURL url: URL) throws { | |
| 13991 | - try self.init(data: try Data(contentsOf: url)) | |
| 13992 | - } | |
| 13993 | - | |
| 13994 | - func with( | |
| 13995 | - sealed: Int? = nil | |
| 13996 | - ) -> Sealed { | |
| 13997 | - return Sealed( | |
| 13998 | - sealed: sealed ?? self.sealed | |
| 13999 | - ) | |
| 14000 | - } | |
| 14001 | - | |
| 14002 | - func jsonData() throws -> Data { | |
| 14003 | - return try newJSONEncoder().encode(self) | |
| 14004 | - } | |
| 14005 | - | |
| 14006 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14007 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14008 | - } | |
| 14009 | -} | |
| 14010 | - | |
| 14011 | -// | |
| 14012 | -// Hashable or Equatable: | |
| 14013 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14014 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14015 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14016 | - | |
| 14017 | -// MARK: - Sel | |
| 14018 | -struct Sel: Codable, Equatable { | |
| 14019 | - let sel: Int | |
| 14020 | - | |
| 14021 | - enum CodingKeys: String, CodingKey { | |
| 14022 | 14204 | case sel = "SEL" |
| 14023 | - } | |
| 14024 | -} | |
| 14025 | - | |
| 14026 | -// MARK: Sel convenience initializers and mutators | |
| 14027 | - | |
| 14028 | -extension Sel { | |
| 14029 | - init(data: Data) throws { | |
| 14030 | - self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 14031 | - } | |
| 14032 | - | |
| 14033 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14034 | - guard let data = json.data(using: encoding) else { | |
| 14035 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14036 | - } | |
| 14037 | - try self.init(data: data) | |
| 14038 | - } | |
| 14039 | - | |
| 14040 | - init(fromURL url: URL) throws { | |
| 14041 | - try self.init(data: try Data(contentsOf: url)) | |
| 14042 | - } | |
| 14043 | - | |
| 14044 | - func with( | |
| 14045 | - sel: Int? = nil | |
| 14046 | - ) -> Sel { | |
| 14047 | - return Sel( | |
| 14048 | - sel: sel ?? self.sel | |
| 14049 | - ) | |
| 14050 | - } | |
| 14051 | - | |
| 14052 | - func jsonData() throws -> Data { | |
| 14053 | - return try newJSONEncoder().encode(self) | |
| 14054 | - } | |
| 14055 | - | |
| 14056 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14057 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14058 | - } | |
| 14059 | -} | |
| 14060 | - | |
| 14061 | -// | |
| 14062 | -// Hashable or Equatable: | |
| 14063 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14064 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14065 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14066 | - | |
| 14067 | -// MARK: - Select | |
| 14068 | -struct Select: Codable, Equatable { | |
| 14069 | - let select: Int | |
| 14070 | - | |
| 14071 | - enum CodingKeys: String, CodingKey { | |
| 14072 | 14205 | case select = "select" |
| 14073 | - } | |
| 14074 | -} | |
| 14075 | - | |
| 14076 | -// MARK: Select convenience initializers and mutators | |
| 14077 | - | |
| 14078 | -extension Select { | |
| 14079 | - init(data: Data) throws { | |
| 14080 | - self = try newJSONDecoder().decode(Select.self, from: data) | |
| 14081 | - } | |
| 14082 | - | |
| 14083 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 14084 | - guard let data = json.data(using: encoding) else { | |
| 14085 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 14086 | - } | |
| 14087 | - try self.init(data: data) | |
| 14088 | - } | |
| 14089 | - | |
| 14090 | - init(fromURL url: URL) throws { | |
| 14091 | - try self.init(data: try Data(contentsOf: url)) | |
| 14092 | - } | |
| 14093 | - | |
| 14094 | - func with( | |
| 14095 | - select: Int? = nil | |
| 14096 | - ) -> Select { | |
| 14097 | - return Select( | |
| 14098 | - select: select ?? self.select | |
| 14099 | - ) | |
| 14100 | - } | |
| 14101 | - | |
| 14102 | - func jsonData() throws -> Data { | |
| 14103 | - return try newJSONEncoder().encode(self) | |
| 14104 | - } | |
| 14105 | - | |
| 14106 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 14107 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 14108 | - } | |
| 14109 | -} | |
| 14110 | - | |
| 14111 | -// | |
| 14112 | -// Hashable or Equatable: | |
| 14113 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 14114 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 14115 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 14116 | - | |
| 14117 | -// MARK: - Obj5 | |
| 14118 | -struct Obj5: Codable, Equatable { | |
| 14119 | - let dummy: Int | |
| 14120 | - let obj5Self: SelfClass | |
| 14121 | - let obj5Set: Set | |
| 14122 | - let obj5Static: Static | |
| 14123 | - let obj5Struct: Struct | |
| 14124 | - let obj5Subscript: Subscript | |
| 14125 | - let obj5Super: Super | |
| 14126 | - let obj5Switch: Switch | |
| 14127 | - let obj5Throw: Throw | |
| 14128 | - let obj5Throws: Throws | |
| 14129 | - let obj5True: True | |
| 14130 | - let obj5Try: Try | |
| 14131 | - let obj5Type: Obj5Type | |
| 14132 | - let obj5Typealias: Typealias | |
| 14133 | - let obj5Unowned: Unowned | |
| 14134 | - let obj5Var: Var | |
| 14135 | - let purpleSelf: Obj5Self | |
| 14136 | - let purpleTrue: TrueClass | |
| 14137 | - let sendable: Sendable | |
| 14138 | - let serialize: Serialize | |
| 14139 | - let serializerProvider: SerializerProvider | |
| 14140 | - let short: Short | |
| 14141 | - let signed: Signed | |
| 14142 | - let simpleModule: SimpleModule | |
| 14143 | - let sizeof: Sizeof | |
| 14144 | - let stackalloc: Stackalloc | |
| 14145 | - let standards: Standards | |
| 14146 | - let staticAssert: StaticAssert | |
| 14147 | - let staticCast: StaticCast | |
| 14148 | - let stdDeserializer: StdDeserializer | |
| 14149 | - let stdSerializer: StdSerializer | |
| 14150 | - let strictfp: Strictfp | |
| 14151 | - let string: StringClass | |
| 14152 | - let symbol: Symbol | |
| 14153 | - let synchronized: Synchronized | |
| 14154 | - let system: System | |
| 14155 | - let template: Template | |
| 14156 | - let then: Then | |
| 14157 | - let this: This | |
| 14158 | - let threadLocal: ThreadLocal | |
| 14159 | - let timeOnly: TimeOnly | |
| 14160 | - let timeOnlyConverter: TimeOnlyConverter | |
| 14161 | - let timeZone: TimeZoneClass | |
| 14162 | - let toJSON: ToJSON | |
| 14163 | - let toString: ToString | |
| 14164 | - let topLevel: TopLevelClass | |
| 14165 | - let transient: Transient | |
| 14166 | - let type: TypeClass | |
| 14167 | - let typedef: Typedef | |
| 14168 | - let typeid: Typeid | |
| 14169 | - let typename: Typename | |
| 14170 | - let typeof: Typeof | |
| 14171 | - let uint: Uint | |
| 14172 | - let ulong: Ulong | |
| 14173 | - let unchecked: Unchecked | |
| 14174 | - let undefined: Undefined | |
| 14175 | - let union: Union | |
| 14176 | - let unsafe: Unsafe | |
| 14177 | - let unsigned: Unsigned | |
| 14178 | - let ushort: Ushort | |
| 14179 | - let using: Using | |
| 14180 | - let utf8JSONReader: Utf8JSONReader | |
| 14181 | - let utf8JSONWriter: Utf8JSONWriter | |
| 14182 | - let uuid: UUIDClass | |
| 14183 | - let virtual: Virtual | |
| 14184 | - | |
| 14185 | - enum CodingKeys: String, CodingKey { | |
| 14186 | - case dummy = "dummy" | |
| 14187 | - case obj5Self = "Self" | |
| 14188 | - case obj5Set = "set" | |
| 14189 | - case obj5Static = "static" | |
| 14190 | - case obj5Struct = "struct" | |
| 14191 | - case obj5Subscript = "subscript" | |
| 14192 | - case obj5Super = "super" | |
| 14193 | - case obj5Switch = "switch" | |
| 14194 | - case obj5Throw = "throw" | |
| 14195 | - case obj5Throws = "throws" | |
| 14196 | - case obj5True = "True" | |
| 14197 | - case obj5Try = "try" | |
| 14198 | - case obj5Type = "type" | |
| 14199 | - case obj5Typealias = "typealias" | |
| 14200 | - case obj5Unowned = "unowned" | |
| 14201 | - case obj5Var = "var" | |
| 14202 | - case purpleSelf = "self" | |
| 14203 | - case purpleTrue = "true" | |
| 14204 | 14206 | case sendable = "Sendable" |
| 14207 | + case serializationFeature = "SerializationFeature" | |
| 14205 | 14208 | case serialize = "serialize" |
| 14206 | 14209 | case serializerProvider = "SerializerProvider" |
| 14207 | 14210 | case short = "short" |
| @@ -14245,9 +14248,6 @@ struct Obj5: Codable, Equatable { | ||
| 14245 | 14248 | case ushort = "ushort" |
| 14246 | 14249 | case using = "using" |
| 14247 | 14250 | case utf8JSONReader = "Utf8JsonReader" |
| 14248 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 14249 | - case uuid = "UUID" | |
| 14250 | - case virtual = "virtual" | |
| 14251 | 14251 | } |
| 14252 | 14252 | } |
| 14253 | 14253 | |
| @@ -14285,10 +14285,13 @@ extension Obj5 { | ||
| 14285 | 14285 | obj5Type: Obj5Type? = nil, |
| 14286 | 14286 | obj5Typealias: Typealias? = nil, |
| 14287 | 14287 | obj5Unowned: Unowned? = nil, |
| 14288 | - obj5Var: Var? = nil, | |
| 14289 | 14288 | purpleSelf: Obj5Self? = nil, |
| 14290 | 14289 | purpleTrue: TrueClass? = nil, |
| 14290 | + sealed: Sealed? = nil, | |
| 14291 | + sel: Sel? = nil, | |
| 14292 | + select: Select? = nil, | |
| 14291 | 14293 | sendable: Sendable? = nil, |
| 14294 | + serializationFeature: SerializationFeature? = nil, | |
| 14292 | 14295 | serialize: Serialize? = nil, |
| 14293 | 14296 | serializerProvider: SerializerProvider? = nil, |
| 14294 | 14297 | short: Short? = nil, |
| @@ -14331,10 +14334,7 @@ extension Obj5 { | ||
| 14331 | 14334 | unsigned: Unsigned? = nil, |
| 14332 | 14335 | ushort: Ushort? = nil, |
| 14333 | 14336 | using: Using? = nil, |
| 14334 | - utf8JSONReader: Utf8JSONReader? = nil, | |
| 14335 | - utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 14336 | - uuid: UUIDClass? = nil, | |
| 14337 | - virtual: Virtual? = nil | |
| 14337 | + utf8JSONReader: Utf8JSONReader? = nil | |
| 14338 | 14338 | ) -> Obj5 { |
| 14339 | 14339 | return Obj5( |
| 14340 | 14340 | dummy: dummy ?? self.dummy, |
| @@ -14352,10 +14352,13 @@ extension Obj5 { | ||
| 14352 | 14352 | obj5Type: obj5Type ?? self.obj5Type, |
| 14353 | 14353 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 14354 | 14354 | obj5Unowned: obj5Unowned ?? self.obj5Unowned, |
| 14355 | - obj5Var: obj5Var ?? self.obj5Var, | |
| 14356 | 14355 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 14357 | 14356 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 14357 | + sealed: sealed ?? self.sealed, | |
| 14358 | + sel: sel ?? self.sel, | |
| 14359 | + select: select ?? self.select, | |
| 14358 | 14360 | sendable: sendable ?? self.sendable, |
| 14361 | + serializationFeature: serializationFeature ?? self.serializationFeature, | |
| 14359 | 14362 | serialize: serialize ?? self.serialize, |
| 14360 | 14363 | serializerProvider: serializerProvider ?? self.serializerProvider, |
| 14361 | 14364 | short: short ?? self.short, |
| @@ -14398,10 +14401,7 @@ extension Obj5 { | ||
| 14398 | 14401 | unsigned: unsigned ?? self.unsigned, |
| 14399 | 14402 | ushort: ushort ?? self.ushort, |
| 14400 | 14403 | using: using ?? self.using, |
| 14401 | - utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, | |
| 14402 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 14403 | - uuid: uuid ?? self.uuid, | |
| 14404 | - virtual: virtual ?? self.virtual | |
| 14404 | + utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader | |
| 14405 | 14405 | ) |
| 14406 | 14406 | } |
| 14407 | 14407 | |
| @@ -15120,56 +15120,6 @@ extension Unowned { | ||
| 15120 | 15120 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15121 | 15121 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15122 | 15122 | |
| 15123 | -// MARK: - Var | |
| 15124 | -struct Var: Codable, Equatable { | |
| 15125 | - let varVar: Int | |
| 15126 | - | |
| 15127 | - enum CodingKeys: String, CodingKey { | |
| 15128 | - case varVar = "var" | |
| 15129 | - } | |
| 15130 | -} | |
| 15131 | - | |
| 15132 | -// MARK: Var convenience initializers and mutators | |
| 15133 | - | |
| 15134 | -extension Var { | |
| 15135 | - init(data: Data) throws { | |
| 15136 | - self = try newJSONDecoder().decode(Var.self, from: data) | |
| 15137 | - } | |
| 15138 | - | |
| 15139 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15140 | - guard let data = json.data(using: encoding) else { | |
| 15141 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15142 | - } | |
| 15143 | - try self.init(data: data) | |
| 15144 | - } | |
| 15145 | - | |
| 15146 | - init(fromURL url: URL) throws { | |
| 15147 | - try self.init(data: try Data(contentsOf: url)) | |
| 15148 | - } | |
| 15149 | - | |
| 15150 | - func with( | |
| 15151 | - varVar: Int? = nil | |
| 15152 | - ) -> Var { | |
| 15153 | - return Var( | |
| 15154 | - varVar: varVar ?? self.varVar | |
| 15155 | - ) | |
| 15156 | - } | |
| 15157 | - | |
| 15158 | - func jsonData() throws -> Data { | |
| 15159 | - return try newJSONEncoder().encode(self) | |
| 15160 | - } | |
| 15161 | - | |
| 15162 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15163 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15164 | - } | |
| 15165 | -} | |
| 15166 | - | |
| 15167 | -// | |
| 15168 | -// Hashable or Equatable: | |
| 15169 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15170 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15171 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15172 | - | |
| 15173 | 15123 | // MARK: - Obj5Self |
| 15174 | 15124 | struct Obj5Self: Codable, Equatable { |
| 15175 | 15125 | let selfSelf: Int |
| @@ -15270,11 +15220,161 @@ extension TrueClass { | ||
| 15270 | 15220 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15271 | 15221 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15272 | 15222 | |
| 15273 | -// MARK: - Sendable | |
| 15274 | -struct Sendable: Codable, Equatable { | |
| 15275 | - let sendable: Int | |
| 15276 | - | |
| 15277 | - enum CodingKeys: String, CodingKey { | |
| 15223 | +// MARK: - Sealed | |
| 15224 | +struct Sealed: Codable, Equatable { | |
| 15225 | + let sealed: Int | |
| 15226 | + | |
| 15227 | + enum CodingKeys: String, CodingKey { | |
| 15228 | + case sealed = "sealed" | |
| 15229 | + } | |
| 15230 | +} | |
| 15231 | + | |
| 15232 | +// MARK: Sealed convenience initializers and mutators | |
| 15233 | + | |
| 15234 | +extension Sealed { | |
| 15235 | + init(data: Data) throws { | |
| 15236 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 15237 | + } | |
| 15238 | + | |
| 15239 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15240 | + guard let data = json.data(using: encoding) else { | |
| 15241 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15242 | + } | |
| 15243 | + try self.init(data: data) | |
| 15244 | + } | |
| 15245 | + | |
| 15246 | + init(fromURL url: URL) throws { | |
| 15247 | + try self.init(data: try Data(contentsOf: url)) | |
| 15248 | + } | |
| 15249 | + | |
| 15250 | + func with( | |
| 15251 | + sealed: Int? = nil | |
| 15252 | + ) -> Sealed { | |
| 15253 | + return Sealed( | |
| 15254 | + sealed: sealed ?? self.sealed | |
| 15255 | + ) | |
| 15256 | + } | |
| 15257 | + | |
| 15258 | + func jsonData() throws -> Data { | |
| 15259 | + return try newJSONEncoder().encode(self) | |
| 15260 | + } | |
| 15261 | + | |
| 15262 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15263 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15264 | + } | |
| 15265 | +} | |
| 15266 | + | |
| 15267 | +// | |
| 15268 | +// Hashable or Equatable: | |
| 15269 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15270 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15271 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15272 | + | |
| 15273 | +// MARK: - Sel | |
| 15274 | +struct Sel: Codable, Equatable { | |
| 15275 | + let sel: Int | |
| 15276 | + | |
| 15277 | + enum CodingKeys: String, CodingKey { | |
| 15278 | + case sel = "SEL" | |
| 15279 | + } | |
| 15280 | +} | |
| 15281 | + | |
| 15282 | +// MARK: Sel convenience initializers and mutators | |
| 15283 | + | |
| 15284 | +extension Sel { | |
| 15285 | + init(data: Data) throws { | |
| 15286 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 15287 | + } | |
| 15288 | + | |
| 15289 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15290 | + guard let data = json.data(using: encoding) else { | |
| 15291 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15292 | + } | |
| 15293 | + try self.init(data: data) | |
| 15294 | + } | |
| 15295 | + | |
| 15296 | + init(fromURL url: URL) throws { | |
| 15297 | + try self.init(data: try Data(contentsOf: url)) | |
| 15298 | + } | |
| 15299 | + | |
| 15300 | + func with( | |
| 15301 | + sel: Int? = nil | |
| 15302 | + ) -> Sel { | |
| 15303 | + return Sel( | |
| 15304 | + sel: sel ?? self.sel | |
| 15305 | + ) | |
| 15306 | + } | |
| 15307 | + | |
| 15308 | + func jsonData() throws -> Data { | |
| 15309 | + return try newJSONEncoder().encode(self) | |
| 15310 | + } | |
| 15311 | + | |
| 15312 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15313 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15314 | + } | |
| 15315 | +} | |
| 15316 | + | |
| 15317 | +// | |
| 15318 | +// Hashable or Equatable: | |
| 15319 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15320 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15321 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15322 | + | |
| 15323 | +// MARK: - Select | |
| 15324 | +struct Select: Codable, Equatable { | |
| 15325 | + let select: Int | |
| 15326 | + | |
| 15327 | + enum CodingKeys: String, CodingKey { | |
| 15328 | + case select = "select" | |
| 15329 | + } | |
| 15330 | +} | |
| 15331 | + | |
| 15332 | +// MARK: Select convenience initializers and mutators | |
| 15333 | + | |
| 15334 | +extension Select { | |
| 15335 | + init(data: Data) throws { | |
| 15336 | + self = try newJSONDecoder().decode(Select.self, from: data) | |
| 15337 | + } | |
| 15338 | + | |
| 15339 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15340 | + guard let data = json.data(using: encoding) else { | |
| 15341 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15342 | + } | |
| 15343 | + try self.init(data: data) | |
| 15344 | + } | |
| 15345 | + | |
| 15346 | + init(fromURL url: URL) throws { | |
| 15347 | + try self.init(data: try Data(contentsOf: url)) | |
| 15348 | + } | |
| 15349 | + | |
| 15350 | + func with( | |
| 15351 | + select: Int? = nil | |
| 15352 | + ) -> Select { | |
| 15353 | + return Select( | |
| 15354 | + select: select ?? self.select | |
| 15355 | + ) | |
| 15356 | + } | |
| 15357 | + | |
| 15358 | + func jsonData() throws -> Data { | |
| 15359 | + return try newJSONEncoder().encode(self) | |
| 15360 | + } | |
| 15361 | + | |
| 15362 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15363 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15364 | + } | |
| 15365 | +} | |
| 15366 | + | |
| 15367 | +// | |
| 15368 | +// Hashable or Equatable: | |
| 15369 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15370 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15371 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15372 | + | |
| 15373 | +// MARK: - Sendable | |
| 15374 | +struct Sendable: Codable, Equatable { | |
| 15375 | + let sendable: Int | |
| 15376 | + | |
| 15377 | + enum CodingKeys: String, CodingKey { | |
| 15278 | 15378 | case sendable = "Sendable" |
| 15279 | 15379 | } |
| 15280 | 15380 | } |
| @@ -15320,6 +15420,56 @@ extension Sendable { | ||
| 15320 | 15420 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15321 | 15421 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15322 | 15422 | |
| 15423 | +// MARK: - SerializationFeature | |
| 15424 | +struct SerializationFeature: Codable, Equatable { | |
| 15425 | + let serializationFeature: Int | |
| 15426 | + | |
| 15427 | + enum CodingKeys: String, CodingKey { | |
| 15428 | + case serializationFeature = "SerializationFeature" | |
| 15429 | + } | |
| 15430 | +} | |
| 15431 | + | |
| 15432 | +// MARK: SerializationFeature convenience initializers and mutators | |
| 15433 | + | |
| 15434 | +extension SerializationFeature { | |
| 15435 | + init(data: Data) throws { | |
| 15436 | + self = try newJSONDecoder().decode(SerializationFeature.self, from: data) | |
| 15437 | + } | |
| 15438 | + | |
| 15439 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15440 | + guard let data = json.data(using: encoding) else { | |
| 15441 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15442 | + } | |
| 15443 | + try self.init(data: data) | |
| 15444 | + } | |
| 15445 | + | |
| 15446 | + init(fromURL url: URL) throws { | |
| 15447 | + try self.init(data: try Data(contentsOf: url)) | |
| 15448 | + } | |
| 15449 | + | |
| 15450 | + func with( | |
| 15451 | + serializationFeature: Int? = nil | |
| 15452 | + ) -> SerializationFeature { | |
| 15453 | + return SerializationFeature( | |
| 15454 | + serializationFeature: serializationFeature ?? self.serializationFeature | |
| 15455 | + ) | |
| 15456 | + } | |
| 15457 | + | |
| 15458 | + func jsonData() throws -> Data { | |
| 15459 | + return try newJSONEncoder().encode(self) | |
| 15460 | + } | |
| 15461 | + | |
| 15462 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15463 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15464 | + } | |
| 15465 | +} | |
| 15466 | + | |
| 15467 | +// | |
| 15468 | +// Hashable or Equatable: | |
| 15469 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15470 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15471 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15472 | + | |
| 15323 | 15473 | // MARK: - Serialize |
| 15324 | 15474 | struct Serialize: Codable, Equatable { |
| 15325 | 15475 | let serialize: Int |
| @@ -17470,20 +17620,52 @@ extension Utf8JSONReader { | ||
| 17470 | 17620 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17471 | 17621 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17472 | 17622 | |
| 17473 | -// MARK: - Utf8JSONWriter | |
| 17474 | -struct Utf8JSONWriter: Codable, Equatable { | |
| 17475 | - let utf8JSONWriter: Int | |
| 17623 | +// MARK: - Obj6 | |
| 17624 | +struct Obj6: Codable, Equatable { | |
| 17625 | + let dummy: Int | |
| 17626 | + let obj6Var: Var | |
| 17627 | + let obj6Weak: Weak | |
| 17628 | + let obj6Where: Where | |
| 17629 | + let obj6While: While | |
| 17630 | + let obj6WillSet: WillSet | |
| 17631 | + let utf8JSONWriter: Utf8JSONWriter | |
| 17632 | + let uuid: UUIDClass | |
| 17633 | + let virtual: Virtual | |
| 17634 | + let void: Void | |
| 17635 | + let volatile: Volatile | |
| 17636 | + let wcharT: WcharT | |
| 17637 | + let with: With | |
| 17638 | + let xor: Xor | |
| 17639 | + let xorEq: XorEq | |
| 17640 | + let yes: Yes | |
| 17641 | + let yield: Yield | |
| 17476 | 17642 | |
| 17477 | 17643 | enum CodingKeys: String, CodingKey { |
| 17644 | + case dummy = "dummy" | |
| 17645 | + case obj6Var = "var" | |
| 17646 | + case obj6Weak = "weak" | |
| 17647 | + case obj6Where = "where" | |
| 17648 | + case obj6While = "while" | |
| 17649 | + case obj6WillSet = "willSet" | |
| 17478 | 17650 | case utf8JSONWriter = "Utf8JsonWriter" |
| 17651 | + case uuid = "UUID" | |
| 17652 | + case virtual = "virtual" | |
| 17653 | + case void = "void" | |
| 17654 | + case volatile = "volatile" | |
| 17655 | + case wcharT = "wchar_t" | |
| 17656 | + case with = "with" | |
| 17657 | + case xor = "xor" | |
| 17658 | + case xorEq = "xor_eq" | |
| 17659 | + case yes = "YES" | |
| 17660 | + case yield = "yield" | |
| 17479 | 17661 | } |
| 17480 | 17662 | } |
| 17481 | 17663 | |
| 17482 | -// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 17664 | +// MARK: Obj6 convenience initializers and mutators | |
| 17483 | 17665 | |
| 17484 | -extension Utf8JSONWriter { | |
| 17666 | +extension Obj6 { | |
| 17485 | 17667 | init(data: Data) throws { |
| 17486 | - self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 17668 | + self = try newJSONDecoder().decode(Obj6.self, from: data) | |
| 17487 | 17669 | } |
| 17488 | 17670 | |
| 17489 | 17671 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17498,42 +17680,74 @@ extension Utf8JSONWriter { | ||
| 17498 | 17680 | } |
| 17499 | 17681 | |
| 17500 | 17682 | func with( |
| 17501 | - utf8JSONWriter: Int? = nil | |
| 17502 | - ) -> Utf8JSONWriter { | |
| 17503 | - return Utf8JSONWriter( | |
| 17504 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 17505 | - ) | |
| 17506 | - } | |
| 17507 | - | |
| 17508 | - func jsonData() throws -> Data { | |
| 17509 | - return try newJSONEncoder().encode(self) | |
| 17510 | - } | |
| 17511 | - | |
| 17512 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17513 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17514 | - } | |
| 17515 | -} | |
| 17516 | - | |
| 17517 | -// | |
| 17518 | -// Hashable or Equatable: | |
| 17519 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17520 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17683 | + dummy: Int? = nil, | |
| 17684 | + obj6Var: Var? = nil, | |
| 17685 | + obj6Weak: Weak? = nil, | |
| 17686 | + obj6Where: Where? = nil, | |
| 17687 | + obj6While: While? = nil, | |
| 17688 | + obj6WillSet: WillSet? = nil, | |
| 17689 | + utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 17690 | + uuid: UUIDClass? = nil, | |
| 17691 | + virtual: Virtual? = nil, | |
| 17692 | + void: Void? = nil, | |
| 17693 | + volatile: Volatile? = nil, | |
| 17694 | + wcharT: WcharT? = nil, | |
| 17695 | + with: With? = nil, | |
| 17696 | + xor: Xor? = nil, | |
| 17697 | + xorEq: XorEq? = nil, | |
| 17698 | + yes: Yes? = nil, | |
| 17699 | + yield: Yield? = nil | |
| 17700 | + ) -> Obj6 { | |
| 17701 | + return Obj6( | |
| 17702 | + dummy: dummy ?? self.dummy, | |
| 17703 | + obj6Var: obj6Var ?? self.obj6Var, | |
| 17704 | + obj6Weak: obj6Weak ?? self.obj6Weak, | |
| 17705 | + obj6Where: obj6Where ?? self.obj6Where, | |
| 17706 | + obj6While: obj6While ?? self.obj6While, | |
| 17707 | + obj6WillSet: obj6WillSet ?? self.obj6WillSet, | |
| 17708 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 17709 | + uuid: uuid ?? self.uuid, | |
| 17710 | + virtual: virtual ?? self.virtual, | |
| 17711 | + void: void ?? self.void, | |
| 17712 | + volatile: volatile ?? self.volatile, | |
| 17713 | + wcharT: wcharT ?? self.wcharT, | |
| 17714 | + with: with ?? self.with, | |
| 17715 | + xor: xor ?? self.xor, | |
| 17716 | + xorEq: xorEq ?? self.xorEq, | |
| 17717 | + yes: yes ?? self.yes, | |
| 17718 | + yield: yield ?? self.yield | |
| 17719 | + ) | |
| 17720 | + } | |
| 17721 | + | |
| 17722 | + func jsonData() throws -> Data { | |
| 17723 | + return try newJSONEncoder().encode(self) | |
| 17724 | + } | |
| 17725 | + | |
| 17726 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17727 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 17728 | + } | |
| 17729 | +} | |
| 17730 | + | |
| 17731 | +// | |
| 17732 | +// Hashable or Equatable: | |
| 17733 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17734 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17521 | 17735 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17522 | 17736 | |
| 17523 | -// MARK: - UUIDClass | |
| 17524 | -struct UUIDClass: Codable, Equatable { | |
| 17525 | - let uuid: Int | |
| 17737 | +// MARK: - Var | |
| 17738 | +struct Var: Codable, Equatable { | |
| 17739 | + let varVar: Int | |
| 17526 | 17740 | |
| 17527 | 17741 | enum CodingKeys: String, CodingKey { |
| 17528 | - case uuid = "UUID" | |
| 17742 | + case varVar = "var" | |
| 17529 | 17743 | } |
| 17530 | 17744 | } |
| 17531 | 17745 | |
| 17532 | -// MARK: UUIDClass convenience initializers and mutators | |
| 17746 | +// MARK: Var convenience initializers and mutators | |
| 17533 | 17747 | |
| 17534 | -extension UUIDClass { | |
| 17748 | +extension Var { | |
| 17535 | 17749 | init(data: Data) throws { |
| 17536 | - self = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 17750 | + self = try newJSONDecoder().decode(Var.self, from: data) | |
| 17537 | 17751 | } |
| 17538 | 17752 | |
| 17539 | 17753 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17548,10 +17762,10 @@ extension UUIDClass { | ||
| 17548 | 17762 | } |
| 17549 | 17763 | |
| 17550 | 17764 | func with( |
| 17551 | - uuid: Int? = nil | |
| 17552 | - ) -> UUIDClass { | |
| 17553 | - return UUIDClass( | |
| 17554 | - uuid: uuid ?? self.uuid | |
| 17765 | + varVar: Int? = nil | |
| 17766 | + ) -> Var { | |
| 17767 | + return Var( | |
| 17768 | + varVar: varVar ?? self.varVar | |
| 17555 | 17769 | ) |
| 17556 | 17770 | } |
| 17557 | 17771 | |
| @@ -17570,20 +17784,20 @@ extension UUIDClass { | ||
| 17570 | 17784 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17571 | 17785 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17572 | 17786 | |
| 17573 | -// MARK: - Virtual | |
| 17574 | -struct Virtual: Codable, Equatable { | |
| 17575 | - let virtual: Int | |
| 17787 | +// MARK: - Weak | |
| 17788 | +struct Weak: Codable, Equatable { | |
| 17789 | + let weakWeak: Int | |
| 17576 | 17790 | |
| 17577 | 17791 | enum CodingKeys: String, CodingKey { |
| 17578 | - case virtual = "virtual" | |
| 17792 | + case weakWeak = "weak" | |
| 17579 | 17793 | } |
| 17580 | 17794 | } |
| 17581 | 17795 | |
| 17582 | -// MARK: Virtual convenience initializers and mutators | |
| 17796 | +// MARK: Weak convenience initializers and mutators | |
| 17583 | 17797 | |
| 17584 | -extension Virtual { | |
| 17798 | +extension Weak { | |
| 17585 | 17799 | init(data: Data) throws { |
| 17586 | - self = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 17800 | + self = try newJSONDecoder().decode(Weak.self, from: data) | |
| 17587 | 17801 | } |
| 17588 | 17802 | |
| 17589 | 17803 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17598,10 +17812,10 @@ extension Virtual { | ||
| 17598 | 17812 | } |
| 17599 | 17813 | |
| 17600 | 17814 | func with( |
| 17601 | - virtual: Int? = nil | |
| 17602 | - ) -> Virtual { | |
| 17603 | - return Virtual( | |
| 17604 | - virtual: virtual ?? self.virtual | |
| 17815 | + weakWeak: Int? = nil | |
| 17816 | + ) -> Weak { | |
| 17817 | + return Weak( | |
| 17818 | + weakWeak: weakWeak ?? self.weakWeak | |
| 17605 | 17819 | ) |
| 17606 | 17820 | } |
| 17607 | 17821 | |
| @@ -17620,44 +17834,20 @@ extension Virtual { | ||
| 17620 | 17834 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17621 | 17835 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17622 | 17836 | |
| 17623 | -// MARK: - Obj6 | |
| 17624 | -struct Obj6: Codable, Equatable { | |
| 17625 | - let dummy: Int | |
| 17626 | - let obj6Weak: Weak | |
| 17627 | - let obj6Where: Where | |
| 17628 | - let obj6While: While | |
| 17629 | - let obj6WillSet: WillSet | |
| 17630 | - let void: Void | |
| 17631 | - let volatile: Volatile | |
| 17632 | - let wcharT: WcharT | |
| 17633 | - let with: With | |
| 17634 | - let xor: Xor | |
| 17635 | - let xorEq: XorEq | |
| 17636 | - let yes: Yes | |
| 17637 | - let yield: Yield | |
| 17837 | +// MARK: - Where | |
| 17838 | +struct Where: Codable, Equatable { | |
| 17839 | + let whereWhere: Int | |
| 17638 | 17840 | |
| 17639 | 17841 | enum CodingKeys: String, CodingKey { |
| 17640 | - case dummy = "dummy" | |
| 17641 | - case obj6Weak = "weak" | |
| 17642 | - case obj6Where = "where" | |
| 17643 | - case obj6While = "while" | |
| 17644 | - case obj6WillSet = "willSet" | |
| 17645 | - case void = "void" | |
| 17646 | - case volatile = "volatile" | |
| 17647 | - case wcharT = "wchar_t" | |
| 17648 | - case with = "with" | |
| 17649 | - case xor = "xor" | |
| 17650 | - case xorEq = "xor_eq" | |
| 17651 | - case yes = "YES" | |
| 17652 | - case yield = "yield" | |
| 17842 | + case whereWhere = "where" | |
| 17653 | 17843 | } |
| 17654 | 17844 | } |
| 17655 | 17845 | |
| 17656 | -// MARK: Obj6 convenience initializers and mutators | |
| 17846 | +// MARK: Where convenience initializers and mutators | |
| 17657 | 17847 | |
| 17658 | -extension Obj6 { | |
| 17848 | +extension Where { | |
| 17659 | 17849 | init(data: Data) throws { |
| 17660 | - self = try newJSONDecoder().decode(Obj6.self, from: data) | |
| 17850 | + self = try newJSONDecoder().decode(Where.self, from: data) | |
| 17661 | 17851 | } |
| 17662 | 17852 | |
| 17663 | 17853 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17672,34 +17862,10 @@ extension Obj6 { | ||
| 17672 | 17862 | } |
| 17673 | 17863 | |
| 17674 | 17864 | func with( |
| 17675 | - dummy: Int? = nil, | |
| 17676 | - obj6Weak: Weak? = nil, | |
| 17677 | - obj6Where: Where? = nil, | |
| 17678 | - obj6While: While? = nil, | |
| 17679 | - obj6WillSet: WillSet? = nil, | |
| 17680 | - void: Void? = nil, | |
| 17681 | - volatile: Volatile? = nil, | |
| 17682 | - wcharT: WcharT? = nil, | |
| 17683 | - with: With? = nil, | |
| 17684 | - xor: Xor? = nil, | |
| 17685 | - xorEq: XorEq? = nil, | |
| 17686 | - yes: Yes? = nil, | |
| 17687 | - yield: Yield? = nil | |
| 17688 | - ) -> Obj6 { | |
| 17689 | - return Obj6( | |
| 17690 | - dummy: dummy ?? self.dummy, | |
| 17691 | - obj6Weak: obj6Weak ?? self.obj6Weak, | |
| 17692 | - obj6Where: obj6Where ?? self.obj6Where, | |
| 17693 | - obj6While: obj6While ?? self.obj6While, | |
| 17694 | - obj6WillSet: obj6WillSet ?? self.obj6WillSet, | |
| 17695 | - void: void ?? self.void, | |
| 17696 | - volatile: volatile ?? self.volatile, | |
| 17697 | - wcharT: wcharT ?? self.wcharT, | |
| 17698 | - with: with ?? self.with, | |
| 17699 | - xor: xor ?? self.xor, | |
| 17700 | - xorEq: xorEq ?? self.xorEq, | |
| 17701 | - yes: yes ?? self.yes, | |
| 17702 | - yield: yield ?? self.yield | |
| 17865 | + whereWhere: Int? = nil | |
| 17866 | + ) -> Where { | |
| 17867 | + return Where( | |
| 17868 | + whereWhere: whereWhere ?? self.whereWhere | |
| 17703 | 17869 | ) |
| 17704 | 17870 | } |
| 17705 | 17871 | |
| @@ -17718,20 +17884,20 @@ extension Obj6 { | ||
| 17718 | 17884 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17719 | 17885 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17720 | 17886 | |
| 17721 | -// MARK: - Weak | |
| 17722 | -struct Weak: Codable, Equatable { | |
| 17723 | - let weakWeak: Int | |
| 17887 | +// MARK: - While | |
| 17888 | +struct While: Codable, Equatable { | |
| 17889 | + let whileWhile: Int | |
| 17724 | 17890 | |
| 17725 | 17891 | enum CodingKeys: String, CodingKey { |
| 17726 | - case weakWeak = "weak" | |
| 17892 | + case whileWhile = "while" | |
| 17727 | 17893 | } |
| 17728 | 17894 | } |
| 17729 | 17895 | |
| 17730 | -// MARK: Weak convenience initializers and mutators | |
| 17896 | +// MARK: While convenience initializers and mutators | |
| 17731 | 17897 | |
| 17732 | -extension Weak { | |
| 17898 | +extension While { | |
| 17733 | 17899 | init(data: Data) throws { |
| 17734 | - self = try newJSONDecoder().decode(Weak.self, from: data) | |
| 17900 | + self = try newJSONDecoder().decode(While.self, from: data) | |
| 17735 | 17901 | } |
| 17736 | 17902 | |
| 17737 | 17903 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17746,10 +17912,10 @@ extension Weak { | ||
| 17746 | 17912 | } |
| 17747 | 17913 | |
| 17748 | 17914 | func with( |
| 17749 | - weakWeak: Int? = nil | |
| 17750 | - ) -> Weak { | |
| 17751 | - return Weak( | |
| 17752 | - weakWeak: weakWeak ?? self.weakWeak | |
| 17915 | + whileWhile: Int? = nil | |
| 17916 | + ) -> While { | |
| 17917 | + return While( | |
| 17918 | + whileWhile: whileWhile ?? self.whileWhile | |
| 17753 | 17919 | ) |
| 17754 | 17920 | } |
| 17755 | 17921 | |
| @@ -17768,20 +17934,20 @@ extension Weak { | ||
| 17768 | 17934 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17769 | 17935 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17770 | 17936 | |
| 17771 | -// MARK: - Where | |
| 17772 | -struct Where: Codable, Equatable { | |
| 17773 | - let whereWhere: Int | |
| 17937 | +// MARK: - WillSet | |
| 17938 | +struct WillSet: Codable, Equatable { | |
| 17939 | + let willSetWillSet: Int | |
| 17774 | 17940 | |
| 17775 | 17941 | enum CodingKeys: String, CodingKey { |
| 17776 | - case whereWhere = "where" | |
| 17942 | + case willSetWillSet = "willSet" | |
| 17777 | 17943 | } |
| 17778 | 17944 | } |
| 17779 | 17945 | |
| 17780 | -// MARK: Where convenience initializers and mutators | |
| 17946 | +// MARK: WillSet convenience initializers and mutators | |
| 17781 | 17947 | |
| 17782 | -extension Where { | |
| 17948 | +extension WillSet { | |
| 17783 | 17949 | init(data: Data) throws { |
| 17784 | - self = try newJSONDecoder().decode(Where.self, from: data) | |
| 17950 | + self = try newJSONDecoder().decode(WillSet.self, from: data) | |
| 17785 | 17951 | } |
| 17786 | 17952 | |
| 17787 | 17953 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17796,10 +17962,10 @@ extension Where { | ||
| 17796 | 17962 | } |
| 17797 | 17963 | |
| 17798 | 17964 | func with( |
| 17799 | - whereWhere: Int? = nil | |
| 17800 | - ) -> Where { | |
| 17801 | - return Where( | |
| 17802 | - whereWhere: whereWhere ?? self.whereWhere | |
| 17965 | + willSetWillSet: Int? = nil | |
| 17966 | + ) -> WillSet { | |
| 17967 | + return WillSet( | |
| 17968 | + willSetWillSet: willSetWillSet ?? self.willSetWillSet | |
| 17803 | 17969 | ) |
| 17804 | 17970 | } |
| 17805 | 17971 | |
| @@ -17818,20 +17984,20 @@ extension Where { | ||
| 17818 | 17984 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17819 | 17985 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17820 | 17986 | |
| 17821 | -// MARK: - While | |
| 17822 | -struct While: Codable, Equatable { | |
| 17823 | - let whileWhile: Int | |
| 17987 | +// MARK: - Utf8JSONWriter | |
| 17988 | +struct Utf8JSONWriter: Codable, Equatable { | |
| 17989 | + let utf8JSONWriter: Int | |
| 17824 | 17990 | |
| 17825 | 17991 | enum CodingKeys: String, CodingKey { |
| 17826 | - case whileWhile = "while" | |
| 17992 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 17827 | 17993 | } |
| 17828 | 17994 | } |
| 17829 | 17995 | |
| 17830 | -// MARK: While convenience initializers and mutators | |
| 17996 | +// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 17831 | 17997 | |
| 17832 | -extension While { | |
| 17998 | +extension Utf8JSONWriter { | |
| 17833 | 17999 | init(data: Data) throws { |
| 17834 | - self = try newJSONDecoder().decode(While.self, from: data) | |
| 18000 | + self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 17835 | 18001 | } |
| 17836 | 18002 | |
| 17837 | 18003 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17846,10 +18012,10 @@ extension While { | ||
| 17846 | 18012 | } |
| 17847 | 18013 | |
| 17848 | 18014 | func with( |
| 17849 | - whileWhile: Int? = nil | |
| 17850 | - ) -> While { | |
| 17851 | - return While( | |
| 17852 | - whileWhile: whileWhile ?? self.whileWhile | |
| 18015 | + utf8JSONWriter: Int? = nil | |
| 18016 | + ) -> Utf8JSONWriter { | |
| 18017 | + return Utf8JSONWriter( | |
| 18018 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 17853 | 18019 | ) |
| 17854 | 18020 | } |
| 17855 | 18021 | |
| @@ -17868,20 +18034,20 @@ extension While { | ||
| 17868 | 18034 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17869 | 18035 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17870 | 18036 | |
| 17871 | -// MARK: - WillSet | |
| 17872 | -struct WillSet: Codable, Equatable { | |
| 17873 | - let willSetWillSet: Int | |
| 18037 | +// MARK: - UUIDClass | |
| 18038 | +struct UUIDClass: Codable, Equatable { | |
| 18039 | + let uuid: Int | |
| 17874 | 18040 | |
| 17875 | 18041 | enum CodingKeys: String, CodingKey { |
| 17876 | - case willSetWillSet = "willSet" | |
| 18042 | + case uuid = "UUID" | |
| 17877 | 18043 | } |
| 17878 | 18044 | } |
| 17879 | 18045 | |
| 17880 | -// MARK: WillSet convenience initializers and mutators | |
| 18046 | +// MARK: UUIDClass convenience initializers and mutators | |
| 17881 | 18047 | |
| 17882 | -extension WillSet { | |
| 18048 | +extension UUIDClass { | |
| 17883 | 18049 | init(data: Data) throws { |
| 17884 | - self = try newJSONDecoder().decode(WillSet.self, from: data) | |
| 18050 | + self = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 17885 | 18051 | } |
| 17886 | 18052 | |
| 17887 | 18053 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17896,10 +18062,60 @@ extension WillSet { | ||
| 17896 | 18062 | } |
| 17897 | 18063 | |
| 17898 | 18064 | func with( |
| 17899 | - willSetWillSet: Int? = nil | |
| 17900 | - ) -> WillSet { | |
| 17901 | - return WillSet( | |
| 17902 | - willSetWillSet: willSetWillSet ?? self.willSetWillSet | |
| 18065 | + uuid: Int? = nil | |
| 18066 | + ) -> UUIDClass { | |
| 18067 | + return UUIDClass( | |
| 18068 | + uuid: uuid ?? self.uuid | |
| 18069 | + ) | |
| 18070 | + } | |
| 18071 | + | |
| 18072 | + func jsonData() throws -> Data { | |
| 18073 | + return try newJSONEncoder().encode(self) | |
| 18074 | + } | |
| 18075 | + | |
| 18076 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18077 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18078 | + } | |
| 18079 | +} | |
| 18080 | + | |
| 18081 | +// | |
| 18082 | +// Hashable or Equatable: | |
| 18083 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18084 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18085 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18086 | + | |
| 18087 | +// MARK: - Virtual | |
| 18088 | +struct Virtual: Codable, Equatable { | |
| 18089 | + let virtual: Int | |
| 18090 | + | |
| 18091 | + enum CodingKeys: String, CodingKey { | |
| 18092 | + case virtual = "virtual" | |
| 18093 | + } | |
| 18094 | +} | |
| 18095 | + | |
| 18096 | +// MARK: Virtual convenience initializers and mutators | |
| 18097 | + | |
| 18098 | +extension Virtual { | |
| 18099 | + init(data: Data) throws { | |
| 18100 | + self = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 18101 | + } | |
| 18102 | + | |
| 18103 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18104 | + guard let data = json.data(using: encoding) else { | |
| 18105 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18106 | + } | |
| 18107 | + try self.init(data: data) | |
| 18108 | + } | |
| 18109 | + | |
| 18110 | + init(fromURL url: URL) throws { | |
| 18111 | + try self.init(data: try Data(contentsOf: url)) | |
| 18112 | + } | |
| 18113 | + | |
| 18114 | + func with( | |
| 18115 | + virtual: Int? = nil | |
| 18116 | + ) -> Virtual { | |
| 18117 | + return Virtual( | |
| 18118 | + virtual: virtual ?? self.virtual | |
| 17903 | 18119 | ) |
| 17904 | 18120 | } |
Mswiftsendable-true--1c3982c78639 / quicktype.swift+636 −444
| @@ -3208,6 +3208,7 @@ struct Obj2: Codable, Sendable { | ||
| 3208 | 3208 | let del: Del |
| 3209 | 3209 | let delegate: Delegate |
| 3210 | 3210 | let delete: Delete |
| 3211 | + let deserializationFeature: DeserializationFeature | |
| 3211 | 3212 | let dict: Dict |
| 3212 | 3213 | let dictionary: Dictionary |
| 3213 | 3214 | let double: DoubleClass |
| @@ -3238,7 +3239,6 @@ struct Obj2: Codable, Sendable { | ||
| 3238 | 3239 | let function: Function |
| 3239 | 3240 | let global: Global |
| 3240 | 3241 | let go: Go |
| 3241 | - let goto: Goto | |
| 3242 | 3242 | let obj2Default: Default |
| 3243 | 3243 | let obj2Defer: Defer |
| 3244 | 3244 | let obj2Deinit: Deinit |
| @@ -3275,6 +3275,7 @@ struct Obj2: Codable, Sendable { | ||
| 3275 | 3275 | case del = "del" |
| 3276 | 3276 | case delegate = "delegate" |
| 3277 | 3277 | case delete = "delete" |
| 3278 | + case deserializationFeature = "DeserializationFeature" | |
| 3278 | 3279 | case dict = "dict" |
| 3279 | 3280 | case dictionary = "dictionary" |
| 3280 | 3281 | case double = "double" |
| @@ -3305,7 +3306,6 @@ struct Obj2: Codable, Sendable { | ||
| 3305 | 3306 | case function = "function" |
| 3306 | 3307 | case global = "global" |
| 3307 | 3308 | case go = "go" |
| 3308 | - case goto = "goto" | |
| 3309 | 3309 | case obj2Default = "default" |
| 3310 | 3310 | case obj2Defer = "defer" |
| 3311 | 3311 | case obj2Deinit = "deinit" |
| @@ -3362,6 +3362,7 @@ extension Obj2 { | ||
| 3362 | 3362 | del: Del? = nil, |
| 3363 | 3363 | delegate: Delegate? = nil, |
| 3364 | 3364 | delete: Delete? = nil, |
| 3365 | + deserializationFeature: DeserializationFeature? = nil, | |
| 3365 | 3366 | dict: Dict? = nil, |
| 3366 | 3367 | dictionary: Dictionary? = nil, |
| 3367 | 3368 | double: DoubleClass? = nil, |
| @@ -3392,7 +3393,6 @@ extension Obj2 { | ||
| 3392 | 3393 | function: Function? = nil, |
| 3393 | 3394 | global: Global? = nil, |
| 3394 | 3395 | go: Go? = nil, |
| 3395 | - goto: Goto? = nil, | |
| 3396 | 3396 | obj2Default: Default? = nil, |
| 3397 | 3397 | obj2Defer: Defer? = nil, |
| 3398 | 3398 | obj2Deinit: Deinit? = nil, |
| @@ -3429,6 +3429,7 @@ extension Obj2 { | ||
| 3429 | 3429 | del: del ?? self.del, |
| 3430 | 3430 | delegate: delegate ?? self.delegate, |
| 3431 | 3431 | delete: delete ?? self.delete, |
| 3432 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature, | |
| 3432 | 3433 | dict: dict ?? self.dict, |
| 3433 | 3434 | dictionary: dictionary ?? self.dictionary, |
| 3434 | 3435 | double: double ?? self.double, |
| @@ -3459,7 +3460,6 @@ extension Obj2 { | ||
| 3459 | 3460 | function: function ?? self.function, |
| 3460 | 3461 | global: global ?? self.global, |
| 3461 | 3462 | go: go ?? self.go, |
| 3462 | - goto: goto ?? self.goto, | |
| 3463 | 3463 | obj2Default: obj2Default ?? self.obj2Default, |
| 3464 | 3464 | obj2Defer: obj2Defer ?? self.obj2Defer, |
| 3465 | 3465 | obj2Deinit: obj2Deinit ?? self.obj2Deinit, |
| @@ -4237,6 +4237,50 @@ extension Delete { | ||
| 4237 | 4237 | } |
| 4238 | 4238 | } |
| 4239 | 4239 | |
| 4240 | +// MARK: - DeserializationFeature | |
| 4241 | +struct DeserializationFeature: Codable, Sendable { | |
| 4242 | + let deserializationFeature: Int | |
| 4243 | + | |
| 4244 | + enum CodingKeys: String, CodingKey { | |
| 4245 | + case deserializationFeature = "DeserializationFeature" | |
| 4246 | + } | |
| 4247 | +} | |
| 4248 | + | |
| 4249 | +// MARK: DeserializationFeature convenience initializers and mutators | |
| 4250 | + | |
| 4251 | +extension DeserializationFeature { | |
| 4252 | + init(data: Data) throws { | |
| 4253 | + self = try newJSONDecoder().decode(DeserializationFeature.self, from: data) | |
| 4254 | + } | |
| 4255 | + | |
| 4256 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 4257 | + guard let data = json.data(using: encoding) else { | |
| 4258 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 4259 | + } | |
| 4260 | + try self.init(data: data) | |
| 4261 | + } | |
| 4262 | + | |
| 4263 | + init(fromURL url: URL) throws { | |
| 4264 | + try self.init(data: try Data(contentsOf: url)) | |
| 4265 | + } | |
| 4266 | + | |
| 4267 | + func with( | |
| 4268 | + deserializationFeature: Int? = nil | |
| 4269 | + ) -> DeserializationFeature { | |
| 4270 | + return DeserializationFeature( | |
| 4271 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature | |
| 4272 | + ) | |
| 4273 | + } | |
| 4274 | + | |
| 4275 | + func jsonData() throws -> Data { | |
| 4276 | + return try newJSONEncoder().encode(self) | |
| 4277 | + } | |
| 4278 | + | |
| 4279 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 4280 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 4281 | + } | |
| 4282 | +} | |
| 4283 | + | |
| 4240 | 4284 | // MARK: - Dict |
| 4241 | 4285 | struct Dict: Codable, Sendable { |
| 4242 | 4286 | let dict: Int |
| @@ -5518,50 +5562,6 @@ extension Go { | ||
| 5518 | 5562 | } |
| 5519 | 5563 | } |
| 5520 | 5564 | |
| 5521 | -// MARK: - Goto | |
| 5522 | -struct Goto: Codable, Sendable { | |
| 5523 | - let goto: Int | |
| 5524 | - | |
| 5525 | - enum CodingKeys: String, CodingKey { | |
| 5526 | - case goto = "goto" | |
| 5527 | - } | |
| 5528 | -} | |
| 5529 | - | |
| 5530 | -// MARK: Goto convenience initializers and mutators | |
| 5531 | - | |
| 5532 | -extension Goto { | |
| 5533 | - init(data: Data) throws { | |
| 5534 | - self = try newJSONDecoder().decode(Goto.self, from: data) | |
| 5535 | - } | |
| 5536 | - | |
| 5537 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 5538 | - guard let data = json.data(using: encoding) else { | |
| 5539 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 5540 | - } | |
| 5541 | - try self.init(data: data) | |
| 5542 | - } | |
| 5543 | - | |
| 5544 | - init(fromURL url: URL) throws { | |
| 5545 | - try self.init(data: try Data(contentsOf: url)) | |
| 5546 | - } | |
| 5547 | - | |
| 5548 | - func with( | |
| 5549 | - goto: Int? = nil | |
| 5550 | - ) -> Goto { | |
| 5551 | - return Goto( | |
| 5552 | - goto: goto ?? self.goto | |
| 5553 | - ) | |
| 5554 | - } | |
| 5555 | - | |
| 5556 | - func jsonData() throws -> Data { | |
| 5557 | - return try newJSONEncoder().encode(self) | |
| 5558 | - } | |
| 5559 | - | |
| 5560 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 5561 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 5562 | - } | |
| 5563 | -} | |
| 5564 | - | |
| 5565 | 5565 | // MARK: - Default |
| 5566 | 5566 | struct Default: Codable, Sendable { |
| 5567 | 5567 | let defaultDefault: Int |
| @@ -6313,6 +6313,7 @@ extension FalseClass { | ||
| 6313 | 6313 | // MARK: - Obj3 |
| 6314 | 6314 | struct Obj3: Codable, Sendable { |
| 6315 | 6315 | let dummy: Int |
| 6316 | + let goto: Goto | |
| 6316 | 6317 | let hasOwnProperty: HasOwnProperty |
| 6317 | 6318 | let hashCode: HashCode |
| 6318 | 6319 | let hashable: HashableClass |
| @@ -6360,7 +6361,6 @@ struct Obj3: Codable, Sendable { | ||
| 6360 | 6361 | let new: New |
| 6361 | 6362 | let newtonsoft: Newtonsoft |
| 6362 | 6363 | let no: No |
| 6363 | - let noexcept: Noexcept | |
| 6364 | 6364 | let obj3Guard: Guard |
| 6365 | 6365 | let obj3If: If |
| 6366 | 6366 | let obj3Import: Import |
| @@ -6380,6 +6380,7 @@ struct Obj3: Codable, Sendable { | ||
| 6380 | 6380 | |
| 6381 | 6381 | enum CodingKeys: String, CodingKey { |
| 6382 | 6382 | case dummy = "dummy" |
| 6383 | + case goto = "goto" | |
| 6383 | 6384 | case hasOwnProperty = "hasOwnProperty" |
| 6384 | 6385 | case hashCode = "hashCode" |
| 6385 | 6386 | case hashable = "Hashable" |
| @@ -6427,7 +6428,6 @@ struct Obj3: Codable, Sendable { | ||
| 6427 | 6428 | case new = "new" |
| 6428 | 6429 | case newtonsoft = "newtonsoft" |
| 6429 | 6430 | case no = "NO" |
| 6430 | - case noexcept = "noexcept" | |
| 6431 | 6431 | case obj3Guard = "guard" |
| 6432 | 6432 | case obj3If = "if" |
| 6433 | 6433 | case obj3Import = "import" |
| @@ -6467,6 +6467,7 @@ extension Obj3 { | ||
| 6467 | 6467 | |
| 6468 | 6468 | func with( |
| 6469 | 6469 | dummy: Int? = nil, |
| 6470 | + goto: Goto? = nil, | |
| 6470 | 6471 | hasOwnProperty: HasOwnProperty? = nil, |
| 6471 | 6472 | hashCode: HashCode? = nil, |
| 6472 | 6473 | hashable: HashableClass? = nil, |
| @@ -6514,7 +6515,6 @@ extension Obj3 { | ||
| 6514 | 6515 | new: New? = nil, |
| 6515 | 6516 | newtonsoft: Newtonsoft? = nil, |
| 6516 | 6517 | no: No? = nil, |
| 6517 | - noexcept: Noexcept? = nil, | |
| 6518 | 6518 | obj3Guard: Guard? = nil, |
| 6519 | 6519 | obj3If: If? = nil, |
| 6520 | 6520 | obj3Import: Import? = nil, |
| @@ -6534,6 +6534,7 @@ extension Obj3 { | ||
| 6534 | 6534 | ) -> Obj3 { |
| 6535 | 6535 | return Obj3( |
| 6536 | 6536 | dummy: dummy ?? self.dummy, |
| 6537 | + goto: goto ?? self.goto, | |
| 6537 | 6538 | hasOwnProperty: hasOwnProperty ?? self.hasOwnProperty, |
| 6538 | 6539 | hashCode: hashCode ?? self.hashCode, |
| 6539 | 6540 | hashable: hashable ?? self.hashable, |
| @@ -6581,7 +6582,6 @@ extension Obj3 { | ||
| 6581 | 6582 | new: new ?? self.new, |
| 6582 | 6583 | newtonsoft: newtonsoft ?? self.newtonsoft, |
| 6583 | 6584 | no: no ?? self.no, |
| 6584 | - noexcept: noexcept ?? self.noexcept, | |
| 6585 | 6585 | obj3Guard: obj3Guard ?? self.obj3Guard, |
| 6586 | 6586 | obj3If: obj3If ?? self.obj3If, |
| 6587 | 6587 | obj3Import: obj3Import ?? self.obj3Import, |
| @@ -6610,6 +6610,50 @@ extension Obj3 { | ||
| 6610 | 6610 | } |
| 6611 | 6611 | } |
| 6612 | 6612 | |
| 6613 | +// MARK: - Goto | |
| 6614 | +struct Goto: Codable, Sendable { | |
| 6615 | + let goto: Int | |
| 6616 | + | |
| 6617 | + enum CodingKeys: String, CodingKey { | |
| 6618 | + case goto = "goto" | |
| 6619 | + } | |
| 6620 | +} | |
| 6621 | + | |
| 6622 | +// MARK: Goto convenience initializers and mutators | |
| 6623 | + | |
| 6624 | +extension Goto { | |
| 6625 | + init(data: Data) throws { | |
| 6626 | + self = try newJSONDecoder().decode(Goto.self, from: data) | |
| 6627 | + } | |
| 6628 | + | |
| 6629 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 6630 | + guard let data = json.data(using: encoding) else { | |
| 6631 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 6632 | + } | |
| 6633 | + try self.init(data: data) | |
| 6634 | + } | |
| 6635 | + | |
| 6636 | + init(fromURL url: URL) throws { | |
| 6637 | + try self.init(data: try Data(contentsOf: url)) | |
| 6638 | + } | |
| 6639 | + | |
| 6640 | + func with( | |
| 6641 | + goto: Int? = nil | |
| 6642 | + ) -> Goto { | |
| 6643 | + return Goto( | |
| 6644 | + goto: goto ?? self.goto | |
| 6645 | + ) | |
| 6646 | + } | |
| 6647 | + | |
| 6648 | + func jsonData() throws -> Data { | |
| 6649 | + return try newJSONEncoder().encode(self) | |
| 6650 | + } | |
| 6651 | + | |
| 6652 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 6653 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 6654 | + } | |
| 6655 | +} | |
| 6656 | + | |
| 6613 | 6657 | // MARK: - HasOwnProperty |
| 6614 | 6658 | struct HasOwnProperty: Codable, Sendable { |
| 6615 | 6659 | let hasOwnProperty: Int |
| @@ -8678,50 +8722,6 @@ extension No { | ||
| 8678 | 8722 | } |
| 8679 | 8723 | } |
| 8680 | 8724 | |
| 8681 | -// MARK: - Noexcept | |
| 8682 | -struct Noexcept: Codable, Sendable { | |
| 8683 | - let noexcept: Int | |
| 8684 | - | |
| 8685 | - enum CodingKeys: String, CodingKey { | |
| 8686 | - case noexcept = "noexcept" | |
| 8687 | - } | |
| 8688 | -} | |
| 8689 | - | |
| 8690 | -// MARK: Noexcept convenience initializers and mutators | |
| 8691 | - | |
| 8692 | -extension Noexcept { | |
| 8693 | - init(data: Data) throws { | |
| 8694 | - self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 8695 | - } | |
| 8696 | - | |
| 8697 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8698 | - guard let data = json.data(using: encoding) else { | |
| 8699 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8700 | - } | |
| 8701 | - try self.init(data: data) | |
| 8702 | - } | |
| 8703 | - | |
| 8704 | - init(fromURL url: URL) throws { | |
| 8705 | - try self.init(data: try Data(contentsOf: url)) | |
| 8706 | - } | |
| 8707 | - | |
| 8708 | - func with( | |
| 8709 | - noexcept: Int? = nil | |
| 8710 | - ) -> Noexcept { | |
| 8711 | - return Noexcept( | |
| 8712 | - noexcept: noexcept ?? self.noexcept | |
| 8713 | - ) | |
| 8714 | - } | |
| 8715 | - | |
| 8716 | - func jsonData() throws -> Data { | |
| 8717 | - return try newJSONEncoder().encode(self) | |
| 8718 | - } | |
| 8719 | - | |
| 8720 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8721 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 8722 | - } | |
| 8723 | -} | |
| 8724 | - | |
| 8725 | 8725 | // MARK: - Guard |
| 8726 | 8726 | struct Guard: Codable, Sendable { |
| 8727 | 8727 | let guardGuard: Int |
| @@ -9430,6 +9430,7 @@ extension Nil { | ||
| 9430 | 9430 | struct Obj4: Codable, Sendable { |
| 9431 | 9431 | let dummy: Int |
| 9432 | 9432 | let noSuchMethod: NoSuchMethod |
| 9433 | + let noexcept: Noexcept | |
| 9433 | 9434 | let nonatomic: Nonatomic |
| 9434 | 9435 | let none: None |
| 9435 | 9436 | let nonlocal: Nonlocal |
| @@ -9461,6 +9462,8 @@ struct Obj4: Codable, Sendable { | ||
| 9461 | 9462 | let obj4Right: Right |
| 9462 | 9463 | let object: Object |
| 9463 | 9464 | let objectMapper: ObjectMapper |
| 9465 | + let objectReader: ObjectReader | |
| 9466 | + let objectWriter: ObjectWriter | |
| 9464 | 9467 | let of: Of |
| 9465 | 9468 | let oneway: Oneway |
| 9466 | 9469 | let or: Or |
| @@ -9490,13 +9493,11 @@ struct Obj4: Codable, Sendable { | ||
| 9490 | 9493 | let runtimeType: RuntimeType |
| 9491 | 9494 | let s: S |
| 9492 | 9495 | let sbyte: Sbyte |
| 9493 | - let sealed: Sealed | |
| 9494 | - let sel: Sel | |
| 9495 | - let select: Select | |
| 9496 | 9496 | |
| 9497 | 9497 | enum CodingKeys: String, CodingKey { |
| 9498 | 9498 | case dummy = "dummy" |
| 9499 | 9499 | case noSuchMethod = "noSuchMethod" |
| 9500 | + case noexcept = "noexcept" | |
| 9500 | 9501 | case nonatomic = "nonatomic" |
| 9501 | 9502 | case none = "None" |
| 9502 | 9503 | case nonlocal = "nonlocal" |
| @@ -9528,6 +9529,8 @@ struct Obj4: Codable, Sendable { | ||
| 9528 | 9529 | case obj4Right = "right" |
| 9529 | 9530 | case object = "object" |
| 9530 | 9531 | case objectMapper = "ObjectMapper" |
| 9532 | + case objectReader = "ObjectReader" | |
| 9533 | + case objectWriter = "ObjectWriter" | |
| 9531 | 9534 | case of = "of" |
| 9532 | 9535 | case oneway = "oneway" |
| 9533 | 9536 | case or = "or" |
| @@ -9557,9 +9560,6 @@ struct Obj4: Codable, Sendable { | ||
| 9557 | 9560 | case runtimeType = "runtimeType" |
| 9558 | 9561 | case s = "s" |
| 9559 | 9562 | case sbyte = "sbyte" |
| 9560 | - case sealed = "sealed" | |
| 9561 | - case sel = "SEL" | |
| 9562 | - case select = "select" | |
| 9563 | 9563 | } |
| 9564 | 9564 | } |
| 9565 | 9565 | |
| @@ -9584,6 +9584,7 @@ extension Obj4 { | ||
| 9584 | 9584 | func with( |
| 9585 | 9585 | dummy: Int? = nil, |
| 9586 | 9586 | noSuchMethod: NoSuchMethod? = nil, |
| 9587 | + noexcept: Noexcept? = nil, | |
| 9587 | 9588 | nonatomic: Nonatomic? = nil, |
| 9588 | 9589 | none: None? = nil, |
| 9589 | 9590 | nonlocal: Nonlocal? = nil, |
| @@ -9615,6 +9616,8 @@ extension Obj4 { | ||
| 9615 | 9616 | obj4Right: Right? = nil, |
| 9616 | 9617 | object: Object? = nil, |
| 9617 | 9618 | objectMapper: ObjectMapper? = nil, |
| 9619 | + objectReader: ObjectReader? = nil, | |
| 9620 | + objectWriter: ObjectWriter? = nil, | |
| 9618 | 9621 | of: Of? = nil, |
| 9619 | 9622 | oneway: Oneway? = nil, |
| 9620 | 9623 | or: Or? = nil, |
| @@ -9643,14 +9646,12 @@ extension Obj4 { | ||
| 9643 | 9646 | retain: Retain? = nil, |
| 9644 | 9647 | runtimeType: RuntimeType? = nil, |
| 9645 | 9648 | s: S? = nil, |
| 9646 | - sbyte: Sbyte? = nil, | |
| 9647 | - sealed: Sealed? = nil, | |
| 9648 | - sel: Sel? = nil, | |
| 9649 | - select: Select? = nil | |
| 9649 | + sbyte: Sbyte? = nil | |
| 9650 | 9650 | ) -> Obj4 { |
| 9651 | 9651 | return Obj4( |
| 9652 | 9652 | dummy: dummy ?? self.dummy, |
| 9653 | 9653 | noSuchMethod: noSuchMethod ?? self.noSuchMethod, |
| 9654 | + noexcept: noexcept ?? self.noexcept, | |
| 9654 | 9655 | nonatomic: nonatomic ?? self.nonatomic, |
| 9655 | 9656 | none: none ?? self.none, |
| 9656 | 9657 | nonlocal: nonlocal ?? self.nonlocal, |
| @@ -9682,6 +9683,8 @@ extension Obj4 { | ||
| 9682 | 9683 | obj4Right: obj4Right ?? self.obj4Right, |
| 9683 | 9684 | object: object ?? self.object, |
| 9684 | 9685 | objectMapper: objectMapper ?? self.objectMapper, |
| 9686 | + objectReader: objectReader ?? self.objectReader, | |
| 9687 | + objectWriter: objectWriter ?? self.objectWriter, | |
| 9685 | 9688 | of: of ?? self.of, |
| 9686 | 9689 | oneway: oneway ?? self.oneway, |
| 9687 | 9690 | or: or ?? self.or, |
| @@ -9710,10 +9713,7 @@ extension Obj4 { | ||
| 9710 | 9713 | retain: retain ?? self.retain, |
| 9711 | 9714 | runtimeType: runtimeType ?? self.runtimeType, |
| 9712 | 9715 | s: s ?? self.s, |
| 9713 | - sbyte: sbyte ?? self.sbyte, | |
| 9714 | - sealed: sealed ?? self.sealed, | |
| 9715 | - sel: sel ?? self.sel, | |
| 9716 | - select: select ?? self.select | |
| 9716 | + sbyte: sbyte ?? self.sbyte | |
| 9717 | 9717 | ) |
| 9718 | 9718 | } |
| 9719 | 9719 | |
| @@ -9770,6 +9770,50 @@ extension NoSuchMethod { | ||
| 9770 | 9770 | } |
| 9771 | 9771 | } |
| 9772 | 9772 | |
| 9773 | +// MARK: - Noexcept | |
| 9774 | +struct Noexcept: Codable, Sendable { | |
| 9775 | + let noexcept: Int | |
| 9776 | + | |
| 9777 | + enum CodingKeys: String, CodingKey { | |
| 9778 | + case noexcept = "noexcept" | |
| 9779 | + } | |
| 9780 | +} | |
| 9781 | + | |
| 9782 | +// MARK: Noexcept convenience initializers and mutators | |
| 9783 | + | |
| 9784 | +extension Noexcept { | |
| 9785 | + init(data: Data) throws { | |
| 9786 | + self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 9787 | + } | |
| 9788 | + | |
| 9789 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9790 | + guard let data = json.data(using: encoding) else { | |
| 9791 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9792 | + } | |
| 9793 | + try self.init(data: data) | |
| 9794 | + } | |
| 9795 | + | |
| 9796 | + init(fromURL url: URL) throws { | |
| 9797 | + try self.init(data: try Data(contentsOf: url)) | |
| 9798 | + } | |
| 9799 | + | |
| 9800 | + func with( | |
| 9801 | + noexcept: Int? = nil | |
| 9802 | + ) -> Noexcept { | |
| 9803 | + return Noexcept( | |
| 9804 | + noexcept: noexcept ?? self.noexcept | |
| 9805 | + ) | |
| 9806 | + } | |
| 9807 | + | |
| 9808 | + func jsonData() throws -> Data { | |
| 9809 | + return try newJSONEncoder().encode(self) | |
| 9810 | + } | |
| 9811 | + | |
| 9812 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9813 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9814 | + } | |
| 9815 | +} | |
| 9816 | + | |
| 9773 | 9817 | // MARK: - Nonatomic |
| 9774 | 9818 | struct Nonatomic: Codable, Sendable { |
| 9775 | 9819 | let nonatomic: Int |
| @@ -11134,20 +11178,20 @@ extension ObjectMapper { | ||
| 11134 | 11178 | } |
| 11135 | 11179 | } |
| 11136 | 11180 | |
| 11137 | -// MARK: - Of | |
| 11138 | -struct Of: Codable, Sendable { | |
| 11139 | - let of: Int | |
| 11181 | +// MARK: - ObjectReader | |
| 11182 | +struct ObjectReader: Codable, Sendable { | |
| 11183 | + let objectReader: Int | |
| 11140 | 11184 | |
| 11141 | 11185 | enum CodingKeys: String, CodingKey { |
| 11142 | - case of = "of" | |
| 11186 | + case objectReader = "ObjectReader" | |
| 11143 | 11187 | } |
| 11144 | 11188 | } |
| 11145 | 11189 | |
| 11146 | -// MARK: Of convenience initializers and mutators | |
| 11190 | +// MARK: ObjectReader convenience initializers and mutators | |
| 11147 | 11191 | |
| 11148 | -extension Of { | |
| 11192 | +extension ObjectReader { | |
| 11149 | 11193 | init(data: Data) throws { |
| 11150 | - self = try newJSONDecoder().decode(Of.self, from: data) | |
| 11194 | + self = try newJSONDecoder().decode(ObjectReader.self, from: data) | |
| 11151 | 11195 | } |
| 11152 | 11196 | |
| 11153 | 11197 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11162,10 +11206,10 @@ extension Of { | ||
| 11162 | 11206 | } |
| 11163 | 11207 | |
| 11164 | 11208 | func with( |
| 11165 | - of: Int? = nil | |
| 11166 | - ) -> Of { | |
| 11167 | - return Of( | |
| 11168 | - of: of ?? self.of | |
| 11209 | + objectReader: Int? = nil | |
| 11210 | + ) -> ObjectReader { | |
| 11211 | + return ObjectReader( | |
| 11212 | + objectReader: objectReader ?? self.objectReader | |
| 11169 | 11213 | ) |
| 11170 | 11214 | } |
| 11171 | 11215 | |
| @@ -11178,20 +11222,20 @@ extension Of { | ||
| 11178 | 11222 | } |
| 11179 | 11223 | } |
| 11180 | 11224 | |
| 11181 | -// MARK: - Oneway | |
| 11182 | -struct Oneway: Codable, Sendable { | |
| 11183 | - let oneway: Int | |
| 11225 | +// MARK: - ObjectWriter | |
| 11226 | +struct ObjectWriter: Codable, Sendable { | |
| 11227 | + let objectWriter: Int | |
| 11184 | 11228 | |
| 11185 | 11229 | enum CodingKeys: String, CodingKey { |
| 11186 | - case oneway = "oneway" | |
| 11230 | + case objectWriter = "ObjectWriter" | |
| 11187 | 11231 | } |
| 11188 | 11232 | } |
| 11189 | 11233 | |
| 11190 | -// MARK: Oneway convenience initializers and mutators | |
| 11234 | +// MARK: ObjectWriter convenience initializers and mutators | |
| 11191 | 11235 | |
| 11192 | -extension Oneway { | |
| 11236 | +extension ObjectWriter { | |
| 11193 | 11237 | init(data: Data) throws { |
| 11194 | - self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11238 | + self = try newJSONDecoder().decode(ObjectWriter.self, from: data) | |
| 11195 | 11239 | } |
| 11196 | 11240 | |
| 11197 | 11241 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -11206,7 +11250,95 @@ extension Oneway { | ||
| 11206 | 11250 | } |
| 11207 | 11251 | |
| 11208 | 11252 | func with( |
| 11209 | - oneway: Int? = nil | |
| 11253 | + objectWriter: Int? = nil | |
| 11254 | + ) -> ObjectWriter { | |
| 11255 | + return ObjectWriter( | |
| 11256 | + objectWriter: objectWriter ?? self.objectWriter | |
| 11257 | + ) | |
| 11258 | + } | |
| 11259 | + | |
| 11260 | + func jsonData() throws -> Data { | |
| 11261 | + return try newJSONEncoder().encode(self) | |
| 11262 | + } | |
| 11263 | + | |
| 11264 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11265 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11266 | + } | |
| 11267 | +} | |
| 11268 | + | |
| 11269 | +// MARK: - Of | |
| 11270 | +struct Of: Codable, Sendable { | |
| 11271 | + let of: Int | |
| 11272 | + | |
| 11273 | + enum CodingKeys: String, CodingKey { | |
| 11274 | + case of = "of" | |
| 11275 | + } | |
| 11276 | +} | |
| 11277 | + | |
| 11278 | +// MARK: Of convenience initializers and mutators | |
| 11279 | + | |
| 11280 | +extension Of { | |
| 11281 | + init(data: Data) throws { | |
| 11282 | + self = try newJSONDecoder().decode(Of.self, from: data) | |
| 11283 | + } | |
| 11284 | + | |
| 11285 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11286 | + guard let data = json.data(using: encoding) else { | |
| 11287 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11288 | + } | |
| 11289 | + try self.init(data: data) | |
| 11290 | + } | |
| 11291 | + | |
| 11292 | + init(fromURL url: URL) throws { | |
| 11293 | + try self.init(data: try Data(contentsOf: url)) | |
| 11294 | + } | |
| 11295 | + | |
| 11296 | + func with( | |
| 11297 | + of: Int? = nil | |
| 11298 | + ) -> Of { | |
| 11299 | + return Of( | |
| 11300 | + of: of ?? self.of | |
| 11301 | + ) | |
| 11302 | + } | |
| 11303 | + | |
| 11304 | + func jsonData() throws -> Data { | |
| 11305 | + return try newJSONEncoder().encode(self) | |
| 11306 | + } | |
| 11307 | + | |
| 11308 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11309 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11310 | + } | |
| 11311 | +} | |
| 11312 | + | |
| 11313 | +// MARK: - Oneway | |
| 11314 | +struct Oneway: Codable, Sendable { | |
| 11315 | + let oneway: Int | |
| 11316 | + | |
| 11317 | + enum CodingKeys: String, CodingKey { | |
| 11318 | + case oneway = "oneway" | |
| 11319 | + } | |
| 11320 | +} | |
| 11321 | + | |
| 11322 | +// MARK: Oneway convenience initializers and mutators | |
| 11323 | + | |
| 11324 | +extension Oneway { | |
| 11325 | + init(data: Data) throws { | |
| 11326 | + self = try newJSONDecoder().decode(Oneway.self, from: data) | |
| 11327 | + } | |
| 11328 | + | |
| 11329 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11330 | + guard let data = json.data(using: encoding) else { | |
| 11331 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11332 | + } | |
| 11333 | + try self.init(data: data) | |
| 11334 | + } | |
| 11335 | + | |
| 11336 | + init(fromURL url: URL) throws { | |
| 11337 | + try self.init(data: try Data(contentsOf: url)) | |
| 11338 | + } | |
| 11339 | + | |
| 11340 | + func with( | |
| 11341 | + oneway: Int? = nil | |
| 11210 | 11342 | ) -> Oneway { |
| 11211 | 11343 | return Oneway( |
| 11212 | 11344 | oneway: oneway ?? self.oneway |
| @@ -12410,138 +12542,6 @@ extension Sbyte { | ||
| 12410 | 12542 | } |
| 12411 | 12543 | } |
| 12412 | 12544 | |
| 12413 | -// MARK: - Sealed | |
| 12414 | -struct Sealed: Codable, Sendable { | |
| 12415 | - let sealed: Int | |
| 12416 | - | |
| 12417 | - enum CodingKeys: String, CodingKey { | |
| 12418 | - case sealed = "sealed" | |
| 12419 | - } | |
| 12420 | -} | |
| 12421 | - | |
| 12422 | -// MARK: Sealed convenience initializers and mutators | |
| 12423 | - | |
| 12424 | -extension Sealed { | |
| 12425 | - init(data: Data) throws { | |
| 12426 | - self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 12427 | - } | |
| 12428 | - | |
| 12429 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12430 | - guard let data = json.data(using: encoding) else { | |
| 12431 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12432 | - } | |
| 12433 | - try self.init(data: data) | |
| 12434 | - } | |
| 12435 | - | |
| 12436 | - init(fromURL url: URL) throws { | |
| 12437 | - try self.init(data: try Data(contentsOf: url)) | |
| 12438 | - } | |
| 12439 | - | |
| 12440 | - func with( | |
| 12441 | - sealed: Int? = nil | |
| 12442 | - ) -> Sealed { | |
| 12443 | - return Sealed( | |
| 12444 | - sealed: sealed ?? self.sealed | |
| 12445 | - ) | |
| 12446 | - } | |
| 12447 | - | |
| 12448 | - func jsonData() throws -> Data { | |
| 12449 | - return try newJSONEncoder().encode(self) | |
| 12450 | - } | |
| 12451 | - | |
| 12452 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12453 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12454 | - } | |
| 12455 | -} | |
| 12456 | - | |
| 12457 | -// MARK: - Sel | |
| 12458 | -struct Sel: Codable, Sendable { | |
| 12459 | - let sel: Int | |
| 12460 | - | |
| 12461 | - enum CodingKeys: String, CodingKey { | |
| 12462 | - case sel = "SEL" | |
| 12463 | - } | |
| 12464 | -} | |
| 12465 | - | |
| 12466 | -// MARK: Sel convenience initializers and mutators | |
| 12467 | - | |
| 12468 | -extension Sel { | |
| 12469 | - init(data: Data) throws { | |
| 12470 | - self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 12471 | - } | |
| 12472 | - | |
| 12473 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12474 | - guard let data = json.data(using: encoding) else { | |
| 12475 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12476 | - } | |
| 12477 | - try self.init(data: data) | |
| 12478 | - } | |
| 12479 | - | |
| 12480 | - init(fromURL url: URL) throws { | |
| 12481 | - try self.init(data: try Data(contentsOf: url)) | |
| 12482 | - } | |
| 12483 | - | |
| 12484 | - func with( | |
| 12485 | - sel: Int? = nil | |
| 12486 | - ) -> Sel { | |
| 12487 | - return Sel( | |
| 12488 | - sel: sel ?? self.sel | |
| 12489 | - ) | |
| 12490 | - } | |
| 12491 | - | |
| 12492 | - func jsonData() throws -> Data { | |
| 12493 | - return try newJSONEncoder().encode(self) | |
| 12494 | - } | |
| 12495 | - | |
| 12496 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12497 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12498 | - } | |
| 12499 | -} | |
| 12500 | - | |
| 12501 | -// MARK: - Select | |
| 12502 | -struct Select: Codable, Sendable { | |
| 12503 | - let select: Int | |
| 12504 | - | |
| 12505 | - enum CodingKeys: String, CodingKey { | |
| 12506 | - case select = "select" | |
| 12507 | - } | |
| 12508 | -} | |
| 12509 | - | |
| 12510 | -// MARK: Select convenience initializers and mutators | |
| 12511 | - | |
| 12512 | -extension Select { | |
| 12513 | - init(data: Data) throws { | |
| 12514 | - self = try newJSONDecoder().decode(Select.self, from: data) | |
| 12515 | - } | |
| 12516 | - | |
| 12517 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12518 | - guard let data = json.data(using: encoding) else { | |
| 12519 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12520 | - } | |
| 12521 | - try self.init(data: data) | |
| 12522 | - } | |
| 12523 | - | |
| 12524 | - init(fromURL url: URL) throws { | |
| 12525 | - try self.init(data: try Data(contentsOf: url)) | |
| 12526 | - } | |
| 12527 | - | |
| 12528 | - func with( | |
| 12529 | - select: Int? = nil | |
| 12530 | - ) -> Select { | |
| 12531 | - return Select( | |
| 12532 | - select: select ?? self.select | |
| 12533 | - ) | |
| 12534 | - } | |
| 12535 | - | |
| 12536 | - func jsonData() throws -> Data { | |
| 12537 | - return try newJSONEncoder().encode(self) | |
| 12538 | - } | |
| 12539 | - | |
| 12540 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12541 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 12542 | - } | |
| 12543 | -} | |
| 12544 | - | |
| 12545 | 12545 | // MARK: - Obj5 |
| 12546 | 12546 | struct Obj5: Codable, Sendable { |
| 12547 | 12547 | let dummy: Int |
| @@ -12559,10 +12559,13 @@ struct Obj5: Codable, Sendable { | ||
| 12559 | 12559 | let obj5Type: Obj5Type |
| 12560 | 12560 | let obj5Typealias: Typealias |
| 12561 | 12561 | let obj5Unowned: Unowned |
| 12562 | - let obj5Var: Var | |
| 12563 | 12562 | let purpleSelf: Obj5Self |
| 12564 | 12563 | let purpleTrue: TrueClass |
| 12564 | + let sealed: Sealed | |
| 12565 | + let sel: Sel | |
| 12566 | + let select: Select | |
| 12565 | 12567 | let sendable: SendableClass |
| 12568 | + let serializationFeature: SerializationFeature | |
| 12566 | 12569 | let serialize: Serialize |
| 12567 | 12570 | let serializerProvider: SerializerProvider |
| 12568 | 12571 | let short: Short |
| @@ -12606,9 +12609,6 @@ struct Obj5: Codable, Sendable { | ||
| 12606 | 12609 | let ushort: Ushort |
| 12607 | 12610 | let using: Using |
| 12608 | 12611 | let utf8JSONReader: Utf8JSONReader |
| 12609 | - let utf8JSONWriter: Utf8JSONWriter | |
| 12610 | - let uuid: UUIDClass | |
| 12611 | - let virtual: Virtual | |
| 12612 | 12612 | |
| 12613 | 12613 | enum CodingKeys: String, CodingKey { |
| 12614 | 12614 | case dummy = "dummy" |
| @@ -12626,10 +12626,13 @@ struct Obj5: Codable, Sendable { | ||
| 12626 | 12626 | case obj5Type = "type" |
| 12627 | 12627 | case obj5Typealias = "typealias" |
| 12628 | 12628 | case obj5Unowned = "unowned" |
| 12629 | - case obj5Var = "var" | |
| 12630 | 12629 | case purpleSelf = "self" |
| 12631 | 12630 | case purpleTrue = "true" |
| 12631 | + case sealed = "sealed" | |
| 12632 | + case sel = "SEL" | |
| 12633 | + case select = "select" | |
| 12632 | 12634 | case sendable = "Sendable" |
| 12635 | + case serializationFeature = "SerializationFeature" | |
| 12633 | 12636 | case serialize = "serialize" |
| 12634 | 12637 | case serializerProvider = "SerializerProvider" |
| 12635 | 12638 | case short = "short" |
| @@ -12673,9 +12676,6 @@ struct Obj5: Codable, Sendable { | ||
| 12673 | 12676 | case ushort = "ushort" |
| 12674 | 12677 | case using = "using" |
| 12675 | 12678 | case utf8JSONReader = "Utf8JsonReader" |
| 12676 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 12677 | - case uuid = "UUID" | |
| 12678 | - case virtual = "virtual" | |
| 12679 | 12679 | } |
| 12680 | 12680 | } |
| 12681 | 12681 | |
| @@ -12713,10 +12713,13 @@ extension Obj5 { | ||
| 12713 | 12713 | obj5Type: Obj5Type? = nil, |
| 12714 | 12714 | obj5Typealias: Typealias? = nil, |
| 12715 | 12715 | obj5Unowned: Unowned? = nil, |
| 12716 | - obj5Var: Var? = nil, | |
| 12717 | 12716 | purpleSelf: Obj5Self? = nil, |
| 12718 | 12717 | purpleTrue: TrueClass? = nil, |
| 12718 | + sealed: Sealed? = nil, | |
| 12719 | + sel: Sel? = nil, | |
| 12720 | + select: Select? = nil, | |
| 12719 | 12721 | sendable: SendableClass? = nil, |
| 12722 | + serializationFeature: SerializationFeature? = nil, | |
| 12720 | 12723 | serialize: Serialize? = nil, |
| 12721 | 12724 | serializerProvider: SerializerProvider? = nil, |
| 12722 | 12725 | short: Short? = nil, |
| @@ -12759,10 +12762,7 @@ extension Obj5 { | ||
| 12759 | 12762 | unsigned: Unsigned? = nil, |
| 12760 | 12763 | ushort: Ushort? = nil, |
| 12761 | 12764 | using: Using? = nil, |
| 12762 | - utf8JSONReader: Utf8JSONReader? = nil, | |
| 12763 | - utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 12764 | - uuid: UUIDClass? = nil, | |
| 12765 | - virtual: Virtual? = nil | |
| 12765 | + utf8JSONReader: Utf8JSONReader? = nil | |
| 12766 | 12766 | ) -> Obj5 { |
| 12767 | 12767 | return Obj5( |
| 12768 | 12768 | dummy: dummy ?? self.dummy, |
| @@ -12780,10 +12780,13 @@ extension Obj5 { | ||
| 12780 | 12780 | obj5Type: obj5Type ?? self.obj5Type, |
| 12781 | 12781 | obj5Typealias: obj5Typealias ?? self.obj5Typealias, |
| 12782 | 12782 | obj5Unowned: obj5Unowned ?? self.obj5Unowned, |
| 12783 | - obj5Var: obj5Var ?? self.obj5Var, | |
| 12784 | 12783 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 12785 | 12784 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 12785 | + sealed: sealed ?? self.sealed, | |
| 12786 | + sel: sel ?? self.sel, | |
| 12787 | + select: select ?? self.select, | |
| 12786 | 12788 | sendable: sendable ?? self.sendable, |
| 12789 | + serializationFeature: serializationFeature ?? self.serializationFeature, | |
| 12787 | 12790 | serialize: serialize ?? self.serialize, |
| 12788 | 12791 | serializerProvider: serializerProvider ?? self.serializerProvider, |
| 12789 | 12792 | short: short ?? self.short, |
| @@ -12826,10 +12829,7 @@ extension Obj5 { | ||
| 12826 | 12829 | unsigned: unsigned ?? self.unsigned, |
| 12827 | 12830 | ushort: ushort ?? self.ushort, |
| 12828 | 12831 | using: using ?? self.using, |
| 12829 | - utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, | |
| 12830 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 12831 | - uuid: uuid ?? self.uuid, | |
| 12832 | - virtual: virtual ?? self.virtual | |
| 12832 | + utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader | |
| 12833 | 12833 | ) |
| 12834 | 12834 | } |
| 12835 | 12835 | |
| @@ -13458,20 +13458,20 @@ extension Unowned { | ||
| 13458 | 13458 | } |
| 13459 | 13459 | } |
| 13460 | 13460 | |
| 13461 | -// MARK: - Var | |
| 13462 | -struct Var: Codable, Sendable { | |
| 13463 | - let varVar: Int | |
| 13461 | +// MARK: - Obj5Self | |
| 13462 | +struct Obj5Self: Codable, Sendable { | |
| 13463 | + let selfSelf: Int | |
| 13464 | 13464 | |
| 13465 | 13465 | enum CodingKeys: String, CodingKey { |
| 13466 | - case varVar = "var" | |
| 13466 | + case selfSelf = "self" | |
| 13467 | 13467 | } |
| 13468 | 13468 | } |
| 13469 | 13469 | |
| 13470 | -// MARK: Var convenience initializers and mutators | |
| 13470 | +// MARK: Obj5Self convenience initializers and mutators | |
| 13471 | 13471 | |
| 13472 | -extension Var { | |
| 13472 | +extension Obj5Self { | |
| 13473 | 13473 | init(data: Data) throws { |
| 13474 | - self = try newJSONDecoder().decode(Var.self, from: data) | |
| 13474 | + self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13475 | 13475 | } |
| 13476 | 13476 | |
| 13477 | 13477 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13486,10 +13486,10 @@ extension Var { | ||
| 13486 | 13486 | } |
| 13487 | 13487 | |
| 13488 | 13488 | func with( |
| 13489 | - varVar: Int? = nil | |
| 13490 | - ) -> Var { | |
| 13491 | - return Var( | |
| 13492 | - varVar: varVar ?? self.varVar | |
| 13489 | + selfSelf: Int? = nil | |
| 13490 | + ) -> Obj5Self { | |
| 13491 | + return Obj5Self( | |
| 13492 | + selfSelf: selfSelf ?? self.selfSelf | |
| 13493 | 13493 | ) |
| 13494 | 13494 | } |
| 13495 | 13495 | |
| @@ -13502,20 +13502,20 @@ extension Var { | ||
| 13502 | 13502 | } |
| 13503 | 13503 | } |
| 13504 | 13504 | |
| 13505 | -// MARK: - Obj5Self | |
| 13506 | -struct Obj5Self: Codable, Sendable { | |
| 13507 | - let selfSelf: Int | |
| 13505 | +// MARK: - TrueClass | |
| 13506 | +struct TrueClass: Codable, Sendable { | |
| 13507 | + let trueTrue: Int | |
| 13508 | 13508 | |
| 13509 | 13509 | enum CodingKeys: String, CodingKey { |
| 13510 | - case selfSelf = "self" | |
| 13510 | + case trueTrue = "true" | |
| 13511 | 13511 | } |
| 13512 | 13512 | } |
| 13513 | 13513 | |
| 13514 | -// MARK: Obj5Self convenience initializers and mutators | |
| 13514 | +// MARK: TrueClass convenience initializers and mutators | |
| 13515 | 13515 | |
| 13516 | -extension Obj5Self { | |
| 13516 | +extension TrueClass { | |
| 13517 | 13517 | init(data: Data) throws { |
| 13518 | - self = try newJSONDecoder().decode(Obj5Self.self, from: data) | |
| 13518 | + self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13519 | 13519 | } |
| 13520 | 13520 | |
| 13521 | 13521 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13530,10 +13530,10 @@ extension Obj5Self { | ||
| 13530 | 13530 | } |
| 13531 | 13531 | |
| 13532 | 13532 | func with( |
| 13533 | - selfSelf: Int? = nil | |
| 13534 | - ) -> Obj5Self { | |
| 13535 | - return Obj5Self( | |
| 13536 | - selfSelf: selfSelf ?? self.selfSelf | |
| 13533 | + trueTrue: Int? = nil | |
| 13534 | + ) -> TrueClass { | |
| 13535 | + return TrueClass( | |
| 13536 | + trueTrue: trueTrue ?? self.trueTrue | |
| 13537 | 13537 | ) |
| 13538 | 13538 | } |
| 13539 | 13539 | |
| @@ -13546,20 +13546,20 @@ extension Obj5Self { | ||
| 13546 | 13546 | } |
| 13547 | 13547 | } |
| 13548 | 13548 | |
| 13549 | -// MARK: - TrueClass | |
| 13550 | -struct TrueClass: Codable, Sendable { | |
| 13551 | - let trueTrue: Int | |
| 13549 | +// MARK: - Sealed | |
| 13550 | +struct Sealed: Codable, Sendable { | |
| 13551 | + let sealed: Int | |
| 13552 | 13552 | |
| 13553 | 13553 | enum CodingKeys: String, CodingKey { |
| 13554 | - case trueTrue = "true" | |
| 13554 | + case sealed = "sealed" | |
| 13555 | 13555 | } |
| 13556 | 13556 | } |
| 13557 | 13557 | |
| 13558 | -// MARK: TrueClass convenience initializers and mutators | |
| 13558 | +// MARK: Sealed convenience initializers and mutators | |
| 13559 | 13559 | |
| 13560 | -extension TrueClass { | |
| 13560 | +extension Sealed { | |
| 13561 | 13561 | init(data: Data) throws { |
| 13562 | - self = try newJSONDecoder().decode(TrueClass.self, from: data) | |
| 13562 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 13563 | 13563 | } |
| 13564 | 13564 | |
| 13565 | 13565 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -13574,10 +13574,98 @@ extension TrueClass { | ||
| 13574 | 13574 | } |
| 13575 | 13575 | |
| 13576 | 13576 | func with( |
| 13577 | - trueTrue: Int? = nil | |
| 13578 | - ) -> TrueClass { | |
| 13579 | - return TrueClass( | |
| 13580 | - trueTrue: trueTrue ?? self.trueTrue | |
| 13577 | + sealed: Int? = nil | |
| 13578 | + ) -> Sealed { | |
| 13579 | + return Sealed( | |
| 13580 | + sealed: sealed ?? self.sealed | |
| 13581 | + ) | |
| 13582 | + } | |
| 13583 | + | |
| 13584 | + func jsonData() throws -> Data { | |
| 13585 | + return try newJSONEncoder().encode(self) | |
| 13586 | + } | |
| 13587 | + | |
| 13588 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13589 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13590 | + } | |
| 13591 | +} | |
| 13592 | + | |
| 13593 | +// MARK: - Sel | |
| 13594 | +struct Sel: Codable, Sendable { | |
| 13595 | + let sel: Int | |
| 13596 | + | |
| 13597 | + enum CodingKeys: String, CodingKey { | |
| 13598 | + case sel = "SEL" | |
| 13599 | + } | |
| 13600 | +} | |
| 13601 | + | |
| 13602 | +// MARK: Sel convenience initializers and mutators | |
| 13603 | + | |
| 13604 | +extension Sel { | |
| 13605 | + init(data: Data) throws { | |
| 13606 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 13607 | + } | |
| 13608 | + | |
| 13609 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13610 | + guard let data = json.data(using: encoding) else { | |
| 13611 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13612 | + } | |
| 13613 | + try self.init(data: data) | |
| 13614 | + } | |
| 13615 | + | |
| 13616 | + init(fromURL url: URL) throws { | |
| 13617 | + try self.init(data: try Data(contentsOf: url)) | |
| 13618 | + } | |
| 13619 | + | |
| 13620 | + func with( | |
| 13621 | + sel: Int? = nil | |
| 13622 | + ) -> Sel { | |
| 13623 | + return Sel( | |
| 13624 | + sel: sel ?? self.sel | |
| 13625 | + ) | |
| 13626 | + } | |
| 13627 | + | |
| 13628 | + func jsonData() throws -> Data { | |
| 13629 | + return try newJSONEncoder().encode(self) | |
| 13630 | + } | |
| 13631 | + | |
| 13632 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13633 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13634 | + } | |
| 13635 | +} | |
| 13636 | + | |
| 13637 | +// MARK: - Select | |
| 13638 | +struct Select: Codable, Sendable { | |
| 13639 | + let select: Int | |
| 13640 | + | |
| 13641 | + enum CodingKeys: String, CodingKey { | |
| 13642 | + case select = "select" | |
| 13643 | + } | |
| 13644 | +} | |
| 13645 | + | |
| 13646 | +// MARK: Select convenience initializers and mutators | |
| 13647 | + | |
| 13648 | +extension Select { | |
| 13649 | + init(data: Data) throws { | |
| 13650 | + self = try newJSONDecoder().decode(Select.self, from: data) | |
| 13651 | + } | |
| 13652 | + | |
| 13653 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13654 | + guard let data = json.data(using: encoding) else { | |
| 13655 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13656 | + } | |
| 13657 | + try self.init(data: data) | |
| 13658 | + } | |
| 13659 | + | |
| 13660 | + init(fromURL url: URL) throws { | |
| 13661 | + try self.init(data: try Data(contentsOf: url)) | |
| 13662 | + } | |
| 13663 | + | |
| 13664 | + func with( | |
| 13665 | + select: Int? = nil | |
| 13666 | + ) -> Select { | |
| 13667 | + return Select( | |
| 13668 | + select: select ?? self.select | |
| 13581 | 13669 | ) |
| 13582 | 13670 | } |
| 13583 | 13671 | |
| @@ -13634,6 +13722,50 @@ extension SendableClass { | ||
| 13634 | 13722 | } |
| 13635 | 13723 | } |
| 13636 | 13724 | |
| 13725 | +// MARK: - SerializationFeature | |
| 13726 | +struct SerializationFeature: Codable, Sendable { | |
| 13727 | + let serializationFeature: Int | |
| 13728 | + | |
| 13729 | + enum CodingKeys: String, CodingKey { | |
| 13730 | + case serializationFeature = "SerializationFeature" | |
| 13731 | + } | |
| 13732 | +} | |
| 13733 | + | |
| 13734 | +// MARK: SerializationFeature convenience initializers and mutators | |
| 13735 | + | |
| 13736 | +extension SerializationFeature { | |
| 13737 | + init(data: Data) throws { | |
| 13738 | + self = try newJSONDecoder().decode(SerializationFeature.self, from: data) | |
| 13739 | + } | |
| 13740 | + | |
| 13741 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13742 | + guard let data = json.data(using: encoding) else { | |
| 13743 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13744 | + } | |
| 13745 | + try self.init(data: data) | |
| 13746 | + } | |
| 13747 | + | |
| 13748 | + init(fromURL url: URL) throws { | |
| 13749 | + try self.init(data: try Data(contentsOf: url)) | |
| 13750 | + } | |
| 13751 | + | |
| 13752 | + func with( | |
| 13753 | + serializationFeature: Int? = nil | |
| 13754 | + ) -> SerializationFeature { | |
| 13755 | + return SerializationFeature( | |
| 13756 | + serializationFeature: serializationFeature ?? self.serializationFeature | |
| 13757 | + ) | |
| 13758 | + } | |
| 13759 | + | |
| 13760 | + func jsonData() throws -> Data { | |
| 13761 | + return try newJSONEncoder().encode(self) | |
| 13762 | + } | |
| 13763 | + | |
| 13764 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13765 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13766 | + } | |
| 13767 | +} | |
| 13768 | + | |
| 13637 | 13769 | // MARK: - Serialize |
| 13638 | 13770 | struct Serialize: Codable, Sendable { |
| 13639 | 13771 | let serialize: Int |
| @@ -15526,145 +15658,17 @@ extension Utf8JSONReader { | ||
| 15526 | 15658 | } |
| 15527 | 15659 | } |
| 15528 | 15660 | |
| 15529 | -// MARK: - Utf8JSONWriter | |
| 15530 | -struct Utf8JSONWriter: Codable, Sendable { | |
| 15531 | - let utf8JSONWriter: Int | |
| 15532 | - | |
| 15533 | - enum CodingKeys: String, CodingKey { | |
| 15534 | - case utf8JSONWriter = "Utf8JsonWriter" | |
| 15535 | - } | |
| 15536 | -} | |
| 15537 | - | |
| 15538 | -// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 15539 | - | |
| 15540 | -extension Utf8JSONWriter { | |
| 15541 | - init(data: Data) throws { | |
| 15542 | - self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 15543 | - } | |
| 15544 | - | |
| 15545 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15546 | - guard let data = json.data(using: encoding) else { | |
| 15547 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15548 | - } | |
| 15549 | - try self.init(data: data) | |
| 15550 | - } | |
| 15551 | - | |
| 15552 | - init(fromURL url: URL) throws { | |
| 15553 | - try self.init(data: try Data(contentsOf: url)) | |
| 15554 | - } | |
| 15555 | - | |
| 15556 | - func with( | |
| 15557 | - utf8JSONWriter: Int? = nil | |
| 15558 | - ) -> Utf8JSONWriter { | |
| 15559 | - return Utf8JSONWriter( | |
| 15560 | - utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 15561 | - ) | |
| 15562 | - } | |
| 15563 | - | |
| 15564 | - func jsonData() throws -> Data { | |
| 15565 | - return try newJSONEncoder().encode(self) | |
| 15566 | - } | |
| 15567 | - | |
| 15568 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15569 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15570 | - } | |
| 15571 | -} | |
| 15572 | - | |
| 15573 | -// MARK: - UUIDClass | |
| 15574 | -struct UUIDClass: Codable, Sendable { | |
| 15575 | - let uuid: Int | |
| 15576 | - | |
| 15577 | - enum CodingKeys: String, CodingKey { | |
| 15578 | - case uuid = "UUID" | |
| 15579 | - } | |
| 15580 | -} | |
| 15581 | - | |
| 15582 | -// MARK: UUIDClass convenience initializers and mutators | |
| 15583 | - | |
| 15584 | -extension UUIDClass { | |
| 15585 | - init(data: Data) throws { | |
| 15586 | - self = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 15587 | - } | |
| 15588 | - | |
| 15589 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15590 | - guard let data = json.data(using: encoding) else { | |
| 15591 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15592 | - } | |
| 15593 | - try self.init(data: data) | |
| 15594 | - } | |
| 15595 | - | |
| 15596 | - init(fromURL url: URL) throws { | |
| 15597 | - try self.init(data: try Data(contentsOf: url)) | |
| 15598 | - } | |
| 15599 | - | |
| 15600 | - func with( | |
| 15601 | - uuid: Int? = nil | |
| 15602 | - ) -> UUIDClass { | |
| 15603 | - return UUIDClass( | |
| 15604 | - uuid: uuid ?? self.uuid | |
| 15605 | - ) | |
| 15606 | - } | |
| 15607 | - | |
| 15608 | - func jsonData() throws -> Data { | |
| 15609 | - return try newJSONEncoder().encode(self) | |
| 15610 | - } | |
| 15611 | - | |
| 15612 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15613 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15614 | - } | |
| 15615 | -} | |
| 15616 | - | |
| 15617 | -// MARK: - Virtual | |
| 15618 | -struct Virtual: Codable, Sendable { | |
| 15619 | - let virtual: Int | |
| 15620 | - | |
| 15621 | - enum CodingKeys: String, CodingKey { | |
| 15622 | - case virtual = "virtual" | |
| 15623 | - } | |
| 15624 | -} | |
| 15625 | - | |
| 15626 | -// MARK: Virtual convenience initializers and mutators | |
| 15627 | - | |
| 15628 | -extension Virtual { | |
| 15629 | - init(data: Data) throws { | |
| 15630 | - self = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 15631 | - } | |
| 15632 | - | |
| 15633 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15634 | - guard let data = json.data(using: encoding) else { | |
| 15635 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15636 | - } | |
| 15637 | - try self.init(data: data) | |
| 15638 | - } | |
| 15639 | - | |
| 15640 | - init(fromURL url: URL) throws { | |
| 15641 | - try self.init(data: try Data(contentsOf: url)) | |
| 15642 | - } | |
| 15643 | - | |
| 15644 | - func with( | |
| 15645 | - virtual: Int? = nil | |
| 15646 | - ) -> Virtual { | |
| 15647 | - return Virtual( | |
| 15648 | - virtual: virtual ?? self.virtual | |
| 15649 | - ) | |
| 15650 | - } | |
| 15651 | - | |
| 15652 | - func jsonData() throws -> Data { | |
| 15653 | - return try newJSONEncoder().encode(self) | |
| 15654 | - } | |
| 15655 | - | |
| 15656 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15657 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15658 | - } | |
| 15659 | -} | |
| 15660 | - | |
| 15661 | 15661 | // MARK: - Obj6 |
| 15662 | 15662 | struct Obj6: Codable, Sendable { |
| 15663 | 15663 | let dummy: Int |
| 15664 | + let obj6Var: Var | |
| 15664 | 15665 | let obj6Weak: Weak |
| 15665 | 15666 | let obj6Where: Where |
| 15666 | 15667 | let obj6While: While |
| 15667 | 15668 | let obj6WillSet: WillSet |
| 15669 | + let utf8JSONWriter: Utf8JSONWriter | |
| 15670 | + let uuid: UUIDClass | |
| 15671 | + let virtual: Virtual | |
| 15668 | 15672 | let void: Void |
| 15669 | 15673 | let volatile: Volatile |
| 15670 | 15674 | let wcharT: WcharT |
| @@ -15676,10 +15680,14 @@ struct Obj6: Codable, Sendable { | ||
| 15676 | 15680 | |
| 15677 | 15681 | enum CodingKeys: String, CodingKey { |
| 15678 | 15682 | case dummy = "dummy" |
| 15683 | + case obj6Var = "var" | |
| 15679 | 15684 | case obj6Weak = "weak" |
| 15680 | 15685 | case obj6Where = "where" |
| 15681 | 15686 | case obj6While = "while" |
| 15682 | 15687 | case obj6WillSet = "willSet" |
| 15688 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 15689 | + case uuid = "UUID" | |
| 15690 | + case virtual = "virtual" | |
| 15683 | 15691 | case void = "void" |
| 15684 | 15692 | case volatile = "volatile" |
| 15685 | 15693 | case wcharT = "wchar_t" |
| @@ -15711,10 +15719,14 @@ extension Obj6 { | ||
| 15711 | 15719 | |
| 15712 | 15720 | func with( |
| 15713 | 15721 | dummy: Int? = nil, |
| 15722 | + obj6Var: Var? = nil, | |
| 15714 | 15723 | obj6Weak: Weak? = nil, |
| 15715 | 15724 | obj6Where: Where? = nil, |
| 15716 | 15725 | obj6While: While? = nil, |
| 15717 | 15726 | obj6WillSet: WillSet? = nil, |
| 15727 | + utf8JSONWriter: Utf8JSONWriter? = nil, | |
| 15728 | + uuid: UUIDClass? = nil, | |
| 15729 | + virtual: Virtual? = nil, | |
| 15718 | 15730 | void: Void? = nil, |
| 15719 | 15731 | volatile: Volatile? = nil, |
| 15720 | 15732 | wcharT: WcharT? = nil, |
| @@ -15726,10 +15738,14 @@ extension Obj6 { | ||
| 15726 | 15738 | ) -> Obj6 { |
| 15727 | 15739 | return Obj6( |
| 15728 | 15740 | dummy: dummy ?? self.dummy, |
| 15741 | + obj6Var: obj6Var ?? self.obj6Var, | |
| 15729 | 15742 | obj6Weak: obj6Weak ?? self.obj6Weak, |
| 15730 | 15743 | obj6Where: obj6Where ?? self.obj6Where, |
| 15731 | 15744 | obj6While: obj6While ?? self.obj6While, |
| 15732 | 15745 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 15746 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, | |
| 15747 | + uuid: uuid ?? self.uuid, | |
| 15748 | + virtual: virtual ?? self.virtual, | |
| 15733 | 15749 | void: void ?? self.void, |
| 15734 | 15750 | volatile: volatile ?? self.volatile, |
| 15735 | 15751 | wcharT: wcharT ?? self.wcharT, |
| @@ -15750,6 +15766,50 @@ extension Obj6 { | ||
| 15750 | 15766 | } |
| 15751 | 15767 | } |
| 15752 | 15768 | |
| 15769 | +// MARK: - Var | |
| 15770 | +struct Var: Codable, Sendable { | |
| 15771 | + let varVar: Int | |
| 15772 | + | |
| 15773 | + enum CodingKeys: String, CodingKey { | |
| 15774 | + case varVar = "var" | |
| 15775 | + } | |
| 15776 | +} | |
| 15777 | + | |
| 15778 | +// MARK: Var convenience initializers and mutators | |
| 15779 | + | |
| 15780 | +extension Var { | |
| 15781 | + init(data: Data) throws { | |
| 15782 | + self = try newJSONDecoder().decode(Var.self, from: data) | |
| 15783 | + } | |
| 15784 | + | |
| 15785 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15786 | + guard let data = json.data(using: encoding) else { | |
| 15787 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15788 | + } | |
| 15789 | + try self.init(data: data) | |
| 15790 | + } | |
| 15791 | + | |
| 15792 | + init(fromURL url: URL) throws { | |
| 15793 | + try self.init(data: try Data(contentsOf: url)) | |
| 15794 | + } | |
| 15795 | + | |
| 15796 | + func with( | |
| 15797 | + varVar: Int? = nil | |
| 15798 | + ) -> Var { | |
| 15799 | + return Var( | |
| 15800 | + varVar: varVar ?? self.varVar | |
| 15801 | + ) | |
| 15802 | + } | |
| 15803 | + | |
| 15804 | + func jsonData() throws -> Data { | |
| 15805 | + return try newJSONEncoder().encode(self) | |
| 15806 | + } | |
| 15807 | + | |
| 15808 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15809 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15810 | + } | |
| 15811 | +} | |
| 15812 | + | |
| 15753 | 15813 | // MARK: - Weak |
| 15754 | 15814 | struct Weak: Codable, Sendable { |
| 15755 | 15815 | let weakWeak: Int |
| @@ -15926,6 +15986,138 @@ extension WillSet { | ||
| 15926 | 15986 | } |
| 15927 | 15987 | } |
| 15928 | 15988 | |
| 15989 | +// MARK: - Utf8JSONWriter | |
| 15990 | +struct Utf8JSONWriter: Codable, Sendable { | |
| 15991 | + let utf8JSONWriter: Int | |
| 15992 | + | |
| 15993 | + enum CodingKeys: String, CodingKey { | |
| 15994 | + case utf8JSONWriter = "Utf8JsonWriter" | |
| 15995 | + } | |
| 15996 | +} | |
| 15997 | + | |
| 15998 | +// MARK: Utf8JSONWriter convenience initializers and mutators | |
| 15999 | + | |
| 16000 | +extension Utf8JSONWriter { | |
| 16001 | + init(data: Data) throws { | |
| 16002 | + self = try newJSONDecoder().decode(Utf8JSONWriter.self, from: data) | |
| 16003 | + } | |
| 16004 | + | |
| 16005 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16006 | + guard let data = json.data(using: encoding) else { | |
| 16007 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16008 | + } | |
| 16009 | + try self.init(data: data) | |
| 16010 | + } | |
| 16011 | + | |
| 16012 | + init(fromURL url: URL) throws { | |
| 16013 | + try self.init(data: try Data(contentsOf: url)) | |
| 16014 | + } | |
| 16015 | + | |
| 16016 | + func with( | |
| 16017 | + utf8JSONWriter: Int? = nil | |
| 16018 | + ) -> Utf8JSONWriter { | |
| 16019 | + return Utf8JSONWriter( | |
| 16020 | + utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter | |
| 16021 | + ) | |
| 16022 | + } | |
| 16023 | + | |
| 16024 | + func jsonData() throws -> Data { | |
| 16025 | + return try newJSONEncoder().encode(self) | |
| 16026 | + } | |
| 16027 | + | |
| 16028 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16029 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16030 | + } | |
| 16031 | +} | |
| 16032 | + | |
| 16033 | +// MARK: - UUIDClass | |
| 16034 | +struct UUIDClass: Codable, Sendable { | |
| 16035 | + let uuid: Int | |
| 16036 | + | |
| 16037 | + enum CodingKeys: String, CodingKey { | |
| 16038 | + case uuid = "UUID" | |
| 16039 | + } | |
| 16040 | +} | |
| 16041 | + | |
| 16042 | +// MARK: UUIDClass convenience initializers and mutators | |
| 16043 | + | |
| 16044 | +extension UUIDClass { | |
| 16045 | + init(data: Data) throws { | |
| 16046 | + self = try newJSONDecoder().decode(UUIDClass.self, from: data) | |
| 16047 | + } | |
| 16048 | + | |
| 16049 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16050 | + guard let data = json.data(using: encoding) else { | |
| 16051 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16052 | + } | |
| 16053 | + try self.init(data: data) | |
| 16054 | + } | |
| 16055 | + | |
| 16056 | + init(fromURL url: URL) throws { | |
| 16057 | + try self.init(data: try Data(contentsOf: url)) | |
| 16058 | + } | |
| 16059 | + | |
| 16060 | + func with( | |
| 16061 | + uuid: Int? = nil | |
| 16062 | + ) -> UUIDClass { | |
| 16063 | + return UUIDClass( | |
| 16064 | + uuid: uuid ?? self.uuid | |
| 16065 | + ) | |
| 16066 | + } | |
| 16067 | + | |
| 16068 | + func jsonData() throws -> Data { | |
| 16069 | + return try newJSONEncoder().encode(self) | |
| 16070 | + } | |
| 16071 | + | |
| 16072 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16073 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16074 | + } | |
| 16075 | +} | |
| 16076 | + | |
| 16077 | +// MARK: - Virtual | |
| 16078 | +struct Virtual: Codable, Sendable { | |
| 16079 | + let virtual: Int | |
| 16080 | + | |
| 16081 | + enum CodingKeys: String, CodingKey { | |
| 16082 | + case virtual = "virtual" | |
| 16083 | + } | |
| 16084 | +} | |
| 16085 | + | |
| 16086 | +// MARK: Virtual convenience initializers and mutators | |
| 16087 | + | |
| 16088 | +extension Virtual { | |
| 16089 | + init(data: Data) throws { | |
| 16090 | + self = try newJSONDecoder().decode(Virtual.self, from: data) | |
| 16091 | + } | |
| 16092 | + | |
| 16093 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16094 | + guard let data = json.data(using: encoding) else { | |
| 16095 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16096 | + } | |
| 16097 | + try self.init(data: data) | |
| 16098 | + } | |
| 16099 | + | |
| 16100 | + init(fromURL url: URL) throws { | |
| 16101 | + try self.init(data: try Data(contentsOf: url)) | |
| 16102 | + } | |
| 16103 | + | |
| 16104 | + func with( | |
| 16105 | + virtual: Int? = nil | |
| 16106 | + ) -> Virtual { | |
| 16107 | + return Virtual( | |
| 16108 | + virtual: virtual ?? self.virtual | |
| 16109 | + ) | |
| 16110 | + } | |
| 16111 | + | |
| 16112 | + func jsonData() throws -> Data { | |
| 16113 | + return try newJSONEncoder().encode(self) | |
| 16114 | + } | |
| 16115 | + | |
| 16116 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16117 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16118 | + } | |
| 16119 | +} | |
| 16120 | + | |
| 15929 | 16121 | // MARK: - Void |
| 15930 | 16122 | struct Void: Codable, Sendable { |
| 15931 | 16123 | let void: Int |
Mtypescript-effect-schemadefault / TopLevel.ts+65 −45
| @@ -55,22 +55,6 @@ export class Void extends S.Class<Void>("Void")({ | ||
| 55 | 55 | "void": S.Int, |
| 56 | 56 | }) {} |
| 57 | 57 | |
| 58 | -export class Obj6 extends S.Class<Obj6>("Obj6")({ | |
| 59 | - "dummy": S.Int, | |
| 60 | - "void": Void, | |
| 61 | - "volatile": Volatile, | |
| 62 | - "wchar_t": WcharT, | |
| 63 | - "weak": Weak, | |
| 64 | - "where": Where, | |
| 65 | - "while": While, | |
| 66 | - "willSet": WillSet, | |
| 67 | - "with": With, | |
| 68 | - "xor": Xor, | |
| 69 | - "xor_eq": XorEq, | |
| 70 | - "YES": Yes, | |
| 71 | - "yield": Yield, | |
| 72 | -}) {} | |
| 73 | - | |
| 74 | 58 | export class Virtual extends S.Class<Virtual>("Virtual")({ |
| 75 | 59 | "virtual": S.Int, |
| 76 | 60 | }) {} |
| @@ -87,6 +71,26 @@ export class Utf8JsonWriter extends S.Class<Utf8JsonWriter>("Utf8JsonWriter")({ | ||
| 87 | 71 | "Utf8JsonWriter": S.Int, |
| 88 | 72 | }) {} |
| 89 | 73 | |
| 74 | +export class Obj6 extends S.Class<Obj6>("Obj6")({ | |
| 75 | + "dummy": S.Int, | |
| 76 | + "Utf8JsonWriter": Utf8JsonWriter, | |
| 77 | + "UUID": Uuid, | |
| 78 | + "var": Var, | |
| 79 | + "virtual": Virtual, | |
| 80 | + "void": Void, | |
| 81 | + "volatile": Volatile, | |
| 82 | + "wchar_t": WcharT, | |
| 83 | + "weak": Weak, | |
| 84 | + "where": Where, | |
| 85 | + "while": While, | |
| 86 | + "willSet": WillSet, | |
| 87 | + "with": With, | |
| 88 | + "xor": Xor, | |
| 89 | + "xor_eq": XorEq, | |
| 90 | + "YES": Yes, | |
| 91 | + "yield": Yield, | |
| 92 | +}) {} | |
| 93 | + | |
| 90 | 94 | export class Utf8JsonReader extends S.Class<Utf8JsonReader>("Utf8JsonReader")({ |
| 91 | 95 | "Utf8JsonReader": S.Int, |
| 92 | 96 | }) {} |
| @@ -308,6 +312,10 @@ export class Serialize extends S.Class<Serialize>("Serialize")({ | ||
| 308 | 312 | "serialize": S.Int, |
| 309 | 313 | }) {} |
| 310 | 314 | |
| 315 | +export class SerializationFeature extends S.Class<SerializationFeature>("SerializationFeature")({ | |
| 316 | + "SerializationFeature": S.Int, | |
| 317 | +}) {} | |
| 318 | + | |
| 311 | 319 | export class Sendable extends S.Class<Sendable>("Sendable")({ |
| 312 | 320 | "Sendable": S.Int, |
| 313 | 321 | }) {} |
| @@ -316,6 +324,18 @@ export class Self extends S.Class<Self>("Self")({ | ||
| 316 | 324 | "Self": S.Int, |
| 317 | 325 | }) {} |
| 318 | 326 | |
| 327 | +export class Select extends S.Class<Select>("Select")({ | |
| 328 | + "select": S.Int, | |
| 329 | +}) {} | |
| 330 | + | |
| 331 | +export class Sel extends S.Class<Sel>("Sel")({ | |
| 332 | + "SEL": S.Int, | |
| 333 | +}) {} | |
| 334 | + | |
| 335 | +export class Sealed extends S.Class<Sealed>("Sealed")({ | |
| 336 | + "sealed": S.Int, | |
| 337 | +}) {} | |
| 338 | + | |
| 319 | 339 | export class TypeClass extends S.Class<TypeClass>("TypeClass")({ |
| 320 | 340 | "type": S.Int, |
| 321 | 341 | }) {} |
| @@ -333,8 +353,12 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({ | ||
| 333 | 353 | "self": SelfClass, |
| 334 | 354 | "true": TrueClass, |
| 335 | 355 | "type": TypeClass, |
| 356 | + "sealed": Sealed, | |
| 357 | + "SEL": Sel, | |
| 358 | + "select": Select, | |
| 336 | 359 | "Self": Self, |
| 337 | 360 | "Sendable": Sendable, |
| 361 | + "SerializationFeature": SerializationFeature, | |
| 338 | 362 | "serialize": Serialize, |
| 339 | 363 | "SerializerProvider": SerializerProvider, |
| 340 | 364 | "set": Set, |
| @@ -390,25 +414,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({ | ||
| 390 | 414 | "ushort": Ushort, |
| 391 | 415 | "using": Using, |
| 392 | 416 | "Utf8JsonReader": Utf8JsonReader, |
| 393 | - "Utf8JsonWriter": Utf8JsonWriter, | |
| 394 | - "UUID": Uuid, | |
| 395 | - "var": Var, | |
| 396 | - "virtual": Virtual, | |
| 397 | 417 | }) {} |
| 398 | 418 | Object.defineProperty(Obj5.prototype, "toString", { writable: true }); |
| 399 | 419 | |
| 400 | -export class Select extends S.Class<Select>("Select")({ | |
| 401 | - "select": S.Int, | |
| 402 | -}) {} | |
| 403 | - | |
| 404 | -export class Sel extends S.Class<Sel>("Sel")({ | |
| 405 | - "SEL": S.Int, | |
| 406 | -}) {} | |
| 407 | - | |
| 408 | -export class Sealed extends S.Class<Sealed>("Sealed")({ | |
| 409 | - "sealed": S.Int, | |
| 410 | -}) {} | |
| 411 | - | |
| 412 | 420 | export class Sbyte extends S.Class<Sbyte>("Sbyte")({ |
| 413 | 421 | "sbyte": S.Int, |
| 414 | 422 | }) {} |
| @@ -581,6 +589,14 @@ export class Of extends S.Class<Of>("Of")({ | ||
| 581 | 589 | "of": S.Int, |
| 582 | 590 | }) {} |
| 583 | 591 | |
| 592 | +export class ObjectWriter extends S.Class<ObjectWriter>("ObjectWriter")({ | |
| 593 | + "ObjectWriter": S.Int, | |
| 594 | +}) {} | |
| 595 | + | |
| 596 | +export class ObjectReader extends S.Class<ObjectReader>("ObjectReader")({ | |
| 597 | + "ObjectReader": S.Int, | |
| 598 | +}) {} | |
| 599 | + | |
| 584 | 600 | export class ObjectMapper extends S.Class<ObjectMapper>("ObjectMapper")({ |
| 585 | 601 | "ObjectMapper": S.Int, |
| 586 | 602 | }) {} |
| @@ -649,6 +665,10 @@ export class Nonatomic extends S.Class<Nonatomic>("Nonatomic")({ | ||
| 649 | 665 | "nonatomic": S.Int, |
| 650 | 666 | }) {} |
| 651 | 667 | |
| 668 | +export class Noexcept extends S.Class<Noexcept>("Noexcept")({ | |
| 669 | + "noexcept": S.Int, | |
| 670 | +}) {} | |
| 671 | + | |
| 652 | 672 | export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({ |
| 653 | 673 | "noSuchMethod": S.Int, |
| 654 | 674 | }) {} |
| @@ -656,6 +676,7 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({ | ||
| 656 | 676 | export class Obj4 extends S.Class<Obj4>("Obj4")({ |
| 657 | 677 | "dummy": S.Int, |
| 658 | 678 | "noSuchMethod": NoSuchMethod, |
| 679 | + "noexcept": Noexcept, | |
| 659 | 680 | "nonatomic": Nonatomic, |
| 660 | 681 | "None": None, |
| 661 | 682 | "nonlocal": Nonlocal, |
| @@ -673,6 +694,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 673 | 694 | "protocol": ProtocolClass, |
| 674 | 695 | "object": ObjectClass, |
| 675 | 696 | "ObjectMapper": ObjectMapper, |
| 697 | + "ObjectReader": ObjectReader, | |
| 698 | + "ObjectWriter": ObjectWriter, | |
| 676 | 699 | "of": Of, |
| 677 | 700 | "oneway": Oneway, |
| 678 | 701 | "open": Open, |
| @@ -716,13 +739,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 716 | 739 | "runtimeType": RuntimeType, |
| 717 | 740 | "s": SClass, |
| 718 | 741 | "sbyte": Sbyte, |
| 719 | - "sealed": Sealed, | |
| 720 | - "SEL": Sel, | |
| 721 | - "select": Select, | |
| 722 | -}) {} | |
| 723 | - | |
| 724 | -export class Noexcept extends S.Class<Noexcept>("Noexcept")({ | |
| 725 | - "noexcept": S.Int, | |
| 726 | 742 | }) {} |
| 727 | 743 | |
| 728 | 744 | export class No extends S.Class<No>("No")({ |
| @@ -977,8 +993,13 @@ export class Guard extends S.Class<Guard>("Guard")({ | ||
| 977 | 993 | "guard": S.Int, |
| 978 | 994 | }) {} |
| 979 | 995 | |
| 996 | +export class Goto extends S.Class<Goto>("Goto")({ | |
| 997 | + "goto": S.Int, | |
| 998 | +}) {} | |
| 999 | + | |
| 980 | 1000 | export class Obj3 extends S.Class<Obj3>("Obj3")({ |
| 981 | 1001 | "dummy": S.Int, |
| 1002 | + "goto": Goto, | |
| 982 | 1003 | "guard": Guard, |
| 983 | 1004 | "hasOwnProperty": HasOwnProperty, |
| 984 | 1005 | "hashCode": HashCode, |
| @@ -1042,17 +1063,12 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({ | ||
| 1042 | 1063 | "newtonsoft": Newtonsoft, |
| 1043 | 1064 | "nil": Nil, |
| 1044 | 1065 | "NO": No, |
| 1045 | - "noexcept": Noexcept, | |
| 1046 | 1066 | }) {} |
| 1047 | 1067 | |
| 1048 | 1068 | export class FalseClass extends S.Class<FalseClass>("FalseClass")({ |
| 1049 | 1069 | "false": S.Int, |
| 1050 | 1070 | }) {} |
| 1051 | 1071 | |
| 1052 | -export class Goto extends S.Class<Goto>("Goto")({ | |
| 1053 | - "goto": S.Int, | |
| 1054 | -}) {} | |
| 1055 | - | |
| 1056 | 1072 | export class Go extends S.Class<Go>("Go")({ |
| 1057 | 1073 | "go": S.Int, |
| 1058 | 1074 | }) {} |
| @@ -1221,6 +1237,10 @@ export class Dict extends S.Class<Dict>("Dict")({ | ||
| 1221 | 1237 | "dict": S.Int, |
| 1222 | 1238 | }) {} |
| 1223 | 1239 | |
| 1240 | +export class DeserializationFeature extends S.Class<DeserializationFeature>("DeserializationFeature")({ | |
| 1241 | + "DeserializationFeature": S.Int, | |
| 1242 | +}) {} | |
| 1243 | + | |
| 1224 | 1244 | export class Delete extends S.Class<Delete>("Delete")({ |
| 1225 | 1245 | "delete": S.Int, |
| 1226 | 1246 | }) {} |
| @@ -1322,6 +1342,7 @@ export class Obj2 extends S.Class<Obj2>("Obj2")({ | ||
| 1322 | 1342 | "del": Del, |
| 1323 | 1343 | "delegate": Delegate, |
| 1324 | 1344 | "delete": Delete, |
| 1345 | + "DeserializationFeature": DeserializationFeature, | |
| 1325 | 1346 | "dict": Dict, |
| 1326 | 1347 | "dictionary": Dictionary, |
| 1327 | 1348 | "didSet": DidSet, |
| @@ -1365,7 +1386,6 @@ export class Obj2 extends S.Class<Obj2>("Obj2")({ | ||
| 1365 | 1386 | "get": Get, |
| 1366 | 1387 | "global": Global, |
| 1367 | 1388 | "go": Go, |
| 1368 | - "goto": Goto, | |
| 1369 | 1389 | "false": FalseClass, |
| 1370 | 1390 | }) {} |
Mtypescript-zoddefault / TopLevel.ts+58 −34
| @@ -427,6 +427,11 @@ export const DeleteSchema = z.object({ | ||
| 427 | 427 | }); |
| 428 | 428 | export type Delete = z.infer<typeof DeleteSchema>; |
| 429 | 429 | |
| 430 | +export const DeserializationFeatureSchema = z.object({ | |
| 431 | + "DeserializationFeature": z.number().int(), | |
| 432 | +}); | |
| 433 | +export type DeserializationFeature = z.infer<typeof DeserializationFeatureSchema>; | |
| 434 | + | |
| 430 | 435 | export const DictSchema = z.object({ |
| 431 | 436 | "dict": z.number().int(), |
| 432 | 437 | }); |
| @@ -637,16 +642,16 @@ export const GoSchema = z.object({ | ||
| 637 | 642 | }); |
| 638 | 643 | export type Go = z.infer<typeof GoSchema>; |
| 639 | 644 | |
| 640 | -export const GotoSchema = z.object({ | |
| 641 | - "goto": z.number().int(), | |
| 642 | -}); | |
| 643 | -export type Goto = z.infer<typeof GotoSchema>; | |
| 644 | - | |
| 645 | 645 | export const FalseClassSchema = z.object({ |
| 646 | 646 | "false": z.number().int(), |
| 647 | 647 | }); |
| 648 | 648 | export type FalseClass = z.infer<typeof FalseClassSchema>; |
| 649 | 649 | |
| 650 | +export const GotoSchema = z.object({ | |
| 651 | + "goto": z.number().int(), | |
| 652 | +}); | |
| 653 | +export type Goto = z.infer<typeof GotoSchema>; | |
| 654 | + | |
| 650 | 655 | export const GuardSchema = z.object({ |
| 651 | 656 | "guard": z.number().int(), |
| 652 | 657 | }); |
| @@ -962,16 +967,16 @@ export const NoSchema = z.object({ | ||
| 962 | 967 | }); |
| 963 | 968 | export type No = z.infer<typeof NoSchema>; |
| 964 | 969 | |
| 965 | -export const NoexceptSchema = z.object({ | |
| 966 | - "noexcept": z.number().int(), | |
| 967 | -}); | |
| 968 | -export type Noexcept = z.infer<typeof NoexceptSchema>; | |
| 969 | - | |
| 970 | 970 | export const NoSuchMethodSchema = z.object({ |
| 971 | 971 | "noSuchMethod": z.number().int(), |
| 972 | 972 | }); |
| 973 | 973 | export type NoSuchMethod = z.infer<typeof NoSuchMethodSchema>; |
| 974 | 974 | |
| 975 | +export const NoexceptSchema = z.object({ | |
| 976 | + "noexcept": z.number().int(), | |
| 977 | +}); | |
| 978 | +export type Noexcept = z.infer<typeof NoexceptSchema>; | |
| 979 | + | |
| 975 | 980 | export const NonatomicSchema = z.object({ |
| 976 | 981 | "nonatomic": z.number().int(), |
| 977 | 982 | }); |
| @@ -1057,6 +1062,16 @@ export const ObjectMapperSchema = z.object({ | ||
| 1057 | 1062 | }); |
| 1058 | 1063 | export type ObjectMapper = z.infer<typeof ObjectMapperSchema>; |
| 1059 | 1064 | |
| 1065 | +export const ObjectReaderSchema = z.object({ | |
| 1066 | + "ObjectReader": z.number().int(), | |
| 1067 | +}); | |
| 1068 | +export type ObjectReader = z.infer<typeof ObjectReaderSchema>; | |
| 1069 | + | |
| 1070 | +export const ObjectWriterSchema = z.object({ | |
| 1071 | + "ObjectWriter": z.number().int(), | |
| 1072 | +}); | |
| 1073 | +export type ObjectWriter = z.infer<typeof ObjectWriterSchema>; | |
| 1074 | + | |
| 1060 | 1075 | export const OfSchema = z.object({ |
| 1061 | 1076 | "of": z.number().int(), |
| 1062 | 1077 | }); |
| @@ -1272,21 +1287,6 @@ export const SbyteSchema = z.object({ | ||
| 1272 | 1287 | }); |
| 1273 | 1288 | export type Sbyte = z.infer<typeof SbyteSchema>; |
| 1274 | 1289 | |
| 1275 | -export const SealedSchema = z.object({ | |
| 1276 | - "sealed": z.number().int(), | |
| 1277 | -}); | |
| 1278 | -export type Sealed = z.infer<typeof SealedSchema>; | |
| 1279 | - | |
| 1280 | -export const SelSchema = z.object({ | |
| 1281 | - "SEL": z.number().int(), | |
| 1282 | -}); | |
| 1283 | -export type Sel = z.infer<typeof SelSchema>; | |
| 1284 | - | |
| 1285 | -export const SelectSchema = z.object({ | |
| 1286 | - "select": z.number().int(), | |
| 1287 | -}); | |
| 1288 | -export type Select = z.infer<typeof SelectSchema>; | |
| 1289 | - | |
| 1290 | 1290 | export const SelfClassSchema = z.object({ |
| 1291 | 1291 | "self": z.number().int(), |
| 1292 | 1292 | }); |
| @@ -1302,6 +1302,21 @@ export const TypeClassSchema = z.object({ | ||
| 1302 | 1302 | }); |
| 1303 | 1303 | export type TypeClass = z.infer<typeof TypeClassSchema>; |
| 1304 | 1304 | |
| 1305 | +export const SealedSchema = z.object({ | |
| 1306 | + "sealed": z.number().int(), | |
| 1307 | +}); | |
| 1308 | +export type Sealed = z.infer<typeof SealedSchema>; | |
| 1309 | + | |
| 1310 | +export const SelSchema = z.object({ | |
| 1311 | + "SEL": z.number().int(), | |
| 1312 | +}); | |
| 1313 | +export type Sel = z.infer<typeof SelSchema>; | |
| 1314 | + | |
| 1315 | +export const SelectSchema = z.object({ | |
| 1316 | + "select": z.number().int(), | |
| 1317 | +}); | |
| 1318 | +export type Select = z.infer<typeof SelectSchema>; | |
| 1319 | + | |
| 1305 | 1320 | export const SelfSchema = z.object({ |
| 1306 | 1321 | "Self": z.number().int(), |
| 1307 | 1322 | }); |
| @@ -1312,6 +1327,11 @@ export const SendableSchema = z.object({ | ||
| 1312 | 1327 | }); |
| 1313 | 1328 | export type Sendable = z.infer<typeof SendableSchema>; |
| 1314 | 1329 | |
| 1330 | +export const SerializationFeatureSchema = z.object({ | |
| 1331 | + "SerializationFeature": z.number().int(), | |
| 1332 | +}); | |
| 1333 | +export type SerializationFeature = z.infer<typeof SerializationFeatureSchema>; | |
| 1334 | + | |
| 1315 | 1335 | export const SerializeSchema = z.object({ |
| 1316 | 1336 | "serialize": z.number().int(), |
| 1317 | 1337 | }); |
| @@ -1757,6 +1777,7 @@ export const Obj2Schema = z.object({ | ||
| 1757 | 1777 | "del": DelSchema, |
| 1758 | 1778 | "delegate": DelegateSchema, |
| 1759 | 1779 | "delete": DeleteSchema, |
| 1780 | + "DeserializationFeature": DeserializationFeatureSchema, | |
| 1760 | 1781 | "dict": DictSchema, |
| 1761 | 1782 | "dictionary": DictionarySchema, |
| 1762 | 1783 | "didSet": DidSetSchema, |
| @@ -1800,13 +1821,13 @@ export const Obj2Schema = z.object({ | ||
| 1800 | 1821 | "get": GetSchema, |
| 1801 | 1822 | "global": GlobalSchema, |
| 1802 | 1823 | "go": GoSchema, |
| 1803 | - "goto": GotoSchema, | |
| 1804 | 1824 | "false": FalseClassSchema, |
| 1805 | 1825 | }); |
| 1806 | 1826 | export type Obj2 = z.infer<typeof Obj2Schema>; |
| 1807 | 1827 | |
| 1808 | 1828 | export const Obj3Schema = z.object({ |
| 1809 | 1829 | "dummy": z.number().int(), |
| 1830 | + "goto": GotoSchema, | |
| 1810 | 1831 | "guard": GuardSchema, |
| 1811 | 1832 | "hasOwnProperty": HasOwnPropertySchema, |
| 1812 | 1833 | "hashCode": HashCodeSchema, |
| @@ -1870,13 +1891,13 @@ export const Obj3Schema = z.object({ | ||
| 1870 | 1891 | "newtonsoft": NewtonsoftSchema, |
| 1871 | 1892 | "nil": NilSchema, |
| 1872 | 1893 | "NO": NoSchema, |
| 1873 | - "noexcept": NoexceptSchema, | |
| 1874 | 1894 | }); |
| 1875 | 1895 | export type Obj3 = z.infer<typeof Obj3Schema>; |
| 1876 | 1896 | |
| 1877 | 1897 | export const Obj4Schema = z.object({ |
| 1878 | 1898 | "dummy": z.number().int(), |
| 1879 | 1899 | "noSuchMethod": NoSuchMethodSchema, |
| 1900 | + "noexcept": NoexceptSchema, | |
| 1880 | 1901 | "nonatomic": NonatomicSchema, |
| 1881 | 1902 | "None": NoneSchema, |
| 1882 | 1903 | "nonlocal": NonlocalSchema, |
| @@ -1894,6 +1915,8 @@ export const Obj4Schema = z.object({ | ||
| 1894 | 1915 | "protocol": ProtocolClassSchema, |
| 1895 | 1916 | "object": ObjectClassSchema, |
| 1896 | 1917 | "ObjectMapper": ObjectMapperSchema, |
| 1918 | + "ObjectReader": ObjectReaderSchema, | |
| 1919 | + "ObjectWriter": ObjectWriterSchema, | |
| 1897 | 1920 | "of": OfSchema, |
| 1898 | 1921 | "oneway": OnewaySchema, |
| 1899 | 1922 | "open": OpenSchema, |
| @@ -1937,9 +1960,6 @@ export const Obj4Schema = z.object({ | ||
| 1937 | 1960 | "runtimeType": RuntimeTypeSchema, |
| 1938 | 1961 | "s": SSchema, |
| 1939 | 1962 | "sbyte": SbyteSchema, |
| 1940 | - "sealed": SealedSchema, | |
| 1941 | - "SEL": SelSchema, | |
| 1942 | - "select": SelectSchema, | |
| 1943 | 1963 | }); |
| 1944 | 1964 | export type Obj4 = z.infer<typeof Obj4Schema>; |
| 1945 | 1965 | |
| @@ -1948,8 +1968,12 @@ export const Obj5Schema = z.object({ | ||
| 1948 | 1968 | "self": SelfClassSchema, |
| 1949 | 1969 | "true": TrueClassSchema, |
| 1950 | 1970 | "type": TypeClassSchema, |
| 1971 | + "sealed": SealedSchema, | |
| 1972 | + "SEL": SelSchema, | |
| 1973 | + "select": SelectSchema, | |
| 1951 | 1974 | "Self": SelfSchema, |
| 1952 | 1975 | "Sendable": SendableSchema, |
| 1976 | + "SerializationFeature": SerializationFeatureSchema, | |
| 1953 | 1977 | "serialize": SerializeSchema, |
| 1954 | 1978 | "SerializerProvider": SerializerProviderSchema, |
| 1955 | 1979 | "set": SetSchema, |
| @@ -2005,15 +2029,15 @@ export const Obj5Schema = z.object({ | ||
| 2005 | 2029 | "ushort": UshortSchema, |
| 2006 | 2030 | "using": UsingSchema, |
| 2007 | 2031 | "Utf8JsonReader": Utf8JsonReaderSchema, |
| 2008 | - "Utf8JsonWriter": Utf8JsonWriterSchema, | |
| 2009 | - "UUID": UuidSchema, | |
| 2010 | - "var": VarSchema, | |
| 2011 | - "virtual": VirtualSchema, | |
| 2012 | 2032 | }); |
| 2013 | 2033 | export type Obj5 = z.infer<typeof Obj5Schema>; |
| 2014 | 2034 | |
| 2015 | 2035 | export const Obj6Schema = z.object({ |
| 2016 | 2036 | "dummy": z.number().int(), |
| 2037 | + "Utf8JsonWriter": Utf8JsonWriterSchema, | |
| 2038 | + "UUID": UuidSchema, | |
| 2039 | + "var": VarSchema, | |
| 2040 | + "virtual": VirtualSchema, | |
| 2017 | 2041 | "void": VoidSchema, |
| 2018 | 2042 | "volatile": VolatileSchema, |
| 2019 | 2043 | "wchar_t": WcharTSchema, |
Mtypescriptdefault / TopLevel.ts+248 −212
| @@ -342,71 +342,71 @@ export interface DateClass { | ||
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | export interface Obj2 { |
| 345 | - DateFormatter: DateFormatter; | |
| 346 | - DateOnly: DateOnly; | |
| 347 | - DateOnlyConverter: DateOnlyConverter; | |
| 348 | - DateTime: DateTime; | |
| 349 | - DateTimeStyles: DateTimeStyles; | |
| 350 | - Decoder: Decoder; | |
| 351 | - DecodingError: DecodingError; | |
| 352 | - Encoder: Encoder; | |
| 353 | - EnumValues: EnumValues; | |
| 354 | - Equatable: Equatable; | |
| 355 | - False: False; | |
| 356 | - FormatException: FormatException; | |
| 357 | - date_parse_handling: DateParseHandling; | |
| 358 | - debugger: Debugger; | |
| 359 | - decimal: Decimal; | |
| 360 | - declare: Declare; | |
| 361 | - decltype: Decltype; | |
| 362 | - decode_string: DecodeString; | |
| 363 | - def: Def; | |
| 364 | - default: Default; | |
| 365 | - defer: Defer; | |
| 366 | - deinit: Deinit; | |
| 367 | - del: Del; | |
| 368 | - delegate: Delegate; | |
| 369 | - delete: Delete; | |
| 370 | - dict: Dict; | |
| 371 | - dictionary: Dictionary; | |
| 372 | - didSet: DidSet; | |
| 373 | - do: Do; | |
| 374 | - double: Double; | |
| 375 | - dummy: number; | |
| 376 | - dynamic: Dynamic; | |
| 377 | - dynamic_cast: DynamicCast; | |
| 378 | - elif: Elif; | |
| 379 | - else: Else; | |
| 380 | - encode_quick_type: EncodeQuickType; | |
| 381 | - enum: Enum; | |
| 382 | - equalityContract: EqualityContract; | |
| 383 | - event: Event; | |
| 384 | - except: Except; | |
| 385 | - exception: Exception; | |
| 386 | - explicit: Explicit; | |
| 387 | - export: Export; | |
| 388 | - exposing: Exposing; | |
| 389 | - extends: Extends; | |
| 390 | - extension: Extension; | |
| 391 | - extern: Extern; | |
| 392 | - fallthrough: Fallthrough; | |
| 393 | - false: FalseClass; | |
| 394 | - fileprivate: Fileprivate; | |
| 395 | - final: Final; | |
| 396 | - finally: Finally; | |
| 397 | - fixed: Fixed; | |
| 398 | - float: Float; | |
| 399 | - for: For; | |
| 400 | - foreach: Foreach; | |
| 401 | - friend: Friend; | |
| 402 | - from: From; | |
| 403 | - from_json: FromJSON; | |
| 404 | - func: Func; | |
| 405 | - function: Function; | |
| 406 | - get: Get; | |
| 407 | - global: Global; | |
| 408 | - go: Go; | |
| 409 | - goto: Goto; | |
| 345 | + DateFormatter: DateFormatter; | |
| 346 | + DateOnly: DateOnly; | |
| 347 | + DateOnlyConverter: DateOnlyConverter; | |
| 348 | + DateTime: DateTime; | |
| 349 | + DateTimeStyles: DateTimeStyles; | |
| 350 | + Decoder: Decoder; | |
| 351 | + DecodingError: DecodingError; | |
| 352 | + DeserializationFeature: DeserializationFeature; | |
| 353 | + Encoder: Encoder; | |
| 354 | + EnumValues: EnumValues; | |
| 355 | + Equatable: Equatable; | |
| 356 | + False: False; | |
| 357 | + FormatException: FormatException; | |
| 358 | + date_parse_handling: DateParseHandling; | |
| 359 | + debugger: Debugger; | |
| 360 | + decimal: Decimal; | |
| 361 | + declare: Declare; | |
| 362 | + decltype: Decltype; | |
| 363 | + decode_string: DecodeString; | |
| 364 | + def: Def; | |
| 365 | + default: Default; | |
| 366 | + defer: Defer; | |
| 367 | + deinit: Deinit; | |
| 368 | + del: Del; | |
| 369 | + delegate: Delegate; | |
| 370 | + delete: Delete; | |
| 371 | + dict: Dict; | |
| 372 | + dictionary: Dictionary; | |
| 373 | + didSet: DidSet; | |
| 374 | + do: Do; | |
| 375 | + double: Double; | |
| 376 | + dummy: number; | |
| 377 | + dynamic: Dynamic; | |
| 378 | + dynamic_cast: DynamicCast; | |
| 379 | + elif: Elif; | |
| 380 | + else: Else; | |
| 381 | + encode_quick_type: EncodeQuickType; | |
| 382 | + enum: Enum; | |
| 383 | + equalityContract: EqualityContract; | |
| 384 | + event: Event; | |
| 385 | + except: Except; | |
| 386 | + exception: Exception; | |
| 387 | + explicit: Explicit; | |
| 388 | + export: Export; | |
| 389 | + exposing: Exposing; | |
| 390 | + extends: Extends; | |
| 391 | + extension: Extension; | |
| 392 | + extern: Extern; | |
| 393 | + fallthrough: Fallthrough; | |
| 394 | + false: FalseClass; | |
| 395 | + fileprivate: Fileprivate; | |
| 396 | + final: Final; | |
| 397 | + finally: Finally; | |
| 398 | + fixed: Fixed; | |
| 399 | + float: Float; | |
| 400 | + for: For; | |
| 401 | + foreach: Foreach; | |
| 402 | + friend: Friend; | |
| 403 | + from: From; | |
| 404 | + from_json: FromJSON; | |
| 405 | + func: Func; | |
| 406 | + function: Function; | |
| 407 | + get: Get; | |
| 408 | + global: Global; | |
| 409 | + go: Go; | |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | export interface DateFormatter { |
| @@ -437,6 +437,10 @@ export interface DecodingError { | ||
| 437 | 437 | DecodingError: number; |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | +export interface DeserializationFeature { | |
| 441 | + DeserializationFeature: number; | |
| 442 | +} | |
| 443 | + | |
| 440 | 444 | export interface Encoder { |
| 441 | 445 | Encoder: number; |
| 442 | 446 | } |
| @@ -663,10 +667,6 @@ export interface Go { | ||
| 663 | 667 | go: number; |
| 664 | 668 | } |
| 665 | 669 | |
| 666 | -export interface Goto { | |
| 667 | - goto: number; | |
| 668 | -} | |
| 669 | - | |
| 670 | 670 | export interface Obj3 { |
| 671 | 671 | Hashable: Hashable; |
| 672 | 672 | Hasher: Hasher; |
| @@ -687,6 +687,7 @@ export interface Obj3 { | ||
| 687 | 687 | MapEntry: MapEntry; |
| 688 | 688 | NO: No; |
| 689 | 689 | dummy: number; |
| 690 | + goto: Goto; | |
| 690 | 691 | guard: Guard; |
| 691 | 692 | hasOwnProperty: HasOwnProperty; |
| 692 | 693 | hashCode: HashCode; |
| @@ -732,7 +733,6 @@ export interface Obj3 { | ||
| 732 | 733 | new: New; |
| 733 | 734 | newtonsoft: Newtonsoft; |
| 734 | 735 | nil: Nil; |
| 735 | - noexcept: Noexcept; | |
| 736 | 736 | } |
| 737 | 737 | |
| 738 | 738 | export interface Hashable { |
| @@ -807,6 +807,10 @@ export interface No { | ||
| 807 | 807 | NO: number; |
| 808 | 808 | } |
| 809 | 809 | |
| 810 | +export interface Goto { | |
| 811 | + goto: number; | |
| 812 | +} | |
| 813 | + | |
| 810 | 814 | export interface Guard { |
| 811 | 815 | guard: number; |
| 812 | 816 | } |
| @@ -987,10 +991,6 @@ export interface Nil { | ||
| 987 | 991 | nil: number; |
| 988 | 992 | } |
| 989 | 993 | |
| 990 | -export interface Noexcept { | |
| 991 | - noexcept: number; | |
| 992 | -} | |
| 993 | - | |
| 994 | 994 | export interface Obj4 { |
| 995 | 995 | NSError: NSError; |
| 996 | 996 | NSObject: NSObject; |
| @@ -998,11 +998,13 @@ export interface Obj4 { | ||
| 998 | 998 | NULL: Null; |
| 999 | 999 | None: None; |
| 1000 | 1000 | ObjectMapper: ObjectMapper; |
| 1001 | + ObjectReader: ObjectReader; | |
| 1002 | + ObjectWriter: ObjectWriter; | |
| 1001 | 1003 | Protocol: Protocol; |
| 1002 | 1004 | RegExp: RegExp; |
| 1003 | - SEL: Sel; | |
| 1004 | 1005 | dummy: number; |
| 1005 | 1006 | noSuchMethod: NoSuchMethod; |
| 1007 | + noexcept: Noexcept; | |
| 1006 | 1008 | nonatomic: Nonatomic; |
| 1007 | 1009 | none: NoneClass; |
| 1008 | 1010 | nonlocal: Nonlocal; |
| @@ -1055,8 +1057,6 @@ export interface Obj4 { | ||
| 1055 | 1057 | runtimeType: RuntimeType; |
| 1056 | 1058 | s: S; |
| 1057 | 1059 | sbyte: Sbyte; |
| 1058 | - sealed: Sealed; | |
| 1059 | - select: Select; | |
| 1060 | 1060 | } |
| 1061 | 1061 | |
| 1062 | 1062 | export interface NSError { |
| @@ -1083,6 +1083,14 @@ export interface ObjectMapper { | ||
| 1083 | 1083 | ObjectMapper: number; |
| 1084 | 1084 | } |
| 1085 | 1085 | |
| 1086 | +export interface ObjectReader { | |
| 1087 | + ObjectReader: number; | |
| 1088 | +} | |
| 1089 | + | |
| 1090 | +export interface ObjectWriter { | |
| 1091 | + ObjectWriter: number; | |
| 1092 | +} | |
| 1093 | + | |
| 1086 | 1094 | export interface Protocol { |
| 1087 | 1095 | Protocol: number; |
| 1088 | 1096 | } |
| @@ -1091,14 +1099,14 @@ export interface RegExp { | ||
| 1091 | 1099 | RegExp: string; |
| 1092 | 1100 | } |
| 1093 | 1101 | |
| 1094 | -export interface Sel { | |
| 1095 | - SEL: number; | |
| 1096 | -} | |
| 1097 | - | |
| 1098 | 1102 | export interface NoSuchMethod { |
| 1099 | 1103 | noSuchMethod: number; |
| 1100 | 1104 | } |
| 1101 | 1105 | |
| 1106 | +export interface Noexcept { | |
| 1107 | + noexcept: number; | |
| 1108 | +} | |
| 1109 | + | |
| 1102 | 1110 | export interface Nonatomic { |
| 1103 | 1111 | nonatomic: number; |
| 1104 | 1112 | } |
| @@ -1307,80 +1315,76 @@ export interface Sbyte { | ||
| 1307 | 1315 | sbyte: number; |
| 1308 | 1316 | } |
| 1309 | 1317 | |
| 1310 | -export interface Sealed { | |
| 1311 | - sealed: number; | |
| 1312 | -} | |
| 1313 | - | |
| 1314 | -export interface Select { | |
| 1315 | - select: number; | |
| 1318 | +export interface Obj5 { | |
| 1319 | + SEL: Sel; | |
| 1320 | + Self: Self; | |
| 1321 | + Sendable: Sendable; | |
| 1322 | + SerializationFeature: SerializationFeature; | |
| 1323 | + SerializerProvider: SerializerProvider; | |
| 1324 | + SimpleModule: SimpleModule; | |
| 1325 | + Standards: Standards; | |
| 1326 | + StdDeserializer: StdDeserializer; | |
| 1327 | + StdSerializer: StdSerializer; | |
| 1328 | + TimeOnly: TimeOnly; | |
| 1329 | + TimeOnlyConverter: TimeOnlyConverter; | |
| 1330 | + TimeZone: TimeZone; | |
| 1331 | + True: True; | |
| 1332 | + Type: Type; | |
| 1333 | + Utf8JsonReader: Utf8JSONReader; | |
| 1334 | + dummy: number; | |
| 1335 | + sealed: Sealed; | |
| 1336 | + select: Select; | |
| 1337 | + self: SelfClass; | |
| 1338 | + serialize: Serialize; | |
| 1339 | + set: Set; | |
| 1340 | + short: Short; | |
| 1341 | + signed: Signed; | |
| 1342 | + sizeof: Sizeof; | |
| 1343 | + stackalloc: Stackalloc; | |
| 1344 | + static: Static; | |
| 1345 | + static_assert: StaticAssert; | |
| 1346 | + static_cast: StaticCast; | |
| 1347 | + strictfp: Strictfp; | |
| 1348 | + string: String; | |
| 1349 | + struct: Struct; | |
| 1350 | + subscript: Subscript; | |
| 1351 | + super: Super; | |
| 1352 | + switch: Switch; | |
| 1353 | + symbol: Symbol; | |
| 1354 | + synchronized: Synchronized; | |
| 1355 | + system: System; | |
| 1356 | + template: Template; | |
| 1357 | + then: Then; | |
| 1358 | + this: This; | |
| 1359 | + thread_local: ThreadLocal; | |
| 1360 | + throw: Throw; | |
| 1361 | + throws: Throws; | |
| 1362 | + toString: ToString; | |
| 1363 | + to_json: ToJSON; | |
| 1364 | + top_level: TopLevelClass; | |
| 1365 | + transient: Transient; | |
| 1366 | + true: TrueClass; | |
| 1367 | + try: Try; | |
| 1368 | + type: TypeClass; | |
| 1369 | + typealias: Typealias; | |
| 1370 | + typedef: Typedef; | |
| 1371 | + typeid: Typeid; | |
| 1372 | + typename: Typename; | |
| 1373 | + typeof: Typeof; | |
| 1374 | + uint: Uint; | |
| 1375 | + ulong: Ulong; | |
| 1376 | + unchecked: Unchecked; | |
| 1377 | + undefined: Undefined; | |
| 1378 | + union: Union; | |
| 1379 | + unowned: Unowned; | |
| 1380 | + unsafe: Unsafe; | |
| 1381 | + unsigned: Unsigned; | |
| 1382 | + ushort: Ushort; | |
| 1383 | + using: Using; | |
| 1316 | 1384 | } |
| 1317 | 1385 | |
| 1318 | -export interface Obj5 { | |
| 1319 | - Self: Self; | |
| 1320 | - Sendable: Sendable; | |
| 1321 | - SerializerProvider: SerializerProvider; | |
| 1322 | - SimpleModule: SimpleModule; | |
| 1323 | - Standards: Standards; | |
| 1324 | - StdDeserializer: StdDeserializer; | |
| 1325 | - StdSerializer: StdSerializer; | |
| 1326 | - TimeOnly: TimeOnly; | |
| 1327 | - TimeOnlyConverter: TimeOnlyConverter; | |
| 1328 | - TimeZone: TimeZone; | |
| 1329 | - True: True; | |
| 1330 | - Type: Type; | |
| 1331 | - UUID: UUID; | |
| 1332 | - Utf8JsonReader: Utf8JSONReader; | |
| 1333 | - Utf8JsonWriter: Utf8JSONWriter; | |
| 1334 | - dummy: number; | |
| 1335 | - self: SelfClass; | |
| 1336 | - serialize: Serialize; | |
| 1337 | - set: Set; | |
| 1338 | - short: Short; | |
| 1339 | - signed: Signed; | |
| 1340 | - sizeof: Sizeof; | |
| 1341 | - stackalloc: Stackalloc; | |
| 1342 | - static: Static; | |
| 1343 | - static_assert: StaticAssert; | |
| 1344 | - static_cast: StaticCast; | |
| 1345 | - strictfp: Strictfp; | |
| 1346 | - string: String; | |
| 1347 | - struct: Struct; | |
| 1348 | - subscript: Subscript; | |
| 1349 | - super: Super; | |
| 1350 | - switch: Switch; | |
| 1351 | - symbol: Symbol; | |
| 1352 | - synchronized: Synchronized; | |
| 1353 | - system: System; | |
| 1354 | - template: Template; | |
| 1355 | - then: Then; | |
| 1356 | - this: This; | |
| 1357 | - thread_local: ThreadLocal; | |
| 1358 | - throw: Throw; | |
| 1359 | - throws: Throws; | |
| 1360 | - toString: ToString; | |
| 1361 | - to_json: ToJSON; | |
| 1362 | - top_level: TopLevelClass; | |
| 1363 | - transient: Transient; | |
| 1364 | - true: TrueClass; | |
| 1365 | - try: Try; | |
| 1366 | - type: TypeClass; | |
| 1367 | - typealias: Typealias; | |
| 1368 | - typedef: Typedef; | |
| 1369 | - typeid: Typeid; | |
| 1370 | - typename: Typename; | |
| 1371 | - typeof: Typeof; | |
| 1372 | - uint: Uint; | |
| 1373 | - ulong: Ulong; | |
| 1374 | - unchecked: Unchecked; | |
| 1375 | - undefined: Undefined; | |
| 1376 | - union: Union; | |
| 1377 | - unowned: Unowned; | |
| 1378 | - unsafe: Unsafe; | |
| 1379 | - unsigned: Unsigned; | |
| 1380 | - ushort: Ushort; | |
| 1381 | - using: Using; | |
| 1382 | - var: Var; | |
| 1383 | - virtual: Virtual; | |
| 1386 | +export interface Sel { | |
| 1387 | + SEL: number; | |
| 1384 | 1388 | } |
| 1385 | 1389 | |
| 1386 | 1390 | export interface Self { |
| @@ -1391,6 +1395,10 @@ export interface Sendable { | ||
| 1391 | 1395 | Sendable: number; |
| 1392 | 1396 | } |
| 1393 | 1397 | |
| 1398 | +export interface SerializationFeature { | |
| 1399 | + SerializationFeature: number; | |
| 1400 | +} | |
| 1401 | + | |
| 1394 | 1402 | export interface SerializerProvider { |
| 1395 | 1403 | SerializerProvider: number; |
| 1396 | 1404 | } |
| @@ -1431,16 +1439,16 @@ export interface Type { | ||
| 1431 | 1439 | Type: number; |
| 1432 | 1440 | } |
| 1433 | 1441 | |
| 1434 | -export interface UUID { | |
| 1435 | - UUID: number; | |
| 1436 | -} | |
| 1437 | - | |
| 1438 | 1442 | export interface Utf8JSONReader { |
| 1439 | 1443 | Utf8JsonReader: number; |
| 1440 | 1444 | } |
| 1441 | 1445 | |
| 1442 | -export interface Utf8JSONWriter { | |
| 1443 | - Utf8JsonWriter: number; | |
| 1446 | +export interface Sealed { | |
| 1447 | + sealed: number; | |
| 1448 | +} | |
| 1449 | + | |
| 1450 | +export interface Select { | |
| 1451 | + select: number; | |
| 1444 | 1452 | } |
| 1445 | 1453 | |
| 1446 | 1454 | export interface SelfClass { |
| @@ -1631,34 +1639,46 @@ export interface Using { | ||
| 1631 | 1639 | using: number; |
| 1632 | 1640 | } |
| 1633 | 1641 | |
| 1634 | -export interface Var { | |
| 1635 | - var: number; | |
| 1642 | +export interface Obj6 { | |
| 1643 | + UUID: UUID; | |
| 1644 | + Utf8JsonWriter: Utf8JSONWriter; | |
| 1645 | + YES: Yes; | |
| 1646 | + dummy: number; | |
| 1647 | + var: Var; | |
| 1648 | + virtual: Virtual; | |
| 1649 | + void: Void; | |
| 1650 | + volatile: Volatile; | |
| 1651 | + wchar_t: WcharT; | |
| 1652 | + weak: Weak; | |
| 1653 | + where: Where; | |
| 1654 | + while: While; | |
| 1655 | + willSet: WillSet; | |
| 1656 | + with: With; | |
| 1657 | + xor: Xor; | |
| 1658 | + xor_eq: XorEq; | |
| 1659 | + yield: Yield; | |
| 1636 | 1660 | } |
| 1637 | 1661 | |
| 1638 | -export interface Virtual { | |
| 1639 | - virtual: number; | |
| 1662 | +export interface UUID { | |
| 1663 | + UUID: number; | |
| 1640 | 1664 | } |
| 1641 | 1665 | |
| 1642 | -export interface Obj6 { | |
| 1643 | - YES: Yes; | |
| 1644 | - dummy: number; | |
| 1645 | - void: Void; | |
| 1646 | - volatile: Volatile; | |
| 1647 | - wchar_t: WcharT; | |
| 1648 | - weak: Weak; | |
| 1649 | - where: Where; | |
| 1650 | - while: While; | |
| 1651 | - willSet: WillSet; | |
| 1652 | - with: With; | |
| 1653 | - xor: Xor; | |
| 1654 | - xor_eq: XorEq; | |
| 1655 | - yield: Yield; | |
| 1666 | +export interface Utf8JSONWriter { | |
| 1667 | + Utf8JsonWriter: number; | |
| 1656 | 1668 | } |
| 1657 | 1669 | |
| 1658 | 1670 | export interface Yes { |
| 1659 | 1671 | YES: number; |
| 1660 | 1672 | } |
| 1661 | 1673 | |
| 1674 | +export interface Var { | |
| 1675 | + var: number; | |
| 1676 | +} | |
| 1677 | + | |
| 1678 | +export interface Virtual { | |
| 1679 | + virtual: number; | |
| 1680 | +} | |
| 1681 | + | |
| 1662 | 1682 | export interface Void { |
| 1663 | 1683 | void: number; |
| 1664 | 1684 | } |
| @@ -2167,6 +2187,7 @@ const typeMap: any = { | ||
| 2167 | 2187 | { json: "DateTimeStyles", js: "DateTimeStyles", typ: r("DateTimeStyles") }, |
| 2168 | 2188 | { json: "Decoder", js: "Decoder", typ: r("Decoder") }, |
| 2169 | 2189 | { json: "DecodingError", js: "DecodingError", typ: r("DecodingError") }, |
| 2190 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: r("DeserializationFeature") }, | |
| 2170 | 2191 | { json: "Encoder", js: "Encoder", typ: r("Encoder") }, |
| 2171 | 2192 | { json: "EnumValues", js: "EnumValues", typ: r("EnumValues") }, |
| 2172 | 2193 | { json: "Equatable", js: "Equatable", typ: r("Equatable") }, |
| @@ -2224,7 +2245,6 @@ const typeMap: any = { | ||
| 2224 | 2245 | { json: "get", js: "get", typ: r("Get") }, |
| 2225 | 2246 | { json: "global", js: "global", typ: r("Global") }, |
| 2226 | 2247 | { json: "go", js: "go", typ: r("Go") }, |
| 2227 | - { json: "goto", js: "goto", typ: r("Goto") }, | |
| 2228 | 2248 | ], false), |
| 2229 | 2249 | "DateFormatter": o([ |
| 2230 | 2250 | { json: "DateFormatter", js: "DateFormatter", typ: i(0) }, |
| @@ -2247,6 +2267,9 @@ const typeMap: any = { | ||
| 2247 | 2267 | "DecodingError": o([ |
| 2248 | 2268 | { json: "DecodingError", js: "DecodingError", typ: i(0) }, |
| 2249 | 2269 | ], false), |
| 2270 | + "DeserializationFeature": o([ | |
| 2271 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: i(0) }, | |
| 2272 | + ], false), | |
| 2250 | 2273 | "Encoder": o([ |
| 2251 | 2274 | { json: "Encoder", js: "Encoder", typ: i(0) }, |
| 2252 | 2275 | ], false), |
| @@ -2415,9 +2438,6 @@ const typeMap: any = { | ||
| 2415 | 2438 | "Go": o([ |
| 2416 | 2439 | { json: "go", js: "go", typ: i(0) }, |
| 2417 | 2440 | ], false), |
| 2418 | - "Goto": o([ | |
| 2419 | - { json: "goto", js: "goto", typ: i(0) }, | |
| 2420 | - ], false), | |
| 2421 | 2441 | "Obj3": o([ |
| 2422 | 2442 | { json: "Hashable", js: "Hashable", typ: r("Hashable") }, |
| 2423 | 2443 | { json: "Hasher", js: "Hasher", typ: r("Hasher") }, |
| @@ -2438,6 +2458,7 @@ const typeMap: any = { | ||
| 2438 | 2458 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2439 | 2459 | { json: "NO", js: "NO", typ: r("No") }, |
| 2440 | 2460 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2461 | + { json: "goto", js: "goto", typ: r("Goto") }, | |
| 2441 | 2462 | { json: "guard", js: "guard", typ: r("Guard") }, |
| 2442 | 2463 | { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") }, |
| 2443 | 2464 | { json: "hashCode", js: "hashCode", typ: r("HashCode") }, |
| @@ -2483,7 +2504,6 @@ const typeMap: any = { | ||
| 2483 | 2504 | { json: "new", js: "new", typ: r("New") }, |
| 2484 | 2505 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2485 | 2506 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 2486 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2487 | 2507 | ], false), |
| 2488 | 2508 | "Hashable": o([ |
| 2489 | 2509 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2539,6 +2559,9 @@ const typeMap: any = { | ||
| 2539 | 2559 | "No": o([ |
| 2540 | 2560 | { json: "NO", js: "NO", typ: i(0) }, |
| 2541 | 2561 | ], false), |
| 2562 | + "Goto": o([ | |
| 2563 | + { json: "goto", js: "goto", typ: i(0) }, | |
| 2564 | + ], false), | |
| 2542 | 2565 | "Guard": o([ |
| 2543 | 2566 | { json: "guard", js: "guard", typ: i(0) }, |
| 2544 | 2567 | ], false), |
| @@ -2674,9 +2697,6 @@ const typeMap: any = { | ||
| 2674 | 2697 | "Nil": o([ |
| 2675 | 2698 | { json: "nil", js: "nil", typ: i(0) }, |
| 2676 | 2699 | ], false), |
| 2677 | - "Noexcept": o([ | |
| 2678 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2679 | - ], false), | |
| 2680 | 2700 | "Obj4": o([ |
| 2681 | 2701 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2682 | 2702 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -2684,11 +2704,13 @@ const typeMap: any = { | ||
| 2684 | 2704 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2685 | 2705 | { json: "None", js: "None", typ: r("None") }, |
| 2686 | 2706 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2707 | + { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") }, | |
| 2708 | + { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") }, | |
| 2687 | 2709 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2688 | 2710 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 2689 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2690 | 2711 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2691 | 2712 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2713 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2692 | 2714 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 2693 | 2715 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 2694 | 2716 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -2741,8 +2763,6 @@ const typeMap: any = { | ||
| 2741 | 2763 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2742 | 2764 | { json: "s", js: "s", typ: r("S") }, |
| 2743 | 2765 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2744 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2745 | - { json: "select", js: "select", typ: r("Select") }, | |
| 2746 | 2766 | ], false), |
| 2747 | 2767 | "NSError": o([ |
| 2748 | 2768 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2762,18 +2782,24 @@ const typeMap: any = { | ||
| 2762 | 2782 | "ObjectMapper": o([ |
| 2763 | 2783 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2764 | 2784 | ], false), |
| 2785 | + "ObjectReader": o([ | |
| 2786 | + { json: "ObjectReader", js: "ObjectReader", typ: i(0) }, | |
| 2787 | + ], false), | |
| 2788 | + "ObjectWriter": o([ | |
| 2789 | + { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) }, | |
| 2790 | + ], false), | |
| 2765 | 2791 | "Protocol": o([ |
| 2766 | 2792 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2767 | 2793 | ], false), |
| 2768 | 2794 | "RegExp": o([ |
| 2769 | 2795 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2770 | 2796 | ], false), |
| 2771 | - "Sel": o([ | |
| 2772 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2773 | - ], false), | |
| 2774 | 2797 | "NoSuchMethod": o([ |
| 2775 | 2798 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 2776 | 2799 | ], false), |
| 2800 | + "Noexcept": o([ | |
| 2801 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2802 | + ], false), | |
| 2777 | 2803 | "Nonatomic": o([ |
| 2778 | 2804 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 2779 | 2805 | ], false), |
| @@ -2930,15 +2956,11 @@ const typeMap: any = { | ||
| 2930 | 2956 | "Sbyte": o([ |
| 2931 | 2957 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2932 | 2958 | ], false), |
| 2933 | - "Sealed": o([ | |
| 2934 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2935 | - ], false), | |
| 2936 | - "Select": o([ | |
| 2937 | - { json: "select", js: "select", typ: i(0) }, | |
| 2938 | - ], false), | |
| 2939 | 2959 | "Obj5": o([ |
| 2960 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2940 | 2961 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2941 | 2962 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2963 | + { json: "SerializationFeature", js: "SerializationFeature", typ: r("SerializationFeature") }, | |
| 2942 | 2964 | { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") }, |
| 2943 | 2965 | { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") }, |
| 2944 | 2966 | { json: "Standards", js: "Standards", typ: r("Standards") }, |
| @@ -2949,10 +2971,10 @@ const typeMap: any = { | ||
| 2949 | 2971 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 2950 | 2972 | { json: "True", js: "True", typ: r("True") }, |
| 2951 | 2973 | { json: "Type", js: "Type", typ: r("Type") }, |
| 2952 | - { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 2953 | 2974 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 2954 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 2955 | 2975 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2976 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2977 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2956 | 2978 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 2957 | 2979 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 2958 | 2980 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -3000,8 +3022,9 @@ const typeMap: any = { | ||
| 3000 | 3022 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 3001 | 3023 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 3002 | 3024 | { json: "using", js: "using", typ: r("Using") }, |
| 3003 | - { json: "var", js: "var", typ: r("Var") }, | |
| 3004 | - { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 3025 | + ], false), | |
| 3026 | + "Sel": o([ | |
| 3027 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3005 | 3028 | ], false), |
| 3006 | 3029 | "Self": o([ |
| 3007 | 3030 | { json: "Self", js: "Self", typ: i(0) }, |
| @@ -3009,6 +3032,9 @@ const typeMap: any = { | ||
| 3009 | 3032 | "Sendable": o([ |
| 3010 | 3033 | { json: "Sendable", js: "Sendable", typ: i(0) }, |
| 3011 | 3034 | ], false), |
| 3035 | + "SerializationFeature": o([ | |
| 3036 | + { json: "SerializationFeature", js: "SerializationFeature", typ: i(0) }, | |
| 3037 | + ], false), | |
| 3012 | 3038 | "SerializerProvider": o([ |
| 3013 | 3039 | { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) }, |
| 3014 | 3040 | ], false), |
| @@ -3039,14 +3065,14 @@ const typeMap: any = { | ||
| 3039 | 3065 | "Type": o([ |
| 3040 | 3066 | { json: "Type", js: "Type", typ: i(0) }, |
| 3041 | 3067 | ], false), |
| 3042 | - "UUID": o([ | |
| 3043 | - { json: "UUID", js: "UUID", typ: i(0) }, | |
| 3044 | - ], false), | |
| 3045 | 3068 | "Utf8JSONReader": o([ |
| 3046 | 3069 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 3047 | 3070 | ], false), |
| 3048 | - "Utf8JSONWriter": o([ | |
| 3049 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 3071 | + "Sealed": o([ | |
| 3072 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3073 | + ], false), | |
| 3074 | + "Select": o([ | |
| 3075 | + { json: "select", js: "select", typ: i(0) }, | |
| 3050 | 3076 | ], false), |
| 3051 | 3077 | "SelfClass": o([ |
| 3052 | 3078 | { json: "self", js: "self", typ: i(0) }, |
| @@ -3189,15 +3215,13 @@ const typeMap: any = { | ||
| 3189 | 3215 | "Using": o([ |
| 3190 | 3216 | { json: "using", js: "using", typ: i(0) }, |
| 3191 | 3217 | ], false), |
| 3192 | - "Var": o([ | |
| 3193 | - { json: "var", js: "var", typ: i(0) }, | |
| 3194 | - ], false), | |
| 3195 | - "Virtual": o([ | |
| 3196 | - { json: "virtual", js: "virtual", typ: i(0) }, | |
| 3197 | - ], false), | |
| 3198 | 3218 | "Obj6": o([ |
| 3219 | + { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 3220 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 3199 | 3221 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3200 | 3222 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3223 | + { json: "var", js: "var", typ: r("Var") }, | |
| 3224 | + { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 3201 | 3225 | { json: "void", js: "void", typ: r("Void") }, |
| 3202 | 3226 | { json: "volatile", js: "volatile", typ: r("Volatile") }, |
| 3203 | 3227 | { json: "wchar_t", js: "wchar_t", typ: r("WcharT") }, |
| @@ -3210,9 +3234,21 @@ const typeMap: any = { | ||
| 3210 | 3234 | { json: "xor_eq", js: "xor_eq", typ: r("XorEq") }, |
| 3211 | 3235 | { json: "yield", js: "yield", typ: r("Yield") }, |
| 3212 | 3236 | ], false), |
| 3237 | + "UUID": o([ | |
| 3238 | + { json: "UUID", js: "UUID", typ: i(0) }, | |
| 3239 | + ], false), | |
| 3240 | + "Utf8JSONWriter": o([ | |
| 3241 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 3242 | + ], false), | |
| 3213 | 3243 | "Yes": o([ |
| 3214 | 3244 | { json: "YES", js: "YES", typ: i(0) }, |
| 3215 | 3245 | ], false), |
| 3246 | + "Var": o([ | |
| 3247 | + { json: "var", js: "var", typ: i(0) }, | |
| 3248 | + ], false), | |
| 3249 | + "Virtual": o([ | |
| 3250 | + { json: "virtual", js: "virtual", typ: i(0) }, | |
| 3251 | + ], false), | |
| 3216 | 3252 | "Void": o([ |
| 3217 | 3253 | { json: "void", js: "void", typ: i(0) }, |
| 3218 | 3254 | ], false), |
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+248 −212
| @@ -342,71 +342,71 @@ export type DateClass = { | ||
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | export type Obj2 = { |
| 345 | - DateFormatter: DateFormatter; | |
| 346 | - DateOnly: DateOnly; | |
| 347 | - DateOnlyConverter: DateOnlyConverter; | |
| 348 | - DateTime: DateTime; | |
| 349 | - DateTimeStyles: DateTimeStyles; | |
| 350 | - Decoder: Decoder; | |
| 351 | - DecodingError: DecodingError; | |
| 352 | - Encoder: Encoder; | |
| 353 | - EnumValues: EnumValues; | |
| 354 | - Equatable: Equatable; | |
| 355 | - False: False; | |
| 356 | - FormatException: FormatException; | |
| 357 | - date_parse_handling: DateParseHandling; | |
| 358 | - debugger: Debugger; | |
| 359 | - decimal: Decimal; | |
| 360 | - declare: Declare; | |
| 361 | - decltype: Decltype; | |
| 362 | - decode_string: DecodeString; | |
| 363 | - def: Def; | |
| 364 | - default: Default; | |
| 365 | - defer: Defer; | |
| 366 | - deinit: Deinit; | |
| 367 | - del: Del; | |
| 368 | - delegate: Delegate; | |
| 369 | - delete: Delete; | |
| 370 | - dict: Dict; | |
| 371 | - dictionary: Dictionary; | |
| 372 | - didSet: DidSet; | |
| 373 | - do: Do; | |
| 374 | - double: Double; | |
| 375 | - dummy: number; | |
| 376 | - dynamic: Dynamic; | |
| 377 | - dynamic_cast: DynamicCast; | |
| 378 | - elif: Elif; | |
| 379 | - else: Else; | |
| 380 | - encode_quick_type: EncodeQuickType; | |
| 381 | - enum: Enum; | |
| 382 | - equalityContract: EqualityContract; | |
| 383 | - event: Event; | |
| 384 | - except: Except; | |
| 385 | - exception: Exception; | |
| 386 | - explicit: Explicit; | |
| 387 | - export: Export; | |
| 388 | - exposing: Exposing; | |
| 389 | - extends: Extends; | |
| 390 | - extension: Extension; | |
| 391 | - extern: Extern; | |
| 392 | - fallthrough: Fallthrough; | |
| 393 | - false: FalseClass; | |
| 394 | - fileprivate: Fileprivate; | |
| 395 | - final: Final; | |
| 396 | - finally: Finally; | |
| 397 | - fixed: Fixed; | |
| 398 | - float: Float; | |
| 399 | - for: For; | |
| 400 | - foreach: Foreach; | |
| 401 | - friend: Friend; | |
| 402 | - from: From; | |
| 403 | - from_json: FromJSON; | |
| 404 | - func: Func; | |
| 405 | - function: Function; | |
| 406 | - get: Get; | |
| 407 | - global: Global; | |
| 408 | - go: Go; | |
| 409 | - goto: Goto; | |
| 345 | + DateFormatter: DateFormatter; | |
| 346 | + DateOnly: DateOnly; | |
| 347 | + DateOnlyConverter: DateOnlyConverter; | |
| 348 | + DateTime: DateTime; | |
| 349 | + DateTimeStyles: DateTimeStyles; | |
| 350 | + Decoder: Decoder; | |
| 351 | + DecodingError: DecodingError; | |
| 352 | + DeserializationFeature: DeserializationFeature; | |
| 353 | + Encoder: Encoder; | |
| 354 | + EnumValues: EnumValues; | |
| 355 | + Equatable: Equatable; | |
| 356 | + False: False; | |
| 357 | + FormatException: FormatException; | |
| 358 | + date_parse_handling: DateParseHandling; | |
| 359 | + debugger: Debugger; | |
| 360 | + decimal: Decimal; | |
| 361 | + declare: Declare; | |
| 362 | + decltype: Decltype; | |
| 363 | + decode_string: DecodeString; | |
| 364 | + def: Def; | |
| 365 | + default: Default; | |
| 366 | + defer: Defer; | |
| 367 | + deinit: Deinit; | |
| 368 | + del: Del; | |
| 369 | + delegate: Delegate; | |
| 370 | + delete: Delete; | |
| 371 | + dict: Dict; | |
| 372 | + dictionary: Dictionary; | |
| 373 | + didSet: DidSet; | |
| 374 | + do: Do; | |
| 375 | + double: Double; | |
| 376 | + dummy: number; | |
| 377 | + dynamic: Dynamic; | |
| 378 | + dynamic_cast: DynamicCast; | |
| 379 | + elif: Elif; | |
| 380 | + else: Else; | |
| 381 | + encode_quick_type: EncodeQuickType; | |
| 382 | + enum: Enum; | |
| 383 | + equalityContract: EqualityContract; | |
| 384 | + event: Event; | |
| 385 | + except: Except; | |
| 386 | + exception: Exception; | |
| 387 | + explicit: Explicit; | |
| 388 | + export: Export; | |
| 389 | + exposing: Exposing; | |
| 390 | + extends: Extends; | |
| 391 | + extension: Extension; | |
| 392 | + extern: Extern; | |
| 393 | + fallthrough: Fallthrough; | |
| 394 | + false: FalseClass; | |
| 395 | + fileprivate: Fileprivate; | |
| 396 | + final: Final; | |
| 397 | + finally: Finally; | |
| 398 | + fixed: Fixed; | |
| 399 | + float: Float; | |
| 400 | + for: For; | |
| 401 | + foreach: Foreach; | |
| 402 | + friend: Friend; | |
| 403 | + from: From; | |
| 404 | + from_json: FromJSON; | |
| 405 | + func: Func; | |
| 406 | + function: Function; | |
| 407 | + get: Get; | |
| 408 | + global: Global; | |
| 409 | + go: Go; | |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | export type DateFormatter = { |
| @@ -437,6 +437,10 @@ export type DecodingError = { | ||
| 437 | 437 | DecodingError: number; |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | +export type DeserializationFeature = { | |
| 441 | + DeserializationFeature: number; | |
| 442 | +} | |
| 443 | + | |
| 440 | 444 | export type Encoder = { |
| 441 | 445 | Encoder: number; |
| 442 | 446 | } |
| @@ -663,10 +667,6 @@ export type Go = { | ||
| 663 | 667 | go: number; |
| 664 | 668 | } |
| 665 | 669 | |
| 666 | -export type Goto = { | |
| 667 | - goto: number; | |
| 668 | -} | |
| 669 | - | |
| 670 | 670 | export type Obj3 = { |
| 671 | 671 | Hashable: Hashable; |
| 672 | 672 | Hasher: Hasher; |
| @@ -687,6 +687,7 @@ export type Obj3 = { | ||
| 687 | 687 | MapEntry: MapEntry; |
| 688 | 688 | NO: No; |
| 689 | 689 | dummy: number; |
| 690 | + goto: Goto; | |
| 690 | 691 | guard: Guard; |
| 691 | 692 | hasOwnProperty: HasOwnProperty; |
| 692 | 693 | hashCode: HashCode; |
| @@ -732,7 +733,6 @@ export type Obj3 = { | ||
| 732 | 733 | new: New; |
| 733 | 734 | newtonsoft: Newtonsoft; |
| 734 | 735 | nil: Nil; |
| 735 | - noexcept: Noexcept; | |
| 736 | 736 | } |
| 737 | 737 | |
| 738 | 738 | export type Hashable = { |
| @@ -807,6 +807,10 @@ export type No = { | ||
| 807 | 807 | NO: number; |
| 808 | 808 | } |
| 809 | 809 | |
| 810 | +export type Goto = { | |
| 811 | + goto: number; | |
| 812 | +} | |
| 813 | + | |
| 810 | 814 | export type Guard = { |
| 811 | 815 | guard: number; |
| 812 | 816 | } |
| @@ -987,10 +991,6 @@ export type Nil = { | ||
| 987 | 991 | nil: number; |
| 988 | 992 | } |
| 989 | 993 | |
| 990 | -export type Noexcept = { | |
| 991 | - noexcept: number; | |
| 992 | -} | |
| 993 | - | |
| 994 | 994 | export type Obj4 = { |
| 995 | 995 | NSError: NSError; |
| 996 | 996 | NSObject: NSObject; |
| @@ -998,11 +998,13 @@ export type Obj4 = { | ||
| 998 | 998 | NULL: Null; |
| 999 | 999 | None: None; |
| 1000 | 1000 | ObjectMapper: ObjectMapper; |
| 1001 | + ObjectReader: ObjectReader; | |
| 1002 | + ObjectWriter: ObjectWriter; | |
| 1001 | 1003 | Protocol: Protocol; |
| 1002 | 1004 | RegExp: RegExp; |
| 1003 | - SEL: Sel; | |
| 1004 | 1005 | dummy: number; |
| 1005 | 1006 | noSuchMethod: NoSuchMethod; |
| 1007 | + noexcept: Noexcept; | |
| 1006 | 1008 | nonatomic: Nonatomic; |
| 1007 | 1009 | none: NoneClass; |
| 1008 | 1010 | nonlocal: Nonlocal; |
| @@ -1055,8 +1057,6 @@ export type Obj4 = { | ||
| 1055 | 1057 | runtimeType: RuntimeType; |
| 1056 | 1058 | s: S; |
| 1057 | 1059 | sbyte: Sbyte; |
| 1058 | - sealed: Sealed; | |
| 1059 | - select: Select; | |
| 1060 | 1060 | } |
| 1061 | 1061 | |
| 1062 | 1062 | export type NSError = { |
| @@ -1083,6 +1083,14 @@ export type ObjectMapper = { | ||
| 1083 | 1083 | ObjectMapper: number; |
| 1084 | 1084 | } |
| 1085 | 1085 | |
| 1086 | +export type ObjectReader = { | |
| 1087 | + ObjectReader: number; | |
| 1088 | +} | |
| 1089 | + | |
| 1090 | +export type ObjectWriter = { | |
| 1091 | + ObjectWriter: number; | |
| 1092 | +} | |
| 1093 | + | |
| 1086 | 1094 | export type Protocol = { |
| 1087 | 1095 | Protocol: number; |
| 1088 | 1096 | } |
| @@ -1091,14 +1099,14 @@ export type RegExp = { | ||
| 1091 | 1099 | RegExp: string; |
| 1092 | 1100 | } |
| 1093 | 1101 | |
| 1094 | -export type Sel = { | |
| 1095 | - SEL: number; | |
| 1096 | -} | |
| 1097 | - | |
| 1098 | 1102 | export type NoSuchMethod = { |
| 1099 | 1103 | noSuchMethod: number; |
| 1100 | 1104 | } |
| 1101 | 1105 | |
| 1106 | +export type Noexcept = { | |
| 1107 | + noexcept: number; | |
| 1108 | +} | |
| 1109 | + | |
| 1102 | 1110 | export type Nonatomic = { |
| 1103 | 1111 | nonatomic: number; |
| 1104 | 1112 | } |
| @@ -1307,80 +1315,76 @@ export type Sbyte = { | ||
| 1307 | 1315 | sbyte: number; |
| 1308 | 1316 | } |
| 1309 | 1317 | |
| 1310 | -export type Sealed = { | |
| 1311 | - sealed: number; | |
| 1312 | -} | |
| 1313 | - | |
| 1314 | -export type Select = { | |
| 1315 | - select: number; | |
| 1318 | +export type Obj5 = { | |
| 1319 | + SEL: Sel; | |
| 1320 | + Self: Self; | |
| 1321 | + Sendable: Sendable; | |
| 1322 | + SerializationFeature: SerializationFeature; | |
| 1323 | + SerializerProvider: SerializerProvider; | |
| 1324 | + SimpleModule: SimpleModule; | |
| 1325 | + Standards: Standards; | |
| 1326 | + StdDeserializer: StdDeserializer; | |
| 1327 | + StdSerializer: StdSerializer; | |
| 1328 | + TimeOnly: TimeOnly; | |
| 1329 | + TimeOnlyConverter: TimeOnlyConverter; | |
| 1330 | + TimeZone: TimeZone; | |
| 1331 | + True: True; | |
| 1332 | + Type: Type; | |
| 1333 | + Utf8JsonReader: Utf8JSONReader; | |
| 1334 | + dummy: number; | |
| 1335 | + sealed: Sealed; | |
| 1336 | + select: Select; | |
| 1337 | + self: SelfClass; | |
| 1338 | + serialize: Serialize; | |
| 1339 | + set: Set; | |
| 1340 | + short: Short; | |
| 1341 | + signed: Signed; | |
| 1342 | + sizeof: Sizeof; | |
| 1343 | + stackalloc: Stackalloc; | |
| 1344 | + static: Static; | |
| 1345 | + static_assert: StaticAssert; | |
| 1346 | + static_cast: StaticCast; | |
| 1347 | + strictfp: Strictfp; | |
| 1348 | + string: String; | |
| 1349 | + struct: Struct; | |
| 1350 | + subscript: Subscript; | |
| 1351 | + super: Super; | |
| 1352 | + switch: Switch; | |
| 1353 | + symbol: Symbol; | |
| 1354 | + synchronized: Synchronized; | |
| 1355 | + system: System; | |
| 1356 | + template: Template; | |
| 1357 | + then: Then; | |
| 1358 | + this: This; | |
| 1359 | + thread_local: ThreadLocal; | |
| 1360 | + throw: Throw; | |
| 1361 | + throws: Throws; | |
| 1362 | + toString: ToString; | |
| 1363 | + to_json: ToJSON; | |
| 1364 | + top_level: TopLevelClass; | |
| 1365 | + transient: Transient; | |
| 1366 | + true: TrueClass; | |
| 1367 | + try: Try; | |
| 1368 | + type: TypeClass; | |
| 1369 | + typealias: Typealias; | |
| 1370 | + typedef: Typedef; | |
| 1371 | + typeid: Typeid; | |
| 1372 | + typename: Typename; | |
| 1373 | + typeof: Typeof; | |
| 1374 | + uint: Uint; | |
| 1375 | + ulong: Ulong; | |
| 1376 | + unchecked: Unchecked; | |
| 1377 | + undefined: Undefined; | |
| 1378 | + union: Union; | |
| 1379 | + unowned: Unowned; | |
| 1380 | + unsafe: Unsafe; | |
| 1381 | + unsigned: Unsigned; | |
| 1382 | + ushort: Ushort; | |
| 1383 | + using: Using; | |
| 1316 | 1384 | } |
| 1317 | 1385 | |
| 1318 | -export type Obj5 = { | |
| 1319 | - Self: Self; | |
| 1320 | - Sendable: Sendable; | |
| 1321 | - SerializerProvider: SerializerProvider; | |
| 1322 | - SimpleModule: SimpleModule; | |
| 1323 | - Standards: Standards; | |
| 1324 | - StdDeserializer: StdDeserializer; | |
| 1325 | - StdSerializer: StdSerializer; | |
| 1326 | - TimeOnly: TimeOnly; | |
| 1327 | - TimeOnlyConverter: TimeOnlyConverter; | |
| 1328 | - TimeZone: TimeZone; | |
| 1329 | - True: True; | |
| 1330 | - Type: Type; | |
| 1331 | - UUID: UUID; | |
| 1332 | - Utf8JsonReader: Utf8JSONReader; | |
| 1333 | - Utf8JsonWriter: Utf8JSONWriter; | |
| 1334 | - dummy: number; | |
| 1335 | - self: SelfClass; | |
| 1336 | - serialize: Serialize; | |
| 1337 | - set: Set; | |
| 1338 | - short: Short; | |
| 1339 | - signed: Signed; | |
| 1340 | - sizeof: Sizeof; | |
| 1341 | - stackalloc: Stackalloc; | |
| 1342 | - static: Static; | |
| 1343 | - static_assert: StaticAssert; | |
| 1344 | - static_cast: StaticCast; | |
| 1345 | - strictfp: Strictfp; | |
| 1346 | - string: String; | |
| 1347 | - struct: Struct; | |
| 1348 | - subscript: Subscript; | |
| 1349 | - super: Super; | |
| 1350 | - switch: Switch; | |
| 1351 | - symbol: Symbol; | |
| 1352 | - synchronized: Synchronized; | |
| 1353 | - system: System; | |
| 1354 | - template: Template; | |
| 1355 | - then: Then; | |
| 1356 | - this: This; | |
| 1357 | - thread_local: ThreadLocal; | |
| 1358 | - throw: Throw; | |
| 1359 | - throws: Throws; | |
| 1360 | - toString: ToString; | |
| 1361 | - to_json: ToJSON; | |
| 1362 | - top_level: TopLevelClass; | |
| 1363 | - transient: Transient; | |
| 1364 | - true: TrueClass; | |
| 1365 | - try: Try; | |
| 1366 | - type: TypeClass; | |
| 1367 | - typealias: Typealias; | |
| 1368 | - typedef: Typedef; | |
| 1369 | - typeid: Typeid; | |
| 1370 | - typename: Typename; | |
| 1371 | - typeof: Typeof; | |
| 1372 | - uint: Uint; | |
| 1373 | - ulong: Ulong; | |
| 1374 | - unchecked: Unchecked; | |
| 1375 | - undefined: Undefined; | |
| 1376 | - union: Union; | |
| 1377 | - unowned: Unowned; | |
| 1378 | - unsafe: Unsafe; | |
| 1379 | - unsigned: Unsigned; | |
| 1380 | - ushort: Ushort; | |
| 1381 | - using: Using; | |
| 1382 | - var: Var; | |
| 1383 | - virtual: Virtual; | |
| 1386 | +export type Sel = { | |
| 1387 | + SEL: number; | |
| 1384 | 1388 | } |
| 1385 | 1389 | |
| 1386 | 1390 | export type Self = { |
| @@ -1391,6 +1395,10 @@ export type Sendable = { | ||
| 1391 | 1395 | Sendable: number; |
| 1392 | 1396 | } |
| 1393 | 1397 | |
| 1398 | +export type SerializationFeature = { | |
| 1399 | + SerializationFeature: number; | |
| 1400 | +} | |
| 1401 | + | |
| 1394 | 1402 | export type SerializerProvider = { |
| 1395 | 1403 | SerializerProvider: number; |
| 1396 | 1404 | } |
| @@ -1431,16 +1439,16 @@ export type Type = { | ||
| 1431 | 1439 | Type: number; |
| 1432 | 1440 | } |
| 1433 | 1441 | |
| 1434 | -export type UUID = { | |
| 1435 | - UUID: number; | |
| 1436 | -} | |
| 1437 | - | |
| 1438 | 1442 | export type Utf8JSONReader = { |
| 1439 | 1443 | Utf8JsonReader: number; |
| 1440 | 1444 | } |
| 1441 | 1445 | |
| 1442 | -export type Utf8JSONWriter = { | |
| 1443 | - Utf8JsonWriter: number; | |
| 1446 | +export type Sealed = { | |
| 1447 | + sealed: number; | |
| 1448 | +} | |
| 1449 | + | |
| 1450 | +export type Select = { | |
| 1451 | + select: number; | |
| 1444 | 1452 | } |
| 1445 | 1453 | |
| 1446 | 1454 | export type SelfClass = { |
| @@ -1631,34 +1639,46 @@ export type Using = { | ||
| 1631 | 1639 | using: number; |
| 1632 | 1640 | } |
| 1633 | 1641 | |
| 1634 | -export type Var = { | |
| 1635 | - var: number; | |
| 1642 | +export type Obj6 = { | |
| 1643 | + UUID: UUID; | |
| 1644 | + Utf8JsonWriter: Utf8JSONWriter; | |
| 1645 | + YES: Yes; | |
| 1646 | + dummy: number; | |
| 1647 | + var: Var; | |
| 1648 | + virtual: Virtual; | |
| 1649 | + void: Void; | |
| 1650 | + volatile: Volatile; | |
| 1651 | + wchar_t: WcharT; | |
| 1652 | + weak: Weak; | |
| 1653 | + where: Where; | |
| 1654 | + while: While; | |
| 1655 | + willSet: WillSet; | |
| 1656 | + with: With; | |
| 1657 | + xor: Xor; | |
| 1658 | + xor_eq: XorEq; | |
| 1659 | + yield: Yield; | |
| 1636 | 1660 | } |
| 1637 | 1661 | |
| 1638 | -export type Virtual = { | |
| 1639 | - virtual: number; | |
| 1662 | +export type UUID = { | |
| 1663 | + UUID: number; | |
| 1640 | 1664 | } |
| 1641 | 1665 | |
| 1642 | -export type Obj6 = { | |
| 1643 | - YES: Yes; | |
| 1644 | - dummy: number; | |
| 1645 | - void: Void; | |
| 1646 | - volatile: Volatile; | |
| 1647 | - wchar_t: WcharT; | |
| 1648 | - weak: Weak; | |
| 1649 | - where: Where; | |
| 1650 | - while: While; | |
| 1651 | - willSet: WillSet; | |
| 1652 | - with: With; | |
| 1653 | - xor: Xor; | |
| 1654 | - xor_eq: XorEq; | |
| 1655 | - yield: Yield; | |
| 1666 | +export type Utf8JSONWriter = { | |
| 1667 | + Utf8JsonWriter: number; | |
| 1656 | 1668 | } |
| 1657 | 1669 | |
| 1658 | 1670 | export type Yes = { |
| 1659 | 1671 | YES: number; |
| 1660 | 1672 | } |
| 1661 | 1673 | |
| 1674 | +export type Var = { | |
| 1675 | + var: number; | |
| 1676 | +} | |
| 1677 | + | |
| 1678 | +export type Virtual = { | |
| 1679 | + virtual: number; | |
| 1680 | +} | |
| 1681 | + | |
| 1662 | 1682 | export type Void = { |
| 1663 | 1683 | void: number; |
| 1664 | 1684 | } |
| @@ -2167,6 +2187,7 @@ const typeMap: any = { | ||
| 2167 | 2187 | { json: "DateTimeStyles", js: "DateTimeStyles", typ: r("DateTimeStyles") }, |
| 2168 | 2188 | { json: "Decoder", js: "Decoder", typ: r("Decoder") }, |
| 2169 | 2189 | { json: "DecodingError", js: "DecodingError", typ: r("DecodingError") }, |
| 2190 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: r("DeserializationFeature") }, | |
| 2170 | 2191 | { json: "Encoder", js: "Encoder", typ: r("Encoder") }, |
| 2171 | 2192 | { json: "EnumValues", js: "EnumValues", typ: r("EnumValues") }, |
| 2172 | 2193 | { json: "Equatable", js: "Equatable", typ: r("Equatable") }, |
| @@ -2224,7 +2245,6 @@ const typeMap: any = { | ||
| 2224 | 2245 | { json: "get", js: "get", typ: r("Get") }, |
| 2225 | 2246 | { json: "global", js: "global", typ: r("Global") }, |
| 2226 | 2247 | { json: "go", js: "go", typ: r("Go") }, |
| 2227 | - { json: "goto", js: "goto", typ: r("Goto") }, | |
| 2228 | 2248 | ], false), |
| 2229 | 2249 | "DateFormatter": o([ |
| 2230 | 2250 | { json: "DateFormatter", js: "DateFormatter", typ: i(0) }, |
| @@ -2247,6 +2267,9 @@ const typeMap: any = { | ||
| 2247 | 2267 | "DecodingError": o([ |
| 2248 | 2268 | { json: "DecodingError", js: "DecodingError", typ: i(0) }, |
| 2249 | 2269 | ], false), |
| 2270 | + "DeserializationFeature": o([ | |
| 2271 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: i(0) }, | |
| 2272 | + ], false), | |
| 2250 | 2273 | "Encoder": o([ |
| 2251 | 2274 | { json: "Encoder", js: "Encoder", typ: i(0) }, |
| 2252 | 2275 | ], false), |
| @@ -2415,9 +2438,6 @@ const typeMap: any = { | ||
| 2415 | 2438 | "Go": o([ |
| 2416 | 2439 | { json: "go", js: "go", typ: i(0) }, |
| 2417 | 2440 | ], false), |
| 2418 | - "Goto": o([ | |
| 2419 | - { json: "goto", js: "goto", typ: i(0) }, | |
| 2420 | - ], false), | |
| 2421 | 2441 | "Obj3": o([ |
| 2422 | 2442 | { json: "Hashable", js: "Hashable", typ: r("Hashable") }, |
| 2423 | 2443 | { json: "Hasher", js: "Hasher", typ: r("Hasher") }, |
| @@ -2438,6 +2458,7 @@ const typeMap: any = { | ||
| 2438 | 2458 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2439 | 2459 | { json: "NO", js: "NO", typ: r("No") }, |
| 2440 | 2460 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2461 | + { json: "goto", js: "goto", typ: r("Goto") }, | |
| 2441 | 2462 | { json: "guard", js: "guard", typ: r("Guard") }, |
| 2442 | 2463 | { json: "hasOwnProperty", js: "hasOwnProperty", typ: r("HasOwnProperty") }, |
| 2443 | 2464 | { json: "hashCode", js: "hashCode", typ: r("HashCode") }, |
| @@ -2483,7 +2504,6 @@ const typeMap: any = { | ||
| 2483 | 2504 | { json: "new", js: "new", typ: r("New") }, |
| 2484 | 2505 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2485 | 2506 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 2486 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2487 | 2507 | ], false), |
| 2488 | 2508 | "Hashable": o([ |
| 2489 | 2509 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2539,6 +2559,9 @@ const typeMap: any = { | ||
| 2539 | 2559 | "No": o([ |
| 2540 | 2560 | { json: "NO", js: "NO", typ: i(0) }, |
| 2541 | 2561 | ], false), |
| 2562 | + "Goto": o([ | |
| 2563 | + { json: "goto", js: "goto", typ: i(0) }, | |
| 2564 | + ], false), | |
| 2542 | 2565 | "Guard": o([ |
| 2543 | 2566 | { json: "guard", js: "guard", typ: i(0) }, |
| 2544 | 2567 | ], false), |
| @@ -2674,9 +2697,6 @@ const typeMap: any = { | ||
| 2674 | 2697 | "Nil": o([ |
| 2675 | 2698 | { json: "nil", js: "nil", typ: i(0) }, |
| 2676 | 2699 | ], false), |
| 2677 | - "Noexcept": o([ | |
| 2678 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2679 | - ], false), | |
| 2680 | 2700 | "Obj4": o([ |
| 2681 | 2701 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2682 | 2702 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -2684,11 +2704,13 @@ const typeMap: any = { | ||
| 2684 | 2704 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2685 | 2705 | { json: "None", js: "None", typ: r("None") }, |
| 2686 | 2706 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2707 | + { json: "ObjectReader", js: "ObjectReader", typ: r("ObjectReader") }, | |
| 2708 | + { json: "ObjectWriter", js: "ObjectWriter", typ: r("ObjectWriter") }, | |
| 2687 | 2709 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2688 | 2710 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 2689 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2690 | 2711 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2691 | 2712 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2713 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2692 | 2714 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 2693 | 2715 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 2694 | 2716 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -2741,8 +2763,6 @@ const typeMap: any = { | ||
| 2741 | 2763 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2742 | 2764 | { json: "s", js: "s", typ: r("S") }, |
| 2743 | 2765 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2744 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2745 | - { json: "select", js: "select", typ: r("Select") }, | |
| 2746 | 2766 | ], false), |
| 2747 | 2767 | "NSError": o([ |
| 2748 | 2768 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2762,18 +2782,24 @@ const typeMap: any = { | ||
| 2762 | 2782 | "ObjectMapper": o([ |
| 2763 | 2783 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2764 | 2784 | ], false), |
| 2785 | + "ObjectReader": o([ | |
| 2786 | + { json: "ObjectReader", js: "ObjectReader", typ: i(0) }, | |
| 2787 | + ], false), | |
| 2788 | + "ObjectWriter": o([ | |
| 2789 | + { json: "ObjectWriter", js: "ObjectWriter", typ: i(0) }, | |
| 2790 | + ], false), | |
| 2765 | 2791 | "Protocol": o([ |
| 2766 | 2792 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2767 | 2793 | ], false), |
| 2768 | 2794 | "RegExp": o([ |
| 2769 | 2795 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2770 | 2796 | ], false), |
| 2771 | - "Sel": o([ | |
| 2772 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2773 | - ], false), | |
| 2774 | 2797 | "NoSuchMethod": o([ |
| 2775 | 2798 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 2776 | 2799 | ], false), |
| 2800 | + "Noexcept": o([ | |
| 2801 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2802 | + ], false), | |
| 2777 | 2803 | "Nonatomic": o([ |
| 2778 | 2804 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 2779 | 2805 | ], false), |
| @@ -2930,15 +2956,11 @@ const typeMap: any = { | ||
| 2930 | 2956 | "Sbyte": o([ |
| 2931 | 2957 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2932 | 2958 | ], false), |
| 2933 | - "Sealed": o([ | |
| 2934 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2935 | - ], false), | |
| 2936 | - "Select": o([ | |
| 2937 | - { json: "select", js: "select", typ: i(0) }, | |
| 2938 | - ], false), | |
| 2939 | 2959 | "Obj5": o([ |
| 2960 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2940 | 2961 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2941 | 2962 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2963 | + { json: "SerializationFeature", js: "SerializationFeature", typ: r("SerializationFeature") }, | |
| 2942 | 2964 | { json: "SerializerProvider", js: "SerializerProvider", typ: r("SerializerProvider") }, |
| 2943 | 2965 | { json: "SimpleModule", js: "SimpleModule", typ: r("SimpleModule") }, |
| 2944 | 2966 | { json: "Standards", js: "Standards", typ: r("Standards") }, |
| @@ -2949,10 +2971,10 @@ const typeMap: any = { | ||
| 2949 | 2971 | { json: "TimeZone", js: "TimeZone", typ: r("TimeZone") }, |
| 2950 | 2972 | { json: "True", js: "True", typ: r("True") }, |
| 2951 | 2973 | { json: "Type", js: "Type", typ: r("Type") }, |
| 2952 | - { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 2953 | 2974 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 2954 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 2955 | 2975 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2976 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2977 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2956 | 2978 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 2957 | 2979 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 2958 | 2980 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -3000,8 +3022,9 @@ const typeMap: any = { | ||
| 3000 | 3022 | { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, |
| 3001 | 3023 | { json: "ushort", js: "ushort", typ: r("Ushort") }, |
| 3002 | 3024 | { json: "using", js: "using", typ: r("Using") }, |
| 3003 | - { json: "var", js: "var", typ: r("Var") }, | |
| 3004 | - { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 3025 | + ], false), | |
| 3026 | + "Sel": o([ | |
| 3027 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3005 | 3028 | ], false), |
| 3006 | 3029 | "Self": o([ |
| 3007 | 3030 | { json: "Self", js: "Self", typ: i(0) }, |
| @@ -3009,6 +3032,9 @@ const typeMap: any = { | ||
| 3009 | 3032 | "Sendable": o([ |
| 3010 | 3033 | { json: "Sendable", js: "Sendable", typ: i(0) }, |
| 3011 | 3034 | ], false), |
| 3035 | + "SerializationFeature": o([ | |
| 3036 | + { json: "SerializationFeature", js: "SerializationFeature", typ: i(0) }, | |
| 3037 | + ], false), | |
| 3012 | 3038 | "SerializerProvider": o([ |
| 3013 | 3039 | { json: "SerializerProvider", js: "SerializerProvider", typ: i(0) }, |
| 3014 | 3040 | ], false), |
| @@ -3039,14 +3065,14 @@ const typeMap: any = { | ||
| 3039 | 3065 | "Type": o([ |
| 3040 | 3066 | { json: "Type", js: "Type", typ: i(0) }, |
| 3041 | 3067 | ], false), |
| 3042 | - "UUID": o([ | |
| 3043 | - { json: "UUID", js: "UUID", typ: i(0) }, | |
| 3044 | - ], false), | |
| 3045 | 3068 | "Utf8JSONReader": o([ |
| 3046 | 3069 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: i(0) }, |
| 3047 | 3070 | ], false), |
| 3048 | - "Utf8JSONWriter": o([ | |
| 3049 | - { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 3071 | + "Sealed": o([ | |
| 3072 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3073 | + ], false), | |
| 3074 | + "Select": o([ | |
| 3075 | + { json: "select", js: "select", typ: i(0) }, | |
| 3050 | 3076 | ], false), |
| 3051 | 3077 | "SelfClass": o([ |
| 3052 | 3078 | { json: "self", js: "self", typ: i(0) }, |
| @@ -3189,15 +3215,13 @@ const typeMap: any = { | ||
| 3189 | 3215 | "Using": o([ |
| 3190 | 3216 | { json: "using", js: "using", typ: i(0) }, |
| 3191 | 3217 | ], false), |
| 3192 | - "Var": o([ | |
| 3193 | - { json: "var", js: "var", typ: i(0) }, | |
| 3194 | - ], false), | |
| 3195 | - "Virtual": o([ | |
| 3196 | - { json: "virtual", js: "virtual", typ: i(0) }, | |
| 3197 | - ], false), | |
| 3198 | 3218 | "Obj6": o([ |
| 3219 | + { json: "UUID", js: "UUID", typ: r("UUID") }, | |
| 3220 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, | |
| 3199 | 3221 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3200 | 3222 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3223 | + { json: "var", js: "var", typ: r("Var") }, | |
| 3224 | + { json: "virtual", js: "virtual", typ: r("Virtual") }, | |
| 3201 | 3225 | { json: "void", js: "void", typ: r("Void") }, |
| 3202 | 3226 | { json: "volatile", js: "volatile", typ: r("Volatile") }, |
| 3203 | 3227 | { json: "wchar_t", js: "wchar_t", typ: r("WcharT") }, |
| @@ -3210,9 +3234,21 @@ const typeMap: any = { | ||
| 3210 | 3234 | { json: "xor_eq", js: "xor_eq", typ: r("XorEq") }, |
| 3211 | 3235 | { json: "yield", js: "yield", typ: r("Yield") }, |
| 3212 | 3236 | ], false), |
| 3237 | + "UUID": o([ | |
| 3238 | + { json: "UUID", js: "UUID", typ: i(0) }, | |
| 3239 | + ], false), | |
| 3240 | + "Utf8JSONWriter": o([ | |
| 3241 | + { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: i(0) }, | |
| 3242 | + ], false), | |
| 3213 | 3243 | "Yes": o([ |
| 3214 | 3244 | { json: "YES", js: "YES", typ: i(0) }, |
| 3215 | 3245 | ], false), |
| 3246 | + "Var": o([ | |
| 3247 | + { json: "var", js: "var", typ: i(0) }, | |
| 3248 | + ], false), | |
| 3249 | + "Virtual": o([ | |
| 3250 | + { json: "virtual", js: "virtual", typ: i(0) }, | |
| 3251 | + ], false), | |
| 3216 | 3252 | "Void": o([ |
| 3217 | 3253 | { json: "void", js: "void", typ: i(0) }, |
| 3218 | 3254 | ], false), |
Test case
34 generated files · +284 −12test/inputs/schema/keyword-enum.schema
Mschema-cjsondefault / TopLevel.c+8 −0
| @@ -81,6 +81,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 81 | 81 | else if (!strcmp(cJSON_GetStringValue(j), "debugger")) x = ENUM_DEBUGGER; |
| 82 | 82 | else if (!strcmp(cJSON_GetStringValue(j), "decimal")) x = ENUM_DECIMAL; |
| 83 | 83 | else if (!strcmp(cJSON_GetStringValue(j), "declare")) x = ENUM_DECLARE; |
| 84 | + else if (!strcmp(cJSON_GetStringValue(j), "DeserializationFeature")) x = ENUM_DESERIALIZATION_FEATURE; | |
| 84 | 85 | else if (!strcmp(cJSON_GetStringValue(j), "decltype")) x = ENUM_DECLTYPE; |
| 85 | 86 | else if (!strcmp(cJSON_GetStringValue(j), "decode_string")) x = ENUM_DECODE_STRING; |
| 86 | 87 | else if (!strcmp(cJSON_GetStringValue(j), "Decoder")) x = ENUM_DECODER; |
| @@ -217,6 +218,8 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 217 | 218 | else if (!strcmp(cJSON_GetStringValue(j), "number")) x = ENUM_NUMBER; |
| 218 | 219 | else if (!strcmp(cJSON_GetStringValue(j), "object")) x = ENUM_OBJECT; |
| 219 | 220 | else if (!strcmp(cJSON_GetStringValue(j), "ObjectMapper")) x = ENUM_OBJECT_MAPPER; |
| 221 | + else if (!strcmp(cJSON_GetStringValue(j), "ObjectReader")) x = ENUM_OBJECT_READER; | |
| 222 | + else if (!strcmp(cJSON_GetStringValue(j), "ObjectWriter")) x = ENUM_OBJECT_WRITER; | |
| 220 | 223 | else if (!strcmp(cJSON_GetStringValue(j), "of")) x = ENUM_OF; |
| 221 | 224 | else if (!strcmp(cJSON_GetStringValue(j), "oneway")) x = ENUM_ONEWAY; |
| 222 | 225 | else if (!strcmp(cJSON_GetStringValue(j), "open")) x = ENUM_OPEN; |
| @@ -268,6 +271,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 268 | 271 | else if (!strcmp(cJSON_GetStringValue(j), "self")) x = ENUM_ENUM_SELF; |
| 269 | 272 | else if (!strcmp(cJSON_GetStringValue(j), "Sendable")) x = ENUM_SENDABLE; |
| 270 | 273 | else if (!strcmp(cJSON_GetStringValue(j), "serialize")) x = ENUM_SERIALIZE; |
| 274 | + else if (!strcmp(cJSON_GetStringValue(j), "SerializationFeature")) x = ENUM_SERIALIZATION_FEATURE; | |
| 271 | 275 | else if (!strcmp(cJSON_GetStringValue(j), "SerializerProvider")) x = ENUM_SERIALIZER_PROVIDER; |
| 272 | 276 | else if (!strcmp(cJSON_GetStringValue(j), "set")) x = ENUM_SET; |
| 273 | 277 | else if (!strcmp(cJSON_GetStringValue(j), "short")) x = ENUM_SHORT; |
| @@ -421,6 +425,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 421 | 425 | case ENUM_DEBUGGER: j = cJSON_CreateString("debugger"); break; |
| 422 | 426 | case ENUM_DECIMAL: j = cJSON_CreateString("decimal"); break; |
| 423 | 427 | case ENUM_DECLARE: j = cJSON_CreateString("declare"); break; |
| 428 | + case ENUM_DESERIALIZATION_FEATURE: j = cJSON_CreateString("DeserializationFeature"); break; | |
| 424 | 429 | case ENUM_DECLTYPE: j = cJSON_CreateString("decltype"); break; |
| 425 | 430 | case ENUM_DECODE_STRING: j = cJSON_CreateString("decode_string"); break; |
| 426 | 431 | case ENUM_DECODER: j = cJSON_CreateString("Decoder"); break; |
| @@ -557,6 +562,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 557 | 562 | case ENUM_NUMBER: j = cJSON_CreateString("number"); break; |
| 558 | 563 | case ENUM_OBJECT: j = cJSON_CreateString("object"); break; |
| 559 | 564 | case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break; |
| 565 | + case ENUM_OBJECT_READER: j = cJSON_CreateString("ObjectReader"); break; | |
| 566 | + case ENUM_OBJECT_WRITER: j = cJSON_CreateString("ObjectWriter"); break; | |
| 560 | 567 | case ENUM_OF: j = cJSON_CreateString("of"); break; |
| 561 | 568 | case ENUM_ONEWAY: j = cJSON_CreateString("oneway"); break; |
| 562 | 569 | case ENUM_OPEN: j = cJSON_CreateString("open"); break; |
| @@ -608,6 +615,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 608 | 615 | case ENUM_ENUM_SELF: j = cJSON_CreateString("self"); break; |
| 609 | 616 | case ENUM_SENDABLE: j = cJSON_CreateString("Sendable"); break; |
| 610 | 617 | case ENUM_SERIALIZE: j = cJSON_CreateString("serialize"); break; |
| 618 | + case ENUM_SERIALIZATION_FEATURE: j = cJSON_CreateString("SerializationFeature"); break; | |
| 611 | 619 | case ENUM_SERIALIZER_PROVIDER: j = cJSON_CreateString("SerializerProvider"); break; |
| 612 | 620 | case ENUM_SET: j = cJSON_CreateString("set"); break; |
| 613 | 621 | case ENUM_SHORT: j = cJSON_CreateString("short"); break; |
Mschema-cjsondefault / TopLevel.h+4 −0
| @@ -122,6 +122,7 @@ enum Enum { | ||
| 122 | 122 | ENUM_DEBUGGER, |
| 123 | 123 | ENUM_DECIMAL, |
| 124 | 124 | ENUM_DECLARE, |
| 125 | + ENUM_DESERIALIZATION_FEATURE, | |
| 125 | 126 | ENUM_DECLTYPE, |
| 126 | 127 | ENUM_DECODE_STRING, |
| 127 | 128 | ENUM_DECODER, |
| @@ -258,6 +259,8 @@ enum Enum { | ||
| 258 | 259 | ENUM_NUMBER, |
| 259 | 260 | ENUM_OBJECT, |
| 260 | 261 | ENUM_OBJECT_MAPPER, |
| 262 | + ENUM_OBJECT_READER, | |
| 263 | + ENUM_OBJECT_WRITER, | |
| 261 | 264 | ENUM_OF, |
| 262 | 265 | ENUM_ONEWAY, |
| 263 | 266 | ENUM_OPEN, |
| @@ -309,6 +312,7 @@ enum Enum { | ||
| 309 | 312 | ENUM_ENUM_SELF, |
| 310 | 313 | ENUM_SENDABLE, |
| 311 | 314 | ENUM_SERIALIZE, |
| 315 | + ENUM_SERIALIZATION_FEATURE, | |
| 312 | 316 | ENUM_SERIALIZER_PROVIDER, |
| 313 | 317 | ENUM_SET, |
| 314 | 318 | ENUM_SHORT, |
Mschema-cplusplusdefault / quicktype.hpp+9 −1
| @@ -89,7 +89,7 @@ namespace quicktype { | ||
| 89 | 89 | } |
| 90 | 90 | #endif |
| 91 | 91 | |
| 92 | - enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY }; | |
| 92 | + enum class Enum : int { EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, ENUM_NULL, PURPLE_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY }; | |
| 93 | 93 | |
| 94 | 94 | class TopLevel { |
| 95 | 95 | public: |
| @@ -199,6 +199,7 @@ namespace quicktype { | ||
| 199 | 199 | {"debugger", Enum::DEBUGGER}, |
| 200 | 200 | {"decimal", Enum::DECIMAL}, |
| 201 | 201 | {"declare", Enum::DECLARE}, |
| 202 | + {"DeserializationFeature", Enum::DESERIALIZATION_FEATURE}, | |
| 202 | 203 | {"decltype", Enum::DECLTYPE}, |
| 203 | 204 | {"decode_string", Enum::DECODE_STRING}, |
| 204 | 205 | {"Decoder", Enum::DECODER}, |
| @@ -335,6 +336,8 @@ namespace quicktype { | ||
| 335 | 336 | {"number", Enum::NUMBER}, |
| 336 | 337 | {"object", Enum::OBJECT}, |
| 337 | 338 | {"ObjectMapper", Enum::OBJECT_MAPPER}, |
| 339 | + {"ObjectReader", Enum::OBJECT_READER}, | |
| 340 | + {"ObjectWriter", Enum::OBJECT_WRITER}, | |
| 338 | 341 | {"of", Enum::OF}, |
| 339 | 342 | {"oneway", Enum::ONEWAY}, |
| 340 | 343 | {"open", Enum::OPEN}, |
| @@ -386,6 +389,7 @@ namespace quicktype { | ||
| 386 | 389 | {"self", Enum::ENUM_SELF}, |
| 387 | 390 | {"Sendable", Enum::SENDABLE}, |
| 388 | 391 | {"serialize", Enum::SERIALIZE}, |
| 392 | + {"SerializationFeature", Enum::SERIALIZATION_FEATURE}, | |
| 389 | 393 | {"SerializerProvider", Enum::SERIALIZER_PROVIDER}, |
| 390 | 394 | {"set", Enum::SET}, |
| 391 | 395 | {"short", Enum::SHORT}, |
| @@ -542,6 +546,7 @@ namespace quicktype { | ||
| 542 | 546 | case Enum::DEBUGGER: j = "debugger"; break; |
| 543 | 547 | case Enum::DECIMAL: j = "decimal"; break; |
| 544 | 548 | case Enum::DECLARE: j = "declare"; break; |
| 549 | + case Enum::DESERIALIZATION_FEATURE: j = "DeserializationFeature"; break; | |
| 545 | 550 | case Enum::DECLTYPE: j = "decltype"; break; |
| 546 | 551 | case Enum::DECODE_STRING: j = "decode_string"; break; |
| 547 | 552 | case Enum::DECODER: j = "Decoder"; break; |
| @@ -678,6 +683,8 @@ namespace quicktype { | ||
| 678 | 683 | case Enum::NUMBER: j = "number"; break; |
| 679 | 684 | case Enum::OBJECT: j = "object"; break; |
| 680 | 685 | case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break; |
| 686 | + case Enum::OBJECT_READER: j = "ObjectReader"; break; | |
| 687 | + case Enum::OBJECT_WRITER: j = "ObjectWriter"; break; | |
| 681 | 688 | case Enum::OF: j = "of"; break; |
| 682 | 689 | case Enum::ONEWAY: j = "oneway"; break; |
| 683 | 690 | case Enum::OPEN: j = "open"; break; |
| @@ -729,6 +736,7 @@ namespace quicktype { | ||
| 729 | 736 | case Enum::ENUM_SELF: j = "self"; break; |
| 730 | 737 | case Enum::SENDABLE: j = "Sendable"; break; |
| 731 | 738 | case Enum::SERIALIZE: j = "serialize"; break; |
| 739 | + case Enum::SERIALIZATION_FEATURE: j = "SerializationFeature"; break; | |
| 732 | 740 | case Enum::SERIALIZER_PROVIDER: j = "SerializerProvider"; break; |
| 733 | 741 | case Enum::SET: j = "set"; break; |
| 734 | 742 | case Enum::SHORT: j = "short"; break; |
Mschema-csharp-recordsdefault / QuickType.cs+21 −1
| @@ -29,7 +29,7 @@ namespace QuickType | ||
| 29 | 29 | public Enum? Enum { get; set; } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 32 | + public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 33 | 33 | |
| 34 | 34 | public partial record TopLevel |
| 35 | 35 | { |
| @@ -211,6 +211,8 @@ namespace QuickType | ||
| 211 | 211 | return Enum.Decimal; |
| 212 | 212 | case "declare": |
| 213 | 213 | return Enum.Declare; |
| 214 | + case "DeserializationFeature": | |
| 215 | + return Enum.DeserializationFeature; | |
| 214 | 216 | case "decltype": |
| 215 | 217 | return Enum.Decltype; |
| 216 | 218 | case "decode_string": |
| @@ -483,6 +485,10 @@ namespace QuickType | ||
| 483 | 485 | return Enum.Object; |
| 484 | 486 | case "ObjectMapper": |
| 485 | 487 | return Enum.ObjectMapper; |
| 488 | + case "ObjectReader": | |
| 489 | + return Enum.ObjectReader; | |
| 490 | + case "ObjectWriter": | |
| 491 | + return Enum.ObjectWriter; | |
| 486 | 492 | case "of": |
| 487 | 493 | return Enum.Of; |
| 488 | 494 | case "oneway": |
| @@ -585,6 +591,8 @@ namespace QuickType | ||
| 585 | 591 | return Enum.Sendable; |
| 586 | 592 | case "serialize": |
| 587 | 593 | return Enum.Serialize; |
| 594 | + case "SerializationFeature": | |
| 595 | + return Enum.SerializationFeature; | |
| 588 | 596 | case "SerializerProvider": |
| 589 | 597 | return Enum.SerializerProvider; |
| 590 | 598 | case "set": |
| @@ -964,6 +972,9 @@ namespace QuickType | ||
| 964 | 972 | case Enum.Declare: |
| 965 | 973 | serializer.Serialize(writer, "declare"); |
| 966 | 974 | return; |
| 975 | + case Enum.DeserializationFeature: | |
| 976 | + serializer.Serialize(writer, "DeserializationFeature"); | |
| 977 | + return; | |
| 967 | 978 | case Enum.Decltype: |
| 968 | 979 | serializer.Serialize(writer, "decltype"); |
| 969 | 980 | return; |
| @@ -1372,6 +1383,12 @@ namespace QuickType | ||
| 1372 | 1383 | case Enum.ObjectMapper: |
| 1373 | 1384 | serializer.Serialize(writer, "ObjectMapper"); |
| 1374 | 1385 | return; |
| 1386 | + case Enum.ObjectReader: | |
| 1387 | + serializer.Serialize(writer, "ObjectReader"); | |
| 1388 | + return; | |
| 1389 | + case Enum.ObjectWriter: | |
| 1390 | + serializer.Serialize(writer, "ObjectWriter"); | |
| 1391 | + return; | |
| 1375 | 1392 | case Enum.Of: |
| 1376 | 1393 | serializer.Serialize(writer, "of"); |
| 1377 | 1394 | return; |
| @@ -1525,6 +1542,9 @@ namespace QuickType | ||
| 1525 | 1542 | case Enum.Serialize: |
| 1526 | 1543 | serializer.Serialize(writer, "serialize"); |
| 1527 | 1544 | return; |
| 1545 | + case Enum.SerializationFeature: | |
| 1546 | + serializer.Serialize(writer, "SerializationFeature"); | |
| 1547 | + return; | |
| 1528 | 1548 | case Enum.SerializerProvider: |
| 1529 | 1549 | serializer.Serialize(writer, "SerializerProvider"); |
| 1530 | 1550 | return; |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+21 −1
| @@ -27,7 +27,7 @@ namespace QuickType | ||
| 27 | 27 | public Enum? Enum { get; set; } |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 30 | + public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 31 | 31 | |
| 32 | 32 | public partial class TopLevel |
| 33 | 33 | { |
| @@ -208,6 +208,8 @@ namespace QuickType | ||
| 208 | 208 | return Enum.Decimal; |
| 209 | 209 | case "declare": |
| 210 | 210 | return Enum.Declare; |
| 211 | + case "DeserializationFeature": | |
| 212 | + return Enum.DeserializationFeature; | |
| 211 | 213 | case "decltype": |
| 212 | 214 | return Enum.Decltype; |
| 213 | 215 | case "decode_string": |
| @@ -480,6 +482,10 @@ namespace QuickType | ||
| 480 | 482 | return Enum.Object; |
| 481 | 483 | case "ObjectMapper": |
| 482 | 484 | return Enum.ObjectMapper; |
| 485 | + case "ObjectReader": | |
| 486 | + return Enum.ObjectReader; | |
| 487 | + case "ObjectWriter": | |
| 488 | + return Enum.ObjectWriter; | |
| 483 | 489 | case "of": |
| 484 | 490 | return Enum.Of; |
| 485 | 491 | case "oneway": |
| @@ -582,6 +588,8 @@ namespace QuickType | ||
| 582 | 588 | return Enum.Sendable; |
| 583 | 589 | case "serialize": |
| 584 | 590 | return Enum.Serialize; |
| 591 | + case "SerializationFeature": | |
| 592 | + return Enum.SerializationFeature; | |
| 585 | 593 | case "SerializerProvider": |
| 586 | 594 | return Enum.SerializerProvider; |
| 587 | 595 | case "set": |
| @@ -955,6 +963,9 @@ namespace QuickType | ||
| 955 | 963 | case Enum.Declare: |
| 956 | 964 | JsonSerializer.Serialize(writer, "declare", options); |
| 957 | 965 | return; |
| 966 | + case Enum.DeserializationFeature: | |
| 967 | + JsonSerializer.Serialize(writer, "DeserializationFeature", options); | |
| 968 | + return; | |
| 958 | 969 | case Enum.Decltype: |
| 959 | 970 | JsonSerializer.Serialize(writer, "decltype", options); |
| 960 | 971 | return; |
| @@ -1363,6 +1374,12 @@ namespace QuickType | ||
| 1363 | 1374 | case Enum.ObjectMapper: |
| 1364 | 1375 | JsonSerializer.Serialize(writer, "ObjectMapper", options); |
| 1365 | 1376 | return; |
| 1377 | + case Enum.ObjectReader: | |
| 1378 | + JsonSerializer.Serialize(writer, "ObjectReader", options); | |
| 1379 | + return; | |
| 1380 | + case Enum.ObjectWriter: | |
| 1381 | + JsonSerializer.Serialize(writer, "ObjectWriter", options); | |
| 1382 | + return; | |
| 1366 | 1383 | case Enum.Of: |
| 1367 | 1384 | JsonSerializer.Serialize(writer, "of", options); |
| 1368 | 1385 | return; |
| @@ -1516,6 +1533,9 @@ namespace QuickType | ||
| 1516 | 1533 | case Enum.Serialize: |
| 1517 | 1534 | JsonSerializer.Serialize(writer, "serialize", options); |
| 1518 | 1535 | return; |
| 1536 | + case Enum.SerializationFeature: | |
| 1537 | + JsonSerializer.Serialize(writer, "SerializationFeature", options); | |
| 1538 | + return; | |
| 1519 | 1539 | case Enum.SerializerProvider: |
| 1520 | 1540 | JsonSerializer.Serialize(writer, "SerializerProvider", options); |
| 1521 | 1541 | return; |
Mschema-csharpdefault / QuickType.cs+21 −1
| @@ -29,7 +29,7 @@ namespace QuickType | ||
| 29 | 29 | public Enum? Enum { get; set; } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 32 | + public enum Enum { Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, Asm, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBool, PurpleBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJson, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, Id, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, IsoDateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, Json, JsonConverter, JsonSerializer, JsonToken, JsonWriter, JsonAny, JsonCodingKey, JsonDecoder, JsonEncoder, JsonException, JsonGenerator, JsonNode, JsonNull, JsonParser, JsonReader, JsonTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NsObject, NoSuchMethod, Not, NotEq, NsError, NsString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJson, TopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JsonReader, Utf8JsonWriter, Uuid, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy }; | |
| 33 | 33 | |
| 34 | 34 | public partial class TopLevel |
| 35 | 35 | { |
| @@ -211,6 +211,8 @@ namespace QuickType | ||
| 211 | 211 | return Enum.Decimal; |
| 212 | 212 | case "declare": |
| 213 | 213 | return Enum.Declare; |
| 214 | + case "DeserializationFeature": | |
| 215 | + return Enum.DeserializationFeature; | |
| 214 | 216 | case "decltype": |
| 215 | 217 | return Enum.Decltype; |
| 216 | 218 | case "decode_string": |
| @@ -483,6 +485,10 @@ namespace QuickType | ||
| 483 | 485 | return Enum.Object; |
| 484 | 486 | case "ObjectMapper": |
| 485 | 487 | return Enum.ObjectMapper; |
| 488 | + case "ObjectReader": | |
| 489 | + return Enum.ObjectReader; | |
| 490 | + case "ObjectWriter": | |
| 491 | + return Enum.ObjectWriter; | |
| 486 | 492 | case "of": |
| 487 | 493 | return Enum.Of; |
| 488 | 494 | case "oneway": |
| @@ -585,6 +591,8 @@ namespace QuickType | ||
| 585 | 591 | return Enum.Sendable; |
| 586 | 592 | case "serialize": |
| 587 | 593 | return Enum.Serialize; |
| 594 | + case "SerializationFeature": | |
| 595 | + return Enum.SerializationFeature; | |
| 588 | 596 | case "SerializerProvider": |
| 589 | 597 | return Enum.SerializerProvider; |
| 590 | 598 | case "set": |
| @@ -964,6 +972,9 @@ namespace QuickType | ||
| 964 | 972 | case Enum.Declare: |
| 965 | 973 | serializer.Serialize(writer, "declare"); |
| 966 | 974 | return; |
| 975 | + case Enum.DeserializationFeature: | |
| 976 | + serializer.Serialize(writer, "DeserializationFeature"); | |
| 977 | + return; | |
| 967 | 978 | case Enum.Decltype: |
| 968 | 979 | serializer.Serialize(writer, "decltype"); |
| 969 | 980 | return; |
| @@ -1372,6 +1383,12 @@ namespace QuickType | ||
| 1372 | 1383 | case Enum.ObjectMapper: |
| 1373 | 1384 | serializer.Serialize(writer, "ObjectMapper"); |
| 1374 | 1385 | return; |
| 1386 | + case Enum.ObjectReader: | |
| 1387 | + serializer.Serialize(writer, "ObjectReader"); | |
| 1388 | + return; | |
| 1389 | + case Enum.ObjectWriter: | |
| 1390 | + serializer.Serialize(writer, "ObjectWriter"); | |
| 1391 | + return; | |
| 1375 | 1392 | case Enum.Of: |
| 1376 | 1393 | serializer.Serialize(writer, "of"); |
| 1377 | 1394 | return; |
| @@ -1525,6 +1542,9 @@ namespace QuickType | ||
| 1525 | 1542 | case Enum.Serialize: |
| 1526 | 1543 | serializer.Serialize(writer, "serialize"); |
| 1527 | 1544 | return; |
| 1545 | + case Enum.SerializationFeature: | |
| 1546 | + serializer.Serialize(writer, "SerializationFeature"); | |
| 1547 | + return; | |
| 1528 | 1548 | case Enum.SerializerProvider: |
| 1529 | 1549 | serializer.Serialize(writer, "SerializerProvider"); |
| 1530 | 1550 | return; |
Mschema-dartdefault / TopLevel.dart+8 −0
| @@ -98,6 +98,7 @@ enum Enum { | ||
| 98 | 98 | DEBUGGER, |
| 99 | 99 | DECIMAL, |
| 100 | 100 | DECLARE, |
| 101 | + DESERIALIZATION_FEATURE, | |
| 101 | 102 | DECLTYPE, |
| 102 | 103 | DECODE_STRING, |
| 103 | 104 | DECODER, |
| @@ -234,6 +235,8 @@ enum Enum { | ||
| 234 | 235 | NUMBER, |
| 235 | 236 | OBJECT, |
| 236 | 237 | OBJECT_MAPPER, |
| 238 | + OBJECT_READER, | |
| 239 | + OBJECT_WRITER, | |
| 237 | 240 | OF, |
| 238 | 241 | ONEWAY, |
| 239 | 242 | OPEN, |
| @@ -285,6 +288,7 @@ enum Enum { | ||
| 285 | 288 | ENUM_SELF, |
| 286 | 289 | SENDABLE, |
| 287 | 290 | SERIALIZE, |
| 291 | + SERIALIZATION_FEATURE, | |
| 288 | 292 | SERIALIZER_PROVIDER, |
| 289 | 293 | SET, |
| 290 | 294 | SHORT, |
| @@ -434,6 +438,7 @@ final enumValues = EnumValues({ | ||
| 434 | 438 | "debugger": Enum.DEBUGGER, |
| 435 | 439 | "decimal": Enum.DECIMAL, |
| 436 | 440 | "declare": Enum.DECLARE, |
| 441 | + "DeserializationFeature": Enum.DESERIALIZATION_FEATURE, | |
| 437 | 442 | "decltype": Enum.DECLTYPE, |
| 438 | 443 | "decode_string": Enum.DECODE_STRING, |
| 439 | 444 | "Decoder": Enum.DECODER, |
| @@ -570,6 +575,8 @@ final enumValues = EnumValues({ | ||
| 570 | 575 | "number": Enum.NUMBER, |
| 571 | 576 | "object": Enum.OBJECT, |
| 572 | 577 | "ObjectMapper": Enum.OBJECT_MAPPER, |
| 578 | + "ObjectReader": Enum.OBJECT_READER, | |
| 579 | + "ObjectWriter": Enum.OBJECT_WRITER, | |
| 573 | 580 | "of": Enum.OF, |
| 574 | 581 | "oneway": Enum.ONEWAY, |
| 575 | 582 | "open": Enum.OPEN, |
| @@ -621,6 +628,7 @@ final enumValues = EnumValues({ | ||
| 621 | 628 | "self": Enum.ENUM_SELF, |
| 622 | 629 | "Sendable": Enum.SENDABLE, |
| 623 | 630 | "serialize": Enum.SERIALIZE, |
| 631 | + "SerializationFeature": Enum.SERIALIZATION_FEATURE, | |
| 624 | 632 | "SerializerProvider": Enum.SERIALIZER_PROVIDER, |
| 625 | 633 | "set": Enum.SET, |
| 626 | 634 | "short": Enum.SHORT, |
Mschema-elixirdefault / QuickType.ex+4 −0
| @@ -80,6 +80,7 @@ defmodule EnumEnum do | ||
| 80 | 80 | :debugger, |
| 81 | 81 | :decimal, |
| 82 | 82 | :declare, |
| 83 | + :DeserializationFeature, | |
| 83 | 84 | :decltype, |
| 84 | 85 | :decode_string, |
| 85 | 86 | :Decoder, |
| @@ -216,6 +217,8 @@ defmodule EnumEnum do | ||
| 216 | 217 | :number, |
| 217 | 218 | :object, |
| 218 | 219 | :ObjectMapper, |
| 220 | + :ObjectReader, | |
| 221 | + :ObjectWriter, | |
| 219 | 222 | :of, |
| 220 | 223 | :oneway, |
| 221 | 224 | :open, |
| @@ -267,6 +270,7 @@ defmodule EnumEnum do | ||
| 267 | 270 | :self, |
| 268 | 271 | :Sendable, |
| 269 | 272 | :serialize, |
| 273 | + :SerializationFeature, | |
| 270 | 274 | :SerializerProvider, |
| 271 | 275 | :set, |
| 272 | 276 | :short, |
Mschema-elmdefault / QuickType.elm+12 −0
| @@ -101,6 +101,7 @@ type EnumEnum | ||
| 101 | 101 | | Debugger |
| 102 | 102 | | Decimal |
| 103 | 103 | | Declare |
| 104 | + | DeserializationFeature | |
| 104 | 105 | | Decltype |
| 105 | 106 | | DecodeString |
| 106 | 107 | | Decoder |
| @@ -237,6 +238,8 @@ type EnumEnum | ||
| 237 | 238 | | Number |
| 238 | 239 | | Object |
| 239 | 240 | | ObjectMapper |
| 241 | + | ObjectReader | |
| 242 | + | ObjectWriter | |
| 240 | 243 | | Of |
| 241 | 244 | | Oneway |
| 242 | 245 | | Open |
| @@ -288,6 +291,7 @@ type EnumEnum | ||
| 288 | 291 | | EnumSelf |
| 289 | 292 | | Sendable |
| 290 | 293 | | Serialize |
| 294 | + | SerializationFeature | |
| 291 | 295 | | SerializerProvider |
| 292 | 296 | | Set |
| 293 | 297 | | Short |
| @@ -462,6 +466,7 @@ enumEnum = | ||
| 462 | 466 | "debugger" -> Jdec.succeed Debugger |
| 463 | 467 | "decimal" -> Jdec.succeed Decimal |
| 464 | 468 | "declare" -> Jdec.succeed Declare |
| 469 | + "DeserializationFeature" -> Jdec.succeed DeserializationFeature | |
| 465 | 470 | "decltype" -> Jdec.succeed Decltype |
| 466 | 471 | "decode_string" -> Jdec.succeed DecodeString |
| 467 | 472 | "Decoder" -> Jdec.succeed Decoder |
| @@ -598,6 +603,8 @@ enumEnum = | ||
| 598 | 603 | "number" -> Jdec.succeed Number |
| 599 | 604 | "object" -> Jdec.succeed Object |
| 600 | 605 | "ObjectMapper" -> Jdec.succeed ObjectMapper |
| 606 | + "ObjectReader" -> Jdec.succeed ObjectReader | |
| 607 | + "ObjectWriter" -> Jdec.succeed ObjectWriter | |
| 601 | 608 | "of" -> Jdec.succeed Of |
| 602 | 609 | "oneway" -> Jdec.succeed Oneway |
| 603 | 610 | "open" -> Jdec.succeed Open |
| @@ -649,6 +656,7 @@ enumEnum = | ||
| 649 | 656 | "self" -> Jdec.succeed EnumSelf |
| 650 | 657 | "Sendable" -> Jdec.succeed Sendable |
| 651 | 658 | "serialize" -> Jdec.succeed Serialize |
| 659 | + "SerializationFeature" -> Jdec.succeed SerializationFeature | |
| 652 | 660 | "SerializerProvider" -> Jdec.succeed SerializerProvider |
| 653 | 661 | "set" -> Jdec.succeed Set |
| 654 | 662 | "short" -> Jdec.succeed Short |
| @@ -800,6 +808,7 @@ encodeEnumEnum x = case x of | ||
| 800 | 808 | Debugger -> Jenc.string "debugger" |
| 801 | 809 | Decimal -> Jenc.string "decimal" |
| 802 | 810 | Declare -> Jenc.string "declare" |
| 811 | + DeserializationFeature -> Jenc.string "DeserializationFeature" | |
| 803 | 812 | Decltype -> Jenc.string "decltype" |
| 804 | 813 | DecodeString -> Jenc.string "decode_string" |
| 805 | 814 | Decoder -> Jenc.string "Decoder" |
| @@ -936,6 +945,8 @@ encodeEnumEnum x = case x of | ||
| 936 | 945 | Number -> Jenc.string "number" |
| 937 | 946 | Object -> Jenc.string "object" |
| 938 | 947 | ObjectMapper -> Jenc.string "ObjectMapper" |
| 948 | + ObjectReader -> Jenc.string "ObjectReader" | |
| 949 | + ObjectWriter -> Jenc.string "ObjectWriter" | |
| 939 | 950 | Of -> Jenc.string "of" |
| 940 | 951 | Oneway -> Jenc.string "oneway" |
| 941 | 952 | Open -> Jenc.string "open" |
| @@ -987,6 +998,7 @@ encodeEnumEnum x = case x of | ||
| 987 | 998 | EnumSelf -> Jenc.string "self" |
| 988 | 999 | Sendable -> Jenc.string "Sendable" |
| 989 | 1000 | Serialize -> Jenc.string "serialize" |
| 1001 | + SerializationFeature -> Jenc.string "SerializationFeature" | |
| 990 | 1002 | SerializerProvider -> Jenc.string "SerializerProvider" |
| 991 | 1003 | Set -> Jenc.string "set" |
| 992 | 1004 | Short -> Jenc.string "short" |
Mschema-flowdefault / TopLevel.js+8 −0
| @@ -88,6 +88,7 @@ export type Enum = | ||
| 88 | 88 | | "debugger" |
| 89 | 89 | | "decimal" |
| 90 | 90 | | "declare" |
| 91 | + | "DeserializationFeature" | |
| 91 | 92 | | "decltype" |
| 92 | 93 | | "decode_string" |
| 93 | 94 | | "Decoder" |
| @@ -224,6 +225,8 @@ export type Enum = | ||
| 224 | 225 | | "number" |
| 225 | 226 | | "object" |
| 226 | 227 | | "ObjectMapper" |
| 228 | + | "ObjectReader" | |
| 229 | + | "ObjectWriter" | |
| 227 | 230 | | "of" |
| 228 | 231 | | "oneway" |
| 229 | 232 | | "open" |
| @@ -275,6 +278,7 @@ export type Enum = | ||
| 275 | 278 | | "self" |
| 276 | 279 | | "Sendable" |
| 277 | 280 | | "serialize" |
| 281 | + | "SerializationFeature" | |
| 278 | 282 | | "SerializerProvider" |
| 279 | 283 | | "set" |
| 280 | 284 | | "short" |
| @@ -611,6 +615,7 @@ const typeMap: any = { | ||
| 611 | 615 | "debugger", |
| 612 | 616 | "decimal", |
| 613 | 617 | "declare", |
| 618 | + "DeserializationFeature", | |
| 614 | 619 | "decltype", |
| 615 | 620 | "decode_string", |
| 616 | 621 | "Decoder", |
| @@ -747,6 +752,8 @@ const typeMap: any = { | ||
| 747 | 752 | "number", |
| 748 | 753 | "object", |
| 749 | 754 | "ObjectMapper", |
| 755 | + "ObjectReader", | |
| 756 | + "ObjectWriter", | |
| 750 | 757 | "of", |
| 751 | 758 | "oneway", |
| 752 | 759 | "open", |
| @@ -798,6 +805,7 @@ const typeMap: any = { | ||
| 798 | 805 | "self", |
| 799 | 806 | "Sendable", |
| 800 | 807 | "serialize", |
| 808 | + "SerializationFeature", | |
| 801 | 809 | "SerializerProvider", |
| 802 | 810 | "set", |
| 803 | 811 | "short", |
Mschema-golangdefault / quicktype.go+5 −1
| @@ -98,6 +98,7 @@ const ( | ||
| 98 | 98 | Debugger EnumEnum = "debugger" |
| 99 | 99 | Decimal EnumEnum = "decimal" |
| 100 | 100 | Declare EnumEnum = "declare" |
| 101 | + DeserializationFeature EnumEnum = "DeserializationFeature" | |
| 101 | 102 | Decltype EnumEnum = "decltype" |
| 102 | 103 | DecodeString EnumEnum = "decode_string" |
| 103 | 104 | Decoder EnumEnum = "Decoder" |
| @@ -234,6 +235,8 @@ const ( | ||
| 234 | 235 | Number EnumEnum = "number" |
| 235 | 236 | Object EnumEnum = "object" |
| 236 | 237 | ObjectMapper EnumEnum = "ObjectMapper" |
| 238 | + ObjectReader EnumEnum = "ObjectReader" | |
| 239 | + ObjectWriter EnumEnum = "ObjectWriter" | |
| 237 | 240 | Of EnumEnum = "of" |
| 238 | 241 | Oneway EnumEnum = "oneway" |
| 239 | 242 | Open EnumEnum = "open" |
| @@ -285,6 +288,7 @@ const ( | ||
| 285 | 288 | EnumSelf EnumEnum = "self" |
| 286 | 289 | Sendable EnumEnum = "Sendable" |
| 287 | 290 | Serialize EnumEnum = "serialize" |
| 291 | + SerializationFeature EnumEnum = "SerializationFeature" | |
| 288 | 292 | SerializerProvider EnumEnum = "SerializerProvider" |
| 289 | 293 | Set EnumEnum = "set" |
| 290 | 294 | Short EnumEnum = "short" |
| @@ -367,7 +371,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error { | ||
| 367 | 371 | var value string |
| 368 | 372 | if err := json.Unmarshal(data, &value); err != nil { return err } |
| 369 | 373 | switch EnumEnum(value) { |
| 370 | - case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil | |
| 374 | + case Empty, Bool, Complex, Imaginery, Abstract, Alignas, Alignof, And, AndEq, Any, EnumAny, Array, As, ASM, Assert, Associatedtype, Associativity, Async, Atomic, AtomicCancel, AtomicCommit, AtomicNoexcept, Auto, Await, Base, Bitand, Bitor, EnumBOOL, EnumBool, Boolean, Break, Bycopy, Byref, Byte, Calendar, Case, Catch, Chan, Char, Char16T, Char32T, Checked, Class, EnumClass, Clone, CoAwait, CoReturn, CoYield, Codable, CodingKey, CodingKeys, Compl, Concept, Console, Const, ConstCast, Constexpr, Constructor, Continue, Convenience, Convert, Converter, CultureInfo, Date, DateParseHandling, DateFormatter, DateOnly, DateOnlyConverter, DateTime, DateTimeStyles, Debugger, Decimal, Declare, DeserializationFeature, Decltype, DecodeString, Decoder, DecodingError, Def, Default, Defer, Deinit, Del, Delegate, Delete, Dict, Dictionary, DidSet, Do, Double, Dynamic, DynamicCast, Elif, Else, EncodeQuickType, Encoder, Enum, EnumValues, Equatable, EqualityContract, Event, Except, Exception, Explicit, Export, Exposing, Extends, Extension, Extern, Fallthrough, False, EnumFalse, Fileprivate, Final, Finally, Fixed, Float, For, Foreach, FormatException, Friend, From, FromJSON, Func, Function, Get, Global, Go, Goto, Guard, Hashable, HashCode, Hasher, HasOwnProperty, ID, If, Imp, Implements, Implicit, Import, In, Indirect, Infix, Init, Inline, Inout, Instanceof, Int, Interface, Internal, ISODateTimeOffsetConverter, Iterable, Is, Jdec, Jenc, Jpipe, JSON, JSONConverter, JSONSerializer, JSONToken, JSONWriter, JSONAny, JSONCodingKey, JSONDecoder, JSONEncoder, JSONException, JSONGenerator, JSONNode, JSONNull, JSONParser, JSONReader, JSONTokenType, Lambda, Lazy, Left, Let, List, Locale, Lock, Long, Map, MapEntry, MetadataPropertyHandling, Module, Mutable, Mutating, Namespace, Native, New, Newtonsoft, Nil, No, Noexcept, Nonatomic, None, EnumNone, Nonlocal, Nonmutating, NSObject, NoSuchMethod, Not, NotEq, NSError, NSString, Null, EnumNull, Nullptr, Number, Object, ObjectMapper, ObjectReader, ObjectWriter, Of, Oneway, Open, Operator, Optional, Or, OrEq, Out, Override, Package, Params, Pass, Port, Postfix, Precedence, Prefix, Print, Printf, PrintMembers, Private, Protected, Protocol, EnumProtocol, Public, Quicktype, Raise, Range, Readonly, Ref, RegExp, Register, ReinterpretCast, Repeat, Require, Required, Requires, Restrict, Retain, Rethrows, Return, Right, RuntimeType, S, Sbyte, Sealed, Sel, Select, Self, EnumSelf, Sendable, Serialize, SerializationFeature, SerializerProvider, Set, Short, Signed, SimpleModule, Sizeof, Stackalloc, Standards, Static, StaticAssert, StaticCast, StdDeserializer, StdSerializer, Strictfp, String, Struct, Subscript, Super, Switch, Symbol, Synchronized, System, Template, Then, This, ThreadLocal, Throw, Throws, TimeOnly, TimeOnlyConverter, TimeZone, ToJSON, EnumTopLevel, ToString, Transient, True, EnumTrue, Try, Type, EnumType, Typealias, Typedef, Typeid, Typename, Typeof, Uint, Ulong, Unchecked, Undefined, Union, Unowned, Unsafe, Unsigned, Ushort, Using, Utf8JSONReader, Utf8JSONWriter, UUID, Var, Virtual, Void, Volatile, WcharT, Weak, Where, While, WillSet, With, Xor, XorEq, Yes, Yield, Dummy: *x = EnumEnum(value); return nil | |
| 371 | 375 | } |
| 372 | 376 | return invalidEnumEnum(value) |
| 373 | 377 | } |
Mschema-haskelldefault / QuickType.hs+12 −0
| @@ -91,6 +91,7 @@ data EnumEnum | ||
| 91 | 91 | | DebuggerEnumEnum |
| 92 | 92 | | DecimalEnumEnum |
| 93 | 93 | | DeclareEnumEnum |
| 94 | + | DeserializationFeatureEnumEnum | |
| 94 | 95 | | DecltypeEnumEnum |
| 95 | 96 | | DecodeStringEnumEnum |
| 96 | 97 | | DecoderEnumEnum |
| @@ -227,6 +228,8 @@ data EnumEnum | ||
| 227 | 228 | | NumberEnumEnum |
| 228 | 229 | | ObjectEnumEnum |
| 229 | 230 | | ObjectMapperEnumEnum |
| 231 | + | ObjectReaderEnumEnum | |
| 232 | + | ObjectWriterEnumEnum | |
| 230 | 233 | | OfEnumEnum |
| 231 | 234 | | OnewayEnumEnum |
| 232 | 235 | | OpenEnumEnum |
| @@ -278,6 +281,7 @@ data EnumEnum | ||
| 278 | 281 | | PurpleSelfEnumEnum |
| 279 | 282 | | SendableEnumEnum |
| 280 | 283 | | SerializeEnumEnum |
| 284 | + | SerializationFeatureEnumEnum | |
| 281 | 285 | | SerializerProviderEnumEnum |
| 282 | 286 | | SetEnumEnum |
| 283 | 287 | | ShortEnumEnum |
| @@ -440,6 +444,7 @@ instance ToJSON EnumEnum where | ||
| 440 | 444 | toJSON DebuggerEnumEnum = "debugger" |
| 441 | 445 | toJSON DecimalEnumEnum = "decimal" |
| 442 | 446 | toJSON DeclareEnumEnum = "declare" |
| 447 | + toJSON DeserializationFeatureEnumEnum = "DeserializationFeature" | |
| 443 | 448 | toJSON DecltypeEnumEnum = "decltype" |
| 444 | 449 | toJSON DecodeStringEnumEnum = "decode_string" |
| 445 | 450 | toJSON DecoderEnumEnum = "Decoder" |
| @@ -576,6 +581,8 @@ instance ToJSON EnumEnum where | ||
| 576 | 581 | toJSON NumberEnumEnum = "number" |
| 577 | 582 | toJSON ObjectEnumEnum = "object" |
| 578 | 583 | toJSON ObjectMapperEnumEnum = "ObjectMapper" |
| 584 | + toJSON ObjectReaderEnumEnum = "ObjectReader" | |
| 585 | + toJSON ObjectWriterEnumEnum = "ObjectWriter" | |
| 579 | 586 | toJSON OfEnumEnum = "of" |
| 580 | 587 | toJSON OnewayEnumEnum = "oneway" |
| 581 | 588 | toJSON OpenEnumEnum = "open" |
| @@ -627,6 +634,7 @@ instance ToJSON EnumEnum where | ||
| 627 | 634 | toJSON PurpleSelfEnumEnum = "self" |
| 628 | 635 | toJSON SendableEnumEnum = "Sendable" |
| 629 | 636 | toJSON SerializeEnumEnum = "serialize" |
| 637 | + toJSON SerializationFeatureEnumEnum = "SerializationFeature" | |
| 630 | 638 | toJSON SerializerProviderEnumEnum = "SerializerProvider" |
| 631 | 639 | toJSON SetEnumEnum = "set" |
| 632 | 640 | toJSON ShortEnumEnum = "short" |
| @@ -777,6 +785,7 @@ instance FromJSON EnumEnum where | ||
| 777 | 785 | parseText "debugger" = return DebuggerEnumEnum |
| 778 | 786 | parseText "decimal" = return DecimalEnumEnum |
| 779 | 787 | parseText "declare" = return DeclareEnumEnum |
| 788 | + parseText "DeserializationFeature" = return DeserializationFeatureEnumEnum | |
| 780 | 789 | parseText "decltype" = return DecltypeEnumEnum |
| 781 | 790 | parseText "decode_string" = return DecodeStringEnumEnum |
| 782 | 791 | parseText "Decoder" = return DecoderEnumEnum |
| @@ -913,6 +922,8 @@ instance FromJSON EnumEnum where | ||
| 913 | 922 | parseText "number" = return NumberEnumEnum |
| 914 | 923 | parseText "object" = return ObjectEnumEnum |
| 915 | 924 | parseText "ObjectMapper" = return ObjectMapperEnumEnum |
| 925 | + parseText "ObjectReader" = return ObjectReaderEnumEnum | |
| 926 | + parseText "ObjectWriter" = return ObjectWriterEnumEnum | |
| 916 | 927 | parseText "of" = return OfEnumEnum |
| 917 | 928 | parseText "oneway" = return OnewayEnumEnum |
| 918 | 929 | parseText "open" = return OpenEnumEnum |
| @@ -964,6 +975,7 @@ instance FromJSON EnumEnum where | ||
| 964 | 975 | parseText "self" = return PurpleSelfEnumEnum |
| 965 | 976 | parseText "Sendable" = return SendableEnumEnum |
| 966 | 977 | parseText "serialize" = return SerializeEnumEnum |
| 978 | + parseText "SerializationFeature" = return SerializationFeatureEnumEnum | |
| 967 | 979 | parseText "SerializerProvider" = return SerializerProviderEnumEnum |
| 968 | 980 | parseText "set" = return SetEnumEnum |
| 969 | 981 | parseText "short" = return ShortEnumEnum |
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+9 −1
| @@ -4,7 +4,7 @@ import java.io.IOException; | ||
| 4 | 4 | import com.fasterxml.jackson.annotation.*; |
| 5 | 5 | |
| 6 | 6 | public enum Enum { |
| 7 | - EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 7 | + EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 8 | 8 | |
| 9 | 9 | @JsonValue |
| 10 | 10 | public String toValue() { |
| @@ -82,6 +82,7 @@ public enum Enum { | ||
| 82 | 82 | case DEBUGGER: return "debugger"; |
| 83 | 83 | case DECIMAL: return "decimal"; |
| 84 | 84 | case DECLARE: return "declare"; |
| 85 | + case DESERIALIZATION_FEATURE: return "DeserializationFeature"; | |
| 85 | 86 | case DECLTYPE: return "decltype"; |
| 86 | 87 | case DECODE_STRING: return "decode_string"; |
| 87 | 88 | case DECODER: return "Decoder"; |
| @@ -218,6 +219,8 @@ public enum Enum { | ||
| 218 | 219 | case NUMBER: return "number"; |
| 219 | 220 | case OBJECT: return "object"; |
| 220 | 221 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 222 | + case OBJECT_READER: return "ObjectReader"; | |
| 223 | + case OBJECT_WRITER: return "ObjectWriter"; | |
| 221 | 224 | case OF: return "of"; |
| 222 | 225 | case ONEWAY: return "oneway"; |
| 223 | 226 | case OPEN: return "open"; |
| @@ -269,6 +272,7 @@ public enum Enum { | ||
| 269 | 272 | case ENUM_SELF: return "self"; |
| 270 | 273 | case SENDABLE: return "Sendable"; |
| 271 | 274 | case SERIALIZE: return "serialize"; |
| 275 | + case SERIALIZATION_FEATURE: return "SerializationFeature"; | |
| 272 | 276 | case SERIALIZER_PROVIDER: return "SerializerProvider"; |
| 273 | 277 | case SET: return "set"; |
| 274 | 278 | case SHORT: return "short"; |
| @@ -421,6 +425,7 @@ public enum Enum { | ||
| 421 | 425 | if (value.equals("debugger")) return DEBUGGER; |
| 422 | 426 | if (value.equals("decimal")) return DECIMAL; |
| 423 | 427 | if (value.equals("declare")) return DECLARE; |
| 428 | + if (value.equals("DeserializationFeature")) return DESERIALIZATION_FEATURE; | |
| 424 | 429 | if (value.equals("decltype")) return DECLTYPE; |
| 425 | 430 | if (value.equals("decode_string")) return DECODE_STRING; |
| 426 | 431 | if (value.equals("Decoder")) return DECODER; |
| @@ -557,6 +562,8 @@ public enum Enum { | ||
| 557 | 562 | if (value.equals("number")) return NUMBER; |
| 558 | 563 | if (value.equals("object")) return OBJECT; |
| 559 | 564 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 565 | + if (value.equals("ObjectReader")) return OBJECT_READER; | |
| 566 | + if (value.equals("ObjectWriter")) return OBJECT_WRITER; | |
| 560 | 567 | if (value.equals("of")) return OF; |
| 561 | 568 | if (value.equals("oneway")) return ONEWAY; |
| 562 | 569 | if (value.equals("open")) return OPEN; |
| @@ -608,6 +615,7 @@ public enum Enum { | ||
| 608 | 615 | if (value.equals("self")) return ENUM_SELF; |
| 609 | 616 | if (value.equals("Sendable")) return SENDABLE; |
| 610 | 617 | if (value.equals("serialize")) return SERIALIZE; |
| 618 | + if (value.equals("SerializationFeature")) return SERIALIZATION_FEATURE; | |
| 611 | 619 | if (value.equals("SerializerProvider")) return SERIALIZER_PROVIDER; |
| 612 | 620 | if (value.equals("set")) return SET; |
| 613 | 621 | if (value.equals("short")) return SHORT; |
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+9 −1
| @@ -4,7 +4,7 @@ import java.io.IOException; | ||
| 4 | 4 | import com.fasterxml.jackson.annotation.*; |
| 5 | 5 | |
| 6 | 6 | public enum Enum { |
| 7 | - EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 7 | + EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 8 | 8 | |
| 9 | 9 | @JsonValue |
| 10 | 10 | public String toValue() { |
| @@ -82,6 +82,7 @@ public enum Enum { | ||
| 82 | 82 | case DEBUGGER: return "debugger"; |
| 83 | 83 | case DECIMAL: return "decimal"; |
| 84 | 84 | case DECLARE: return "declare"; |
| 85 | + case DESERIALIZATION_FEATURE: return "DeserializationFeature"; | |
| 85 | 86 | case DECLTYPE: return "decltype"; |
| 86 | 87 | case DECODE_STRING: return "decode_string"; |
| 87 | 88 | case DECODER: return "Decoder"; |
| @@ -218,6 +219,8 @@ public enum Enum { | ||
| 218 | 219 | case NUMBER: return "number"; |
| 219 | 220 | case OBJECT: return "object"; |
| 220 | 221 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 222 | + case OBJECT_READER: return "ObjectReader"; | |
| 223 | + case OBJECT_WRITER: return "ObjectWriter"; | |
| 221 | 224 | case OF: return "of"; |
| 222 | 225 | case ONEWAY: return "oneway"; |
| 223 | 226 | case OPEN: return "open"; |
| @@ -269,6 +272,7 @@ public enum Enum { | ||
| 269 | 272 | case ENUM_SELF: return "self"; |
| 270 | 273 | case SENDABLE: return "Sendable"; |
| 271 | 274 | case SERIALIZE: return "serialize"; |
| 275 | + case SERIALIZATION_FEATURE: return "SerializationFeature"; | |
| 272 | 276 | case SERIALIZER_PROVIDER: return "SerializerProvider"; |
| 273 | 277 | case SET: return "set"; |
| 274 | 278 | case SHORT: return "short"; |
| @@ -421,6 +425,7 @@ public enum Enum { | ||
| 421 | 425 | if (value.equals("debugger")) return DEBUGGER; |
| 422 | 426 | if (value.equals("decimal")) return DECIMAL; |
| 423 | 427 | if (value.equals("declare")) return DECLARE; |
| 428 | + if (value.equals("DeserializationFeature")) return DESERIALIZATION_FEATURE; | |
| 424 | 429 | if (value.equals("decltype")) return DECLTYPE; |
| 425 | 430 | if (value.equals("decode_string")) return DECODE_STRING; |
| 426 | 431 | if (value.equals("Decoder")) return DECODER; |
| @@ -557,6 +562,8 @@ public enum Enum { | ||
| 557 | 562 | if (value.equals("number")) return NUMBER; |
| 558 | 563 | if (value.equals("object")) return OBJECT; |
| 559 | 564 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 565 | + if (value.equals("ObjectReader")) return OBJECT_READER; | |
| 566 | + if (value.equals("ObjectWriter")) return OBJECT_WRITER; | |
| 560 | 567 | if (value.equals("of")) return OF; |
| 561 | 568 | if (value.equals("oneway")) return ONEWAY; |
| 562 | 569 | if (value.equals("open")) return OPEN; |
| @@ -608,6 +615,7 @@ public enum Enum { | ||
| 608 | 615 | if (value.equals("self")) return ENUM_SELF; |
| 609 | 616 | if (value.equals("Sendable")) return SENDABLE; |
| 610 | 617 | if (value.equals("serialize")) return SERIALIZE; |
| 618 | + if (value.equals("SerializationFeature")) return SERIALIZATION_FEATURE; | |
| 611 | 619 | if (value.equals("SerializerProvider")) return SERIALIZER_PROVIDER; |
| 612 | 620 | if (value.equals("set")) return SET; |
| 613 | 621 | if (value.equals("short")) return SHORT; |
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+9 −1
| @@ -4,7 +4,7 @@ import java.io.IOException; | ||
| 4 | 4 | import com.fasterxml.jackson.annotation.*; |
| 5 | 5 | |
| 6 | 6 | public enum Enum { |
| 7 | - EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 7 | + EMPTY, BOOL, COMPLEX, IMAGINERY, ABSTRACT, ALIGNAS, ALIGNOF, AND, AND_EQ, ANY, ENUM_ANY, ARRAY, AS, ASM, ASSERT, ASSOCIATEDTYPE, ASSOCIATIVITY, ASYNC, ATOMIC, ATOMIC_CANCEL, ATOMIC_COMMIT, ATOMIC_NOEXCEPT, AUTO, AWAIT, BASE, BITAND, BITOR, ENUM_BOOL, PURPLE_BOOL, BOOLEAN, BREAK, BYCOPY, BYREF, BYTE, CALENDAR, CASE, CATCH, CHAN, CHAR, CHAR16_T, CHAR32_T, CHECKED, CLASS, ENUM_CLASS, CLONE, CO_AWAIT, CO_RETURN, CO_YIELD, CODABLE, CODING_KEY, CODING_KEYS, COMPL, CONCEPT, CONSOLE, CONST, CONST_CAST, CONSTEXPR, CONSTRUCTOR, CONTINUE, CONVENIENCE, CONVERT, CONVERTER, CULTURE_INFO, DATE, DATE_PARSE_HANDLING, DATE_FORMATTER, DATE_ONLY, DATE_ONLY_CONVERTER, DATE_TIME, DATE_TIME_STYLES, DEBUGGER, DECIMAL, DECLARE, DESERIALIZATION_FEATURE, DECLTYPE, DECODE_STRING, DECODER, DECODING_ERROR, DEF, DEFAULT, DEFER, DEINIT, DEL, DELEGATE, DELETE, DICT, DICTIONARY, DID_SET, DO, DOUBLE, DYNAMIC, DYNAMIC_CAST, ELIF, ELSE, ENCODE_QUICK_TYPE, ENCODER, ENUM, ENUM_VALUES, EQUATABLE, EQUALITY_CONTRACT, EVENT, EXCEPT, EXCEPTION, EXPLICIT, EXPORT, EXPOSING, EXTENDS, EXTENSION, EXTERN, FALLTHROUGH, FALSE, ENUM_FALSE, FILEPRIVATE, FINAL, FINALLY, FIXED, FLOAT, FOR, FOREACH, FORMAT_EXCEPTION, FRIEND, FROM, FROM_JSON, FUNC, FUNCTION, GET, GLOBAL, GO, GOTO, GUARD, HASHABLE, HASH_CODE, HASHER, HAS_OWN_PROPERTY, ID, IF, IMP, IMPLEMENTS, IMPLICIT, IMPORT, IN, INDIRECT, INFIX, INIT, INLINE, INOUT, INSTANCEOF, INT, INTERFACE, INTERNAL, ISO_DATE_TIME_OFFSET_CONVERTER, ITERABLE, IS, JDEC, JENC, JPIPE, JSON, JSON_CONVERTER, JSON_SERIALIZER, JSON_TOKEN, JSON_WRITER, JSON_ANY, JSON_CODING_KEY, JSON_DECODER, JSON_ENCODER, JSON_EXCEPTION, JSON_GENERATOR, JSON_NODE, JSON_NULL, JSON_PARSER, JSON_READER, JSON_TOKEN_TYPE, LAMBDA, LAZY, LEFT, LET, LIST, LOCALE, LOCK, LONG, MAP, MAP_ENTRY, METADATA_PROPERTY_HANDLING, MODULE, MUTABLE, MUTATING, NAMESPACE, NATIVE, NEW, NEWTONSOFT, NIL, NO, NOEXCEPT, NONATOMIC, NONE, ENUM_NONE, NONLOCAL, NONMUTATING, NS_OBJECT, NO_SUCH_METHOD, NOT, NOT_EQ, NS_ERROR, NS_STRING, NULL, ENUM_NULL, NULLPTR, NUMBER, OBJECT, OBJECT_MAPPER, OBJECT_READER, OBJECT_WRITER, OF, ONEWAY, OPEN, OPERATOR, OPTIONAL, OR, OR_EQ, OUT, OVERRIDE, PACKAGE, PARAMS, PASS, PORT, POSTFIX, PRECEDENCE, PREFIX, PRINT, PRINTF, PRINT_MEMBERS, PRIVATE, PROTECTED, PROTOCOL, ENUM_PROTOCOL, PUBLIC, QUICKTYPE, RAISE, RANGE, READONLY, REF, REG_EXP, REGISTER, REINTERPRET_CAST, REPEAT, REQUIRE, REQUIRED, REQUIRES, RESTRICT, RETAIN, RETHROWS, RETURN, RIGHT, RUNTIME_TYPE, S, SBYTE, SEALED, SEL, SELECT, SELF, ENUM_SELF, SENDABLE, SERIALIZE, SERIALIZATION_FEATURE, SERIALIZER_PROVIDER, SET, SHORT, SIGNED, SIMPLE_MODULE, SIZEOF, STACKALLOC, STANDARDS, STATIC, STATIC_ASSERT, STATIC_CAST, STD_DESERIALIZER, STD_SERIALIZER, STRICTFP, STRING, STRUCT, SUBSCRIPT, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, SYSTEM, TEMPLATE, THEN, THIS, THREAD_LOCAL, THROW, THROWS, TIME_ONLY, TIME_ONLY_CONVERTER, TIME_ZONE, TO_JSON, TOP_LEVEL, TO_STRING, TRANSIENT, TRUE, ENUM_TRUE, TRY, TYPE, ENUM_TYPE, TYPEALIAS, TYPEDEF, TYPEID, TYPENAME, TYPEOF, UINT, ULONG, UNCHECKED, UNDEFINED, UNION, UNOWNED, UNSAFE, UNSIGNED, USHORT, USING, UTF8_JSON_READER, UTF8_JSON_WRITER, UUID, VAR, VIRTUAL, VOID, VOLATILE, WCHAR_T, WEAK, WHERE, WHILE, WILL_SET, WITH, XOR, XOR_EQ, YES, YIELD, DUMMY; | |
| 8 | 8 | |
| 9 | 9 | @JsonValue |
| 10 | 10 | public String toValue() { |
| @@ -82,6 +82,7 @@ public enum Enum { | ||
| 82 | 82 | case DEBUGGER: return "debugger"; |
| 83 | 83 | case DECIMAL: return "decimal"; |
| 84 | 84 | case DECLARE: return "declare"; |
| 85 | + case DESERIALIZATION_FEATURE: return "DeserializationFeature"; | |
| 85 | 86 | case DECLTYPE: return "decltype"; |
| 86 | 87 | case DECODE_STRING: return "decode_string"; |
| 87 | 88 | case DECODER: return "Decoder"; |
| @@ -218,6 +219,8 @@ public enum Enum { | ||
| 218 | 219 | case NUMBER: return "number"; |
| 219 | 220 | case OBJECT: return "object"; |
| 220 | 221 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 222 | + case OBJECT_READER: return "ObjectReader"; | |
| 223 | + case OBJECT_WRITER: return "ObjectWriter"; | |
| 221 | 224 | case OF: return "of"; |
| 222 | 225 | case ONEWAY: return "oneway"; |
| 223 | 226 | case OPEN: return "open"; |
| @@ -269,6 +272,7 @@ public enum Enum { | ||
| 269 | 272 | case ENUM_SELF: return "self"; |
| 270 | 273 | case SENDABLE: return "Sendable"; |
| 271 | 274 | case SERIALIZE: return "serialize"; |
| 275 | + case SERIALIZATION_FEATURE: return "SerializationFeature"; | |
| 272 | 276 | case SERIALIZER_PROVIDER: return "SerializerProvider"; |
| 273 | 277 | case SET: return "set"; |
| 274 | 278 | case SHORT: return "short"; |
| @@ -421,6 +425,7 @@ public enum Enum { | ||
| 421 | 425 | if (value.equals("debugger")) return DEBUGGER; |
| 422 | 426 | if (value.equals("decimal")) return DECIMAL; |
| 423 | 427 | if (value.equals("declare")) return DECLARE; |
| 428 | + if (value.equals("DeserializationFeature")) return DESERIALIZATION_FEATURE; | |
| 424 | 429 | if (value.equals("decltype")) return DECLTYPE; |
| 425 | 430 | if (value.equals("decode_string")) return DECODE_STRING; |
| 426 | 431 | if (value.equals("Decoder")) return DECODER; |
| @@ -557,6 +562,8 @@ public enum Enum { | ||
| 557 | 562 | if (value.equals("number")) return NUMBER; |
| 558 | 563 | if (value.equals("object")) return OBJECT; |
| 559 | 564 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 565 | + if (value.equals("ObjectReader")) return OBJECT_READER; | |
| 566 | + if (value.equals("ObjectWriter")) return OBJECT_WRITER; | |
| 560 | 567 | if (value.equals("of")) return OF; |
| 561 | 568 | if (value.equals("oneway")) return ONEWAY; |
| 562 | 569 | if (value.equals("open")) return OPEN; |
| @@ -608,6 +615,7 @@ public enum Enum { | ||
| 608 | 615 | if (value.equals("self")) return ENUM_SELF; |
| 609 | 616 | if (value.equals("Sendable")) return SENDABLE; |
| 610 | 617 | if (value.equals("serialize")) return SERIALIZE; |
| 618 | + if (value.equals("SerializationFeature")) return SERIALIZATION_FEATURE; | |
| 611 | 619 | if (value.equals("SerializerProvider")) return SERIALIZER_PROVIDER; |
| 612 | 620 | if (value.equals("set")) return SET; |
| 613 | 621 | if (value.equals("short")) return SHORT; |
Mschema-javascript-prop-typesdefault / toplevel.js+1 −1
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | import PropTypes from "prop-types"; |
| 14 | 14 | |
| 15 | 15 | let _TopLevel; |
| 16 | -const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'self', 'Sendable', 'serialize', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']); | |
| 16 | +const _Enum = PropTypes.oneOf(['_', '_Bool', '_Complex', '_Imaginery', 'abstract', 'alignas', 'alignof', 'and', 'and_eq', 'any', 'Any', 'array', 'as', 'asm', 'assert', 'associatedtype', 'associativity', 'async', 'atomic', 'atomic_cancel', 'atomic_commit', 'atomic_noexcept', 'auto', 'await', 'base', 'bitand', 'bitor', 'BOOL', 'bool', 'boolean', 'break', 'bycopy', 'byref', 'byte', 'Calendar', 'case', 'catch', 'chan', 'char', 'char16_t', 'char32_t', 'checked', 'class', 'Class', 'clone', 'co_await', 'co_return', 'co_yield', 'Codable', 'CodingKey', 'CodingKeys', 'compl', 'concept', 'console', 'const', 'const_cast', 'constexpr', 'constructor', 'continue', 'convenience', 'convert', 'converter', 'CultureInfo', 'date', 'date_parse_handling', 'DateFormatter', 'DateOnly', 'DateOnlyConverter', 'DateTime', 'DateTimeStyles', 'debugger', 'decimal', 'declare', 'DeserializationFeature', 'decltype', 'decode_string', 'Decoder', 'DecodingError', 'def', 'default', 'defer', 'deinit', 'del', 'delegate', 'delete', 'dict', 'dictionary', 'didSet', 'do', 'double', 'dynamic', 'dynamic_cast', 'elif', 'else', 'encode_quick_type', 'Encoder', 'enum', 'EnumValues', 'Equatable', 'equalityContract', 'event', 'except', 'exception', 'explicit', 'export', 'exposing', 'extends', 'extension', 'extern', 'fallthrough', 'false', 'False', 'fileprivate', 'final', 'finally', 'fixed', 'float', 'for', 'foreach', 'FormatException', 'friend', 'from', 'from_json', 'func', 'function', 'get', 'global', 'go', 'goto', 'guard', 'Hashable', 'hashCode', 'Hasher', 'hasOwnProperty', 'id', 'if', 'IMP', 'implements', 'implicit', 'import', 'in', 'indirect', 'infix', 'init', 'inline', 'inout', 'instanceof', 'int', 'interface', 'internal', 'IsoDateTimeOffsetConverter', 'iterable', 'is', 'jdec', 'jenc', 'jpipe', 'json', 'json_converter', 'json_serializer', 'json_token', 'json_writer', 'JSONAny', 'JSONCodingKey', 'JSONDecoder', 'JSONEncoder', 'JsonException', 'JsonGenerator', 'JsonNode', 'JSONNull', 'JsonParser', 'JsonReader', 'JsonTokenType', 'lambda', 'lazy', 'left', 'let', 'list', 'Locale', 'lock', 'long', 'map', 'MapEntry', 'metadata_property_handling', 'module', 'mutable', 'mutating', 'namespace', 'native', 'new', 'newtonsoft', 'nil', 'NO', 'noexcept', 'nonatomic', 'none', 'None', 'nonlocal', 'nonmutating', 'NSObject', 'noSuchMethod', 'not', 'not_eq', 'NSError', 'NSString', 'NULL', 'null', 'nullptr', 'number', 'object', 'ObjectMapper', 'ObjectReader', 'ObjectWriter', 'of', 'oneway', 'open', 'operator', 'optional', 'or', 'or_eq', 'out', 'override', 'package', 'params', 'pass', 'port', 'postfix', 'precedence', 'prefix', 'print', 'printf', 'printMembers', 'private', 'protected', 'Protocol', 'protocol', 'public', 'quicktype', 'raise', 'range', 'readonly', 'ref', 'RegExp', 'register', 'reinterpret_cast', 'repeat', 'require', 'required', 'requires', 'restrict', 'retain', 'rethrows', 'return', 'right', 'runtimeType', 's', 'sbyte', 'sealed', 'SEL', 'select', 'Self', 'self', 'Sendable', 'serialize', 'SerializationFeature', 'SerializerProvider', 'set', 'short', 'signed', 'SimpleModule', 'sizeof', 'stackalloc', 'Standards', 'static', 'static_assert', 'static_cast', 'StdDeserializer', 'StdSerializer', 'strictfp', 'string', 'struct', 'subscript', 'super', 'switch', 'symbol', 'synchronized', 'system', 'template', 'then', 'this', 'thread_local', 'throw', 'throws', 'TimeOnly', 'TimeOnlyConverter', 'TimeZone', 'to_json', 'top_level', 'toString', 'transient', 'True', 'true', 'try', 'Type', 'type', 'typealias', 'typedef', 'typeid', 'typename', 'typeof', 'uint', 'ulong', 'unchecked', 'undefined', 'union', 'unowned', 'unsafe', 'unsigned', 'ushort', 'using', 'Utf8JsonReader', 'Utf8JsonWriter', 'UUID', 'var', 'virtual', 'void', 'volatile', 'wchar_t', 'weak', 'where', 'while', 'willSet', 'with', 'xor', 'xor_eq', 'YES', 'yield', 'dummy']); | |
| 17 | 17 | _TopLevel = PropTypes.shape({ |
| 18 | 18 | "enum": PropTypes.oneOfType([_Enum, PropTypes.oneOf([null])]), |
| 19 | 19 | }); |
Mschema-javascriptdefault / TopLevel.js+4 −0
| @@ -269,6 +269,7 @@ const typeMap = { | ||
| 269 | 269 | "debugger", |
| 270 | 270 | "decimal", |
| 271 | 271 | "declare", |
| 272 | + "DeserializationFeature", | |
| 272 | 273 | "decltype", |
| 273 | 274 | "decode_string", |
| 274 | 275 | "Decoder", |
| @@ -405,6 +406,8 @@ const typeMap = { | ||
| 405 | 406 | "number", |
| 406 | 407 | "object", |
| 407 | 408 | "ObjectMapper", |
| 409 | + "ObjectReader", | |
| 410 | + "ObjectWriter", | |
| 408 | 411 | "of", |
| 409 | 412 | "oneway", |
| 410 | 413 | "open", |
| @@ -456,6 +459,7 @@ const typeMap = { | ||
| 456 | 459 | "self", |
| 457 | 460 | "Sendable", |
| 458 | 461 | "serialize", |
| 462 | + "SerializationFeature", | |
| 459 | 463 | "SerializerProvider", |
| 460 | 464 | "set", |
| 461 | 465 | "short", |
Mschema-kotlin-jacksondefault / TopLevel.kt+8 −0
| @@ -114,6 +114,7 @@ enum class EnumEnum(val value: String) { | ||
| 114 | 114 | Debugger("debugger"), |
| 115 | 115 | Decimal("decimal"), |
| 116 | 116 | Declare("declare"), |
| 117 | + DeserializationFeature("DeserializationFeature"), | |
| 117 | 118 | Decltype("decltype"), |
| 118 | 119 | DecodeString("decode_string"), |
| 119 | 120 | Decoder("Decoder"), |
| @@ -250,6 +251,8 @@ enum class EnumEnum(val value: String) { | ||
| 250 | 251 | Number("number"), |
| 251 | 252 | Object("object"), |
| 252 | 253 | EnumObjectMapper("ObjectMapper"), |
| 254 | + ObjectReader("ObjectReader"), | |
| 255 | + ObjectWriter("ObjectWriter"), | |
| 253 | 256 | Of("of"), |
| 254 | 257 | Oneway("oneway"), |
| 255 | 258 | Open("open"), |
| @@ -301,6 +304,7 @@ enum class EnumEnum(val value: String) { | ||
| 301 | 304 | EnumSelf("self"), |
| 302 | 305 | Sendable("Sendable"), |
| 303 | 306 | Serialize("serialize"), |
| 307 | + SerializationFeature("SerializationFeature"), | |
| 304 | 308 | EnumSerializerProvider("SerializerProvider"), |
| 305 | 309 | Set("set"), |
| 306 | 310 | EnumShort("short"), |
| @@ -450,6 +454,7 @@ enum class EnumEnum(val value: String) { | ||
| 450 | 454 | "debugger" -> Debugger |
| 451 | 455 | "decimal" -> Decimal |
| 452 | 456 | "declare" -> Declare |
| 457 | + "DeserializationFeature" -> DeserializationFeature | |
| 453 | 458 | "decltype" -> Decltype |
| 454 | 459 | "decode_string" -> DecodeString |
| 455 | 460 | "Decoder" -> Decoder |
| @@ -586,6 +591,8 @@ enum class EnumEnum(val value: String) { | ||
| 586 | 591 | "number" -> Number |
| 587 | 592 | "object" -> Object |
| 588 | 593 | "ObjectMapper" -> EnumObjectMapper |
| 594 | + "ObjectReader" -> ObjectReader | |
| 595 | + "ObjectWriter" -> ObjectWriter | |
| 589 | 596 | "of" -> Of |
| 590 | 597 | "oneway" -> Oneway |
| 591 | 598 | "open" -> Open |
| @@ -637,6 +644,7 @@ enum class EnumEnum(val value: String) { | ||
| 637 | 644 | "self" -> EnumSelf |
| 638 | 645 | "Sendable" -> Sendable |
| 639 | 646 | "serialize" -> Serialize |
| 647 | + "SerializationFeature" -> SerializationFeature | |
| 640 | 648 | "SerializerProvider" -> EnumSerializerProvider |
| 641 | 649 | "set" -> Set |
| 642 | 650 | "short" -> EnumShort |
Mschema-kotlindefault / TopLevel.kt+8 −0
| @@ -101,6 +101,7 @@ enum class EnumEnum(val value: String) { | ||
| 101 | 101 | Debugger("debugger"), |
| 102 | 102 | Decimal("decimal"), |
| 103 | 103 | Declare("declare"), |
| 104 | + DeserializationFeature("DeserializationFeature"), | |
| 104 | 105 | Decltype("decltype"), |
| 105 | 106 | DecodeString("decode_string"), |
| 106 | 107 | Decoder("Decoder"), |
| @@ -237,6 +238,8 @@ enum class EnumEnum(val value: String) { | ||
| 237 | 238 | Number("number"), |
| 238 | 239 | Object("object"), |
| 239 | 240 | ObjectMapper("ObjectMapper"), |
| 241 | + ObjectReader("ObjectReader"), | |
| 242 | + ObjectWriter("ObjectWriter"), | |
| 240 | 243 | Of("of"), |
| 241 | 244 | Oneway("oneway"), |
| 242 | 245 | Open("open"), |
| @@ -288,6 +291,7 @@ enum class EnumEnum(val value: String) { | ||
| 288 | 291 | EnumSelf("self"), |
| 289 | 292 | Sendable("Sendable"), |
| 290 | 293 | Serialize("serialize"), |
| 294 | + SerializationFeature("SerializationFeature"), | |
| 291 | 295 | SerializerProvider("SerializerProvider"), |
| 292 | 296 | Set("set"), |
| 293 | 297 | EnumShort("short"), |
| @@ -437,6 +441,7 @@ enum class EnumEnum(val value: String) { | ||
| 437 | 441 | "debugger" -> Debugger |
| 438 | 442 | "decimal" -> Decimal |
| 439 | 443 | "declare" -> Declare |
| 444 | + "DeserializationFeature" -> DeserializationFeature | |
| 440 | 445 | "decltype" -> Decltype |
| 441 | 446 | "decode_string" -> DecodeString |
| 442 | 447 | "Decoder" -> Decoder |
| @@ -573,6 +578,8 @@ enum class EnumEnum(val value: String) { | ||
| 573 | 578 | "number" -> Number |
| 574 | 579 | "object" -> Object |
| 575 | 580 | "ObjectMapper" -> ObjectMapper |
| 581 | + "ObjectReader" -> ObjectReader | |
| 582 | + "ObjectWriter" -> ObjectWriter | |
| 576 | 583 | "of" -> Of |
| 577 | 584 | "oneway" -> Oneway |
| 578 | 585 | "open" -> Open |
| @@ -624,6 +631,7 @@ enum class EnumEnum(val value: String) { | ||
| 624 | 631 | "self" -> EnumSelf |
| 625 | 632 | "Sendable" -> Sendable |
| 626 | 633 | "serialize" -> Serialize |
| 634 | + "SerializationFeature" -> SerializationFeature | |
| 627 | 635 | "SerializerProvider" -> SerializerProvider |
| 628 | 636 | "set" -> Set |
| 629 | 637 | "short" -> EnumShort |
Mschema-kotlinxdefault / TopLevel.kt+4 −0
| @@ -90,6 +90,7 @@ enum class EnumEnum(val value: String) { | ||
| 90 | 90 | @SerialName("debugger") Debugger("debugger"), |
| 91 | 91 | @SerialName("decimal") Decimal("decimal"), |
| 92 | 92 | @SerialName("declare") Declare("declare"), |
| 93 | + @SerialName("DeserializationFeature") DeserializationFeature("DeserializationFeature"), | |
| 93 | 94 | @SerialName("decltype") Decltype("decltype"), |
| 94 | 95 | @SerialName("decode_string") DecodeString("decode_string"), |
| 95 | 96 | @SerialName("Decoder") EnumDecoder("Decoder"), |
| @@ -226,6 +227,8 @@ enum class EnumEnum(val value: String) { | ||
| 226 | 227 | @SerialName("number") Number("number"), |
| 227 | 228 | @SerialName("object") Object("object"), |
| 228 | 229 | @SerialName("ObjectMapper") ObjectMapper("ObjectMapper"), |
| 230 | + @SerialName("ObjectReader") ObjectReader("ObjectReader"), | |
| 231 | + @SerialName("ObjectWriter") ObjectWriter("ObjectWriter"), | |
| 229 | 232 | @SerialName("of") Of("of"), |
| 230 | 233 | @SerialName("oneway") Oneway("oneway"), |
| 231 | 234 | @SerialName("open") Open("open"), |
| @@ -277,6 +280,7 @@ enum class EnumEnum(val value: String) { | ||
| 277 | 280 | @SerialName("self") EnumSelf("self"), |
| 278 | 281 | @SerialName("Sendable") Sendable("Sendable"), |
| 279 | 282 | @SerialName("serialize") Serialize("serialize"), |
| 283 | + @SerialName("SerializationFeature") SerializationFeature("SerializationFeature"), | |
| 280 | 284 | @SerialName("SerializerProvider") SerializerProvider("SerializerProvider"), |
| 281 | 285 | @SerialName("set") Set("set"), |
| 282 | 286 | @SerialName("short") EnumShort("short"), |
Mschema-objective-cdefault / QTTopLevel.h+4 −0
| @@ -88,6 +88,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 88 | 88 | + (QTEnum *)debugger; |
| 89 | 89 | + (QTEnum *)decimal; |
| 90 | 90 | + (QTEnum *)declare; |
| 91 | ++ (QTEnum *)deserializationFeature; | |
| 91 | 92 | + (QTEnum *)decltype; |
| 92 | 93 | + (QTEnum *)decodeString; |
| 93 | 94 | + (QTEnum *)decoder; |
| @@ -224,6 +225,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 224 | 225 | + (QTEnum *)number; |
| 225 | 226 | + (QTEnum *)object; |
| 226 | 227 | + (QTEnum *)objectMapper; |
| 228 | ++ (QTEnum *)objectReader; | |
| 229 | ++ (QTEnum *)objectWriter; | |
| 227 | 230 | + (QTEnum *)of; |
| 228 | 231 | + (QTEnum *)oneway; |
| 229 | 232 | + (QTEnum *)open; |
| @@ -275,6 +278,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 275 | 278 | + (QTEnum *)enumSelf; |
| 276 | 279 | + (QTEnum *)sendable; |
| 277 | 280 | + (QTEnum *)serialize; |
| 281 | ++ (QTEnum *)serializationFeature; | |
| 278 | 282 | + (QTEnum *)serializerProvider; |
| 279 | 283 | + (QTEnum *)set; |
| 280 | 284 | + (QTEnum *)enumShort; |
Mschema-objective-cdefault / QTTopLevel.m+8 −0
| @@ -91,6 +91,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 91 | 91 | @"debugger": [[QTEnum alloc] initWithValue:@"debugger"], |
| 92 | 92 | @"decimal": [[QTEnum alloc] initWithValue:@"decimal"], |
| 93 | 93 | @"declare": [[QTEnum alloc] initWithValue:@"declare"], |
| 94 | + @"DeserializationFeature": [[QTEnum alloc] initWithValue:@"DeserializationFeature"], | |
| 94 | 95 | @"decltype": [[QTEnum alloc] initWithValue:@"decltype"], |
| 95 | 96 | @"decode_string": [[QTEnum alloc] initWithValue:@"decode_string"], |
| 96 | 97 | @"Decoder": [[QTEnum alloc] initWithValue:@"Decoder"], |
| @@ -227,6 +228,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 227 | 228 | @"number": [[QTEnum alloc] initWithValue:@"number"], |
| 228 | 229 | @"object": [[QTEnum alloc] initWithValue:@"object"], |
| 229 | 230 | @"ObjectMapper": [[QTEnum alloc] initWithValue:@"ObjectMapper"], |
| 231 | + @"ObjectReader": [[QTEnum alloc] initWithValue:@"ObjectReader"], | |
| 232 | + @"ObjectWriter": [[QTEnum alloc] initWithValue:@"ObjectWriter"], | |
| 230 | 233 | @"of": [[QTEnum alloc] initWithValue:@"of"], |
| 231 | 234 | @"oneway": [[QTEnum alloc] initWithValue:@"oneway"], |
| 232 | 235 | @"open": [[QTEnum alloc] initWithValue:@"open"], |
| @@ -278,6 +281,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 278 | 281 | @"self": [[QTEnum alloc] initWithValue:@"self"], |
| 279 | 282 | @"Sendable": [[QTEnum alloc] initWithValue:@"Sendable"], |
| 280 | 283 | @"serialize": [[QTEnum alloc] initWithValue:@"serialize"], |
| 284 | + @"SerializationFeature": [[QTEnum alloc] initWithValue:@"SerializationFeature"], | |
| 281 | 285 | @"SerializerProvider": [[QTEnum alloc] initWithValue:@"SerializerProvider"], |
| 282 | 286 | @"set": [[QTEnum alloc] initWithValue:@"set"], |
| 283 | 287 | @"short": [[QTEnum alloc] initWithValue:@"short"], |
| @@ -427,6 +431,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 427 | 431 | + (QTEnum *)debugger { return QTEnum.values[@"debugger"]; } |
| 428 | 432 | + (QTEnum *)decimal { return QTEnum.values[@"decimal"]; } |
| 429 | 433 | + (QTEnum *)declare { return QTEnum.values[@"declare"]; } |
| 434 | ++ (QTEnum *)deserializationFeature { return QTEnum.values[@"DeserializationFeature"]; } | |
| 430 | 435 | + (QTEnum *)decltype { return QTEnum.values[@"decltype"]; } |
| 431 | 436 | + (QTEnum *)decodeString { return QTEnum.values[@"decode_string"]; } |
| 432 | 437 | + (QTEnum *)decoder { return QTEnum.values[@"Decoder"]; } |
| @@ -563,6 +568,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 563 | 568 | + (QTEnum *)number { return QTEnum.values[@"number"]; } |
| 564 | 569 | + (QTEnum *)object { return QTEnum.values[@"object"]; } |
| 565 | 570 | + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; } |
| 571 | ++ (QTEnum *)objectReader { return QTEnum.values[@"ObjectReader"]; } | |
| 572 | ++ (QTEnum *)objectWriter { return QTEnum.values[@"ObjectWriter"]; } | |
| 566 | 573 | + (QTEnum *)of { return QTEnum.values[@"of"]; } |
| 567 | 574 | + (QTEnum *)oneway { return QTEnum.values[@"oneway"]; } |
| 568 | 575 | + (QTEnum *)open { return QTEnum.values[@"open"]; } |
| @@ -614,6 +621,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 614 | 621 | + (QTEnum *)enumSelf { return QTEnum.values[@"self"]; } |
| 615 | 622 | + (QTEnum *)sendable { return QTEnum.values[@"Sendable"]; } |
| 616 | 623 | + (QTEnum *)serialize { return QTEnum.values[@"serialize"]; } |
| 624 | ++ (QTEnum *)serializationFeature { return QTEnum.values[@"SerializationFeature"]; } | |
| 617 | 625 | + (QTEnum *)serializerProvider { return QTEnum.values[@"SerializerProvider"]; } |
| 618 | 626 | + (QTEnum *)set { return QTEnum.values[@"set"]; } |
| 619 | 627 | + (QTEnum *)enumShort { return QTEnum.values[@"short"]; } |
Mschema-phpdefault / TopLevel.php+16 −0
| @@ -186,6 +186,7 @@ class EnumEnum { | ||
| 186 | 186 | public static EnumEnum $DEBUGGER; |
| 187 | 187 | public static EnumEnum $DECIMAL; |
| 188 | 188 | public static EnumEnum $DECLARE; |
| 189 | + public static EnumEnum $DESERIALIZATION_FEATURE; | |
| 189 | 190 | public static EnumEnum $DECLTYPE; |
| 190 | 191 | public static EnumEnum $DECODE_STRING; |
| 191 | 192 | public static EnumEnum $DECODER; |
| @@ -322,6 +323,8 @@ class EnumEnum { | ||
| 322 | 323 | public static EnumEnum $NUMBER; |
| 323 | 324 | public static EnumEnum $OBJECT; |
| 324 | 325 | public static EnumEnum $OBJECT_MAPPER; |
| 326 | + public static EnumEnum $OBJECT_READER; | |
| 327 | + public static EnumEnum $OBJECT_WRITER; | |
| 325 | 328 | public static EnumEnum $OF; |
| 326 | 329 | public static EnumEnum $ONEWAY; |
| 327 | 330 | public static EnumEnum $OPEN; |
| @@ -373,6 +376,7 @@ class EnumEnum { | ||
| 373 | 376 | public static EnumEnum $ENUM_SELF; |
| 374 | 377 | public static EnumEnum $SENDABLE; |
| 375 | 378 | public static EnumEnum $SERIALIZE; |
| 379 | + public static EnumEnum $SERIALIZATION_FEATURE; | |
| 376 | 380 | public static EnumEnum $SERIALIZER_PROVIDER; |
| 377 | 381 | public static EnumEnum $SET; |
| 378 | 382 | public static EnumEnum $SHORT; |
| @@ -520,6 +524,7 @@ class EnumEnum { | ||
| 520 | 524 | EnumEnum::$DEBUGGER = new EnumEnum('debugger'); |
| 521 | 525 | EnumEnum::$DECIMAL = new EnumEnum('decimal'); |
| 522 | 526 | EnumEnum::$DECLARE = new EnumEnum('declare'); |
| 527 | + EnumEnum::$DESERIALIZATION_FEATURE = new EnumEnum('DeserializationFeature'); | |
| 523 | 528 | EnumEnum::$DECLTYPE = new EnumEnum('decltype'); |
| 524 | 529 | EnumEnum::$DECODE_STRING = new EnumEnum('decode_string'); |
| 525 | 530 | EnumEnum::$DECODER = new EnumEnum('Decoder'); |
| @@ -656,6 +661,8 @@ class EnumEnum { | ||
| 656 | 661 | EnumEnum::$NUMBER = new EnumEnum('number'); |
| 657 | 662 | EnumEnum::$OBJECT = new EnumEnum('object'); |
| 658 | 663 | EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper'); |
| 664 | + EnumEnum::$OBJECT_READER = new EnumEnum('ObjectReader'); | |
| 665 | + EnumEnum::$OBJECT_WRITER = new EnumEnum('ObjectWriter'); | |
| 659 | 666 | EnumEnum::$OF = new EnumEnum('of'); |
| 660 | 667 | EnumEnum::$ONEWAY = new EnumEnum('oneway'); |
| 661 | 668 | EnumEnum::$OPEN = new EnumEnum('open'); |
| @@ -707,6 +714,7 @@ class EnumEnum { | ||
| 707 | 714 | EnumEnum::$ENUM_SELF = new EnumEnum('self'); |
| 708 | 715 | EnumEnum::$SENDABLE = new EnumEnum('Sendable'); |
| 709 | 716 | EnumEnum::$SERIALIZE = new EnumEnum('serialize'); |
| 717 | + EnumEnum::$SERIALIZATION_FEATURE = new EnumEnum('SerializationFeature'); | |
| 710 | 718 | EnumEnum::$SERIALIZER_PROVIDER = new EnumEnum('SerializerProvider'); |
| 711 | 719 | EnumEnum::$SET = new EnumEnum('set'); |
| 712 | 720 | EnumEnum::$SHORT = new EnumEnum('short'); |
| @@ -866,6 +874,7 @@ class EnumEnum { | ||
| 866 | 874 | case EnumEnum::$DEBUGGER->enum: return 'debugger'; |
| 867 | 875 | case EnumEnum::$DECIMAL->enum: return 'decimal'; |
| 868 | 876 | case EnumEnum::$DECLARE->enum: return 'declare'; |
| 877 | + case EnumEnum::$DESERIALIZATION_FEATURE->enum: return 'DeserializationFeature'; | |
| 869 | 878 | case EnumEnum::$DECLTYPE->enum: return 'decltype'; |
| 870 | 879 | case EnumEnum::$DECODE_STRING->enum: return 'decode_string'; |
| 871 | 880 | case EnumEnum::$DECODER->enum: return 'Decoder'; |
| @@ -1002,6 +1011,8 @@ class EnumEnum { | ||
| 1002 | 1011 | case EnumEnum::$NUMBER->enum: return 'number'; |
| 1003 | 1012 | case EnumEnum::$OBJECT->enum: return 'object'; |
| 1004 | 1013 | case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper'; |
| 1014 | + case EnumEnum::$OBJECT_READER->enum: return 'ObjectReader'; | |
| 1015 | + case EnumEnum::$OBJECT_WRITER->enum: return 'ObjectWriter'; | |
| 1005 | 1016 | case EnumEnum::$OF->enum: return 'of'; |
| 1006 | 1017 | case EnumEnum::$ONEWAY->enum: return 'oneway'; |
| 1007 | 1018 | case EnumEnum::$OPEN->enum: return 'open'; |
| @@ -1053,6 +1064,7 @@ class EnumEnum { | ||
| 1053 | 1064 | case EnumEnum::$ENUM_SELF->enum: return 'self'; |
| 1054 | 1065 | case EnumEnum::$SENDABLE->enum: return 'Sendable'; |
| 1055 | 1066 | case EnumEnum::$SERIALIZE->enum: return 'serialize'; |
| 1067 | + case EnumEnum::$SERIALIZATION_FEATURE->enum: return 'SerializationFeature'; | |
| 1056 | 1068 | case EnumEnum::$SERIALIZER_PROVIDER->enum: return 'SerializerProvider'; |
| 1057 | 1069 | case EnumEnum::$SET->enum: return 'set'; |
| 1058 | 1070 | case EnumEnum::$SHORT->enum: return 'short'; |
| @@ -1210,6 +1222,7 @@ class EnumEnum { | ||
| 1210 | 1222 | case 'debugger': return EnumEnum::$DEBUGGER; |
| 1211 | 1223 | case 'decimal': return EnumEnum::$DECIMAL; |
| 1212 | 1224 | case 'declare': return EnumEnum::$DECLARE; |
| 1225 | + case 'DeserializationFeature': return EnumEnum::$DESERIALIZATION_FEATURE; | |
| 1213 | 1226 | case 'decltype': return EnumEnum::$DECLTYPE; |
| 1214 | 1227 | case 'decode_string': return EnumEnum::$DECODE_STRING; |
| 1215 | 1228 | case 'Decoder': return EnumEnum::$DECODER; |
| @@ -1346,6 +1359,8 @@ class EnumEnum { | ||
| 1346 | 1359 | case 'number': return EnumEnum::$NUMBER; |
| 1347 | 1360 | case 'object': return EnumEnum::$OBJECT; |
| 1348 | 1361 | case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER; |
| 1362 | + case 'ObjectReader': return EnumEnum::$OBJECT_READER; | |
| 1363 | + case 'ObjectWriter': return EnumEnum::$OBJECT_WRITER; | |
| 1349 | 1364 | case 'of': return EnumEnum::$OF; |
| 1350 | 1365 | case 'oneway': return EnumEnum::$ONEWAY; |
| 1351 | 1366 | case 'open': return EnumEnum::$OPEN; |
| @@ -1397,6 +1412,7 @@ class EnumEnum { | ||
| 1397 | 1412 | case 'self': return EnumEnum::$ENUM_SELF; |
| 1398 | 1413 | case 'Sendable': return EnumEnum::$SENDABLE; |
| 1399 | 1414 | case 'serialize': return EnumEnum::$SERIALIZE; |
| 1415 | + case 'SerializationFeature': return EnumEnum::$SERIALIZATION_FEATURE; | |
| 1400 | 1416 | case 'SerializerProvider': return EnumEnum::$SERIALIZER_PROVIDER; |
| 1401 | 1417 | case 'set': return EnumEnum::$SET; |
| 1402 | 1418 | case 'short': return EnumEnum::$SHORT; |
Mschema-pikedefault / TopLevel.pmod+5 −1
| @@ -106,6 +106,7 @@ enum Enum { | ||
| 106 | 106 | DEBUGGER = "debugger", // json: "debugger" |
| 107 | 107 | DECIMAL = "decimal", // json: "decimal" |
| 108 | 108 | DECLARE = "declare", // json: "declare" |
| 109 | + DESERIALIZATION_FEATURE = "DeserializationFeature", // json: "DeserializationFeature" | |
| 109 | 110 | DECLTYPE = "decltype", // json: "decltype" |
| 110 | 111 | DECODE_STRING = "decode_string", // json: "decode_string" |
| 111 | 112 | DECODER = "Decoder", // json: "Decoder" |
| @@ -242,6 +243,8 @@ enum Enum { | ||
| 242 | 243 | NUMBER = "number", // json: "number" |
| 243 | 244 | OBJECT = "object", // json: "object" |
| 244 | 245 | OBJECT_MAPPER = "ObjectMapper", // json: "ObjectMapper" |
| 246 | + OBJECT_READER = "ObjectReader", // json: "ObjectReader" | |
| 247 | + OBJECT_WRITER = "ObjectWriter", // json: "ObjectWriter" | |
| 245 | 248 | OF = "of", // json: "of" |
| 246 | 249 | ONEWAY = "oneway", // json: "oneway" |
| 247 | 250 | OPEN = "open", // json: "open" |
| @@ -293,6 +296,7 @@ enum Enum { | ||
| 293 | 296 | ENUM_SELF = "self", // json: "self" |
| 294 | 297 | SENDABLE = "Sendable", // json: "Sendable" |
| 295 | 298 | SERIALIZE = "serialize", // json: "serialize" |
| 299 | + SERIALIZATION_FEATURE = "SerializationFeature", // json: "SerializationFeature" | |
| 296 | 300 | SERIALIZER_PROVIDER = "SerializerProvider", // json: "SerializerProvider" |
| 297 | 301 | SET = "set", // json: "set" |
| 298 | 302 | SHORT = "short", // json: "short" |
| @@ -369,5 +373,5 @@ enum Enum { | ||
| 369 | 373 | } |
| 370 | 374 | |
| 371 | 375 | Enum Enum_from_JSON(mixed json) { |
| 372 | - if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json; | |
| 376 | + if(!zero_type(json)&&json != "_"&&json != "_Bool"&&json != "_Complex"&&json != "_Imaginery"&&json != "abstract"&&json != "alignas"&&json != "alignof"&&json != "and"&&json != "and_eq"&&json != "any"&&json != "Any"&&json != "array"&&json != "as"&&json != "asm"&&json != "assert"&&json != "associatedtype"&&json != "associativity"&&json != "async"&&json != "atomic"&&json != "atomic_cancel"&&json != "atomic_commit"&&json != "atomic_noexcept"&&json != "auto"&&json != "await"&&json != "base"&&json != "bitand"&&json != "bitor"&&json != "BOOL"&&json != "bool"&&json != "boolean"&&json != "break"&&json != "bycopy"&&json != "byref"&&json != "byte"&&json != "Calendar"&&json != "case"&&json != "catch"&&json != "chan"&&json != "char"&&json != "char16_t"&&json != "char32_t"&&json != "checked"&&json != "class"&&json != "Class"&&json != "clone"&&json != "co_await"&&json != "co_return"&&json != "co_yield"&&json != "Codable"&&json != "CodingKey"&&json != "CodingKeys"&&json != "compl"&&json != "concept"&&json != "console"&&json != "const"&&json != "const_cast"&&json != "constexpr"&&json != "constructor"&&json != "continue"&&json != "convenience"&&json != "convert"&&json != "converter"&&json != "CultureInfo"&&json != "date"&&json != "date_parse_handling"&&json != "DateFormatter"&&json != "DateOnly"&&json != "DateOnlyConverter"&&json != "DateTime"&&json != "DateTimeStyles"&&json != "debugger"&&json != "decimal"&&json != "declare"&&json != "DeserializationFeature"&&json != "decltype"&&json != "decode_string"&&json != "Decoder"&&json != "DecodingError"&&json != "def"&&json != "default"&&json != "defer"&&json != "deinit"&&json != "del"&&json != "delegate"&&json != "delete"&&json != "dict"&&json != "dictionary"&&json != "didSet"&&json != "do"&&json != "double"&&json != "dynamic"&&json != "dynamic_cast"&&json != "elif"&&json != "else"&&json != "encode_quick_type"&&json != "Encoder"&&json != "enum"&&json != "EnumValues"&&json != "Equatable"&&json != "equalityContract"&&json != "event"&&json != "except"&&json != "exception"&&json != "explicit"&&json != "export"&&json != "exposing"&&json != "extends"&&json != "extension"&&json != "extern"&&json != "fallthrough"&&json != "false"&&json != "False"&&json != "fileprivate"&&json != "final"&&json != "finally"&&json != "fixed"&&json != "float"&&json != "for"&&json != "foreach"&&json != "FormatException"&&json != "friend"&&json != "from"&&json != "from_json"&&json != "func"&&json != "function"&&json != "get"&&json != "global"&&json != "go"&&json != "goto"&&json != "guard"&&json != "Hashable"&&json != "hashCode"&&json != "Hasher"&&json != "hasOwnProperty"&&json != "id"&&json != "if"&&json != "IMP"&&json != "implements"&&json != "implicit"&&json != "import"&&json != "in"&&json != "indirect"&&json != "infix"&&json != "init"&&json != "inline"&&json != "inout"&&json != "instanceof"&&json != "int"&&json != "interface"&&json != "internal"&&json != "IsoDateTimeOffsetConverter"&&json != "iterable"&&json != "is"&&json != "jdec"&&json != "jenc"&&json != "jpipe"&&json != "json"&&json != "json_converter"&&json != "json_serializer"&&json != "json_token"&&json != "json_writer"&&json != "JSONAny"&&json != "JSONCodingKey"&&json != "JSONDecoder"&&json != "JSONEncoder"&&json != "JsonException"&&json != "JsonGenerator"&&json != "JsonNode"&&json != "JSONNull"&&json != "JsonParser"&&json != "JsonReader"&&json != "JsonTokenType"&&json != "lambda"&&json != "lazy"&&json != "left"&&json != "let"&&json != "list"&&json != "Locale"&&json != "lock"&&json != "long"&&json != "map"&&json != "MapEntry"&&json != "metadata_property_handling"&&json != "module"&&json != "mutable"&&json != "mutating"&&json != "namespace"&&json != "native"&&json != "new"&&json != "newtonsoft"&&json != "nil"&&json != "NO"&&json != "noexcept"&&json != "nonatomic"&&json != "none"&&json != "None"&&json != "nonlocal"&&json != "nonmutating"&&json != "NSObject"&&json != "noSuchMethod"&&json != "not"&&json != "not_eq"&&json != "NSError"&&json != "NSString"&&json != "NULL"&&json != "null"&&json != "nullptr"&&json != "number"&&json != "object"&&json != "ObjectMapper"&&json != "ObjectReader"&&json != "ObjectWriter"&&json != "of"&&json != "oneway"&&json != "open"&&json != "operator"&&json != "optional"&&json != "or"&&json != "or_eq"&&json != "out"&&json != "override"&&json != "package"&&json != "params"&&json != "pass"&&json != "port"&&json != "postfix"&&json != "precedence"&&json != "prefix"&&json != "print"&&json != "printf"&&json != "printMembers"&&json != "private"&&json != "protected"&&json != "Protocol"&&json != "protocol"&&json != "public"&&json != "quicktype"&&json != "raise"&&json != "range"&&json != "readonly"&&json != "ref"&&json != "RegExp"&&json != "register"&&json != "reinterpret_cast"&&json != "repeat"&&json != "require"&&json != "required"&&json != "requires"&&json != "restrict"&&json != "retain"&&json != "rethrows"&&json != "return"&&json != "right"&&json != "runtimeType"&&json != "s"&&json != "sbyte"&&json != "sealed"&&json != "SEL"&&json != "select"&&json != "Self"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerializationFeature"&&json != "SerializerProvider"&&json != "set"&&json != "short"&&json != "signed"&&json != "SimpleModule"&&json != "sizeof"&&json != "stackalloc"&&json != "Standards"&&json != "static"&&json != "static_assert"&&json != "static_cast"&&json != "StdDeserializer"&&json != "StdSerializer"&&json != "strictfp"&&json != "string"&&json != "struct"&&json != "subscript"&&json != "super"&&json != "switch"&&json != "symbol"&&json != "synchronized"&&json != "system"&&json != "template"&&json != "then"&&json != "this"&&json != "thread_local"&&json != "throw"&&json != "throws"&&json != "TimeOnly"&&json != "TimeOnlyConverter"&&json != "TimeZone"&&json != "to_json"&&json != "top_level"&&json != "toString"&&json != "transient"&&json != "True"&&json != "true"&&json != "try"&&json != "Type"&&json != "type"&&json != "typealias"&&json != "typedef"&&json != "typeid"&&json != "typename"&&json != "typeof"&&json != "uint"&&json != "ulong"&&json != "unchecked"&&json != "undefined"&&json != "union"&&json != "unowned"&&json != "unsafe"&&json != "unsigned"&&json != "ushort"&&json != "using"&&json != "Utf8JsonReader"&&json != "Utf8JsonWriter"&&json != "UUID"&&json != "var"&&json != "virtual"&&json != "void"&&json != "volatile"&&json != "wchar_t"&&json != "weak"&&json != "where"&&json != "while"&&json != "willSet"&&json != "with"&&json != "xor"&&json != "xor_eq"&&json != "YES"&&json != "yield"&&json != "dummy")error("enum");return json; | |
| 373 | 377 | } |
Mschema-pythondefault / quicktype.py+4 −0
| @@ -105,6 +105,7 @@ class EnumEnum(Enum): | ||
| 105 | 105 | DEBUGGER = "debugger" |
| 106 | 106 | DECIMAL = "decimal" |
| 107 | 107 | DECLARE = "declare" |
| 108 | + DESERIALIZATION_FEATURE = "DeserializationFeature" | |
| 108 | 109 | DECLTYPE = "decltype" |
| 109 | 110 | DECODE_STRING = "decode_string" |
| 110 | 111 | DECODER = "Decoder" |
| @@ -241,6 +242,8 @@ class EnumEnum(Enum): | ||
| 241 | 242 | NUMBER = "number" |
| 242 | 243 | OBJECT = "object" |
| 243 | 244 | OBJECT_MAPPER = "ObjectMapper" |
| 245 | + OBJECT_READER = "ObjectReader" | |
| 246 | + OBJECT_WRITER = "ObjectWriter" | |
| 244 | 247 | OF = "of" |
| 245 | 248 | ONEWAY = "oneway" |
| 246 | 249 | OPEN = "open" |
| @@ -292,6 +295,7 @@ class EnumEnum(Enum): | ||
| 292 | 295 | ENUM_SELF = "self" |
| 293 | 296 | SENDABLE = "Sendable" |
| 294 | 297 | SERIALIZE = "serialize" |
| 298 | + SERIALIZATION_FEATURE = "SerializationFeature" | |
| 295 | 299 | SERIALIZER_PROVIDER = "SerializerProvider" |
| 296 | 300 | SET = "set" |
| 297 | 301 | SHORT = "short" |
Mschema-rubydefault / TopLevel.rb+5 −1
| @@ -17,7 +17,7 @@ module Types | ||
| 17 | 17 | |
| 18 | 18 | Hash = Strict::Hash |
| 19 | 19 | String = Strict::String |
| 20 | - Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "self", "Sendable", "serialize", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy") | |
| 20 | + Enum = Strict::String.enum("_", "_Bool", "_Complex", "_Imaginery", "abstract", "alignas", "alignof", "and", "and_eq", "any", "Any", "array", "as", "asm", "assert", "associatedtype", "associativity", "async", "atomic", "atomic_cancel", "atomic_commit", "atomic_noexcept", "auto", "await", "base", "bitand", "bitor", "BOOL", "bool", "boolean", "break", "bycopy", "byref", "byte", "Calendar", "case", "catch", "chan", "char", "char16_t", "char32_t", "checked", "class", "Class", "clone", "co_await", "co_return", "co_yield", "Codable", "CodingKey", "CodingKeys", "compl", "concept", "console", "const", "const_cast", "constexpr", "constructor", "continue", "convenience", "convert", "converter", "CultureInfo", "date", "date_parse_handling", "DateFormatter", "DateOnly", "DateOnlyConverter", "DateTime", "DateTimeStyles", "debugger", "decimal", "declare", "DeserializationFeature", "decltype", "decode_string", "Decoder", "DecodingError", "def", "default", "defer", "deinit", "del", "delegate", "delete", "dict", "dictionary", "didSet", "do", "double", "dynamic", "dynamic_cast", "elif", "else", "encode_quick_type", "Encoder", "enum", "EnumValues", "Equatable", "equalityContract", "event", "except", "exception", "explicit", "export", "exposing", "extends", "extension", "extern", "fallthrough", "false", "False", "fileprivate", "final", "finally", "fixed", "float", "for", "foreach", "FormatException", "friend", "from", "from_json", "func", "function", "get", "global", "go", "goto", "guard", "Hashable", "hashCode", "Hasher", "hasOwnProperty", "id", "if", "IMP", "implements", "implicit", "import", "in", "indirect", "infix", "init", "inline", "inout", "instanceof", "int", "interface", "internal", "IsoDateTimeOffsetConverter", "iterable", "is", "jdec", "jenc", "jpipe", "json", "json_converter", "json_serializer", "json_token", "json_writer", "JSONAny", "JSONCodingKey", "JSONDecoder", "JSONEncoder", "JsonException", "JsonGenerator", "JsonNode", "JSONNull", "JsonParser", "JsonReader", "JsonTokenType", "lambda", "lazy", "left", "let", "list", "Locale", "lock", "long", "map", "MapEntry", "metadata_property_handling", "module", "mutable", "mutating", "namespace", "native", "new", "newtonsoft", "nil", "NO", "noexcept", "nonatomic", "none", "None", "nonlocal", "nonmutating", "NSObject", "noSuchMethod", "not", "not_eq", "NSError", "NSString", "NULL", "null", "nullptr", "number", "object", "ObjectMapper", "ObjectReader", "ObjectWriter", "of", "oneway", "open", "operator", "optional", "or", "or_eq", "out", "override", "package", "params", "pass", "port", "postfix", "precedence", "prefix", "print", "printf", "printMembers", "private", "protected", "Protocol", "protocol", "public", "quicktype", "raise", "range", "readonly", "ref", "RegExp", "register", "reinterpret_cast", "repeat", "require", "required", "requires", "restrict", "retain", "rethrows", "return", "right", "runtimeType", "s", "sbyte", "sealed", "SEL", "select", "Self", "self", "Sendable", "serialize", "SerializationFeature", "SerializerProvider", "set", "short", "signed", "SimpleModule", "sizeof", "stackalloc", "Standards", "static", "static_assert", "static_cast", "StdDeserializer", "StdSerializer", "strictfp", "string", "struct", "subscript", "super", "switch", "symbol", "synchronized", "system", "template", "then", "this", "thread_local", "throw", "throws", "TimeOnly", "TimeOnlyConverter", "TimeZone", "to_json", "top_level", "toString", "transient", "True", "true", "try", "Type", "type", "typealias", "typedef", "typeid", "typename", "typeof", "uint", "ulong", "unchecked", "undefined", "union", "unowned", "unsafe", "unsigned", "ushort", "using", "Utf8JsonReader", "Utf8JsonWriter", "UUID", "var", "virtual", "void", "volatile", "wchar_t", "weak", "where", "while", "willSet", "with", "xor", "xor_eq", "YES", "yield", "dummy") | |
| 21 | 21 | end |
| 22 | 22 | |
| 23 | 23 | module Enum |
| @@ -94,6 +94,7 @@ module Enum | ||
| 94 | 94 | Debugger = "debugger" |
| 95 | 95 | Decimal = "decimal" |
| 96 | 96 | Declare = "declare" |
| 97 | + DeserializationFeature = "DeserializationFeature" | |
| 97 | 98 | Decltype = "decltype" |
| 98 | 99 | DecodeString = "decode_string" |
| 99 | 100 | Decoder = "Decoder" |
| @@ -230,6 +231,8 @@ module Enum | ||
| 230 | 231 | Number = "number" |
| 231 | 232 | Object = "object" |
| 232 | 233 | ObjectMapper = "ObjectMapper" |
| 234 | + ObjectReader = "ObjectReader" | |
| 235 | + ObjectWriter = "ObjectWriter" | |
| 233 | 236 | Of = "of" |
| 234 | 237 | Oneway = "oneway" |
| 235 | 238 | Open = "open" |
| @@ -281,6 +284,7 @@ module Enum | ||
| 281 | 284 | EnumSelf = "self" |
| 282 | 285 | Sendable = "Sendable" |
| 283 | 286 | Serialize = "serialize" |
| 287 | + SerializationFeature = "SerializationFeature" | |
| 284 | 288 | SerializerProvider = "SerializerProvider" |
| 285 | 289 | Set = "set" |
| 286 | 290 | Short = "short" |
Mschema-rustdefault / module_under_test.rs+12 −0
| @@ -197,6 +197,9 @@ pub enum Enum { | ||
| 197 | 197 | |
| 198 | 198 | Declare, |
| 199 | 199 | |
| 200 | + #[serde(rename = "DeserializationFeature")] | |
| 201 | + DeserializationFeature, | |
| 202 | + | |
| 200 | 203 | Decltype, |
| 201 | 204 | |
| 202 | 205 | #[serde(rename = "decode_string")] |
| @@ -517,6 +520,12 @@ pub enum Enum { | ||
| 517 | 520 | #[serde(rename = "ObjectMapper")] |
| 518 | 521 | ObjectMapper, |
| 519 | 522 | |
| 523 | + #[serde(rename = "ObjectReader")] | |
| 524 | + ObjectReader, | |
| 525 | + | |
| 526 | + #[serde(rename = "ObjectWriter")] | |
| 527 | + ObjectWriter, | |
| 528 | + | |
| 520 | 529 | Of, |
| 521 | 530 | |
| 522 | 531 | Oneway, |
| @@ -631,6 +640,9 @@ pub enum Enum { | ||
| 631 | 640 | #[serde(rename = "serialize")] |
| 632 | 641 | EnumSerialize, |
| 633 | 642 | |
| 643 | + #[serde(rename = "SerializationFeature")] | |
| 644 | + SerializationFeature, | |
| 645 | + | |
| 634 | 646 | #[serde(rename = "SerializerProvider")] |
| 635 | 647 | SerializerProvider, |
Mschema-scala3-upickledefault / TopLevel.scala+12 −0
| @@ -156,6 +156,7 @@ enum EnumEnum : | ||
| 156 | 156 | case Debugger |
| 157 | 157 | case Decimal |
| 158 | 158 | case Declare |
| 159 | + case DeserializationFeature | |
| 159 | 160 | case Decltype |
| 160 | 161 | case DecodeString |
| 161 | 162 | case Decoder |
| @@ -292,6 +293,8 @@ enum EnumEnum : | ||
| 292 | 293 | case Number |
| 293 | 294 | case Object |
| 294 | 295 | case ObjectMapper |
| 296 | + case ObjectReader | |
| 297 | + case ObjectWriter | |
| 295 | 298 | case Of |
| 296 | 299 | case Oneway |
| 297 | 300 | case Open |
| @@ -343,6 +346,7 @@ enum EnumEnum : | ||
| 343 | 346 | case EnumSelf |
| 344 | 347 | case Sendable |
| 345 | 348 | case Serialize |
| 349 | + case SerializationFeature | |
| 346 | 350 | case SerializerProvider |
| 347 | 351 | case Set |
| 348 | 352 | case EnumShort |
| @@ -492,6 +496,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 492 | 496 | case EnumEnum.Debugger => "debugger" |
| 493 | 497 | case EnumEnum.Decimal => "decimal" |
| 494 | 498 | case EnumEnum.Declare => "declare" |
| 499 | + case EnumEnum.DeserializationFeature => "DeserializationFeature" | |
| 495 | 500 | case EnumEnum.Decltype => "decltype" |
| 496 | 501 | case EnumEnum.DecodeString => "decode_string" |
| 497 | 502 | case EnumEnum.Decoder => "Decoder" |
| @@ -628,6 +633,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 628 | 633 | case EnumEnum.Number => "number" |
| 629 | 634 | case EnumEnum.Object => "object" |
| 630 | 635 | case EnumEnum.ObjectMapper => "ObjectMapper" |
| 636 | + case EnumEnum.ObjectReader => "ObjectReader" | |
| 637 | + case EnumEnum.ObjectWriter => "ObjectWriter" | |
| 631 | 638 | case EnumEnum.Of => "of" |
| 632 | 639 | case EnumEnum.Oneway => "oneway" |
| 633 | 640 | case EnumEnum.Open => "open" |
| @@ -679,6 +686,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 679 | 686 | case EnumEnum.EnumSelf => "self" |
| 680 | 687 | case EnumEnum.Sendable => "Sendable" |
| 681 | 688 | case EnumEnum.Serialize => "serialize" |
| 689 | + case EnumEnum.SerializationFeature => "SerializationFeature" | |
| 682 | 690 | case EnumEnum.SerializerProvider => "SerializerProvider" |
| 683 | 691 | case EnumEnum.Set => "set" |
| 684 | 692 | case EnumEnum.EnumShort => "short" |
| @@ -827,6 +835,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 827 | 835 | case "debugger" => EnumEnum.Debugger |
| 828 | 836 | case "decimal" => EnumEnum.Decimal |
| 829 | 837 | case "declare" => EnumEnum.Declare |
| 838 | + case "DeserializationFeature" => EnumEnum.DeserializationFeature | |
| 830 | 839 | case "decltype" => EnumEnum.Decltype |
| 831 | 840 | case "decode_string" => EnumEnum.DecodeString |
| 832 | 841 | case "Decoder" => EnumEnum.Decoder |
| @@ -963,6 +972,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 963 | 972 | case "number" => EnumEnum.Number |
| 964 | 973 | case "object" => EnumEnum.Object |
| 965 | 974 | case "ObjectMapper" => EnumEnum.ObjectMapper |
| 975 | + case "ObjectReader" => EnumEnum.ObjectReader | |
| 976 | + case "ObjectWriter" => EnumEnum.ObjectWriter | |
| 966 | 977 | case "of" => EnumEnum.Of |
| 967 | 978 | case "oneway" => EnumEnum.Oneway |
| 968 | 979 | case "open" => EnumEnum.Open |
| @@ -1014,6 +1025,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 1014 | 1025 | case "self" => EnumEnum.EnumSelf |
| 1015 | 1026 | case "Sendable" => EnumEnum.Sendable |
| 1016 | 1027 | case "serialize" => EnumEnum.Serialize |
| 1028 | + case "SerializationFeature" => EnumEnum.SerializationFeature | |
| 1017 | 1029 | case "SerializerProvider" => EnumEnum.SerializerProvider |
| 1018 | 1030 | case "set" => EnumEnum.Set |
| 1019 | 1031 | case "short" => EnumEnum.EnumShort |
Mschema-scala3default / TopLevel.scala+12 −0
| @@ -85,6 +85,7 @@ enum EnumEnum : | ||
| 85 | 85 | case Debugger |
| 86 | 86 | case Decimal |
| 87 | 87 | case Declare |
| 88 | + case DeserializationFeature | |
| 88 | 89 | case Decltype |
| 89 | 90 | case DecodeString |
| 90 | 91 | case Decoder |
| @@ -221,6 +222,8 @@ enum EnumEnum : | ||
| 221 | 222 | case Number |
| 222 | 223 | case Object |
| 223 | 224 | case ObjectMapper |
| 225 | + case ObjectReader | |
| 226 | + case ObjectWriter | |
| 224 | 227 | case Of |
| 225 | 228 | case Oneway |
| 226 | 229 | case Open |
| @@ -272,6 +275,7 @@ enum EnumEnum : | ||
| 272 | 275 | case EnumSelf |
| 273 | 276 | case Sendable |
| 274 | 277 | case Serialize |
| 278 | + case SerializationFeature | |
| 275 | 279 | case SerializerProvider |
| 276 | 280 | case Set |
| 277 | 281 | case EnumShort |
| @@ -420,6 +424,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 420 | 424 | case "debugger" => scala.Right(EnumEnum.Debugger) |
| 421 | 425 | case "decimal" => scala.Right(EnumEnum.Decimal) |
| 422 | 426 | case "declare" => scala.Right(EnumEnum.Declare) |
| 427 | + case "DeserializationFeature" => scala.Right(EnumEnum.DeserializationFeature) | |
| 423 | 428 | case "decltype" => scala.Right(EnumEnum.Decltype) |
| 424 | 429 | case "decode_string" => scala.Right(EnumEnum.DecodeString) |
| 425 | 430 | case "Decoder" => scala.Right(EnumEnum.Decoder) |
| @@ -556,6 +561,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 556 | 561 | case "number" => scala.Right(EnumEnum.Number) |
| 557 | 562 | case "object" => scala.Right(EnumEnum.Object) |
| 558 | 563 | case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper) |
| 564 | + case "ObjectReader" => scala.Right(EnumEnum.ObjectReader) | |
| 565 | + case "ObjectWriter" => scala.Right(EnumEnum.ObjectWriter) | |
| 559 | 566 | case "of" => scala.Right(EnumEnum.Of) |
| 560 | 567 | case "oneway" => scala.Right(EnumEnum.Oneway) |
| 561 | 568 | case "open" => scala.Right(EnumEnum.Open) |
| @@ -607,6 +614,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 607 | 614 | case "self" => scala.Right(EnumEnum.EnumSelf) |
| 608 | 615 | case "Sendable" => scala.Right(EnumEnum.Sendable) |
| 609 | 616 | case "serialize" => scala.Right(EnumEnum.Serialize) |
| 617 | + case "SerializationFeature" => scala.Right(EnumEnum.SerializationFeature) | |
| 610 | 618 | case "SerializerProvider" => scala.Right(EnumEnum.SerializerProvider) |
| 611 | 619 | case "set" => scala.Right(EnumEnum.Set) |
| 612 | 620 | case "short" => scala.Right(EnumEnum.EnumShort) |
| @@ -756,6 +764,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 756 | 764 | case EnumEnum.Debugger => "debugger" |
| 757 | 765 | case EnumEnum.Decimal => "decimal" |
| 758 | 766 | case EnumEnum.Declare => "declare" |
| 767 | + case EnumEnum.DeserializationFeature => "DeserializationFeature" | |
| 759 | 768 | case EnumEnum.Decltype => "decltype" |
| 760 | 769 | case EnumEnum.DecodeString => "decode_string" |
| 761 | 770 | case EnumEnum.Decoder => "Decoder" |
| @@ -892,6 +901,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 892 | 901 | case EnumEnum.Number => "number" |
| 893 | 902 | case EnumEnum.Object => "object" |
| 894 | 903 | case EnumEnum.ObjectMapper => "ObjectMapper" |
| 904 | + case EnumEnum.ObjectReader => "ObjectReader" | |
| 905 | + case EnumEnum.ObjectWriter => "ObjectWriter" | |
| 895 | 906 | case EnumEnum.Of => "of" |
| 896 | 907 | case EnumEnum.Oneway => "oneway" |
| 897 | 908 | case EnumEnum.Open => "open" |
| @@ -943,6 +954,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 943 | 954 | case EnumEnum.EnumSelf => "self" |
| 944 | 955 | case EnumEnum.Sendable => "Sendable" |
| 945 | 956 | case EnumEnum.Serialize => "serialize" |
| 957 | + case EnumEnum.SerializationFeature => "SerializationFeature" | |
| 946 | 958 | case EnumEnum.SerializerProvider => "SerializerProvider" |
| 947 | 959 | case EnumEnum.Set => "set" |
| 948 | 960 | case EnumEnum.EnumShort => "short" |
Mschema-schemadefault / TopLevel.schema+4 −0
| @@ -89,6 +89,7 @@ | ||
| 89 | 89 | "debugger", |
| 90 | 90 | "decimal", |
| 91 | 91 | "declare", |
| 92 | + "DeserializationFeature", | |
| 92 | 93 | "decltype", |
| 93 | 94 | "decode_string", |
| 94 | 95 | "Decoder", |
| @@ -225,6 +226,8 @@ | ||
| 225 | 226 | "number", |
| 226 | 227 | "object", |
| 227 | 228 | "ObjectMapper", |
| 229 | + "ObjectReader", | |
| 230 | + "ObjectWriter", | |
| 228 | 231 | "of", |
| 229 | 232 | "oneway", |
| 230 | 233 | "open", |
| @@ -276,6 +279,7 @@ | ||
| 276 | 279 | "self", |
| 277 | 280 | "Sendable", |
| 278 | 281 | "serialize", |
| 282 | + "SerializationFeature", | |
| 279 | 283 | "SerializerProvider", |
| 280 | 284 | "set", |
| 281 | 285 | "short", |
Mschema-swiftdefault / quicktype.swift+4 −0
| @@ -123,6 +123,7 @@ enum Enum: String, Codable { | ||
| 123 | 123 | case debugger = "debugger" |
| 124 | 124 | case decimal = "decimal" |
| 125 | 125 | case declare = "declare" |
| 126 | + case deserializationFeature = "DeserializationFeature" | |
| 126 | 127 | case decltype = "decltype" |
| 127 | 128 | case decodeString = "decode_string" |
| 128 | 129 | case decoder = "Decoder" |
| @@ -259,6 +260,8 @@ enum Enum: String, Codable { | ||
| 259 | 260 | case number = "number" |
| 260 | 261 | case object = "object" |
| 261 | 262 | case objectMapper = "ObjectMapper" |
| 263 | + case objectReader = "ObjectReader" | |
| 264 | + case objectWriter = "ObjectWriter" | |
| 262 | 265 | case of = "of" |
| 263 | 266 | case oneway = "oneway" |
| 264 | 267 | case enumOpen = "open" |
| @@ -310,6 +313,7 @@ enum Enum: String, Codable { | ||
| 310 | 313 | case purpleSelf = "self" |
| 311 | 314 | case sendable = "Sendable" |
| 312 | 315 | case serialize = "serialize" |
| 316 | + case serializationFeature = "SerializationFeature" | |
| 313 | 317 | case serializerProvider = "SerializerProvider" |
| 314 | 318 | case enumSet = "set" |
| 315 | 319 | case short = "short" |
Mschema-typescript-effect-schemadefault / TopLevel.ts+4 −0
| @@ -75,6 +75,7 @@ export const Enum = S.Literal( | ||
| 75 | 75 | "debugger", |
| 76 | 76 | "decimal", |
| 77 | 77 | "declare", |
| 78 | + "DeserializationFeature", | |
| 78 | 79 | "decltype", |
| 79 | 80 | "decode_string", |
| 80 | 81 | "Decoder", |
| @@ -211,6 +212,8 @@ export const Enum = S.Literal( | ||
| 211 | 212 | "number", |
| 212 | 213 | "object", |
| 213 | 214 | "ObjectMapper", |
| 215 | + "ObjectReader", | |
| 216 | + "ObjectWriter", | |
| 214 | 217 | "of", |
| 215 | 218 | "oneway", |
| 216 | 219 | "open", |
| @@ -262,6 +265,7 @@ export const Enum = S.Literal( | ||
| 262 | 265 | "self", |
| 263 | 266 | "Sendable", |
| 264 | 267 | "serialize", |
| 268 | + "SerializationFeature", | |
| 265 | 269 | "SerializerProvider", |
| 266 | 270 | "set", |
| 267 | 271 | "short", |
Mschema-typescript-zoddefault / TopLevel.ts+4 −0
| @@ -75,6 +75,7 @@ export const EnumSchema = z.enum([ | ||
| 75 | 75 | "debugger", |
| 76 | 76 | "decimal", |
| 77 | 77 | "declare", |
| 78 | + "DeserializationFeature", | |
| 78 | 79 | "decltype", |
| 79 | 80 | "decode_string", |
| 80 | 81 | "Decoder", |
| @@ -211,6 +212,8 @@ export const EnumSchema = z.enum([ | ||
| 211 | 212 | "number", |
| 212 | 213 | "object", |
| 213 | 214 | "ObjectMapper", |
| 215 | + "ObjectReader", | |
| 216 | + "ObjectWriter", | |
| 214 | 217 | "of", |
| 215 | 218 | "oneway", |
| 216 | 219 | "open", |
| @@ -262,6 +265,7 @@ export const EnumSchema = z.enum([ | ||
| 262 | 265 | "self", |
| 263 | 266 | "Sendable", |
| 264 | 267 | "serialize", |
| 268 | + "SerializationFeature", | |
| 265 | 269 | "SerializerProvider", |
| 266 | 270 | "set", |
| 267 | 271 | "short", |
Mschema-typescriptdefault / TopLevel.ts+5 −1
| @@ -12,7 +12,7 @@ export interface TopLevel { | ||
| 12 | 12 | [property: string]: unknown; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | -export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "Sendable" | "serialize" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy"; | |
| 15 | +export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "Calendar" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "clone" | "co_await" | "co_return" | "co_yield" | "Codable" | "CodingKey" | "CodingKeys" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "CultureInfo" | "date" | "date_parse_handling" | "DateFormatter" | "DateOnly" | "DateOnlyConverter" | "DateTime" | "DateTimeStyles" | "debugger" | "decimal" | "declare" | "DeserializationFeature" | "decltype" | "decode_string" | "Decoder" | "DecodingError" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "Encoder" | "enum" | "EnumValues" | "Equatable" | "equalityContract" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "FormatException" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "Hashable" | "hashCode" | "Hasher" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "IsoDateTimeOffsetConverter" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "JSONAny" | "JSONCodingKey" | "JSONDecoder" | "JSONEncoder" | "JsonException" | "JsonGenerator" | "JsonNode" | "JSONNull" | "JsonParser" | "JsonReader" | "JsonTokenType" | "lambda" | "lazy" | "left" | "let" | "list" | "Locale" | "lock" | "long" | "map" | "MapEntry" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "NSObject" | "noSuchMethod" | "not" | "not_eq" | "NSError" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "ObjectMapper" | "ObjectReader" | "ObjectWriter" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "printMembers" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "RegExp" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "runtimeType" | "s" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "Sendable" | "serialize" | "SerializationFeature" | "SerializerProvider" | "set" | "short" | "signed" | "SimpleModule" | "sizeof" | "stackalloc" | "Standards" | "static" | "static_assert" | "static_cast" | "StdDeserializer" | "StdSerializer" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "TimeOnly" | "TimeOnlyConverter" | "TimeZone" | "to_json" | "top_level" | "toString" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "Utf8JsonReader" | "Utf8JsonWriter" | "UUID" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy"; | |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
| 18 | 18 | // and asserts the results of JSON.parse at runtime |
| @@ -278,6 +278,7 @@ const typeMap: any = { | ||
| 278 | 278 | "debugger", |
| 279 | 279 | "decimal", |
| 280 | 280 | "declare", |
| 281 | + "DeserializationFeature", | |
| 281 | 282 | "decltype", |
| 282 | 283 | "decode_string", |
| 283 | 284 | "Decoder", |
| @@ -414,6 +415,8 @@ const typeMap: any = { | ||
| 414 | 415 | "number", |
| 415 | 416 | "object", |
| 416 | 417 | "ObjectMapper", |
| 418 | + "ObjectReader", | |
| 419 | + "ObjectWriter", | |
| 417 | 420 | "of", |
| 418 | 421 | "oneway", |
| 419 | 422 | "open", |
| @@ -465,6 +468,7 @@ const typeMap: any = { | ||
| 465 | 468 | "self", |
| 466 | 469 | "Sendable", |
| 467 | 470 | "serialize", |
| 471 | + "SerializationFeature", | |
| 468 | 472 | "SerializerProvider", |
| 469 | 473 | "set", |
| 470 | 474 | "short", |
Test case
55 generated files · +4,969 −253test/inputs/schema/keyword-unions.schema
Mschema-cjsondefault / TopLevel.c+416 −0
| @@ -2073,6 +2073,50 @@ void cJSON_DeleteUnionDelegate(struct UnionDelegate * x) { | ||
| 2073 | 2073 | } |
| 2074 | 2074 | } |
| 2075 | 2075 | |
| 2076 | +struct UnionDeserializationFeature * cJSON_GetUnionDeserializationFeatureValue(const cJSON * j) { | |
| 2077 | + struct UnionDeserializationFeature * x = cJSON_malloc(sizeof(struct UnionDeserializationFeature)); | |
| 2078 | + if (NULL != x) { | |
| 2079 | + memset(x, 0, sizeof(struct UnionDeserializationFeature)); | |
| 2080 | + if (cJSON_IsNumber(j)) { | |
| 2081 | + x->type = cJSON_Number; | |
| 2082 | + x->value.number = cJSON_GetNumberValue(j); | |
| 2083 | + } | |
| 2084 | + else if (cJSON_IsObject(j)) { | |
| 2085 | + x->type = cJSON_Object; | |
| 2086 | + x->value.deserialization_feature = cJSON_GetDeserializationFeatureValue(j); | |
| 2087 | + if (NULL == x->value.deserialization_feature) x->type = 0; | |
| 2088 | + } | |
| 2089 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 2090 | + } | |
| 2091 | + return x; | |
| 2092 | +} | |
| 2093 | +struct UnionDeserializationFeature * cJSON_ParseUnionDeserializationFeature(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionDeserializationFeature * x = j ? cJSON_GetUnionDeserializationFeatureValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 2094 | +char * cJSON_PrintUnionDeserializationFeature(const struct UnionDeserializationFeature * x) { cJSON * j = cJSON_CreateUnionDeserializationFeature(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 2095 | + | |
| 2096 | +cJSON * cJSON_CreateUnionDeserializationFeature(const struct UnionDeserializationFeature * x) { | |
| 2097 | + cJSON * j = NULL; | |
| 2098 | + if (NULL != x) { | |
| 2099 | + if (cJSON_Number == x->type) { | |
| 2100 | + j = cJSON_CreateNumber(x->value.number); | |
| 2101 | + } | |
| 2102 | + else if (cJSON_Object == x->type) { | |
| 2103 | + j = cJSON_CreateDeserializationFeature(x->value.deserialization_feature); | |
| 2104 | + } | |
| 2105 | + } | |
| 2106 | + return j; | |
| 2107 | +} | |
| 2108 | + | |
| 2109 | +void cJSON_DeleteUnionDeserializationFeature(struct UnionDeserializationFeature * x) { | |
| 2110 | + if (NULL != x) { | |
| 2111 | + if (cJSON_Number == x->type) { | |
| 2112 | + } | |
| 2113 | + else if (cJSON_Object == x->type) { | |
| 2114 | + cJSON_DeleteDeserializationFeature(x->value.deserialization_feature); | |
| 2115 | + } | |
| 2116 | + cJSON_free(x); | |
| 2117 | + } | |
| 2118 | +} | |
| 2119 | + | |
| 2076 | 2120 | struct UnionDict * cJSON_GetUnionDictValue(const cJSON * j) { |
| 2077 | 2121 | struct UnionDict * x = cJSON_malloc(sizeof(struct UnionDict)); |
| 2078 | 2122 | if (NULL != x) { |
| @@ -6385,6 +6429,94 @@ void cJSON_DeleteUnionObjectMapper(struct UnionObjectMapper * x) { | ||
| 6385 | 6429 | } |
| 6386 | 6430 | } |
| 6387 | 6431 | |
| 6432 | +struct UnionObjectReader * cJSON_GetUnionObjectReaderValue(const cJSON * j) { | |
| 6433 | + struct UnionObjectReader * x = cJSON_malloc(sizeof(struct UnionObjectReader)); | |
| 6434 | + if (NULL != x) { | |
| 6435 | + memset(x, 0, sizeof(struct UnionObjectReader)); | |
| 6436 | + if (cJSON_IsNumber(j)) { | |
| 6437 | + x->type = cJSON_Number; | |
| 6438 | + x->value.number = cJSON_GetNumberValue(j); | |
| 6439 | + } | |
| 6440 | + else if (cJSON_IsObject(j)) { | |
| 6441 | + x->type = cJSON_Object; | |
| 6442 | + x->value.object_reader = cJSON_GetObjectReaderValue(j); | |
| 6443 | + if (NULL == x->value.object_reader) x->type = 0; | |
| 6444 | + } | |
| 6445 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 6446 | + } | |
| 6447 | + return x; | |
| 6448 | +} | |
| 6449 | +struct UnionObjectReader * cJSON_ParseUnionObjectReader(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionObjectReader * x = j ? cJSON_GetUnionObjectReaderValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 6450 | +char * cJSON_PrintUnionObjectReader(const struct UnionObjectReader * x) { cJSON * j = cJSON_CreateUnionObjectReader(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 6451 | + | |
| 6452 | +cJSON * cJSON_CreateUnionObjectReader(const struct UnionObjectReader * x) { | |
| 6453 | + cJSON * j = NULL; | |
| 6454 | + if (NULL != x) { | |
| 6455 | + if (cJSON_Number == x->type) { | |
| 6456 | + j = cJSON_CreateNumber(x->value.number); | |
| 6457 | + } | |
| 6458 | + else if (cJSON_Object == x->type) { | |
| 6459 | + j = cJSON_CreateObjectReader(x->value.object_reader); | |
| 6460 | + } | |
| 6461 | + } | |
| 6462 | + return j; | |
| 6463 | +} | |
| 6464 | + | |
| 6465 | +void cJSON_DeleteUnionObjectReader(struct UnionObjectReader * x) { | |
| 6466 | + if (NULL != x) { | |
| 6467 | + if (cJSON_Number == x->type) { | |
| 6468 | + } | |
| 6469 | + else if (cJSON_Object == x->type) { | |
| 6470 | + cJSON_DeleteObjectReader(x->value.object_reader); | |
| 6471 | + } | |
| 6472 | + cJSON_free(x); | |
| 6473 | + } | |
| 6474 | +} | |
| 6475 | + | |
| 6476 | +struct UnionObjectWriter * cJSON_GetUnionObjectWriterValue(const cJSON * j) { | |
| 6477 | + struct UnionObjectWriter * x = cJSON_malloc(sizeof(struct UnionObjectWriter)); | |
| 6478 | + if (NULL != x) { | |
| 6479 | + memset(x, 0, sizeof(struct UnionObjectWriter)); | |
| 6480 | + if (cJSON_IsNumber(j)) { | |
| 6481 | + x->type = cJSON_Number; | |
| 6482 | + x->value.number = cJSON_GetNumberValue(j); | |
| 6483 | + } | |
| 6484 | + else if (cJSON_IsObject(j)) { | |
| 6485 | + x->type = cJSON_Object; | |
| 6486 | + x->value.object_writer = cJSON_GetObjectWriterValue(j); | |
| 6487 | + if (NULL == x->value.object_writer) x->type = 0; | |
| 6488 | + } | |
| 6489 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 6490 | + } | |
| 6491 | + return x; | |
| 6492 | +} | |
| 6493 | +struct UnionObjectWriter * cJSON_ParseUnionObjectWriter(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionObjectWriter * x = j ? cJSON_GetUnionObjectWriterValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 6494 | +char * cJSON_PrintUnionObjectWriter(const struct UnionObjectWriter * x) { cJSON * j = cJSON_CreateUnionObjectWriter(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 6495 | + | |
| 6496 | +cJSON * cJSON_CreateUnionObjectWriter(const struct UnionObjectWriter * x) { | |
| 6497 | + cJSON * j = NULL; | |
| 6498 | + if (NULL != x) { | |
| 6499 | + if (cJSON_Number == x->type) { | |
| 6500 | + j = cJSON_CreateNumber(x->value.number); | |
| 6501 | + } | |
| 6502 | + else if (cJSON_Object == x->type) { | |
| 6503 | + j = cJSON_CreateObjectWriter(x->value.object_writer); | |
| 6504 | + } | |
| 6505 | + } | |
| 6506 | + return j; | |
| 6507 | +} | |
| 6508 | + | |
| 6509 | +void cJSON_DeleteUnionObjectWriter(struct UnionObjectWriter * x) { | |
| 6510 | + if (NULL != x) { | |
| 6511 | + if (cJSON_Number == x->type) { | |
| 6512 | + } | |
| 6513 | + else if (cJSON_Object == x->type) { | |
| 6514 | + cJSON_DeleteObjectWriter(x->value.object_writer); | |
| 6515 | + } | |
| 6516 | + cJSON_free(x); | |
| 6517 | + } | |
| 6518 | +} | |
| 6519 | + | |
| 6388 | 6520 | struct UnionOf * cJSON_GetUnionOfValue(const cJSON * j) { |
| 6389 | 6521 | struct UnionOf * x = cJSON_malloc(sizeof(struct UnionOf)); |
| 6390 | 6522 | if (NULL != x) { |
| @@ -8145,6 +8277,50 @@ void cJSON_DeleteUnionSendable(struct UnionSendable * x) { | ||
| 8145 | 8277 | } |
| 8146 | 8278 | } |
| 8147 | 8279 | |
| 8280 | +struct UnionSerializationFeature * cJSON_GetUnionSerializationFeatureValue(const cJSON * j) { | |
| 8281 | + struct UnionSerializationFeature * x = cJSON_malloc(sizeof(struct UnionSerializationFeature)); | |
| 8282 | + if (NULL != x) { | |
| 8283 | + memset(x, 0, sizeof(struct UnionSerializationFeature)); | |
| 8284 | + if (cJSON_IsNumber(j)) { | |
| 8285 | + x->type = cJSON_Number; | |
| 8286 | + x->value.number = cJSON_GetNumberValue(j); | |
| 8287 | + } | |
| 8288 | + else if (cJSON_IsObject(j)) { | |
| 8289 | + x->type = cJSON_Object; | |
| 8290 | + x->value.serialization_feature = cJSON_GetSerializationFeatureValue(j); | |
| 8291 | + if (NULL == x->value.serialization_feature) x->type = 0; | |
| 8292 | + } | |
| 8293 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 8294 | + } | |
| 8295 | + return x; | |
| 8296 | +} | |
| 8297 | +struct UnionSerializationFeature * cJSON_ParseUnionSerializationFeature(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionSerializationFeature * x = j ? cJSON_GetUnionSerializationFeatureValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 8298 | +char * cJSON_PrintUnionSerializationFeature(const struct UnionSerializationFeature * x) { cJSON * j = cJSON_CreateUnionSerializationFeature(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 8299 | + | |
| 8300 | +cJSON * cJSON_CreateUnionSerializationFeature(const struct UnionSerializationFeature * x) { | |
| 8301 | + cJSON * j = NULL; | |
| 8302 | + if (NULL != x) { | |
| 8303 | + if (cJSON_Number == x->type) { | |
| 8304 | + j = cJSON_CreateNumber(x->value.number); | |
| 8305 | + } | |
| 8306 | + else if (cJSON_Object == x->type) { | |
| 8307 | + j = cJSON_CreateSerializationFeature(x->value.serialization_feature); | |
| 8308 | + } | |
| 8309 | + } | |
| 8310 | + return j; | |
| 8311 | +} | |
| 8312 | + | |
| 8313 | +void cJSON_DeleteUnionSerializationFeature(struct UnionSerializationFeature * x) { | |
| 8314 | + if (NULL != x) { | |
| 8315 | + if (cJSON_Number == x->type) { | |
| 8316 | + } | |
| 8317 | + else if (cJSON_Object == x->type) { | |
| 8318 | + cJSON_DeleteSerializationFeature(x->value.serialization_feature); | |
| 8319 | + } | |
| 8320 | + cJSON_free(x); | |
| 8321 | + } | |
| 8322 | +} | |
| 8323 | + | |
| 8148 | 8324 | struct UnionSerialize * cJSON_GetUnionSerializeValue(const cJSON * j) { |
| 8149 | 8325 | struct UnionSerialize * x = cJSON_malloc(sizeof(struct UnionSerialize)); |
| 8150 | 8326 | if (NULL != x) { |
| @@ -16916,6 +17092,55 @@ void cJSON_DeleteDelegate(struct Delegate * x) { | ||
| 16916 | 17092 | } |
| 16917 | 17093 | } |
| 16918 | 17094 | |
| 17095 | +struct DeserializationFeature * cJSON_ParseDeserializationFeature(const char * s) { | |
| 17096 | + struct DeserializationFeature * x = NULL; | |
| 17097 | + if (NULL != s) { | |
| 17098 | + cJSON * j = cJSON_Parse(s); | |
| 17099 | + if (NULL != j) { | |
| 17100 | + x = cJSON_GetDeserializationFeatureValue(j); | |
| 17101 | + cJSON_Delete(j); | |
| 17102 | + } | |
| 17103 | + } | |
| 17104 | + return x; | |
| 17105 | +} | |
| 17106 | + | |
| 17107 | +struct DeserializationFeature * cJSON_GetDeserializationFeatureValue(const cJSON * j) { | |
| 17108 | + struct DeserializationFeature * x = NULL; | |
| 17109 | + if (NULL != j) { | |
| 17110 | + if (NULL != (x = cJSON_malloc(sizeof(struct DeserializationFeature)))) { | |
| 17111 | + memset(x, 0, sizeof(struct DeserializationFeature)); | |
| 17112 | + } | |
| 17113 | + } | |
| 17114 | + return x; | |
| 17115 | +} | |
| 17116 | + | |
| 17117 | +cJSON * cJSON_CreateDeserializationFeature(const struct DeserializationFeature * x) { | |
| 17118 | + cJSON * j = NULL; | |
| 17119 | + if (NULL != x) { | |
| 17120 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 17121 | + } | |
| 17122 | + } | |
| 17123 | + return j; | |
| 17124 | +} | |
| 17125 | + | |
| 17126 | +char * cJSON_PrintDeserializationFeature(const struct DeserializationFeature * x) { | |
| 17127 | + char * s = NULL; | |
| 17128 | + if (NULL != x) { | |
| 17129 | + cJSON * j = cJSON_CreateDeserializationFeature(x); | |
| 17130 | + if (NULL != j) { | |
| 17131 | + s = cJSON_Print(j); | |
| 17132 | + cJSON_Delete(j); | |
| 17133 | + } | |
| 17134 | + } | |
| 17135 | + return s; | |
| 17136 | +} | |
| 17137 | + | |
| 17138 | +void cJSON_DeleteDeserializationFeature(struct DeserializationFeature * x) { | |
| 17139 | + if (NULL != x) { | |
| 17140 | + cJSON_free(x); | |
| 17141 | + } | |
| 17142 | +} | |
| 17143 | + | |
| 16919 | 17144 | struct Dict * cJSON_ParseDict(const char * s) { |
| 16920 | 17145 | struct Dict * x = NULL; |
| 16921 | 17146 | if (NULL != s) { |
| @@ -21718,6 +21943,104 @@ void cJSON_DeleteObjectMapper(struct ObjectMapper * x) { | ||
| 21718 | 21943 | } |
| 21719 | 21944 | } |
| 21720 | 21945 | |
| 21946 | +struct ObjectReader * cJSON_ParseObjectReader(const char * s) { | |
| 21947 | + struct ObjectReader * x = NULL; | |
| 21948 | + if (NULL != s) { | |
| 21949 | + cJSON * j = cJSON_Parse(s); | |
| 21950 | + if (NULL != j) { | |
| 21951 | + x = cJSON_GetObjectReaderValue(j); | |
| 21952 | + cJSON_Delete(j); | |
| 21953 | + } | |
| 21954 | + } | |
| 21955 | + return x; | |
| 21956 | +} | |
| 21957 | + | |
| 21958 | +struct ObjectReader * cJSON_GetObjectReaderValue(const cJSON * j) { | |
| 21959 | + struct ObjectReader * x = NULL; | |
| 21960 | + if (NULL != j) { | |
| 21961 | + if (NULL != (x = cJSON_malloc(sizeof(struct ObjectReader)))) { | |
| 21962 | + memset(x, 0, sizeof(struct ObjectReader)); | |
| 21963 | + } | |
| 21964 | + } | |
| 21965 | + return x; | |
| 21966 | +} | |
| 21967 | + | |
| 21968 | +cJSON * cJSON_CreateObjectReader(const struct ObjectReader * x) { | |
| 21969 | + cJSON * j = NULL; | |
| 21970 | + if (NULL != x) { | |
| 21971 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21972 | + } | |
| 21973 | + } | |
| 21974 | + return j; | |
| 21975 | +} | |
| 21976 | + | |
| 21977 | +char * cJSON_PrintObjectReader(const struct ObjectReader * x) { | |
| 21978 | + char * s = NULL; | |
| 21979 | + if (NULL != x) { | |
| 21980 | + cJSON * j = cJSON_CreateObjectReader(x); | |
| 21981 | + if (NULL != j) { | |
| 21982 | + s = cJSON_Print(j); | |
| 21983 | + cJSON_Delete(j); | |
| 21984 | + } | |
| 21985 | + } | |
| 21986 | + return s; | |
| 21987 | +} | |
| 21988 | + | |
| 21989 | +void cJSON_DeleteObjectReader(struct ObjectReader * x) { | |
| 21990 | + if (NULL != x) { | |
| 21991 | + cJSON_free(x); | |
| 21992 | + } | |
| 21993 | +} | |
| 21994 | + | |
| 21995 | +struct ObjectWriter * cJSON_ParseObjectWriter(const char * s) { | |
| 21996 | + struct ObjectWriter * x = NULL; | |
| 21997 | + if (NULL != s) { | |
| 21998 | + cJSON * j = cJSON_Parse(s); | |
| 21999 | + if (NULL != j) { | |
| 22000 | + x = cJSON_GetObjectWriterValue(j); | |
| 22001 | + cJSON_Delete(j); | |
| 22002 | + } | |
| 22003 | + } | |
| 22004 | + return x; | |
| 22005 | +} | |
| 22006 | + | |
| 22007 | +struct ObjectWriter * cJSON_GetObjectWriterValue(const cJSON * j) { | |
| 22008 | + struct ObjectWriter * x = NULL; | |
| 22009 | + if (NULL != j) { | |
| 22010 | + if (NULL != (x = cJSON_malloc(sizeof(struct ObjectWriter)))) { | |
| 22011 | + memset(x, 0, sizeof(struct ObjectWriter)); | |
| 22012 | + } | |
| 22013 | + } | |
| 22014 | + return x; | |
| 22015 | +} | |
| 22016 | + | |
| 22017 | +cJSON * cJSON_CreateObjectWriter(const struct ObjectWriter * x) { | |
| 22018 | + cJSON * j = NULL; | |
| 22019 | + if (NULL != x) { | |
| 22020 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 22021 | + } | |
| 22022 | + } | |
| 22023 | + return j; | |
| 22024 | +} | |
| 22025 | + | |
| 22026 | +char * cJSON_PrintObjectWriter(const struct ObjectWriter * x) { | |
| 22027 | + char * s = NULL; | |
| 22028 | + if (NULL != x) { | |
| 22029 | + cJSON * j = cJSON_CreateObjectWriter(x); | |
| 22030 | + if (NULL != j) { | |
| 22031 | + s = cJSON_Print(j); | |
| 22032 | + cJSON_Delete(j); | |
| 22033 | + } | |
| 22034 | + } | |
| 22035 | + return s; | |
| 22036 | +} | |
| 22037 | + | |
| 22038 | +void cJSON_DeleteObjectWriter(struct ObjectWriter * x) { | |
| 22039 | + if (NULL != x) { | |
| 22040 | + cJSON_free(x); | |
| 22041 | + } | |
| 22042 | +} | |
| 22043 | + | |
| 21721 | 22044 | struct Of * cJSON_ParseOf(const char * s) { |
| 21722 | 22045 | struct Of * x = NULL; |
| 21723 | 22046 | if (NULL != s) { |
| @@ -23678,6 +24001,55 @@ void cJSON_DeleteSendable(struct Sendable * x) { | ||
| 23678 | 24001 | } |
| 23679 | 24002 | } |
| 23680 | 24003 | |
| 24004 | +struct SerializationFeature * cJSON_ParseSerializationFeature(const char * s) { | |
| 24005 | + struct SerializationFeature * x = NULL; | |
| 24006 | + if (NULL != s) { | |
| 24007 | + cJSON * j = cJSON_Parse(s); | |
| 24008 | + if (NULL != j) { | |
| 24009 | + x = cJSON_GetSerializationFeatureValue(j); | |
| 24010 | + cJSON_Delete(j); | |
| 24011 | + } | |
| 24012 | + } | |
| 24013 | + return x; | |
| 24014 | +} | |
| 24015 | + | |
| 24016 | +struct SerializationFeature * cJSON_GetSerializationFeatureValue(const cJSON * j) { | |
| 24017 | + struct SerializationFeature * x = NULL; | |
| 24018 | + if (NULL != j) { | |
| 24019 | + if (NULL != (x = cJSON_malloc(sizeof(struct SerializationFeature)))) { | |
| 24020 | + memset(x, 0, sizeof(struct SerializationFeature)); | |
| 24021 | + } | |
| 24022 | + } | |
| 24023 | + return x; | |
| 24024 | +} | |
| 24025 | + | |
| 24026 | +cJSON * cJSON_CreateSerializationFeature(const struct SerializationFeature * x) { | |
| 24027 | + cJSON * j = NULL; | |
| 24028 | + if (NULL != x) { | |
| 24029 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 24030 | + } | |
| 24031 | + } | |
| 24032 | + return j; | |
| 24033 | +} | |
| 24034 | + | |
| 24035 | +char * cJSON_PrintSerializationFeature(const struct SerializationFeature * x) { | |
| 24036 | + char * s = NULL; | |
| 24037 | + if (NULL != x) { | |
| 24038 | + cJSON * j = cJSON_CreateSerializationFeature(x); | |
| 24039 | + if (NULL != j) { | |
| 24040 | + s = cJSON_Print(j); | |
| 24041 | + cJSON_Delete(j); | |
| 24042 | + } | |
| 24043 | + } | |
| 24044 | + return s; | |
| 24045 | +} | |
| 24046 | + | |
| 24047 | +void cJSON_DeleteSerializationFeature(struct SerializationFeature * x) { | |
| 24048 | + if (NULL != x) { | |
| 24049 | + cJSON_free(x); | |
| 24050 | + } | |
| 24051 | +} | |
| 24052 | + | |
| 23681 | 24053 | struct Serialize * cJSON_ParseSerialize(const char * s) { |
| 23682 | 24054 | struct Serialize * x = NULL; |
| 23683 | 24055 | if (NULL != s) { |
| @@ -31318,6 +31690,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 31318 | 31690 | x->top_level_delete = cJSON_GetUnionDeleteValue(cJSON_GetObjectItemCaseSensitive(j, "delete")); |
| 31319 | 31691 | if (NULL == x->top_level_delete) { cJSON_DeleteTopLevel(x); return NULL; } |
| 31320 | 31692 | } |
| 31693 | + if (cJSON_HasObjectItem(j, "DeserializationFeature")) { | |
| 31694 | + if (!cJSON_IsUnionDeserializationFeature(cJSON_GetObjectItemCaseSensitive(j, "DeserializationFeature"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 31695 | + x->deserialization_feature = cJSON_GetUnionDeserializationFeatureValue(cJSON_GetObjectItemCaseSensitive(j, "DeserializationFeature")); | |
| 31696 | + if (NULL == x->deserialization_feature) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 31697 | + } | |
| 31321 | 31698 | if (cJSON_HasObjectItem(j, "dict")) { |
| 31322 | 31699 | if (!cJSON_IsUnionDict(cJSON_GetObjectItemCaseSensitive(j, "dict"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 31323 | 31700 | x->dict = cJSON_GetUnionDictValue(cJSON_GetObjectItemCaseSensitive(j, "dict")); |
| @@ -31949,6 +32326,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 31949 | 32326 | x->object_mapper = cJSON_GetUnionObjectMapperValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectMapper")); |
| 31950 | 32327 | if (NULL == x->object_mapper) { cJSON_DeleteTopLevel(x); return NULL; } |
| 31951 | 32328 | } |
| 32329 | + if (cJSON_HasObjectItem(j, "ObjectReader")) { | |
| 32330 | + if (!cJSON_IsUnionObjectReader(cJSON_GetObjectItemCaseSensitive(j, "ObjectReader"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32331 | + x->object_reader = cJSON_GetUnionObjectReaderValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectReader")); | |
| 32332 | + if (NULL == x->object_reader) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32333 | + } | |
| 32334 | + if (cJSON_HasObjectItem(j, "ObjectWriter")) { | |
| 32335 | + if (!cJSON_IsUnionObjectWriter(cJSON_GetObjectItemCaseSensitive(j, "ObjectWriter"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32336 | + x->object_writer = cJSON_GetUnionObjectWriterValue(cJSON_GetObjectItemCaseSensitive(j, "ObjectWriter")); | |
| 32337 | + if (NULL == x->object_writer) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32338 | + } | |
| 31952 | 32339 | if (cJSON_HasObjectItem(j, "of")) { |
| 31953 | 32340 | if (!cJSON_IsUnionOf(cJSON_GetObjectItemCaseSensitive(j, "of"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 31954 | 32341 | x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of")); |
| @@ -32199,6 +32586,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 32199 | 32586 | x->sendable = cJSON_GetUnionSendableValue(cJSON_GetObjectItemCaseSensitive(j, "Sendable")); |
| 32200 | 32587 | if (NULL == x->sendable) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32201 | 32588 | } |
| 32589 | + if (cJSON_HasObjectItem(j, "SerializationFeature")) { | |
| 32590 | + if (!cJSON_IsUnionSerializationFeature(cJSON_GetObjectItemCaseSensitive(j, "SerializationFeature"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32591 | + x->serialization_feature = cJSON_GetUnionSerializationFeatureValue(cJSON_GetObjectItemCaseSensitive(j, "SerializationFeature")); | |
| 32592 | + if (NULL == x->serialization_feature) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32593 | + } | |
| 32202 | 32594 | if (cJSON_HasObjectItem(j, "serialize")) { |
| 32203 | 32595 | if (!cJSON_IsUnionSerialize(cJSON_GetObjectItemCaseSensitive(j, "serialize"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32204 | 32596 | x->serialize = cJSON_GetUnionSerializeValue(cJSON_GetObjectItemCaseSensitive(j, "serialize")); |
| @@ -32825,6 +33217,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 32825 | 33217 | if (NULL != x->top_level_delete) { |
| 32826 | 33218 | cJSON_AddItemToObject(j, "delete", cJSON_CreateUnionDelete(x->top_level_delete)); |
| 32827 | 33219 | } |
| 33220 | + if (NULL != x->deserialization_feature) { | |
| 33221 | + cJSON_AddItemToObject(j, "DeserializationFeature", cJSON_CreateUnionDeserializationFeature(x->deserialization_feature)); | |
| 33222 | + } | |
| 32828 | 33223 | if (NULL != x->dict) { |
| 32829 | 33224 | cJSON_AddItemToObject(j, "dict", cJSON_CreateUnionDict(x->dict)); |
| 32830 | 33225 | } |
| @@ -33203,6 +33598,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 33203 | 33598 | if (NULL != x->object_mapper) { |
| 33204 | 33599 | cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateUnionObjectMapper(x->object_mapper)); |
| 33205 | 33600 | } |
| 33601 | + if (NULL != x->object_reader) { | |
| 33602 | + cJSON_AddItemToObject(j, "ObjectReader", cJSON_CreateUnionObjectReader(x->object_reader)); | |
| 33603 | + } | |
| 33604 | + if (NULL != x->object_writer) { | |
| 33605 | + cJSON_AddItemToObject(j, "ObjectWriter", cJSON_CreateUnionObjectWriter(x->object_writer)); | |
| 33606 | + } | |
| 33206 | 33607 | if (NULL != x->of) { |
| 33207 | 33608 | cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of)); |
| 33208 | 33609 | } |
| @@ -33353,6 +33754,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 33353 | 33754 | if (NULL != x->sendable) { |
| 33354 | 33755 | cJSON_AddItemToObject(j, "Sendable", cJSON_CreateUnionSendable(x->sendable)); |
| 33355 | 33756 | } |
| 33757 | + if (NULL != x->serialization_feature) { | |
| 33758 | + cJSON_AddItemToObject(j, "SerializationFeature", cJSON_CreateUnionSerializationFeature(x->serialization_feature)); | |
| 33759 | + } | |
| 33356 | 33760 | if (NULL != x->serialize) { |
| 33357 | 33761 | cJSON_AddItemToObject(j, "serialize", cJSON_CreateUnionSerialize(x->serialize)); |
| 33358 | 33762 | } |
| @@ -33843,6 +34247,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 33843 | 34247 | if (NULL != x->top_level_delete) { |
| 33844 | 34248 | cJSON_DeleteUnionDelete(x->top_level_delete); |
| 33845 | 34249 | } |
| 34250 | + if (NULL != x->deserialization_feature) { | |
| 34251 | + cJSON_DeleteUnionDeserializationFeature(x->deserialization_feature); | |
| 34252 | + } | |
| 33846 | 34253 | if (NULL != x->dict) { |
| 33847 | 34254 | cJSON_DeleteUnionDict(x->dict); |
| 33848 | 34255 | } |
| @@ -34221,6 +34628,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 34221 | 34628 | if (NULL != x->object_mapper) { |
| 34222 | 34629 | cJSON_DeleteUnionObjectMapper(x->object_mapper); |
| 34223 | 34630 | } |
| 34631 | + if (NULL != x->object_reader) { | |
| 34632 | + cJSON_DeleteUnionObjectReader(x->object_reader); | |
| 34633 | + } | |
| 34634 | + if (NULL != x->object_writer) { | |
| 34635 | + cJSON_DeleteUnionObjectWriter(x->object_writer); | |
| 34636 | + } | |
| 34224 | 34637 | if (NULL != x->of) { |
| 34225 | 34638 | cJSON_DeleteUnionOf(x->of); |
| 34226 | 34639 | } |
| @@ -34371,6 +34784,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 34371 | 34784 | if (NULL != x->sendable) { |
| 34372 | 34785 | cJSON_DeleteUnionSendable(x->sendable); |
| 34373 | 34786 | } |
| 34787 | + if (NULL != x->serialization_feature) { | |
| 34788 | + cJSON_DeleteUnionSerializationFeature(x->serialization_feature); | |
| 34789 | + } | |
| 34374 | 34790 | if (NULL != x->serialize) { |
| 34375 | 34791 | cJSON_DeleteUnionSerialize(x->serialize); |
| 34376 | 34792 | } |
Mschema-cjsondefault / TopLevel.h+100 −0
| @@ -565,6 +565,17 @@ struct UnionDelegate { | ||
| 565 | 565 | } value; |
| 566 | 566 | }; |
| 567 | 567 | |
| 568 | +struct DeserializationFeature { | |
| 569 | +}; | |
| 570 | + | |
| 571 | +struct UnionDeserializationFeature { | |
| 572 | + int type; | |
| 573 | + union { | |
| 574 | + double number; | |
| 575 | + struct DeserializationFeature * deserialization_feature; | |
| 576 | + } value; | |
| 577 | +}; | |
| 578 | + | |
| 568 | 579 | struct Dict { |
| 569 | 580 | }; |
| 570 | 581 | |
| @@ -1643,6 +1654,28 @@ struct UnionObjectMapper { | ||
| 1643 | 1654 | } value; |
| 1644 | 1655 | }; |
| 1645 | 1656 | |
| 1657 | +struct ObjectReader { | |
| 1658 | +}; | |
| 1659 | + | |
| 1660 | +struct UnionObjectReader { | |
| 1661 | + int type; | |
| 1662 | + union { | |
| 1663 | + double number; | |
| 1664 | + struct ObjectReader * object_reader; | |
| 1665 | + } value; | |
| 1666 | +}; | |
| 1667 | + | |
| 1668 | +struct ObjectWriter { | |
| 1669 | +}; | |
| 1670 | + | |
| 1671 | +struct UnionObjectWriter { | |
| 1672 | + int type; | |
| 1673 | + union { | |
| 1674 | + double number; | |
| 1675 | + struct ObjectWriter * object_writer; | |
| 1676 | + } value; | |
| 1677 | +}; | |
| 1678 | + | |
| 1646 | 1679 | struct Of { |
| 1647 | 1680 | }; |
| 1648 | 1681 | |
| @@ -2083,6 +2116,17 @@ struct UnionSendable { | ||
| 2083 | 2116 | } value; |
| 2084 | 2117 | }; |
| 2085 | 2118 | |
| 2119 | +struct SerializationFeature { | |
| 2120 | +}; | |
| 2121 | + | |
| 2122 | +struct UnionSerializationFeature { | |
| 2123 | + int type; | |
| 2124 | + union { | |
| 2125 | + double number; | |
| 2126 | + struct SerializationFeature * serialization_feature; | |
| 2127 | + } value; | |
| 2128 | +}; | |
| 2129 | + | |
| 2086 | 2130 | struct Serialize { |
| 2087 | 2131 | }; |
| 2088 | 2132 | |
| @@ -3785,6 +3829,7 @@ struct TopLevel { | ||
| 3785 | 3829 | struct UnionDel * del; |
| 3786 | 3830 | struct UnionDelegate * delegate; |
| 3787 | 3831 | struct UnionDelete * top_level_delete; |
| 3832 | + struct UnionDeserializationFeature * deserialization_feature; | |
| 3788 | 3833 | struct UnionDict * dict; |
| 3789 | 3834 | struct UnionDictionary * dictionary; |
| 3790 | 3835 | struct UnionDidSet * did_set; |
| @@ -3911,6 +3956,8 @@ struct TopLevel { | ||
| 3911 | 3956 | struct UnionNumber * number; |
| 3912 | 3957 | struct UnionObject * object; |
| 3913 | 3958 | struct UnionObjectMapper * object_mapper; |
| 3959 | + struct UnionObjectReader * object_reader; | |
| 3960 | + struct UnionObjectWriter * object_writer; | |
| 3914 | 3961 | struct UnionOf * of; |
| 3915 | 3962 | struct UnionOneway * oneway; |
| 3916 | 3963 | struct UnionOpen * open; |
| @@ -3961,6 +4008,7 @@ struct TopLevel { | ||
| 3961 | 4008 | struct UnionSelf * self; |
| 3962 | 4009 | struct UnionSelfUnion * top_level_self; |
| 3963 | 4010 | struct UnionSendable * sendable; |
| 4011 | + struct UnionSerializationFeature * serialization_feature; | |
| 3964 | 4012 | struct UnionSerialize * serialize; |
| 3965 | 4013 | struct UnionSerializerProvider * serializer_provider; |
| 3966 | 4014 | struct UnionSet * set; |
| @@ -4365,6 +4413,13 @@ void cJSON_DeleteUnionDelegate(struct UnionDelegate * x); | ||
| 4365 | 4413 | struct UnionDelegate * cJSON_ParseUnionDelegate(const char * s); |
| 4366 | 4414 | char * cJSON_PrintUnionDelegate(const struct UnionDelegate * x); |
| 4367 | 4415 | |
| 4416 | +#define cJSON_IsUnionDeserializationFeature(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 4417 | +struct UnionDeserializationFeature * cJSON_GetUnionDeserializationFeatureValue(const cJSON * j); | |
| 4418 | +cJSON * cJSON_CreateUnionDeserializationFeature(const struct UnionDeserializationFeature * x); | |
| 4419 | +void cJSON_DeleteUnionDeserializationFeature(struct UnionDeserializationFeature * x); | |
| 4420 | +struct UnionDeserializationFeature * cJSON_ParseUnionDeserializationFeature(const char * s); | |
| 4421 | +char * cJSON_PrintUnionDeserializationFeature(const struct UnionDeserializationFeature * x); | |
| 4422 | + | |
| 4368 | 4423 | #define cJSON_IsUnionDict(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 4369 | 4424 | struct UnionDict * cJSON_GetUnionDictValue(const cJSON * j); |
| 4370 | 4425 | cJSON * cJSON_CreateUnionDict(const struct UnionDict * x); |
| @@ -5051,6 +5106,20 @@ void cJSON_DeleteUnionObjectMapper(struct UnionObjectMapper * x); | ||
| 5051 | 5106 | struct UnionObjectMapper * cJSON_ParseUnionObjectMapper(const char * s); |
| 5052 | 5107 | char * cJSON_PrintUnionObjectMapper(const struct UnionObjectMapper * x); |
| 5053 | 5108 | |
| 5109 | +#define cJSON_IsUnionObjectReader(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5110 | +struct UnionObjectReader * cJSON_GetUnionObjectReaderValue(const cJSON * j); | |
| 5111 | +cJSON * cJSON_CreateUnionObjectReader(const struct UnionObjectReader * x); | |
| 5112 | +void cJSON_DeleteUnionObjectReader(struct UnionObjectReader * x); | |
| 5113 | +struct UnionObjectReader * cJSON_ParseUnionObjectReader(const char * s); | |
| 5114 | +char * cJSON_PrintUnionObjectReader(const struct UnionObjectReader * x); | |
| 5115 | + | |
| 5116 | +#define cJSON_IsUnionObjectWriter(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5117 | +struct UnionObjectWriter * cJSON_GetUnionObjectWriterValue(const cJSON * j); | |
| 5118 | +cJSON * cJSON_CreateUnionObjectWriter(const struct UnionObjectWriter * x); | |
| 5119 | +void cJSON_DeleteUnionObjectWriter(struct UnionObjectWriter * x); | |
| 5120 | +struct UnionObjectWriter * cJSON_ParseUnionObjectWriter(const char * s); | |
| 5121 | +char * cJSON_PrintUnionObjectWriter(const struct UnionObjectWriter * x); | |
| 5122 | + | |
| 5054 | 5123 | #define cJSON_IsUnionOf(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 5055 | 5124 | struct UnionOf * cJSON_GetUnionOfValue(const cJSON * j); |
| 5056 | 5125 | cJSON * cJSON_CreateUnionOf(const struct UnionOf * x); |
| @@ -5331,6 +5400,13 @@ void cJSON_DeleteUnionSendable(struct UnionSendable * x); | ||
| 5331 | 5400 | struct UnionSendable * cJSON_ParseUnionSendable(const char * s); |
| 5332 | 5401 | char * cJSON_PrintUnionSendable(const struct UnionSendable * x); |
| 5333 | 5402 | |
| 5403 | +#define cJSON_IsUnionSerializationFeature(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5404 | +struct UnionSerializationFeature * cJSON_GetUnionSerializationFeatureValue(const cJSON * j); | |
| 5405 | +cJSON * cJSON_CreateUnionSerializationFeature(const struct UnionSerializationFeature * x); | |
| 5406 | +void cJSON_DeleteUnionSerializationFeature(struct UnionSerializationFeature * x); | |
| 5407 | +struct UnionSerializationFeature * cJSON_ParseUnionSerializationFeature(const char * s); | |
| 5408 | +char * cJSON_PrintUnionSerializationFeature(const struct UnionSerializationFeature * x); | |
| 5409 | + | |
| 5334 | 5410 | #define cJSON_IsUnionSerialize(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 5335 | 5411 | struct UnionSerialize * cJSON_GetUnionSerializeValue(const cJSON * j); |
| 5336 | 5412 | cJSON * cJSON_CreateUnionSerialize(const struct UnionSerialize * x); |
| @@ -6642,6 +6718,12 @@ cJSON * cJSON_CreateDelegate(const struct Delegate * x); | ||
| 6642 | 6718 | char * cJSON_PrintDelegate(const struct Delegate * x); |
| 6643 | 6719 | void cJSON_DeleteDelegate(struct Delegate * x); |
| 6644 | 6720 | |
| 6721 | +struct DeserializationFeature * cJSON_ParseDeserializationFeature(const char * s); | |
| 6722 | +struct DeserializationFeature * cJSON_GetDeserializationFeatureValue(const cJSON * j); | |
| 6723 | +cJSON * cJSON_CreateDeserializationFeature(const struct DeserializationFeature * x); | |
| 6724 | +char * cJSON_PrintDeserializationFeature(const struct DeserializationFeature * x); | |
| 6725 | +void cJSON_DeleteDeserializationFeature(struct DeserializationFeature * x); | |
| 6726 | + | |
| 6645 | 6727 | struct Dict * cJSON_ParseDict(const char * s); |
| 6646 | 6728 | struct Dict * cJSON_GetDictValue(const cJSON * j); |
| 6647 | 6729 | cJSON * cJSON_CreateDict(const struct Dict * x); |
| @@ -7230,6 +7312,18 @@ cJSON * cJSON_CreateObjectMapper(const struct ObjectMapper * x); | ||
| 7230 | 7312 | char * cJSON_PrintObjectMapper(const struct ObjectMapper * x); |
| 7231 | 7313 | void cJSON_DeleteObjectMapper(struct ObjectMapper * x); |
| 7232 | 7314 | |
| 7315 | +struct ObjectReader * cJSON_ParseObjectReader(const char * s); | |
| 7316 | +struct ObjectReader * cJSON_GetObjectReaderValue(const cJSON * j); | |
| 7317 | +cJSON * cJSON_CreateObjectReader(const struct ObjectReader * x); | |
| 7318 | +char * cJSON_PrintObjectReader(const struct ObjectReader * x); | |
| 7319 | +void cJSON_DeleteObjectReader(struct ObjectReader * x); | |
| 7320 | + | |
| 7321 | +struct ObjectWriter * cJSON_ParseObjectWriter(const char * s); | |
| 7322 | +struct ObjectWriter * cJSON_GetObjectWriterValue(const cJSON * j); | |
| 7323 | +cJSON * cJSON_CreateObjectWriter(const struct ObjectWriter * x); | |
| 7324 | +char * cJSON_PrintObjectWriter(const struct ObjectWriter * x); | |
| 7325 | +void cJSON_DeleteObjectWriter(struct ObjectWriter * x); | |
| 7326 | + | |
| 7233 | 7327 | struct Of * cJSON_ParseOf(const char * s); |
| 7234 | 7328 | struct Of * cJSON_GetOfValue(const cJSON * j); |
| 7235 | 7329 | cJSON * cJSON_CreateOf(const struct Of * x); |
| @@ -7470,6 +7564,12 @@ cJSON * cJSON_CreateSendable(const struct Sendable * x); | ||
| 7470 | 7564 | char * cJSON_PrintSendable(const struct Sendable * x); |
| 7471 | 7565 | void cJSON_DeleteSendable(struct Sendable * x); |
| 7472 | 7566 | |
| 7567 | +struct SerializationFeature * cJSON_ParseSerializationFeature(const char * s); | |
| 7568 | +struct SerializationFeature * cJSON_GetSerializationFeatureValue(const cJSON * j); | |
| 7569 | +cJSON * cJSON_CreateSerializationFeature(const struct SerializationFeature * x); | |
| 7570 | +char * cJSON_PrintSerializationFeature(const struct SerializationFeature * x); | |
| 7571 | +void cJSON_DeleteSerializationFeature(struct SerializationFeature * x); | |
| 7572 | + | |
| 7473 | 7573 | struct Serialize * cJSON_ParseSerialize(const char * s); |
| 7474 | 7574 | struct Serialize * cJSON_GetSerializeValue(const cJSON * j); |
| 7475 | 7575 | cJSON * cJSON_CreateSerialize(const struct Serialize * x); |
Mschema-cplusplusdefault / quicktype.hpp+240 −0
| @@ -653,6 +653,18 @@ namespace quicktype { | ||
| 653 | 653 | |
| 654 | 654 | using UnionDelegate = std::variant<Delegate, double>; |
| 655 | 655 | |
| 656 | + class DeserializationFeature { | |
| 657 | + public: | |
| 658 | + DeserializationFeature() = default; | |
| 659 | + virtual ~DeserializationFeature() = default; | |
| 660 | + | |
| 661 | + private: | |
| 662 | + | |
| 663 | + public: | |
| 664 | + }; | |
| 665 | + | |
| 666 | + using UnionDeserializationFeature = std::variant<DeserializationFeature, double>; | |
| 667 | + | |
| 656 | 668 | class Dict { |
| 657 | 669 | public: |
| 658 | 670 | Dict() = default; |
| @@ -1829,6 +1841,30 @@ namespace quicktype { | ||
| 1829 | 1841 | |
| 1830 | 1842 | using UnionObjectMapper = std::variant<ObjectMapper, double>; |
| 1831 | 1843 | |
| 1844 | + class ObjectReader { | |
| 1845 | + public: | |
| 1846 | + ObjectReader() = default; | |
| 1847 | + virtual ~ObjectReader() = default; | |
| 1848 | + | |
| 1849 | + private: | |
| 1850 | + | |
| 1851 | + public: | |
| 1852 | + }; | |
| 1853 | + | |
| 1854 | + using UnionObjectReader = std::variant<ObjectReader, double>; | |
| 1855 | + | |
| 1856 | + class ObjectWriter { | |
| 1857 | + public: | |
| 1858 | + ObjectWriter() = default; | |
| 1859 | + virtual ~ObjectWriter() = default; | |
| 1860 | + | |
| 1861 | + private: | |
| 1862 | + | |
| 1863 | + public: | |
| 1864 | + }; | |
| 1865 | + | |
| 1866 | + using UnionObjectWriter = std::variant<ObjectWriter, double>; | |
| 1867 | + | |
| 1832 | 1868 | class Of { |
| 1833 | 1869 | public: |
| 1834 | 1870 | Of() = default; |
| @@ -2321,6 +2357,18 @@ namespace quicktype { | ||
| 2321 | 2357 | |
| 2322 | 2358 | using UnionSendable = std::variant<Sendable, double>; |
| 2323 | 2359 | |
| 2360 | + class SerializationFeature { | |
| 2361 | + public: | |
| 2362 | + SerializationFeature() = default; | |
| 2363 | + virtual ~SerializationFeature() = default; | |
| 2364 | + | |
| 2365 | + private: | |
| 2366 | + | |
| 2367 | + public: | |
| 2368 | + }; | |
| 2369 | + | |
| 2370 | + using UnionSerializationFeature = std::variant<SerializationFeature, double>; | |
| 2371 | + | |
| 2324 | 2372 | class Serialize { |
| 2325 | 2373 | public: |
| 2326 | 2374 | Serialize() = default; |
| @@ -4163,6 +4211,7 @@ namespace quicktype { | ||
| 4163 | 4211 | std::optional<UnionDel> del; |
| 4164 | 4212 | std::optional<UnionDelegate> delegate; |
| 4165 | 4213 | std::optional<UnionDelete> top_level_delete; |
| 4214 | + std::optional<UnionDeserializationFeature> deserialization_feature; | |
| 4166 | 4215 | std::optional<UnionDict> dict; |
| 4167 | 4216 | std::optional<UnionDictionary> dictionary; |
| 4168 | 4217 | std::optional<UnionDidSet> did_set; |
| @@ -4289,6 +4338,8 @@ namespace quicktype { | ||
| 4289 | 4338 | std::optional<UnionNumber> number; |
| 4290 | 4339 | std::optional<UnionObject> object; |
| 4291 | 4340 | std::optional<UnionObjectMapper> object_mapper; |
| 4341 | + std::optional<UnionObjectReader> object_reader; | |
| 4342 | + std::optional<UnionObjectWriter> object_writer; | |
| 4292 | 4343 | std::optional<UnionOf> of; |
| 4293 | 4344 | std::optional<UnionOneway> oneway; |
| 4294 | 4345 | std::optional<UnionOpen> open; |
| @@ -4339,6 +4390,7 @@ namespace quicktype { | ||
| 4339 | 4390 | std::optional<UnionSelf> self; |
| 4340 | 4391 | std::optional<UnionSelfUnion> top_level_self; |
| 4341 | 4392 | std::optional<UnionSendable> sendable; |
| 4393 | + std::optional<UnionSerializationFeature> serialization_feature; | |
| 4342 | 4394 | std::optional<UnionSerialize> serialize; |
| 4343 | 4395 | std::optional<UnionSerializerProvider> serializer_provider; |
| 4344 | 4396 | std::optional<UnionSet> set; |
| @@ -4750,6 +4802,10 @@ namespace quicktype { | ||
| 4750 | 4802 | std::optional<UnionDelete> & get_mutable_top_level_delete() { return top_level_delete; } |
| 4751 | 4803 | void set_top_level_delete(const std::optional<UnionDelete> & value) { this->top_level_delete = value; } |
| 4752 | 4804 | |
| 4805 | + const std::optional<UnionDeserializationFeature> & get_deserialization_feature() const { return deserialization_feature; } | |
| 4806 | + std::optional<UnionDeserializationFeature> & get_mutable_deserialization_feature() { return deserialization_feature; } | |
| 4807 | + void set_deserialization_feature(const std::optional<UnionDeserializationFeature> & value) { this->deserialization_feature = value; } | |
| 4808 | + | |
| 4753 | 4809 | const std::optional<UnionDict> & get_dict() const { return dict; } |
| 4754 | 4810 | std::optional<UnionDict> & get_mutable_dict() { return dict; } |
| 4755 | 4811 | void set_dict(const std::optional<UnionDict> & value) { this->dict = value; } |
| @@ -5254,6 +5310,14 @@ namespace quicktype { | ||
| 5254 | 5310 | std::optional<UnionObjectMapper> & get_mutable_object_mapper() { return object_mapper; } |
| 5255 | 5311 | void set_object_mapper(const std::optional<UnionObjectMapper> & value) { this->object_mapper = value; } |
| 5256 | 5312 | |
| 5313 | + const std::optional<UnionObjectReader> & get_object_reader() const { return object_reader; } | |
| 5314 | + std::optional<UnionObjectReader> & get_mutable_object_reader() { return object_reader; } | |
| 5315 | + void set_object_reader(const std::optional<UnionObjectReader> & value) { this->object_reader = value; } | |
| 5316 | + | |
| 5317 | + const std::optional<UnionObjectWriter> & get_object_writer() const { return object_writer; } | |
| 5318 | + std::optional<UnionObjectWriter> & get_mutable_object_writer() { return object_writer; } | |
| 5319 | + void set_object_writer(const std::optional<UnionObjectWriter> & value) { this->object_writer = value; } | |
| 5320 | + | |
| 5257 | 5321 | const std::optional<UnionOf> & get_of() const { return of; } |
| 5258 | 5322 | std::optional<UnionOf> & get_mutable_of() { return of; } |
| 5259 | 5323 | void set_of(const std::optional<UnionOf> & value) { this->of = value; } |
| @@ -5454,6 +5518,10 @@ namespace quicktype { | ||
| 5454 | 5518 | std::optional<UnionSendable> & get_mutable_sendable() { return sendable; } |
| 5455 | 5519 | void set_sendable(const std::optional<UnionSendable> & value) { this->sendable = value; } |
| 5456 | 5520 | |
| 5521 | + const std::optional<UnionSerializationFeature> & get_serialization_feature() const { return serialization_feature; } | |
| 5522 | + std::optional<UnionSerializationFeature> & get_mutable_serialization_feature() { return serialization_feature; } | |
| 5523 | + void set_serialization_feature(const std::optional<UnionSerializationFeature> & value) { this->serialization_feature = value; } | |
| 5524 | + | |
| 5457 | 5525 | const std::optional<UnionSerialize> & get_serialize() const { return serialize; } |
| 5458 | 5526 | std::optional<UnionSerialize> & get_mutable_serialize() { return serialize; } |
| 5459 | 5527 | void set_serialize(const std::optional<UnionSerialize> & value) { this->serialize = value; } |
| @@ -5890,6 +5958,9 @@ void to_json(json & j, const Del & x); | ||
| 5890 | 5958 | void from_json(const json & j, Delegate & x); |
| 5891 | 5959 | void to_json(json & j, const Delegate & x); |
| 5892 | 5960 | |
| 5961 | +void from_json(const json & j, DeserializationFeature & x); | |
| 5962 | +void to_json(json & j, const DeserializationFeature & x); | |
| 5963 | + | |
| 5893 | 5964 | void from_json(const json & j, Dict & x); |
| 5894 | 5965 | void to_json(json & j, const Dict & x); |
| 5895 | 5966 | |
| @@ -6184,6 +6255,12 @@ void to_json(json & j, const Object & x); | ||
| 6184 | 6255 | void from_json(const json & j, ObjectMapper & x); |
| 6185 | 6256 | void to_json(json & j, const ObjectMapper & x); |
| 6186 | 6257 | |
| 6258 | +void from_json(const json & j, ObjectReader & x); | |
| 6259 | +void to_json(json & j, const ObjectReader & x); | |
| 6260 | + | |
| 6261 | +void from_json(const json & j, ObjectWriter & x); | |
| 6262 | +void to_json(json & j, const ObjectWriter & x); | |
| 6263 | + | |
| 6187 | 6264 | void from_json(const json & j, Of & x); |
| 6188 | 6265 | void to_json(json & j, const Of & x); |
| 6189 | 6266 | |
| @@ -6307,6 +6384,9 @@ void to_json(json & j, const Self & x); | ||
| 6307 | 6384 | void from_json(const json & j, Sendable & x); |
| 6308 | 6385 | void to_json(json & j, const Sendable & x); |
| 6309 | 6386 | |
| 6387 | +void from_json(const json & j, SerializationFeature & x); | |
| 6388 | +void to_json(json & j, const SerializationFeature & x); | |
| 6389 | + | |
| 6310 | 6390 | void from_json(const json & j, Serialize & x); |
| 6311 | 6391 | void to_json(json & j, const Serialize & x); |
| 6312 | 6392 | |
| @@ -7031,6 +7111,12 @@ struct adl_serializer<std::variant<quicktype::Delegate, double>> { | ||
| 7031 | 7111 | static void to_json(json & j, const std::variant<quicktype::Delegate, double> & x); |
| 7032 | 7112 | }; |
| 7033 | 7113 | |
| 7114 | +template <> | |
| 7115 | +struct adl_serializer<std::variant<quicktype::DeserializationFeature, double>> { | |
| 7116 | + static void from_json(const json & j, std::variant<quicktype::DeserializationFeature, double> & x); | |
| 7117 | + static void to_json(json & j, const std::variant<quicktype::DeserializationFeature, double> & x); | |
| 7118 | +}; | |
| 7119 | + | |
| 7034 | 7120 | template <> |
| 7035 | 7121 | struct adl_serializer<std::variant<quicktype::Dict, double>> { |
| 7036 | 7122 | static void from_json(const json & j, std::variant<quicktype::Dict, double> & x); |
| @@ -7619,6 +7705,18 @@ struct adl_serializer<std::variant<quicktype::ObjectMapper, double>> { | ||
| 7619 | 7705 | static void to_json(json & j, const std::variant<quicktype::ObjectMapper, double> & x); |
| 7620 | 7706 | }; |
| 7621 | 7707 | |
| 7708 | +template <> | |
| 7709 | +struct adl_serializer<std::variant<quicktype::ObjectReader, double>> { | |
| 7710 | + static void from_json(const json & j, std::variant<quicktype::ObjectReader, double> & x); | |
| 7711 | + static void to_json(json & j, const std::variant<quicktype::ObjectReader, double> & x); | |
| 7712 | +}; | |
| 7713 | + | |
| 7714 | +template <> | |
| 7715 | +struct adl_serializer<std::variant<quicktype::ObjectWriter, double>> { | |
| 7716 | + static void from_json(const json & j, std::variant<quicktype::ObjectWriter, double> & x); | |
| 7717 | + static void to_json(json & j, const std::variant<quicktype::ObjectWriter, double> & x); | |
| 7718 | +}; | |
| 7719 | + | |
| 7622 | 7720 | template <> |
| 7623 | 7721 | struct adl_serializer<std::variant<quicktype::Of, double>> { |
| 7624 | 7722 | static void from_json(const json & j, std::variant<quicktype::Of, double> & x); |
| @@ -7865,6 +7963,12 @@ struct adl_serializer<std::variant<quicktype::Sendable, double>> { | ||
| 7865 | 7963 | static void to_json(json & j, const std::variant<quicktype::Sendable, double> & x); |
| 7866 | 7964 | }; |
| 7867 | 7965 | |
| 7966 | +template <> | |
| 7967 | +struct adl_serializer<std::variant<quicktype::SerializationFeature, double>> { | |
| 7968 | + static void from_json(const json & j, std::variant<quicktype::SerializationFeature, double> & x); | |
| 7969 | + static void to_json(json & j, const std::variant<quicktype::SerializationFeature, double> & x); | |
| 7970 | +}; | |
| 7971 | + | |
| 7868 | 7972 | template <> |
| 7869 | 7973 | struct adl_serializer<std::variant<quicktype::Serialize, double>> { |
| 7870 | 7974 | static void from_json(const json & j, std::variant<quicktype::Serialize, double> & x); |
| @@ -9259,6 +9363,17 @@ namespace quicktype { | ||
| 9259 | 9363 | (void)x; |
| 9260 | 9364 | } |
| 9261 | 9365 | |
| 9366 | + inline void from_json(const json & j, DeserializationFeature& x) { | |
| 9367 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9368 | + (void)j; | |
| 9369 | + (void)x; | |
| 9370 | + } | |
| 9371 | + | |
| 9372 | + inline void to_json(json & j, const DeserializationFeature & x) { | |
| 9373 | + j = json::object(); | |
| 9374 | + (void)x; | |
| 9375 | + } | |
| 9376 | + | |
| 9262 | 9377 | inline void from_json(const json & j, Dict& x) { |
| 9263 | 9378 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9264 | 9379 | (void)j; |
| @@ -10337,6 +10452,28 @@ namespace quicktype { | ||
| 10337 | 10452 | (void)x; |
| 10338 | 10453 | } |
| 10339 | 10454 | |
| 10455 | + inline void from_json(const json & j, ObjectReader& x) { | |
| 10456 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10457 | + (void)j; | |
| 10458 | + (void)x; | |
| 10459 | + } | |
| 10460 | + | |
| 10461 | + inline void to_json(json & j, const ObjectReader & x) { | |
| 10462 | + j = json::object(); | |
| 10463 | + (void)x; | |
| 10464 | + } | |
| 10465 | + | |
| 10466 | + inline void from_json(const json & j, ObjectWriter& x) { | |
| 10467 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10468 | + (void)j; | |
| 10469 | + (void)x; | |
| 10470 | + } | |
| 10471 | + | |
| 10472 | + inline void to_json(json & j, const ObjectWriter & x) { | |
| 10473 | + j = json::object(); | |
| 10474 | + (void)x; | |
| 10475 | + } | |
| 10476 | + | |
| 10340 | 10477 | inline void from_json(const json & j, Of& x) { |
| 10341 | 10478 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10342 | 10479 | (void)j; |
| @@ -10788,6 +10925,17 @@ namespace quicktype { | ||
| 10788 | 10925 | (void)x; |
| 10789 | 10926 | } |
| 10790 | 10927 | |
| 10928 | + inline void from_json(const json & j, SerializationFeature& x) { | |
| 10929 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10930 | + (void)j; | |
| 10931 | + (void)x; | |
| 10932 | + } | |
| 10933 | + | |
| 10934 | + inline void to_json(json & j, const SerializationFeature & x) { | |
| 10935 | + j = json::object(); | |
| 10936 | + (void)x; | |
| 10937 | + } | |
| 10938 | + | |
| 10791 | 10939 | inline void from_json(const json & j, Serialize& x) { |
| 10792 | 10940 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10793 | 10941 | (void)j; |
| @@ -12564,6 +12712,8 @@ namespace quicktype { | ||
| 12564 | 12712 | x.set_delegate(get_stack_optional<std::variant<Delegate, double>>(j, "delegate")); |
| 12565 | 12713 | if (j.find("delete") != j.end() && j.at("delete").is_null()) throw std::runtime_error("Unexpected null"); |
| 12566 | 12714 | x.set_top_level_delete(get_stack_optional<std::variant<Delete, double>>(j, "delete")); |
| 12715 | + if (j.find("DeserializationFeature") != j.end() && j.at("DeserializationFeature").is_null()) throw std::runtime_error("Unexpected null"); | |
| 12716 | + x.set_deserialization_feature(get_stack_optional<std::variant<DeserializationFeature, double>>(j, "DeserializationFeature")); | |
| 12567 | 12717 | if (j.find("dict") != j.end() && j.at("dict").is_null()) throw std::runtime_error("Unexpected null"); |
| 12568 | 12718 | x.set_dict(get_stack_optional<std::variant<Dict, double>>(j, "dict")); |
| 12569 | 12719 | if (j.find("dictionary") != j.end() && j.at("dictionary").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -12816,6 +12966,10 @@ namespace quicktype { | ||
| 12816 | 12966 | x.set_object(get_stack_optional<std::variant<Object, double>>(j, "object")); |
| 12817 | 12967 | if (j.find("ObjectMapper") != j.end() && j.at("ObjectMapper").is_null()) throw std::runtime_error("Unexpected null"); |
| 12818 | 12968 | x.set_object_mapper(get_stack_optional<std::variant<ObjectMapper, double>>(j, "ObjectMapper")); |
| 12969 | + if (j.find("ObjectReader") != j.end() && j.at("ObjectReader").is_null()) throw std::runtime_error("Unexpected null"); | |
| 12970 | + x.set_object_reader(get_stack_optional<std::variant<ObjectReader, double>>(j, "ObjectReader")); | |
| 12971 | + if (j.find("ObjectWriter") != j.end() && j.at("ObjectWriter").is_null()) throw std::runtime_error("Unexpected null"); | |
| 12972 | + x.set_object_writer(get_stack_optional<std::variant<ObjectWriter, double>>(j, "ObjectWriter")); | |
| 12819 | 12973 | if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null"); |
| 12820 | 12974 | x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of")); |
| 12821 | 12975 | if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -12916,6 +13070,8 @@ namespace quicktype { | ||
| 12916 | 13070 | x.set_top_level_self(get_stack_optional<std::variant<SelfClass, double>>(j, "self")); |
| 12917 | 13071 | if (j.find("Sendable") != j.end() && j.at("Sendable").is_null()) throw std::runtime_error("Unexpected null"); |
| 12918 | 13072 | x.set_sendable(get_stack_optional<std::variant<Sendable, double>>(j, "Sendable")); |
| 13073 | + if (j.find("SerializationFeature") != j.end() && j.at("SerializationFeature").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13074 | + x.set_serialization_feature(get_stack_optional<std::variant<SerializationFeature, double>>(j, "SerializationFeature")); | |
| 12919 | 13075 | if (j.find("serialize") != j.end() && j.at("serialize").is_null()) throw std::runtime_error("Unexpected null"); |
| 12920 | 13076 | x.set_serialize(get_stack_optional<std::variant<Serialize, double>>(j, "serialize")); |
| 12921 | 13077 | if (j.find("SerializerProvider") != j.end() && j.at("SerializerProvider").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -13150,6 +13306,7 @@ namespace quicktype { | ||
| 13150 | 13306 | j["del"] = x.get_del(); |
| 13151 | 13307 | j["delegate"] = x.get_delegate(); |
| 13152 | 13308 | j["delete"] = x.get_top_level_delete(); |
| 13309 | + j["DeserializationFeature"] = x.get_deserialization_feature(); | |
| 13153 | 13310 | j["dict"] = x.get_dict(); |
| 13154 | 13311 | j["dictionary"] = x.get_dictionary(); |
| 13155 | 13312 | j["didSet"] = x.get_did_set(); |
| @@ -13276,6 +13433,8 @@ namespace quicktype { | ||
| 13276 | 13433 | j["number"] = x.get_number(); |
| 13277 | 13434 | j["object"] = x.get_object(); |
| 13278 | 13435 | j["ObjectMapper"] = x.get_object_mapper(); |
| 13436 | + j["ObjectReader"] = x.get_object_reader(); | |
| 13437 | + j["ObjectWriter"] = x.get_object_writer(); | |
| 13279 | 13438 | j["of"] = x.get_of(); |
| 13280 | 13439 | j["oneway"] = x.get_oneway(); |
| 13281 | 13440 | j["open"] = x.get_open(); |
| @@ -13326,6 +13485,7 @@ namespace quicktype { | ||
| 13326 | 13485 | j["Self"] = x.get_self(); |
| 13327 | 13486 | j["self"] = x.get_top_level_self(); |
| 13328 | 13487 | j["Sendable"] = x.get_sendable(); |
| 13488 | + j["SerializationFeature"] = x.get_serialization_feature(); | |
| 13329 | 13489 | j["serialize"] = x.get_serialize(); |
| 13330 | 13490 | j["SerializerProvider"] = x.get_serializer_provider(); |
| 13331 | 13491 | j["set"] = x.get_set(); |
| @@ -14342,6 +14502,26 @@ namespace nlohmann { | ||
| 14342 | 14502 | } |
| 14343 | 14503 | } |
| 14344 | 14504 | |
| 14505 | + inline void adl_serializer<std::variant<quicktype::DeserializationFeature, double>>::from_json(const json & j, std::variant<quicktype::DeserializationFeature, double> & x) { | |
| 14506 | + if (j.is_number()) | |
| 14507 | + x = j.get<double>(); | |
| 14508 | + else if (j.is_object()) | |
| 14509 | + x = j.get<quicktype::DeserializationFeature>(); | |
| 14510 | + else throw std::runtime_error("Could not deserialise!"); | |
| 14511 | + } | |
| 14512 | + | |
| 14513 | + inline void adl_serializer<std::variant<quicktype::DeserializationFeature, double>>::to_json(json & j, const std::variant<quicktype::DeserializationFeature, double> & x) { | |
| 14514 | + switch (x.index()) { | |
| 14515 | + case 0: | |
| 14516 | + j = std::get<quicktype::DeserializationFeature>(x); | |
| 14517 | + break; | |
| 14518 | + case 1: | |
| 14519 | + j = std::get<double>(x); | |
| 14520 | + break; | |
| 14521 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 14522 | + } | |
| 14523 | + } | |
| 14524 | + | |
| 14345 | 14525 | inline void adl_serializer<std::variant<quicktype::Dict, double>>::from_json(const json & j, std::variant<quicktype::Dict, double> & x) { |
| 14346 | 14526 | if (j.is_number()) |
| 14347 | 14527 | x = j.get<double>(); |
| @@ -16302,6 +16482,46 @@ namespace nlohmann { | ||
| 16302 | 16482 | } |
| 16303 | 16483 | } |
| 16304 | 16484 | |
| 16485 | + inline void adl_serializer<std::variant<quicktype::ObjectReader, double>>::from_json(const json & j, std::variant<quicktype::ObjectReader, double> & x) { | |
| 16486 | + if (j.is_number()) | |
| 16487 | + x = j.get<double>(); | |
| 16488 | + else if (j.is_object()) | |
| 16489 | + x = j.get<quicktype::ObjectReader>(); | |
| 16490 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16491 | + } | |
| 16492 | + | |
| 16493 | + inline void adl_serializer<std::variant<quicktype::ObjectReader, double>>::to_json(json & j, const std::variant<quicktype::ObjectReader, double> & x) { | |
| 16494 | + switch (x.index()) { | |
| 16495 | + case 0: | |
| 16496 | + j = std::get<quicktype::ObjectReader>(x); | |
| 16497 | + break; | |
| 16498 | + case 1: | |
| 16499 | + j = std::get<double>(x); | |
| 16500 | + break; | |
| 16501 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16502 | + } | |
| 16503 | + } | |
| 16504 | + | |
| 16505 | + inline void adl_serializer<std::variant<quicktype::ObjectWriter, double>>::from_json(const json & j, std::variant<quicktype::ObjectWriter, double> & x) { | |
| 16506 | + if (j.is_number()) | |
| 16507 | + x = j.get<double>(); | |
| 16508 | + else if (j.is_object()) | |
| 16509 | + x = j.get<quicktype::ObjectWriter>(); | |
| 16510 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16511 | + } | |
| 16512 | + | |
| 16513 | + inline void adl_serializer<std::variant<quicktype::ObjectWriter, double>>::to_json(json & j, const std::variant<quicktype::ObjectWriter, double> & x) { | |
| 16514 | + switch (x.index()) { | |
| 16515 | + case 0: | |
| 16516 | + j = std::get<quicktype::ObjectWriter>(x); | |
| 16517 | + break; | |
| 16518 | + case 1: | |
| 16519 | + j = std::get<double>(x); | |
| 16520 | + break; | |
| 16521 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16522 | + } | |
| 16523 | + } | |
| 16524 | + | |
| 16305 | 16525 | inline void adl_serializer<std::variant<quicktype::Of, double>>::from_json(const json & j, std::variant<quicktype::Of, double> & x) { |
| 16306 | 16526 | if (j.is_number()) |
| 16307 | 16527 | x = j.get<double>(); |
| @@ -17122,6 +17342,26 @@ namespace nlohmann { | ||
| 17122 | 17342 | } |
| 17123 | 17343 | } |
| 17124 | 17344 | |
| 17345 | + inline void adl_serializer<std::variant<quicktype::SerializationFeature, double>>::from_json(const json & j, std::variant<quicktype::SerializationFeature, double> & x) { | |
| 17346 | + if (j.is_number()) | |
| 17347 | + x = j.get<double>(); | |
| 17348 | + else if (j.is_object()) | |
| 17349 | + x = j.get<quicktype::SerializationFeature>(); | |
| 17350 | + else throw std::runtime_error("Could not deserialise!"); | |
| 17351 | + } | |
| 17352 | + | |
| 17353 | + inline void adl_serializer<std::variant<quicktype::SerializationFeature, double>>::to_json(json & j, const std::variant<quicktype::SerializationFeature, double> & x) { | |
| 17354 | + switch (x.index()) { | |
| 17355 | + case 0: | |
| 17356 | + j = std::get<quicktype::SerializationFeature>(x); | |
| 17357 | + break; | |
| 17358 | + case 1: | |
| 17359 | + j = std::get<double>(x); | |
| 17360 | + break; | |
| 17361 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 17362 | + } | |
| 17363 | + } | |
| 17364 | + | |
| 17125 | 17365 | inline void adl_serializer<std::variant<quicktype::Serialize, double>>::from_json(const json & j, std::variant<quicktype::Serialize, double> & x) { |
| 17126 | 17366 | if (j.is_number()) |
| 17127 | 17367 | x = j.get<double>(); |
Mschema-crystaldefault / TopLevel.cr+40 −0
| @@ -199,6 +199,9 @@ class TopLevel | ||
| 199 | 199 | |
| 200 | 200 | property delete : UnionDelete? |
| 201 | 201 | |
| 202 | + @[JSON::Field(key: "DeserializationFeature")] | |
| 203 | + property deserialization_feature : UnionDeserializationFeature? | |
| 204 | + | |
| 202 | 205 | property dict : UnionDict? |
| 203 | 206 | |
| 204 | 207 | property dictionary : UnionDictionary? |
| @@ -496,6 +499,12 @@ class TopLevel | ||
| 496 | 499 | @[JSON::Field(key: "ObjectMapper")] |
| 497 | 500 | property object_mapper : UnionObjectMapper? |
| 498 | 501 | |
| 502 | + @[JSON::Field(key: "ObjectReader")] | |
| 503 | + property object_reader : UnionObjectReader? | |
| 504 | + | |
| 505 | + @[JSON::Field(key: "ObjectWriter")] | |
| 506 | + property object_writer : UnionObjectWriter? | |
| 507 | + | |
| 499 | 508 | @[JSON::Field(key: "of")] |
| 500 | 509 | property top_level_of : UnionOf? |
| 501 | 510 | |
| @@ -612,6 +621,9 @@ class TopLevel | ||
| 612 | 621 | @[JSON::Field(key: "Sendable")] |
| 613 | 622 | property sendable : UnionSendable? |
| 614 | 623 | |
| 624 | + @[JSON::Field(key: "SerializationFeature")] | |
| 625 | + property serialization_feature : UnionSerializationFeature? | |
| 626 | + | |
| 615 | 627 | property serialize : UnionSerialize? |
| 616 | 628 | |
| 617 | 629 | @[JSON::Field(key: "SerializerProvider")] |
| @@ -1142,6 +1154,11 @@ class Delete | ||
| 1142 | 1154 | |
| 1143 | 1155 | end |
| 1144 | 1156 | |
| 1157 | +class DeserializationFeature | |
| 1158 | + include JSON::Serializable | |
| 1159 | + | |
| 1160 | +end | |
| 1161 | + | |
| 1145 | 1162 | class Dict |
| 1146 | 1163 | include JSON::Serializable |
| 1147 | 1164 | |
| @@ -1717,6 +1734,16 @@ class ObjectMapper | ||
| 1717 | 1734 | |
| 1718 | 1735 | end |
| 1719 | 1736 | |
| 1737 | +class ObjectReader | |
| 1738 | + include JSON::Serializable | |
| 1739 | + | |
| 1740 | +end | |
| 1741 | + | |
| 1742 | +class ObjectWriter | |
| 1743 | + include JSON::Serializable | |
| 1744 | + | |
| 1745 | +end | |
| 1746 | + | |
| 1720 | 1747 | class Oneway |
| 1721 | 1748 | include JSON::Serializable |
| 1722 | 1749 | |
| @@ -1947,6 +1974,11 @@ class Sendable | ||
| 1947 | 1974 | |
| 1948 | 1975 | end |
| 1949 | 1976 | |
| 1977 | +class SerializationFeature | |
| 1978 | + include JSON::Serializable | |
| 1979 | + | |
| 1980 | +end | |
| 1981 | + | |
| 1950 | 1982 | class Serialize |
| 1951 | 1983 | include JSON::Serializable |
| 1952 | 1984 | |
| @@ -2589,6 +2621,8 @@ alias UnionDelegate = Delegate | Float64 | ||
| 2589 | 2621 | |
| 2590 | 2622 | alias UnionDelete = Delete | Float64 |
| 2591 | 2623 | |
| 2624 | +alias UnionDeserializationFeature = DeserializationFeature | Float64 | |
| 2625 | + | |
| 2592 | 2626 | alias UnionDict = Dict | Float64 |
| 2593 | 2627 | |
| 2594 | 2628 | alias UnionDictionary = Dictionary | Float64 |
| @@ -2819,6 +2853,10 @@ alias UnionObject = Float64 | ObjectClass | ||
| 2819 | 2853 | |
| 2820 | 2854 | alias UnionObjectMapper = Float64 | ObjectMapper |
| 2821 | 2855 | |
| 2856 | +alias UnionObjectReader = Float64 | ObjectReader | |
| 2857 | + | |
| 2858 | +alias UnionObjectWriter = Float64 | ObjectWriter | |
| 2859 | + | |
| 2822 | 2860 | alias UnionOneway = Float64 | Oneway |
| 2823 | 2861 | |
| 2824 | 2862 | alias UnionOpen = Float64 | Open |
| @@ -2911,6 +2949,8 @@ alias UnionSel = Float64 | Sel | ||
| 2911 | 2949 | |
| 2912 | 2950 | alias UnionSendable = Float64 | Sendable |
| 2913 | 2951 | |
| 2952 | +alias UnionSerializationFeature = Float64 | SerializationFeature | |
| 2953 | + | |
| 2914 | 2954 | alias UnionSerialize = Float64 | Serialize |
| 2915 | 2955 | |
| 2916 | 2956 | alias UnionSerializerProvider = Float64 | SerializerProvider |
Mschema-csharp-recordsdefault / QuickType.cs+220 −0
| @@ -277,6 +277,9 @@ namespace QuickType | ||
| 277 | 277 | [JsonProperty("delete", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 278 | 278 | public UnionDelete? Delete { get; set; } |
| 279 | 279 | |
| 280 | + [JsonProperty("DeserializationFeature", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 281 | + public UnionDeserializationFeature? DeserializationFeature { get; set; } | |
| 282 | + | |
| 280 | 283 | [JsonProperty("dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 281 | 284 | public UnionDict? Dict { get; set; } |
| 282 | 285 | |
| @@ -655,6 +658,12 @@ namespace QuickType | ||
| 655 | 658 | [JsonProperty("ObjectMapper", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 656 | 659 | public UnionObjectMapper? ObjectMapper { get; set; } |
| 657 | 660 | |
| 661 | + [JsonProperty("ObjectReader", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 662 | + public UnionObjectReader? ObjectReader { get; set; } | |
| 663 | + | |
| 664 | + [JsonProperty("ObjectWriter", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 665 | + public UnionObjectWriter? ObjectWriter { get; set; } | |
| 666 | + | |
| 658 | 667 | [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 659 | 668 | public UnionOf? Of { get; set; } |
| 660 | 669 | |
| @@ -805,6 +814,9 @@ namespace QuickType | ||
| 805 | 814 | [JsonProperty("Sendable", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 806 | 815 | public UnionSendable? Sendable { get; set; } |
| 807 | 816 | |
| 817 | + [JsonProperty("SerializationFeature", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 818 | + public UnionSerializationFeature? SerializationFeature { get; set; } | |
| 819 | + | |
| 808 | 820 | [JsonProperty("serialize", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 809 | 821 | public UnionSerialize? Serialize { get; set; } |
| 810 | 822 | |
| @@ -1333,6 +1345,10 @@ namespace QuickType | ||
| 1333 | 1345 | { |
| 1334 | 1346 | } |
| 1335 | 1347 | |
| 1348 | + public partial record DeserializationFeature | |
| 1349 | + { | |
| 1350 | + } | |
| 1351 | + | |
| 1336 | 1352 | public partial record Dict |
| 1337 | 1353 | { |
| 1338 | 1354 | } |
| @@ -1821,6 +1837,14 @@ namespace QuickType | ||
| 1821 | 1837 | { |
| 1822 | 1838 | } |
| 1823 | 1839 | |
| 1840 | + public partial record ObjectReader | |
| 1841 | + { | |
| 1842 | + } | |
| 1843 | + | |
| 1844 | + public partial record ObjectWriter | |
| 1845 | + { | |
| 1846 | + } | |
| 1847 | + | |
| 1824 | 1848 | public partial record Of |
| 1825 | 1849 | { |
| 1826 | 1850 | } |
| @@ -2009,6 +2033,10 @@ namespace QuickType | ||
| 2009 | 2033 | { |
| 2010 | 2034 | } |
| 2011 | 2035 | |
| 2036 | + public partial record SerializationFeature | |
| 2037 | + { | |
| 2038 | + } | |
| 2039 | + | |
| 2012 | 2040 | public partial record SerializeClass |
| 2013 | 2041 | { |
| 2014 | 2042 | } |
| @@ -3046,6 +3074,15 @@ namespace QuickType | ||
| 3046 | 3074 | public static implicit operator UnionDelete(double Double) => new UnionDelete { Double = Double }; |
| 3047 | 3075 | } |
| 3048 | 3076 | |
| 3077 | + public partial struct UnionDeserializationFeature | |
| 3078 | + { | |
| 3079 | + public DeserializationFeature? DeserializationFeature; | |
| 3080 | + public double? Double; | |
| 3081 | + | |
| 3082 | + public static implicit operator UnionDeserializationFeature(DeserializationFeature DeserializationFeature) => new UnionDeserializationFeature { DeserializationFeature = DeserializationFeature }; | |
| 3083 | + public static implicit operator UnionDeserializationFeature(double Double) => new UnionDeserializationFeature { Double = Double }; | |
| 3084 | + } | |
| 3085 | + | |
| 3049 | 3086 | public partial struct UnionDict |
| 3050 | 3087 | { |
| 3051 | 3088 | public Dict? Dict; |
| @@ -4144,6 +4181,24 @@ namespace QuickType | ||
| 4144 | 4181 | public static implicit operator UnionObjectMapper(ObjectMapper ObjectMapper) => new UnionObjectMapper { ObjectMapper = ObjectMapper }; |
| 4145 | 4182 | } |
| 4146 | 4183 | |
| 4184 | + public partial struct UnionObjectReader | |
| 4185 | + { | |
| 4186 | + public double? Double; | |
| 4187 | + public ObjectReader? ObjectReader; | |
| 4188 | + | |
| 4189 | + public static implicit operator UnionObjectReader(double Double) => new UnionObjectReader { Double = Double }; | |
| 4190 | + public static implicit operator UnionObjectReader(ObjectReader ObjectReader) => new UnionObjectReader { ObjectReader = ObjectReader }; | |
| 4191 | + } | |
| 4192 | + | |
| 4193 | + public partial struct UnionObjectWriter | |
| 4194 | + { | |
| 4195 | + public double? Double; | |
| 4196 | + public ObjectWriter? ObjectWriter; | |
| 4197 | + | |
| 4198 | + public static implicit operator UnionObjectWriter(double Double) => new UnionObjectWriter { Double = Double }; | |
| 4199 | + public static implicit operator UnionObjectWriter(ObjectWriter ObjectWriter) => new UnionObjectWriter { ObjectWriter = ObjectWriter }; | |
| 4200 | + } | |
| 4201 | + | |
| 4147 | 4202 | public partial struct UnionOf |
| 4148 | 4203 | { |
| 4149 | 4204 | public double? Double; |
| @@ -4567,6 +4622,15 @@ namespace QuickType | ||
| 4567 | 4622 | public static implicit operator UnionSendable(Sendable Sendable) => new UnionSendable { Sendable = Sendable }; |
| 4568 | 4623 | } |
| 4569 | 4624 | |
| 4625 | + public partial struct UnionSerializationFeature | |
| 4626 | + { | |
| 4627 | + public double? Double; | |
| 4628 | + public SerializationFeature? SerializationFeature; | |
| 4629 | + | |
| 4630 | + public static implicit operator UnionSerializationFeature(double Double) => new UnionSerializationFeature { Double = Double }; | |
| 4631 | + public static implicit operator UnionSerializationFeature(SerializationFeature SerializationFeature) => new UnionSerializationFeature { SerializationFeature = SerializationFeature }; | |
| 4632 | + } | |
| 4633 | + | |
| 4570 | 4634 | public partial struct UnionSerialize |
| 4571 | 4635 | { |
| 4572 | 4636 | public double? Double; |
| @@ -5374,6 +5438,7 @@ namespace QuickType | ||
| 5374 | 5438 | UnionDateTimeStylesConverter.Singleton, |
| 5375 | 5439 | UnionDecoderConverter.Singleton, |
| 5376 | 5440 | UnionDecodingErrorConverter.Singleton, |
| 5441 | + UnionDeserializationFeatureConverter.Singleton, | |
| 5377 | 5442 | UnionEncoderConverter.Singleton, |
| 5378 | 5443 | UnionEnumValuesConverter.Singleton, |
| 5379 | 5444 | UnionEquatableConverter.Singleton, |
| @@ -5403,11 +5468,14 @@ namespace QuickType | ||
| 5403 | 5468 | UnionNullConverter.Singleton, |
| 5404 | 5469 | UnionNoneConverter.Singleton, |
| 5405 | 5470 | UnionObjectMapperConverter.Singleton, |
| 5471 | + UnionObjectReaderConverter.Singleton, | |
| 5472 | + UnionObjectWriterConverter.Singleton, | |
| 5406 | 5473 | UnionProtocolConverter.Singleton, |
| 5407 | 5474 | UnionRegExpConverter.Singleton, |
| 5408 | 5475 | UnionSelConverter.Singleton, |
| 5409 | 5476 | UnionSelfConverter.Singleton, |
| 5410 | 5477 | UnionSendableConverter.Singleton, |
| 5478 | + UnionSerializationFeatureConverter.Singleton, | |
| 5411 | 5479 | UnionSerializerProviderConverter.Singleton, |
| 5412 | 5480 | UnionSimpleModuleConverter.Singleton, |
| 5413 | 5481 | UnionStandardsConverter.Singleton, |
| @@ -6266,6 +6334,44 @@ namespace QuickType | ||
| 6266 | 6334 | public static readonly UnionDecodingErrorConverter Singleton = new UnionDecodingErrorConverter(); |
| 6267 | 6335 | } |
| 6268 | 6336 | |
| 6337 | + internal class UnionDeserializationFeatureConverter : JsonConverter | |
| 6338 | + { | |
| 6339 | + public override bool CanConvert(Type t) => t == typeof(UnionDeserializationFeature) || t == typeof(UnionDeserializationFeature?); | |
| 6340 | + | |
| 6341 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 6342 | + { | |
| 6343 | + switch (reader.TokenType) | |
| 6344 | + { | |
| 6345 | + case JsonToken.Integer: | |
| 6346 | + case JsonToken.Float: | |
| 6347 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 6348 | + return new UnionDeserializationFeature { Double = doubleValue }; | |
| 6349 | + case JsonToken.StartObject: | |
| 6350 | + var objectValue = serializer.Deserialize<DeserializationFeature>(reader); | |
| 6351 | + return new UnionDeserializationFeature { DeserializationFeature = objectValue }; | |
| 6352 | + } | |
| 6353 | + throw new Exception("Cannot unmarshal type UnionDeserializationFeature"); | |
| 6354 | + } | |
| 6355 | + | |
| 6356 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 6357 | + { | |
| 6358 | + var value = (UnionDeserializationFeature)untypedValue; | |
| 6359 | + if (value.Double != null) | |
| 6360 | + { | |
| 6361 | + serializer.Serialize(writer, value.Double.Value); | |
| 6362 | + return; | |
| 6363 | + } | |
| 6364 | + if (value.DeserializationFeature != null) | |
| 6365 | + { | |
| 6366 | + serializer.Serialize(writer, value.DeserializationFeature); | |
| 6367 | + return; | |
| 6368 | + } | |
| 6369 | + throw new Exception("Cannot marshal type UnionDeserializationFeature"); | |
| 6370 | + } | |
| 6371 | + | |
| 6372 | + public static readonly UnionDeserializationFeatureConverter Singleton = new UnionDeserializationFeatureConverter(); | |
| 6373 | + } | |
| 6374 | + | |
| 6269 | 6375 | internal class UnionEncoderConverter : JsonConverter |
| 6270 | 6376 | { |
| 6271 | 6377 | public override bool CanConvert(Type t) => t == typeof(UnionEncoder) || t == typeof(UnionEncoder?); |
| @@ -7368,6 +7474,82 @@ namespace QuickType | ||
| 7368 | 7474 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7369 | 7475 | } |
| 7370 | 7476 | |
| 7477 | + internal class UnionObjectReaderConverter : JsonConverter | |
| 7478 | + { | |
| 7479 | + public override bool CanConvert(Type t) => t == typeof(UnionObjectReader) || t == typeof(UnionObjectReader?); | |
| 7480 | + | |
| 7481 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7482 | + { | |
| 7483 | + switch (reader.TokenType) | |
| 7484 | + { | |
| 7485 | + case JsonToken.Integer: | |
| 7486 | + case JsonToken.Float: | |
| 7487 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7488 | + return new UnionObjectReader { Double = doubleValue }; | |
| 7489 | + case JsonToken.StartObject: | |
| 7490 | + var objectValue = serializer.Deserialize<ObjectReader>(reader); | |
| 7491 | + return new UnionObjectReader { ObjectReader = objectValue }; | |
| 7492 | + } | |
| 7493 | + throw new Exception("Cannot unmarshal type UnionObjectReader"); | |
| 7494 | + } | |
| 7495 | + | |
| 7496 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7497 | + { | |
| 7498 | + var value = (UnionObjectReader)untypedValue; | |
| 7499 | + if (value.Double != null) | |
| 7500 | + { | |
| 7501 | + serializer.Serialize(writer, value.Double.Value); | |
| 7502 | + return; | |
| 7503 | + } | |
| 7504 | + if (value.ObjectReader != null) | |
| 7505 | + { | |
| 7506 | + serializer.Serialize(writer, value.ObjectReader); | |
| 7507 | + return; | |
| 7508 | + } | |
| 7509 | + throw new Exception("Cannot marshal type UnionObjectReader"); | |
| 7510 | + } | |
| 7511 | + | |
| 7512 | + public static readonly UnionObjectReaderConverter Singleton = new UnionObjectReaderConverter(); | |
| 7513 | + } | |
| 7514 | + | |
| 7515 | + internal class UnionObjectWriterConverter : JsonConverter | |
| 7516 | + { | |
| 7517 | + public override bool CanConvert(Type t) => t == typeof(UnionObjectWriter) || t == typeof(UnionObjectWriter?); | |
| 7518 | + | |
| 7519 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7520 | + { | |
| 7521 | + switch (reader.TokenType) | |
| 7522 | + { | |
| 7523 | + case JsonToken.Integer: | |
| 7524 | + case JsonToken.Float: | |
| 7525 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7526 | + return new UnionObjectWriter { Double = doubleValue }; | |
| 7527 | + case JsonToken.StartObject: | |
| 7528 | + var objectValue = serializer.Deserialize<ObjectWriter>(reader); | |
| 7529 | + return new UnionObjectWriter { ObjectWriter = objectValue }; | |
| 7530 | + } | |
| 7531 | + throw new Exception("Cannot unmarshal type UnionObjectWriter"); | |
| 7532 | + } | |
| 7533 | + | |
| 7534 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7535 | + { | |
| 7536 | + var value = (UnionObjectWriter)untypedValue; | |
| 7537 | + if (value.Double != null) | |
| 7538 | + { | |
| 7539 | + serializer.Serialize(writer, value.Double.Value); | |
| 7540 | + return; | |
| 7541 | + } | |
| 7542 | + if (value.ObjectWriter != null) | |
| 7543 | + { | |
| 7544 | + serializer.Serialize(writer, value.ObjectWriter); | |
| 7545 | + return; | |
| 7546 | + } | |
| 7547 | + throw new Exception("Cannot marshal type UnionObjectWriter"); | |
| 7548 | + } | |
| 7549 | + | |
| 7550 | + public static readonly UnionObjectWriterConverter Singleton = new UnionObjectWriterConverter(); | |
| 7551 | + } | |
| 7552 | + | |
| 7371 | 7553 | internal class UnionProtocolConverter : JsonConverter |
| 7372 | 7554 | { |
| 7373 | 7555 | public override bool CanConvert(Type t) => t == typeof(UnionProtocol) || t == typeof(UnionProtocol?); |
| @@ -7558,6 +7740,44 @@ namespace QuickType | ||
| 7558 | 7740 | public static readonly UnionSendableConverter Singleton = new UnionSendableConverter(); |
| 7559 | 7741 | } |
| 7560 | 7742 | |
| 7743 | + internal class UnionSerializationFeatureConverter : JsonConverter | |
| 7744 | + { | |
| 7745 | + public override bool CanConvert(Type t) => t == typeof(UnionSerializationFeature) || t == typeof(UnionSerializationFeature?); | |
| 7746 | + | |
| 7747 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7748 | + { | |
| 7749 | + switch (reader.TokenType) | |
| 7750 | + { | |
| 7751 | + case JsonToken.Integer: | |
| 7752 | + case JsonToken.Float: | |
| 7753 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7754 | + return new UnionSerializationFeature { Double = doubleValue }; | |
| 7755 | + case JsonToken.StartObject: | |
| 7756 | + var objectValue = serializer.Deserialize<SerializationFeature>(reader); | |
| 7757 | + return new UnionSerializationFeature { SerializationFeature = objectValue }; | |
| 7758 | + } | |
| 7759 | + throw new Exception("Cannot unmarshal type UnionSerializationFeature"); | |
| 7760 | + } | |
| 7761 | + | |
| 7762 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7763 | + { | |
| 7764 | + var value = (UnionSerializationFeature)untypedValue; | |
| 7765 | + if (value.Double != null) | |
| 7766 | + { | |
| 7767 | + serializer.Serialize(writer, value.Double.Value); | |
| 7768 | + return; | |
| 7769 | + } | |
| 7770 | + if (value.SerializationFeature != null) | |
| 7771 | + { | |
| 7772 | + serializer.Serialize(writer, value.SerializationFeature); | |
| 7773 | + return; | |
| 7774 | + } | |
| 7775 | + throw new Exception("Cannot marshal type UnionSerializationFeature"); | |
| 7776 | + } | |
| 7777 | + | |
| 7778 | + public static readonly UnionSerializationFeatureConverter Singleton = new UnionSerializationFeatureConverter(); | |
| 7779 | + } | |
| 7780 | + | |
| 7561 | 7781 | internal class UnionSerializerProviderConverter : JsonConverter |
| 7562 | 7782 | { |
| 7563 | 7783 | public override bool CanConvert(Type t) => t == typeof(UnionSerializerProvider) || t == typeof(UnionSerializerProvider?); |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+216 −0
| @@ -358,6 +358,10 @@ namespace QuickType | ||
| 358 | 358 | [JsonPropertyName("delete")] |
| 359 | 359 | public UnionDelete? Delete { get; set; } |
| 360 | 360 | |
| 361 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 362 | + [JsonPropertyName("DeserializationFeature")] | |
| 363 | + public UnionDeserializationFeature? DeserializationFeature { get; set; } | |
| 364 | + | |
| 361 | 365 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 362 | 366 | [JsonPropertyName("dict")] |
| 363 | 367 | public UnionDict? Dict { get; set; } |
| @@ -862,6 +866,14 @@ namespace QuickType | ||
| 862 | 866 | [JsonPropertyName("ObjectMapper")] |
| 863 | 867 | public UnionObjectMapper? ObjectMapper { get; set; } |
| 864 | 868 | |
| 869 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 870 | + [JsonPropertyName("ObjectReader")] | |
| 871 | + public UnionObjectReader? ObjectReader { get; set; } | |
| 872 | + | |
| 873 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 874 | + [JsonPropertyName("ObjectWriter")] | |
| 875 | + public UnionObjectWriter? ObjectWriter { get; set; } | |
| 876 | + | |
| 865 | 877 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 866 | 878 | [JsonPropertyName("of")] |
| 867 | 879 | public UnionOf? Of { get; set; } |
| @@ -1062,6 +1074,10 @@ namespace QuickType | ||
| 1062 | 1074 | [JsonPropertyName("Sendable")] |
| 1063 | 1075 | public UnionSendable? Sendable { get; set; } |
| 1064 | 1076 | |
| 1077 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 1078 | + [JsonPropertyName("SerializationFeature")] | |
| 1079 | + public UnionSerializationFeature? SerializationFeature { get; set; } | |
| 1080 | + | |
| 1065 | 1081 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 1066 | 1082 | [JsonPropertyName("serialize")] |
| 1067 | 1083 | public UnionSerialize? Serialize { get; set; } |
| @@ -1667,6 +1683,10 @@ namespace QuickType | ||
| 1667 | 1683 | { |
| 1668 | 1684 | } |
| 1669 | 1685 | |
| 1686 | + public partial class DeserializationFeature | |
| 1687 | + { | |
| 1688 | + } | |
| 1689 | + | |
| 1670 | 1690 | public partial class Dict |
| 1671 | 1691 | { |
| 1672 | 1692 | } |
| @@ -2159,6 +2179,14 @@ namespace QuickType | ||
| 2159 | 2179 | { |
| 2160 | 2180 | } |
| 2161 | 2181 | |
| 2182 | + public partial class ObjectReader | |
| 2183 | + { | |
| 2184 | + } | |
| 2185 | + | |
| 2186 | + public partial class ObjectWriter | |
| 2187 | + { | |
| 2188 | + } | |
| 2189 | + | |
| 2162 | 2190 | public partial class Of |
| 2163 | 2191 | { |
| 2164 | 2192 | } |
| @@ -2351,6 +2379,10 @@ namespace QuickType | ||
| 2351 | 2379 | { |
| 2352 | 2380 | } |
| 2353 | 2381 | |
| 2382 | + public partial class SerializationFeature | |
| 2383 | + { | |
| 2384 | + } | |
| 2385 | + | |
| 2354 | 2386 | public partial class SerializeClass |
| 2355 | 2387 | { |
| 2356 | 2388 | } |
| @@ -3385,6 +3417,15 @@ namespace QuickType | ||
| 3385 | 3417 | public static implicit operator UnionDelete(double Double) => new UnionDelete { Double = Double }; |
| 3386 | 3418 | } |
| 3387 | 3419 | |
| 3420 | + public partial struct UnionDeserializationFeature | |
| 3421 | + { | |
| 3422 | + public DeserializationFeature? DeserializationFeature; | |
| 3423 | + public double? Double; | |
| 3424 | + | |
| 3425 | + public static implicit operator UnionDeserializationFeature(DeserializationFeature DeserializationFeature) => new UnionDeserializationFeature { DeserializationFeature = DeserializationFeature }; | |
| 3426 | + public static implicit operator UnionDeserializationFeature(double Double) => new UnionDeserializationFeature { Double = Double }; | |
| 3427 | + } | |
| 3428 | + | |
| 3388 | 3429 | public partial struct UnionDict |
| 3389 | 3430 | { |
| 3390 | 3431 | public Dict? Dict; |
| @@ -4492,6 +4533,24 @@ namespace QuickType | ||
| 4492 | 4533 | public static implicit operator UnionObjectMapper(ObjectMapper ObjectMapper) => new UnionObjectMapper { ObjectMapper = ObjectMapper }; |
| 4493 | 4534 | } |
| 4494 | 4535 | |
| 4536 | + public partial struct UnionObjectReader | |
| 4537 | + { | |
| 4538 | + public double? Double; | |
| 4539 | + public ObjectReader? ObjectReader; | |
| 4540 | + | |
| 4541 | + public static implicit operator UnionObjectReader(double Double) => new UnionObjectReader { Double = Double }; | |
| 4542 | + public static implicit operator UnionObjectReader(ObjectReader ObjectReader) => new UnionObjectReader { ObjectReader = ObjectReader }; | |
| 4543 | + } | |
| 4544 | + | |
| 4545 | + public partial struct UnionObjectWriter | |
| 4546 | + { | |
| 4547 | + public double? Double; | |
| 4548 | + public ObjectWriter? ObjectWriter; | |
| 4549 | + | |
| 4550 | + public static implicit operator UnionObjectWriter(double Double) => new UnionObjectWriter { Double = Double }; | |
| 4551 | + public static implicit operator UnionObjectWriter(ObjectWriter ObjectWriter) => new UnionObjectWriter { ObjectWriter = ObjectWriter }; | |
| 4552 | + } | |
| 4553 | + | |
| 4495 | 4554 | public partial struct UnionOf |
| 4496 | 4555 | { |
| 4497 | 4556 | public double? Double; |
| @@ -4924,6 +4983,15 @@ namespace QuickType | ||
| 4924 | 4983 | public static implicit operator UnionSendable(Sendable Sendable) => new UnionSendable { Sendable = Sendable }; |
| 4925 | 4984 | } |
| 4926 | 4985 | |
| 4986 | + public partial struct UnionSerializationFeature | |
| 4987 | + { | |
| 4988 | + public double? Double; | |
| 4989 | + public SerializationFeature? SerializationFeature; | |
| 4990 | + | |
| 4991 | + public static implicit operator UnionSerializationFeature(double Double) => new UnionSerializationFeature { Double = Double }; | |
| 4992 | + public static implicit operator UnionSerializationFeature(SerializationFeature SerializationFeature) => new UnionSerializationFeature { SerializationFeature = SerializationFeature }; | |
| 4993 | + } | |
| 4994 | + | |
| 4927 | 4995 | public partial struct UnionSerialize |
| 4928 | 4996 | { |
| 4929 | 4997 | public double? Double; |
| @@ -5702,6 +5770,7 @@ namespace QuickType | ||
| 5702 | 5770 | UnionDateTimeStylesConverter.Singleton, |
| 5703 | 5771 | UnionDecoderConverter.Singleton, |
| 5704 | 5772 | UnionDecodingErrorConverter.Singleton, |
| 5773 | + UnionDeserializationFeatureConverter.Singleton, | |
| 5705 | 5774 | UnionEncoderConverter.Singleton, |
| 5706 | 5775 | UnionEnumValuesConverter.Singleton, |
| 5707 | 5776 | UnionEquatableConverter.Singleton, |
| @@ -5731,11 +5800,14 @@ namespace QuickType | ||
| 5731 | 5800 | UnionNullConverter.Singleton, |
| 5732 | 5801 | UnionNoneConverter.Singleton, |
| 5733 | 5802 | UnionObjectMapperConverter.Singleton, |
| 5803 | + UnionObjectReaderConverter.Singleton, | |
| 5804 | + UnionObjectWriterConverter.Singleton, | |
| 5734 | 5805 | UnionProtocolConverter.Singleton, |
| 5735 | 5806 | UnionRegExpConverter.Singleton, |
| 5736 | 5807 | UnionSelConverter.Singleton, |
| 5737 | 5808 | UnionSelfConverter.Singleton, |
| 5738 | 5809 | UnionSendableConverter.Singleton, |
| 5810 | + UnionSerializationFeatureConverter.Singleton, | |
| 5739 | 5811 | UnionSerializerProviderConverter.Singleton, |
| 5740 | 5812 | UnionSimpleModuleConverter.Singleton, |
| 5741 | 5813 | UnionStandardsConverter.Singleton, |
| @@ -6566,6 +6638,42 @@ namespace QuickType | ||
| 6566 | 6638 | public static readonly UnionDecodingErrorConverter Singleton = new UnionDecodingErrorConverter(); |
| 6567 | 6639 | } |
| 6568 | 6640 | |
| 6641 | + internal class UnionDeserializationFeatureConverter : JsonConverter<UnionDeserializationFeature> | |
| 6642 | + { | |
| 6643 | + public override bool CanConvert(Type t) => t == typeof(UnionDeserializationFeature); | |
| 6644 | + | |
| 6645 | + public override UnionDeserializationFeature Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 6646 | + { | |
| 6647 | + switch (reader.TokenType) | |
| 6648 | + { | |
| 6649 | + case JsonTokenType.Number: | |
| 6650 | + var doubleValue1 = reader.GetDouble(); | |
| 6651 | + return new UnionDeserializationFeature { Double = doubleValue1 }; | |
| 6652 | + case JsonTokenType.StartObject: | |
| 6653 | + var objectValue = JsonSerializer.Deserialize<DeserializationFeature>(ref reader, options); | |
| 6654 | + return new UnionDeserializationFeature { DeserializationFeature = objectValue }; | |
| 6655 | + } | |
| 6656 | + throw new JsonException("Cannot unmarshal type UnionDeserializationFeature"); | |
| 6657 | + } | |
| 6658 | + | |
| 6659 | + public override void Write(Utf8JsonWriter writer, UnionDeserializationFeature value, JsonSerializerOptions options) | |
| 6660 | + { | |
| 6661 | + if (value.Double != null) | |
| 6662 | + { | |
| 6663 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 6664 | + return; | |
| 6665 | + } | |
| 6666 | + if (value.DeserializationFeature != null) | |
| 6667 | + { | |
| 6668 | + JsonSerializer.Serialize(writer, value.DeserializationFeature, options); | |
| 6669 | + return; | |
| 6670 | + } | |
| 6671 | + throw new NotSupportedException("Cannot marshal type UnionDeserializationFeature"); | |
| 6672 | + } | |
| 6673 | + | |
| 6674 | + public static readonly UnionDeserializationFeatureConverter Singleton = new UnionDeserializationFeatureConverter(); | |
| 6675 | + } | |
| 6676 | + | |
| 6569 | 6677 | internal class UnionEncoderConverter : JsonConverter<UnionEncoder> |
| 6570 | 6678 | { |
| 6571 | 6679 | public override bool CanConvert(Type t) => t == typeof(UnionEncoder); |
| @@ -7610,6 +7718,78 @@ namespace QuickType | ||
| 7610 | 7718 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7611 | 7719 | } |
| 7612 | 7720 | |
| 7721 | + internal class UnionObjectReaderConverter : JsonConverter<UnionObjectReader> | |
| 7722 | + { | |
| 7723 | + public override bool CanConvert(Type t) => t == typeof(UnionObjectReader); | |
| 7724 | + | |
| 7725 | + public override UnionObjectReader Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7726 | + { | |
| 7727 | + switch (reader.TokenType) | |
| 7728 | + { | |
| 7729 | + case JsonTokenType.Number: | |
| 7730 | + var doubleValue1 = reader.GetDouble(); | |
| 7731 | + return new UnionObjectReader { Double = doubleValue1 }; | |
| 7732 | + case JsonTokenType.StartObject: | |
| 7733 | + var objectValue = JsonSerializer.Deserialize<ObjectReader>(ref reader, options); | |
| 7734 | + return new UnionObjectReader { ObjectReader = objectValue }; | |
| 7735 | + } | |
| 7736 | + throw new JsonException("Cannot unmarshal type UnionObjectReader"); | |
| 7737 | + } | |
| 7738 | + | |
| 7739 | + public override void Write(Utf8JsonWriter writer, UnionObjectReader value, JsonSerializerOptions options) | |
| 7740 | + { | |
| 7741 | + if (value.Double != null) | |
| 7742 | + { | |
| 7743 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7744 | + return; | |
| 7745 | + } | |
| 7746 | + if (value.ObjectReader != null) | |
| 7747 | + { | |
| 7748 | + JsonSerializer.Serialize(writer, value.ObjectReader, options); | |
| 7749 | + return; | |
| 7750 | + } | |
| 7751 | + throw new NotSupportedException("Cannot marshal type UnionObjectReader"); | |
| 7752 | + } | |
| 7753 | + | |
| 7754 | + public static readonly UnionObjectReaderConverter Singleton = new UnionObjectReaderConverter(); | |
| 7755 | + } | |
| 7756 | + | |
| 7757 | + internal class UnionObjectWriterConverter : JsonConverter<UnionObjectWriter> | |
| 7758 | + { | |
| 7759 | + public override bool CanConvert(Type t) => t == typeof(UnionObjectWriter); | |
| 7760 | + | |
| 7761 | + public override UnionObjectWriter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7762 | + { | |
| 7763 | + switch (reader.TokenType) | |
| 7764 | + { | |
| 7765 | + case JsonTokenType.Number: | |
| 7766 | + var doubleValue1 = reader.GetDouble(); | |
| 7767 | + return new UnionObjectWriter { Double = doubleValue1 }; | |
| 7768 | + case JsonTokenType.StartObject: | |
| 7769 | + var objectValue = JsonSerializer.Deserialize<ObjectWriter>(ref reader, options); | |
| 7770 | + return new UnionObjectWriter { ObjectWriter = objectValue }; | |
| 7771 | + } | |
| 7772 | + throw new JsonException("Cannot unmarshal type UnionObjectWriter"); | |
| 7773 | + } | |
| 7774 | + | |
| 7775 | + public override void Write(Utf8JsonWriter writer, UnionObjectWriter value, JsonSerializerOptions options) | |
| 7776 | + { | |
| 7777 | + if (value.Double != null) | |
| 7778 | + { | |
| 7779 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7780 | + return; | |
| 7781 | + } | |
| 7782 | + if (value.ObjectWriter != null) | |
| 7783 | + { | |
| 7784 | + JsonSerializer.Serialize(writer, value.ObjectWriter, options); | |
| 7785 | + return; | |
| 7786 | + } | |
| 7787 | + throw new NotSupportedException("Cannot marshal type UnionObjectWriter"); | |
| 7788 | + } | |
| 7789 | + | |
| 7790 | + public static readonly UnionObjectWriterConverter Singleton = new UnionObjectWriterConverter(); | |
| 7791 | + } | |
| 7792 | + | |
| 7613 | 7793 | internal class UnionProtocolConverter : JsonConverter<UnionProtocol> |
| 7614 | 7794 | { |
| 7615 | 7795 | public override bool CanConvert(Type t) => t == typeof(UnionProtocol); |
| @@ -7790,6 +7970,42 @@ namespace QuickType | ||
| 7790 | 7970 | public static readonly UnionSendableConverter Singleton = new UnionSendableConverter(); |
| 7791 | 7971 | } |
| 7792 | 7972 | |
| 7973 | + internal class UnionSerializationFeatureConverter : JsonConverter<UnionSerializationFeature> | |
| 7974 | + { | |
| 7975 | + public override bool CanConvert(Type t) => t == typeof(UnionSerializationFeature); | |
| 7976 | + | |
| 7977 | + public override UnionSerializationFeature Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7978 | + { | |
| 7979 | + switch (reader.TokenType) | |
| 7980 | + { | |
| 7981 | + case JsonTokenType.Number: | |
| 7982 | + var doubleValue1 = reader.GetDouble(); | |
| 7983 | + return new UnionSerializationFeature { Double = doubleValue1 }; | |
| 7984 | + case JsonTokenType.StartObject: | |
| 7985 | + var objectValue = JsonSerializer.Deserialize<SerializationFeature>(ref reader, options); | |
| 7986 | + return new UnionSerializationFeature { SerializationFeature = objectValue }; | |
| 7987 | + } | |
| 7988 | + throw new JsonException("Cannot unmarshal type UnionSerializationFeature"); | |
| 7989 | + } | |
| 7990 | + | |
| 7991 | + public override void Write(Utf8JsonWriter writer, UnionSerializationFeature value, JsonSerializerOptions options) | |
| 7992 | + { | |
| 7993 | + if (value.Double != null) | |
| 7994 | + { | |
| 7995 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7996 | + return; | |
| 7997 | + } | |
| 7998 | + if (value.SerializationFeature != null) | |
| 7999 | + { | |
| 8000 | + JsonSerializer.Serialize(writer, value.SerializationFeature, options); | |
| 8001 | + return; | |
| 8002 | + } | |
| 8003 | + throw new NotSupportedException("Cannot marshal type UnionSerializationFeature"); | |
| 8004 | + } | |
| 8005 | + | |
| 8006 | + public static readonly UnionSerializationFeatureConverter Singleton = new UnionSerializationFeatureConverter(); | |
| 8007 | + } | |
| 8008 | + | |
| 7793 | 8009 | internal class UnionSerializerProviderConverter : JsonConverter<UnionSerializerProvider> |
| 7794 | 8010 | { |
| 7795 | 8011 | public override bool CanConvert(Type t) => t == typeof(UnionSerializerProvider); |
Mschema-csharpdefault / QuickType.cs+220 −0
| @@ -277,6 +277,9 @@ namespace QuickType | ||
| 277 | 277 | [JsonProperty("delete", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 278 | 278 | public UnionDelete? Delete { get; set; } |
| 279 | 279 | |
| 280 | + [JsonProperty("DeserializationFeature", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 281 | + public UnionDeserializationFeature? DeserializationFeature { get; set; } | |
| 282 | + | |
| 280 | 283 | [JsonProperty("dict", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 281 | 284 | public UnionDict? Dict { get; set; } |
| 282 | 285 | |
| @@ -655,6 +658,12 @@ namespace QuickType | ||
| 655 | 658 | [JsonProperty("ObjectMapper", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 656 | 659 | public UnionObjectMapper? ObjectMapper { get; set; } |
| 657 | 660 | |
| 661 | + [JsonProperty("ObjectReader", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 662 | + public UnionObjectReader? ObjectReader { get; set; } | |
| 663 | + | |
| 664 | + [JsonProperty("ObjectWriter", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 665 | + public UnionObjectWriter? ObjectWriter { get; set; } | |
| 666 | + | |
| 658 | 667 | [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 659 | 668 | public UnionOf? Of { get; set; } |
| 660 | 669 | |
| @@ -805,6 +814,9 @@ namespace QuickType | ||
| 805 | 814 | [JsonProperty("Sendable", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 806 | 815 | public UnionSendable? Sendable { get; set; } |
| 807 | 816 | |
| 817 | + [JsonProperty("SerializationFeature", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 818 | + public UnionSerializationFeature? SerializationFeature { get; set; } | |
| 819 | + | |
| 808 | 820 | [JsonProperty("serialize", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 809 | 821 | public UnionSerialize? Serialize { get; set; } |
| 810 | 822 | |
| @@ -1337,6 +1349,10 @@ namespace QuickType | ||
| 1337 | 1349 | { |
| 1338 | 1350 | } |
| 1339 | 1351 | |
| 1352 | + public partial class DeserializationFeature | |
| 1353 | + { | |
| 1354 | + } | |
| 1355 | + | |
| 1340 | 1356 | public partial class Dict |
| 1341 | 1357 | { |
| 1342 | 1358 | } |
| @@ -1829,6 +1845,14 @@ namespace QuickType | ||
| 1829 | 1845 | { |
| 1830 | 1846 | } |
| 1831 | 1847 | |
| 1848 | + public partial class ObjectReader | |
| 1849 | + { | |
| 1850 | + } | |
| 1851 | + | |
| 1852 | + public partial class ObjectWriter | |
| 1853 | + { | |
| 1854 | + } | |
| 1855 | + | |
| 1832 | 1856 | public partial class Of |
| 1833 | 1857 | { |
| 1834 | 1858 | } |
| @@ -2021,6 +2045,10 @@ namespace QuickType | ||
| 2021 | 2045 | { |
| 2022 | 2046 | } |
| 2023 | 2047 | |
| 2048 | + public partial class SerializationFeature | |
| 2049 | + { | |
| 2050 | + } | |
| 2051 | + | |
| 2024 | 2052 | public partial class SerializeClass |
| 2025 | 2053 | { |
| 2026 | 2054 | } |
| @@ -3055,6 +3083,15 @@ namespace QuickType | ||
| 3055 | 3083 | public static implicit operator UnionDelete(double Double) => new UnionDelete { Double = Double }; |
| 3056 | 3084 | } |
| 3057 | 3085 | |
| 3086 | + public partial struct UnionDeserializationFeature | |
| 3087 | + { | |
| 3088 | + public DeserializationFeature? DeserializationFeature; | |
| 3089 | + public double? Double; | |
| 3090 | + | |
| 3091 | + public static implicit operator UnionDeserializationFeature(DeserializationFeature DeserializationFeature) => new UnionDeserializationFeature { DeserializationFeature = DeserializationFeature }; | |
| 3092 | + public static implicit operator UnionDeserializationFeature(double Double) => new UnionDeserializationFeature { Double = Double }; | |
| 3093 | + } | |
| 3094 | + | |
| 3058 | 3095 | public partial struct UnionDict |
| 3059 | 3096 | { |
| 3060 | 3097 | public Dict? Dict; |
| @@ -4162,6 +4199,24 @@ namespace QuickType | ||
| 4162 | 4199 | public static implicit operator UnionObjectMapper(ObjectMapper ObjectMapper) => new UnionObjectMapper { ObjectMapper = ObjectMapper }; |
| 4163 | 4200 | } |
| 4164 | 4201 | |
| 4202 | + public partial struct UnionObjectReader | |
| 4203 | + { | |
| 4204 | + public double? Double; | |
| 4205 | + public ObjectReader? ObjectReader; | |
| 4206 | + | |
| 4207 | + public static implicit operator UnionObjectReader(double Double) => new UnionObjectReader { Double = Double }; | |
| 4208 | + public static implicit operator UnionObjectReader(ObjectReader ObjectReader) => new UnionObjectReader { ObjectReader = ObjectReader }; | |
| 4209 | + } | |
| 4210 | + | |
| 4211 | + public partial struct UnionObjectWriter | |
| 4212 | + { | |
| 4213 | + public double? Double; | |
| 4214 | + public ObjectWriter? ObjectWriter; | |
| 4215 | + | |
| 4216 | + public static implicit operator UnionObjectWriter(double Double) => new UnionObjectWriter { Double = Double }; | |
| 4217 | + public static implicit operator UnionObjectWriter(ObjectWriter ObjectWriter) => new UnionObjectWriter { ObjectWriter = ObjectWriter }; | |
| 4218 | + } | |
| 4219 | + | |
| 4165 | 4220 | public partial struct UnionOf |
| 4166 | 4221 | { |
| 4167 | 4222 | public double? Double; |
| @@ -4594,6 +4649,15 @@ namespace QuickType | ||
| 4594 | 4649 | public static implicit operator UnionSendable(Sendable Sendable) => new UnionSendable { Sendable = Sendable }; |
| 4595 | 4650 | } |
| 4596 | 4651 | |
| 4652 | + public partial struct UnionSerializationFeature | |
| 4653 | + { | |
| 4654 | + public double? Double; | |
| 4655 | + public SerializationFeature? SerializationFeature; | |
| 4656 | + | |
| 4657 | + public static implicit operator UnionSerializationFeature(double Double) => new UnionSerializationFeature { Double = Double }; | |
| 4658 | + public static implicit operator UnionSerializationFeature(SerializationFeature SerializationFeature) => new UnionSerializationFeature { SerializationFeature = SerializationFeature }; | |
| 4659 | + } | |
| 4660 | + | |
| 4597 | 4661 | public partial struct UnionSerialize |
| 4598 | 4662 | { |
| 4599 | 4663 | public double? Double; |
| @@ -5374,6 +5438,7 @@ namespace QuickType | ||
| 5374 | 5438 | UnionDateTimeStylesConverter.Singleton, |
| 5375 | 5439 | UnionDecoderConverter.Singleton, |
| 5376 | 5440 | UnionDecodingErrorConverter.Singleton, |
| 5441 | + UnionDeserializationFeatureConverter.Singleton, | |
| 5377 | 5442 | UnionEncoderConverter.Singleton, |
| 5378 | 5443 | UnionEnumValuesConverter.Singleton, |
| 5379 | 5444 | UnionEquatableConverter.Singleton, |
| @@ -5403,11 +5468,14 @@ namespace QuickType | ||
| 5403 | 5468 | UnionNullConverter.Singleton, |
| 5404 | 5469 | UnionNoneConverter.Singleton, |
| 5405 | 5470 | UnionObjectMapperConverter.Singleton, |
| 5471 | + UnionObjectReaderConverter.Singleton, | |
| 5472 | + UnionObjectWriterConverter.Singleton, | |
| 5406 | 5473 | UnionProtocolConverter.Singleton, |
| 5407 | 5474 | UnionRegExpConverter.Singleton, |
| 5408 | 5475 | UnionSelConverter.Singleton, |
| 5409 | 5476 | UnionSelfConverter.Singleton, |
| 5410 | 5477 | UnionSendableConverter.Singleton, |
| 5478 | + UnionSerializationFeatureConverter.Singleton, | |
| 5411 | 5479 | UnionSerializerProviderConverter.Singleton, |
| 5412 | 5480 | UnionSimpleModuleConverter.Singleton, |
| 5413 | 5481 | UnionStandardsConverter.Singleton, |
| @@ -6266,6 +6334,44 @@ namespace QuickType | ||
| 6266 | 6334 | public static readonly UnionDecodingErrorConverter Singleton = new UnionDecodingErrorConverter(); |
| 6267 | 6335 | } |
| 6268 | 6336 | |
| 6337 | + internal class UnionDeserializationFeatureConverter : JsonConverter | |
| 6338 | + { | |
| 6339 | + public override bool CanConvert(Type t) => t == typeof(UnionDeserializationFeature) || t == typeof(UnionDeserializationFeature?); | |
| 6340 | + | |
| 6341 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 6342 | + { | |
| 6343 | + switch (reader.TokenType) | |
| 6344 | + { | |
| 6345 | + case JsonToken.Integer: | |
| 6346 | + case JsonToken.Float: | |
| 6347 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 6348 | + return new UnionDeserializationFeature { Double = doubleValue }; | |
| 6349 | + case JsonToken.StartObject: | |
| 6350 | + var objectValue = serializer.Deserialize<DeserializationFeature>(reader); | |
| 6351 | + return new UnionDeserializationFeature { DeserializationFeature = objectValue }; | |
| 6352 | + } | |
| 6353 | + throw new Exception("Cannot unmarshal type UnionDeserializationFeature"); | |
| 6354 | + } | |
| 6355 | + | |
| 6356 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 6357 | + { | |
| 6358 | + var value = (UnionDeserializationFeature)untypedValue; | |
| 6359 | + if (value.Double != null) | |
| 6360 | + { | |
| 6361 | + serializer.Serialize(writer, value.Double.Value); | |
| 6362 | + return; | |
| 6363 | + } | |
| 6364 | + if (value.DeserializationFeature != null) | |
| 6365 | + { | |
| 6366 | + serializer.Serialize(writer, value.DeserializationFeature); | |
| 6367 | + return; | |
| 6368 | + } | |
| 6369 | + throw new Exception("Cannot marshal type UnionDeserializationFeature"); | |
| 6370 | + } | |
| 6371 | + | |
| 6372 | + public static readonly UnionDeserializationFeatureConverter Singleton = new UnionDeserializationFeatureConverter(); | |
| 6373 | + } | |
| 6374 | + | |
| 6269 | 6375 | internal class UnionEncoderConverter : JsonConverter |
| 6270 | 6376 | { |
| 6271 | 6377 | public override bool CanConvert(Type t) => t == typeof(UnionEncoder) || t == typeof(UnionEncoder?); |
| @@ -7368,6 +7474,82 @@ namespace QuickType | ||
| 7368 | 7474 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7369 | 7475 | } |
| 7370 | 7476 | |
| 7477 | + internal class UnionObjectReaderConverter : JsonConverter | |
| 7478 | + { | |
| 7479 | + public override bool CanConvert(Type t) => t == typeof(UnionObjectReader) || t == typeof(UnionObjectReader?); | |
| 7480 | + | |
| 7481 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7482 | + { | |
| 7483 | + switch (reader.TokenType) | |
| 7484 | + { | |
| 7485 | + case JsonToken.Integer: | |
| 7486 | + case JsonToken.Float: | |
| 7487 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7488 | + return new UnionObjectReader { Double = doubleValue }; | |
| 7489 | + case JsonToken.StartObject: | |
| 7490 | + var objectValue = serializer.Deserialize<ObjectReader>(reader); | |
| 7491 | + return new UnionObjectReader { ObjectReader = objectValue }; | |
| 7492 | + } | |
| 7493 | + throw new Exception("Cannot unmarshal type UnionObjectReader"); | |
| 7494 | + } | |
| 7495 | + | |
| 7496 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7497 | + { | |
| 7498 | + var value = (UnionObjectReader)untypedValue; | |
| 7499 | + if (value.Double != null) | |
| 7500 | + { | |
| 7501 | + serializer.Serialize(writer, value.Double.Value); | |
| 7502 | + return; | |
| 7503 | + } | |
| 7504 | + if (value.ObjectReader != null) | |
| 7505 | + { | |
| 7506 | + serializer.Serialize(writer, value.ObjectReader); | |
| 7507 | + return; | |
| 7508 | + } | |
| 7509 | + throw new Exception("Cannot marshal type UnionObjectReader"); | |
| 7510 | + } | |
| 7511 | + | |
| 7512 | + public static readonly UnionObjectReaderConverter Singleton = new UnionObjectReaderConverter(); | |
| 7513 | + } | |
| 7514 | + | |
| 7515 | + internal class UnionObjectWriterConverter : JsonConverter | |
| 7516 | + { | |
| 7517 | + public override bool CanConvert(Type t) => t == typeof(UnionObjectWriter) || t == typeof(UnionObjectWriter?); | |
| 7518 | + | |
| 7519 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7520 | + { | |
| 7521 | + switch (reader.TokenType) | |
| 7522 | + { | |
| 7523 | + case JsonToken.Integer: | |
| 7524 | + case JsonToken.Float: | |
| 7525 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7526 | + return new UnionObjectWriter { Double = doubleValue }; | |
| 7527 | + case JsonToken.StartObject: | |
| 7528 | + var objectValue = serializer.Deserialize<ObjectWriter>(reader); | |
| 7529 | + return new UnionObjectWriter { ObjectWriter = objectValue }; | |
| 7530 | + } | |
| 7531 | + throw new Exception("Cannot unmarshal type UnionObjectWriter"); | |
| 7532 | + } | |
| 7533 | + | |
| 7534 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7535 | + { | |
| 7536 | + var value = (UnionObjectWriter)untypedValue; | |
| 7537 | + if (value.Double != null) | |
| 7538 | + { | |
| 7539 | + serializer.Serialize(writer, value.Double.Value); | |
| 7540 | + return; | |
| 7541 | + } | |
| 7542 | + if (value.ObjectWriter != null) | |
| 7543 | + { | |
| 7544 | + serializer.Serialize(writer, value.ObjectWriter); | |
| 7545 | + return; | |
| 7546 | + } | |
| 7547 | + throw new Exception("Cannot marshal type UnionObjectWriter"); | |
| 7548 | + } | |
| 7549 | + | |
| 7550 | + public static readonly UnionObjectWriterConverter Singleton = new UnionObjectWriterConverter(); | |
| 7551 | + } | |
| 7552 | + | |
| 7371 | 7553 | internal class UnionProtocolConverter : JsonConverter |
| 7372 | 7554 | { |
| 7373 | 7555 | public override bool CanConvert(Type t) => t == typeof(UnionProtocol) || t == typeof(UnionProtocol?); |
| @@ -7558,6 +7740,44 @@ namespace QuickType | ||
| 7558 | 7740 | public static readonly UnionSendableConverter Singleton = new UnionSendableConverter(); |
| 7559 | 7741 | } |
| 7560 | 7742 | |
| 7743 | + internal class UnionSerializationFeatureConverter : JsonConverter | |
| 7744 | + { | |
| 7745 | + public override bool CanConvert(Type t) => t == typeof(UnionSerializationFeature) || t == typeof(UnionSerializationFeature?); | |
| 7746 | + | |
| 7747 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7748 | + { | |
| 7749 | + switch (reader.TokenType) | |
| 7750 | + { | |
| 7751 | + case JsonToken.Integer: | |
| 7752 | + case JsonToken.Float: | |
| 7753 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7754 | + return new UnionSerializationFeature { Double = doubleValue }; | |
| 7755 | + case JsonToken.StartObject: | |
| 7756 | + var objectValue = serializer.Deserialize<SerializationFeature>(reader); | |
| 7757 | + return new UnionSerializationFeature { SerializationFeature = objectValue }; | |
| 7758 | + } | |
| 7759 | + throw new Exception("Cannot unmarshal type UnionSerializationFeature"); | |
| 7760 | + } | |
| 7761 | + | |
| 7762 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7763 | + { | |
| 7764 | + var value = (UnionSerializationFeature)untypedValue; | |
| 7765 | + if (value.Double != null) | |
| 7766 | + { | |
| 7767 | + serializer.Serialize(writer, value.Double.Value); | |
| 7768 | + return; | |
| 7769 | + } | |
| 7770 | + if (value.SerializationFeature != null) | |
| 7771 | + { | |
| 7772 | + serializer.Serialize(writer, value.SerializationFeature); | |
| 7773 | + return; | |
| 7774 | + } | |
| 7775 | + throw new Exception("Cannot marshal type UnionSerializationFeature"); | |
| 7776 | + } | |
| 7777 | + | |
| 7778 | + public static readonly UnionSerializationFeatureConverter Singleton = new UnionSerializationFeatureConverter(); | |
| 7779 | + } | |
| 7780 | + | |
| 7561 | 7781 | internal class UnionSerializerProviderConverter : JsonConverter |
| 7562 | 7782 | { |
| 7563 | 7783 | public override bool CanConvert(Type t) => t == typeof(UnionSerializerProvider) || t == typeof(UnionSerializerProvider?); |
Mschema-dartdefault / TopLevel.dart+56 −0
| @@ -93,6 +93,7 @@ class TopLevel { | ||
| 93 | 93 | final dynamic del; |
| 94 | 94 | final dynamic delegate; |
| 95 | 95 | final dynamic delete; |
| 96 | + final dynamic deserializationFeature; | |
| 96 | 97 | final dynamic dict; |
| 97 | 98 | final dynamic dictionary; |
| 98 | 99 | final dynamic didSet; |
| @@ -219,6 +220,8 @@ class TopLevel { | ||
| 219 | 220 | final dynamic number; |
| 220 | 221 | final dynamic object; |
| 221 | 222 | final dynamic objectMapper; |
| 223 | + final dynamic objectReader; | |
| 224 | + final dynamic objectWriter; | |
| 222 | 225 | final dynamic of; |
| 223 | 226 | final dynamic oneway; |
| 224 | 227 | final dynamic open; |
| @@ -269,6 +272,7 @@ class TopLevel { | ||
| 269 | 272 | final dynamic self; |
| 270 | 273 | final dynamic topLevelSelf; |
| 271 | 274 | final dynamic sendable; |
| 275 | + final dynamic serializationFeature; | |
| 272 | 276 | final dynamic serialize; |
| 273 | 277 | final dynamic serializerProvider; |
| 274 | 278 | final dynamic topLevelSet; |
| @@ -428,6 +432,7 @@ class TopLevel { | ||
| 428 | 432 | this.del, |
| 429 | 433 | this.delegate, |
| 430 | 434 | this.delete, |
| 435 | + this.deserializationFeature, | |
| 431 | 436 | this.dict, |
| 432 | 437 | this.dictionary, |
| 433 | 438 | this.didSet, |
| @@ -554,6 +559,8 @@ class TopLevel { | ||
| 554 | 559 | this.number, |
| 555 | 560 | this.object, |
| 556 | 561 | this.objectMapper, |
| 562 | + this.objectReader, | |
| 563 | + this.objectWriter, | |
| 557 | 564 | this.of, |
| 558 | 565 | this.oneway, |
| 559 | 566 | this.open, |
| @@ -604,6 +611,7 @@ class TopLevel { | ||
| 604 | 611 | this.self, |
| 605 | 612 | this.topLevelSelf, |
| 606 | 613 | this.sendable, |
| 614 | + this.serializationFeature, | |
| 607 | 615 | this.serialize, |
| 608 | 616 | this.serializerProvider, |
| 609 | 617 | this.topLevelSet, |
| @@ -764,6 +772,7 @@ class TopLevel { | ||
| 764 | 772 | del: json["del"], |
| 765 | 773 | delegate: json["delegate"], |
| 766 | 774 | delete: json["delete"], |
| 775 | + deserializationFeature: json["DeserializationFeature"], | |
| 767 | 776 | dict: json["dict"], |
| 768 | 777 | dictionary: json["dictionary"], |
| 769 | 778 | didSet: json["didSet"], |
| @@ -890,6 +899,8 @@ class TopLevel { | ||
| 890 | 899 | number: json["number"], |
| 891 | 900 | object: json["object"], |
| 892 | 901 | objectMapper: json["ObjectMapper"], |
| 902 | + objectReader: json["ObjectReader"], | |
| 903 | + objectWriter: json["ObjectWriter"], | |
| 893 | 904 | of: json["of"], |
| 894 | 905 | oneway: json["oneway"], |
| 895 | 906 | open: json["open"], |
| @@ -940,6 +951,7 @@ class TopLevel { | ||
| 940 | 951 | self: json["Self"], |
| 941 | 952 | topLevelSelf: json["self"], |
| 942 | 953 | sendable: json["Sendable"], |
| 954 | + serializationFeature: json["SerializationFeature"], | |
| 943 | 955 | serialize: json["serialize"], |
| 944 | 956 | serializerProvider: json["SerializerProvider"], |
| 945 | 957 | topLevelSet: json["set"], |
| @@ -1100,6 +1112,7 @@ class TopLevel { | ||
| 1100 | 1112 | "del": del, |
| 1101 | 1113 | "delegate": delegate, |
| 1102 | 1114 | "delete": delete, |
| 1115 | + "DeserializationFeature": deserializationFeature, | |
| 1103 | 1116 | "dict": dict, |
| 1104 | 1117 | "dictionary": dictionary, |
| 1105 | 1118 | "didSet": didSet, |
| @@ -1226,6 +1239,8 @@ class TopLevel { | ||
| 1226 | 1239 | "number": number, |
| 1227 | 1240 | "object": object, |
| 1228 | 1241 | "ObjectMapper": objectMapper, |
| 1242 | + "ObjectReader": objectReader, | |
| 1243 | + "ObjectWriter": objectWriter, | |
| 1229 | 1244 | "of": of, |
| 1230 | 1245 | "oneway": oneway, |
| 1231 | 1246 | "open": open, |
| @@ -1276,6 +1291,7 @@ class TopLevel { | ||
| 1276 | 1291 | "Self": self, |
| 1277 | 1292 | "self": topLevelSelf, |
| 1278 | 1293 | "Sendable": sendable, |
| 1294 | + "SerializationFeature": serializationFeature, | |
| 1279 | 1295 | "serialize": serialize, |
| 1280 | 1296 | "SerializerProvider": serializerProvider, |
| 1281 | 1297 | "set": topLevelSet, |
| @@ -2002,6 +2018,16 @@ class Delete { | ||
| 2002 | 2018 | }; |
| 2003 | 2019 | } |
| 2004 | 2020 | |
| 2021 | +class DeserializationFeature { | |
| 2022 | + DeserializationFeature(); | |
| 2023 | + | |
| 2024 | + factory DeserializationFeature.fromJson(Map<String, dynamic> json) => DeserializationFeature( | |
| 2025 | + ); | |
| 2026 | + | |
| 2027 | + Map<String, dynamic> toJson() => { | |
| 2028 | + }; | |
| 2029 | +} | |
| 2030 | + | |
| 2005 | 2031 | class Dict { |
| 2006 | 2032 | Dict(); |
| 2007 | 2033 | |
| @@ -3012,6 +3038,26 @@ class ObjectMapper { | ||
| 3012 | 3038 | }; |
| 3013 | 3039 | } |
| 3014 | 3040 | |
| 3041 | +class ObjectReader { | |
| 3042 | + ObjectReader(); | |
| 3043 | + | |
| 3044 | + factory ObjectReader.fromJson(Map<String, dynamic> json) => ObjectReader( | |
| 3045 | + ); | |
| 3046 | + | |
| 3047 | + Map<String, dynamic> toJson() => { | |
| 3048 | + }; | |
| 3049 | +} | |
| 3050 | + | |
| 3051 | +class ObjectWriter { | |
| 3052 | + ObjectWriter(); | |
| 3053 | + | |
| 3054 | + factory ObjectWriter.fromJson(Map<String, dynamic> json) => ObjectWriter( | |
| 3055 | + ); | |
| 3056 | + | |
| 3057 | + Map<String, dynamic> toJson() => { | |
| 3058 | + }; | |
| 3059 | +} | |
| 3060 | + | |
| 3015 | 3061 | class Of { |
| 3016 | 3062 | Of(); |
| 3017 | 3063 | |
| @@ -3512,6 +3558,16 @@ class Sendable { | ||
| 3512 | 3558 | }; |
| 3513 | 3559 | } |
| 3514 | 3560 | |
| 3561 | +class SerializationFeature { | |
| 3562 | + SerializationFeature(); | |
| 3563 | + | |
| 3564 | + factory SerializationFeature.fromJson(Map<String, dynamic> json) => SerializationFeature( | |
| 3565 | + ); | |
| 3566 | + | |
| 3567 | + Map<String, dynamic> toJson() => { | |
| 3568 | + }; | |
| 3569 | +} | |
| 3570 | + | |
| 3515 | 3571 | class Serialize { |
| 3516 | 3572 | Serialize(); |
Mschema-elixirdefault / QuickType.ex+177 −1
| @@ -2209,6 +2209,35 @@ defmodule Delete do | ||
| 2209 | 2209 | end |
| 2210 | 2210 | end |
| 2211 | 2211 | |
| 2212 | +defmodule DeserializationFeature do | |
| 2213 | + defstruct [] | |
| 2214 | + | |
| 2215 | + @type t :: %__MODULE__{ | |
| 2216 | + } | |
| 2217 | + | |
| 2218 | + def from_map(m) when is_map(m) do | |
| 2219 | + %DeserializationFeature{ | |
| 2220 | + } | |
| 2221 | + end | |
| 2222 | + | |
| 2223 | + def from_json(json) do | |
| 2224 | + json | |
| 2225 | + |> Jason.decode!() | |
| 2226 | + |> from_map() | |
| 2227 | + end | |
| 2228 | + | |
| 2229 | + def to_map(_struct) do | |
| 2230 | + %{ | |
| 2231 | + } | |
| 2232 | + end | |
| 2233 | + | |
| 2234 | + def to_json(struct) do | |
| 2235 | + struct | |
| 2236 | + |> to_map() | |
| 2237 | + |> Jason.encode!() | |
| 2238 | + end | |
| 2239 | +end | |
| 2240 | + | |
| 2212 | 2241 | defmodule DictClass do |
| 2213 | 2242 | defstruct [] |
| 2214 | 2243 | |
| @@ -5631,6 +5660,64 @@ defmodule ObjectMapper do | ||
| 5631 | 5660 | end |
| 5632 | 5661 | end |
| 5633 | 5662 | |
| 5663 | +defmodule ObjectReader do | |
| 5664 | + defstruct [] | |
| 5665 | + | |
| 5666 | + @type t :: %__MODULE__{ | |
| 5667 | + } | |
| 5668 | + | |
| 5669 | + def from_map(m) when is_map(m) do | |
| 5670 | + %ObjectReader{ | |
| 5671 | + } | |
| 5672 | + end | |
| 5673 | + | |
| 5674 | + def from_json(json) do | |
| 5675 | + json | |
| 5676 | + |> Jason.decode!() | |
| 5677 | + |> from_map() | |
| 5678 | + end | |
| 5679 | + | |
| 5680 | + def to_map(_struct) do | |
| 5681 | + %{ | |
| 5682 | + } | |
| 5683 | + end | |
| 5684 | + | |
| 5685 | + def to_json(struct) do | |
| 5686 | + struct | |
| 5687 | + |> to_map() | |
| 5688 | + |> Jason.encode!() | |
| 5689 | + end | |
| 5690 | +end | |
| 5691 | + | |
| 5692 | +defmodule ObjectWriter do | |
| 5693 | + defstruct [] | |
| 5694 | + | |
| 5695 | + @type t :: %__MODULE__{ | |
| 5696 | + } | |
| 5697 | + | |
| 5698 | + def from_map(m) when is_map(m) do | |
| 5699 | + %ObjectWriter{ | |
| 5700 | + } | |
| 5701 | + end | |
| 5702 | + | |
| 5703 | + def from_json(json) do | |
| 5704 | + json | |
| 5705 | + |> Jason.decode!() | |
| 5706 | + |> from_map() | |
| 5707 | + end | |
| 5708 | + | |
| 5709 | + def to_map(_struct) do | |
| 5710 | + %{ | |
| 5711 | + } | |
| 5712 | + end | |
| 5713 | + | |
| 5714 | + def to_json(struct) do | |
| 5715 | + struct | |
| 5716 | + |> to_map() | |
| 5717 | + |> Jason.encode!() | |
| 5718 | + end | |
| 5719 | +end | |
| 5720 | + | |
| 5634 | 5721 | defmodule Of do |
| 5635 | 5722 | defstruct [] |
| 5636 | 5723 | |
| @@ -6994,6 +7081,35 @@ defmodule Sendable do | ||
| 6994 | 7081 | end |
| 6995 | 7082 | end |
| 6996 | 7083 | |
| 7084 | +defmodule SerializationFeature do | |
| 7085 | + defstruct [] | |
| 7086 | + | |
| 7087 | + @type t :: %__MODULE__{ | |
| 7088 | + } | |
| 7089 | + | |
| 7090 | + def from_map(m) when is_map(m) do | |
| 7091 | + %SerializationFeature{ | |
| 7092 | + } | |
| 7093 | + end | |
| 7094 | + | |
| 7095 | + def from_json(json) do | |
| 7096 | + json | |
| 7097 | + |> Jason.decode!() | |
| 7098 | + |> from_map() | |
| 7099 | + end | |
| 7100 | + | |
| 7101 | + def to_map(_struct) do | |
| 7102 | + %{ | |
| 7103 | + } | |
| 7104 | + end | |
| 7105 | + | |
| 7106 | + def to_json(struct) do | |
| 7107 | + struct | |
| 7108 | + |> to_map() | |
| 7109 | + |> Jason.encode!() | |
| 7110 | + end | |
| 7111 | +end | |
| 7112 | + | |
| 6997 | 7113 | defmodule Serialize do |
| 6998 | 7114 | defstruct [] |
| 6999 | 7115 | |
| @@ -9634,7 +9750,7 @@ defmodule Yield do | ||
| 9634 | 9750 | end |
| 9635 | 9751 | |
| 9636 | 9752 | defmodule TopLevel do |
| 9637 | - defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 9753 | + defstruct [:empty, :top_level_bool, :complex, :imaginery, :abstract, :alignas, :alignof, :top_level_and, :and_eq, :top_level_any, :any, :array, :as, :asm, :assert, :associatedtype, :associativity, :async, :atomic, :atomic_cancel, :atomic_commit, :atomic_noexcept, :auto, :await, :base, :bitand, :bitor, :bool, :bool_1, :boolean, :break, :bycopy, :byref, :byte, :calendar, :case, :top_level_catch, :chan, :char, :char16_t, :char32_t, :checked, :top_level_class, :class, :clone, :co_await, :co_return, :co_yield, :codable, :coding_key, :coding_keys, :compl, :concept, :console, :const, :const_cast, :constexpr, :constructor, :continue, :convenience, :convert, :converter, :culture_info, :date, :date_parse_handling, :date_formatter, :date_only, :date_only_converter, :date_time, :date_time_styles, :debugger, :decimal, :declare, :decltype, :decode_string, :decoder, :decoding_error, :top_level_def, :default, :defer, :deinit, :del, :delegate, :delete, :deserialization_feature, :dict, :dictionary, :did_set, :top_level_do, :double, :dummy, :dynamic, :dynamic_cast, :elif, :top_level_else, :encode_quick_type, :encoder, :enum, :enum_values, :equality_contract, :equatable, :event, :except, :exception, :explicit, :export, :exposing, :extends, :extension, :extern, :fallthrough, :false_1, :top_level_false, :fileprivate, :final, :finally, :fixed, :float, :for, :foreach, :format_exception, :friend, :from, :from_json, :func, :function, :get, :global, :go, :goto, :guard, :hashable, :hash_code, :hasher, :has_own_property, :id, :if, :imp, :implements, :implicit, :top_level_import, :top_level_in, :indirect, :infix, :init, :inline, :inout, :instanceof, :int, :interface, :internal, :is, :iso_date_time_offset_converter, :iterable, :jdec, :jenc, :jpipe, :json, :json_converter, :json_serializer, :json_token, :json_writer, :json_any, :json_coding_key, :json_decoder, :json_encoder, :json_exception, :json_generator, :json_node, :json_null, :json_parser, :json_reader, :json_token_type, :lambda, :lazy, :left, :let, :list, :locale, :lock, :long, :map, :map_entry, :metadata_property_handling, :module, :mutable, :mutating, :namespace, :native, :new, :newtonsoft, :top_level_nil, :no, :noexcept, :nonatomic, :top_level_none, :none, :nonlocal, :nonmutating, :no_such_method, :top_level_not, :not_eq, :ns_error, :ns_object, :ns_string, :null, :top_level_null, :nullptr, :number, :object, :object_mapper, :object_reader, :object_writer, :of, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :print, :printf, :print_members, :private, :protected, :protocol, :top_level_protocol, :public, :quicktype, :raise, :range, :readonly, :ref, :reg_exp, :register, :reinterpret_cast, :repeat, :require, :required, :requires, :restrict, :retain, :rethrows, :return, :right, :runtime_type, :s, :sbyte, :sealed, :sel, :select, :self, :top_level_self, :sendable, :serialization_feature, :serialize, :serializer_provider, :set, :short, :signed, :simple_module, :sizeof, :stackalloc, :standards, :static, :static_assert, :static_cast, :std_deserializer, :std_serializer, :strictfp, :string, :struct, :subscript, :super, :switch, :symbol, :synchronized, :system, :template, :then, :this, :thread_local, :throw, :throws, :time_only, :time_only_converter, :time_zone, :to_json, :top_level, :to_string, :transient, :top_level_true, :true_1, :try, :type, :top_level_type, :typealias, :typedef, :typeid, :typename, :typeof, :uint, :ulong, :unchecked, :undefined, :union, :unowned, :unsafe, :unsigned, :ushort, :using, :utf8_json_reader, :utf8_json_writer, :uuid, :var, :virtual, :void, :volatile, :wchar_t, :weak, :where, :while, :will_set, :with, :xor, :xor_eq, :yes, :yield] | |
| 9638 | 9754 | |
| 9639 | 9755 | @type t :: %__MODULE__{ |
| 9640 | 9756 | empty: Empty.t() | float() | nil, |
| @@ -9721,6 +9837,7 @@ defmodule TopLevel do | ||
| 9721 | 9837 | del: Del.t() | float() | nil, |
| 9722 | 9838 | delegate: Delegate.t() | float() | nil, |
| 9723 | 9839 | delete: Delete.t() | float() | nil, |
| 9840 | + deserialization_feature: DeserializationFeature.t() | float() | nil, | |
| 9724 | 9841 | dict: DictClass.t() | float() | nil, |
| 9725 | 9842 | dictionary: Dictionary.t() | float() | nil, |
| 9726 | 9843 | did_set: DidSet.t() | float() | nil, |
| @@ -9847,6 +9964,8 @@ defmodule TopLevel do | ||
| 9847 | 9964 | number: Number.t() | float() | nil, |
| 9848 | 9965 | object: Object.t() | float() | nil, |
| 9849 | 9966 | object_mapper: ObjectMapper.t() | float() | nil, |
| 9967 | + object_reader: ObjectReader.t() | float() | nil, | |
| 9968 | + object_writer: ObjectWriter.t() | float() | nil, | |
| 9850 | 9969 | of: Of.t() | float() | nil, |
| 9851 | 9970 | oneway: Oneway.t() | float() | nil, |
| 9852 | 9971 | open: Open.t() | float() | nil, |
| @@ -9897,6 +10016,7 @@ defmodule TopLevel do | ||
| 9897 | 10016 | self: Self.t() | float() | nil, |
| 9898 | 10017 | top_level_self: SelfClass.t() | float() | nil, |
| 9899 | 10018 | sendable: Sendable.t() | float() | nil, |
| 10019 | + serialization_feature: SerializationFeature.t() | float() | nil, | |
| 9900 | 10020 | serialize: Serialize.t() | float() | nil, |
| 9901 | 10021 | serializer_provider: SerializerProvider.t() | float() | nil, |
| 9902 | 10022 | set: SetClass.t() | float() | nil, |
| @@ -10980,6 +11100,18 @@ defmodule TopLevel do | ||
| 10980 | 11100 | def encode_delete(value) when is_nil(value), do: value |
| 10981 | 11101 | def encode_delete(_), do: {:error, "Unexpected type when encoding TopLevel.delete"} |
| 10982 | 11102 | |
| 11103 | + def decode_deserialization_feature(%{} = value), do: DeserializationFeature.from_map(value) | |
| 11104 | + def decode_deserialization_feature(value) when is_float(value), do: value | |
| 11105 | + def decode_deserialization_feature(value) when is_integer(value), do: value | |
| 11106 | + def decode_deserialization_feature(value) when is_nil(value), do: value | |
| 11107 | + def decode_deserialization_feature(_), do: {:error, "Unexpected type when decoding TopLevel.deserialization_feature"} | |
| 11108 | + | |
| 11109 | + def encode_deserialization_feature(%DeserializationFeature{} = value), do: DeserializationFeature.to_map(value) | |
| 11110 | + def encode_deserialization_feature(value) when is_float(value), do: value | |
| 11111 | + def encode_deserialization_feature(value) when is_integer(value), do: value | |
| 11112 | + def encode_deserialization_feature(value) when is_nil(value), do: value | |
| 11113 | + def encode_deserialization_feature(_), do: {:error, "Unexpected type when encoding TopLevel.deserialization_feature"} | |
| 11114 | + | |
| 10983 | 11115 | def decode_dict(%{} = value), do: DictClass.from_map(value) |
| 10984 | 11116 | def decode_dict(value) when is_float(value), do: value |
| 10985 | 11117 | def decode_dict(value) when is_integer(value), do: value |
| @@ -12488,6 +12620,30 @@ defmodule TopLevel do | ||
| 12488 | 12620 | def encode_object_mapper(value) when is_nil(value), do: value |
| 12489 | 12621 | def encode_object_mapper(_), do: {:error, "Unexpected type when encoding TopLevel.object_mapper"} |
| 12490 | 12622 | |
| 12623 | + def decode_object_reader(%{} = value), do: ObjectReader.from_map(value) | |
| 12624 | + def decode_object_reader(value) when is_float(value), do: value | |
| 12625 | + def decode_object_reader(value) when is_integer(value), do: value | |
| 12626 | + def decode_object_reader(value) when is_nil(value), do: value | |
| 12627 | + def decode_object_reader(_), do: {:error, "Unexpected type when decoding TopLevel.object_reader"} | |
| 12628 | + | |
| 12629 | + def encode_object_reader(%ObjectReader{} = value), do: ObjectReader.to_map(value) | |
| 12630 | + def encode_object_reader(value) when is_float(value), do: value | |
| 12631 | + def encode_object_reader(value) when is_integer(value), do: value | |
| 12632 | + def encode_object_reader(value) when is_nil(value), do: value | |
| 12633 | + def encode_object_reader(_), do: {:error, "Unexpected type when encoding TopLevel.object_reader"} | |
| 12634 | + | |
| 12635 | + def decode_object_writer(%{} = value), do: ObjectWriter.from_map(value) | |
| 12636 | + def decode_object_writer(value) when is_float(value), do: value | |
| 12637 | + def decode_object_writer(value) when is_integer(value), do: value | |
| 12638 | + def decode_object_writer(value) when is_nil(value), do: value | |
| 12639 | + def decode_object_writer(_), do: {:error, "Unexpected type when decoding TopLevel.object_writer"} | |
| 12640 | + | |
| 12641 | + def encode_object_writer(%ObjectWriter{} = value), do: ObjectWriter.to_map(value) | |
| 12642 | + def encode_object_writer(value) when is_float(value), do: value | |
| 12643 | + def encode_object_writer(value) when is_integer(value), do: value | |
| 12644 | + def encode_object_writer(value) when is_nil(value), do: value | |
| 12645 | + def encode_object_writer(_), do: {:error, "Unexpected type when encoding TopLevel.object_writer"} | |
| 12646 | + | |
| 12491 | 12647 | def decode_of(%{} = value), do: Of.from_map(value) |
| 12492 | 12648 | def decode_of(value) when is_float(value), do: value |
| 12493 | 12649 | def decode_of(value) when is_integer(value), do: value |
| @@ -13088,6 +13244,18 @@ defmodule TopLevel do | ||
| 13088 | 13244 | def encode_sendable(value) when is_nil(value), do: value |
| 13089 | 13245 | def encode_sendable(_), do: {:error, "Unexpected type when encoding TopLevel.sendable"} |
| 13090 | 13246 | |
| 13247 | + def decode_serialization_feature(%{} = value), do: SerializationFeature.from_map(value) | |
| 13248 | + def decode_serialization_feature(value) when is_float(value), do: value | |
| 13249 | + def decode_serialization_feature(value) when is_integer(value), do: value | |
| 13250 | + def decode_serialization_feature(value) when is_nil(value), do: value | |
| 13251 | + def decode_serialization_feature(_), do: {:error, "Unexpected type when decoding TopLevel.serialization_feature"} | |
| 13252 | + | |
| 13253 | + def encode_serialization_feature(%SerializationFeature{} = value), do: SerializationFeature.to_map(value) | |
| 13254 | + def encode_serialization_feature(value) when is_float(value), do: value | |
| 13255 | + def encode_serialization_feature(value) when is_integer(value), do: value | |
| 13256 | + def encode_serialization_feature(value) when is_nil(value), do: value | |
| 13257 | + def encode_serialization_feature(_), do: {:error, "Unexpected type when encoding TopLevel.serialization_feature"} | |
| 13258 | + | |
| 13091 | 13259 | def decode_serialize(%{} = value), do: Serialize.from_map(value) |
| 13092 | 13260 | def decode_serialize(value) when is_float(value), do: value |
| 13093 | 13261 | def decode_serialize(value) when is_integer(value), do: value |
| @@ -14050,6 +14218,7 @@ defmodule TopLevel do | ||
| 14050 | 14218 | del: decode_del(m["del"]), |
| 14051 | 14219 | delegate: decode_delegate(m["delegate"]), |
| 14052 | 14220 | delete: decode_delete(m["delete"]), |
| 14221 | + deserialization_feature: decode_deserialization_feature(m["DeserializationFeature"]), | |
| 14053 | 14222 | dict: decode_dict(m["dict"]), |
| 14054 | 14223 | dictionary: decode_dictionary(m["dictionary"]), |
| 14055 | 14224 | did_set: decode_did_set(m["didSet"]), |
| @@ -14176,6 +14345,8 @@ defmodule TopLevel do | ||
| 14176 | 14345 | number: decode_number(m["number"]), |
| 14177 | 14346 | object: decode_object(m["object"]), |
| 14178 | 14347 | object_mapper: decode_object_mapper(m["ObjectMapper"]), |
| 14348 | + object_reader: decode_object_reader(m["ObjectReader"]), | |
| 14349 | + object_writer: decode_object_writer(m["ObjectWriter"]), | |
| 14179 | 14350 | of: decode_of(m["of"]), |
| 14180 | 14351 | oneway: decode_oneway(m["oneway"]), |
| 14181 | 14352 | open: decode_open(m["open"]), |
| @@ -14226,6 +14397,7 @@ defmodule TopLevel do | ||
| 14226 | 14397 | self: decode_self(m["Self"]), |
| 14227 | 14398 | top_level_self: decode_top_level_self(m["self"]), |
| 14228 | 14399 | sendable: decode_sendable(m["Sendable"]), |
| 14400 | + serialization_feature: decode_serialization_feature(m["SerializationFeature"]), | |
| 14229 | 14401 | serialize: decode_serialize(m["serialize"]), |
| 14230 | 14402 | serializer_provider: decode_serializer_provider(m["SerializerProvider"]), |
| 14231 | 14403 | set: decode_set(m["set"]), |
| @@ -14394,6 +14566,7 @@ defmodule TopLevel do | ||
| 14394 | 14566 | "del" => encode_del(struct.del), |
| 14395 | 14567 | "delegate" => encode_delegate(struct.delegate), |
| 14396 | 14568 | "delete" => encode_delete(struct.delete), |
| 14569 | + "DeserializationFeature" => encode_deserialization_feature(struct.deserialization_feature), | |
| 14397 | 14570 | "dict" => encode_dict(struct.dict), |
| 14398 | 14571 | "dictionary" => encode_dictionary(struct.dictionary), |
| 14399 | 14572 | "didSet" => encode_did_set(struct.did_set), |
| @@ -14520,6 +14693,8 @@ defmodule TopLevel do | ||
| 14520 | 14693 | "number" => encode_number(struct.number), |
| 14521 | 14694 | "object" => encode_object(struct.object), |
| 14522 | 14695 | "ObjectMapper" => encode_object_mapper(struct.object_mapper), |
| 14696 | + "ObjectReader" => encode_object_reader(struct.object_reader), | |
| 14697 | + "ObjectWriter" => encode_object_writer(struct.object_writer), | |
| 14523 | 14698 | "of" => encode_of(struct.of), |
| 14524 | 14699 | "oneway" => encode_oneway(struct.oneway), |
| 14525 | 14700 | "open" => encode_open(struct.open), |
| @@ -14570,6 +14745,7 @@ defmodule TopLevel do | ||
| 14570 | 14745 | "Self" => encode_self(struct.self), |
| 14571 | 14746 | "self" => encode_top_level_self(struct.top_level_self), |
| 14572 | 14747 | "Sendable" => encode_sendable(struct.sendable), |
| 14748 | + "SerializationFeature" => encode_serialization_feature(struct.serialization_feature), | |
| 14573 | 14749 | "serialize" => encode_serialize(struct.serialize), |
| 14574 | 14750 | "SerializerProvider" => encode_serializer_provider(struct.serializer_provider), |
| 14575 | 14751 | "set" => encode_set(struct.set), |
Mschema-elmdefault / QuickType.elm+140 −0
| @@ -89,6 +89,7 @@ module QuickType exposing | ||
| 89 | 89 | , Del |
| 90 | 90 | , Delegate |
| 91 | 91 | , Delete |
| 92 | + , DeserializationFeature | |
| 92 | 93 | , DictClass |
| 93 | 94 | , Dictionary |
| 94 | 95 | , DidSet |
| @@ -203,6 +204,8 @@ module QuickType exposing | ||
| 203 | 204 | , Number |
| 204 | 205 | , Object |
| 205 | 206 | , ObjectMapper |
| 207 | + , ObjectReader | |
| 208 | + , ObjectWriter | |
| 206 | 209 | , Oneway |
| 207 | 210 | , Open |
| 208 | 211 | , Operator |
| @@ -280,6 +283,7 @@ module QuickType exposing | ||
| 280 | 283 | , Select |
| 281 | 284 | , Self |
| 282 | 285 | , Sendable |
| 286 | + , SerializationFeature | |
| 283 | 287 | , Serialize |
| 284 | 288 | , SerializerProvider |
| 285 | 289 | , Set |
| @@ -421,6 +425,7 @@ module QuickType exposing | ||
| 421 | 425 | , UnionDel(..) |
| 422 | 426 | , UnionDelegate(..) |
| 423 | 427 | , UnionDelete(..) |
| 428 | + , UnionDeserializationFeature(..) | |
| 424 | 429 | , UnionDict(..) |
| 425 | 430 | , UnionDictionary(..) |
| 426 | 431 | , UnionDidSet(..) |
| @@ -535,6 +540,8 @@ module QuickType exposing | ||
| 535 | 540 | , UnionNumber(..) |
| 536 | 541 | , UnionObject(..) |
| 537 | 542 | , UnionObjectMapper(..) |
| 543 | + , UnionObjectReader(..) | |
| 544 | + , UnionObjectWriter(..) | |
| 538 | 545 | , UnionOneway(..) |
| 539 | 546 | , UnionOpen(..) |
| 540 | 547 | , UnionOperator(..) |
| @@ -612,6 +619,7 @@ module QuickType exposing | ||
| 612 | 619 | , UnionSelect(..) |
| 613 | 620 | , UnionSelf(..) |
| 614 | 621 | , UnionSendable(..) |
| 622 | + , UnionSerializationFeature(..) | |
| 615 | 623 | , UnionSerialize(..) |
| 616 | 624 | , UnionSerializerProvider(..) |
| 617 | 625 | , UnionSet(..) |
| @@ -771,6 +779,7 @@ type alias QuickType = | ||
| 771 | 779 | , del : Maybe UnionDel |
| 772 | 780 | , delegate : Maybe UnionDelegate |
| 773 | 781 | , delete : Maybe UnionDelete |
| 782 | + , deserializationFeature : Maybe UnionDeserializationFeature | |
| 774 | 783 | , dict : Maybe UnionDict |
| 775 | 784 | , dictionary : Maybe UnionDictionary |
| 776 | 785 | , didSet : Maybe UnionDidSet |
| @@ -897,6 +906,8 @@ type alias QuickType = | ||
| 897 | 906 | , number : Maybe UnionNumber |
| 898 | 907 | , object : Maybe UnionObject |
| 899 | 908 | , objectMapper : Maybe UnionObjectMapper |
| 909 | + , objectReader : Maybe UnionObjectReader | |
| 910 | + , objectWriter : Maybe UnionObjectWriter | |
| 900 | 911 | , quickTypeOf : Maybe UnionOf |
| 901 | 912 | , oneway : Maybe UnionOneway |
| 902 | 913 | , open : Maybe UnionOpen |
| @@ -947,6 +958,7 @@ type alias QuickType = | ||
| 947 | 958 | , self : Maybe UnionSelf |
| 948 | 959 | , quickTypeSelf : Maybe UnionSelfUnion |
| 949 | 960 | , sendable : Maybe UnionSendable |
| 961 | + , serializationFeature : Maybe UnionSerializationFeature | |
| 950 | 962 | , serialize : Maybe UnionSerialize |
| 951 | 963 | , serializerProvider : Maybe UnionSerializerProvider |
| 952 | 964 | , set : Maybe UnionSet |
| @@ -1614,6 +1626,14 @@ type alias Delete = | ||
| 1614 | 1626 | { |
| 1615 | 1627 | } |
| 1616 | 1628 | |
| 1629 | +type UnionDeserializationFeature | |
| 1630 | + = DeserializationFeatureInUnionDeserializationFeature DeserializationFeature | |
| 1631 | + | DoubleInUnionDeserializationFeature Float | |
| 1632 | + | |
| 1633 | +type alias DeserializationFeature = | |
| 1634 | + { | |
| 1635 | + } | |
| 1636 | + | |
| 1617 | 1637 | type UnionDict |
| 1618 | 1638 | = DictClassInUnionDict DictClass |
| 1619 | 1639 | | DoubleInUnionDict Float |
| @@ -2526,6 +2546,22 @@ type alias ObjectMapper = | ||
| 2526 | 2546 | { |
| 2527 | 2547 | } |
| 2528 | 2548 | |
| 2549 | +type UnionObjectReader | |
| 2550 | + = DoubleInUnionObjectReader Float | |
| 2551 | + | ObjectReaderInUnionObjectReader ObjectReader | |
| 2552 | + | |
| 2553 | +type alias ObjectReader = | |
| 2554 | + { | |
| 2555 | + } | |
| 2556 | + | |
| 2557 | +type UnionObjectWriter | |
| 2558 | + = DoubleInUnionObjectWriter Float | |
| 2559 | + | ObjectWriterInUnionObjectWriter ObjectWriter | |
| 2560 | + | |
| 2561 | +type alias ObjectWriter = | |
| 2562 | + { | |
| 2563 | + } | |
| 2564 | + | |
| 2529 | 2565 | type UnionOneway |
| 2530 | 2566 | = DoubleInUnionOneway Float |
| 2531 | 2567 | | OnewayInUnionOneway Oneway |
| @@ -3142,6 +3178,14 @@ type alias Sendable = | ||
| 3142 | 3178 | { |
| 3143 | 3179 | } |
| 3144 | 3180 | |
| 3181 | +type UnionSerializationFeature | |
| 3182 | + = DoubleInUnionSerializationFeature Float | |
| 3183 | + | SerializationFeatureInUnionSerializationFeature SerializationFeature | |
| 3184 | + | |
| 3185 | +type alias SerializationFeature = | |
| 3186 | + { | |
| 3187 | + } | |
| 3188 | + | |
| 3145 | 3189 | type UnionSerialize |
| 3146 | 3190 | = DoubleInUnionSerialize Float |
| 3147 | 3191 | | SerializeInUnionSerialize Serialize |
| @@ -3776,6 +3820,7 @@ quickType = | ||
| 3776 | 3820 | |> Jpipe.custom (optionalField "del" (Jdec.map Just unionDel) Nothing) |
| 3777 | 3821 | |> Jpipe.custom (optionalField "delegate" (Jdec.map Just unionDelegate) Nothing) |
| 3778 | 3822 | |> Jpipe.custom (optionalField "delete" (Jdec.map Just unionDelete) Nothing) |
| 3823 | + |> Jpipe.custom (optionalField "DeserializationFeature" (Jdec.map Just unionDeserializationFeature) Nothing) | |
| 3779 | 3824 | |> Jpipe.custom (optionalField "dict" (Jdec.map Just unionDict) Nothing) |
| 3780 | 3825 | |> Jpipe.custom (optionalField "dictionary" (Jdec.map Just unionDictionary) Nothing) |
| 3781 | 3826 | |> Jpipe.custom (optionalField "didSet" (Jdec.map Just unionDidSet) Nothing) |
| @@ -3902,6 +3947,8 @@ quickType = | ||
| 3902 | 3947 | |> Jpipe.custom (optionalField "number" (Jdec.map Just unionNumber) Nothing) |
| 3903 | 3948 | |> Jpipe.custom (optionalField "object" (Jdec.map Just unionObject) Nothing) |
| 3904 | 3949 | |> Jpipe.custom (optionalField "ObjectMapper" (Jdec.map Just unionObjectMapper) Nothing) |
| 3950 | + |> Jpipe.custom (optionalField "ObjectReader" (Jdec.map Just unionObjectReader) Nothing) | |
| 3951 | + |> Jpipe.custom (optionalField "ObjectWriter" (Jdec.map Just unionObjectWriter) Nothing) | |
| 3905 | 3952 | |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing) |
| 3906 | 3953 | |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing) |
| 3907 | 3954 | |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing) |
| @@ -3952,6 +3999,7 @@ quickType = | ||
| 3952 | 3999 | |> Jpipe.custom (optionalField "Self" (Jdec.map Just unionSelf) Nothing) |
| 3953 | 4000 | |> Jpipe.custom (optionalField "self" (Jdec.map Just unionSelfUnion) Nothing) |
| 3954 | 4001 | |> Jpipe.custom (optionalField "Sendable" (Jdec.map Just unionSendable) Nothing) |
| 4002 | + |> Jpipe.custom (optionalField "SerializationFeature" (Jdec.map Just unionSerializationFeature) Nothing) | |
| 3955 | 4003 | |> Jpipe.custom (optionalField "serialize" (Jdec.map Just unionSerialize) Nothing) |
| 3956 | 4004 | |> Jpipe.custom (optionalField "SerializerProvider" (Jdec.map Just unionSerializerProvider) Nothing) |
| 3957 | 4005 | |> Jpipe.custom (optionalField "set" (Jdec.map Just unionSet) Nothing) |
| @@ -4113,6 +4161,7 @@ encodeQuickType x = | ||
| 4113 | 4161 | , ("del", makeNullableEncoder encodeUnionDel x.del) |
| 4114 | 4162 | , ("delegate", makeNullableEncoder encodeUnionDelegate x.delegate) |
| 4115 | 4163 | , ("delete", makeNullableEncoder encodeUnionDelete x.delete) |
| 4164 | + , ("DeserializationFeature", makeNullableEncoder encodeUnionDeserializationFeature x.deserializationFeature) | |
| 4116 | 4165 | , ("dict", makeNullableEncoder encodeUnionDict x.dict) |
| 4117 | 4166 | , ("dictionary", makeNullableEncoder encodeUnionDictionary x.dictionary) |
| 4118 | 4167 | , ("didSet", makeNullableEncoder encodeUnionDidSet x.didSet) |
| @@ -4239,6 +4288,8 @@ encodeQuickType x = | ||
| 4239 | 4288 | , ("number", makeNullableEncoder encodeUnionNumber x.number) |
| 4240 | 4289 | , ("object", makeNullableEncoder encodeUnionObject x.object) |
| 4241 | 4290 | , ("ObjectMapper", makeNullableEncoder encodeUnionObjectMapper x.objectMapper) |
| 4291 | + , ("ObjectReader", makeNullableEncoder encodeUnionObjectReader x.objectReader) | |
| 4292 | + , ("ObjectWriter", makeNullableEncoder encodeUnionObjectWriter x.objectWriter) | |
| 4242 | 4293 | , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf) |
| 4243 | 4294 | , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway) |
| 4244 | 4295 | , ("open", makeNullableEncoder encodeUnionOpen x.open) |
| @@ -4289,6 +4340,7 @@ encodeQuickType x = | ||
| 4289 | 4340 | , ("Self", makeNullableEncoder encodeUnionSelf x.self) |
| 4290 | 4341 | , ("self", makeNullableEncoder encodeUnionSelfUnion x.quickTypeSelf) |
| 4291 | 4342 | , ("Sendable", makeNullableEncoder encodeUnionSendable x.sendable) |
| 4343 | + , ("SerializationFeature", makeNullableEncoder encodeUnionSerializationFeature x.serializationFeature) | |
| 4292 | 4344 | , ("serialize", makeNullableEncoder encodeUnionSerialize x.serialize) |
| 4293 | 4345 | , ("SerializerProvider", makeNullableEncoder encodeUnionSerializerProvider x.serializerProvider) |
| 4294 | 4346 | , ("set", makeNullableEncoder encodeUnionSet x.set) |
| @@ -5992,6 +6044,28 @@ encodeDelete x = | ||
| 5992 | 6044 | [ |
| 5993 | 6045 | ] |
| 5994 | 6046 | |
| 6047 | +unionDeserializationFeature : Jdec.Decoder UnionDeserializationFeature | |
| 6048 | +unionDeserializationFeature = | |
| 6049 | + Jdec.oneOf | |
| 6050 | + [ Jdec.map DoubleInUnionDeserializationFeature Jdec.float | |
| 6051 | + , Jdec.map DeserializationFeatureInUnionDeserializationFeature deserializationFeature | |
| 6052 | + ] | |
| 6053 | + | |
| 6054 | +encodeUnionDeserializationFeature : UnionDeserializationFeature -> Jenc.Value | |
| 6055 | +encodeUnionDeserializationFeature x = case x of | |
| 6056 | + DoubleInUnionDeserializationFeature y -> Jenc.float y | |
| 6057 | + DeserializationFeatureInUnionDeserializationFeature y -> encodeDeserializationFeature y | |
| 6058 | + | |
| 6059 | +deserializationFeature : Jdec.Decoder DeserializationFeature | |
| 6060 | +deserializationFeature = | |
| 6061 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> DeserializationFeature) | |
| 6062 | + | |
| 6063 | +encodeDeserializationFeature : DeserializationFeature -> Jenc.Value | |
| 6064 | +encodeDeserializationFeature x = | |
| 6065 | + Jenc.object | |
| 6066 | + [ | |
| 6067 | + ] | |
| 6068 | + | |
| 5995 | 6069 | unionDict : Jdec.Decoder UnionDict |
| 5996 | 6070 | unionDict = |
| 5997 | 6071 | Jdec.oneOf |
| @@ -8500,6 +8574,50 @@ encodeObjectMapper x = | ||
| 8500 | 8574 | [ |
| 8501 | 8575 | ] |
| 8502 | 8576 | |
| 8577 | +unionObjectReader : Jdec.Decoder UnionObjectReader | |
| 8578 | +unionObjectReader = | |
| 8579 | + Jdec.oneOf | |
| 8580 | + [ Jdec.map DoubleInUnionObjectReader Jdec.float | |
| 8581 | + , Jdec.map ObjectReaderInUnionObjectReader objectReader | |
| 8582 | + ] | |
| 8583 | + | |
| 8584 | +encodeUnionObjectReader : UnionObjectReader -> Jenc.Value | |
| 8585 | +encodeUnionObjectReader x = case x of | |
| 8586 | + DoubleInUnionObjectReader y -> Jenc.float y | |
| 8587 | + ObjectReaderInUnionObjectReader y -> encodeObjectReader y | |
| 8588 | + | |
| 8589 | +objectReader : Jdec.Decoder ObjectReader | |
| 8590 | +objectReader = | |
| 8591 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> ObjectReader) | |
| 8592 | + | |
| 8593 | +encodeObjectReader : ObjectReader -> Jenc.Value | |
| 8594 | +encodeObjectReader x = | |
| 8595 | + Jenc.object | |
| 8596 | + [ | |
| 8597 | + ] | |
| 8598 | + | |
| 8599 | +unionObjectWriter : Jdec.Decoder UnionObjectWriter | |
| 8600 | +unionObjectWriter = | |
| 8601 | + Jdec.oneOf | |
| 8602 | + [ Jdec.map DoubleInUnionObjectWriter Jdec.float | |
| 8603 | + , Jdec.map ObjectWriterInUnionObjectWriter objectWriter | |
| 8604 | + ] | |
| 8605 | + | |
| 8606 | +encodeUnionObjectWriter : UnionObjectWriter -> Jenc.Value | |
| 8607 | +encodeUnionObjectWriter x = case x of | |
| 8608 | + DoubleInUnionObjectWriter y -> Jenc.float y | |
| 8609 | + ObjectWriterInUnionObjectWriter y -> encodeObjectWriter y | |
| 8610 | + | |
| 8611 | +objectWriter : Jdec.Decoder ObjectWriter | |
| 8612 | +objectWriter = | |
| 8613 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> ObjectWriter) | |
| 8614 | + | |
| 8615 | +encodeObjectWriter : ObjectWriter -> Jenc.Value | |
| 8616 | +encodeObjectWriter x = | |
| 8617 | + Jenc.object | |
| 8618 | + [ | |
| 8619 | + ] | |
| 8620 | + | |
| 8503 | 8621 | unionOneway : Jdec.Decoder UnionOneway |
| 8504 | 8622 | unionOneway = |
| 8505 | 8623 | Jdec.oneOf |
| @@ -10194,6 +10312,28 @@ encodeSendable x = | ||
| 10194 | 10312 | [ |
| 10195 | 10313 | ] |
| 10196 | 10314 | |
| 10315 | +unionSerializationFeature : Jdec.Decoder UnionSerializationFeature | |
| 10316 | +unionSerializationFeature = | |
| 10317 | + Jdec.oneOf | |
| 10318 | + [ Jdec.map DoubleInUnionSerializationFeature Jdec.float | |
| 10319 | + , Jdec.map SerializationFeatureInUnionSerializationFeature serializationFeature | |
| 10320 | + ] | |
| 10321 | + | |
| 10322 | +encodeUnionSerializationFeature : UnionSerializationFeature -> Jenc.Value | |
| 10323 | +encodeUnionSerializationFeature x = case x of | |
| 10324 | + DoubleInUnionSerializationFeature y -> Jenc.float y | |
| 10325 | + SerializationFeatureInUnionSerializationFeature y -> encodeSerializationFeature y | |
| 10326 | + | |
| 10327 | +serializationFeature : Jdec.Decoder SerializationFeature | |
| 10328 | +serializationFeature = | |
| 10329 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> SerializationFeature) | |
| 10330 | + | |
| 10331 | +encodeSerializationFeature : SerializationFeature -> Jenc.Value | |
| 10332 | +encodeSerializationFeature x = | |
| 10333 | + Jenc.object | |
| 10334 | + [ | |
| 10335 | + ] | |
| 10336 | + | |
| 10197 | 10337 | unionSerialize : Jdec.Decoder UnionSerialize |
| 10198 | 10338 | unionSerialize = |
| 10199 | 10339 | Jdec.oneOf |
Mschema-flowdefault / TopLevel.js+36 −0
| @@ -94,6 +94,7 @@ export type TopLevel = { | ||
| 94 | 94 | del?: UnionDel; |
| 95 | 95 | delegate?: UnionDelegate; |
| 96 | 96 | delete?: UnionDelete; |
| 97 | + DeserializationFeature?: UnionDeserializationFeature; | |
| 97 | 98 | dict?: UnionDict; |
| 98 | 99 | dictionary?: UnionDictionary; |
| 99 | 100 | didSet?: UnionDidSet; |
| @@ -220,6 +221,8 @@ export type TopLevel = { | ||
| 220 | 221 | number?: UnionNumber; |
| 221 | 222 | object?: UnionObject; |
| 222 | 223 | ObjectMapper?: UnionObjectMapper; |
| 224 | + ObjectReader?: UnionObjectReader; | |
| 225 | + ObjectWriter?: UnionObjectWriter; | |
| 223 | 226 | of?: UnionOf; |
| 224 | 227 | oneway?: UnionOneway; |
| 225 | 228 | open?: UnionOpen; |
| @@ -270,6 +273,7 @@ export type TopLevel = { | ||
| 270 | 273 | Self?: UnionSelf; |
| 271 | 274 | self?: UnionSelfUnion; |
| 272 | 275 | Sendable?: UnionSendable; |
| 276 | + SerializationFeature?: UnionSerializationFeature; | |
| 273 | 277 | serialize?: UnionSerialize; |
| 274 | 278 | SerializerProvider?: UnionSerializerProvider; |
| 275 | 279 | set?: UnionSet; |
| @@ -421,6 +425,11 @@ export type UnionDecodingError = DecodingError | number; | ||
| 421 | 425 | export type DecodingError = { |
| 422 | 426 | }; |
| 423 | 427 | |
| 428 | +export type UnionDeserializationFeature = DeserializationFeature | number; | |
| 429 | + | |
| 430 | +export type DeserializationFeature = { | |
| 431 | +}; | |
| 432 | + | |
| 424 | 433 | export type UnionEncoder = Encoder | number; |
| 425 | 434 | |
| 426 | 435 | export type Encoder = { |
| @@ -566,6 +575,16 @@ export type UnionObjectMapper = ObjectMapper | number; | ||
| 566 | 575 | export type ObjectMapper = { |
| 567 | 576 | }; |
| 568 | 577 | |
| 578 | +export type UnionObjectReader = ObjectReader | number; | |
| 579 | + | |
| 580 | +export type ObjectReader = { | |
| 581 | +}; | |
| 582 | + | |
| 583 | +export type UnionObjectWriter = ObjectWriter | number; | |
| 584 | + | |
| 585 | +export type ObjectWriter = { | |
| 586 | +}; | |
| 587 | + | |
| 569 | 588 | export type UnionProtocol = Protocol | number; |
| 570 | 589 | |
| 571 | 590 | export type Protocol = { |
| @@ -591,6 +610,11 @@ export type UnionSendable = Sendable | number; | ||
| 591 | 610 | export type Sendable = { |
| 592 | 611 | }; |
| 593 | 612 | |
| 613 | +export type UnionSerializationFeature = SerializationFeature | number; | |
| 614 | + | |
| 615 | +export type SerializationFeature = { | |
| 616 | +}; | |
| 617 | + | |
| 594 | 618 | export type UnionSerializerProvider = SerializerProvider | number; |
| 595 | 619 | |
| 596 | 620 | export type SerializerProvider = { |
| @@ -2276,6 +2300,7 @@ const typeMap: any = { | ||
| 2276 | 2300 | { json: "del", js: "del", typ: u(undefined, u(r("Del"), 3.14)) }, |
| 2277 | 2301 | { json: "delegate", js: "delegate", typ: u(undefined, u(r("Delegate"), 3.14)) }, |
| 2278 | 2302 | { json: "delete", js: "delete", typ: u(undefined, u(r("Delete"), 3.14)) }, |
| 2303 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: u(undefined, u(r("DeserializationFeature"), 3.14)) }, | |
| 2279 | 2304 | { json: "dict", js: "dict", typ: u(undefined, u(r("Dict"), 3.14)) }, |
| 2280 | 2305 | { json: "dictionary", js: "dictionary", typ: u(undefined, u(r("Dictionary"), 3.14)) }, |
| 2281 | 2306 | { json: "didSet", js: "didSet", typ: u(undefined, u(r("DidSet"), 3.14)) }, |
| @@ -2402,6 +2427,8 @@ const typeMap: any = { | ||
| 2402 | 2427 | { json: "number", js: "number", typ: u(undefined, u(r("Number"), 3.14)) }, |
| 2403 | 2428 | { json: "object", js: "object", typ: u(undefined, u(r("ObjectClass"), 3.14)) }, |
| 2404 | 2429 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) }, |
| 2430 | + { json: "ObjectReader", js: "ObjectReader", typ: u(undefined, u(r("ObjectReader"), 3.14)) }, | |
| 2431 | + { json: "ObjectWriter", js: "ObjectWriter", typ: u(undefined, u(r("ObjectWriter"), 3.14)) }, | |
| 2405 | 2432 | { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) }, |
| 2406 | 2433 | { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) }, |
| 2407 | 2434 | { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) }, |
| @@ -2452,6 +2479,7 @@ const typeMap: any = { | ||
| 2452 | 2479 | { json: "Self", js: "Self", typ: u(undefined, u(r("Self"), 3.14)) }, |
| 2453 | 2480 | { json: "self", js: "self", typ: u(undefined, u(r("SelfClass"), 3.14)) }, |
| 2454 | 2481 | { json: "Sendable", js: "Sendable", typ: u(undefined, u(r("Sendable"), 3.14)) }, |
| 2482 | + { json: "SerializationFeature", js: "SerializationFeature", typ: u(undefined, u(r("SerializationFeature"), 3.14)) }, | |
| 2455 | 2483 | { json: "serialize", js: "serialize", typ: u(undefined, u(r("Serialize"), 3.14)) }, |
| 2456 | 2484 | { json: "SerializerProvider", js: "SerializerProvider", typ: u(undefined, u(r("SerializerProvider"), 3.14)) }, |
| 2457 | 2485 | { json: "set", js: "set", typ: u(undefined, u(r("Set"), 3.14)) }, |
| @@ -2556,6 +2584,8 @@ const typeMap: any = { | ||
| 2556 | 2584 | ], false), |
| 2557 | 2585 | "DecodingError": o([ |
| 2558 | 2586 | ], false), |
| 2587 | + "DeserializationFeature": o([ | |
| 2588 | + ], false), | |
| 2559 | 2589 | "Encoder": o([ |
| 2560 | 2590 | ], false), |
| 2561 | 2591 | "EnumValues": o([ |
| @@ -2614,6 +2644,10 @@ const typeMap: any = { | ||
| 2614 | 2644 | ], false), |
| 2615 | 2645 | "ObjectMapper": o([ |
| 2616 | 2646 | ], false), |
| 2647 | + "ObjectReader": o([ | |
| 2648 | + ], false), | |
| 2649 | + "ObjectWriter": o([ | |
| 2650 | + ], false), | |
| 2617 | 2651 | "Protocol": o([ |
| 2618 | 2652 | ], false), |
| 2619 | 2653 | "RegExpClass": o([ |
| @@ -2624,6 +2658,8 @@ const typeMap: any = { | ||
| 2624 | 2658 | ], false), |
| 2625 | 2659 | "Sendable": o([ |
| 2626 | 2660 | ], false), |
| 2661 | + "SerializationFeature": o([ | |
| 2662 | + ], false), | |
| 2627 | 2663 | "SerializerProvider": o([ |
| 2628 | 2664 | ], false), |
| 2629 | 2665 | "SimpleModule": o([ |
Mschema-golangdefault / quicktype.go+104 −0
| @@ -106,6 +106,7 @@ type TopLevel struct { | ||
| 106 | 106 | Del *UnionDel `json:"del"` |
| 107 | 107 | Delegate *UnionDelegate `json:"delegate"` |
| 108 | 108 | Delete *UnionDelete `json:"delete"` |
| 109 | + DeserializationFeature *UnionDeserializationFeature `json:"DeserializationFeature"` | |
| 109 | 110 | Dict *UnionDict `json:"dict"` |
| 110 | 111 | Dictionary *UnionDictionary `json:"dictionary"` |
| 111 | 112 | DidSet *UnionDidSet `json:"didSet"` |
| @@ -232,6 +233,8 @@ type TopLevel struct { | ||
| 232 | 233 | Number *UnionNumber `json:"number"` |
| 233 | 234 | Object *UnionObject `json:"object"` |
| 234 | 235 | ObjectMapper *UnionObjectMapper `json:"ObjectMapper"` |
| 236 | + ObjectReader *UnionObjectReader `json:"ObjectReader"` | |
| 237 | + ObjectWriter *UnionObjectWriter `json:"ObjectWriter"` | |
| 235 | 238 | Of *UnionOf `json:"of"` |
| 236 | 239 | Oneway *UnionOneway `json:"oneway"` |
| 237 | 240 | Open *UnionOpen `json:"open"` |
| @@ -282,6 +285,7 @@ type TopLevel struct { | ||
| 282 | 285 | Self *UnionSelf `json:"Self"` |
| 283 | 286 | TopLevelSelf *UnionSelfUnion `json:"self"` |
| 284 | 287 | Sendable *UnionSendable `json:"Sendable"` |
| 288 | + SerializationFeature *UnionSerializationFeature `json:"SerializationFeature"` | |
| 285 | 289 | Serialize *UnionSerialize `json:"serialize"` |
| 286 | 290 | SerializerProvider *UnionSerializerProvider `json:"SerializerProvider"` |
| 287 | 291 | Set *UnionSet `json:"set"` |
| @@ -591,6 +595,9 @@ type Delegate struct { | ||
| 591 | 595 | type Delete struct { |
| 592 | 596 | } |
| 593 | 597 | |
| 598 | +type DeserializationFeature struct { | |
| 599 | +} | |
| 600 | + | |
| 594 | 601 | type Dict struct { |
| 595 | 602 | } |
| 596 | 603 | |
| @@ -963,6 +970,12 @@ type Object struct { | ||
| 963 | 970 | type ObjectMapper struct { |
| 964 | 971 | } |
| 965 | 972 | |
| 973 | +type ObjectReader struct { | |
| 974 | +} | |
| 975 | + | |
| 976 | +type ObjectWriter struct { | |
| 977 | +} | |
| 978 | + | |
| 966 | 979 | type Of struct { |
| 967 | 980 | } |
| 968 | 981 | |
| @@ -1110,6 +1123,9 @@ type Self struct { | ||
| 1110 | 1123 | type Sendable struct { |
| 1111 | 1124 | } |
| 1112 | 1125 | |
| 1126 | +type SerializationFeature struct { | |
| 1127 | +} | |
| 1128 | + | |
| 1113 | 1129 | type Serialize struct { |
| 1114 | 1130 | } |
| 1115 | 1131 | |
| @@ -3069,6 +3085,28 @@ func (x *UnionDelete) MarshalJSON() ([]byte, error) { | ||
| 3069 | 3085 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Delete != nil, x.Delete, false, nil, false, nil, false) |
| 3070 | 3086 | } |
| 3071 | 3087 | |
| 3088 | +type UnionDeserializationFeature struct { | |
| 3089 | + DeserializationFeature *DeserializationFeature | |
| 3090 | + Double *float64 | |
| 3091 | +} | |
| 3092 | + | |
| 3093 | +func (x *UnionDeserializationFeature) UnmarshalJSON(data []byte) error { | |
| 3094 | + x.DeserializationFeature = nil | |
| 3095 | + var c DeserializationFeature | |
| 3096 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 3097 | + if err != nil { | |
| 3098 | + return err | |
| 3099 | + } | |
| 3100 | + if object { | |
| 3101 | + x.DeserializationFeature = &c | |
| 3102 | + } | |
| 3103 | + return nil | |
| 3104 | +} | |
| 3105 | + | |
| 3106 | +func (x *UnionDeserializationFeature) MarshalJSON() ([]byte, error) { | |
| 3107 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.DeserializationFeature != nil, x.DeserializationFeature, false, nil, false, nil, false) | |
| 3108 | +} | |
| 3109 | + | |
| 3072 | 3110 | type UnionDict struct { |
| 3073 | 3111 | Dict *Dict |
| 3074 | 3112 | Double *float64 |
| @@ -5797,6 +5835,50 @@ func (x *UnionObjectMapper) MarshalJSON() ([]byte, error) { | ||
| 5797 | 5835 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.ObjectMapper != nil, x.ObjectMapper, false, nil, false, nil, false) |
| 5798 | 5836 | } |
| 5799 | 5837 | |
| 5838 | +type UnionObjectReader struct { | |
| 5839 | + Double *float64 | |
| 5840 | + ObjectReader *ObjectReader | |
| 5841 | +} | |
| 5842 | + | |
| 5843 | +func (x *UnionObjectReader) UnmarshalJSON(data []byte) error { | |
| 5844 | + x.ObjectReader = nil | |
| 5845 | + var c ObjectReader | |
| 5846 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5847 | + if err != nil { | |
| 5848 | + return err | |
| 5849 | + } | |
| 5850 | + if object { | |
| 5851 | + x.ObjectReader = &c | |
| 5852 | + } | |
| 5853 | + return nil | |
| 5854 | +} | |
| 5855 | + | |
| 5856 | +func (x *UnionObjectReader) MarshalJSON() ([]byte, error) { | |
| 5857 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.ObjectReader != nil, x.ObjectReader, false, nil, false, nil, false) | |
| 5858 | +} | |
| 5859 | + | |
| 5860 | +type UnionObjectWriter struct { | |
| 5861 | + Double *float64 | |
| 5862 | + ObjectWriter *ObjectWriter | |
| 5863 | +} | |
| 5864 | + | |
| 5865 | +func (x *UnionObjectWriter) UnmarshalJSON(data []byte) error { | |
| 5866 | + x.ObjectWriter = nil | |
| 5867 | + var c ObjectWriter | |
| 5868 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5869 | + if err != nil { | |
| 5870 | + return err | |
| 5871 | + } | |
| 5872 | + if object { | |
| 5873 | + x.ObjectWriter = &c | |
| 5874 | + } | |
| 5875 | + return nil | |
| 5876 | +} | |
| 5877 | + | |
| 5878 | +func (x *UnionObjectWriter) MarshalJSON() ([]byte, error) { | |
| 5879 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.ObjectWriter != nil, x.ObjectWriter, false, nil, false, nil, false) | |
| 5880 | +} | |
| 5881 | + | |
| 5800 | 5882 | type UnionOf struct { |
| 5801 | 5883 | Double *float64 |
| 5802 | 5884 | Of *Of |
| @@ -6875,6 +6957,28 @@ func (x *UnionSendable) MarshalJSON() ([]byte, error) { | ||
| 6875 | 6957 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Sendable != nil, x.Sendable, false, nil, false, nil, false) |
| 6876 | 6958 | } |
| 6877 | 6959 | |
| 6960 | +type UnionSerializationFeature struct { | |
| 6961 | + Double *float64 | |
| 6962 | + SerializationFeature *SerializationFeature | |
| 6963 | +} | |
| 6964 | + | |
| 6965 | +func (x *UnionSerializationFeature) UnmarshalJSON(data []byte) error { | |
| 6966 | + x.SerializationFeature = nil | |
| 6967 | + var c SerializationFeature | |
| 6968 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 6969 | + if err != nil { | |
| 6970 | + return err | |
| 6971 | + } | |
| 6972 | + if object { | |
| 6973 | + x.SerializationFeature = &c | |
| 6974 | + } | |
| 6975 | + return nil | |
| 6976 | +} | |
| 6977 | + | |
| 6978 | +func (x *UnionSerializationFeature) MarshalJSON() ([]byte, error) { | |
| 6979 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.SerializationFeature != nil, x.SerializationFeature, false, nil, false, nil, false) | |
| 6980 | +} | |
| 6981 | + | |
| 6878 | 6982 | type UnionSerialize struct { |
| 6879 | 6983 | Double *float64 |
| 6880 | 6984 | Serialize *Serialize |
Mschema-haskelldefault / QuickType.hs+113 −1
| @@ -77,6 +77,7 @@ module QuickType | ||
| 77 | 77 | , Del (..) |
| 78 | 78 | , Delegate (..) |
| 79 | 79 | , Delete (..) |
| 80 | + , DeserializationFeature (..) | |
| 80 | 81 | , Dict (..) |
| 81 | 82 | , Dictionary (..) |
| 82 | 83 | , DidSet (..) |
| @@ -192,6 +193,8 @@ module QuickType | ||
| 192 | 193 | , NumberClass (..) |
| 193 | 194 | , ObjectClass (..) |
| 194 | 195 | , ObjectMapper (..) |
| 196 | + , ObjectReader (..) | |
| 197 | + , ObjectWriter (..) | |
| 195 | 198 | , Oneway (..) |
| 196 | 199 | , Open (..) |
| 197 | 200 | , Operator (..) |
| @@ -267,6 +270,7 @@ module QuickType | ||
| 267 | 270 | , Select (..) |
| 268 | 271 | , Self (..) |
| 269 | 272 | , Sendable (..) |
| 273 | + , SerializationFeature (..) | |
| 270 | 274 | , Serialize (..) |
| 271 | 275 | , SerializerProvider (..) |
| 272 | 276 | , Set (..) |
| @@ -409,6 +413,7 @@ module QuickType | ||
| 409 | 413 | , UnionDel (..) |
| 410 | 414 | , UnionDelegate (..) |
| 411 | 415 | , UnionDelete (..) |
| 416 | + , UnionDeserializationFeature (..) | |
| 412 | 417 | , UnionDict (..) |
| 413 | 418 | , UnionDictionary (..) |
| 414 | 419 | , UnionDidSet (..) |
| @@ -524,6 +529,8 @@ module QuickType | ||
| 524 | 529 | , UnionNumber (..) |
| 525 | 530 | , UnionObject (..) |
| 526 | 531 | , UnionObjectMapper (..) |
| 532 | + , UnionObjectReader (..) | |
| 533 | + , UnionObjectWriter (..) | |
| 527 | 534 | , UnionOneway (..) |
| 528 | 535 | , UnionOpen (..) |
| 529 | 536 | , UnionOperator (..) |
| @@ -599,6 +606,7 @@ module QuickType | ||
| 599 | 606 | , UnionSelect (..) |
| 600 | 607 | , UnionSelf (..) |
| 601 | 608 | , UnionSendable (..) |
| 609 | + , UnionSerializationFeature (..) | |
| 602 | 610 | , UnionSerialize (..) |
| 603 | 611 | , UnionSerializerProvider (..) |
| 604 | 612 | , UnionSet (..) |
| @@ -761,6 +769,7 @@ data QuickType = QuickType | ||
| 761 | 769 | , delQuickType :: Maybe UnionDel |
| 762 | 770 | , delegateQuickType :: Maybe UnionDelegate |
| 763 | 771 | , deleteQuickType :: Maybe UnionDelete |
| 772 | + , deserializationFeatureQuickType :: Maybe UnionDeserializationFeature | |
| 764 | 773 | , dictQuickType :: Maybe UnionDict |
| 765 | 774 | , dictionaryQuickType :: Maybe UnionDictionary |
| 766 | 775 | , didSetQuickType :: Maybe UnionDidSet |
| @@ -887,6 +896,8 @@ data QuickType = QuickType | ||
| 887 | 896 | , numberQuickType :: Maybe UnionNumber |
| 888 | 897 | , objectQuickType :: Maybe UnionObject |
| 889 | 898 | , objectMapperQuickType :: Maybe UnionObjectMapper |
| 899 | + , objectReaderQuickType :: Maybe UnionObjectReader | |
| 900 | + , objectWriterQuickType :: Maybe UnionObjectWriter | |
| 890 | 901 | , quickTypeOfQuickType :: Maybe UnionOf |
| 891 | 902 | , onewayQuickType :: Maybe UnionOneway |
| 892 | 903 | , openQuickType :: Maybe UnionOpen |
| @@ -937,6 +948,7 @@ data QuickType = QuickType | ||
| 937 | 948 | , selfQuickType :: Maybe UnionSelf |
| 938 | 949 | , quickTypeSelfQuickType :: Maybe UnionSelfUnion |
| 939 | 950 | , sendableQuickType :: Maybe UnionSendable |
| 951 | + , serializationFeatureQuickType :: Maybe UnionSerializationFeature | |
| 940 | 952 | , serializeQuickType :: Maybe UnionSerialize |
| 941 | 953 | , serializerProviderQuickType :: Maybe UnionSerializerProvider |
| 942 | 954 | , setQuickType :: Maybe UnionSet |
| @@ -1678,6 +1690,15 @@ data Delete = Delete | ||
| 1678 | 1690 | { |
| 1679 | 1691 | } deriving (Show) |
| 1680 | 1692 | |
| 1693 | +data UnionDeserializationFeature | |
| 1694 | + = DeserializationFeatureInUnionDeserializationFeature DeserializationFeature | |
| 1695 | + | DoubleInUnionDeserializationFeature Double | |
| 1696 | + deriving (Show) | |
| 1697 | + | |
| 1698 | +data DeserializationFeature = DeserializationFeature | |
| 1699 | + { | |
| 1700 | + } deriving (Show) | |
| 1701 | + | |
| 1681 | 1702 | data UnionDict |
| 1682 | 1703 | = DictInUnionDict Dict |
| 1683 | 1704 | | DoubleInUnionDict Double |
| @@ -2713,6 +2734,24 @@ data ObjectMapper = ObjectMapper | ||
| 2713 | 2734 | { |
| 2714 | 2735 | } deriving (Show) |
| 2715 | 2736 | |
| 2737 | +data UnionObjectReader | |
| 2738 | + = DoubleInUnionObjectReader Double | |
| 2739 | + | ObjectReaderInUnionObjectReader ObjectReader | |
| 2740 | + deriving (Show) | |
| 2741 | + | |
| 2742 | +data ObjectReader = ObjectReader | |
| 2743 | + { | |
| 2744 | + } deriving (Show) | |
| 2745 | + | |
| 2746 | +data UnionObjectWriter | |
| 2747 | + = DoubleInUnionObjectWriter Double | |
| 2748 | + | ObjectWriterInUnionObjectWriter ObjectWriter | |
| 2749 | + deriving (Show) | |
| 2750 | + | |
| 2751 | +data ObjectWriter = ObjectWriter | |
| 2752 | + { | |
| 2753 | + } deriving (Show) | |
| 2754 | + | |
| 2716 | 2755 | data UnionOneway |
| 2717 | 2756 | = DoubleInUnionOneway Double |
| 2718 | 2757 | | OnewayInUnionOneway Oneway |
| @@ -3388,6 +3427,15 @@ data Sendable = Sendable | ||
| 3388 | 3427 | { |
| 3389 | 3428 | } deriving (Show) |
| 3390 | 3429 | |
| 3430 | +data UnionSerializationFeature | |
| 3431 | + = DoubleInUnionSerializationFeature Double | |
| 3432 | + | SerializationFeatureInUnionSerializationFeature SerializationFeature | |
| 3433 | + deriving (Show) | |
| 3434 | + | |
| 3435 | +data SerializationFeature = SerializationFeature | |
| 3436 | + { | |
| 3437 | + } deriving (Show) | |
| 3438 | + | |
| 3391 | 3439 | data UnionSerialize |
| 3392 | 3440 | = DoubleInUnionSerialize Double |
| 3393 | 3441 | | SerializeInUnionSerialize Serialize |
| @@ -4004,7 +4052,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType | ||
| 4004 | 4052 | decodeTopLevel = decode |
| 4005 | 4053 | |
| 4006 | 4054 | instance ToJSON QuickType where |
| 4007 | - toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serializeQuickType serializerProviderQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) = | |
| 4055 | + toJSON (QuickType emptyQuickType quickTypeBoolQuickType complexQuickType imagineryQuickType abstractQuickType alignasQuickType alignofQuickType andQuickType andEqQuickType quickTypeAnyQuickType anyQuickType arrayQuickType quickTypeAsQuickType asmQuickType assertQuickType associatedtypeQuickType associativityQuickType asyncQuickType atomicQuickType atomicCancelQuickType atomicCommitQuickType atomicNoexceptQuickType autoQuickType awaitQuickType baseQuickType bitandQuickType bitorQuickType boolQuickType purpleBoolQuickType booleanQuickType breakQuickType bycopyQuickType byrefQuickType byteQuickType calendarQuickType quickTypeCaseQuickType catchQuickType chanQuickType charQuickType char16TQuickType char32TQuickType checkedQuickType purpleClassQuickType quickTypeClassQuickType cloneQuickType coAwaitQuickType coReturnQuickType coYieldQuickType codableQuickType codingKeyQuickType codingKeysQuickType complQuickType conceptQuickType consoleQuickType constQuickType constCastQuickType constexprQuickType constructorQuickType continueQuickType convenienceQuickType convertQuickType converterQuickType cultureInfoQuickType dateQuickType dateParseHandlingQuickType dateFormatterQuickType dateOnlyQuickType dateOnlyConverterQuickType dateTimeQuickType dateTimeStylesQuickType debuggerQuickType decimalQuickType declareQuickType decltypeQuickType decodeStringQuickType decoderQuickType decodingErrorQuickType defQuickType quickTypeDefaultQuickType deferQuickType deinitQuickType delQuickType delegateQuickType deleteQuickType deserializationFeatureQuickType dictQuickType dictionaryQuickType didSetQuickType quickTypeDoQuickType doubleQuickType dummyQuickType dynamicQuickType dynamicCastQuickType elifQuickType quickTypeElseQuickType encodeQuickTypeQuickType encoderQuickType enumQuickType enumValuesQuickType equalityContractQuickType equatableQuickType eventQuickType exceptQuickType exceptionQuickType explicitQuickType exportQuickType exposingQuickType extendsQuickType extensionQuickType externQuickType fallthroughQuickType quickTypeFalseQuickType falseQuickType fileprivateQuickType finalQuickType finallyQuickType fixedQuickType floatQuickType forQuickType foreachQuickType formatExceptionQuickType friendQuickType fromQuickType fromJSONQuickType funcQuickType functionQuickType getQuickType globalQuickType goQuickType gotoQuickType guardQuickType hashableQuickType hashCodeQuickType hasherQuickType hasOwnPropertyQuickType quickTypeIDQuickType quickTypeIfQuickType impQuickType implementsQuickType implicitQuickType quickTypeImportQuickType quickTypeInQuickType indirectQuickType quickTypeInfixQuickType initQuickType inlineQuickType inoutQuickType instanceofQuickType intQuickType interfaceQuickType internalQuickType isQuickType isoDateTimeOffsetConverterQuickType iterableQuickType jdecQuickType jencQuickType jpipeQuickType jsonQuickType jsonConverterQuickType jsonSerializerQuickType jsonTokenQuickType jsonWriterQuickType jsonAnyQuickType jsonCodingKeyQuickType jsonDecoderQuickType jsonEncoderQuickType jsonExceptionQuickType jsonGeneratorQuickType jsonNodeQuickType jsonNullQuickType jsonParserQuickType jsonReaderQuickType jsonTokenTypeQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localeQuickType lockQuickType longQuickType mapQuickType mapEntryQuickType metadataPropertyHandlingQuickType quickTypeModuleQuickType mutableQuickType mutatingQuickType namespaceQuickType nativeQuickType newQuickType newtonsoftQuickType nilQuickType noQuickType noexceptQuickType nonatomicQuickType quickTypeNoneQuickType noneQuickType nonlocalQuickType nonmutatingQuickType noSuchMethodQuickType notQuickType notEqQuickType nsErrorQuickType nsObjectQuickType nsStringQuickType nullQuickType quickTypeNullQuickType nullptrQuickType numberQuickType objectQuickType objectMapperQuickType objectReaderQuickType objectWriterQuickType quickTypeOfQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType printQuickType printfQuickType printMembersQuickType privateQuickType protectedQuickType protocolQuickType quickTypeProtocolQuickType publicQuickType quicktypeQuickType raiseQuickType rangeQuickType readonlyQuickType refQuickType regExpQuickType registerQuickType reinterpretCastQuickType repeatQuickType requireQuickType requiredQuickType requiresQuickType restrictQuickType retainQuickType rethrowsQuickType returnQuickType rightQuickType runtimeTypeQuickType sQuickType sbyteQuickType sealedQuickType selQuickType selectQuickType selfQuickType quickTypeSelfQuickType sendableQuickType serializationFeatureQuickType serializeQuickType serializerProviderQuickType setQuickType shortQuickType signedQuickType simpleModuleQuickType sizeofQuickType stackallocQuickType standardsQuickType staticQuickType staticAssertQuickType staticCastQuickType stdDeserializerQuickType stdSerializerQuickType strictfpQuickType stringQuickType structQuickType subscriptQuickType superQuickType switchQuickType symbolQuickType synchronizedQuickType systemQuickType templateQuickType quickTypeThenQuickType thisQuickType threadLocalQuickType throwQuickType throwsQuickType timeOnlyQuickType timeOnlyConverterQuickType timeZoneQuickType toJSONQuickType topLevelQuickType toStringQuickType transientQuickType trueQuickType quickTypeTrueQuickType tryQuickType quickTypeTypeQuickType purpleTypeQuickType typealiasQuickType typedefQuickType typeidQuickType typenameQuickType typeofQuickType uintQuickType ulongQuickType uncheckedQuickType undefinedQuickType unionQuickType unownedQuickType unsafeQuickType unsignedQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) = | |
| 4008 | 4056 | object $ foldMap (maybe [] pure) |
| 4009 | 4057 | [ ("_" .=) <$> emptyQuickType |
| 4010 | 4058 | , ("_Bool" .=) <$> quickTypeBoolQuickType |
| @@ -4090,6 +4138,7 @@ instance ToJSON QuickType where | ||
| 4090 | 4138 | , ("del" .=) <$> delQuickType |
| 4091 | 4139 | , ("delegate" .=) <$> delegateQuickType |
| 4092 | 4140 | , ("delete" .=) <$> deleteQuickType |
| 4141 | + , ("DeserializationFeature" .=) <$> deserializationFeatureQuickType | |
| 4093 | 4142 | , ("dict" .=) <$> dictQuickType |
| 4094 | 4143 | , ("dictionary" .=) <$> dictionaryQuickType |
| 4095 | 4144 | , ("didSet" .=) <$> didSetQuickType |
| @@ -4216,6 +4265,8 @@ instance ToJSON QuickType where | ||
| 4216 | 4265 | , ("number" .=) <$> numberQuickType |
| 4217 | 4266 | , ("object" .=) <$> objectQuickType |
| 4218 | 4267 | , ("ObjectMapper" .=) <$> objectMapperQuickType |
| 4268 | + , ("ObjectReader" .=) <$> objectReaderQuickType | |
| 4269 | + , ("ObjectWriter" .=) <$> objectWriterQuickType | |
| 4219 | 4270 | , ("of" .=) <$> quickTypeOfQuickType |
| 4220 | 4271 | , ("oneway" .=) <$> onewayQuickType |
| 4221 | 4272 | , ("open" .=) <$> openQuickType |
| @@ -4266,6 +4317,7 @@ instance ToJSON QuickType where | ||
| 4266 | 4317 | , ("Self" .=) <$> selfQuickType |
| 4267 | 4318 | , ("self" .=) <$> quickTypeSelfQuickType |
| 4268 | 4319 | , ("Sendable" .=) <$> sendableQuickType |
| 4320 | + , ("SerializationFeature" .=) <$> serializationFeatureQuickType | |
| 4269 | 4321 | , ("serialize" .=) <$> serializeQuickType |
| 4270 | 4322 | , ("SerializerProvider" .=) <$> serializerProviderQuickType |
| 4271 | 4323 | , ("set" .=) <$> setQuickType |
| @@ -4427,6 +4479,7 @@ instance FromJSON QuickType where | ||
| 4427 | 4479 | <*> v .:! "del" |
| 4428 | 4480 | <*> v .:! "delegate" |
| 4429 | 4481 | <*> v .:! "delete" |
| 4482 | + <*> v .:! "DeserializationFeature" | |
| 4430 | 4483 | <*> v .:! "dict" |
| 4431 | 4484 | <*> v .:! "dictionary" |
| 4432 | 4485 | <*> v .:! "didSet" |
| @@ -4553,6 +4606,8 @@ instance FromJSON QuickType where | ||
| 4553 | 4606 | <*> v .:! "number" |
| 4554 | 4607 | <*> v .:! "object" |
| 4555 | 4608 | <*> v .:! "ObjectMapper" |
| 4609 | + <*> v .:! "ObjectReader" | |
| 4610 | + <*> v .:! "ObjectWriter" | |
| 4556 | 4611 | <*> v .:! "of" |
| 4557 | 4612 | <*> v .:! "oneway" |
| 4558 | 4613 | <*> v .:! "open" |
| @@ -4603,6 +4658,7 @@ instance FromJSON QuickType where | ||
| 4603 | 4658 | <*> v .:! "Self" |
| 4604 | 4659 | <*> v .:! "self" |
| 4605 | 4660 | <*> v .:! "Sendable" |
| 4661 | + <*> v .:! "SerializationFeature" | |
| 4606 | 4662 | <*> v .:! "serialize" |
| 4607 | 4663 | <*> v .:! "SerializerProvider" |
| 4608 | 4664 | <*> v .:! "set" |
| @@ -5713,6 +5769,20 @@ instance ToJSON Delete where | ||
| 5713 | 5769 | instance FromJSON Delete where |
| 5714 | 5770 | parseJSON (Object _) = return Delete |
| 5715 | 5771 | |
| 5772 | +instance ToJSON UnionDeserializationFeature where | |
| 5773 | + toJSON (DeserializationFeatureInUnionDeserializationFeature x) = toJSON x | |
| 5774 | + toJSON (DoubleInUnionDeserializationFeature x) = toJSON x | |
| 5775 | + | |
| 5776 | +instance FromJSON UnionDeserializationFeature where | |
| 5777 | + parseJSON xs@(Object _) = (fmap DeserializationFeatureInUnionDeserializationFeature . parseJSON) xs | |
| 5778 | + parseJSON xs@(Number _) = (fmap DoubleInUnionDeserializationFeature . parseJSON) xs | |
| 5779 | + | |
| 5780 | +instance ToJSON DeserializationFeature where | |
| 5781 | + toJSON = \_ -> emptyObject | |
| 5782 | + | |
| 5783 | +instance FromJSON DeserializationFeature where | |
| 5784 | + parseJSON (Object _) = return DeserializationFeature | |
| 5785 | + | |
| 5716 | 5786 | instance ToJSON UnionDict where |
| 5717 | 5787 | toJSON (DictInUnionDict x) = toJSON x |
| 5718 | 5788 | toJSON (DoubleInUnionDict x) = toJSON x |
| @@ -7323,6 +7393,34 @@ instance ToJSON ObjectMapper where | ||
| 7323 | 7393 | instance FromJSON ObjectMapper where |
| 7324 | 7394 | parseJSON (Object _) = return ObjectMapper |
| 7325 | 7395 | |
| 7396 | +instance ToJSON UnionObjectReader where | |
| 7397 | + toJSON (DoubleInUnionObjectReader x) = toJSON x | |
| 7398 | + toJSON (ObjectReaderInUnionObjectReader x) = toJSON x | |
| 7399 | + | |
| 7400 | +instance FromJSON UnionObjectReader where | |
| 7401 | + parseJSON xs@(Number _) = (fmap DoubleInUnionObjectReader . parseJSON) xs | |
| 7402 | + parseJSON xs@(Object _) = (fmap ObjectReaderInUnionObjectReader . parseJSON) xs | |
| 7403 | + | |
| 7404 | +instance ToJSON ObjectReader where | |
| 7405 | + toJSON = \_ -> emptyObject | |
| 7406 | + | |
| 7407 | +instance FromJSON ObjectReader where | |
| 7408 | + parseJSON (Object _) = return ObjectReader | |
| 7409 | + | |
| 7410 | +instance ToJSON UnionObjectWriter where | |
| 7411 | + toJSON (DoubleInUnionObjectWriter x) = toJSON x | |
| 7412 | + toJSON (ObjectWriterInUnionObjectWriter x) = toJSON x | |
| 7413 | + | |
| 7414 | +instance FromJSON UnionObjectWriter where | |
| 7415 | + parseJSON xs@(Number _) = (fmap DoubleInUnionObjectWriter . parseJSON) xs | |
| 7416 | + parseJSON xs@(Object _) = (fmap ObjectWriterInUnionObjectWriter . parseJSON) xs | |
| 7417 | + | |
| 7418 | +instance ToJSON ObjectWriter where | |
| 7419 | + toJSON = \_ -> emptyObject | |
| 7420 | + | |
| 7421 | +instance FromJSON ObjectWriter where | |
| 7422 | + parseJSON (Object _) = return ObjectWriter | |
| 7423 | + | |
| 7326 | 7424 | instance ToJSON UnionOneway where |
| 7327 | 7425 | toJSON (DoubleInUnionOneway x) = toJSON x |
| 7328 | 7426 | toJSON (OnewayInUnionOneway x) = toJSON x |
| @@ -8373,6 +8471,20 @@ instance ToJSON Sendable where | ||
| 8373 | 8471 | instance FromJSON Sendable where |
| 8374 | 8472 | parseJSON (Object _) = return Sendable |
| 8375 | 8473 | |
| 8474 | +instance ToJSON UnionSerializationFeature where | |
| 8475 | + toJSON (DoubleInUnionSerializationFeature x) = toJSON x | |
| 8476 | + toJSON (SerializationFeatureInUnionSerializationFeature x) = toJSON x | |
| 8477 | + | |
| 8478 | +instance FromJSON UnionSerializationFeature where | |
| 8479 | + parseJSON xs@(Number _) = (fmap DoubleInUnionSerializationFeature . parseJSON) xs | |
| 8480 | + parseJSON xs@(Object _) = (fmap SerializationFeatureInUnionSerializationFeature . parseJSON) xs | |
| 8481 | + | |
| 8482 | +instance ToJSON SerializationFeature where | |
| 8483 | + toJSON = \_ -> emptyObject | |
| 8484 | + | |
| 8485 | +instance FromJSON SerializationFeature where | |
| 8486 | + parseJSON (Object _) = return SerializationFeature | |
| 8487 | + | |
| 8376 | 8488 | instance ToJSON UnionSerialize where |
| 8377 | 8489 | toJSON (DoubleInUnionSerialize x) = toJSON x |
| 8378 | 8490 | toJSON (SerializeInUnionSerialize x) = toJSON x |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / DeserializationFeatureClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class DeserializationFeatureClass { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / ObjectReaderClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class ObjectReaderClass { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / ObjectWriterClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class ObjectWriterClass { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / SerializationFeatureClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class SerializationFeatureClass { | |
| 7 | +} |
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+24 −0
| @@ -87,6 +87,7 @@ public class TopLevel { | ||
| 87 | 87 | private UnionDel del; |
| 88 | 88 | private UnionDelegate delegate; |
| 89 | 89 | private UnionDelete delete; |
| 90 | + private UnionDeserializationFeature deserializationFeature; | |
| 90 | 91 | private UnionDict dict; |
| 91 | 92 | private UnionDictionary dictionary; |
| 92 | 93 | private UnionDidSet didSet; |
| @@ -213,6 +214,8 @@ public class TopLevel { | ||
| 213 | 214 | private UnionNumber number; |
| 214 | 215 | private UnionObject object; |
| 215 | 216 | private UnionObjectMapper objectMapper; |
| 217 | + private UnionObjectReader objectReader; | |
| 218 | + private UnionObjectWriter objectWriter; | |
| 216 | 219 | private UnionOf of; |
| 217 | 220 | private UnionOneway oneway; |
| 218 | 221 | private UnionOpen open; |
| @@ -263,6 +266,7 @@ public class TopLevel { | ||
| 263 | 266 | private UnionSelf self; |
| 264 | 267 | private UnionSelfUnion topLevelSelf; |
| 265 | 268 | private UnionSendable sendable; |
| 269 | + private UnionSerializationFeature serializationFeature; | |
| 266 | 270 | private UnionSerialize serialize; |
| 267 | 271 | private UnionSerializerProvider serializerProvider; |
| 268 | 272 | private UnionSet set; |
| @@ -757,6 +761,11 @@ public class TopLevel { | ||
| 757 | 761 | @JsonProperty("delete") |
| 758 | 762 | public void setDelete(UnionDelete value) { this.delete = value; } |
| 759 | 763 | |
| 764 | + @JsonProperty("DeserializationFeature") | |
| 765 | + public UnionDeserializationFeature getDeserializationFeature() { return deserializationFeature; } | |
| 766 | + @JsonProperty("DeserializationFeature") | |
| 767 | + public void setDeserializationFeature(UnionDeserializationFeature value) { this.deserializationFeature = value; } | |
| 768 | + | |
| 760 | 769 | @JsonProperty("dict") |
| 761 | 770 | public UnionDict getDict() { return dict; } |
| 762 | 771 | @JsonProperty("dict") |
| @@ -1387,6 +1396,16 @@ public class TopLevel { | ||
| 1387 | 1396 | @JsonProperty("ObjectMapper") |
| 1388 | 1397 | public void setObjectMapper(UnionObjectMapper value) { this.objectMapper = value; } |
| 1389 | 1398 | |
| 1399 | + @JsonProperty("ObjectReader") | |
| 1400 | + public UnionObjectReader getObjectReader() { return objectReader; } | |
| 1401 | + @JsonProperty("ObjectReader") | |
| 1402 | + public void setObjectReader(UnionObjectReader value) { this.objectReader = value; } | |
| 1403 | + | |
| 1404 | + @JsonProperty("ObjectWriter") | |
| 1405 | + public UnionObjectWriter getObjectWriter() { return objectWriter; } | |
| 1406 | + @JsonProperty("ObjectWriter") | |
| 1407 | + public void setObjectWriter(UnionObjectWriter value) { this.objectWriter = value; } | |
| 1408 | + | |
| 1390 | 1409 | @JsonProperty("of") |
| 1391 | 1410 | public UnionOf getOf() { return of; } |
| 1392 | 1411 | @JsonProperty("of") |
| @@ -1637,6 +1656,11 @@ public class TopLevel { | ||
| 1637 | 1656 | @JsonProperty("Sendable") |
| 1638 | 1657 | public void setSendable(UnionSendable value) { this.sendable = value; } |
| 1639 | 1658 | |
| 1659 | + @JsonProperty("SerializationFeature") | |
| 1660 | + public UnionSerializationFeature getSerializationFeature() { return serializationFeature; } | |
| 1661 | + @JsonProperty("SerializationFeature") | |
| 1662 | + public void setSerializationFeature(UnionSerializationFeature value) { this.serializationFeature = value; } | |
| 1663 | + | |
| 1640 | 1664 | @JsonProperty("serialize") |
| 1641 | 1665 | public UnionSerialize getSerialize() { return serialize; } |
| 1642 | 1666 | @JsonProperty("serialize") |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionDeserializationFeature.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionDeserializationFeature.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionDeserializationFeature.Serializer.class) | |
| 12 | +public class UnionDeserializationFeature { | |
| 13 | + public Double doubleValue; | |
| 14 | + public DeserializationFeatureClass deserializationFeatureClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionDeserializationFeature> { | |
| 17 | + @Override | |
| 18 | + public UnionDeserializationFeature deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionDeserializationFeature value = new UnionDeserializationFeature(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.deserializationFeatureClassValue = jsonParser.readValueAs(DeserializationFeatureClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionDeserializationFeature"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionDeserializationFeature> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionDeserializationFeature obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.deserializationFeatureClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.deserializationFeatureClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionObjectReader.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionObjectReader.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionObjectReader.Serializer.class) | |
| 12 | +public class UnionObjectReader { | |
| 13 | + public Double doubleValue; | |
| 14 | + public ObjectReaderClass objectReaderClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionObjectReader> { | |
| 17 | + @Override | |
| 18 | + public UnionObjectReader deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionObjectReader value = new UnionObjectReader(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.objectReaderClassValue = jsonParser.readValueAs(ObjectReaderClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionObjectReader"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionObjectReader> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionObjectReader obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.objectReaderClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.objectReaderClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionObjectWriter.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionObjectWriter.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionObjectWriter.Serializer.class) | |
| 12 | +public class UnionObjectWriter { | |
| 13 | + public Double doubleValue; | |
| 14 | + public ObjectWriterClass objectWriterClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionObjectWriter> { | |
| 17 | + @Override | |
| 18 | + public UnionObjectWriter deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionObjectWriter value = new UnionObjectWriter(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.objectWriterClassValue = jsonParser.readValueAs(ObjectWriterClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionObjectWriter"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionObjectWriter> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionObjectWriter obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.objectWriterClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.objectWriterClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionSerializationFeature.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionSerializationFeature.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionSerializationFeature.Serializer.class) | |
| 12 | +public class UnionSerializationFeature { | |
| 13 | + public Double doubleValue; | |
| 14 | + public SerializationFeatureClass serializationFeatureClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionSerializationFeature> { | |
| 17 | + @Override | |
| 18 | + public UnionSerializationFeature deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionSerializationFeature value = new UnionSerializationFeature(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.serializationFeatureClassValue = jsonParser.readValueAs(SerializationFeatureClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionSerializationFeature"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionSerializationFeature> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionSerializationFeature obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.serializationFeatureClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.serializationFeatureClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / DeserializationFeatureClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class DeserializationFeatureClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / ObjectReaderClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class ObjectReaderClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / ObjectWriterClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class ObjectWriterClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / SerializationFeatureClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class SerializationFeatureClass { | |
| 7 | +} |
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+24 −0
| @@ -87,6 +87,7 @@ public class TopLevel { | ||
| 87 | 87 | private UnionDel del; |
| 88 | 88 | private UnionDelegate delegate; |
| 89 | 89 | private UnionDelete delete; |
| 90 | + private UnionDeserializationFeature deserializationFeature; | |
| 90 | 91 | private UnionDict dict; |
| 91 | 92 | private UnionDictionary dictionary; |
| 92 | 93 | private UnionDidSet didSet; |
| @@ -213,6 +214,8 @@ public class TopLevel { | ||
| 213 | 214 | private UnionNumber number; |
| 214 | 215 | private UnionObject object; |
| 215 | 216 | private UnionObjectMapper objectMapper; |
| 217 | + private UnionObjectReader objectReader; | |
| 218 | + private UnionObjectWriter objectWriter; | |
| 216 | 219 | private UnionOf of; |
| 217 | 220 | private UnionOneway oneway; |
| 218 | 221 | private UnionOpen open; |
| @@ -263,6 +266,7 @@ public class TopLevel { | ||
| 263 | 266 | private UnionSelf self; |
| 264 | 267 | private UnionSelfUnion topLevelSelf; |
| 265 | 268 | private UnionSendable sendable; |
| 269 | + private UnionSerializationFeature serializationFeature; | |
| 266 | 270 | private UnionSerialize serialize; |
| 267 | 271 | private UnionSerializerProvider serializerProvider; |
| 268 | 272 | private UnionSet set; |
| @@ -757,6 +761,11 @@ public class TopLevel { | ||
| 757 | 761 | @JsonProperty("delete") |
| 758 | 762 | public void setDelete(UnionDelete value) { this.delete = value; } |
| 759 | 763 | |
| 764 | + @JsonProperty("DeserializationFeature") | |
| 765 | + public UnionDeserializationFeature getDeserializationFeature() { return deserializationFeature; } | |
| 766 | + @JsonProperty("DeserializationFeature") | |
| 767 | + public void setDeserializationFeature(UnionDeserializationFeature value) { this.deserializationFeature = value; } | |
| 768 | + | |
| 760 | 769 | @JsonProperty("dict") |
| 761 | 770 | public UnionDict getDict() { return dict; } |
| 762 | 771 | @JsonProperty("dict") |
| @@ -1387,6 +1396,16 @@ public class TopLevel { | ||
| 1387 | 1396 | @JsonProperty("ObjectMapper") |
| 1388 | 1397 | public void setObjectMapper(UnionObjectMapper value) { this.objectMapper = value; } |
| 1389 | 1398 | |
| 1399 | + @JsonProperty("ObjectReader") | |
| 1400 | + public UnionObjectReader getObjectReader() { return objectReader; } | |
| 1401 | + @JsonProperty("ObjectReader") | |
| 1402 | + public void setObjectReader(UnionObjectReader value) { this.objectReader = value; } | |
| 1403 | + | |
| 1404 | + @JsonProperty("ObjectWriter") | |
| 1405 | + public UnionObjectWriter getObjectWriter() { return objectWriter; } | |
| 1406 | + @JsonProperty("ObjectWriter") | |
| 1407 | + public void setObjectWriter(UnionObjectWriter value) { this.objectWriter = value; } | |
| 1408 | + | |
| 1390 | 1409 | @JsonProperty("of") |
| 1391 | 1410 | public UnionOf getOf() { return of; } |
| 1392 | 1411 | @JsonProperty("of") |
| @@ -1637,6 +1656,11 @@ public class TopLevel { | ||
| 1637 | 1656 | @JsonProperty("Sendable") |
| 1638 | 1657 | public void setSendable(UnionSendable value) { this.sendable = value; } |
| 1639 | 1658 | |
| 1659 | + @JsonProperty("SerializationFeature") | |
| 1660 | + public UnionSerializationFeature getSerializationFeature() { return serializationFeature; } | |
| 1661 | + @JsonProperty("SerializationFeature") | |
| 1662 | + public void setSerializationFeature(UnionSerializationFeature value) { this.serializationFeature = value; } | |
| 1663 | + | |
| 1640 | 1664 | @JsonProperty("serialize") |
| 1641 | 1665 | public UnionSerialize getSerialize() { return serialize; } |
| 1642 | 1666 | @JsonProperty("serialize") |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionDeserializationFeature.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionDeserializationFeature.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionDeserializationFeature.Serializer.class) | |
| 12 | +public class UnionDeserializationFeature { | |
| 13 | + public Double doubleValue; | |
| 14 | + public DeserializationFeatureClass deserializationFeatureClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionDeserializationFeature> { | |
| 17 | + @Override | |
| 18 | + public UnionDeserializationFeature deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionDeserializationFeature value = new UnionDeserializationFeature(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.deserializationFeatureClassValue = jsonParser.readValueAs(DeserializationFeatureClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionDeserializationFeature"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionDeserializationFeature> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionDeserializationFeature obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.deserializationFeatureClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.deserializationFeatureClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionObjectReader.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionObjectReader.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionObjectReader.Serializer.class) | |
| 12 | +public class UnionObjectReader { | |
| 13 | + public Double doubleValue; | |
| 14 | + public ObjectReaderClass objectReaderClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionObjectReader> { | |
| 17 | + @Override | |
| 18 | + public UnionObjectReader deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionObjectReader value = new UnionObjectReader(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.objectReaderClassValue = jsonParser.readValueAs(ObjectReaderClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionObjectReader"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionObjectReader> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionObjectReader obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.objectReaderClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.objectReaderClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionObjectWriter.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionObjectWriter.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionObjectWriter.Serializer.class) | |
| 12 | +public class UnionObjectWriter { | |
| 13 | + public Double doubleValue; | |
| 14 | + public ObjectWriterClass objectWriterClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionObjectWriter> { | |
| 17 | + @Override | |
| 18 | + public UnionObjectWriter deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionObjectWriter value = new UnionObjectWriter(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.objectWriterClassValue = jsonParser.readValueAs(ObjectWriterClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionObjectWriter"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionObjectWriter> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionObjectWriter obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.objectWriterClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.objectWriterClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionSerializationFeature.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionSerializationFeature.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionSerializationFeature.Serializer.class) | |
| 12 | +public class UnionSerializationFeature { | |
| 13 | + public Double doubleValue; | |
| 14 | + public SerializationFeatureClass serializationFeatureClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionSerializationFeature> { | |
| 17 | + @Override | |
| 18 | + public UnionSerializationFeature deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionSerializationFeature value = new UnionSerializationFeature(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.serializationFeatureClassValue = jsonParser.readValueAs(SerializationFeatureClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionSerializationFeature"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionSerializationFeature> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionSerializationFeature obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.serializationFeatureClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.serializationFeatureClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / DeserializationFeatureClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class DeserializationFeatureClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / ObjectReaderClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class ObjectReaderClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / ObjectWriterClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class ObjectWriterClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / SerializationFeatureClass.java+7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.NONE) | |
| 6 | +public class SerializationFeatureClass { | |
| 7 | +} |
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+24 −0
| @@ -87,6 +87,7 @@ public class TopLevel { | ||
| 87 | 87 | private UnionDel del; |
| 88 | 88 | private UnionDelegate delegate; |
| 89 | 89 | private UnionDelete delete; |
| 90 | + private UnionDeserializationFeature deserializationFeature; | |
| 90 | 91 | private UnionDict dict; |
| 91 | 92 | private UnionDictionary dictionary; |
| 92 | 93 | private UnionDidSet didSet; |
| @@ -213,6 +214,8 @@ public class TopLevel { | ||
| 213 | 214 | private UnionNumber number; |
| 214 | 215 | private UnionObject object; |
| 215 | 216 | private UnionObjectMapper objectMapper; |
| 217 | + private UnionObjectReader objectReader; | |
| 218 | + private UnionObjectWriter objectWriter; | |
| 216 | 219 | private UnionOf of; |
| 217 | 220 | private UnionOneway oneway; |
| 218 | 221 | private UnionOpen open; |
| @@ -263,6 +266,7 @@ public class TopLevel { | ||
| 263 | 266 | private UnionSelf self; |
| 264 | 267 | private UnionSelfUnion topLevelSelf; |
| 265 | 268 | private UnionSendable sendable; |
| 269 | + private UnionSerializationFeature serializationFeature; | |
| 266 | 270 | private UnionSerialize serialize; |
| 267 | 271 | private UnionSerializerProvider serializerProvider; |
| 268 | 272 | private UnionSet set; |
| @@ -757,6 +761,11 @@ public class TopLevel { | ||
| 757 | 761 | @JsonProperty("delete") |
| 758 | 762 | public void setDelete(UnionDelete value) { this.delete = value; } |
| 759 | 763 | |
| 764 | + @JsonProperty("DeserializationFeature") | |
| 765 | + public UnionDeserializationFeature getDeserializationFeature() { return deserializationFeature; } | |
| 766 | + @JsonProperty("DeserializationFeature") | |
| 767 | + public void setDeserializationFeature(UnionDeserializationFeature value) { this.deserializationFeature = value; } | |
| 768 | + | |
| 760 | 769 | @JsonProperty("dict") |
| 761 | 770 | public UnionDict getDict() { return dict; } |
| 762 | 771 | @JsonProperty("dict") |
| @@ -1387,6 +1396,16 @@ public class TopLevel { | ||
| 1387 | 1396 | @JsonProperty("ObjectMapper") |
| 1388 | 1397 | public void setObjectMapper(UnionObjectMapper value) { this.objectMapper = value; } |
| 1389 | 1398 | |
| 1399 | + @JsonProperty("ObjectReader") | |
| 1400 | + public UnionObjectReader getObjectReader() { return objectReader; } | |
| 1401 | + @JsonProperty("ObjectReader") | |
| 1402 | + public void setObjectReader(UnionObjectReader value) { this.objectReader = value; } | |
| 1403 | + | |
| 1404 | + @JsonProperty("ObjectWriter") | |
| 1405 | + public UnionObjectWriter getObjectWriter() { return objectWriter; } | |
| 1406 | + @JsonProperty("ObjectWriter") | |
| 1407 | + public void setObjectWriter(UnionObjectWriter value) { this.objectWriter = value; } | |
| 1408 | + | |
| 1390 | 1409 | @JsonProperty("of") |
| 1391 | 1410 | public UnionOf getOf() { return of; } |
| 1392 | 1411 | @JsonProperty("of") |
| @@ -1637,6 +1656,11 @@ public class TopLevel { | ||
| 1637 | 1656 | @JsonProperty("Sendable") |
| 1638 | 1657 | public void setSendable(UnionSendable value) { this.sendable = value; } |
| 1639 | 1658 | |
| 1659 | + @JsonProperty("SerializationFeature") | |
| 1660 | + public UnionSerializationFeature getSerializationFeature() { return serializationFeature; } | |
| 1661 | + @JsonProperty("SerializationFeature") | |
| 1662 | + public void setSerializationFeature(UnionSerializationFeature value) { this.serializationFeature = value; } | |
| 1663 | + | |
| 1640 | 1664 | @JsonProperty("serialize") |
| 1641 | 1665 | public UnionSerialize getSerialize() { return serialize; } |
| 1642 | 1666 | @JsonProperty("serialize") |
Aschema-javadefault / src / main / java / io / quicktype / UnionDeserializationFeature.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionDeserializationFeature.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionDeserializationFeature.Serializer.class) | |
| 12 | +public class UnionDeserializationFeature { | |
| 13 | + public Double doubleValue; | |
| 14 | + public DeserializationFeatureClass deserializationFeatureClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionDeserializationFeature> { | |
| 17 | + @Override | |
| 18 | + public UnionDeserializationFeature deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionDeserializationFeature value = new UnionDeserializationFeature(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.deserializationFeatureClassValue = jsonParser.readValueAs(DeserializationFeatureClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionDeserializationFeature"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionDeserializationFeature> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionDeserializationFeature obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.deserializationFeatureClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.deserializationFeatureClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionObjectReader.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionObjectReader.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionObjectReader.Serializer.class) | |
| 12 | +public class UnionObjectReader { | |
| 13 | + public Double doubleValue; | |
| 14 | + public ObjectReaderClass objectReaderClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionObjectReader> { | |
| 17 | + @Override | |
| 18 | + public UnionObjectReader deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionObjectReader value = new UnionObjectReader(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.objectReaderClassValue = jsonParser.readValueAs(ObjectReaderClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionObjectReader"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionObjectReader> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionObjectReader obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.objectReaderClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.objectReaderClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionObjectWriter.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionObjectWriter.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionObjectWriter.Serializer.class) | |
| 12 | +public class UnionObjectWriter { | |
| 13 | + public Double doubleValue; | |
| 14 | + public ObjectWriterClass objectWriterClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionObjectWriter> { | |
| 17 | + @Override | |
| 18 | + public UnionObjectWriter deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionObjectWriter value = new UnionObjectWriter(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.objectWriterClassValue = jsonParser.readValueAs(ObjectWriterClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionObjectWriter"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionObjectWriter> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionObjectWriter obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.objectWriterClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.objectWriterClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionSerializationFeature.java+50 −0
| @@ -0,0 +1,50 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import java.io.IOException; | |
| 4 | +import java.io.IOException; | |
| 5 | +import com.fasterxml.jackson.core.*; | |
| 6 | +import com.fasterxml.jackson.databind.*; | |
| 7 | +import com.fasterxml.jackson.databind.annotation.*; | |
| 8 | +import com.fasterxml.jackson.core.type.*; | |
| 9 | + | |
| 10 | +@JsonDeserialize(using = UnionSerializationFeature.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionSerializationFeature.Serializer.class) | |
| 12 | +public class UnionSerializationFeature { | |
| 13 | + public Double doubleValue; | |
| 14 | + public SerializationFeatureClass serializationFeatureClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionSerializationFeature> { | |
| 17 | + @Override | |
| 18 | + public UnionSerializationFeature deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionSerializationFeature value = new UnionSerializationFeature(); | |
| 20 | + switch (jsonParser.currentToken()) { | |
| 21 | + case VALUE_NULL: | |
| 22 | + break; | |
| 23 | + case VALUE_NUMBER_INT: | |
| 24 | + case VALUE_NUMBER_FLOAT: | |
| 25 | + value.doubleValue = jsonParser.readValueAs(Double.class); | |
| 26 | + break; | |
| 27 | + case START_OBJECT: | |
| 28 | + value.serializationFeatureClassValue = jsonParser.readValueAs(SerializationFeatureClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionSerializationFeature"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionSerializationFeature> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionSerializationFeature obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.serializationFeatureClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.serializationFeatureClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Mschema-javascript-prop-typesdefault / toplevel.js+16 −0
| @@ -28,6 +28,7 @@ let _DateTime; | ||
| 28 | 28 | let _DateTimeStyles; |
| 29 | 29 | let _Decoder; |
| 30 | 30 | let _DecodingError; |
| 31 | +let _DeserializationFeature; | |
| 31 | 32 | let _Encoder; |
| 32 | 33 | let _EnumValues; |
| 33 | 34 | let _Equatable; |
| @@ -57,11 +58,14 @@ let _NSString; | ||
| 57 | 58 | let _Null; |
| 58 | 59 | let _None; |
| 59 | 60 | let _ObjectMapper; |
| 61 | +let _ObjectReader; | |
| 62 | +let _ObjectWriter; | |
| 60 | 63 | let _Protocol; |
| 61 | 64 | let _RegExp; |
| 62 | 65 | let _Sel; |
| 63 | 66 | let _Self; |
| 64 | 67 | let _Sendable; |
| 68 | +let _SerializationFeature; | |
| 65 | 69 | let _SerializerProvider; |
| 66 | 70 | let _SimpleModule; |
| 67 | 71 | let _Standards; |
| @@ -375,6 +379,8 @@ _Decoder = PropTypes.shape({ | ||
| 375 | 379 | }); |
| 376 | 380 | _DecodingError = PropTypes.shape({ |
| 377 | 381 | }); |
| 382 | +_DeserializationFeature = PropTypes.shape({ | |
| 383 | +}); | |
| 378 | 384 | _Encoder = PropTypes.shape({ |
| 379 | 385 | }); |
| 380 | 386 | _EnumValues = PropTypes.shape({ |
| @@ -433,6 +439,10 @@ _None = PropTypes.shape({ | ||
| 433 | 439 | }); |
| 434 | 440 | _ObjectMapper = PropTypes.shape({ |
| 435 | 441 | }); |
| 442 | +_ObjectReader = PropTypes.shape({ | |
| 443 | +}); | |
| 444 | +_ObjectWriter = PropTypes.shape({ | |
| 445 | +}); | |
| 436 | 446 | _Protocol = PropTypes.shape({ |
| 437 | 447 | }); |
| 438 | 448 | _RegExp = PropTypes.shape({ |
| @@ -443,6 +453,8 @@ _Self = PropTypes.shape({ | ||
| 443 | 453 | }); |
| 444 | 454 | _Sendable = PropTypes.shape({ |
| 445 | 455 | }); |
| 456 | +_SerializationFeature = PropTypes.shape({ | |
| 457 | +}); | |
| 446 | 458 | _SerializerProvider = PropTypes.shape({ |
| 447 | 459 | }); |
| 448 | 460 | _SimpleModule = PropTypes.shape({ |
| @@ -1094,6 +1106,7 @@ _TopLevel = PropTypes.shape({ | ||
| 1094 | 1106 | "del": PropTypes.oneOfType([_Del, PropTypes.number, PropTypes.oneOf([null])]), |
| 1095 | 1107 | "delegate": PropTypes.oneOfType([_Delegate, PropTypes.number, PropTypes.oneOf([null])]), |
| 1096 | 1108 | "delete": PropTypes.oneOfType([_Delete, PropTypes.number, PropTypes.oneOf([null])]), |
| 1109 | + "DeserializationFeature": PropTypes.oneOfType([_DeserializationFeature, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1097 | 1110 | "dict": PropTypes.oneOfType([_Dict, PropTypes.number, PropTypes.oneOf([null])]), |
| 1098 | 1111 | "dictionary": PropTypes.oneOfType([_Dictionary, PropTypes.number, PropTypes.oneOf([null])]), |
| 1099 | 1112 | "didSet": PropTypes.oneOfType([_DidSet, PropTypes.number, PropTypes.oneOf([null])]), |
| @@ -1220,6 +1233,8 @@ _TopLevel = PropTypes.shape({ | ||
| 1220 | 1233 | "number": PropTypes.oneOfType([_Number, PropTypes.number, PropTypes.oneOf([null])]), |
| 1221 | 1234 | "object": PropTypes.oneOfType([_Object, PropTypes.number, PropTypes.oneOf([null])]), |
| 1222 | 1235 | "ObjectMapper": PropTypes.oneOfType([_ObjectMapper, PropTypes.number, PropTypes.oneOf([null])]), |
| 1236 | + "ObjectReader": PropTypes.oneOfType([_ObjectReader, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1237 | + "ObjectWriter": PropTypes.oneOfType([_ObjectWriter, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1223 | 1238 | "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]), |
| 1224 | 1239 | "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]), |
| 1225 | 1240 | "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]), |
| @@ -1270,6 +1285,7 @@ _TopLevel = PropTypes.shape({ | ||
| 1270 | 1285 | "Self": PropTypes.oneOfType([_Self, PropTypes.number, PropTypes.oneOf([null])]), |
| 1271 | 1286 | "self": PropTypes.oneOfType([_SelfClass, PropTypes.number, PropTypes.oneOf([null])]), |
| 1272 | 1287 | "Sendable": PropTypes.oneOfType([_Sendable, PropTypes.number, PropTypes.oneOf([null])]), |
| 1288 | + "SerializationFeature": PropTypes.oneOfType([_SerializationFeature, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1273 | 1289 | "serialize": PropTypes.oneOfType([_Serialize, PropTypes.number, PropTypes.oneOf([null])]), |
| 1274 | 1290 | "SerializerProvider": PropTypes.oneOfType([_SerializerProvider, PropTypes.number, PropTypes.oneOf([null])]), |
| 1275 | 1291 | "set": PropTypes.oneOfType([_Set, PropTypes.number, PropTypes.oneOf([null])]), |
Mschema-javascriptdefault / TopLevel.js+12 −0
| @@ -277,6 +277,7 @@ const typeMap = { | ||
| 277 | 277 | { json: "del", js: "del", typ: u(undefined, u(r("Del"), 3.14)) }, |
| 278 | 278 | { json: "delegate", js: "delegate", typ: u(undefined, u(r("Delegate"), 3.14)) }, |
| 279 | 279 | { json: "delete", js: "delete", typ: u(undefined, u(r("Delete"), 3.14)) }, |
| 280 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: u(undefined, u(r("DeserializationFeature"), 3.14)) }, | |
| 280 | 281 | { json: "dict", js: "dict", typ: u(undefined, u(r("Dict"), 3.14)) }, |
| 281 | 282 | { json: "dictionary", js: "dictionary", typ: u(undefined, u(r("Dictionary"), 3.14)) }, |
| 282 | 283 | { json: "didSet", js: "didSet", typ: u(undefined, u(r("DidSet"), 3.14)) }, |
| @@ -403,6 +404,8 @@ const typeMap = { | ||
| 403 | 404 | { json: "number", js: "number", typ: u(undefined, u(r("Number"), 3.14)) }, |
| 404 | 405 | { json: "object", js: "object", typ: u(undefined, u(r("Object"), 3.14)) }, |
| 405 | 406 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) }, |
| 407 | + { json: "ObjectReader", js: "ObjectReader", typ: u(undefined, u(r("ObjectReader"), 3.14)) }, | |
| 408 | + { json: "ObjectWriter", js: "ObjectWriter", typ: u(undefined, u(r("ObjectWriter"), 3.14)) }, | |
| 406 | 409 | { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) }, |
| 407 | 410 | { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) }, |
| 408 | 411 | { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) }, |
| @@ -453,6 +456,7 @@ const typeMap = { | ||
| 453 | 456 | { json: "Self", js: "Self", typ: u(undefined, u(r("Self"), 3.14)) }, |
| 454 | 457 | { json: "self", js: "self", typ: u(undefined, u(r("SelfClass"), 3.14)) }, |
| 455 | 458 | { json: "Sendable", js: "Sendable", typ: u(undefined, u(r("Sendable"), 3.14)) }, |
| 459 | + { json: "SerializationFeature", js: "SerializationFeature", typ: u(undefined, u(r("SerializationFeature"), 3.14)) }, | |
| 456 | 460 | { json: "serialize", js: "serialize", typ: u(undefined, u(r("Serialize"), 3.14)) }, |
| 457 | 461 | { json: "SerializerProvider", js: "SerializerProvider", typ: u(undefined, u(r("SerializerProvider"), 3.14)) }, |
| 458 | 462 | { json: "set", js: "set", typ: u(undefined, u(r("Set"), 3.14)) }, |
| @@ -557,6 +561,8 @@ const typeMap = { | ||
| 557 | 561 | ], false), |
| 558 | 562 | "DecodingError": o([ |
| 559 | 563 | ], false), |
| 564 | + "DeserializationFeature": o([ | |
| 565 | + ], false), | |
| 560 | 566 | "Encoder": o([ |
| 561 | 567 | ], false), |
| 562 | 568 | "EnumValues": o([ |
| @@ -615,6 +621,10 @@ const typeMap = { | ||
| 615 | 621 | ], false), |
| 616 | 622 | "ObjectMapper": o([ |
| 617 | 623 | ], false), |
| 624 | + "ObjectReader": o([ | |
| 625 | + ], false), | |
| 626 | + "ObjectWriter": o([ | |
| 627 | + ], false), | |
| 618 | 628 | "Protocol": o([ |
| 619 | 629 | ], false), |
| 620 | 630 | "RegExp": o([ |
| @@ -625,6 +635,8 @@ const typeMap = { | ||
| 625 | 635 | ], false), |
| 626 | 636 | "Sendable": o([ |
| 627 | 637 | ], false), |
| 638 | + "SerializationFeature": o([ | |
| 639 | + ], false), | |
| 628 | 640 | "SerializerProvider": o([ |
| 629 | 641 | ], false), |
| 630 | 642 | "SimpleModule": o([ |
Mschema-objective-cdefault / QTTopLevel.h+20 −0
| @@ -74,6 +74,7 @@ | ||
| 74 | 74 | @class QTDel; |
| 75 | 75 | @class QTDelegate; |
| 76 | 76 | @class QTDelete; |
| 77 | +@class QTDeserializationFeature; | |
| 77 | 78 | @class QTDict; |
| 78 | 79 | @class QTDictionary; |
| 79 | 80 | @class QTDidSet; |
| @@ -180,6 +181,8 @@ | ||
| 180 | 181 | @class QTNumber; |
| 181 | 182 | @class QTObject; |
| 182 | 183 | @class QTObjectMapper; |
| 184 | +@class QTObjectReader; | |
| 185 | +@class QTObjectWriter; | |
| 183 | 186 | @class QTOf; |
| 184 | 187 | @class QTOneway; |
| 185 | 188 | @class QTOpen; |
| @@ -275,6 +278,7 @@ | ||
| 275 | 278 | @class QTSelect; |
| 276 | 279 | @class QTSelf; |
| 277 | 280 | @class QTSendable; |
| 281 | +@class QTSerializationFeature; | |
| 278 | 282 | @class QTSerialize; |
| 279 | 283 | @class QTSerializerProvider; |
| 280 | 284 | @class QTSet; |
| @@ -435,6 +439,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 435 | 439 | @property (nonatomic, nullable, copy) id del; |
| 436 | 440 | @property (nonatomic, nullable, copy) id delegate; |
| 437 | 441 | @property (nonatomic, nullable, copy) id delete; |
| 442 | +@property (nonatomic, nullable, copy) id deserializationFeature; | |
| 438 | 443 | @property (nonatomic, nullable, copy) id dict; |
| 439 | 444 | @property (nonatomic, nullable, copy) id dictionary; |
| 440 | 445 | @property (nonatomic, nullable, copy) id didSet; |
| @@ -561,6 +566,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 561 | 566 | @property (nonatomic, nullable, copy) id number; |
| 562 | 567 | @property (nonatomic, nullable, copy) id object; |
| 563 | 568 | @property (nonatomic, nullable, copy) id objectMapper; |
| 569 | +@property (nonatomic, nullable, copy) id objectReader; | |
| 570 | +@property (nonatomic, nullable, copy) id objectWriter; | |
| 564 | 571 | @property (nonatomic, nullable, copy) id of; |
| 565 | 572 | @property (nonatomic, nullable, copy) id oneway; |
| 566 | 573 | @property (nonatomic, nullable, copy) id open; |
| @@ -611,6 +618,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 611 | 618 | @property (nonatomic, nullable, copy) id self; |
| 612 | 619 | @property (nonatomic, nullable, copy) id qtTopLevelSelf; |
| 613 | 620 | @property (nonatomic, nullable, copy) id sendable; |
| 621 | +@property (nonatomic, nullable, copy) id serializationFeature; | |
| 614 | 622 | @property (nonatomic, nullable, copy) id serialize; |
| 615 | 623 | @property (nonatomic, nullable, copy) id serializerProvider; |
| 616 | 624 | @property (nonatomic, nullable, copy) id set; |
| @@ -895,6 +903,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 895 | 903 | @interface QTDelete : NSObject |
| 896 | 904 | @end |
| 897 | 905 | |
| 906 | +@interface QTDeserializationFeature : NSObject | |
| 907 | +@end | |
| 908 | + | |
| 898 | 909 | @interface QTDict : NSObject |
| 899 | 910 | @end |
| 900 | 911 | |
| @@ -1213,6 +1224,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1213 | 1224 | @interface QTObjectMapper : NSObject |
| 1214 | 1225 | @end |
| 1215 | 1226 | |
| 1227 | +@interface QTObjectReader : NSObject | |
| 1228 | +@end | |
| 1229 | + | |
| 1230 | +@interface QTObjectWriter : NSObject | |
| 1231 | +@end | |
| 1232 | + | |
| 1216 | 1233 | @interface QTOf : NSObject |
| 1217 | 1234 | @end |
| 1218 | 1235 | |
| @@ -1498,6 +1515,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1498 | 1515 | @interface QTSendable : NSObject |
| 1499 | 1516 | @end |
| 1500 | 1517 | |
| 1518 | +@interface QTSerializationFeature : NSObject | |
| 1519 | +@end | |
| 1520 | + | |
| 1501 | 1521 | @interface QTSerialize : NSObject |
| 1502 | 1522 | @end |
Mschema-objective-cdefault / QTTopLevel.m+180 −0
| @@ -353,6 +353,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 353 | 353 | - (NSDictionary *)JSONDictionary; |
| 354 | 354 | @end |
| 355 | 355 | |
| 356 | +@interface QTDeserializationFeature (JSONConversion) | |
| 357 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 358 | +- (NSDictionary *)JSONDictionary; | |
| 359 | +@end | |
| 360 | + | |
| 356 | 361 | @interface QTDict (JSONConversion) |
| 357 | 362 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 358 | 363 | - (NSDictionary *)JSONDictionary; |
| @@ -883,6 +888,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 883 | 888 | - (NSDictionary *)JSONDictionary; |
| 884 | 889 | @end |
| 885 | 890 | |
| 891 | +@interface QTObjectReader (JSONConversion) | |
| 892 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 893 | +- (NSDictionary *)JSONDictionary; | |
| 894 | +@end | |
| 895 | + | |
| 896 | +@interface QTObjectWriter (JSONConversion) | |
| 897 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 898 | +- (NSDictionary *)JSONDictionary; | |
| 899 | +@end | |
| 900 | + | |
| 886 | 901 | @interface QTOf (JSONConversion) |
| 887 | 902 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 888 | 903 | - (NSDictionary *)JSONDictionary; |
| @@ -1358,6 +1373,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1358 | 1373 | - (NSDictionary *)JSONDictionary; |
| 1359 | 1374 | @end |
| 1360 | 1375 | |
| 1376 | +@interface QTSerializationFeature (JSONConversion) | |
| 1377 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1378 | +- (NSDictionary *)JSONDictionary; | |
| 1379 | +@end | |
| 1380 | + | |
| 1361 | 1381 | @interface QTSerialize (JSONConversion) |
| 1362 | 1382 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1363 | 1383 | - (NSDictionary *)JSONDictionary; |
| @@ -1798,6 +1818,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1798 | 1818 | @"del": @"del", |
| 1799 | 1819 | @"delegate": @"delegate", |
| 1800 | 1820 | @"delete": @"delete", |
| 1821 | + @"DeserializationFeature": @"deserializationFeature", | |
| 1801 | 1822 | @"dict": @"dict", |
| 1802 | 1823 | @"dictionary": @"dictionary", |
| 1803 | 1824 | @"didSet": @"didSet", |
| @@ -1924,6 +1945,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1924 | 1945 | @"number": @"number", |
| 1925 | 1946 | @"object": @"object", |
| 1926 | 1947 | @"ObjectMapper": @"objectMapper", |
| 1948 | + @"ObjectReader": @"objectReader", | |
| 1949 | + @"ObjectWriter": @"objectWriter", | |
| 1927 | 1950 | @"of": @"of", |
| 1928 | 1951 | @"oneway": @"oneway", |
| 1929 | 1952 | @"open": @"open", |
| @@ -1974,6 +1997,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1974 | 1997 | @"Self": @"self", |
| 1975 | 1998 | @"self": @"qtTopLevelSelf", |
| 1976 | 1999 | @"Sendable": @"sendable", |
| 2000 | + @"SerializationFeature": @"serializationFeature", | |
| 1977 | 2001 | @"serialize": @"serialize", |
| 1978 | 2002 | @"SerializerProvider": @"serializerProvider", |
| 1979 | 2003 | @"set": @"set", |
| @@ -4763,6 +4787,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 4763 | 4787 | } |
| 4764 | 4788 | @end |
| 4765 | 4789 | |
| 4790 | +@implementation QTDeserializationFeature | |
| 4791 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 4792 | +{ | |
| 4793 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 4794 | + return properties = properties ? properties : @{ | |
| 4795 | + }; | |
| 4796 | +} | |
| 4797 | + | |
| 4798 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 4799 | +{ | |
| 4800 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTDeserializationFeature alloc] initWithJSONDictionary:dict] : nil; | |
| 4801 | +} | |
| 4802 | + | |
| 4803 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 4804 | +{ | |
| 4805 | + if (self = [super init]) { | |
| 4806 | + [self setValuesForKeysWithDictionary:dict]; | |
| 4807 | + } | |
| 4808 | + return self; | |
| 4809 | +} | |
| 4810 | + | |
| 4811 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 4812 | +{ | |
| 4813 | + id resolved = QTDeserializationFeature.properties[key]; | |
| 4814 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 4815 | +} | |
| 4816 | + | |
| 4817 | +- (void)setNilValueForKey:(NSString *)key | |
| 4818 | +{ | |
| 4819 | + id resolved = QTDeserializationFeature.properties[key]; | |
| 4820 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 4821 | +} | |
| 4822 | + | |
| 4823 | +- (NSDictionary *)JSONDictionary | |
| 4824 | +{ | |
| 4825 | + return [self dictionaryWithValuesForKeys:QTDeserializationFeature.properties.allValues]; | |
| 4826 | +} | |
| 4827 | +@end | |
| 4828 | + | |
| 4766 | 4829 | @implementation QTDict |
| 4767 | 4830 | + (NSDictionary<NSString *, NSString *> *)properties |
| 4768 | 4831 | { |
| @@ -8897,6 +8960,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8897 | 8960 | } |
| 8898 | 8961 | @end |
| 8899 | 8962 | |
| 8963 | +@implementation QTObjectReader | |
| 8964 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 8965 | +{ | |
| 8966 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 8967 | + return properties = properties ? properties : @{ | |
| 8968 | + }; | |
| 8969 | +} | |
| 8970 | + | |
| 8971 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 8972 | +{ | |
| 8973 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObjectReader alloc] initWithJSONDictionary:dict] : nil; | |
| 8974 | +} | |
| 8975 | + | |
| 8976 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 8977 | +{ | |
| 8978 | + if (self = [super init]) { | |
| 8979 | + [self setValuesForKeysWithDictionary:dict]; | |
| 8980 | + } | |
| 8981 | + return self; | |
| 8982 | +} | |
| 8983 | + | |
| 8984 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 8985 | +{ | |
| 8986 | + id resolved = QTObjectReader.properties[key]; | |
| 8987 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 8988 | +} | |
| 8989 | + | |
| 8990 | +- (void)setNilValueForKey:(NSString *)key | |
| 8991 | +{ | |
| 8992 | + id resolved = QTObjectReader.properties[key]; | |
| 8993 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 8994 | +} | |
| 8995 | + | |
| 8996 | +- (NSDictionary *)JSONDictionary | |
| 8997 | +{ | |
| 8998 | + return [self dictionaryWithValuesForKeys:QTObjectReader.properties.allValues]; | |
| 8999 | +} | |
| 9000 | +@end | |
| 9001 | + | |
| 9002 | +@implementation QTObjectWriter | |
| 9003 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 9004 | +{ | |
| 9005 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 9006 | + return properties = properties ? properties : @{ | |
| 9007 | + }; | |
| 9008 | +} | |
| 9009 | + | |
| 9010 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 9011 | +{ | |
| 9012 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTObjectWriter alloc] initWithJSONDictionary:dict] : nil; | |
| 9013 | +} | |
| 9014 | + | |
| 9015 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 9016 | +{ | |
| 9017 | + if (self = [super init]) { | |
| 9018 | + [self setValuesForKeysWithDictionary:dict]; | |
| 9019 | + } | |
| 9020 | + return self; | |
| 9021 | +} | |
| 9022 | + | |
| 9023 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 9024 | +{ | |
| 9025 | + id resolved = QTObjectWriter.properties[key]; | |
| 9026 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 9027 | +} | |
| 9028 | + | |
| 9029 | +- (void)setNilValueForKey:(NSString *)key | |
| 9030 | +{ | |
| 9031 | + id resolved = QTObjectWriter.properties[key]; | |
| 9032 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 9033 | +} | |
| 9034 | + | |
| 9035 | +- (NSDictionary *)JSONDictionary | |
| 9036 | +{ | |
| 9037 | + return [self dictionaryWithValuesForKeys:QTObjectWriter.properties.allValues]; | |
| 9038 | +} | |
| 9039 | +@end | |
| 9040 | + | |
| 8900 | 9041 | @implementation QTOf |
| 8901 | 9042 | + (NSDictionary<NSString *, NSString *> *)properties |
| 8902 | 9043 | { |
| @@ -12602,6 +12743,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12602 | 12743 | } |
| 12603 | 12744 | @end |
| 12604 | 12745 | |
| 12746 | +@implementation QTSerializationFeature | |
| 12747 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 12748 | +{ | |
| 12749 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 12750 | + return properties = properties ? properties : @{ | |
| 12751 | + }; | |
| 12752 | +} | |
| 12753 | + | |
| 12754 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 12755 | +{ | |
| 12756 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSerializationFeature alloc] initWithJSONDictionary:dict] : nil; | |
| 12757 | +} | |
| 12758 | + | |
| 12759 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 12760 | +{ | |
| 12761 | + if (self = [super init]) { | |
| 12762 | + [self setValuesForKeysWithDictionary:dict]; | |
| 12763 | + } | |
| 12764 | + return self; | |
| 12765 | +} | |
| 12766 | + | |
| 12767 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 12768 | +{ | |
| 12769 | + id resolved = QTSerializationFeature.properties[key]; | |
| 12770 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 12771 | +} | |
| 12772 | + | |
| 12773 | +- (void)setNilValueForKey:(NSString *)key | |
| 12774 | +{ | |
| 12775 | + id resolved = QTSerializationFeature.properties[key]; | |
| 12776 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 12777 | +} | |
| 12778 | + | |
| 12779 | +- (NSDictionary *)JSONDictionary | |
| 12780 | +{ | |
| 12781 | + return [self dictionaryWithValuesForKeys:QTSerializationFeature.properties.allValues]; | |
| 12782 | +} | |
| 12783 | +@end | |
| 12784 | + | |
| 12605 | 12785 | @implementation QTSerialize |
| 12606 | 12786 | + (NSDictionary<NSString *, NSString *> *)properties |
| 12607 | 12787 | { |
Mschema-phpdefault / TopLevel.php+762 −250
| @@ -88,6 +88,7 @@ class TopLevel { | ||
| 88 | 88 | private Del|float|null $del; // json:del Optional |
| 89 | 89 | private Delegate|float|null $delegate; // json:delegate Optional |
| 90 | 90 | private Delete|float|null $delete; // json:delete Optional |
| 91 | + private DeserializationFeature|float|null $deserializationFeature; // json:DeserializationFeature Optional | |
| 91 | 92 | private Dict|float|null $dict; // json:dict Optional |
| 92 | 93 | private Dictionary|float|null $dictionary; // json:dictionary Optional |
| 93 | 94 | private DidSet|float|null $didSet; // json:didSet Optional |
| @@ -214,6 +215,8 @@ class TopLevel { | ||
| 214 | 215 | private Number|float|null $number; // json:number Optional |
| 215 | 216 | private ObjectClass|float|null $object; // json:object Optional |
| 216 | 217 | private ObjectMapper|float|null $objectMapper; // json:ObjectMapper Optional |
| 218 | + private ObjectReader|float|null $objectReader; // json:ObjectReader Optional | |
| 219 | + private ObjectWriter|float|null $objectWriter; // json:ObjectWriter Optional | |
| 217 | 220 | private Of|float|null $of; // json:of Optional |
| 218 | 221 | private Oneway|float|null $oneway; // json:oneway Optional |
| 219 | 222 | private Open|float|null $open; // json:open Optional |
| @@ -264,6 +267,7 @@ class TopLevel { | ||
| 264 | 267 | private SelfClass|float|null $self; // json:Self Optional |
| 265 | 268 | private UnionSelfSelf|float|null $topLevelSelf; // json:self Optional |
| 266 | 269 | private Sendable|float|null $sendable; // json:Sendable Optional |
| 270 | + private SerializationFeature|float|null $serializationFeature; // json:SerializationFeature Optional | |
| 267 | 271 | private Serialize|float|null $serialize; // json:serialize Optional |
| 268 | 272 | private SerializerProvider|float|null $serializerProvider; // json:SerializerProvider Optional |
| 269 | 273 | private Set|float|null $set; // json:set Optional |
| @@ -423,6 +427,7 @@ class TopLevel { | ||
| 423 | 427 | * @param Del|float|null $del |
| 424 | 428 | * @param Delegate|float|null $delegate |
| 425 | 429 | * @param Delete|float|null $delete |
| 430 | + * @param DeserializationFeature|float|null $deserializationFeature | |
| 426 | 431 | * @param Dict|float|null $dict |
| 427 | 432 | * @param Dictionary|float|null $dictionary |
| 428 | 433 | * @param DidSet|float|null $didSet |
| @@ -549,6 +554,8 @@ class TopLevel { | ||
| 549 | 554 | * @param Number|float|null $number |
| 550 | 555 | * @param ObjectClass|float|null $object |
| 551 | 556 | * @param ObjectMapper|float|null $objectMapper |
| 557 | + * @param ObjectReader|float|null $objectReader | |
| 558 | + * @param ObjectWriter|float|null $objectWriter | |
| 552 | 559 | * @param Of|float|null $of |
| 553 | 560 | * @param Oneway|float|null $oneway |
| 554 | 561 | * @param Open|float|null $open |
| @@ -599,6 +606,7 @@ class TopLevel { | ||
| 599 | 606 | * @param SelfClass|float|null $self |
| 600 | 607 | * @param UnionSelfSelf|float|null $topLevelSelf |
| 601 | 608 | * @param Sendable|float|null $sendable |
| 609 | + * @param SerializationFeature|float|null $serializationFeature | |
| 602 | 610 | * @param Serialize|float|null $serialize |
| 603 | 611 | * @param SerializerProvider|float|null $serializerProvider |
| 604 | 612 | * @param Set|float|null $set |
| @@ -673,7 +681,7 @@ class TopLevel { | ||
| 673 | 681 | * @param Yes|float|null $yes |
| 674 | 682 | * @param YieldClass|float|null $yield |
| 675 | 683 | */ |
| 676 | - public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) { | |
| 684 | + public function __construct(Union|float|null $empty, UnionBoolBool|float|null $topLevelBool, Complex|float|null $complex, Imaginery|float|null $imaginery, AbstractClass|float|null $abstract, Alignas|float|null $alignas, Alignof|float|null $alignof, AndClass|float|null $and, AndEq|float|null $andEq, AnyClass|float|null $topLevelAny, Any|float|null $any, ArrayClass|float|null $array, AsClass|float|null $as, ASM|float|null $asm, Assert|float|null $assert, Associatedtype|float|null $associatedtype, Associativity|float|null $associativity, Async|float|null $async, Atomic|float|null $atomic, AtomicCancel|float|null $atomicCancel, AtomicCommit|float|null $atomicCommit, AtomicNoexcept|float|null $atomicNoexcept, Auto|float|null $auto, Await|float|null $await, Base|float|null $base, Bitand|float|null $bitand, Bitor|float|null $bitor, BOOLClass|float|null $bool, UnionBoolBoolClass|float|null $purpleBool, Boolean|float|null $boolean, BreakClass|float|null $break, Bycopy|float|null $bycopy, Byref|float|null $byref, Byte|float|null $byte, Calendar|float|null $calendar, CaseClass|float|null $case, CatchClass|float|null $catch, Chan|float|null $chan, Char|float|null $char, Char16T|float|null $char16T, Char32T|float|null $char32T, Checked|float|null $checked, UnionClassClass|float|null $topLevelClass, ClassClass|float|null $class, CloneClass|float|null $clone, CoAwait|float|null $coAwait, CoReturn|float|null $coReturn, CoYield|float|null $coYield, Codable|float|null $codable, CodingKey|float|null $codingKey, CodingKeys|float|null $codingKeys, Compl|float|null $compl, Concept|float|null $concept, Console|float|null $console, ConstClass|float|null $const, ConstCast|float|null $constCast, Constexpr|float|null $constexpr, Constructor|float|null $constructor, ContinueClass|float|null $continue, Convenience|float|null $convenience, Convert|float|null $convert, ConverterClass|float|null $converter, CultureInfo|float|null $cultureInfo, Date|float|null $date, DateParseHandling|float|null $dateParseHandling, DateFormatter|float|null $dateFormatter, DateOnly|float|null $dateOnly, DateOnlyConverter|float|null $dateOnlyConverter, DateTimeClass|float|null $dateTime, DateTimeStyles|float|null $dateTimeStyles, Debugger|float|null $debugger, Decimal|float|null $decimal, DeclareClass|float|null $declare, Decltype|float|null $decltype, DecodeString|float|null $decodeString, Decoder|float|null $decoder, DecodingError|float|null $decodingError, Def|float|null $def, DefaultClass|float|null $default, Defer|float|null $defer, Deinit|float|null $deinit, Del|float|null $del, Delegate|float|null $delegate, Delete|float|null $delete, DeserializationFeature|float|null $deserializationFeature, Dict|float|null $dict, Dictionary|float|null $dictionary, DidSet|float|null $didSet, DoClass|float|null $do, Double|float|null $double, ?float $dummy, Dynamic|float|null $dynamic, DynamicCast|float|null $dynamicCast, Elif|float|null $elif, ElseClass|float|null $else, EncodeQuickType|float|null $encodeQuickType, Encoder|float|null $encoder, EnumClass|float|null $enum, EnumValues|float|null $enumValues, EqualityContract|float|null $equalityContract, Equatable|float|null $equatable, Event|float|null $event, Except|float|null $except, ExceptionClass|float|null $exception, Explicit|float|null $explicit, Export|float|null $export, Exposing|float|null $exposing, ExtendsClass|float|null $extends, Extension|float|null $extension, Extern|float|null $extern, Fallthrough|float|null $fallthrough, UnionFalseFalse|float|null $topLevelFalse, FalseClass|float|null $false, Fileprivate|float|null $fileprivate, FinalClass|float|null $final, FinallyClass|float|null $finally, Fixed|float|null $fixed, FloatClass|float|null $float, ForClass|float|null $for, ForeachClass|float|null $foreach, FormatException|float|null $formatException, Friend|float|null $friend, From|float|null $from, FromJSON|float|null $fromJSON, Func|float|null $func, FunctionClass|float|null $function, Get|float|null $get, GlobalClass|float|null $global, Go|float|null $go, GotoClass|float|null $goto, Guard|float|null $guard, Hashable|float|null $hashable, HashCode|float|null $hashCode, Hasher|float|null $hasher, HasOwnProperty|float|null $hasOwnProperty, ID|float|null $id, IfClass|float|null $if, Imp|float|null $imp, ImplementsClass|float|null $implements, Implicit|float|null $implicit, Import|float|null $import, In|float|null $in, Indirect|float|null $indirect, Infix|float|null $infix, Init|float|null $init, Inline|float|null $inline, Inout|float|null $inout, InstanceofClass|float|null $instanceof, IntClass|float|null $int, InterfaceClass|float|null $interface, Internal|float|null $internal, Is|float|null $is, ISODateTimeOffsetConverter|float|null $isoDateTimeOffsetConverter, IterableClass|float|null $iterable, Jdec|float|null $jdec, Jenc|float|null $jenc, Jpipe|float|null $jpipe, JSON|float|null $json, JSONConverter|float|null $jsonConverter, JSONSerializer|float|null $jsonSerializer, JSONToken|float|null $jsonToken, JSONWriter|float|null $jsonWriter, JSONAny|float|null $jsonAny, JSONCodingKey|float|null $jsonCodingKey, JSONDecoder|float|null $jsonDecoder, JSONEncoder|float|null $jsonEncoder, JSONExceptionClass|float|null $jsonException, JSONGenerator|float|null $jsonGenerator, JSONNode|float|null $jsonNode, JSONNull|float|null $jsonNull, JSONParser|float|null $jsonParser, JSONReader|float|null $jsonReader, JSONTokenType|float|null $jsonTokenType, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocaleClass|float|null $locale, Lock|float|null $lock, Long|float|null $long, Map|float|null $map, MapEntry|float|null $mapEntry, MetadataPropertyHandling|float|null $metadataPropertyHandling, Module|float|null $module, Mutable|float|null $mutable, Mutating|float|null $mutating, NamespaceClass|float|null $namespace, Native|float|null $native, NewClass|float|null $new, Newtonsoft|float|null $newtonsoft, Nil|float|null $nil, No|float|null $no, Noexcept|float|null $noexcept, Nonatomic|float|null $nonatomic, NoneClass|float|null $topLevelNone, None|float|null $none, Nonlocal|float|null $nonlocal, Nonmutating|float|null $nonmutating, NoSuchMethod|float|null $noSuchMethod, Not|float|null $not, NotEq|float|null $notEq, NSError|float|null $nsError, NSObject|float|null $nsObject, NSString|float|null $nsString, NULLClass|float|null $null, UnionNullNull|float|null $topLevelNull, Nullptr|float|null $nullptr, Number|float|null $number, ObjectClass|float|null $object, ObjectMapper|float|null $objectMapper, ObjectReader|float|null $objectReader, ObjectWriter|float|null $objectWriter, Of|float|null $of, Oneway|float|null $oneway, Open|float|null $open, Operator|float|null $operator, Optional|float|null $optional, OrClass|float|null $or, OrEq|float|null $orEq, Out|float|null $out, OverrideClass|float|null $override, Package|float|null $package, Params|float|null $params, Pass|float|null $pass, Port|float|null $port, Postfix|float|null $postfix, Precedence|float|null $precedence, Prefix|float|null $prefix, PrintClass|float|null $print, Printf|float|null $printf, PrintMembers|float|null $printMembers, PrivateClass|float|null $private, ProtectedClass|float|null $protected, Protocol|float|null $protocol, ProtocolClass|float|null $topLevelProtocol, PublicClass|float|null $public, Quicktype|float|null $quicktype, Raise|float|null $raise, Range|float|null $range, ReadonlyClass|float|null $readonly, Ref|float|null $ref, RegExp|float|null $regExp, Register|float|null $register, ReinterpretCast|float|null $reinterpretCast, Repeat|float|null $repeat, RequireClass|float|null $require, Required|float|null $required, Requires|float|null $requires, Restrict|float|null $restrict, Retain|float|null $retain, Rethrows|float|null $rethrows, ReturnClass|float|null $return, Right|float|null $right, RuntimeType|float|null $runtimeType, S|float|null $s, Sbyte|float|null $sbyte, Sealed|float|null $sealed, Sel|float|null $sel, Select|float|null $select, SelfClass|float|null $self, UnionSelfSelf|float|null $topLevelSelf, Sendable|float|null $sendable, SerializationFeature|float|null $serializationFeature, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, Set|float|null $set, Short|float|null $short, Signed|float|null $signed, SimpleModule|float|null $simpleModule, Sizeof|float|null $sizeof, Stackalloc|float|null $stackalloc, Standards|float|null $standards, StaticClass|float|null $static, StaticAssert|float|null $staticAssert, StaticCast|float|null $staticCast, StdDeserializer|float|null $stdDeserializer, StdSerializer|float|null $stdSerializer, Strictfp|float|null $strictfp, StringClass|float|null $string, Struct|float|null $struct, Subscript|float|null $subscript, Super|float|null $super, SwitchClass|float|null $switch, Symbol|float|null $symbol, Synchronized|float|null $synchronized, System|float|null $system, Template|float|null $template, Then|float|null $then, This|float|null $topLevelThis, ThreadLocal|float|null $threadLocal, ThrowClass|float|null $throw, Throws|float|null $throws, TimeOnly|float|null $timeOnly, TimeOnlyConverter|float|null $timeOnlyConverter, TimeZone|float|null $timeZone, ToJSON|float|null $toJSON, TopLevelClass|float|null $topLevel, ToString|float|null $toString, Transient|float|null $transient, TrueClass|float|null $true, UnionTrueTrue|float|null $topLevelTrue, TryClass|float|null $try, Type|float|null $type, TypeClass|float|null $topLevelType, Typealias|float|null $typealias, Typedef|float|null $typedef, Typeid|float|null $typeid, Typename|float|null $typename, Typeof|float|null $typeof, Uint|float|null $uint, Ulong|float|null $ulong, Unchecked|float|null $unchecked, Undefined|float|null $undefined, UnionClass|float|null $union, Unowned|float|null $unowned, Unsafe|float|null $unsafe, Unsigned|float|null $unsigned, Ushort|float|null $ushort, Using|float|null $using, Utf8JSONReader|float|null $utf8JSONReader, Utf8JSONWriter|float|null $utf8JSONWriter, UUID|float|null $uuid, VarClass|float|null $var, Virtual|float|null $virtual, VoidClass|float|null $void, Volatile|float|null $volatile, WcharT|float|null $wcharT, Weak|float|null $weak, Where|float|null $where, WhileClass|float|null $while, WillSet|float|null $willSet, With|float|null $with, XorClass|float|null $xor, XorEq|float|null $xorEq, Yes|float|null $yes, YieldClass|float|null $yield) { | |
| 677 | 685 | $this->empty = $empty; |
| 678 | 686 | $this->topLevelBool = $topLevelBool; |
| 679 | 687 | $this->complex = $complex; |
| @@ -758,6 +766,7 @@ class TopLevel { | ||
| 758 | 766 | $this->del = $del; |
| 759 | 767 | $this->delegate = $delegate; |
| 760 | 768 | $this->delete = $delete; |
| 769 | + $this->deserializationFeature = $deserializationFeature; | |
| 761 | 770 | $this->dict = $dict; |
| 762 | 771 | $this->dictionary = $dictionary; |
| 763 | 772 | $this->didSet = $didSet; |
| @@ -884,6 +893,8 @@ class TopLevel { | ||
| 884 | 893 | $this->number = $number; |
| 885 | 894 | $this->object = $object; |
| 886 | 895 | $this->objectMapper = $objectMapper; |
| 896 | + $this->objectReader = $objectReader; | |
| 897 | + $this->objectWriter = $objectWriter; | |
| 887 | 898 | $this->of = $of; |
| 888 | 899 | $this->oneway = $oneway; |
| 889 | 900 | $this->open = $open; |
| @@ -934,6 +945,7 @@ class TopLevel { | ||
| 934 | 945 | $this->self = $self; |
| 935 | 946 | $this->topLevelSelf = $topLevelSelf; |
| 936 | 947 | $this->sendable = $sendable; |
| 948 | + $this->serializationFeature = $serializationFeature; | |
| 937 | 949 | $this->serialize = $serialize; |
| 938 | 950 | $this->serializerProvider = $serializerProvider; |
| 939 | 951 | $this->set = $set; |
| @@ -7393,6 +7405,82 @@ class TopLevel { | ||
| 7393 | 7405 | return Delete::sample(); /*114:delete*/ |
| 7394 | 7406 | } |
| 7395 | 7407 | |
| 7408 | + /** | |
| 7409 | + * @param stdClass|float|null $value | |
| 7410 | + * @throws Exception | |
| 7411 | + * @return DeserializationFeature|float|null | |
| 7412 | + */ | |
| 7413 | + public static function fromDeserializationFeature(stdClass|float|null $value): DeserializationFeature|float|null { | |
| 7414 | + if (is_null($value)) { | |
| 7415 | + return $value; /*null*/ | |
| 7416 | + } elseif (is_object($value)) { | |
| 7417 | + return DeserializationFeature::from($value); /*class*/ | |
| 7418 | + } elseif (is_float($value) || is_int($value)) { | |
| 7419 | + return $value; /*float*/ | |
| 7420 | + } else { | |
| 7421 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 7422 | + } | |
| 7423 | + } | |
| 7424 | + | |
| 7425 | + /** | |
| 7426 | + * @throws Exception | |
| 7427 | + * @return stdClass|float|null | |
| 7428 | + */ | |
| 7429 | + public function toDeserializationFeature(): stdClass|float|null { | |
| 7430 | + if (TopLevel::validateDeserializationFeature($this->deserializationFeature)) { | |
| 7431 | + if (is_null($this->deserializationFeature)) { | |
| 7432 | + return $this->deserializationFeature; /*null*/ | |
| 7433 | + } elseif ($this->deserializationFeature instanceof DeserializationFeature) { | |
| 7434 | + return $this->deserializationFeature->to(); /*class*/ | |
| 7435 | + } elseif (is_float($this->deserializationFeature) || is_int($this->deserializationFeature)) { | |
| 7436 | + return $this->deserializationFeature; /*float*/ | |
| 7437 | + } else { | |
| 7438 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 7439 | + } | |
| 7440 | + } | |
| 7441 | + throw new Exception('never get to this TopLevel::deserializationFeature'); | |
| 7442 | + } | |
| 7443 | + | |
| 7444 | + /** | |
| 7445 | + * @param DeserializationFeature|float|null | |
| 7446 | + * @return bool | |
| 7447 | + * @throws Exception | |
| 7448 | + */ | |
| 7449 | + public static function validateDeserializationFeature(DeserializationFeature|float|null $value): bool { | |
| 7450 | + if (is_null($value)) { | |
| 7451 | + if (!is_null($value)) { | |
| 7452 | + throw new Exception("Attribute Error:TopLevel::deserializationFeature"); | |
| 7453 | + } | |
| 7454 | + } elseif ($value instanceof DeserializationFeature) { | |
| 7455 | + $value->validate(); | |
| 7456 | + } elseif (is_float($value) || is_int($value)) { | |
| 7457 | + if (!is_float($value) && !is_int($value)) { | |
| 7458 | + throw new Exception("Attribute Error:TopLevel::deserializationFeature"); | |
| 7459 | + } | |
| 7460 | + } else { | |
| 7461 | + throw new Exception("Attribute Error:TopLevel::deserializationFeature"); | |
| 7462 | + } | |
| 7463 | + return true; | |
| 7464 | + } | |
| 7465 | + | |
| 7466 | + /** | |
| 7467 | + * @throws Exception | |
| 7468 | + * @return DeserializationFeature|float|null | |
| 7469 | + */ | |
| 7470 | + public function getDeserializationFeature(): DeserializationFeature|float|null { | |
| 7471 | + if (TopLevel::validateDeserializationFeature($this->deserializationFeature)) { | |
| 7472 | + return $this->deserializationFeature; | |
| 7473 | + } | |
| 7474 | + throw new Exception('never get to getDeserializationFeature TopLevel::deserializationFeature'); | |
| 7475 | + } | |
| 7476 | + | |
| 7477 | + /** | |
| 7478 | + * @return DeserializationFeature|float|null | |
| 7479 | + */ | |
| 7480 | + public static function sampleDeserializationFeature(): DeserializationFeature|float|null { | |
| 7481 | + return DeserializationFeature::sample(); /*115:deserializationFeature*/ | |
| 7482 | + } | |
| 7483 | + | |
| 7396 | 7484 | /** |
| 7397 | 7485 | * @param stdClass|float|null $value |
| 7398 | 7486 | * @throws Exception |
| @@ -7466,7 +7554,7 @@ class TopLevel { | ||
| 7466 | 7554 | * @return Dict|float|null |
| 7467 | 7555 | */ |
| 7468 | 7556 | public static function sampleDict(): Dict|float|null { |
| 7469 | - return Dict::sample(); /*115:dict*/ | |
| 7557 | + return Dict::sample(); /*116:dict*/ | |
| 7470 | 7558 | } |
| 7471 | 7559 | |
| 7472 | 7560 | /** |
| @@ -7542,7 +7630,7 @@ class TopLevel { | ||
| 7542 | 7630 | * @return Dictionary|float|null |
| 7543 | 7631 | */ |
| 7544 | 7632 | public static function sampleDictionary(): Dictionary|float|null { |
| 7545 | - return Dictionary::sample(); /*116:dictionary*/ | |
| 7633 | + return Dictionary::sample(); /*117:dictionary*/ | |
| 7546 | 7634 | } |
| 7547 | 7635 | |
| 7548 | 7636 | /** |
| @@ -7618,7 +7706,7 @@ class TopLevel { | ||
| 7618 | 7706 | * @return DidSet|float|null |
| 7619 | 7707 | */ |
| 7620 | 7708 | public static function sampleDidSet(): DidSet|float|null { |
| 7621 | - return DidSet::sample(); /*117:didSet*/ | |
| 7709 | + return DidSet::sample(); /*118:didSet*/ | |
| 7622 | 7710 | } |
| 7623 | 7711 | |
| 7624 | 7712 | /** |
| @@ -7694,7 +7782,7 @@ class TopLevel { | ||
| 7694 | 7782 | * @return DoClass|float|null |
| 7695 | 7783 | */ |
| 7696 | 7784 | public static function sampleDo(): DoClass|float|null { |
| 7697 | - return DoClass::sample(); /*118:do*/ | |
| 7785 | + return DoClass::sample(); /*119:do*/ | |
| 7698 | 7786 | } |
| 7699 | 7787 | |
| 7700 | 7788 | /** |
| @@ -7770,7 +7858,7 @@ class TopLevel { | ||
| 7770 | 7858 | * @return Double|float|null |
| 7771 | 7859 | */ |
| 7772 | 7860 | public static function sampleDouble(): Double|float|null { |
| 7773 | - return Double::sample(); /*119:double*/ | |
| 7861 | + return Double::sample(); /*120:double*/ | |
| 7774 | 7862 | } |
| 7775 | 7863 | |
| 7776 | 7864 | /** |
| @@ -7827,7 +7915,7 @@ class TopLevel { | ||
| 7827 | 7915 | * @return ?float |
| 7828 | 7916 | */ |
| 7829 | 7917 | public static function sampleDummy(): ?float { |
| 7830 | - return 120.12; /*120:dummy*/ | |
| 7918 | + return 121.121; /*121:dummy*/ | |
| 7831 | 7919 | } |
| 7832 | 7920 | |
| 7833 | 7921 | /** |
| @@ -7903,7 +7991,7 @@ class TopLevel { | ||
| 7903 | 7991 | * @return Dynamic|float|null |
| 7904 | 7992 | */ |
| 7905 | 7993 | public static function sampleDynamic(): Dynamic|float|null { |
| 7906 | - return Dynamic::sample(); /*121:dynamic*/ | |
| 7994 | + return Dynamic::sample(); /*122:dynamic*/ | |
| 7907 | 7995 | } |
| 7908 | 7996 | |
| 7909 | 7997 | /** |
| @@ -7979,7 +8067,7 @@ class TopLevel { | ||
| 7979 | 8067 | * @return DynamicCast|float|null |
| 7980 | 8068 | */ |
| 7981 | 8069 | public static function sampleDynamicCast(): DynamicCast|float|null { |
| 7982 | - return DynamicCast::sample(); /*122:dynamicCast*/ | |
| 8070 | + return DynamicCast::sample(); /*123:dynamicCast*/ | |
| 7983 | 8071 | } |
| 7984 | 8072 | |
| 7985 | 8073 | /** |
| @@ -8055,7 +8143,7 @@ class TopLevel { | ||
| 8055 | 8143 | * @return Elif|float|null |
| 8056 | 8144 | */ |
| 8057 | 8145 | public static function sampleElif(): Elif|float|null { |
| 8058 | - return Elif::sample(); /*123:elif*/ | |
| 8146 | + return Elif::sample(); /*124:elif*/ | |
| 8059 | 8147 | } |
| 8060 | 8148 | |
| 8061 | 8149 | /** |
| @@ -8131,7 +8219,7 @@ class TopLevel { | ||
| 8131 | 8219 | * @return ElseClass|float|null |
| 8132 | 8220 | */ |
| 8133 | 8221 | public static function sampleElse(): ElseClass|float|null { |
| 8134 | - return ElseClass::sample(); /*124:else*/ | |
| 8222 | + return ElseClass::sample(); /*125:else*/ | |
| 8135 | 8223 | } |
| 8136 | 8224 | |
| 8137 | 8225 | /** |
| @@ -8207,7 +8295,7 @@ class TopLevel { | ||
| 8207 | 8295 | * @return EncodeQuickType|float|null |
| 8208 | 8296 | */ |
| 8209 | 8297 | public static function sampleEncodeQuickType(): EncodeQuickType|float|null { |
| 8210 | - return EncodeQuickType::sample(); /*125:encodeQuickType*/ | |
| 8298 | + return EncodeQuickType::sample(); /*126:encodeQuickType*/ | |
| 8211 | 8299 | } |
| 8212 | 8300 | |
| 8213 | 8301 | /** |
| @@ -8283,7 +8371,7 @@ class TopLevel { | ||
| 8283 | 8371 | * @return Encoder|float|null |
| 8284 | 8372 | */ |
| 8285 | 8373 | public static function sampleEncoder(): Encoder|float|null { |
| 8286 | - return Encoder::sample(); /*126:encoder*/ | |
| 8374 | + return Encoder::sample(); /*127:encoder*/ | |
| 8287 | 8375 | } |
| 8288 | 8376 | |
| 8289 | 8377 | /** |
| @@ -8359,7 +8447,7 @@ class TopLevel { | ||
| 8359 | 8447 | * @return EnumClass|float|null |
| 8360 | 8448 | */ |
| 8361 | 8449 | public static function sampleEnum(): EnumClass|float|null { |
| 8362 | - return EnumClass::sample(); /*127:enum*/ | |
| 8450 | + return EnumClass::sample(); /*128:enum*/ | |
| 8363 | 8451 | } |
| 8364 | 8452 | |
| 8365 | 8453 | /** |
| @@ -8435,7 +8523,7 @@ class TopLevel { | ||
| 8435 | 8523 | * @return EnumValues|float|null |
| 8436 | 8524 | */ |
| 8437 | 8525 | public static function sampleEnumValues(): EnumValues|float|null { |
| 8438 | - return EnumValues::sample(); /*128:enumValues*/ | |
| 8526 | + return EnumValues::sample(); /*129:enumValues*/ | |
| 8439 | 8527 | } |
| 8440 | 8528 | |
| 8441 | 8529 | /** |
| @@ -8511,7 +8599,7 @@ class TopLevel { | ||
| 8511 | 8599 | * @return EqualityContract|float|null |
| 8512 | 8600 | */ |
| 8513 | 8601 | public static function sampleEqualityContract(): EqualityContract|float|null { |
| 8514 | - return EqualityContract::sample(); /*129:equalityContract*/ | |
| 8602 | + return EqualityContract::sample(); /*130:equalityContract*/ | |
| 8515 | 8603 | } |
| 8516 | 8604 | |
| 8517 | 8605 | /** |
| @@ -8587,7 +8675,7 @@ class TopLevel { | ||
| 8587 | 8675 | * @return Equatable|float|null |
| 8588 | 8676 | */ |
| 8589 | 8677 | public static function sampleEquatable(): Equatable|float|null { |
| 8590 | - return Equatable::sample(); /*130:equatable*/ | |
| 8678 | + return Equatable::sample(); /*131:equatable*/ | |
| 8591 | 8679 | } |
| 8592 | 8680 | |
| 8593 | 8681 | /** |
| @@ -8663,7 +8751,7 @@ class TopLevel { | ||
| 8663 | 8751 | * @return Event|float|null |
| 8664 | 8752 | */ |
| 8665 | 8753 | public static function sampleEvent(): Event|float|null { |
| 8666 | - return Event::sample(); /*131:event*/ | |
| 8754 | + return Event::sample(); /*132:event*/ | |
| 8667 | 8755 | } |
| 8668 | 8756 | |
| 8669 | 8757 | /** |
| @@ -8739,7 +8827,7 @@ class TopLevel { | ||
| 8739 | 8827 | * @return Except|float|null |
| 8740 | 8828 | */ |
| 8741 | 8829 | public static function sampleExcept(): Except|float|null { |
| 8742 | - return Except::sample(); /*132:except*/ | |
| 8830 | + return Except::sample(); /*133:except*/ | |
| 8743 | 8831 | } |
| 8744 | 8832 | |
| 8745 | 8833 | /** |
| @@ -8815,7 +8903,7 @@ class TopLevel { | ||
| 8815 | 8903 | * @return ExceptionClass|float|null |
| 8816 | 8904 | */ |
| 8817 | 8905 | public static function sampleException(): ExceptionClass|float|null { |
| 8818 | - return ExceptionClass::sample(); /*133:exception*/ | |
| 8906 | + return ExceptionClass::sample(); /*134:exception*/ | |
| 8819 | 8907 | } |
| 8820 | 8908 | |
| 8821 | 8909 | /** |
| @@ -8891,7 +8979,7 @@ class TopLevel { | ||
| 8891 | 8979 | * @return Explicit|float|null |
| 8892 | 8980 | */ |
| 8893 | 8981 | public static function sampleExplicit(): Explicit|float|null { |
| 8894 | - return Explicit::sample(); /*134:explicit*/ | |
| 8982 | + return Explicit::sample(); /*135:explicit*/ | |
| 8895 | 8983 | } |
| 8896 | 8984 | |
| 8897 | 8985 | /** |
| @@ -8967,7 +9055,7 @@ class TopLevel { | ||
| 8967 | 9055 | * @return Export|float|null |
| 8968 | 9056 | */ |
| 8969 | 9057 | public static function sampleExport(): Export|float|null { |
| 8970 | - return Export::sample(); /*135:export*/ | |
| 9058 | + return Export::sample(); /*136:export*/ | |
| 8971 | 9059 | } |
| 8972 | 9060 | |
| 8973 | 9061 | /** |
| @@ -9043,7 +9131,7 @@ class TopLevel { | ||
| 9043 | 9131 | * @return Exposing|float|null |
| 9044 | 9132 | */ |
| 9045 | 9133 | public static function sampleExposing(): Exposing|float|null { |
| 9046 | - return Exposing::sample(); /*136:exposing*/ | |
| 9134 | + return Exposing::sample(); /*137:exposing*/ | |
| 9047 | 9135 | } |
| 9048 | 9136 | |
| 9049 | 9137 | /** |
| @@ -9119,7 +9207,7 @@ class TopLevel { | ||
| 9119 | 9207 | * @return ExtendsClass|float|null |
| 9120 | 9208 | */ |
| 9121 | 9209 | public static function sampleExtends(): ExtendsClass|float|null { |
| 9122 | - return ExtendsClass::sample(); /*137:extends*/ | |
| 9210 | + return ExtendsClass::sample(); /*138:extends*/ | |
| 9123 | 9211 | } |
| 9124 | 9212 | |
| 9125 | 9213 | /** |
| @@ -9195,7 +9283,7 @@ class TopLevel { | ||
| 9195 | 9283 | * @return Extension|float|null |
| 9196 | 9284 | */ |
| 9197 | 9285 | public static function sampleExtension(): Extension|float|null { |
| 9198 | - return Extension::sample(); /*138:extension*/ | |
| 9286 | + return Extension::sample(); /*139:extension*/ | |
| 9199 | 9287 | } |
| 9200 | 9288 | |
| 9201 | 9289 | /** |
| @@ -9271,7 +9359,7 @@ class TopLevel { | ||
| 9271 | 9359 | * @return Extern|float|null |
| 9272 | 9360 | */ |
| 9273 | 9361 | public static function sampleExtern(): Extern|float|null { |
| 9274 | - return Extern::sample(); /*139:extern*/ | |
| 9362 | + return Extern::sample(); /*140:extern*/ | |
| 9275 | 9363 | } |
| 9276 | 9364 | |
| 9277 | 9365 | /** |
| @@ -9347,7 +9435,7 @@ class TopLevel { | ||
| 9347 | 9435 | * @return Fallthrough|float|null |
| 9348 | 9436 | */ |
| 9349 | 9437 | public static function sampleFallthrough(): Fallthrough|float|null { |
| 9350 | - return Fallthrough::sample(); /*140:fallthrough*/ | |
| 9438 | + return Fallthrough::sample(); /*141:fallthrough*/ | |
| 9351 | 9439 | } |
| 9352 | 9440 | |
| 9353 | 9441 | /** |
| @@ -9423,7 +9511,7 @@ class TopLevel { | ||
| 9423 | 9511 | * @return UnionFalseFalse|float|null |
| 9424 | 9512 | */ |
| 9425 | 9513 | public static function sampleTopLevelFalse(): UnionFalseFalse|float|null { |
| 9426 | - return UnionFalseFalse::sample(); /*141:topLevelFalse*/ | |
| 9514 | + return UnionFalseFalse::sample(); /*142:topLevelFalse*/ | |
| 9427 | 9515 | } |
| 9428 | 9516 | |
| 9429 | 9517 | /** |
| @@ -9499,7 +9587,7 @@ class TopLevel { | ||
| 9499 | 9587 | * @return FalseClass|float|null |
| 9500 | 9588 | */ |
| 9501 | 9589 | public static function sampleFalse(): FalseClass|float|null { |
| 9502 | - return FalseClass::sample(); /*142:false*/ | |
| 9590 | + return FalseClass::sample(); /*143:false*/ | |
| 9503 | 9591 | } |
| 9504 | 9592 | |
| 9505 | 9593 | /** |
| @@ -9575,7 +9663,7 @@ class TopLevel { | ||
| 9575 | 9663 | * @return Fileprivate|float|null |
| 9576 | 9664 | */ |
| 9577 | 9665 | public static function sampleFileprivate(): Fileprivate|float|null { |
| 9578 | - return Fileprivate::sample(); /*143:fileprivate*/ | |
| 9666 | + return Fileprivate::sample(); /*144:fileprivate*/ | |
| 9579 | 9667 | } |
| 9580 | 9668 | |
| 9581 | 9669 | /** |
| @@ -9651,7 +9739,7 @@ class TopLevel { | ||
| 9651 | 9739 | * @return FinalClass|float|null |
| 9652 | 9740 | */ |
| 9653 | 9741 | public static function sampleFinal(): FinalClass|float|null { |
| 9654 | - return FinalClass::sample(); /*144:final*/ | |
| 9742 | + return FinalClass::sample(); /*145:final*/ | |
| 9655 | 9743 | } |
| 9656 | 9744 | |
| 9657 | 9745 | /** |
| @@ -9727,7 +9815,7 @@ class TopLevel { | ||
| 9727 | 9815 | * @return FinallyClass|float|null |
| 9728 | 9816 | */ |
| 9729 | 9817 | public static function sampleFinally(): FinallyClass|float|null { |
| 9730 | - return FinallyClass::sample(); /*145:finally*/ | |
| 9818 | + return FinallyClass::sample(); /*146:finally*/ | |
| 9731 | 9819 | } |
| 9732 | 9820 | |
| 9733 | 9821 | /** |
| @@ -9803,7 +9891,7 @@ class TopLevel { | ||
| 9803 | 9891 | * @return Fixed|float|null |
| 9804 | 9892 | */ |
| 9805 | 9893 | public static function sampleFixed(): Fixed|float|null { |
| 9806 | - return Fixed::sample(); /*146:fixed*/ | |
| 9894 | + return Fixed::sample(); /*147:fixed*/ | |
| 9807 | 9895 | } |
| 9808 | 9896 | |
| 9809 | 9897 | /** |
| @@ -9879,7 +9967,7 @@ class TopLevel { | ||
| 9879 | 9967 | * @return FloatClass|float|null |
| 9880 | 9968 | */ |
| 9881 | 9969 | public static function sampleFloat(): FloatClass|float|null { |
| 9882 | - return FloatClass::sample(); /*147:float*/ | |
| 9970 | + return FloatClass::sample(); /*148:float*/ | |
| 9883 | 9971 | } |
| 9884 | 9972 | |
| 9885 | 9973 | /** |
| @@ -9955,7 +10043,7 @@ class TopLevel { | ||
| 9955 | 10043 | * @return ForClass|float|null |
| 9956 | 10044 | */ |
| 9957 | 10045 | public static function sampleFor(): ForClass|float|null { |
| 9958 | - return ForClass::sample(); /*148:for*/ | |
| 10046 | + return ForClass::sample(); /*149:for*/ | |
| 9959 | 10047 | } |
| 9960 | 10048 | |
| 9961 | 10049 | /** |
| @@ -10031,7 +10119,7 @@ class TopLevel { | ||
| 10031 | 10119 | * @return ForeachClass|float|null |
| 10032 | 10120 | */ |
| 10033 | 10121 | public static function sampleForeach(): ForeachClass|float|null { |
| 10034 | - return ForeachClass::sample(); /*149:foreach*/ | |
| 10122 | + return ForeachClass::sample(); /*150:foreach*/ | |
| 10035 | 10123 | } |
| 10036 | 10124 | |
| 10037 | 10125 | /** |
| @@ -10107,7 +10195,7 @@ class TopLevel { | ||
| 10107 | 10195 | * @return FormatException|float|null |
| 10108 | 10196 | */ |
| 10109 | 10197 | public static function sampleFormatException(): FormatException|float|null { |
| 10110 | - return FormatException::sample(); /*150:formatException*/ | |
| 10198 | + return FormatException::sample(); /*151:formatException*/ | |
| 10111 | 10199 | } |
| 10112 | 10200 | |
| 10113 | 10201 | /** |
| @@ -10183,7 +10271,7 @@ class TopLevel { | ||
| 10183 | 10271 | * @return Friend|float|null |
| 10184 | 10272 | */ |
| 10185 | 10273 | public static function sampleFriend(): Friend|float|null { |
| 10186 | - return Friend::sample(); /*151:friend*/ | |
| 10274 | + return Friend::sample(); /*152:friend*/ | |
| 10187 | 10275 | } |
| 10188 | 10276 | |
| 10189 | 10277 | /** |
| @@ -10259,7 +10347,7 @@ class TopLevel { | ||
| 10259 | 10347 | * @return From|float|null |
| 10260 | 10348 | */ |
| 10261 | 10349 | public static function sampleFrom(): From|float|null { |
| 10262 | - return From::sample(); /*152:from*/ | |
| 10350 | + return From::sample(); /*153:from*/ | |
| 10263 | 10351 | } |
| 10264 | 10352 | |
| 10265 | 10353 | /** |
| @@ -10335,7 +10423,7 @@ class TopLevel { | ||
| 10335 | 10423 | * @return FromJSON|float|null |
| 10336 | 10424 | */ |
| 10337 | 10425 | public static function sampleFromJSON(): FromJSON|float|null { |
| 10338 | - return FromJSON::sample(); /*153:fromJSON*/ | |
| 10426 | + return FromJSON::sample(); /*154:fromJSON*/ | |
| 10339 | 10427 | } |
| 10340 | 10428 | |
| 10341 | 10429 | /** |
| @@ -10411,7 +10499,7 @@ class TopLevel { | ||
| 10411 | 10499 | * @return Func|float|null |
| 10412 | 10500 | */ |
| 10413 | 10501 | public static function sampleFunc(): Func|float|null { |
| 10414 | - return Func::sample(); /*154:func*/ | |
| 10502 | + return Func::sample(); /*155:func*/ | |
| 10415 | 10503 | } |
| 10416 | 10504 | |
| 10417 | 10505 | /** |
| @@ -10487,7 +10575,7 @@ class TopLevel { | ||
| 10487 | 10575 | * @return FunctionClass|float|null |
| 10488 | 10576 | */ |
| 10489 | 10577 | public static function sampleFunction(): FunctionClass|float|null { |
| 10490 | - return FunctionClass::sample(); /*155:function*/ | |
| 10578 | + return FunctionClass::sample(); /*156:function*/ | |
| 10491 | 10579 | } |
| 10492 | 10580 | |
| 10493 | 10581 | /** |
| @@ -10563,7 +10651,7 @@ class TopLevel { | ||
| 10563 | 10651 | * @return Get|float|null |
| 10564 | 10652 | */ |
| 10565 | 10653 | public static function sampleGet(): Get|float|null { |
| 10566 | - return Get::sample(); /*156:get*/ | |
| 10654 | + return Get::sample(); /*157:get*/ | |
| 10567 | 10655 | } |
| 10568 | 10656 | |
| 10569 | 10657 | /** |
| @@ -10639,7 +10727,7 @@ class TopLevel { | ||
| 10639 | 10727 | * @return GlobalClass|float|null |
| 10640 | 10728 | */ |
| 10641 | 10729 | public static function sampleGlobal(): GlobalClass|float|null { |
| 10642 | - return GlobalClass::sample(); /*157:global*/ | |
| 10730 | + return GlobalClass::sample(); /*158:global*/ | |
| 10643 | 10731 | } |
| 10644 | 10732 | |
| 10645 | 10733 | /** |
| @@ -10715,7 +10803,7 @@ class TopLevel { | ||
| 10715 | 10803 | * @return Go|float|null |
| 10716 | 10804 | */ |
| 10717 | 10805 | public static function sampleGo(): Go|float|null { |
| 10718 | - return Go::sample(); /*158:go*/ | |
| 10806 | + return Go::sample(); /*159:go*/ | |
| 10719 | 10807 | } |
| 10720 | 10808 | |
| 10721 | 10809 | /** |
| @@ -10791,7 +10879,7 @@ class TopLevel { | ||
| 10791 | 10879 | * @return GotoClass|float|null |
| 10792 | 10880 | */ |
| 10793 | 10881 | public static function sampleGoto(): GotoClass|float|null { |
| 10794 | - return GotoClass::sample(); /*159:goto*/ | |
| 10882 | + return GotoClass::sample(); /*160:goto*/ | |
| 10795 | 10883 | } |
| 10796 | 10884 | |
| 10797 | 10885 | /** |
| @@ -10867,7 +10955,7 @@ class TopLevel { | ||
| 10867 | 10955 | * @return Guard|float|null |
| 10868 | 10956 | */ |
| 10869 | 10957 | public static function sampleGuard(): Guard|float|null { |
| 10870 | - return Guard::sample(); /*160:guard*/ | |
| 10958 | + return Guard::sample(); /*161:guard*/ | |
| 10871 | 10959 | } |
| 10872 | 10960 | |
| 10873 | 10961 | /** |
| @@ -10943,7 +11031,7 @@ class TopLevel { | ||
| 10943 | 11031 | * @return Hashable|float|null |
| 10944 | 11032 | */ |
| 10945 | 11033 | public static function sampleHashable(): Hashable|float|null { |
| 10946 | - return Hashable::sample(); /*161:hashable*/ | |
| 11034 | + return Hashable::sample(); /*162:hashable*/ | |
| 10947 | 11035 | } |
| 10948 | 11036 | |
| 10949 | 11037 | /** |
| @@ -11019,7 +11107,7 @@ class TopLevel { | ||
| 11019 | 11107 | * @return HashCode|float|null |
| 11020 | 11108 | */ |
| 11021 | 11109 | public static function sampleHashCode(): HashCode|float|null { |
| 11022 | - return HashCode::sample(); /*162:hashCode*/ | |
| 11110 | + return HashCode::sample(); /*163:hashCode*/ | |
| 11023 | 11111 | } |
| 11024 | 11112 | |
| 11025 | 11113 | /** |
| @@ -11095,7 +11183,7 @@ class TopLevel { | ||
| 11095 | 11183 | * @return Hasher|float|null |
| 11096 | 11184 | */ |
| 11097 | 11185 | public static function sampleHasher(): Hasher|float|null { |
| 11098 | - return Hasher::sample(); /*163:hasher*/ | |
| 11186 | + return Hasher::sample(); /*164:hasher*/ | |
| 11099 | 11187 | } |
| 11100 | 11188 | |
| 11101 | 11189 | /** |
| @@ -11171,7 +11259,7 @@ class TopLevel { | ||
| 11171 | 11259 | * @return HasOwnProperty|float|null |
| 11172 | 11260 | */ |
| 11173 | 11261 | public static function sampleHasOwnProperty(): HasOwnProperty|float|null { |
| 11174 | - return HasOwnProperty::sample(); /*164:hasOwnProperty*/ | |
| 11262 | + return HasOwnProperty::sample(); /*165:hasOwnProperty*/ | |
| 11175 | 11263 | } |
| 11176 | 11264 | |
| 11177 | 11265 | /** |
| @@ -11247,7 +11335,7 @@ class TopLevel { | ||
| 11247 | 11335 | * @return ID|float|null |
| 11248 | 11336 | */ |
| 11249 | 11337 | public static function sampleID(): ID|float|null { |
| 11250 | - return ID::sample(); /*165:id*/ | |
| 11338 | + return ID::sample(); /*166:id*/ | |
| 11251 | 11339 | } |
| 11252 | 11340 | |
| 11253 | 11341 | /** |
| @@ -11323,7 +11411,7 @@ class TopLevel { | ||
| 11323 | 11411 | * @return IfClass|float|null |
| 11324 | 11412 | */ |
| 11325 | 11413 | public static function sampleIf(): IfClass|float|null { |
| 11326 | - return IfClass::sample(); /*166:if*/ | |
| 11414 | + return IfClass::sample(); /*167:if*/ | |
| 11327 | 11415 | } |
| 11328 | 11416 | |
| 11329 | 11417 | /** |
| @@ -11399,7 +11487,7 @@ class TopLevel { | ||
| 11399 | 11487 | * @return Imp|float|null |
| 11400 | 11488 | */ |
| 11401 | 11489 | public static function sampleImp(): Imp|float|null { |
| 11402 | - return Imp::sample(); /*167:imp*/ | |
| 11490 | + return Imp::sample(); /*168:imp*/ | |
| 11403 | 11491 | } |
| 11404 | 11492 | |
| 11405 | 11493 | /** |
| @@ -11475,7 +11563,7 @@ class TopLevel { | ||
| 11475 | 11563 | * @return ImplementsClass|float|null |
| 11476 | 11564 | */ |
| 11477 | 11565 | public static function sampleImplements(): ImplementsClass|float|null { |
| 11478 | - return ImplementsClass::sample(); /*168:implements*/ | |
| 11566 | + return ImplementsClass::sample(); /*169:implements*/ | |
| 11479 | 11567 | } |
| 11480 | 11568 | |
| 11481 | 11569 | /** |
| @@ -11551,7 +11639,7 @@ class TopLevel { | ||
| 11551 | 11639 | * @return Implicit|float|null |
| 11552 | 11640 | */ |
| 11553 | 11641 | public static function sampleImplicit(): Implicit|float|null { |
| 11554 | - return Implicit::sample(); /*169:implicit*/ | |
| 11642 | + return Implicit::sample(); /*170:implicit*/ | |
| 11555 | 11643 | } |
| 11556 | 11644 | |
| 11557 | 11645 | /** |
| @@ -11627,7 +11715,7 @@ class TopLevel { | ||
| 11627 | 11715 | * @return Import|float|null |
| 11628 | 11716 | */ |
| 11629 | 11717 | public static function sampleImport(): Import|float|null { |
| 11630 | - return Import::sample(); /*170:import*/ | |
| 11718 | + return Import::sample(); /*171:import*/ | |
| 11631 | 11719 | } |
| 11632 | 11720 | |
| 11633 | 11721 | /** |
| @@ -11703,7 +11791,7 @@ class TopLevel { | ||
| 11703 | 11791 | * @return In|float|null |
| 11704 | 11792 | */ |
| 11705 | 11793 | public static function sampleIn(): In|float|null { |
| 11706 | - return In::sample(); /*171:in*/ | |
| 11794 | + return In::sample(); /*172:in*/ | |
| 11707 | 11795 | } |
| 11708 | 11796 | |
| 11709 | 11797 | /** |
| @@ -11779,7 +11867,7 @@ class TopLevel { | ||
| 11779 | 11867 | * @return Indirect|float|null |
| 11780 | 11868 | */ |
| 11781 | 11869 | public static function sampleIndirect(): Indirect|float|null { |
| 11782 | - return Indirect::sample(); /*172:indirect*/ | |
| 11870 | + return Indirect::sample(); /*173:indirect*/ | |
| 11783 | 11871 | } |
| 11784 | 11872 | |
| 11785 | 11873 | /** |
| @@ -11855,7 +11943,7 @@ class TopLevel { | ||
| 11855 | 11943 | * @return Infix|float|null |
| 11856 | 11944 | */ |
| 11857 | 11945 | public static function sampleInfix(): Infix|float|null { |
| 11858 | - return Infix::sample(); /*173:infix*/ | |
| 11946 | + return Infix::sample(); /*174:infix*/ | |
| 11859 | 11947 | } |
| 11860 | 11948 | |
| 11861 | 11949 | /** |
| @@ -11931,7 +12019,7 @@ class TopLevel { | ||
| 11931 | 12019 | * @return Init|float|null |
| 11932 | 12020 | */ |
| 11933 | 12021 | public static function sampleInit(): Init|float|null { |
| 11934 | - return Init::sample(); /*174:init*/ | |
| 12022 | + return Init::sample(); /*175:init*/ | |
| 11935 | 12023 | } |
| 11936 | 12024 | |
| 11937 | 12025 | /** |
| @@ -12007,7 +12095,7 @@ class TopLevel { | ||
| 12007 | 12095 | * @return Inline|float|null |
| 12008 | 12096 | */ |
| 12009 | 12097 | public static function sampleInline(): Inline|float|null { |
| 12010 | - return Inline::sample(); /*175:inline*/ | |
| 12098 | + return Inline::sample(); /*176:inline*/ | |
| 12011 | 12099 | } |
| 12012 | 12100 | |
| 12013 | 12101 | /** |
| @@ -12083,7 +12171,7 @@ class TopLevel { | ||
| 12083 | 12171 | * @return Inout|float|null |
| 12084 | 12172 | */ |
| 12085 | 12173 | public static function sampleInout(): Inout|float|null { |
| 12086 | - return Inout::sample(); /*176:inout*/ | |
| 12174 | + return Inout::sample(); /*177:inout*/ | |
| 12087 | 12175 | } |
| 12088 | 12176 | |
| 12089 | 12177 | /** |
| @@ -12159,7 +12247,7 @@ class TopLevel { | ||
| 12159 | 12247 | * @return InstanceofClass|float|null |
| 12160 | 12248 | */ |
| 12161 | 12249 | public static function sampleInstanceof(): InstanceofClass|float|null { |
| 12162 | - return InstanceofClass::sample(); /*177:instanceof*/ | |
| 12250 | + return InstanceofClass::sample(); /*178:instanceof*/ | |
| 12163 | 12251 | } |
| 12164 | 12252 | |
| 12165 | 12253 | /** |
| @@ -12235,7 +12323,7 @@ class TopLevel { | ||
| 12235 | 12323 | * @return IntClass|float|null |
| 12236 | 12324 | */ |
| 12237 | 12325 | public static function sampleInt(): IntClass|float|null { |
| 12238 | - return IntClass::sample(); /*178:int*/ | |
| 12326 | + return IntClass::sample(); /*179:int*/ | |
| 12239 | 12327 | } |
| 12240 | 12328 | |
| 12241 | 12329 | /** |
| @@ -12311,7 +12399,7 @@ class TopLevel { | ||
| 12311 | 12399 | * @return InterfaceClass|float|null |
| 12312 | 12400 | */ |
| 12313 | 12401 | public static function sampleInterface(): InterfaceClass|float|null { |
| 12314 | - return InterfaceClass::sample(); /*179:interface*/ | |
| 12402 | + return InterfaceClass::sample(); /*180:interface*/ | |
| 12315 | 12403 | } |
| 12316 | 12404 | |
| 12317 | 12405 | /** |
| @@ -12387,7 +12475,7 @@ class TopLevel { | ||
| 12387 | 12475 | * @return Internal|float|null |
| 12388 | 12476 | */ |
| 12389 | 12477 | public static function sampleInternal(): Internal|float|null { |
| 12390 | - return Internal::sample(); /*180:internal*/ | |
| 12478 | + return Internal::sample(); /*181:internal*/ | |
| 12391 | 12479 | } |
| 12392 | 12480 | |
| 12393 | 12481 | /** |
| @@ -12463,7 +12551,7 @@ class TopLevel { | ||
| 12463 | 12551 | * @return Is|float|null |
| 12464 | 12552 | */ |
| 12465 | 12553 | public static function sampleIs(): Is|float|null { |
| 12466 | - return Is::sample(); /*181:is*/ | |
| 12554 | + return Is::sample(); /*182:is*/ | |
| 12467 | 12555 | } |
| 12468 | 12556 | |
| 12469 | 12557 | /** |
| @@ -12539,7 +12627,7 @@ class TopLevel { | ||
| 12539 | 12627 | * @return ISODateTimeOffsetConverter|float|null |
| 12540 | 12628 | */ |
| 12541 | 12629 | public static function sampleISODateTimeOffsetConverter(): ISODateTimeOffsetConverter|float|null { |
| 12542 | - return ISODateTimeOffsetConverter::sample(); /*182:isoDateTimeOffsetConverter*/ | |
| 12630 | + return ISODateTimeOffsetConverter::sample(); /*183:isoDateTimeOffsetConverter*/ | |
| 12543 | 12631 | } |
| 12544 | 12632 | |
| 12545 | 12633 | /** |
| @@ -12615,7 +12703,7 @@ class TopLevel { | ||
| 12615 | 12703 | * @return IterableClass|float|null |
| 12616 | 12704 | */ |
| 12617 | 12705 | public static function sampleIterable(): IterableClass|float|null { |
| 12618 | - return IterableClass::sample(); /*183:iterable*/ | |
| 12706 | + return IterableClass::sample(); /*184:iterable*/ | |
| 12619 | 12707 | } |
| 12620 | 12708 | |
| 12621 | 12709 | /** |
| @@ -12691,7 +12779,7 @@ class TopLevel { | ||
| 12691 | 12779 | * @return Jdec|float|null |
| 12692 | 12780 | */ |
| 12693 | 12781 | public static function sampleJdec(): Jdec|float|null { |
| 12694 | - return Jdec::sample(); /*184:jdec*/ | |
| 12782 | + return Jdec::sample(); /*185:jdec*/ | |
| 12695 | 12783 | } |
| 12696 | 12784 | |
| 12697 | 12785 | /** |
| @@ -12767,7 +12855,7 @@ class TopLevel { | ||
| 12767 | 12855 | * @return Jenc|float|null |
| 12768 | 12856 | */ |
| 12769 | 12857 | public static function sampleJenc(): Jenc|float|null { |
| 12770 | - return Jenc::sample(); /*185:jenc*/ | |
| 12858 | + return Jenc::sample(); /*186:jenc*/ | |
| 12771 | 12859 | } |
| 12772 | 12860 | |
| 12773 | 12861 | /** |
| @@ -12843,7 +12931,7 @@ class TopLevel { | ||
| 12843 | 12931 | * @return Jpipe|float|null |
| 12844 | 12932 | */ |
| 12845 | 12933 | public static function sampleJpipe(): Jpipe|float|null { |
| 12846 | - return Jpipe::sample(); /*186:jpipe*/ | |
| 12934 | + return Jpipe::sample(); /*187:jpipe*/ | |
| 12847 | 12935 | } |
| 12848 | 12936 | |
| 12849 | 12937 | /** |
| @@ -12919,7 +13007,7 @@ class TopLevel { | ||
| 12919 | 13007 | * @return JSON|float|null |
| 12920 | 13008 | */ |
| 12921 | 13009 | public static function sampleJSON(): JSON|float|null { |
| 12922 | - return JSON::sample(); /*187:json*/ | |
| 13010 | + return JSON::sample(); /*188:json*/ | |
| 12923 | 13011 | } |
| 12924 | 13012 | |
| 12925 | 13013 | /** |
| @@ -12995,7 +13083,7 @@ class TopLevel { | ||
| 12995 | 13083 | * @return JSONConverter|float|null |
| 12996 | 13084 | */ |
| 12997 | 13085 | public static function sampleJSONConverter(): JSONConverter|float|null { |
| 12998 | - return JSONConverter::sample(); /*188:jsonConverter*/ | |
| 13086 | + return JSONConverter::sample(); /*189:jsonConverter*/ | |
| 12999 | 13087 | } |
| 13000 | 13088 | |
| 13001 | 13089 | /** |
| @@ -13071,7 +13159,7 @@ class TopLevel { | ||
| 13071 | 13159 | * @return JSONSerializer|float|null |
| 13072 | 13160 | */ |
| 13073 | 13161 | public static function sampleJSONSerializer(): JSONSerializer|float|null { |
| 13074 | - return JSONSerializer::sample(); /*189:jsonSerializer*/ | |
| 13162 | + return JSONSerializer::sample(); /*190:jsonSerializer*/ | |
| 13075 | 13163 | } |
| 13076 | 13164 | |
| 13077 | 13165 | /** |
| @@ -13147,7 +13235,7 @@ class TopLevel { | ||
| 13147 | 13235 | * @return JSONToken|float|null |
| 13148 | 13236 | */ |
| 13149 | 13237 | public static function sampleJSONToken(): JSONToken|float|null { |
| 13150 | - return JSONToken::sample(); /*190:jsonToken*/ | |
| 13238 | + return JSONToken::sample(); /*191:jsonToken*/ | |
| 13151 | 13239 | } |
| 13152 | 13240 | |
| 13153 | 13241 | /** |
| @@ -13223,7 +13311,7 @@ class TopLevel { | ||
| 13223 | 13311 | * @return JSONWriter|float|null |
| 13224 | 13312 | */ |
| 13225 | 13313 | public static function sampleJSONWriter(): JSONWriter|float|null { |
| 13226 | - return JSONWriter::sample(); /*191:jsonWriter*/ | |
| 13314 | + return JSONWriter::sample(); /*192:jsonWriter*/ | |
| 13227 | 13315 | } |
| 13228 | 13316 | |
| 13229 | 13317 | /** |
| @@ -13299,7 +13387,7 @@ class TopLevel { | ||
| 13299 | 13387 | * @return JSONAny|float|null |
| 13300 | 13388 | */ |
| 13301 | 13389 | public static function sampleJSONAny(): JSONAny|float|null { |
| 13302 | - return JSONAny::sample(); /*192:jsonAny*/ | |
| 13390 | + return JSONAny::sample(); /*193:jsonAny*/ | |
| 13303 | 13391 | } |
| 13304 | 13392 | |
| 13305 | 13393 | /** |
| @@ -13375,7 +13463,7 @@ class TopLevel { | ||
| 13375 | 13463 | * @return JSONCodingKey|float|null |
| 13376 | 13464 | */ |
| 13377 | 13465 | public static function sampleJSONCodingKey(): JSONCodingKey|float|null { |
| 13378 | - return JSONCodingKey::sample(); /*193:jsonCodingKey*/ | |
| 13466 | + return JSONCodingKey::sample(); /*194:jsonCodingKey*/ | |
| 13379 | 13467 | } |
| 13380 | 13468 | |
| 13381 | 13469 | /** |
| @@ -13451,7 +13539,7 @@ class TopLevel { | ||
| 13451 | 13539 | * @return JSONDecoder|float|null |
| 13452 | 13540 | */ |
| 13453 | 13541 | public static function sampleJSONDecoder(): JSONDecoder|float|null { |
| 13454 | - return JSONDecoder::sample(); /*194:jsonDecoder*/ | |
| 13542 | + return JSONDecoder::sample(); /*195:jsonDecoder*/ | |
| 13455 | 13543 | } |
| 13456 | 13544 | |
| 13457 | 13545 | /** |
| @@ -13527,7 +13615,7 @@ class TopLevel { | ||
| 13527 | 13615 | * @return JSONEncoder|float|null |
| 13528 | 13616 | */ |
| 13529 | 13617 | public static function sampleJSONEncoder(): JSONEncoder|float|null { |
| 13530 | - return JSONEncoder::sample(); /*195:jsonEncoder*/ | |
| 13618 | + return JSONEncoder::sample(); /*196:jsonEncoder*/ | |
| 13531 | 13619 | } |
| 13532 | 13620 | |
| 13533 | 13621 | /** |
| @@ -13603,7 +13691,7 @@ class TopLevel { | ||
| 13603 | 13691 | * @return JSONExceptionClass|float|null |
| 13604 | 13692 | */ |
| 13605 | 13693 | public static function sampleJSONException(): JSONExceptionClass|float|null { |
| 13606 | - return JSONExceptionClass::sample(); /*196:jsonException*/ | |
| 13694 | + return JSONExceptionClass::sample(); /*197:jsonException*/ | |
| 13607 | 13695 | } |
| 13608 | 13696 | |
| 13609 | 13697 | /** |
| @@ -13679,7 +13767,7 @@ class TopLevel { | ||
| 13679 | 13767 | * @return JSONGenerator|float|null |
| 13680 | 13768 | */ |
| 13681 | 13769 | public static function sampleJSONGenerator(): JSONGenerator|float|null { |
| 13682 | - return JSONGenerator::sample(); /*197:jsonGenerator*/ | |
| 13770 | + return JSONGenerator::sample(); /*198:jsonGenerator*/ | |
| 13683 | 13771 | } |
| 13684 | 13772 | |
| 13685 | 13773 | /** |
| @@ -13755,7 +13843,7 @@ class TopLevel { | ||
| 13755 | 13843 | * @return JSONNode|float|null |
| 13756 | 13844 | */ |
| 13757 | 13845 | public static function sampleJSONNode(): JSONNode|float|null { |
| 13758 | - return JSONNode::sample(); /*198:jsonNode*/ | |
| 13846 | + return JSONNode::sample(); /*199:jsonNode*/ | |
| 13759 | 13847 | } |
| 13760 | 13848 | |
| 13761 | 13849 | /** |
| @@ -13831,7 +13919,7 @@ class TopLevel { | ||
| 13831 | 13919 | * @return JSONNull|float|null |
| 13832 | 13920 | */ |
| 13833 | 13921 | public static function sampleJSONNull(): JSONNull|float|null { |
| 13834 | - return JSONNull::sample(); /*199:jsonNull*/ | |
| 13922 | + return JSONNull::sample(); /*200:jsonNull*/ | |
| 13835 | 13923 | } |
| 13836 | 13924 | |
| 13837 | 13925 | /** |
| @@ -13907,7 +13995,7 @@ class TopLevel { | ||
| 13907 | 13995 | * @return JSONParser|float|null |
| 13908 | 13996 | */ |
| 13909 | 13997 | public static function sampleJSONParser(): JSONParser|float|null { |
| 13910 | - return JSONParser::sample(); /*200:jsonParser*/ | |
| 13998 | + return JSONParser::sample(); /*201:jsonParser*/ | |
| 13911 | 13999 | } |
| 13912 | 14000 | |
| 13913 | 14001 | /** |
| @@ -13983,7 +14071,7 @@ class TopLevel { | ||
| 13983 | 14071 | * @return JSONReader|float|null |
| 13984 | 14072 | */ |
| 13985 | 14073 | public static function sampleJSONReader(): JSONReader|float|null { |
| 13986 | - return JSONReader::sample(); /*201:jsonReader*/ | |
| 14074 | + return JSONReader::sample(); /*202:jsonReader*/ | |
| 13987 | 14075 | } |
| 13988 | 14076 | |
| 13989 | 14077 | /** |
| @@ -14059,7 +14147,7 @@ class TopLevel { | ||
| 14059 | 14147 | * @return JSONTokenType|float|null |
| 14060 | 14148 | */ |
| 14061 | 14149 | public static function sampleJSONTokenType(): JSONTokenType|float|null { |
| 14062 | - return JSONTokenType::sample(); /*202:jsonTokenType*/ | |
| 14150 | + return JSONTokenType::sample(); /*203:jsonTokenType*/ | |
| 14063 | 14151 | } |
| 14064 | 14152 | |
| 14065 | 14153 | /** |
| @@ -14135,7 +14223,7 @@ class TopLevel { | ||
| 14135 | 14223 | * @return Lambda|float|null |
| 14136 | 14224 | */ |
| 14137 | 14225 | public static function sampleLambda(): Lambda|float|null { |
| 14138 | - return Lambda::sample(); /*203:lambda*/ | |
| 14226 | + return Lambda::sample(); /*204:lambda*/ | |
| 14139 | 14227 | } |
| 14140 | 14228 | |
| 14141 | 14229 | /** |
| @@ -14211,7 +14299,7 @@ class TopLevel { | ||
| 14211 | 14299 | * @return Lazy|float|null |
| 14212 | 14300 | */ |
| 14213 | 14301 | public static function sampleLazy(): Lazy|float|null { |
| 14214 | - return Lazy::sample(); /*204:lazy*/ | |
| 14302 | + return Lazy::sample(); /*205:lazy*/ | |
| 14215 | 14303 | } |
| 14216 | 14304 | |
| 14217 | 14305 | /** |
| @@ -14287,7 +14375,7 @@ class TopLevel { | ||
| 14287 | 14375 | * @return Left|float|null |
| 14288 | 14376 | */ |
| 14289 | 14377 | public static function sampleLeft(): Left|float|null { |
| 14290 | - return Left::sample(); /*205:left*/ | |
| 14378 | + return Left::sample(); /*206:left*/ | |
| 14291 | 14379 | } |
| 14292 | 14380 | |
| 14293 | 14381 | /** |
| @@ -14363,7 +14451,7 @@ class TopLevel { | ||
| 14363 | 14451 | * @return Let|float|null |
| 14364 | 14452 | */ |
| 14365 | 14453 | public static function sampleLet(): Let|float|null { |
| 14366 | - return Let::sample(); /*206:let*/ | |
| 14454 | + return Let::sample(); /*207:let*/ | |
| 14367 | 14455 | } |
| 14368 | 14456 | |
| 14369 | 14457 | /** |
| @@ -14439,7 +14527,7 @@ class TopLevel { | ||
| 14439 | 14527 | * @return ListClass|float|null |
| 14440 | 14528 | */ |
| 14441 | 14529 | public static function sampleList(): ListClass|float|null { |
| 14442 | - return ListClass::sample(); /*207:list*/ | |
| 14530 | + return ListClass::sample(); /*208:list*/ | |
| 14443 | 14531 | } |
| 14444 | 14532 | |
| 14445 | 14533 | /** |
| @@ -14515,7 +14603,7 @@ class TopLevel { | ||
| 14515 | 14603 | * @return LocaleClass|float|null |
| 14516 | 14604 | */ |
| 14517 | 14605 | public static function sampleLocale(): LocaleClass|float|null { |
| 14518 | - return LocaleClass::sample(); /*208:locale*/ | |
| 14606 | + return LocaleClass::sample(); /*209:locale*/ | |
| 14519 | 14607 | } |
| 14520 | 14608 | |
| 14521 | 14609 | /** |
| @@ -14591,7 +14679,7 @@ class TopLevel { | ||
| 14591 | 14679 | * @return Lock|float|null |
| 14592 | 14680 | */ |
| 14593 | 14681 | public static function sampleLock(): Lock|float|null { |
| 14594 | - return Lock::sample(); /*209:lock*/ | |
| 14682 | + return Lock::sample(); /*210:lock*/ | |
| 14595 | 14683 | } |
| 14596 | 14684 | |
| 14597 | 14685 | /** |
| @@ -14667,7 +14755,7 @@ class TopLevel { | ||
| 14667 | 14755 | * @return Long|float|null |
| 14668 | 14756 | */ |
| 14669 | 14757 | public static function sampleLong(): Long|float|null { |
| 14670 | - return Long::sample(); /*210:long*/ | |
| 14758 | + return Long::sample(); /*211:long*/ | |
| 14671 | 14759 | } |
| 14672 | 14760 | |
| 14673 | 14761 | /** |
| @@ -14743,7 +14831,7 @@ class TopLevel { | ||
| 14743 | 14831 | * @return Map|float|null |
| 14744 | 14832 | */ |
| 14745 | 14833 | public static function sampleMap(): Map|float|null { |
| 14746 | - return Map::sample(); /*211:map*/ | |
| 14834 | + return Map::sample(); /*212:map*/ | |
| 14747 | 14835 | } |
| 14748 | 14836 | |
| 14749 | 14837 | /** |
| @@ -14819,7 +14907,7 @@ class TopLevel { | ||
| 14819 | 14907 | * @return MapEntry|float|null |
| 14820 | 14908 | */ |
| 14821 | 14909 | public static function sampleMapEntry(): MapEntry|float|null { |
| 14822 | - return MapEntry::sample(); /*212:mapEntry*/ | |
| 14910 | + return MapEntry::sample(); /*213:mapEntry*/ | |
| 14823 | 14911 | } |
| 14824 | 14912 | |
| 14825 | 14913 | /** |
| @@ -14895,7 +14983,7 @@ class TopLevel { | ||
| 14895 | 14983 | * @return MetadataPropertyHandling|float|null |
| 14896 | 14984 | */ |
| 14897 | 14985 | public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null { |
| 14898 | - return MetadataPropertyHandling::sample(); /*213:metadataPropertyHandling*/ | |
| 14986 | + return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/ | |
| 14899 | 14987 | } |
| 14900 | 14988 | |
| 14901 | 14989 | /** |
| @@ -14971,7 +15059,7 @@ class TopLevel { | ||
| 14971 | 15059 | * @return Module|float|null |
| 14972 | 15060 | */ |
| 14973 | 15061 | public static function sampleModule(): Module|float|null { |
| 14974 | - return Module::sample(); /*214:module*/ | |
| 15062 | + return Module::sample(); /*215:module*/ | |
| 14975 | 15063 | } |
| 14976 | 15064 | |
| 14977 | 15065 | /** |
| @@ -15047,7 +15135,7 @@ class TopLevel { | ||
| 15047 | 15135 | * @return Mutable|float|null |
| 15048 | 15136 | */ |
| 15049 | 15137 | public static function sampleMutable(): Mutable|float|null { |
| 15050 | - return Mutable::sample(); /*215:mutable*/ | |
| 15138 | + return Mutable::sample(); /*216:mutable*/ | |
| 15051 | 15139 | } |
| 15052 | 15140 | |
| 15053 | 15141 | /** |
| @@ -15123,7 +15211,7 @@ class TopLevel { | ||
| 15123 | 15211 | * @return Mutating|float|null |
| 15124 | 15212 | */ |
| 15125 | 15213 | public static function sampleMutating(): Mutating|float|null { |
| 15126 | - return Mutating::sample(); /*216:mutating*/ | |
| 15214 | + return Mutating::sample(); /*217:mutating*/ | |
| 15127 | 15215 | } |
| 15128 | 15216 | |
| 15129 | 15217 | /** |
| @@ -15199,7 +15287,7 @@ class TopLevel { | ||
| 15199 | 15287 | * @return NamespaceClass|float|null |
| 15200 | 15288 | */ |
| 15201 | 15289 | public static function sampleNamespace(): NamespaceClass|float|null { |
| 15202 | - return NamespaceClass::sample(); /*217:namespace*/ | |
| 15290 | + return NamespaceClass::sample(); /*218:namespace*/ | |
| 15203 | 15291 | } |
| 15204 | 15292 | |
| 15205 | 15293 | /** |
| @@ -15275,7 +15363,7 @@ class TopLevel { | ||
| 15275 | 15363 | * @return Native|float|null |
| 15276 | 15364 | */ |
| 15277 | 15365 | public static function sampleNative(): Native|float|null { |
| 15278 | - return Native::sample(); /*218:native*/ | |
| 15366 | + return Native::sample(); /*219:native*/ | |
| 15279 | 15367 | } |
| 15280 | 15368 | |
| 15281 | 15369 | /** |
| @@ -15351,7 +15439,7 @@ class TopLevel { | ||
| 15351 | 15439 | * @return NewClass|float|null |
| 15352 | 15440 | */ |
| 15353 | 15441 | public static function sampleNew(): NewClass|float|null { |
| 15354 | - return NewClass::sample(); /*219:new*/ | |
| 15442 | + return NewClass::sample(); /*220:new*/ | |
| 15355 | 15443 | } |
| 15356 | 15444 | |
| 15357 | 15445 | /** |
| @@ -15427,7 +15515,7 @@ class TopLevel { | ||
| 15427 | 15515 | * @return Newtonsoft|float|null |
| 15428 | 15516 | */ |
| 15429 | 15517 | public static function sampleNewtonsoft(): Newtonsoft|float|null { |
| 15430 | - return Newtonsoft::sample(); /*220:newtonsoft*/ | |
| 15518 | + return Newtonsoft::sample(); /*221:newtonsoft*/ | |
| 15431 | 15519 | } |
| 15432 | 15520 | |
| 15433 | 15521 | /** |
| @@ -15503,7 +15591,7 @@ class TopLevel { | ||
| 15503 | 15591 | * @return Nil|float|null |
| 15504 | 15592 | */ |
| 15505 | 15593 | public static function sampleNil(): Nil|float|null { |
| 15506 | - return Nil::sample(); /*221:nil*/ | |
| 15594 | + return Nil::sample(); /*222:nil*/ | |
| 15507 | 15595 | } |
| 15508 | 15596 | |
| 15509 | 15597 | /** |
| @@ -15579,7 +15667,7 @@ class TopLevel { | ||
| 15579 | 15667 | * @return No|float|null |
| 15580 | 15668 | */ |
| 15581 | 15669 | public static function sampleNo(): No|float|null { |
| 15582 | - return No::sample(); /*222:no*/ | |
| 15670 | + return No::sample(); /*223:no*/ | |
| 15583 | 15671 | } |
| 15584 | 15672 | |
| 15585 | 15673 | /** |
| @@ -15655,7 +15743,7 @@ class TopLevel { | ||
| 15655 | 15743 | * @return Noexcept|float|null |
| 15656 | 15744 | */ |
| 15657 | 15745 | public static function sampleNoexcept(): Noexcept|float|null { |
| 15658 | - return Noexcept::sample(); /*223:noexcept*/ | |
| 15746 | + return Noexcept::sample(); /*224:noexcept*/ | |
| 15659 | 15747 | } |
| 15660 | 15748 | |
| 15661 | 15749 | /** |
| @@ -15731,7 +15819,7 @@ class TopLevel { | ||
| 15731 | 15819 | * @return Nonatomic|float|null |
| 15732 | 15820 | */ |
| 15733 | 15821 | public static function sampleNonatomic(): Nonatomic|float|null { |
| 15734 | - return Nonatomic::sample(); /*224:nonatomic*/ | |
| 15822 | + return Nonatomic::sample(); /*225:nonatomic*/ | |
| 15735 | 15823 | } |
| 15736 | 15824 | |
| 15737 | 15825 | /** |
| @@ -15807,7 +15895,7 @@ class TopLevel { | ||
| 15807 | 15895 | * @return NoneClass|float|null |
| 15808 | 15896 | */ |
| 15809 | 15897 | public static function sampleTopLevelNone(): NoneClass|float|null { |
| 15810 | - return NoneClass::sample(); /*225:topLevelNone*/ | |
| 15898 | + return NoneClass::sample(); /*226:topLevelNone*/ | |
| 15811 | 15899 | } |
| 15812 | 15900 | |
| 15813 | 15901 | /** |
| @@ -15883,7 +15971,7 @@ class TopLevel { | ||
| 15883 | 15971 | * @return None|float|null |
| 15884 | 15972 | */ |
| 15885 | 15973 | public static function sampleNone(): None|float|null { |
| 15886 | - return None::sample(); /*226:none*/ | |
| 15974 | + return None::sample(); /*227:none*/ | |
| 15887 | 15975 | } |
| 15888 | 15976 | |
| 15889 | 15977 | /** |
| @@ -15959,7 +16047,7 @@ class TopLevel { | ||
| 15959 | 16047 | * @return Nonlocal|float|null |
| 15960 | 16048 | */ |
| 15961 | 16049 | public static function sampleNonlocal(): Nonlocal|float|null { |
| 15962 | - return Nonlocal::sample(); /*227:nonlocal*/ | |
| 16050 | + return Nonlocal::sample(); /*228:nonlocal*/ | |
| 15963 | 16051 | } |
| 15964 | 16052 | |
| 15965 | 16053 | /** |
| @@ -16035,7 +16123,7 @@ class TopLevel { | ||
| 16035 | 16123 | * @return Nonmutating|float|null |
| 16036 | 16124 | */ |
| 16037 | 16125 | public static function sampleNonmutating(): Nonmutating|float|null { |
| 16038 | - return Nonmutating::sample(); /*228:nonmutating*/ | |
| 16126 | + return Nonmutating::sample(); /*229:nonmutating*/ | |
| 16039 | 16127 | } |
| 16040 | 16128 | |
| 16041 | 16129 | /** |
| @@ -16111,7 +16199,7 @@ class TopLevel { | ||
| 16111 | 16199 | * @return NoSuchMethod|float|null |
| 16112 | 16200 | */ |
| 16113 | 16201 | public static function sampleNoSuchMethod(): NoSuchMethod|float|null { |
| 16114 | - return NoSuchMethod::sample(); /*229:noSuchMethod*/ | |
| 16202 | + return NoSuchMethod::sample(); /*230:noSuchMethod*/ | |
| 16115 | 16203 | } |
| 16116 | 16204 | |
| 16117 | 16205 | /** |
| @@ -16187,7 +16275,7 @@ class TopLevel { | ||
| 16187 | 16275 | * @return Not|float|null |
| 16188 | 16276 | */ |
| 16189 | 16277 | public static function sampleNot(): Not|float|null { |
| 16190 | - return Not::sample(); /*230:not*/ | |
| 16278 | + return Not::sample(); /*231:not*/ | |
| 16191 | 16279 | } |
| 16192 | 16280 | |
| 16193 | 16281 | /** |
| @@ -16263,7 +16351,7 @@ class TopLevel { | ||
| 16263 | 16351 | * @return NotEq|float|null |
| 16264 | 16352 | */ |
| 16265 | 16353 | public static function sampleNotEq(): NotEq|float|null { |
| 16266 | - return NotEq::sample(); /*231:notEq*/ | |
| 16354 | + return NotEq::sample(); /*232:notEq*/ | |
| 16267 | 16355 | } |
| 16268 | 16356 | |
| 16269 | 16357 | /** |
| @@ -16339,7 +16427,7 @@ class TopLevel { | ||
| 16339 | 16427 | * @return NSError|float|null |
| 16340 | 16428 | */ |
| 16341 | 16429 | public static function sampleNSError(): NSError|float|null { |
| 16342 | - return NSError::sample(); /*232:nsError*/ | |
| 16430 | + return NSError::sample(); /*233:nsError*/ | |
| 16343 | 16431 | } |
| 16344 | 16432 | |
| 16345 | 16433 | /** |
| @@ -16415,7 +16503,7 @@ class TopLevel { | ||
| 16415 | 16503 | * @return NSObject|float|null |
| 16416 | 16504 | */ |
| 16417 | 16505 | public static function sampleNSObject(): NSObject|float|null { |
| 16418 | - return NSObject::sample(); /*233:nsObject*/ | |
| 16506 | + return NSObject::sample(); /*234:nsObject*/ | |
| 16419 | 16507 | } |
| 16420 | 16508 | |
| 16421 | 16509 | /** |
| @@ -16491,7 +16579,7 @@ class TopLevel { | ||
| 16491 | 16579 | * @return NSString|float|null |
| 16492 | 16580 | */ |
| 16493 | 16581 | public static function sampleNSString(): NSString|float|null { |
| 16494 | - return NSString::sample(); /*234:nsString*/ | |
| 16582 | + return NSString::sample(); /*235:nsString*/ | |
| 16495 | 16583 | } |
| 16496 | 16584 | |
| 16497 | 16585 | /** |
| @@ -16567,7 +16655,7 @@ class TopLevel { | ||
| 16567 | 16655 | * @return NULLClass|float|null |
| 16568 | 16656 | */ |
| 16569 | 16657 | public static function sampleNull(): NULLClass|float|null { |
| 16570 | - return NULLClass::sample(); /*235:null*/ | |
| 16658 | + return NULLClass::sample(); /*236:null*/ | |
| 16571 | 16659 | } |
| 16572 | 16660 | |
| 16573 | 16661 | /** |
| @@ -16643,7 +16731,7 @@ class TopLevel { | ||
| 16643 | 16731 | * @return UnionNullNull|float|null |
| 16644 | 16732 | */ |
| 16645 | 16733 | public static function sampleTopLevelNull(): UnionNullNull|float|null { |
| 16646 | - return UnionNullNull::sample(); /*236:topLevelNull*/ | |
| 16734 | + return UnionNullNull::sample(); /*237:topLevelNull*/ | |
| 16647 | 16735 | } |
| 16648 | 16736 | |
| 16649 | 16737 | /** |
| @@ -16719,7 +16807,7 @@ class TopLevel { | ||
| 16719 | 16807 | * @return Nullptr|float|null |
| 16720 | 16808 | */ |
| 16721 | 16809 | public static function sampleNullptr(): Nullptr|float|null { |
| 16722 | - return Nullptr::sample(); /*237:nullptr*/ | |
| 16810 | + return Nullptr::sample(); /*238:nullptr*/ | |
| 16723 | 16811 | } |
| 16724 | 16812 | |
| 16725 | 16813 | /** |
| @@ -16795,7 +16883,7 @@ class TopLevel { | ||
| 16795 | 16883 | * @return Number|float|null |
| 16796 | 16884 | */ |
| 16797 | 16885 | public static function sampleNumber(): Number|float|null { |
| 16798 | - return Number::sample(); /*238:number*/ | |
| 16886 | + return Number::sample(); /*239:number*/ | |
| 16799 | 16887 | } |
| 16800 | 16888 | |
| 16801 | 16889 | /** |
| @@ -16871,7 +16959,7 @@ class TopLevel { | ||
| 16871 | 16959 | * @return ObjectClass|float|null |
| 16872 | 16960 | */ |
| 16873 | 16961 | public static function sampleObject(): ObjectClass|float|null { |
| 16874 | - return ObjectClass::sample(); /*239:object*/ | |
| 16962 | + return ObjectClass::sample(); /*240:object*/ | |
| 16875 | 16963 | } |
| 16876 | 16964 | |
| 16877 | 16965 | /** |
| @@ -16947,7 +17035,159 @@ class TopLevel { | ||
| 16947 | 17035 | * @return ObjectMapper|float|null |
| 16948 | 17036 | */ |
| 16949 | 17037 | public static function sampleObjectMapper(): ObjectMapper|float|null { |
| 16950 | - return ObjectMapper::sample(); /*240:objectMapper*/ | |
| 17038 | + return ObjectMapper::sample(); /*241:objectMapper*/ | |
| 17039 | + } | |
| 17040 | + | |
| 17041 | + /** | |
| 17042 | + * @param stdClass|float|null $value | |
| 17043 | + * @throws Exception | |
| 17044 | + * @return ObjectReader|float|null | |
| 17045 | + */ | |
| 17046 | + public static function fromObjectReader(stdClass|float|null $value): ObjectReader|float|null { | |
| 17047 | + if (is_null($value)) { | |
| 17048 | + return $value; /*null*/ | |
| 17049 | + } elseif (is_object($value)) { | |
| 17050 | + return ObjectReader::from($value); /*class*/ | |
| 17051 | + } elseif (is_float($value) || is_int($value)) { | |
| 17052 | + return $value; /*float*/ | |
| 17053 | + } else { | |
| 17054 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 17055 | + } | |
| 17056 | + } | |
| 17057 | + | |
| 17058 | + /** | |
| 17059 | + * @throws Exception | |
| 17060 | + * @return stdClass|float|null | |
| 17061 | + */ | |
| 17062 | + public function toObjectReader(): stdClass|float|null { | |
| 17063 | + if (TopLevel::validateObjectReader($this->objectReader)) { | |
| 17064 | + if (is_null($this->objectReader)) { | |
| 17065 | + return $this->objectReader; /*null*/ | |
| 17066 | + } elseif ($this->objectReader instanceof ObjectReader) { | |
| 17067 | + return $this->objectReader->to(); /*class*/ | |
| 17068 | + } elseif (is_float($this->objectReader) || is_int($this->objectReader)) { | |
| 17069 | + return $this->objectReader; /*float*/ | |
| 17070 | + } else { | |
| 17071 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 17072 | + } | |
| 17073 | + } | |
| 17074 | + throw new Exception('never get to this TopLevel::objectReader'); | |
| 17075 | + } | |
| 17076 | + | |
| 17077 | + /** | |
| 17078 | + * @param ObjectReader|float|null | |
| 17079 | + * @return bool | |
| 17080 | + * @throws Exception | |
| 17081 | + */ | |
| 17082 | + public static function validateObjectReader(ObjectReader|float|null $value): bool { | |
| 17083 | + if (is_null($value)) { | |
| 17084 | + if (!is_null($value)) { | |
| 17085 | + throw new Exception("Attribute Error:TopLevel::objectReader"); | |
| 17086 | + } | |
| 17087 | + } elseif ($value instanceof ObjectReader) { | |
| 17088 | + $value->validate(); | |
| 17089 | + } elseif (is_float($value) || is_int($value)) { | |
| 17090 | + if (!is_float($value) && !is_int($value)) { | |
| 17091 | + throw new Exception("Attribute Error:TopLevel::objectReader"); | |
| 17092 | + } | |
| 17093 | + } else { | |
| 17094 | + throw new Exception("Attribute Error:TopLevel::objectReader"); | |
| 17095 | + } | |
| 17096 | + return true; | |
| 17097 | + } | |
| 17098 | + | |
| 17099 | + /** | |
| 17100 | + * @throws Exception | |
| 17101 | + * @return ObjectReader|float|null | |
| 17102 | + */ | |
| 17103 | + public function getObjectReader(): ObjectReader|float|null { | |
| 17104 | + if (TopLevel::validateObjectReader($this->objectReader)) { | |
| 17105 | + return $this->objectReader; | |
| 17106 | + } | |
| 17107 | + throw new Exception('never get to getObjectReader TopLevel::objectReader'); | |
| 17108 | + } | |
| 17109 | + | |
| 17110 | + /** | |
| 17111 | + * @return ObjectReader|float|null | |
| 17112 | + */ | |
| 17113 | + public static function sampleObjectReader(): ObjectReader|float|null { | |
| 17114 | + return ObjectReader::sample(); /*242:objectReader*/ | |
| 17115 | + } | |
| 17116 | + | |
| 17117 | + /** | |
| 17118 | + * @param stdClass|float|null $value | |
| 17119 | + * @throws Exception | |
| 17120 | + * @return ObjectWriter|float|null | |
| 17121 | + */ | |
| 17122 | + public static function fromObjectWriter(stdClass|float|null $value): ObjectWriter|float|null { | |
| 17123 | + if (is_null($value)) { | |
| 17124 | + return $value; /*null*/ | |
| 17125 | + } elseif (is_object($value)) { | |
| 17126 | + return ObjectWriter::from($value); /*class*/ | |
| 17127 | + } elseif (is_float($value) || is_int($value)) { | |
| 17128 | + return $value; /*float*/ | |
| 17129 | + } else { | |
| 17130 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 17131 | + } | |
| 17132 | + } | |
| 17133 | + | |
| 17134 | + /** | |
| 17135 | + * @throws Exception | |
| 17136 | + * @return stdClass|float|null | |
| 17137 | + */ | |
| 17138 | + public function toObjectWriter(): stdClass|float|null { | |
| 17139 | + if (TopLevel::validateObjectWriter($this->objectWriter)) { | |
| 17140 | + if (is_null($this->objectWriter)) { | |
| 17141 | + return $this->objectWriter; /*null*/ | |
| 17142 | + } elseif ($this->objectWriter instanceof ObjectWriter) { | |
| 17143 | + return $this->objectWriter->to(); /*class*/ | |
| 17144 | + } elseif (is_float($this->objectWriter) || is_int($this->objectWriter)) { | |
| 17145 | + return $this->objectWriter; /*float*/ | |
| 17146 | + } else { | |
| 17147 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 17148 | + } | |
| 17149 | + } | |
| 17150 | + throw new Exception('never get to this TopLevel::objectWriter'); | |
| 17151 | + } | |
| 17152 | + | |
| 17153 | + /** | |
| 17154 | + * @param ObjectWriter|float|null | |
| 17155 | + * @return bool | |
| 17156 | + * @throws Exception | |
| 17157 | + */ | |
| 17158 | + public static function validateObjectWriter(ObjectWriter|float|null $value): bool { | |
| 17159 | + if (is_null($value)) { | |
| 17160 | + if (!is_null($value)) { | |
| 17161 | + throw new Exception("Attribute Error:TopLevel::objectWriter"); | |
| 17162 | + } | |
| 17163 | + } elseif ($value instanceof ObjectWriter) { | |
| 17164 | + $value->validate(); | |
| 17165 | + } elseif (is_float($value) || is_int($value)) { | |
| 17166 | + if (!is_float($value) && !is_int($value)) { | |
| 17167 | + throw new Exception("Attribute Error:TopLevel::objectWriter"); | |
| 17168 | + } | |
| 17169 | + } else { | |
| 17170 | + throw new Exception("Attribute Error:TopLevel::objectWriter"); | |
| 17171 | + } | |
| 17172 | + return true; | |
| 17173 | + } | |
| 17174 | + | |
| 17175 | + /** | |
| 17176 | + * @throws Exception | |
| 17177 | + * @return ObjectWriter|float|null | |
| 17178 | + */ | |
| 17179 | + public function getObjectWriter(): ObjectWriter|float|null { | |
| 17180 | + if (TopLevel::validateObjectWriter($this->objectWriter)) { | |
| 17181 | + return $this->objectWriter; | |
| 17182 | + } | |
| 17183 | + throw new Exception('never get to getObjectWriter TopLevel::objectWriter'); | |
| 17184 | + } | |
| 17185 | + | |
| 17186 | + /** | |
| 17187 | + * @return ObjectWriter|float|null | |
| 17188 | + */ | |
| 17189 | + public static function sampleObjectWriter(): ObjectWriter|float|null { | |
| 17190 | + return ObjectWriter::sample(); /*243:objectWriter*/ | |
| 16951 | 17191 | } |
| 16952 | 17192 | |
| 16953 | 17193 | /** |
| @@ -17023,7 +17263,7 @@ class TopLevel { | ||
| 17023 | 17263 | * @return Of|float|null |
| 17024 | 17264 | */ |
| 17025 | 17265 | public static function sampleOf(): Of|float|null { |
| 17026 | - return Of::sample(); /*241:of*/ | |
| 17266 | + return Of::sample(); /*244:of*/ | |
| 17027 | 17267 | } |
| 17028 | 17268 | |
| 17029 | 17269 | /** |
| @@ -17099,7 +17339,7 @@ class TopLevel { | ||
| 17099 | 17339 | * @return Oneway|float|null |
| 17100 | 17340 | */ |
| 17101 | 17341 | public static function sampleOneway(): Oneway|float|null { |
| 17102 | - return Oneway::sample(); /*242:oneway*/ | |
| 17342 | + return Oneway::sample(); /*245:oneway*/ | |
| 17103 | 17343 | } |
| 17104 | 17344 | |
| 17105 | 17345 | /** |
| @@ -17175,7 +17415,7 @@ class TopLevel { | ||
| 17175 | 17415 | * @return Open|float|null |
| 17176 | 17416 | */ |
| 17177 | 17417 | public static function sampleOpen(): Open|float|null { |
| 17178 | - return Open::sample(); /*243:open*/ | |
| 17418 | + return Open::sample(); /*246:open*/ | |
| 17179 | 17419 | } |
| 17180 | 17420 | |
| 17181 | 17421 | /** |
| @@ -17251,7 +17491,7 @@ class TopLevel { | ||
| 17251 | 17491 | * @return Operator|float|null |
| 17252 | 17492 | */ |
| 17253 | 17493 | public static function sampleOperator(): Operator|float|null { |
| 17254 | - return Operator::sample(); /*244:operator*/ | |
| 17494 | + return Operator::sample(); /*247:operator*/ | |
| 17255 | 17495 | } |
| 17256 | 17496 | |
| 17257 | 17497 | /** |
| @@ -17327,7 +17567,7 @@ class TopLevel { | ||
| 17327 | 17567 | * @return Optional|float|null |
| 17328 | 17568 | */ |
| 17329 | 17569 | public static function sampleOptional(): Optional|float|null { |
| 17330 | - return Optional::sample(); /*245:optional*/ | |
| 17570 | + return Optional::sample(); /*248:optional*/ | |
| 17331 | 17571 | } |
| 17332 | 17572 | |
| 17333 | 17573 | /** |
| @@ -17403,7 +17643,7 @@ class TopLevel { | ||
| 17403 | 17643 | * @return OrClass|float|null |
| 17404 | 17644 | */ |
| 17405 | 17645 | public static function sampleOr(): OrClass|float|null { |
| 17406 | - return OrClass::sample(); /*246:or*/ | |
| 17646 | + return OrClass::sample(); /*249:or*/ | |
| 17407 | 17647 | } |
| 17408 | 17648 | |
| 17409 | 17649 | /** |
| @@ -17479,7 +17719,7 @@ class TopLevel { | ||
| 17479 | 17719 | * @return OrEq|float|null |
| 17480 | 17720 | */ |
| 17481 | 17721 | public static function sampleOrEq(): OrEq|float|null { |
| 17482 | - return OrEq::sample(); /*247:orEq*/ | |
| 17722 | + return OrEq::sample(); /*250:orEq*/ | |
| 17483 | 17723 | } |
| 17484 | 17724 | |
| 17485 | 17725 | /** |
| @@ -17555,7 +17795,7 @@ class TopLevel { | ||
| 17555 | 17795 | * @return Out|float|null |
| 17556 | 17796 | */ |
| 17557 | 17797 | public static function sampleOut(): Out|float|null { |
| 17558 | - return Out::sample(); /*248:out*/ | |
| 17798 | + return Out::sample(); /*251:out*/ | |
| 17559 | 17799 | } |
| 17560 | 17800 | |
| 17561 | 17801 | /** |
| @@ -17631,7 +17871,7 @@ class TopLevel { | ||
| 17631 | 17871 | * @return OverrideClass|float|null |
| 17632 | 17872 | */ |
| 17633 | 17873 | public static function sampleOverride(): OverrideClass|float|null { |
| 17634 | - return OverrideClass::sample(); /*249:override*/ | |
| 17874 | + return OverrideClass::sample(); /*252:override*/ | |
| 17635 | 17875 | } |
| 17636 | 17876 | |
| 17637 | 17877 | /** |
| @@ -17707,7 +17947,7 @@ class TopLevel { | ||
| 17707 | 17947 | * @return Package|float|null |
| 17708 | 17948 | */ |
| 17709 | 17949 | public static function samplePackage(): Package|float|null { |
| 17710 | - return Package::sample(); /*250:package*/ | |
| 17950 | + return Package::sample(); /*253:package*/ | |
| 17711 | 17951 | } |
| 17712 | 17952 | |
| 17713 | 17953 | /** |
| @@ -17783,7 +18023,7 @@ class TopLevel { | ||
| 17783 | 18023 | * @return Params|float|null |
| 17784 | 18024 | */ |
| 17785 | 18025 | public static function sampleParams(): Params|float|null { |
| 17786 | - return Params::sample(); /*251:params*/ | |
| 18026 | + return Params::sample(); /*254:params*/ | |
| 17787 | 18027 | } |
| 17788 | 18028 | |
| 17789 | 18029 | /** |
| @@ -17859,7 +18099,7 @@ class TopLevel { | ||
| 17859 | 18099 | * @return Pass|float|null |
| 17860 | 18100 | */ |
| 17861 | 18101 | public static function samplePass(): Pass|float|null { |
| 17862 | - return Pass::sample(); /*252:pass*/ | |
| 18102 | + return Pass::sample(); /*255:pass*/ | |
| 17863 | 18103 | } |
| 17864 | 18104 | |
| 17865 | 18105 | /** |
| @@ -17935,7 +18175,7 @@ class TopLevel { | ||
| 17935 | 18175 | * @return Port|float|null |
| 17936 | 18176 | */ |
| 17937 | 18177 | public static function samplePort(): Port|float|null { |
| 17938 | - return Port::sample(); /*253:port*/ | |
| 18178 | + return Port::sample(); /*256:port*/ | |
| 17939 | 18179 | } |
| 17940 | 18180 | |
| 17941 | 18181 | /** |
| @@ -18011,7 +18251,7 @@ class TopLevel { | ||
| 18011 | 18251 | * @return Postfix|float|null |
| 18012 | 18252 | */ |
| 18013 | 18253 | public static function samplePostfix(): Postfix|float|null { |
| 18014 | - return Postfix::sample(); /*254:postfix*/ | |
| 18254 | + return Postfix::sample(); /*257:postfix*/ | |
| 18015 | 18255 | } |
| 18016 | 18256 | |
| 18017 | 18257 | /** |
| @@ -18087,7 +18327,7 @@ class TopLevel { | ||
| 18087 | 18327 | * @return Precedence|float|null |
| 18088 | 18328 | */ |
| 18089 | 18329 | public static function samplePrecedence(): Precedence|float|null { |
| 18090 | - return Precedence::sample(); /*255:precedence*/ | |
| 18330 | + return Precedence::sample(); /*258:precedence*/ | |
| 18091 | 18331 | } |
| 18092 | 18332 | |
| 18093 | 18333 | /** |
| @@ -18163,7 +18403,7 @@ class TopLevel { | ||
| 18163 | 18403 | * @return Prefix|float|null |
| 18164 | 18404 | */ |
| 18165 | 18405 | public static function samplePrefix(): Prefix|float|null { |
| 18166 | - return Prefix::sample(); /*256:prefix*/ | |
| 18406 | + return Prefix::sample(); /*259:prefix*/ | |
| 18167 | 18407 | } |
| 18168 | 18408 | |
| 18169 | 18409 | /** |
| @@ -18239,7 +18479,7 @@ class TopLevel { | ||
| 18239 | 18479 | * @return PrintClass|float|null |
| 18240 | 18480 | */ |
| 18241 | 18481 | public static function samplePrint(): PrintClass|float|null { |
| 18242 | - return PrintClass::sample(); /*257:print*/ | |
| 18482 | + return PrintClass::sample(); /*260:print*/ | |
| 18243 | 18483 | } |
| 18244 | 18484 | |
| 18245 | 18485 | /** |
| @@ -18315,7 +18555,7 @@ class TopLevel { | ||
| 18315 | 18555 | * @return Printf|float|null |
| 18316 | 18556 | */ |
| 18317 | 18557 | public static function samplePrintf(): Printf|float|null { |
| 18318 | - return Printf::sample(); /*258:printf*/ | |
| 18558 | + return Printf::sample(); /*261:printf*/ | |
| 18319 | 18559 | } |
| 18320 | 18560 | |
| 18321 | 18561 | /** |
| @@ -18391,7 +18631,7 @@ class TopLevel { | ||
| 18391 | 18631 | * @return PrintMembers|float|null |
| 18392 | 18632 | */ |
| 18393 | 18633 | public static function samplePrintMembers(): PrintMembers|float|null { |
| 18394 | - return PrintMembers::sample(); /*259:printMembers*/ | |
| 18634 | + return PrintMembers::sample(); /*262:printMembers*/ | |
| 18395 | 18635 | } |
| 18396 | 18636 | |
| 18397 | 18637 | /** |
| @@ -18467,7 +18707,7 @@ class TopLevel { | ||
| 18467 | 18707 | * @return PrivateClass|float|null |
| 18468 | 18708 | */ |
| 18469 | 18709 | public static function samplePrivate(): PrivateClass|float|null { |
| 18470 | - return PrivateClass::sample(); /*260:private*/ | |
| 18710 | + return PrivateClass::sample(); /*263:private*/ | |
| 18471 | 18711 | } |
| 18472 | 18712 | |
| 18473 | 18713 | /** |
| @@ -18543,7 +18783,7 @@ class TopLevel { | ||
| 18543 | 18783 | * @return ProtectedClass|float|null |
| 18544 | 18784 | */ |
| 18545 | 18785 | public static function sampleProtected(): ProtectedClass|float|null { |
| 18546 | - return ProtectedClass::sample(); /*261:protected*/ | |
| 18786 | + return ProtectedClass::sample(); /*264:protected*/ | |
| 18547 | 18787 | } |
| 18548 | 18788 | |
| 18549 | 18789 | /** |
| @@ -18619,7 +18859,7 @@ class TopLevel { | ||
| 18619 | 18859 | * @return Protocol|float|null |
| 18620 | 18860 | */ |
| 18621 | 18861 | public static function sampleProtocol(): Protocol|float|null { |
| 18622 | - return Protocol::sample(); /*262:protocol*/ | |
| 18862 | + return Protocol::sample(); /*265:protocol*/ | |
| 18623 | 18863 | } |
| 18624 | 18864 | |
| 18625 | 18865 | /** |
| @@ -18695,7 +18935,7 @@ class TopLevel { | ||
| 18695 | 18935 | * @return ProtocolClass|float|null |
| 18696 | 18936 | */ |
| 18697 | 18937 | public static function sampleTopLevelProtocol(): ProtocolClass|float|null { |
| 18698 | - return ProtocolClass::sample(); /*263:topLevelProtocol*/ | |
| 18938 | + return ProtocolClass::sample(); /*266:topLevelProtocol*/ | |
| 18699 | 18939 | } |
| 18700 | 18940 | |
| 18701 | 18941 | /** |
| @@ -18771,7 +19011,7 @@ class TopLevel { | ||
| 18771 | 19011 | * @return PublicClass|float|null |
| 18772 | 19012 | */ |
| 18773 | 19013 | public static function samplePublic(): PublicClass|float|null { |
| 18774 | - return PublicClass::sample(); /*264:public*/ | |
| 19014 | + return PublicClass::sample(); /*267:public*/ | |
| 18775 | 19015 | } |
| 18776 | 19016 | |
| 18777 | 19017 | /** |
| @@ -18847,7 +19087,7 @@ class TopLevel { | ||
| 18847 | 19087 | * @return Quicktype|float|null |
| 18848 | 19088 | */ |
| 18849 | 19089 | public static function sampleQuicktype(): Quicktype|float|null { |
| 18850 | - return Quicktype::sample(); /*265:quicktype*/ | |
| 19090 | + return Quicktype::sample(); /*268:quicktype*/ | |
| 18851 | 19091 | } |
| 18852 | 19092 | |
| 18853 | 19093 | /** |
| @@ -18923,7 +19163,7 @@ class TopLevel { | ||
| 18923 | 19163 | * @return Raise|float|null |
| 18924 | 19164 | */ |
| 18925 | 19165 | public static function sampleRaise(): Raise|float|null { |
| 18926 | - return Raise::sample(); /*266:raise*/ | |
| 19166 | + return Raise::sample(); /*269:raise*/ | |
| 18927 | 19167 | } |
| 18928 | 19168 | |
| 18929 | 19169 | /** |
| @@ -18999,7 +19239,7 @@ class TopLevel { | ||
| 18999 | 19239 | * @return Range|float|null |
| 19000 | 19240 | */ |
| 19001 | 19241 | public static function sampleRange(): Range|float|null { |
| 19002 | - return Range::sample(); /*267:range*/ | |
| 19242 | + return Range::sample(); /*270:range*/ | |
| 19003 | 19243 | } |
| 19004 | 19244 | |
| 19005 | 19245 | /** |
| @@ -19075,7 +19315,7 @@ class TopLevel { | ||
| 19075 | 19315 | * @return ReadonlyClass|float|null |
| 19076 | 19316 | */ |
| 19077 | 19317 | public static function sampleReadonly(): ReadonlyClass|float|null { |
| 19078 | - return ReadonlyClass::sample(); /*268:readonly*/ | |
| 19318 | + return ReadonlyClass::sample(); /*271:readonly*/ | |
| 19079 | 19319 | } |
| 19080 | 19320 | |
| 19081 | 19321 | /** |
| @@ -19151,7 +19391,7 @@ class TopLevel { | ||
| 19151 | 19391 | * @return Ref|float|null |
| 19152 | 19392 | */ |
| 19153 | 19393 | public static function sampleRef(): Ref|float|null { |
| 19154 | - return Ref::sample(); /*269:ref*/ | |
| 19394 | + return Ref::sample(); /*272:ref*/ | |
| 19155 | 19395 | } |
| 19156 | 19396 | |
| 19157 | 19397 | /** |
| @@ -19227,7 +19467,7 @@ class TopLevel { | ||
| 19227 | 19467 | * @return RegExp|float|null |
| 19228 | 19468 | */ |
| 19229 | 19469 | public static function sampleRegExp(): RegExp|float|null { |
| 19230 | - return RegExp::sample(); /*270:regExp*/ | |
| 19470 | + return RegExp::sample(); /*273:regExp*/ | |
| 19231 | 19471 | } |
| 19232 | 19472 | |
| 19233 | 19473 | /** |
| @@ -19303,7 +19543,7 @@ class TopLevel { | ||
| 19303 | 19543 | * @return Register|float|null |
| 19304 | 19544 | */ |
| 19305 | 19545 | public static function sampleRegister(): Register|float|null { |
| 19306 | - return Register::sample(); /*271:register*/ | |
| 19546 | + return Register::sample(); /*274:register*/ | |
| 19307 | 19547 | } |
| 19308 | 19548 | |
| 19309 | 19549 | /** |
| @@ -19379,7 +19619,7 @@ class TopLevel { | ||
| 19379 | 19619 | * @return ReinterpretCast|float|null |
| 19380 | 19620 | */ |
| 19381 | 19621 | public static function sampleReinterpretCast(): ReinterpretCast|float|null { |
| 19382 | - return ReinterpretCast::sample(); /*272:reinterpretCast*/ | |
| 19622 | + return ReinterpretCast::sample(); /*275:reinterpretCast*/ | |
| 19383 | 19623 | } |
| 19384 | 19624 | |
| 19385 | 19625 | /** |
| @@ -19455,7 +19695,7 @@ class TopLevel { | ||
| 19455 | 19695 | * @return Repeat|float|null |
| 19456 | 19696 | */ |
| 19457 | 19697 | public static function sampleRepeat(): Repeat|float|null { |
| 19458 | - return Repeat::sample(); /*273:repeat*/ | |
| 19698 | + return Repeat::sample(); /*276:repeat*/ | |
| 19459 | 19699 | } |
| 19460 | 19700 | |
| 19461 | 19701 | /** |
| @@ -19531,7 +19771,7 @@ class TopLevel { | ||
| 19531 | 19771 | * @return RequireClass|float|null |
| 19532 | 19772 | */ |
| 19533 | 19773 | public static function sampleRequire(): RequireClass|float|null { |
| 19534 | - return RequireClass::sample(); /*274:require*/ | |
| 19774 | + return RequireClass::sample(); /*277:require*/ | |
| 19535 | 19775 | } |
| 19536 | 19776 | |
| 19537 | 19777 | /** |
| @@ -19607,7 +19847,7 @@ class TopLevel { | ||
| 19607 | 19847 | * @return Required|float|null |
| 19608 | 19848 | */ |
| 19609 | 19849 | public static function sampleRequired(): Required|float|null { |
| 19610 | - return Required::sample(); /*275:required*/ | |
| 19850 | + return Required::sample(); /*278:required*/ | |
| 19611 | 19851 | } |
| 19612 | 19852 | |
| 19613 | 19853 | /** |
| @@ -19683,7 +19923,7 @@ class TopLevel { | ||
| 19683 | 19923 | * @return Requires|float|null |
| 19684 | 19924 | */ |
| 19685 | 19925 | public static function sampleRequires(): Requires|float|null { |
| 19686 | - return Requires::sample(); /*276:requires*/ | |
| 19926 | + return Requires::sample(); /*279:requires*/ | |
| 19687 | 19927 | } |
| 19688 | 19928 | |
| 19689 | 19929 | /** |
| @@ -19759,7 +19999,7 @@ class TopLevel { | ||
| 19759 | 19999 | * @return Restrict|float|null |
| 19760 | 20000 | */ |
| 19761 | 20001 | public static function sampleRestrict(): Restrict|float|null { |
| 19762 | - return Restrict::sample(); /*277:restrict*/ | |
| 20002 | + return Restrict::sample(); /*280:restrict*/ | |
| 19763 | 20003 | } |
| 19764 | 20004 | |
| 19765 | 20005 | /** |
| @@ -19835,7 +20075,7 @@ class TopLevel { | ||
| 19835 | 20075 | * @return Retain|float|null |
| 19836 | 20076 | */ |
| 19837 | 20077 | public static function sampleRetain(): Retain|float|null { |
| 19838 | - return Retain::sample(); /*278:retain*/ | |
| 20078 | + return Retain::sample(); /*281:retain*/ | |
| 19839 | 20079 | } |
| 19840 | 20080 | |
| 19841 | 20081 | /** |
| @@ -19911,7 +20151,7 @@ class TopLevel { | ||
| 19911 | 20151 | * @return Rethrows|float|null |
| 19912 | 20152 | */ |
| 19913 | 20153 | public static function sampleRethrows(): Rethrows|float|null { |
| 19914 | - return Rethrows::sample(); /*279:rethrows*/ | |
| 20154 | + return Rethrows::sample(); /*282:rethrows*/ | |
| 19915 | 20155 | } |
| 19916 | 20156 | |
| 19917 | 20157 | /** |
| @@ -19987,7 +20227,7 @@ class TopLevel { | ||
| 19987 | 20227 | * @return ReturnClass|float|null |
| 19988 | 20228 | */ |
| 19989 | 20229 | public static function sampleReturn(): ReturnClass|float|null { |
| 19990 | - return ReturnClass::sample(); /*280:return*/ | |
| 20230 | + return ReturnClass::sample(); /*283:return*/ | |
| 19991 | 20231 | } |
| 19992 | 20232 | |
| 19993 | 20233 | /** |
| @@ -20063,7 +20303,7 @@ class TopLevel { | ||
| 20063 | 20303 | * @return Right|float|null |
| 20064 | 20304 | */ |
| 20065 | 20305 | public static function sampleRight(): Right|float|null { |
| 20066 | - return Right::sample(); /*281:right*/ | |
| 20306 | + return Right::sample(); /*284:right*/ | |
| 20067 | 20307 | } |
| 20068 | 20308 | |
| 20069 | 20309 | /** |
| @@ -20139,7 +20379,7 @@ class TopLevel { | ||
| 20139 | 20379 | * @return RuntimeType|float|null |
| 20140 | 20380 | */ |
| 20141 | 20381 | public static function sampleRuntimeType(): RuntimeType|float|null { |
| 20142 | - return RuntimeType::sample(); /*282:runtimeType*/ | |
| 20382 | + return RuntimeType::sample(); /*285:runtimeType*/ | |
| 20143 | 20383 | } |
| 20144 | 20384 | |
| 20145 | 20385 | /** |
| @@ -20215,7 +20455,7 @@ class TopLevel { | ||
| 20215 | 20455 | * @return S|float|null |
| 20216 | 20456 | */ |
| 20217 | 20457 | public static function sampleS(): S|float|null { |
| 20218 | - return S::sample(); /*283:s*/ | |
| 20458 | + return S::sample(); /*286:s*/ | |
| 20219 | 20459 | } |
| 20220 | 20460 | |
| 20221 | 20461 | /** |
| @@ -20291,7 +20531,7 @@ class TopLevel { | ||
| 20291 | 20531 | * @return Sbyte|float|null |
| 20292 | 20532 | */ |
| 20293 | 20533 | public static function sampleSbyte(): Sbyte|float|null { |
| 20294 | - return Sbyte::sample(); /*284:sbyte*/ | |
| 20534 | + return Sbyte::sample(); /*287:sbyte*/ | |
| 20295 | 20535 | } |
| 20296 | 20536 | |
| 20297 | 20537 | /** |
| @@ -20367,7 +20607,7 @@ class TopLevel { | ||
| 20367 | 20607 | * @return Sealed|float|null |
| 20368 | 20608 | */ |
| 20369 | 20609 | public static function sampleSealed(): Sealed|float|null { |
| 20370 | - return Sealed::sample(); /*285:sealed*/ | |
| 20610 | + return Sealed::sample(); /*288:sealed*/ | |
| 20371 | 20611 | } |
| 20372 | 20612 | |
| 20373 | 20613 | /** |
| @@ -20443,7 +20683,7 @@ class TopLevel { | ||
| 20443 | 20683 | * @return Sel|float|null |
| 20444 | 20684 | */ |
| 20445 | 20685 | public static function sampleSel(): Sel|float|null { |
| 20446 | - return Sel::sample(); /*286:sel*/ | |
| 20686 | + return Sel::sample(); /*289:sel*/ | |
| 20447 | 20687 | } |
| 20448 | 20688 | |
| 20449 | 20689 | /** |
| @@ -20519,7 +20759,7 @@ class TopLevel { | ||
| 20519 | 20759 | * @return Select|float|null |
| 20520 | 20760 | */ |
| 20521 | 20761 | public static function sampleSelect(): Select|float|null { |
| 20522 | - return Select::sample(); /*287:select*/ | |
| 20762 | + return Select::sample(); /*290:select*/ | |
| 20523 | 20763 | } |
| 20524 | 20764 | |
| 20525 | 20765 | /** |
| @@ -20595,7 +20835,7 @@ class TopLevel { | ||
| 20595 | 20835 | * @return SelfClass|float|null |
| 20596 | 20836 | */ |
| 20597 | 20837 | public static function sampleSelf(): SelfClass|float|null { |
| 20598 | - return SelfClass::sample(); /*288:self*/ | |
| 20838 | + return SelfClass::sample(); /*291:self*/ | |
| 20599 | 20839 | } |
| 20600 | 20840 | |
| 20601 | 20841 | /** |
| @@ -20671,7 +20911,7 @@ class TopLevel { | ||
| 20671 | 20911 | * @return UnionSelfSelf|float|null |
| 20672 | 20912 | */ |
| 20673 | 20913 | public static function sampleTopLevelSelf(): UnionSelfSelf|float|null { |
| 20674 | - return UnionSelfSelf::sample(); /*289:topLevelSelf*/ | |
| 20914 | + return UnionSelfSelf::sample(); /*292:topLevelSelf*/ | |
| 20675 | 20915 | } |
| 20676 | 20916 | |
| 20677 | 20917 | /** |
| @@ -20747,7 +20987,83 @@ class TopLevel { | ||
| 20747 | 20987 | * @return Sendable|float|null |
| 20748 | 20988 | */ |
| 20749 | 20989 | public static function sampleSendable(): Sendable|float|null { |
| 20750 | - return Sendable::sample(); /*290:sendable*/ | |
| 20990 | + return Sendable::sample(); /*293:sendable*/ | |
| 20991 | + } | |
| 20992 | + | |
| 20993 | + /** | |
| 20994 | + * @param stdClass|float|null $value | |
| 20995 | + * @throws Exception | |
| 20996 | + * @return SerializationFeature|float|null | |
| 20997 | + */ | |
| 20998 | + public static function fromSerializationFeature(stdClass|float|null $value): SerializationFeature|float|null { | |
| 20999 | + if (is_null($value)) { | |
| 21000 | + return $value; /*null*/ | |
| 21001 | + } elseif (is_object($value)) { | |
| 21002 | + return SerializationFeature::from($value); /*class*/ | |
| 21003 | + } elseif (is_float($value) || is_int($value)) { | |
| 21004 | + return $value; /*float*/ | |
| 21005 | + } else { | |
| 21006 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 21007 | + } | |
| 21008 | + } | |
| 21009 | + | |
| 21010 | + /** | |
| 21011 | + * @throws Exception | |
| 21012 | + * @return stdClass|float|null | |
| 21013 | + */ | |
| 21014 | + public function toSerializationFeature(): stdClass|float|null { | |
| 21015 | + if (TopLevel::validateSerializationFeature($this->serializationFeature)) { | |
| 21016 | + if (is_null($this->serializationFeature)) { | |
| 21017 | + return $this->serializationFeature; /*null*/ | |
| 21018 | + } elseif ($this->serializationFeature instanceof SerializationFeature) { | |
| 21019 | + return $this->serializationFeature->to(); /*class*/ | |
| 21020 | + } elseif (is_float($this->serializationFeature) || is_int($this->serializationFeature)) { | |
| 21021 | + return $this->serializationFeature; /*float*/ | |
| 21022 | + } else { | |
| 21023 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 21024 | + } | |
| 21025 | + } | |
| 21026 | + throw new Exception('never get to this TopLevel::serializationFeature'); | |
| 21027 | + } | |
| 21028 | + | |
| 21029 | + /** | |
| 21030 | + * @param SerializationFeature|float|null | |
| 21031 | + * @return bool | |
| 21032 | + * @throws Exception | |
| 21033 | + */ | |
| 21034 | + public static function validateSerializationFeature(SerializationFeature|float|null $value): bool { | |
| 21035 | + if (is_null($value)) { | |
| 21036 | + if (!is_null($value)) { | |
| 21037 | + throw new Exception("Attribute Error:TopLevel::serializationFeature"); | |
| 21038 | + } | |
| 21039 | + } elseif ($value instanceof SerializationFeature) { | |
| 21040 | + $value->validate(); | |
| 21041 | + } elseif (is_float($value) || is_int($value)) { | |
| 21042 | + if (!is_float($value) && !is_int($value)) { | |
| 21043 | + throw new Exception("Attribute Error:TopLevel::serializationFeature"); | |
| 21044 | + } | |
| 21045 | + } else { | |
| 21046 | + throw new Exception("Attribute Error:TopLevel::serializationFeature"); | |
| 21047 | + } | |
| 21048 | + return true; | |
| 21049 | + } | |
| 21050 | + | |
| 21051 | + /** | |
| 21052 | + * @throws Exception | |
| 21053 | + * @return SerializationFeature|float|null | |
| 21054 | + */ | |
| 21055 | + public function getSerializationFeature(): SerializationFeature|float|null { | |
| 21056 | + if (TopLevel::validateSerializationFeature($this->serializationFeature)) { | |
| 21057 | + return $this->serializationFeature; | |
| 21058 | + } | |
| 21059 | + throw new Exception('never get to getSerializationFeature TopLevel::serializationFeature'); | |
| 21060 | + } | |
| 21061 | + | |
| 21062 | + /** | |
| 21063 | + * @return SerializationFeature|float|null | |
| 21064 | + */ | |
| 21065 | + public static function sampleSerializationFeature(): SerializationFeature|float|null { | |
| 21066 | + return SerializationFeature::sample(); /*294:serializationFeature*/ | |
| 20751 | 21067 | } |
| 20752 | 21068 | |
| 20753 | 21069 | /** |
| @@ -20823,7 +21139,7 @@ class TopLevel { | ||
| 20823 | 21139 | * @return Serialize|float|null |
| 20824 | 21140 | */ |
| 20825 | 21141 | public static function sampleSerialize(): Serialize|float|null { |
| 20826 | - return Serialize::sample(); /*291:serialize*/ | |
| 21142 | + return Serialize::sample(); /*295:serialize*/ | |
| 20827 | 21143 | } |
| 20828 | 21144 | |
| 20829 | 21145 | /** |
| @@ -20899,7 +21215,7 @@ class TopLevel { | ||
| 20899 | 21215 | * @return SerializerProvider|float|null |
| 20900 | 21216 | */ |
| 20901 | 21217 | public static function sampleSerializerProvider(): SerializerProvider|float|null { |
| 20902 | - return SerializerProvider::sample(); /*292:serializerProvider*/ | |
| 21218 | + return SerializerProvider::sample(); /*296:serializerProvider*/ | |
| 20903 | 21219 | } |
| 20904 | 21220 | |
| 20905 | 21221 | /** |
| @@ -20975,7 +21291,7 @@ class TopLevel { | ||
| 20975 | 21291 | * @return Set|float|null |
| 20976 | 21292 | */ |
| 20977 | 21293 | public static function sampleSet(): Set|float|null { |
| 20978 | - return Set::sample(); /*293:set*/ | |
| 21294 | + return Set::sample(); /*297:set*/ | |
| 20979 | 21295 | } |
| 20980 | 21296 | |
| 20981 | 21297 | /** |
| @@ -21051,7 +21367,7 @@ class TopLevel { | ||
| 21051 | 21367 | * @return Short|float|null |
| 21052 | 21368 | */ |
| 21053 | 21369 | public static function sampleShort(): Short|float|null { |
| 21054 | - return Short::sample(); /*294:short*/ | |
| 21370 | + return Short::sample(); /*298:short*/ | |
| 21055 | 21371 | } |
| 21056 | 21372 | |
| 21057 | 21373 | /** |
| @@ -21127,7 +21443,7 @@ class TopLevel { | ||
| 21127 | 21443 | * @return Signed|float|null |
| 21128 | 21444 | */ |
| 21129 | 21445 | public static function sampleSigned(): Signed|float|null { |
| 21130 | - return Signed::sample(); /*295:signed*/ | |
| 21446 | + return Signed::sample(); /*299:signed*/ | |
| 21131 | 21447 | } |
| 21132 | 21448 | |
| 21133 | 21449 | /** |
| @@ -21203,7 +21519,7 @@ class TopLevel { | ||
| 21203 | 21519 | * @return SimpleModule|float|null |
| 21204 | 21520 | */ |
| 21205 | 21521 | public static function sampleSimpleModule(): SimpleModule|float|null { |
| 21206 | - return SimpleModule::sample(); /*296:simpleModule*/ | |
| 21522 | + return SimpleModule::sample(); /*300:simpleModule*/ | |
| 21207 | 21523 | } |
| 21208 | 21524 | |
| 21209 | 21525 | /** |
| @@ -21279,7 +21595,7 @@ class TopLevel { | ||
| 21279 | 21595 | * @return Sizeof|float|null |
| 21280 | 21596 | */ |
| 21281 | 21597 | public static function sampleSizeof(): Sizeof|float|null { |
| 21282 | - return Sizeof::sample(); /*297:sizeof*/ | |
| 21598 | + return Sizeof::sample(); /*301:sizeof*/ | |
| 21283 | 21599 | } |
| 21284 | 21600 | |
| 21285 | 21601 | /** |
| @@ -21355,7 +21671,7 @@ class TopLevel { | ||
| 21355 | 21671 | * @return Stackalloc|float|null |
| 21356 | 21672 | */ |
| 21357 | 21673 | public static function sampleStackalloc(): Stackalloc|float|null { |
| 21358 | - return Stackalloc::sample(); /*298:stackalloc*/ | |
| 21674 | + return Stackalloc::sample(); /*302:stackalloc*/ | |
| 21359 | 21675 | } |
| 21360 | 21676 | |
| 21361 | 21677 | /** |
| @@ -21431,7 +21747,7 @@ class TopLevel { | ||
| 21431 | 21747 | * @return Standards|float|null |
| 21432 | 21748 | */ |
| 21433 | 21749 | public static function sampleStandards(): Standards|float|null { |
| 21434 | - return Standards::sample(); /*299:standards*/ | |
| 21750 | + return Standards::sample(); /*303:standards*/ | |
| 21435 | 21751 | } |
| 21436 | 21752 | |
| 21437 | 21753 | /** |
| @@ -21507,7 +21823,7 @@ class TopLevel { | ||
| 21507 | 21823 | * @return StaticClass|float|null |
| 21508 | 21824 | */ |
| 21509 | 21825 | public static function sampleStatic(): StaticClass|float|null { |
| 21510 | - return StaticClass::sample(); /*300:static*/ | |
| 21826 | + return StaticClass::sample(); /*304:static*/ | |
| 21511 | 21827 | } |
| 21512 | 21828 | |
| 21513 | 21829 | /** |
| @@ -21583,7 +21899,7 @@ class TopLevel { | ||
| 21583 | 21899 | * @return StaticAssert|float|null |
| 21584 | 21900 | */ |
| 21585 | 21901 | public static function sampleStaticAssert(): StaticAssert|float|null { |
| 21586 | - return StaticAssert::sample(); /*301:staticAssert*/ | |
| 21902 | + return StaticAssert::sample(); /*305:staticAssert*/ | |
| 21587 | 21903 | } |
| 21588 | 21904 | |
| 21589 | 21905 | /** |
| @@ -21659,7 +21975,7 @@ class TopLevel { | ||
| 21659 | 21975 | * @return StaticCast|float|null |
| 21660 | 21976 | */ |
| 21661 | 21977 | public static function sampleStaticCast(): StaticCast|float|null { |
| 21662 | - return StaticCast::sample(); /*302:staticCast*/ | |
| 21978 | + return StaticCast::sample(); /*306:staticCast*/ | |
| 21663 | 21979 | } |
| 21664 | 21980 | |
| 21665 | 21981 | /** |
| @@ -21735,7 +22051,7 @@ class TopLevel { | ||
| 21735 | 22051 | * @return StdDeserializer|float|null |
| 21736 | 22052 | */ |
| 21737 | 22053 | public static function sampleStdDeserializer(): StdDeserializer|float|null { |
| 21738 | - return StdDeserializer::sample(); /*303:stdDeserializer*/ | |
| 22054 | + return StdDeserializer::sample(); /*307:stdDeserializer*/ | |
| 21739 | 22055 | } |
| 21740 | 22056 | |
| 21741 | 22057 | /** |
| @@ -21811,7 +22127,7 @@ class TopLevel { | ||
| 21811 | 22127 | * @return StdSerializer|float|null |
| 21812 | 22128 | */ |
| 21813 | 22129 | public static function sampleStdSerializer(): StdSerializer|float|null { |
| 21814 | - return StdSerializer::sample(); /*304:stdSerializer*/ | |
| 22130 | + return StdSerializer::sample(); /*308:stdSerializer*/ | |
| 21815 | 22131 | } |
| 21816 | 22132 | |
| 21817 | 22133 | /** |
| @@ -21887,7 +22203,7 @@ class TopLevel { | ||
| 21887 | 22203 | * @return Strictfp|float|null |
| 21888 | 22204 | */ |
| 21889 | 22205 | public static function sampleStrictfp(): Strictfp|float|null { |
| 21890 | - return Strictfp::sample(); /*305:strictfp*/ | |
| 22206 | + return Strictfp::sample(); /*309:strictfp*/ | |
| 21891 | 22207 | } |
| 21892 | 22208 | |
| 21893 | 22209 | /** |
| @@ -21963,7 +22279,7 @@ class TopLevel { | ||
| 21963 | 22279 | * @return StringClass|float|null |
| 21964 | 22280 | */ |
| 21965 | 22281 | public static function sampleString(): StringClass|float|null { |
| 21966 | - return StringClass::sample(); /*306:string*/ | |
| 22282 | + return StringClass::sample(); /*310:string*/ | |
| 21967 | 22283 | } |
| 21968 | 22284 | |
| 21969 | 22285 | /** |
| @@ -22039,7 +22355,7 @@ class TopLevel { | ||
| 22039 | 22355 | * @return Struct|float|null |
| 22040 | 22356 | */ |
| 22041 | 22357 | public static function sampleStruct(): Struct|float|null { |
| 22042 | - return Struct::sample(); /*307:struct*/ | |
| 22358 | + return Struct::sample(); /*311:struct*/ | |
| 22043 | 22359 | } |
| 22044 | 22360 | |
| 22045 | 22361 | /** |
| @@ -22115,7 +22431,7 @@ class TopLevel { | ||
| 22115 | 22431 | * @return Subscript|float|null |
| 22116 | 22432 | */ |
| 22117 | 22433 | public static function sampleSubscript(): Subscript|float|null { |
| 22118 | - return Subscript::sample(); /*308:subscript*/ | |
| 22434 | + return Subscript::sample(); /*312:subscript*/ | |
| 22119 | 22435 | } |
| 22120 | 22436 | |
| 22121 | 22437 | /** |
| @@ -22191,7 +22507,7 @@ class TopLevel { | ||
| 22191 | 22507 | * @return Super|float|null |
| 22192 | 22508 | */ |
| 22193 | 22509 | public static function sampleSuper(): Super|float|null { |
| 22194 | - return Super::sample(); /*309:super*/ | |
| 22510 | + return Super::sample(); /*313:super*/ | |
| 22195 | 22511 | } |
| 22196 | 22512 | |
| 22197 | 22513 | /** |
| @@ -22267,7 +22583,7 @@ class TopLevel { | ||
| 22267 | 22583 | * @return SwitchClass|float|null |
| 22268 | 22584 | */ |
| 22269 | 22585 | public static function sampleSwitch(): SwitchClass|float|null { |
| 22270 | - return SwitchClass::sample(); /*310:switch*/ | |
| 22586 | + return SwitchClass::sample(); /*314:switch*/ | |
| 22271 | 22587 | } |
| 22272 | 22588 | |
| 22273 | 22589 | /** |
| @@ -22343,7 +22659,7 @@ class TopLevel { | ||
| 22343 | 22659 | * @return Symbol|float|null |
| 22344 | 22660 | */ |
| 22345 | 22661 | public static function sampleSymbol(): Symbol|float|null { |
| 22346 | - return Symbol::sample(); /*311:symbol*/ | |
| 22662 | + return Symbol::sample(); /*315:symbol*/ | |
| 22347 | 22663 | } |
| 22348 | 22664 | |
| 22349 | 22665 | /** |
| @@ -22419,7 +22735,7 @@ class TopLevel { | ||
| 22419 | 22735 | * @return Synchronized|float|null |
| 22420 | 22736 | */ |
| 22421 | 22737 | public static function sampleSynchronized(): Synchronized|float|null { |
| 22422 | - return Synchronized::sample(); /*312:synchronized*/ | |
| 22738 | + return Synchronized::sample(); /*316:synchronized*/ | |
| 22423 | 22739 | } |
| 22424 | 22740 | |
| 22425 | 22741 | /** |
| @@ -22495,7 +22811,7 @@ class TopLevel { | ||
| 22495 | 22811 | * @return System|float|null |
| 22496 | 22812 | */ |
| 22497 | 22813 | public static function sampleSystem(): System|float|null { |
| 22498 | - return System::sample(); /*313:system*/ | |
| 22814 | + return System::sample(); /*317:system*/ | |
| 22499 | 22815 | } |
| 22500 | 22816 | |
| 22501 | 22817 | /** |
| @@ -22571,7 +22887,7 @@ class TopLevel { | ||
| 22571 | 22887 | * @return Template|float|null |
| 22572 | 22888 | */ |
| 22573 | 22889 | public static function sampleTemplate(): Template|float|null { |
| 22574 | - return Template::sample(); /*314:template*/ | |
| 22890 | + return Template::sample(); /*318:template*/ | |
| 22575 | 22891 | } |
| 22576 | 22892 | |
| 22577 | 22893 | /** |
| @@ -22647,7 +22963,7 @@ class TopLevel { | ||
| 22647 | 22963 | * @return Then|float|null |
| 22648 | 22964 | */ |
| 22649 | 22965 | public static function sampleThen(): Then|float|null { |
| 22650 | - return Then::sample(); /*315:then*/ | |
| 22966 | + return Then::sample(); /*319:then*/ | |
| 22651 | 22967 | } |
| 22652 | 22968 | |
| 22653 | 22969 | /** |
| @@ -22723,7 +23039,7 @@ class TopLevel { | ||
| 22723 | 23039 | * @return This|float|null |
| 22724 | 23040 | */ |
| 22725 | 23041 | public static function sampleTopLevelThis(): This|float|null { |
| 22726 | - return This::sample(); /*316:topLevelThis*/ | |
| 23042 | + return This::sample(); /*320:topLevelThis*/ | |
| 22727 | 23043 | } |
| 22728 | 23044 | |
| 22729 | 23045 | /** |
| @@ -22799,7 +23115,7 @@ class TopLevel { | ||
| 22799 | 23115 | * @return ThreadLocal|float|null |
| 22800 | 23116 | */ |
| 22801 | 23117 | public static function sampleThreadLocal(): ThreadLocal|float|null { |
| 22802 | - return ThreadLocal::sample(); /*317:threadLocal*/ | |
| 23118 | + return ThreadLocal::sample(); /*321:threadLocal*/ | |
| 22803 | 23119 | } |
| 22804 | 23120 | |
| 22805 | 23121 | /** |
| @@ -22875,7 +23191,7 @@ class TopLevel { | ||
| 22875 | 23191 | * @return ThrowClass|float|null |
| 22876 | 23192 | */ |
| 22877 | 23193 | public static function sampleThrow(): ThrowClass|float|null { |
| 22878 | - return ThrowClass::sample(); /*318:throw*/ | |
| 23194 | + return ThrowClass::sample(); /*322:throw*/ | |
| 22879 | 23195 | } |
| 22880 | 23196 | |
| 22881 | 23197 | /** |
| @@ -22951,7 +23267,7 @@ class TopLevel { | ||
| 22951 | 23267 | * @return Throws|float|null |
| 22952 | 23268 | */ |
| 22953 | 23269 | public static function sampleThrows(): Throws|float|null { |
| 22954 | - return Throws::sample(); /*319:throws*/ | |
| 23270 | + return Throws::sample(); /*323:throws*/ | |
| 22955 | 23271 | } |
| 22956 | 23272 | |
| 22957 | 23273 | /** |
| @@ -23027,7 +23343,7 @@ class TopLevel { | ||
| 23027 | 23343 | * @return TimeOnly|float|null |
| 23028 | 23344 | */ |
| 23029 | 23345 | public static function sampleTimeOnly(): TimeOnly|float|null { |
| 23030 | - return TimeOnly::sample(); /*320:timeOnly*/ | |
| 23346 | + return TimeOnly::sample(); /*324:timeOnly*/ | |
| 23031 | 23347 | } |
| 23032 | 23348 | |
| 23033 | 23349 | /** |
| @@ -23103,7 +23419,7 @@ class TopLevel { | ||
| 23103 | 23419 | * @return TimeOnlyConverter|float|null |
| 23104 | 23420 | */ |
| 23105 | 23421 | public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null { |
| 23106 | - return TimeOnlyConverter::sample(); /*321:timeOnlyConverter*/ | |
| 23422 | + return TimeOnlyConverter::sample(); /*325:timeOnlyConverter*/ | |
| 23107 | 23423 | } |
| 23108 | 23424 | |
| 23109 | 23425 | /** |
| @@ -23179,7 +23495,7 @@ class TopLevel { | ||
| 23179 | 23495 | * @return TimeZone|float|null |
| 23180 | 23496 | */ |
| 23181 | 23497 | public static function sampleTimeZone(): TimeZone|float|null { |
| 23182 | - return TimeZone::sample(); /*322:timeZone*/ | |
| 23498 | + return TimeZone::sample(); /*326:timeZone*/ | |
| 23183 | 23499 | } |
| 23184 | 23500 | |
| 23185 | 23501 | /** |
| @@ -23255,7 +23571,7 @@ class TopLevel { | ||
| 23255 | 23571 | * @return ToJSON|float|null |
| 23256 | 23572 | */ |
| 23257 | 23573 | public static function sampleToJSON(): ToJSON|float|null { |
| 23258 | - return ToJSON::sample(); /*323:toJSON*/ | |
| 23574 | + return ToJSON::sample(); /*327:toJSON*/ | |
| 23259 | 23575 | } |
| 23260 | 23576 | |
| 23261 | 23577 | /** |
| @@ -23331,7 +23647,7 @@ class TopLevel { | ||
| 23331 | 23647 | * @return TopLevelClass|float|null |
| 23332 | 23648 | */ |
| 23333 | 23649 | public static function sampleTopLevel(): TopLevelClass|float|null { |
| 23334 | - return TopLevelClass::sample(); /*324:topLevel*/ | |
| 23650 | + return TopLevelClass::sample(); /*328:topLevel*/ | |
| 23335 | 23651 | } |
| 23336 | 23652 | |
| 23337 | 23653 | /** |
| @@ -23407,7 +23723,7 @@ class TopLevel { | ||
| 23407 | 23723 | * @return ToString|float|null |
| 23408 | 23724 | */ |
| 23409 | 23725 | public static function sampleToString(): ToString|float|null { |
| 23410 | - return ToString::sample(); /*325:toString*/ | |
| 23726 | + return ToString::sample(); /*329:toString*/ | |
| 23411 | 23727 | } |
| 23412 | 23728 | |
| 23413 | 23729 | /** |
| @@ -23483,7 +23799,7 @@ class TopLevel { | ||
| 23483 | 23799 | * @return Transient|float|null |
| 23484 | 23800 | */ |
| 23485 | 23801 | public static function sampleTransient(): Transient|float|null { |
| 23486 | - return Transient::sample(); /*326:transient*/ | |
| 23802 | + return Transient::sample(); /*330:transient*/ | |
| 23487 | 23803 | } |
| 23488 | 23804 | |
| 23489 | 23805 | /** |
| @@ -23559,7 +23875,7 @@ class TopLevel { | ||
| 23559 | 23875 | * @return TrueClass|float|null |
| 23560 | 23876 | */ |
| 23561 | 23877 | public static function sampleTrue(): TrueClass|float|null { |
| 23562 | - return TrueClass::sample(); /*327:true*/ | |
| 23878 | + return TrueClass::sample(); /*331:true*/ | |
| 23563 | 23879 | } |
| 23564 | 23880 | |
| 23565 | 23881 | /** |
| @@ -23635,7 +23951,7 @@ class TopLevel { | ||
| 23635 | 23951 | * @return UnionTrueTrue|float|null |
| 23636 | 23952 | */ |
| 23637 | 23953 | public static function sampleTopLevelTrue(): UnionTrueTrue|float|null { |
| 23638 | - return UnionTrueTrue::sample(); /*328:topLevelTrue*/ | |
| 23954 | + return UnionTrueTrue::sample(); /*332:topLevelTrue*/ | |
| 23639 | 23955 | } |
| 23640 | 23956 | |
| 23641 | 23957 | /** |
| @@ -23711,7 +24027,7 @@ class TopLevel { | ||
| 23711 | 24027 | * @return TryClass|float|null |
| 23712 | 24028 | */ |
| 23713 | 24029 | public static function sampleTry(): TryClass|float|null { |
| 23714 | - return TryClass::sample(); /*329:try*/ | |
| 24030 | + return TryClass::sample(); /*333:try*/ | |
| 23715 | 24031 | } |
| 23716 | 24032 | |
| 23717 | 24033 | /** |
| @@ -23787,7 +24103,7 @@ class TopLevel { | ||
| 23787 | 24103 | * @return Type|float|null |
| 23788 | 24104 | */ |
| 23789 | 24105 | public static function sampleType(): Type|float|null { |
| 23790 | - return Type::sample(); /*330:type*/ | |
| 24106 | + return Type::sample(); /*334:type*/ | |
| 23791 | 24107 | } |
| 23792 | 24108 | |
| 23793 | 24109 | /** |
| @@ -23863,7 +24179,7 @@ class TopLevel { | ||
| 23863 | 24179 | * @return TypeClass|float|null |
| 23864 | 24180 | */ |
| 23865 | 24181 | public static function sampleTopLevelType(): TypeClass|float|null { |
| 23866 | - return TypeClass::sample(); /*331:topLevelType*/ | |
| 24182 | + return TypeClass::sample(); /*335:topLevelType*/ | |
| 23867 | 24183 | } |
| 23868 | 24184 | |
| 23869 | 24185 | /** |
| @@ -23939,7 +24255,7 @@ class TopLevel { | ||
| 23939 | 24255 | * @return Typealias|float|null |
| 23940 | 24256 | */ |
| 23941 | 24257 | public static function sampleTypealias(): Typealias|float|null { |
| 23942 | - return Typealias::sample(); /*332:typealias*/ | |
| 24258 | + return Typealias::sample(); /*336:typealias*/ | |
| 23943 | 24259 | } |
| 23944 | 24260 | |
| 23945 | 24261 | /** |
| @@ -24015,7 +24331,7 @@ class TopLevel { | ||
| 24015 | 24331 | * @return Typedef|float|null |
| 24016 | 24332 | */ |
| 24017 | 24333 | public static function sampleTypedef(): Typedef|float|null { |
| 24018 | - return Typedef::sample(); /*333:typedef*/ | |
| 24334 | + return Typedef::sample(); /*337:typedef*/ | |
| 24019 | 24335 | } |
| 24020 | 24336 | |
| 24021 | 24337 | /** |
| @@ -24091,7 +24407,7 @@ class TopLevel { | ||
| 24091 | 24407 | * @return Typeid|float|null |
| 24092 | 24408 | */ |
| 24093 | 24409 | public static function sampleTypeid(): Typeid|float|null { |
| 24094 | - return Typeid::sample(); /*334:typeid*/ | |
| 24410 | + return Typeid::sample(); /*338:typeid*/ | |
| 24095 | 24411 | } |
| 24096 | 24412 | |
| 24097 | 24413 | /** |
| @@ -24167,7 +24483,7 @@ class TopLevel { | ||
| 24167 | 24483 | * @return Typename|float|null |
| 24168 | 24484 | */ |
| 24169 | 24485 | public static function sampleTypename(): Typename|float|null { |
| 24170 | - return Typename::sample(); /*335:typename*/ | |
| 24486 | + return Typename::sample(); /*339:typename*/ | |
| 24171 | 24487 | } |
| 24172 | 24488 | |
| 24173 | 24489 | /** |
| @@ -24243,7 +24559,7 @@ class TopLevel { | ||
| 24243 | 24559 | * @return Typeof|float|null |
| 24244 | 24560 | */ |
| 24245 | 24561 | public static function sampleTypeof(): Typeof|float|null { |
| 24246 | - return Typeof::sample(); /*336:typeof*/ | |
| 24562 | + return Typeof::sample(); /*340:typeof*/ | |
| 24247 | 24563 | } |
| 24248 | 24564 | |
| 24249 | 24565 | /** |
| @@ -24319,7 +24635,7 @@ class TopLevel { | ||
| 24319 | 24635 | * @return Uint|float|null |
| 24320 | 24636 | */ |
| 24321 | 24637 | public static function sampleUint(): Uint|float|null { |
| 24322 | - return Uint::sample(); /*337:uint*/ | |
| 24638 | + return Uint::sample(); /*341:uint*/ | |
| 24323 | 24639 | } |
| 24324 | 24640 | |
| 24325 | 24641 | /** |
| @@ -24395,7 +24711,7 @@ class TopLevel { | ||
| 24395 | 24711 | * @return Ulong|float|null |
| 24396 | 24712 | */ |
| 24397 | 24713 | public static function sampleUlong(): Ulong|float|null { |
| 24398 | - return Ulong::sample(); /*338:ulong*/ | |
| 24714 | + return Ulong::sample(); /*342:ulong*/ | |
| 24399 | 24715 | } |
| 24400 | 24716 | |
| 24401 | 24717 | /** |
| @@ -24471,7 +24787,7 @@ class TopLevel { | ||
| 24471 | 24787 | * @return Unchecked|float|null |
| 24472 | 24788 | */ |
| 24473 | 24789 | public static function sampleUnchecked(): Unchecked|float|null { |
| 24474 | - return Unchecked::sample(); /*339:unchecked*/ | |
| 24790 | + return Unchecked::sample(); /*343:unchecked*/ | |
| 24475 | 24791 | } |
| 24476 | 24792 | |
| 24477 | 24793 | /** |
| @@ -24547,7 +24863,7 @@ class TopLevel { | ||
| 24547 | 24863 | * @return Undefined|float|null |
| 24548 | 24864 | */ |
| 24549 | 24865 | public static function sampleUndefined(): Undefined|float|null { |
| 24550 | - return Undefined::sample(); /*340:undefined*/ | |
| 24866 | + return Undefined::sample(); /*344:undefined*/ | |
| 24551 | 24867 | } |
| 24552 | 24868 | |
| 24553 | 24869 | /** |
| @@ -24623,7 +24939,7 @@ class TopLevel { | ||
| 24623 | 24939 | * @return UnionClass|float|null |
| 24624 | 24940 | */ |
| 24625 | 24941 | public static function sampleUnion(): UnionClass|float|null { |
| 24626 | - return UnionClass::sample(); /*341:union*/ | |
| 24942 | + return UnionClass::sample(); /*345:union*/ | |
| 24627 | 24943 | } |
| 24628 | 24944 | |
| 24629 | 24945 | /** |
| @@ -24699,7 +25015,7 @@ class TopLevel { | ||
| 24699 | 25015 | * @return Unowned|float|null |
| 24700 | 25016 | */ |
| 24701 | 25017 | public static function sampleUnowned(): Unowned|float|null { |
| 24702 | - return Unowned::sample(); /*342:unowned*/ | |
| 25018 | + return Unowned::sample(); /*346:unowned*/ | |
| 24703 | 25019 | } |
| 24704 | 25020 | |
| 24705 | 25021 | /** |
| @@ -24775,7 +25091,7 @@ class TopLevel { | ||
| 24775 | 25091 | * @return Unsafe|float|null |
| 24776 | 25092 | */ |
| 24777 | 25093 | public static function sampleUnsafe(): Unsafe|float|null { |
| 24778 | - return Unsafe::sample(); /*343:unsafe*/ | |
| 25094 | + return Unsafe::sample(); /*347:unsafe*/ | |
| 24779 | 25095 | } |
| 24780 | 25096 | |
| 24781 | 25097 | /** |
| @@ -24851,7 +25167,7 @@ class TopLevel { | ||
| 24851 | 25167 | * @return Unsigned|float|null |
| 24852 | 25168 | */ |
| 24853 | 25169 | public static function sampleUnsigned(): Unsigned|float|null { |
| 24854 | - return Unsigned::sample(); /*344:unsigned*/ | |
| 25170 | + return Unsigned::sample(); /*348:unsigned*/ | |
| 24855 | 25171 | } |
| 24856 | 25172 | |
| 24857 | 25173 | /** |
| @@ -24927,7 +25243,7 @@ class TopLevel { | ||
| 24927 | 25243 | * @return Ushort|float|null |
| 24928 | 25244 | */ |
| 24929 | 25245 | public static function sampleUshort(): Ushort|float|null { |
| 24930 | - return Ushort::sample(); /*345:ushort*/ | |
| 25246 | + return Ushort::sample(); /*349:ushort*/ | |
| 24931 | 25247 | } |
| 24932 | 25248 | |
| 24933 | 25249 | /** |
| @@ -25003,7 +25319,7 @@ class TopLevel { | ||
| 25003 | 25319 | * @return Using|float|null |
| 25004 | 25320 | */ |
| 25005 | 25321 | public static function sampleUsing(): Using|float|null { |
| 25006 | - return Using::sample(); /*346:using*/ | |
| 25322 | + return Using::sample(); /*350:using*/ | |
| 25007 | 25323 | } |
| 25008 | 25324 | |
| 25009 | 25325 | /** |
| @@ -25079,7 +25395,7 @@ class TopLevel { | ||
| 25079 | 25395 | * @return Utf8JSONReader|float|null |
| 25080 | 25396 | */ |
| 25081 | 25397 | public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null { |
| 25082 | - return Utf8JSONReader::sample(); /*347:utf8JSONReader*/ | |
| 25398 | + return Utf8JSONReader::sample(); /*351:utf8JSONReader*/ | |
| 25083 | 25399 | } |
| 25084 | 25400 | |
| 25085 | 25401 | /** |
| @@ -25155,7 +25471,7 @@ class TopLevel { | ||
| 25155 | 25471 | * @return Utf8JSONWriter|float|null |
| 25156 | 25472 | */ |
| 25157 | 25473 | public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null { |
| 25158 | - return Utf8JSONWriter::sample(); /*348:utf8JSONWriter*/ | |
| 25474 | + return Utf8JSONWriter::sample(); /*352:utf8JSONWriter*/ | |
| 25159 | 25475 | } |
| 25160 | 25476 | |
| 25161 | 25477 | /** |
| @@ -25231,7 +25547,7 @@ class TopLevel { | ||
| 25231 | 25547 | * @return UUID|float|null |
| 25232 | 25548 | */ |
| 25233 | 25549 | public static function sampleUUID(): UUID|float|null { |
| 25234 | - return UUID::sample(); /*349:uuid*/ | |
| 25550 | + return UUID::sample(); /*353:uuid*/ | |
| 25235 | 25551 | } |
| 25236 | 25552 | |
| 25237 | 25553 | /** |
| @@ -25307,7 +25623,7 @@ class TopLevel { | ||
| 25307 | 25623 | * @return VarClass|float|null |
| 25308 | 25624 | */ |
| 25309 | 25625 | public static function sampleVar(): VarClass|float|null { |
| 25310 | - return VarClass::sample(); /*350:var*/ | |
| 25626 | + return VarClass::sample(); /*354:var*/ | |
| 25311 | 25627 | } |
| 25312 | 25628 | |
| 25313 | 25629 | /** |
| @@ -25383,7 +25699,7 @@ class TopLevel { | ||
| 25383 | 25699 | * @return Virtual|float|null |
| 25384 | 25700 | */ |
| 25385 | 25701 | public static function sampleVirtual(): Virtual|float|null { |
| 25386 | - return Virtual::sample(); /*351:virtual*/ | |
| 25702 | + return Virtual::sample(); /*355:virtual*/ | |
| 25387 | 25703 | } |
| 25388 | 25704 | |
| 25389 | 25705 | /** |
| @@ -25459,7 +25775,7 @@ class TopLevel { | ||
| 25459 | 25775 | * @return VoidClass|float|null |
| 25460 | 25776 | */ |
| 25461 | 25777 | public static function sampleVoid(): VoidClass|float|null { |
| 25462 | - return VoidClass::sample(); /*352:void*/ | |
| 25778 | + return VoidClass::sample(); /*356:void*/ | |
| 25463 | 25779 | } |
| 25464 | 25780 | |
| 25465 | 25781 | /** |
| @@ -25535,7 +25851,7 @@ class TopLevel { | ||
| 25535 | 25851 | * @return Volatile|float|null |
| 25536 | 25852 | */ |
| 25537 | 25853 | public static function sampleVolatile(): Volatile|float|null { |
| 25538 | - return Volatile::sample(); /*353:volatile*/ | |
| 25854 | + return Volatile::sample(); /*357:volatile*/ | |
| 25539 | 25855 | } |
| 25540 | 25856 | |
| 25541 | 25857 | /** |
| @@ -25611,7 +25927,7 @@ class TopLevel { | ||
| 25611 | 25927 | * @return WcharT|float|null |
| 25612 | 25928 | */ |
| 25613 | 25929 | public static function sampleWcharT(): WcharT|float|null { |
| 25614 | - return WcharT::sample(); /*354:wcharT*/ | |
| 25930 | + return WcharT::sample(); /*358:wcharT*/ | |
| 25615 | 25931 | } |
| 25616 | 25932 | |
| 25617 | 25933 | /** |
| @@ -25687,7 +26003,7 @@ class TopLevel { | ||
| 25687 | 26003 | * @return Weak|float|null |
| 25688 | 26004 | */ |
| 25689 | 26005 | public static function sampleWeak(): Weak|float|null { |
| 25690 | - return Weak::sample(); /*355:weak*/ | |
| 26006 | + return Weak::sample(); /*359:weak*/ | |
| 25691 | 26007 | } |
| 25692 | 26008 | |
| 25693 | 26009 | /** |
| @@ -25763,7 +26079,7 @@ class TopLevel { | ||
| 25763 | 26079 | * @return Where|float|null |
| 25764 | 26080 | */ |
| 25765 | 26081 | public static function sampleWhere(): Where|float|null { |
| 25766 | - return Where::sample(); /*356:where*/ | |
| 26082 | + return Where::sample(); /*360:where*/ | |
| 25767 | 26083 | } |
| 25768 | 26084 | |
| 25769 | 26085 | /** |
| @@ -25839,7 +26155,7 @@ class TopLevel { | ||
| 25839 | 26155 | * @return WhileClass|float|null |
| 25840 | 26156 | */ |
| 25841 | 26157 | public static function sampleWhile(): WhileClass|float|null { |
| 25842 | - return WhileClass::sample(); /*357:while*/ | |
| 26158 | + return WhileClass::sample(); /*361:while*/ | |
| 25843 | 26159 | } |
| 25844 | 26160 | |
| 25845 | 26161 | /** |
| @@ -25915,7 +26231,7 @@ class TopLevel { | ||
| 25915 | 26231 | * @return WillSet|float|null |
| 25916 | 26232 | */ |
| 25917 | 26233 | public static function sampleWillSet(): WillSet|float|null { |
| 25918 | - return WillSet::sample(); /*358:willSet*/ | |
| 26234 | + return WillSet::sample(); /*362:willSet*/ | |
| 25919 | 26235 | } |
| 25920 | 26236 | |
| 25921 | 26237 | /** |
| @@ -25991,7 +26307,7 @@ class TopLevel { | ||
| 25991 | 26307 | * @return With|float|null |
| 25992 | 26308 | */ |
| 25993 | 26309 | public static function sampleWith(): With|float|null { |
| 25994 | - return With::sample(); /*359:with*/ | |
| 26310 | + return With::sample(); /*363:with*/ | |
| 25995 | 26311 | } |
| 25996 | 26312 | |
| 25997 | 26313 | /** |
| @@ -26067,7 +26383,7 @@ class TopLevel { | ||
| 26067 | 26383 | * @return XorClass|float|null |
| 26068 | 26384 | */ |
| 26069 | 26385 | public static function sampleXor(): XorClass|float|null { |
| 26070 | - return XorClass::sample(); /*360:xor*/ | |
| 26386 | + return XorClass::sample(); /*364:xor*/ | |
| 26071 | 26387 | } |
| 26072 | 26388 | |
| 26073 | 26389 | /** |
| @@ -26143,7 +26459,7 @@ class TopLevel { | ||
| 26143 | 26459 | * @return XorEq|float|null |
| 26144 | 26460 | */ |
| 26145 | 26461 | public static function sampleXorEq(): XorEq|float|null { |
| 26146 | - return XorEq::sample(); /*361:xorEq*/ | |
| 26462 | + return XorEq::sample(); /*365:xorEq*/ | |
| 26147 | 26463 | } |
| 26148 | 26464 | |
| 26149 | 26465 | /** |
| @@ -26219,7 +26535,7 @@ class TopLevel { | ||
| 26219 | 26535 | * @return Yes|float|null |
| 26220 | 26536 | */ |
| 26221 | 26537 | public static function sampleYes(): Yes|float|null { |
| 26222 | - return Yes::sample(); /*362:yes*/ | |
| 26538 | + return Yes::sample(); /*366:yes*/ | |
| 26223 | 26539 | } |
| 26224 | 26540 | |
| 26225 | 26541 | /** |
| @@ -26295,7 +26611,7 @@ class TopLevel { | ||
| 26295 | 26611 | * @return YieldClass|float|null |
| 26296 | 26612 | */ |
| 26297 | 26613 | public static function sampleYield(): YieldClass|float|null { |
| 26298 | - return YieldClass::sample(); /*363:yield*/ | |
| 26614 | + return YieldClass::sample(); /*367:yield*/ | |
| 26299 | 26615 | } |
| 26300 | 26616 | |
| 26301 | 26617 | /** |
| @@ -26387,6 +26703,7 @@ class TopLevel { | ||
| 26387 | 26703 | || TopLevel::validateDel($this->del) |
| 26388 | 26704 | || TopLevel::validateDelegate($this->delegate) |
| 26389 | 26705 | || TopLevel::validateDelete($this->delete) |
| 26706 | + || TopLevel::validateDeserializationFeature($this->deserializationFeature) | |
| 26390 | 26707 | || TopLevel::validateDict($this->dict) |
| 26391 | 26708 | || TopLevel::validateDictionary($this->dictionary) |
| 26392 | 26709 | || TopLevel::validateDidSet($this->didSet) |
| @@ -26513,6 +26830,8 @@ class TopLevel { | ||
| 26513 | 26830 | || TopLevel::validateNumber($this->number) |
| 26514 | 26831 | || TopLevel::validateObject($this->object) |
| 26515 | 26832 | || TopLevel::validateObjectMapper($this->objectMapper) |
| 26833 | + || TopLevel::validateObjectReader($this->objectReader) | |
| 26834 | + || TopLevel::validateObjectWriter($this->objectWriter) | |
| 26516 | 26835 | || TopLevel::validateOf($this->of) |
| 26517 | 26836 | || TopLevel::validateOneway($this->oneway) |
| 26518 | 26837 | || TopLevel::validateOpen($this->open) |
| @@ -26563,6 +26882,7 @@ class TopLevel { | ||
| 26563 | 26882 | || TopLevel::validateSelf($this->self) |
| 26564 | 26883 | || TopLevel::validateTopLevelSelf($this->topLevelSelf) |
| 26565 | 26884 | || TopLevel::validateSendable($this->sendable) |
| 26885 | + || TopLevel::validateSerializationFeature($this->serializationFeature) | |
| 26566 | 26886 | || TopLevel::validateSerialize($this->serialize) |
| 26567 | 26887 | || TopLevel::validateSerializerProvider($this->serializerProvider) |
| 26568 | 26888 | || TopLevel::validateSet($this->set) |
| @@ -26728,6 +27048,7 @@ class TopLevel { | ||
| 26728 | 27048 | $out->{'del'} = $this->toDel(); |
| 26729 | 27049 | $out->{'delegate'} = $this->toDelegate(); |
| 26730 | 27050 | $out->{'delete'} = $this->toDelete(); |
| 27051 | + $out->{'DeserializationFeature'} = $this->toDeserializationFeature(); | |
| 26731 | 27052 | $out->{'dict'} = $this->toDict(); |
| 26732 | 27053 | $out->{'dictionary'} = $this->toDictionary(); |
| 26733 | 27054 | $out->{'didSet'} = $this->toDidSet(); |
| @@ -26854,6 +27175,8 @@ class TopLevel { | ||
| 26854 | 27175 | $out->{'number'} = $this->toNumber(); |
| 26855 | 27176 | $out->{'object'} = $this->toObject(); |
| 26856 | 27177 | $out->{'ObjectMapper'} = $this->toObjectMapper(); |
| 27178 | + $out->{'ObjectReader'} = $this->toObjectReader(); | |
| 27179 | + $out->{'ObjectWriter'} = $this->toObjectWriter(); | |
| 26857 | 27180 | $out->{'of'} = $this->toOf(); |
| 26858 | 27181 | $out->{'oneway'} = $this->toOneway(); |
| 26859 | 27182 | $out->{'open'} = $this->toOpen(); |
| @@ -26904,6 +27227,7 @@ class TopLevel { | ||
| 26904 | 27227 | $out->{'Self'} = $this->toSelf(); |
| 26905 | 27228 | $out->{'self'} = $this->toTopLevelSelf(); |
| 26906 | 27229 | $out->{'Sendable'} = $this->toSendable(); |
| 27230 | + $out->{'SerializationFeature'} = $this->toSerializationFeature(); | |
| 26907 | 27231 | $out->{'serialize'} = $this->toSerialize(); |
| 26908 | 27232 | $out->{'SerializerProvider'} = $this->toSerializerProvider(); |
| 26909 | 27233 | $out->{'set'} = $this->toSet(); |
| @@ -27071,6 +27395,7 @@ class TopLevel { | ||
| 27071 | 27395 | ,TopLevel::fromDel($obj->{'del'}) |
| 27072 | 27396 | ,TopLevel::fromDelegate($obj->{'delegate'}) |
| 27073 | 27397 | ,TopLevel::fromDelete($obj->{'delete'}) |
| 27398 | + ,TopLevel::fromDeserializationFeature($obj->{'DeserializationFeature'}) | |
| 27074 | 27399 | ,TopLevel::fromDict($obj->{'dict'}) |
| 27075 | 27400 | ,TopLevel::fromDictionary($obj->{'dictionary'}) |
| 27076 | 27401 | ,TopLevel::fromDidSet($obj->{'didSet'}) |
| @@ -27197,6 +27522,8 @@ class TopLevel { | ||
| 27197 | 27522 | ,TopLevel::fromNumber($obj->{'number'}) |
| 27198 | 27523 | ,TopLevel::fromObject($obj->{'object'}) |
| 27199 | 27524 | ,TopLevel::fromObjectMapper($obj->{'ObjectMapper'}) |
| 27525 | + ,TopLevel::fromObjectReader($obj->{'ObjectReader'}) | |
| 27526 | + ,TopLevel::fromObjectWriter($obj->{'ObjectWriter'}) | |
| 27200 | 27527 | ,TopLevel::fromOf($obj->{'of'}) |
| 27201 | 27528 | ,TopLevel::fromOneway($obj->{'oneway'}) |
| 27202 | 27529 | ,TopLevel::fromOpen($obj->{'open'}) |
| @@ -27247,6 +27574,7 @@ class TopLevel { | ||
| 27247 | 27574 | ,TopLevel::fromSelf($obj->{'Self'}) |
| 27248 | 27575 | ,TopLevel::fromTopLevelSelf($obj->{'self'}) |
| 27249 | 27576 | ,TopLevel::fromSendable($obj->{'Sendable'}) |
| 27577 | + ,TopLevel::fromSerializationFeature($obj->{'SerializationFeature'}) | |
| 27250 | 27578 | ,TopLevel::fromSerialize($obj->{'serialize'}) |
| 27251 | 27579 | ,TopLevel::fromSerializerProvider($obj->{'SerializerProvider'}) |
| 27252 | 27580 | ,TopLevel::fromSet($obj->{'set'}) |
| @@ -27412,6 +27740,7 @@ class TopLevel { | ||
| 27412 | 27740 | ,TopLevel::sampleDel() |
| 27413 | 27741 | ,TopLevel::sampleDelegate() |
| 27414 | 27742 | ,TopLevel::sampleDelete() |
| 27743 | + ,TopLevel::sampleDeserializationFeature() | |
| 27415 | 27744 | ,TopLevel::sampleDict() |
| 27416 | 27745 | ,TopLevel::sampleDictionary() |
| 27417 | 27746 | ,TopLevel::sampleDidSet() |
| @@ -27538,6 +27867,8 @@ class TopLevel { | ||
| 27538 | 27867 | ,TopLevel::sampleNumber() |
| 27539 | 27868 | ,TopLevel::sampleObject() |
| 27540 | 27869 | ,TopLevel::sampleObjectMapper() |
| 27870 | + ,TopLevel::sampleObjectReader() | |
| 27871 | + ,TopLevel::sampleObjectWriter() | |
| 27541 | 27872 | ,TopLevel::sampleOf() |
| 27542 | 27873 | ,TopLevel::sampleOneway() |
| 27543 | 27874 | ,TopLevel::sampleOpen() |
| @@ -27588,6 +27919,7 @@ class TopLevel { | ||
| 27588 | 27919 | ,TopLevel::sampleSelf() |
| 27589 | 27920 | ,TopLevel::sampleTopLevelSelf() |
| 27590 | 27921 | ,TopLevel::sampleSendable() |
| 27922 | + ,TopLevel::sampleSerializationFeature() | |
| 27591 | 27923 | ,TopLevel::sampleSerialize() |
| 27592 | 27924 | ,TopLevel::sampleSerializerProvider() |
| 27593 | 27925 | ,TopLevel::sampleSet() |
| @@ -31175,6 +31507,51 @@ class Delete { | ||
| 31175 | 31507 | } |
| 31176 | 31508 | } |
| 31177 | 31509 | |
| 31510 | +// This is an autogenerated file:DeserializationFeature | |
| 31511 | + | |
| 31512 | +class DeserializationFeature { | |
| 31513 | + | |
| 31514 | + /** | |
| 31515 | + */ | |
| 31516 | + public function __construct() { | |
| 31517 | + } | |
| 31518 | + | |
| 31519 | + /** | |
| 31520 | + * @throws Exception | |
| 31521 | + * @return bool | |
| 31522 | + */ | |
| 31523 | + public function validate(): bool { | |
| 31524 | + return true; | |
| 31525 | + } | |
| 31526 | + | |
| 31527 | + /** | |
| 31528 | + * @return stdClass | |
| 31529 | + * @throws Exception | |
| 31530 | + */ | |
| 31531 | + public function to(): stdClass { | |
| 31532 | + $out = new stdClass(); | |
| 31533 | + return $out; | |
| 31534 | + } | |
| 31535 | + | |
| 31536 | + /** | |
| 31537 | + * @param stdClass $obj | |
| 31538 | + * @return DeserializationFeature | |
| 31539 | + * @throws Exception | |
| 31540 | + */ | |
| 31541 | + public static function from(stdClass $obj): DeserializationFeature { | |
| 31542 | + return new DeserializationFeature( | |
| 31543 | + ); | |
| 31544 | + } | |
| 31545 | + | |
| 31546 | + /** | |
| 31547 | + * @return DeserializationFeature | |
| 31548 | + */ | |
| 31549 | + public static function sample(): DeserializationFeature { | |
| 31550 | + return new DeserializationFeature( | |
| 31551 | + ); | |
| 31552 | + } | |
| 31553 | +} | |
| 31554 | + | |
| 31178 | 31555 | // This is an autogenerated file:Dict |
| 31179 | 31556 | |
| 31180 | 31557 | class Dict { |
| @@ -36755,6 +37132,96 @@ class ObjectMapper { | ||
| 36755 | 37132 | } |
| 36756 | 37133 | } |
| 36757 | 37134 | |
| 37135 | +// This is an autogenerated file:ObjectReader | |
| 37136 | + | |
| 37137 | +class ObjectReader { | |
| 37138 | + | |
| 37139 | + /** | |
| 37140 | + */ | |
| 37141 | + public function __construct() { | |
| 37142 | + } | |
| 37143 | + | |
| 37144 | + /** | |
| 37145 | + * @throws Exception | |
| 37146 | + * @return bool | |
| 37147 | + */ | |
| 37148 | + public function validate(): bool { | |
| 37149 | + return true; | |
| 37150 | + } | |
| 37151 | + | |
| 37152 | + /** | |
| 37153 | + * @return stdClass | |
| 37154 | + * @throws Exception | |
| 37155 | + */ | |
| 37156 | + public function to(): stdClass { | |
| 37157 | + $out = new stdClass(); | |
| 37158 | + return $out; | |
| 37159 | + } | |
| 37160 | + | |
| 37161 | + /** | |
| 37162 | + * @param stdClass $obj | |
| 37163 | + * @return ObjectReader | |
| 37164 | + * @throws Exception | |
| 37165 | + */ | |
| 37166 | + public static function from(stdClass $obj): ObjectReader { | |
| 37167 | + return new ObjectReader( | |
| 37168 | + ); | |
| 37169 | + } | |
| 37170 | + | |
| 37171 | + /** | |
| 37172 | + * @return ObjectReader | |
| 37173 | + */ | |
| 37174 | + public static function sample(): ObjectReader { | |
| 37175 | + return new ObjectReader( | |
| 37176 | + ); | |
| 37177 | + } | |
| 37178 | +} | |
| 37179 | + | |
| 37180 | +// This is an autogenerated file:ObjectWriter | |
| 37181 | + | |
| 37182 | +class ObjectWriter { | |
| 37183 | + | |
| 37184 | + /** | |
| 37185 | + */ | |
| 37186 | + public function __construct() { | |
| 37187 | + } | |
| 37188 | + | |
| 37189 | + /** | |
| 37190 | + * @throws Exception | |
| 37191 | + * @return bool | |
| 37192 | + */ | |
| 37193 | + public function validate(): bool { | |
| 37194 | + return true; | |
| 37195 | + } | |
| 37196 | + | |
| 37197 | + /** | |
| 37198 | + * @return stdClass | |
| 37199 | + * @throws Exception | |
| 37200 | + */ | |
| 37201 | + public function to(): stdClass { | |
| 37202 | + $out = new stdClass(); | |
| 37203 | + return $out; | |
| 37204 | + } | |
| 37205 | + | |
| 37206 | + /** | |
| 37207 | + * @param stdClass $obj | |
| 37208 | + * @return ObjectWriter | |
| 37209 | + * @throws Exception | |
| 37210 | + */ | |
| 37211 | + public static function from(stdClass $obj): ObjectWriter { | |
| 37212 | + return new ObjectWriter( | |
| 37213 | + ); | |
| 37214 | + } | |
| 37215 | + | |
| 37216 | + /** | |
| 37217 | + * @return ObjectWriter | |
| 37218 | + */ | |
| 37219 | + public static function sample(): ObjectWriter { | |
| 37220 | + return new ObjectWriter( | |
| 37221 | + ); | |
| 37222 | + } | |
| 37223 | +} | |
| 37224 | + | |
| 36758 | 37225 | // This is an autogenerated file:Of |
| 36759 | 37226 | |
| 36760 | 37227 | class Of { |
| @@ -38960,6 +39427,51 @@ class Sendable { | ||
| 38960 | 39427 | } |
| 38961 | 39428 | } |
| 38962 | 39429 | |
| 39430 | +// This is an autogenerated file:SerializationFeature | |
| 39431 | + | |
| 39432 | +class SerializationFeature { | |
| 39433 | + | |
| 39434 | + /** | |
| 39435 | + */ | |
| 39436 | + public function __construct() { | |
| 39437 | + } | |
| 39438 | + | |
| 39439 | + /** | |
| 39440 | + * @throws Exception | |
| 39441 | + * @return bool | |
| 39442 | + */ | |
| 39443 | + public function validate(): bool { | |
| 39444 | + return true; | |
| 39445 | + } | |
| 39446 | + | |
| 39447 | + /** | |
| 39448 | + * @return stdClass | |
| 39449 | + * @throws Exception | |
| 39450 | + */ | |
| 39451 | + public function to(): stdClass { | |
| 39452 | + $out = new stdClass(); | |
| 39453 | + return $out; | |
| 39454 | + } | |
| 39455 | + | |
| 39456 | + /** | |
| 39457 | + * @param stdClass $obj | |
| 39458 | + * @return SerializationFeature | |
| 39459 | + * @throws Exception | |
| 39460 | + */ | |
| 39461 | + public static function from(stdClass $obj): SerializationFeature { | |
| 39462 | + return new SerializationFeature( | |
| 39463 | + ); | |
| 39464 | + } | |
| 39465 | + | |
| 39466 | + /** | |
| 39467 | + * @return SerializationFeature | |
| 39468 | + */ | |
| 39469 | + public static function sample(): SerializationFeature { | |
| 39470 | + return new SerializationFeature( | |
| 39471 | + ); | |
| 39472 | + } | |
| 39473 | +} | |
| 39474 | + | |
| 38963 | 39475 | // This is an autogenerated file:Serialize |
| 38964 | 39476 | |
| 38965 | 39477 | class Serialize { |
Mschema-pikedefault / TopLevel.pmod+104 −0
| @@ -97,6 +97,7 @@ class TopLevel { | ||
| 97 | 97 | UnionDel del; // json: "del" |
| 98 | 98 | UnionDelegate delegate; // json: "delegate" |
| 99 | 99 | UnionDelete delete; // json: "delete" |
| 100 | + UnionDeserializationFeature deserialization_feature; // json: "DeserializationFeature" | |
| 100 | 101 | UnionDict dict; // json: "dict" |
| 101 | 102 | UnionDictionary dictionary; // json: "dictionary" |
| 102 | 103 | UnionDidSet did_set; // json: "didSet" |
| @@ -223,6 +224,8 @@ class TopLevel { | ||
| 223 | 224 | UnionNumber number; // json: "number" |
| 224 | 225 | UnionObject top_level_object; // json: "object" |
| 225 | 226 | UnionObjectMapper object_mapper; // json: "ObjectMapper" |
| 227 | + UnionObjectReader object_reader; // json: "ObjectReader" | |
| 228 | + UnionObjectWriter object_writer; // json: "ObjectWriter" | |
| 226 | 229 | UnionOf of; // json: "of" |
| 227 | 230 | UnionOneway oneway; // json: "oneway" |
| 228 | 231 | UnionOpen open; // json: "open" |
| @@ -273,6 +276,7 @@ class TopLevel { | ||
| 273 | 276 | UnionSelf self; // json: "Self" |
| 274 | 277 | UnionSelfUnion top_level_self; // json: "self" |
| 275 | 278 | UnionSendable sendable; // json: "Sendable" |
| 279 | + UnionSerializationFeature serialization_feature; // json: "SerializationFeature" | |
| 276 | 280 | UnionSerialize serialize; // json: "serialize" |
| 277 | 281 | UnionSerializerProvider serializer_provider; // json: "SerializerProvider" |
| 278 | 282 | UnionSet set; // json: "set" |
| @@ -433,6 +437,7 @@ class TopLevel { | ||
| 433 | 437 | "del" : del, |
| 434 | 438 | "delegate" : delegate, |
| 435 | 439 | "delete" : delete, |
| 440 | + "DeserializationFeature" : deserialization_feature, | |
| 436 | 441 | "dict" : dict, |
| 437 | 442 | "dictionary" : dictionary, |
| 438 | 443 | "didSet" : did_set, |
| @@ -559,6 +564,8 @@ class TopLevel { | ||
| 559 | 564 | "number" : number, |
| 560 | 565 | "object" : top_level_object, |
| 561 | 566 | "ObjectMapper" : object_mapper, |
| 567 | + "ObjectReader" : object_reader, | |
| 568 | + "ObjectWriter" : object_writer, | |
| 562 | 569 | "of" : of, |
| 563 | 570 | "oneway" : oneway, |
| 564 | 571 | "open" : open, |
| @@ -609,6 +616,7 @@ class TopLevel { | ||
| 609 | 616 | "Self" : self, |
| 610 | 617 | "self" : top_level_self, |
| 611 | 618 | "Sendable" : sendable, |
| 619 | + "SerializationFeature" : serialization_feature, | |
| 612 | 620 | "serialize" : serialize, |
| 613 | 621 | "SerializerProvider" : serializer_provider, |
| 614 | 622 | "set" : set, |
| @@ -859,6 +867,8 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 859 | 867 | retval.delegate = json["delegate"]; |
| 860 | 868 | if (arrayp(json["delete"])) error("Unexpected array"); |
| 861 | 869 | retval.delete = json["delete"]; |
| 870 | + if (arrayp(json["DeserializationFeature"])) error("Unexpected array"); | |
| 871 | + retval.deserialization_feature = json["DeserializationFeature"]; | |
| 862 | 872 | if (arrayp(json["dict"])) error("Unexpected array"); |
| 863 | 873 | retval.dict = json["dict"]; |
| 864 | 874 | if (arrayp(json["dictionary"])) error("Unexpected array"); |
| @@ -1110,6 +1120,10 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 1110 | 1120 | retval.top_level_object = json["object"]; |
| 1111 | 1121 | if (arrayp(json["ObjectMapper"])) error("Unexpected array"); |
| 1112 | 1122 | retval.object_mapper = json["ObjectMapper"]; |
| 1123 | + if (arrayp(json["ObjectReader"])) error("Unexpected array"); | |
| 1124 | + retval.object_reader = json["ObjectReader"]; | |
| 1125 | + if (arrayp(json["ObjectWriter"])) error("Unexpected array"); | |
| 1126 | + retval.object_writer = json["ObjectWriter"]; | |
| 1113 | 1127 | if (arrayp(json["of"])) error("Unexpected array"); |
| 1114 | 1128 | retval.of = json["of"]; |
| 1115 | 1129 | if (arrayp(json["oneway"])) error("Unexpected array"); |
| @@ -1210,6 +1224,8 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 1210 | 1224 | retval.top_level_self = json["self"]; |
| 1211 | 1225 | if (arrayp(json["Sendable"])) error("Unexpected array"); |
| 1212 | 1226 | retval.sendable = json["Sendable"]; |
| 1227 | + if (arrayp(json["SerializationFeature"])) error("Unexpected array"); | |
| 1228 | + retval.serialization_feature = json["SerializationFeature"]; | |
| 1213 | 1229 | if (arrayp(json["serialize"])) error("Unexpected array"); |
| 1214 | 1230 | retval.serialize = json["serialize"]; |
| 1215 | 1231 | if (arrayp(json["SerializerProvider"])) error("Unexpected array"); |
| @@ -2878,6 +2894,28 @@ Delete Delete_from_JSON(mixed json) { | ||
| 2878 | 2894 | return retval; |
| 2879 | 2895 | } |
| 2880 | 2896 | |
| 2897 | +typedef DeserializationFeature|float UnionDeserializationFeature; | |
| 2898 | + | |
| 2899 | +UnionDeserializationFeature UnionDeserializationFeature_from_JSON(mixed json) { | |
| 2900 | + return json; | |
| 2901 | +} | |
| 2902 | + | |
| 2903 | +class DeserializationFeature { | |
| 2904 | + | |
| 2905 | + string encode_json() { | |
| 2906 | + mapping(string:mixed) json = ([ | |
| 2907 | + ]); | |
| 2908 | + | |
| 2909 | + return Standards.JSON.encode(json); | |
| 2910 | + } | |
| 2911 | +} | |
| 2912 | + | |
| 2913 | +DeserializationFeature DeserializationFeature_from_JSON(mixed json) { | |
| 2914 | + DeserializationFeature retval = DeserializationFeature(); | |
| 2915 | + | |
| 2916 | + return retval; | |
| 2917 | +} | |
| 2918 | + | |
| 2881 | 2919 | typedef Dict|float UnionDict; |
| 2882 | 2920 | |
| 2883 | 2921 | UnionDict UnionDict_from_JSON(mixed json) { |
| @@ -5254,6 +5292,50 @@ ObjectMapper ObjectMapper_from_JSON(mixed json) { | ||
| 5254 | 5292 | return retval; |
| 5255 | 5293 | } |
| 5256 | 5294 | |
| 5295 | +typedef float|ObjectReader UnionObjectReader; | |
| 5296 | + | |
| 5297 | +UnionObjectReader UnionObjectReader_from_JSON(mixed json) { | |
| 5298 | + return json; | |
| 5299 | +} | |
| 5300 | + | |
| 5301 | +class ObjectReader { | |
| 5302 | + | |
| 5303 | + string encode_json() { | |
| 5304 | + mapping(string:mixed) json = ([ | |
| 5305 | + ]); | |
| 5306 | + | |
| 5307 | + return Standards.JSON.encode(json); | |
| 5308 | + } | |
| 5309 | +} | |
| 5310 | + | |
| 5311 | +ObjectReader ObjectReader_from_JSON(mixed json) { | |
| 5312 | + ObjectReader retval = ObjectReader(); | |
| 5313 | + | |
| 5314 | + return retval; | |
| 5315 | +} | |
| 5316 | + | |
| 5317 | +typedef float|ObjectWriter UnionObjectWriter; | |
| 5318 | + | |
| 5319 | +UnionObjectWriter UnionObjectWriter_from_JSON(mixed json) { | |
| 5320 | + return json; | |
| 5321 | +} | |
| 5322 | + | |
| 5323 | +class ObjectWriter { | |
| 5324 | + | |
| 5325 | + string encode_json() { | |
| 5326 | + mapping(string:mixed) json = ([ | |
| 5327 | + ]); | |
| 5328 | + | |
| 5329 | + return Standards.JSON.encode(json); | |
| 5330 | + } | |
| 5331 | +} | |
| 5332 | + | |
| 5333 | +ObjectWriter ObjectWriter_from_JSON(mixed json) { | |
| 5334 | + ObjectWriter retval = ObjectWriter(); | |
| 5335 | + | |
| 5336 | + return retval; | |
| 5337 | +} | |
| 5338 | + | |
| 5257 | 5339 | typedef float|Of UnionOf; |
| 5258 | 5340 | |
| 5259 | 5341 | UnionOf UnionOf_from_JSON(mixed json) { |
| @@ -6244,6 +6326,28 @@ Sendable Sendable_from_JSON(mixed json) { | ||
| 6244 | 6326 | return retval; |
| 6245 | 6327 | } |
| 6246 | 6328 | |
| 6329 | +typedef float|SerializationFeature UnionSerializationFeature; | |
| 6330 | + | |
| 6331 | +UnionSerializationFeature UnionSerializationFeature_from_JSON(mixed json) { | |
| 6332 | + return json; | |
| 6333 | +} | |
| 6334 | + | |
| 6335 | +class SerializationFeature { | |
| 6336 | + | |
| 6337 | + string encode_json() { | |
| 6338 | + mapping(string:mixed) json = ([ | |
| 6339 | + ]); | |
| 6340 | + | |
| 6341 | + return Standards.JSON.encode(json); | |
| 6342 | + } | |
| 6343 | +} | |
| 6344 | + | |
| 6345 | +SerializationFeature SerializationFeature_from_JSON(mixed json) { | |
| 6346 | + SerializationFeature retval = SerializationFeature(); | |
| 6347 | + | |
| 6348 | + return retval; | |
| 6349 | +} | |
| 6350 | + | |
| 6247 | 6351 | typedef float|Serialize UnionSerialize; |
| 6248 | 6352 | |
| 6249 | 6353 | UnionSerialize UnionSerialize_from_JSON(mixed json) { |
Mschema-pythondefault / quicktype.py+73 −1
| @@ -972,6 +972,20 @@ class Delete: | ||
| 972 | 972 | return result |
| 973 | 973 | |
| 974 | 974 | |
| 975 | +@dataclass | |
| 976 | +class DeserializationFeature: | |
| 977 | + pass | |
| 978 | + | |
| 979 | + @staticmethod | |
| 980 | + def from_dict(obj: Any) -> 'DeserializationFeature': | |
| 981 | + assert isinstance(obj, dict) | |
| 982 | + return DeserializationFeature() | |
| 983 | + | |
| 984 | + def to_dict(self) -> dict: | |
| 985 | + result: dict = {} | |
| 986 | + return result | |
| 987 | + | |
| 988 | + | |
| 975 | 989 | @dataclass |
| 976 | 990 | class Dictionary: |
| 977 | 991 | pass |
| @@ -2484,6 +2498,34 @@ class ObjectMapper: | ||
| 2484 | 2498 | return result |
| 2485 | 2499 | |
| 2486 | 2500 | |
| 2501 | +@dataclass | |
| 2502 | +class ObjectReader: | |
| 2503 | + pass | |
| 2504 | + | |
| 2505 | + @staticmethod | |
| 2506 | + def from_dict(obj: Any) -> 'ObjectReader': | |
| 2507 | + assert isinstance(obj, dict) | |
| 2508 | + return ObjectReader() | |
| 2509 | + | |
| 2510 | + def to_dict(self) -> dict: | |
| 2511 | + result: dict = {} | |
| 2512 | + return result | |
| 2513 | + | |
| 2514 | + | |
| 2515 | +@dataclass | |
| 2516 | +class ObjectWriter: | |
| 2517 | + pass | |
| 2518 | + | |
| 2519 | + @staticmethod | |
| 2520 | + def from_dict(obj: Any) -> 'ObjectWriter': | |
| 2521 | + assert isinstance(obj, dict) | |
| 2522 | + return ObjectWriter() | |
| 2523 | + | |
| 2524 | + def to_dict(self) -> dict: | |
| 2525 | + result: dict = {} | |
| 2526 | + return result | |
| 2527 | + | |
| 2528 | + | |
| 2487 | 2529 | @dataclass |
| 2488 | 2530 | class Of: |
| 2489 | 2531 | pass |
| @@ -3114,6 +3156,20 @@ class Sendable: | ||
| 3114 | 3156 | return result |
| 3115 | 3157 | |
| 3116 | 3158 | |
| 3159 | +@dataclass | |
| 3160 | +class SerializationFeature: | |
| 3161 | + pass | |
| 3162 | + | |
| 3163 | + @staticmethod | |
| 3164 | + def from_dict(obj: Any) -> 'SerializationFeature': | |
| 3165 | + assert isinstance(obj, dict) | |
| 3166 | + return SerializationFeature() | |
| 3167 | + | |
| 3168 | + def to_dict(self) -> dict: | |
| 3169 | + result: dict = {} | |
| 3170 | + return result | |
| 3171 | + | |
| 3172 | + | |
| 3117 | 3173 | @dataclass |
| 3118 | 3174 | class Serialize: |
| 3119 | 3175 | pass |
| @@ -4768,6 +4824,7 @@ class TopLevel: | ||
| 4768 | 4824 | top_level_del: float | Del | None = None |
| 4769 | 4825 | delegate: float | Delegate | None = None |
| 4770 | 4826 | delete: float | Delete | None = None |
| 4827 | + deserialization_feature: float | DeserializationFeature | None = None | |
| 4771 | 4828 | top_level_dict: float | DictClass | None = None |
| 4772 | 4829 | dictionary: float | Dictionary | None = None |
| 4773 | 4830 | did_set: float | DidSet | None = None |
| @@ -4894,6 +4951,8 @@ class TopLevel: | ||
| 4894 | 4951 | number: float | Number | None = None |
| 4895 | 4952 | object: float | Object | None = None |
| 4896 | 4953 | object_mapper: float | ObjectMapper | None = None |
| 4954 | + object_reader: float | ObjectReader | None = None | |
| 4955 | + object_writer: float | ObjectWriter | None = None | |
| 4897 | 4956 | of: float | Of | None = None |
| 4898 | 4957 | oneway: float | Oneway | None = None |
| 4899 | 4958 | open: float | Open | None = None |
| @@ -4944,6 +5003,7 @@ class TopLevel: | ||
| 4944 | 5003 | top_level_self: float | Self | None = None |
| 4945 | 5004 | purple_self: float | SelfClass | None = None |
| 4946 | 5005 | sendable: float | Sendable | None = None |
| 5006 | + serialization_feature: float | SerializationFeature | None = None | |
| 4947 | 5007 | serialize: float | Serialize | None = None |
| 4948 | 5008 | serializer_provider: float | SerializerProvider | None = None |
| 4949 | 5009 | set: float | Set | None = None |
| @@ -5105,6 +5165,7 @@ class TopLevel: | ||
| 5105 | 5165 | top_level_del = from_union([from_float, Del.from_dict, from_none], obj.get("del")) |
| 5106 | 5166 | delegate = from_union([from_float, Delegate.from_dict, from_none], obj.get("delegate")) |
| 5107 | 5167 | delete = from_union([from_float, Delete.from_dict, from_none], obj.get("delete")) |
| 5168 | + deserialization_feature = from_union([from_float, DeserializationFeature.from_dict, from_none], obj.get("DeserializationFeature")) | |
| 5108 | 5169 | top_level_dict = from_union([from_float, DictClass.from_dict, from_none], obj.get("dict")) |
| 5109 | 5170 | dictionary = from_union([from_float, Dictionary.from_dict, from_none], obj.get("dictionary")) |
| 5110 | 5171 | did_set = from_union([from_float, DidSet.from_dict, from_none], obj.get("didSet")) |
| @@ -5231,6 +5292,8 @@ class TopLevel: | ||
| 5231 | 5292 | number = from_union([from_float, Number.from_dict, from_none], obj.get("number")) |
| 5232 | 5293 | object = from_union([from_float, Object.from_dict, from_none], obj.get("object")) |
| 5233 | 5294 | object_mapper = from_union([from_float, ObjectMapper.from_dict, from_none], obj.get("ObjectMapper")) |
| 5295 | + object_reader = from_union([from_float, ObjectReader.from_dict, from_none], obj.get("ObjectReader")) | |
| 5296 | + object_writer = from_union([from_float, ObjectWriter.from_dict, from_none], obj.get("ObjectWriter")) | |
| 5234 | 5297 | of = from_union([from_float, Of.from_dict, from_none], obj.get("of")) |
| 5235 | 5298 | oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway")) |
| 5236 | 5299 | open = from_union([from_float, Open.from_dict, from_none], obj.get("open")) |
| @@ -5281,6 +5344,7 @@ class TopLevel: | ||
| 5281 | 5344 | top_level_self = from_union([from_float, Self.from_dict, from_none], obj.get("Self")) |
| 5282 | 5345 | purple_self = from_union([from_float, SelfClass.from_dict, from_none], obj.get("self")) |
| 5283 | 5346 | sendable = from_union([from_float, Sendable.from_dict, from_none], obj.get("Sendable")) |
| 5347 | + serialization_feature = from_union([from_float, SerializationFeature.from_dict, from_none], obj.get("SerializationFeature")) | |
| 5284 | 5348 | serialize = from_union([from_float, Serialize.from_dict, from_none], obj.get("serialize")) |
| 5285 | 5349 | serializer_provider = from_union([from_float, SerializerProvider.from_dict, from_none], obj.get("SerializerProvider")) |
| 5286 | 5350 | set = from_union([from_float, Set.from_dict, from_none], obj.get("set")) |
| @@ -5354,7 +5418,7 @@ class TopLevel: | ||
| 5354 | 5418 | xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq")) |
| 5355 | 5419 | yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES")) |
| 5356 | 5420 | top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield")) |
| 5357 | - return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serialize, serializer_provider, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield) | |
| 5421 | + return TopLevel(empty, purple_bool, complex, imaginery, abstract, alignas, alignof, top_level_and, and_eq, top_level_any, any, array, top_level_as, asm, top_level_assert, associatedtype, associativity, top_level_async, atomic, atomic_cancel, atomic_commit, atomic_noexcept, auto, top_level_await, base, bitand, bitor, top_level_bool, fluffy_bool, boolean, top_level_break, bycopy, byref, byte, calendar, case, catch, chan, char, char16_t, char32_t, checked, purple_class, top_level_class, clone, co_await, co_return, co_yield, codable, coding_key, coding_keys, compl, concept, console, const, const_cast, constexpr, constructor, top_level_continue, convenience, convert, converter, culture_info, date, date_parse_handling, date_formatter, date_only, date_only_converter, date_time, date_time_styles, debugger, decimal, declare, decltype, decode_string, decoder, decoding_error, top_level_def, default, defer, deinit, top_level_del, delegate, delete, deserialization_feature, top_level_dict, dictionary, did_set, do, double, dummy, dynamic, dynamic_cast, top_level_elif, top_level_else, encode_quick_type, encoder, enum, enum_values, equality_contract, equatable, event, top_level_except, exception, explicit, export, exposing, extends, extension, extern, fallthrough, top_level_false, false, fileprivate, final, top_level_finally, fixed, top_level_float, top_level_for, foreach, format_exception, friend, top_level_from, from_json, func, function, get, top_level_global, go, goto, guard, hashable, hash_code, hasher, has_own_property, id, top_level_if, imp, implements, implicit, top_level_import, top_level_in, indirect, infix, init, inline, inout, instanceof, top_level_int, interface, internal, top_level_is, iso_date_time_offset_converter, iterable, jdec, jenc, jpipe, json, json_converter, json_serializer, json_token, json_writer, json_any, json_coding_key, json_decoder, json_encoder, json_exception, json_generator, json_node, json_null, json_parser, json_reader, json_token_type, top_level_lambda, lazy, left, let, list, locale, lock, long, map, map_entry, metadata_property_handling, module, mutable, mutating, namespace, native, new, newtonsoft, nil, no, noexcept, nonatomic, top_level_none, none, top_level_nonlocal, nonmutating, no_such_method, top_level_not, not_eq, ns_error, ns_object, ns_string, null, top_level_null, nullptr, number, object, object_mapper, object_reader, object_writer, of, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, top_level_print, printf, print_members, private, protected, protocol, top_level_protocol, public, quicktype, top_level_raise, range, readonly, ref, reg_exp, register, reinterpret_cast, repeat, require, required, requires, restrict, retain, rethrows, top_level_return, right, runtime_type, s, sbyte, sealed, sel, select, top_level_self, purple_self, sendable, serialization_feature, serialize, serializer_provider, set, short, signed, simple_module, sizeof, stackalloc, standards, static, static_assert, static_cast, std_deserializer, std_serializer, strictfp, string, struct, subscript, super, switch, symbol, synchronized, system, template, then, this, thread_local, throw, throws, time_only, time_only_converter, time_zone, to_json, top_level, to_string, transient, true, top_level_true, top_level_try, type, top_level_type, typealias, typedef, typeid, typename, typeof, uint, ulong, unchecked, undefined, union, unowned, unsafe, unsigned, ushort, using, utf8_json_reader, utf8_json_writer, uuid, var, virtual, void, volatile, wchar_t, weak, where, top_level_while, will_set, top_level_with, xor, xor_eq, yes, top_level_yield) | |
| 5358 | 5422 | |
| 5359 | 5423 | def to_dict(self) -> dict: |
| 5360 | 5424 | result: dict = {} |
| @@ -5526,6 +5590,8 @@ class TopLevel: | ||
| 5526 | 5590 | result["delegate"] = from_union([to_float, lambda x: to_class(Delegate, x), from_none], self.delegate) |
| 5527 | 5591 | if self.delete is not None: |
| 5528 | 5592 | result["delete"] = from_union([to_float, lambda x: to_class(Delete, x), from_none], self.delete) |
| 5593 | + if self.deserialization_feature is not None: | |
| 5594 | + result["DeserializationFeature"] = from_union([to_float, lambda x: to_class(DeserializationFeature, x), from_none], self.deserialization_feature) | |
| 5529 | 5595 | if self.top_level_dict is not None: |
| 5530 | 5596 | result["dict"] = from_union([to_float, lambda x: to_class(DictClass, x), from_none], self.top_level_dict) |
| 5531 | 5597 | if self.dictionary is not None: |
| @@ -5778,6 +5844,10 @@ class TopLevel: | ||
| 5778 | 5844 | result["object"] = from_union([to_float, lambda x: to_class(Object, x), from_none], self.object) |
| 5779 | 5845 | if self.object_mapper is not None: |
| 5780 | 5846 | result["ObjectMapper"] = from_union([to_float, lambda x: to_class(ObjectMapper, x), from_none], self.object_mapper) |
| 5847 | + if self.object_reader is not None: | |
| 5848 | + result["ObjectReader"] = from_union([to_float, lambda x: to_class(ObjectReader, x), from_none], self.object_reader) | |
| 5849 | + if self.object_writer is not None: | |
| 5850 | + result["ObjectWriter"] = from_union([to_float, lambda x: to_class(ObjectWriter, x), from_none], self.object_writer) | |
| 5781 | 5851 | if self.of is not None: |
| 5782 | 5852 | result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of) |
| 5783 | 5853 | if self.oneway is not None: |
| @@ -5878,6 +5948,8 @@ class TopLevel: | ||
| 5878 | 5948 | result["self"] = from_union([to_float, lambda x: to_class(SelfClass, x), from_none], self.purple_self) |
| 5879 | 5949 | if self.sendable is not None: |
| 5880 | 5950 | result["Sendable"] = from_union([to_float, lambda x: to_class(Sendable, x), from_none], self.sendable) |
| 5951 | + if self.serialization_feature is not None: | |
| 5952 | + result["SerializationFeature"] = from_union([to_float, lambda x: to_class(SerializationFeature, x), from_none], self.serialization_feature) | |
| 5881 | 5953 | if self.serialize is not None: |
| 5882 | 5954 | result["serialize"] = from_union([to_float, lambda x: to_class(Serialize, x), from_none], self.serialize) |
| 5883 | 5955 | if self.serializer_provider is not None: |
Mschema-ruby-syntaxdefault / TopLevel.rb+240 −0
| @@ -4066,6 +4066,63 @@ class UnionDelete < Dry::Struct | ||
| 4066 | 4066 | end |
| 4067 | 4067 | end |
| 4068 | 4068 | |
| 4069 | +class DeserializationFeature < Dry::Struct | |
| 4070 | + | |
| 4071 | + def self.from_dynamic!(d) | |
| 4072 | + d = Types::Hash[d] | |
| 4073 | + new( | |
| 4074 | + ) | |
| 4075 | + end | |
| 4076 | + | |
| 4077 | + def self.from_json!(json) | |
| 4078 | + from_dynamic!(JSON.parse(json)) | |
| 4079 | + end | |
| 4080 | + | |
| 4081 | + def to_dynamic | |
| 4082 | + { | |
| 4083 | + } | |
| 4084 | + end | |
| 4085 | + | |
| 4086 | + def to_json(options = nil) | |
| 4087 | + JSON.generate(to_dynamic, options) | |
| 4088 | + end | |
| 4089 | +end | |
| 4090 | + | |
| 4091 | +class UnionDeserializationFeature < Dry::Struct | |
| 4092 | + attribute :deserialization_feature, DeserializationFeature.optional | |
| 4093 | + attribute :double, Types::Double.optional | |
| 4094 | + | |
| 4095 | + def self.from_dynamic!(d) | |
| 4096 | + begin | |
| 4097 | + value = DeserializationFeature.from_dynamic!(d) | |
| 4098 | + if schema.key(:deserialization_feature).type.right.valid? value | |
| 4099 | + return new(deserialization_feature: value, double: nil) | |
| 4100 | + end | |
| 4101 | + rescue | |
| 4102 | + end | |
| 4103 | + if schema.key(:double).type.right.valid? d | |
| 4104 | + return new(double: d, deserialization_feature: nil) | |
| 4105 | + end | |
| 4106 | + raise "Invalid union" | |
| 4107 | + end | |
| 4108 | + | |
| 4109 | + def self.from_json!(json) | |
| 4110 | + from_dynamic!(JSON.parse(json)) | |
| 4111 | + end | |
| 4112 | + | |
| 4113 | + def to_dynamic | |
| 4114 | + if deserialization_feature != nil | |
| 4115 | + deserialization_feature.to_dynamic | |
| 4116 | + elsif double != nil | |
| 4117 | + double | |
| 4118 | + end | |
| 4119 | + end | |
| 4120 | + | |
| 4121 | + def to_json(options = nil) | |
| 4122 | + JSON.generate(to_dynamic, options) | |
| 4123 | + end | |
| 4124 | +end | |
| 4125 | + | |
| 4069 | 4126 | class Dict < Dry::Struct |
| 4070 | 4127 | |
| 4071 | 4128 | def self.from_dynamic!(d) |
| @@ -10507,6 +10564,120 @@ class UnionObjectMapper < Dry::Struct | ||
| 10507 | 10564 | end |
| 10508 | 10565 | end |
| 10509 | 10566 | |
| 10567 | +class ObjectReader < Dry::Struct | |
| 10568 | + | |
| 10569 | + def self.from_dynamic!(d) | |
| 10570 | + d = Types::Hash[d] | |
| 10571 | + new( | |
| 10572 | + ) | |
| 10573 | + end | |
| 10574 | + | |
| 10575 | + def self.from_json!(json) | |
| 10576 | + from_dynamic!(JSON.parse(json)) | |
| 10577 | + end | |
| 10578 | + | |
| 10579 | + def to_dynamic | |
| 10580 | + { | |
| 10581 | + } | |
| 10582 | + end | |
| 10583 | + | |
| 10584 | + def to_json(options = nil) | |
| 10585 | + JSON.generate(to_dynamic, options) | |
| 10586 | + end | |
| 10587 | +end | |
| 10588 | + | |
| 10589 | +class UnionObjectReader < Dry::Struct | |
| 10590 | + attribute :double, Types::Double.optional | |
| 10591 | + attribute :object_reader, ObjectReader.optional | |
| 10592 | + | |
| 10593 | + def self.from_dynamic!(d) | |
| 10594 | + if schema.key(:double).type.right.valid? d | |
| 10595 | + return new(double: d, object_reader: nil) | |
| 10596 | + end | |
| 10597 | + begin | |
| 10598 | + value = ObjectReader.from_dynamic!(d) | |
| 10599 | + if schema.key(:object_reader).type.right.valid? value | |
| 10600 | + return new(object_reader: value, double: nil) | |
| 10601 | + end | |
| 10602 | + rescue | |
| 10603 | + end | |
| 10604 | + raise "Invalid union" | |
| 10605 | + end | |
| 10606 | + | |
| 10607 | + def self.from_json!(json) | |
| 10608 | + from_dynamic!(JSON.parse(json)) | |
| 10609 | + end | |
| 10610 | + | |
| 10611 | + def to_dynamic | |
| 10612 | + if double != nil | |
| 10613 | + double | |
| 10614 | + elsif object_reader != nil | |
| 10615 | + object_reader.to_dynamic | |
| 10616 | + end | |
| 10617 | + end | |
| 10618 | + | |
| 10619 | + def to_json(options = nil) | |
| 10620 | + JSON.generate(to_dynamic, options) | |
| 10621 | + end | |
| 10622 | +end | |
| 10623 | + | |
| 10624 | +class ObjectWriter < Dry::Struct | |
| 10625 | + | |
| 10626 | + def self.from_dynamic!(d) | |
| 10627 | + d = Types::Hash[d] | |
| 10628 | + new( | |
| 10629 | + ) | |
| 10630 | + end | |
| 10631 | + | |
| 10632 | + def self.from_json!(json) | |
| 10633 | + from_dynamic!(JSON.parse(json)) | |
| 10634 | + end | |
| 10635 | + | |
| 10636 | + def to_dynamic | |
| 10637 | + { | |
| 10638 | + } | |
| 10639 | + end | |
| 10640 | + | |
| 10641 | + def to_json(options = nil) | |
| 10642 | + JSON.generate(to_dynamic, options) | |
| 10643 | + end | |
| 10644 | +end | |
| 10645 | + | |
| 10646 | +class UnionObjectWriter < Dry::Struct | |
| 10647 | + attribute :double, Types::Double.optional | |
| 10648 | + attribute :object_writer, ObjectWriter.optional | |
| 10649 | + | |
| 10650 | + def self.from_dynamic!(d) | |
| 10651 | + if schema.key(:double).type.right.valid? d | |
| 10652 | + return new(double: d, object_writer: nil) | |
| 10653 | + end | |
| 10654 | + begin | |
| 10655 | + value = ObjectWriter.from_dynamic!(d) | |
| 10656 | + if schema.key(:object_writer).type.right.valid? value | |
| 10657 | + return new(object_writer: value, double: nil) | |
| 10658 | + end | |
| 10659 | + rescue | |
| 10660 | + end | |
| 10661 | + raise "Invalid union" | |
| 10662 | + end | |
| 10663 | + | |
| 10664 | + def self.from_json!(json) | |
| 10665 | + from_dynamic!(JSON.parse(json)) | |
| 10666 | + end | |
| 10667 | + | |
| 10668 | + def to_dynamic | |
| 10669 | + if double != nil | |
| 10670 | + double | |
| 10671 | + elsif object_writer != nil | |
| 10672 | + object_writer.to_dynamic | |
| 10673 | + end | |
| 10674 | + end | |
| 10675 | + | |
| 10676 | + def to_json(options = nil) | |
| 10677 | + JSON.generate(to_dynamic, options) | |
| 10678 | + end | |
| 10679 | +end | |
| 10680 | + | |
| 10510 | 10681 | class Of < Dry::Struct |
| 10511 | 10682 | |
| 10512 | 10683 | def self.from_dynamic!(d) |
| @@ -12730,6 +12901,63 @@ class UnionSendable < Dry::Struct | ||
| 12730 | 12901 | end |
| 12731 | 12902 | end |
| 12732 | 12903 | |
| 12904 | +class SerializationFeature < Dry::Struct | |
| 12905 | + | |
| 12906 | + def self.from_dynamic!(d) | |
| 12907 | + d = Types::Hash[d] | |
| 12908 | + new( | |
| 12909 | + ) | |
| 12910 | + end | |
| 12911 | + | |
| 12912 | + def self.from_json!(json) | |
| 12913 | + from_dynamic!(JSON.parse(json)) | |
| 12914 | + end | |
| 12915 | + | |
| 12916 | + def to_dynamic | |
| 12917 | + { | |
| 12918 | + } | |
| 12919 | + end | |
| 12920 | + | |
| 12921 | + def to_json(options = nil) | |
| 12922 | + JSON.generate(to_dynamic, options) | |
| 12923 | + end | |
| 12924 | +end | |
| 12925 | + | |
| 12926 | +class UnionSerializationFeature < Dry::Struct | |
| 12927 | + attribute :double, Types::Double.optional | |
| 12928 | + attribute :serialization_feature, SerializationFeature.optional | |
| 12929 | + | |
| 12930 | + def self.from_dynamic!(d) | |
| 12931 | + if schema.key(:double).type.right.valid? d | |
| 12932 | + return new(double: d, serialization_feature: nil) | |
| 12933 | + end | |
| 12934 | + begin | |
| 12935 | + value = SerializationFeature.from_dynamic!(d) | |
| 12936 | + if schema.key(:serialization_feature).type.right.valid? value | |
| 12937 | + return new(serialization_feature: value, double: nil) | |
| 12938 | + end | |
| 12939 | + rescue | |
| 12940 | + end | |
| 12941 | + raise "Invalid union" | |
| 12942 | + end | |
| 12943 | + | |
| 12944 | + def self.from_json!(json) | |
| 12945 | + from_dynamic!(JSON.parse(json)) | |
| 12946 | + end | |
| 12947 | + | |
| 12948 | + def to_dynamic | |
| 12949 | + if double != nil | |
| 12950 | + double | |
| 12951 | + elsif serialization_feature != nil | |
| 12952 | + serialization_feature.to_dynamic | |
| 12953 | + end | |
| 12954 | + end | |
| 12955 | + | |
| 12956 | + def to_json(options = nil) | |
| 12957 | + JSON.generate(to_dynamic, options) | |
| 12958 | + end | |
| 12959 | +end | |
| 12960 | + | |
| 12733 | 12961 | class Serialize < Dry::Struct |
| 12734 | 12962 | |
| 12735 | 12963 | def self.from_dynamic!(d) |
| @@ -19028,6 +19256,7 @@ class TopLevel < Dry::Struct | ||
| 19028 | 19256 | attribute :del, Types.Instance(UnionDel).optional |
| 19029 | 19257 | attribute :delegate, Types.Instance(UnionDelegate).optional |
| 19030 | 19258 | attribute :delete, Types.Instance(UnionDelete).optional |
| 19259 | + attribute :deserialization_feature, Types.Instance(UnionDeserializationFeature).optional | |
| 19031 | 19260 | attribute :dict, Types.Instance(UnionDict).optional |
| 19032 | 19261 | attribute :dictionary, Types.Instance(UnionDictionary).optional |
| 19033 | 19262 | attribute :did_set, Types.Instance(UnionDidSet).optional |
| @@ -19154,6 +19383,8 @@ class TopLevel < Dry::Struct | ||
| 19154 | 19383 | attribute :number, Types.Instance(UnionNumber).optional |
| 19155 | 19384 | attribute :object, Types.Instance(UnionObject).optional |
| 19156 | 19385 | attribute :object_mapper, Types.Instance(UnionObjectMapper).optional |
| 19386 | + attribute :object_reader, Types.Instance(UnionObjectReader).optional | |
| 19387 | + attribute :object_writer, Types.Instance(UnionObjectWriter).optional | |
| 19157 | 19388 | attribute :of, Types.Instance(UnionOf).optional |
| 19158 | 19389 | attribute :oneway, Types.Instance(UnionOneway).optional |
| 19159 | 19390 | attribute :top_level_open, Types.Instance(UnionOpen).optional |
| @@ -19204,6 +19435,7 @@ class TopLevel < Dry::Struct | ||
| 19204 | 19435 | attribute :top_level_self, Types.Instance(UnionSelf).optional |
| 19205 | 19436 | attribute :self_1, Types.Instance(UnionSelfUnion).optional |
| 19206 | 19437 | attribute :sendable, Types.Instance(UnionSendable).optional |
| 19438 | + attribute :serialization_feature, Types.Instance(UnionSerializationFeature).optional | |
| 19207 | 19439 | attribute :serialize, Types.Instance(UnionSerialize).optional |
| 19208 | 19440 | attribute :serializer_provider, Types.Instance(UnionSerializerProvider).optional |
| 19209 | 19441 | attribute :set, Types.Instance(UnionSet).optional |
| @@ -19365,6 +19597,7 @@ class TopLevel < Dry::Struct | ||
| 19365 | 19597 | del: d.key?("del") ? UnionDel.from_dynamic!(d["del"]) : nil, |
| 19366 | 19598 | delegate: d.key?("delegate") ? UnionDelegate.from_dynamic!(d["delegate"]) : nil, |
| 19367 | 19599 | delete: d.key?("delete") ? UnionDelete.from_dynamic!(d["delete"]) : nil, |
| 19600 | + deserialization_feature: d.key?("DeserializationFeature") ? UnionDeserializationFeature.from_dynamic!(d["DeserializationFeature"]) : nil, | |
| 19368 | 19601 | dict: d.key?("dict") ? UnionDict.from_dynamic!(d["dict"]) : nil, |
| 19369 | 19602 | dictionary: d.key?("dictionary") ? UnionDictionary.from_dynamic!(d["dictionary"]) : nil, |
| 19370 | 19603 | did_set: d.key?("didSet") ? UnionDidSet.from_dynamic!(d["didSet"]) : nil, |
| @@ -19491,6 +19724,8 @@ class TopLevel < Dry::Struct | ||
| 19491 | 19724 | number: d.key?("number") ? UnionNumber.from_dynamic!(d["number"]) : nil, |
| 19492 | 19725 | object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil, |
| 19493 | 19726 | object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil, |
| 19727 | + object_reader: d.key?("ObjectReader") ? UnionObjectReader.from_dynamic!(d["ObjectReader"]) : nil, | |
| 19728 | + object_writer: d.key?("ObjectWriter") ? UnionObjectWriter.from_dynamic!(d["ObjectWriter"]) : nil, | |
| 19494 | 19729 | of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil, |
| 19495 | 19730 | oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil, |
| 19496 | 19731 | top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil, |
| @@ -19541,6 +19776,7 @@ class TopLevel < Dry::Struct | ||
| 19541 | 19776 | top_level_self: d.key?("Self") ? UnionSelf.from_dynamic!(d["Self"]) : nil, |
| 19542 | 19777 | self_1: d.key?("self") ? UnionSelfUnion.from_dynamic!(d["self"]) : nil, |
| 19543 | 19778 | sendable: d.key?("Sendable") ? UnionSendable.from_dynamic!(d["Sendable"]) : nil, |
| 19779 | + serialization_feature: d.key?("SerializationFeature") ? UnionSerializationFeature.from_dynamic!(d["SerializationFeature"]) : nil, | |
| 19544 | 19780 | serialize: d.key?("serialize") ? UnionSerialize.from_dynamic!(d["serialize"]) : nil, |
| 19545 | 19781 | serializer_provider: d.key?("SerializerProvider") ? UnionSerializerProvider.from_dynamic!(d["SerializerProvider"]) : nil, |
| 19546 | 19782 | set: d.key?("set") ? UnionSet.from_dynamic!(d["set"]) : nil, |
| @@ -19707,6 +19943,7 @@ class TopLevel < Dry::Struct | ||
| 19707 | 19943 | "del" => del&.to_dynamic, |
| 19708 | 19944 | "delegate" => delegate&.to_dynamic, |
| 19709 | 19945 | "delete" => delete&.to_dynamic, |
| 19946 | + "DeserializationFeature" => deserialization_feature&.to_dynamic, | |
| 19710 | 19947 | "dict" => dict&.to_dynamic, |
| 19711 | 19948 | "dictionary" => dictionary&.to_dynamic, |
| 19712 | 19949 | "didSet" => did_set&.to_dynamic, |
| @@ -19833,6 +20070,8 @@ class TopLevel < Dry::Struct | ||
| 19833 | 20070 | "number" => number&.to_dynamic, |
| 19834 | 20071 | "object" => object&.to_dynamic, |
| 19835 | 20072 | "ObjectMapper" => object_mapper&.to_dynamic, |
| 20073 | + "ObjectReader" => object_reader&.to_dynamic, | |
| 20074 | + "ObjectWriter" => object_writer&.to_dynamic, | |
| 19836 | 20075 | "of" => of&.to_dynamic, |
| 19837 | 20076 | "oneway" => oneway&.to_dynamic, |
| 19838 | 20077 | "open" => top_level_open&.to_dynamic, |
| @@ -19883,6 +20122,7 @@ class TopLevel < Dry::Struct | ||
| 19883 | 20122 | "Self" => top_level_self&.to_dynamic, |
| 19884 | 20123 | "self" => self_1&.to_dynamic, |
| 19885 | 20124 | "Sendable" => sendable&.to_dynamic, |
| 20125 | + "SerializationFeature" => serialization_feature&.to_dynamic, | |
| 19886 | 20126 | "serialize" => serialize&.to_dynamic, |
| 19887 | 20127 | "SerializerProvider" => serializer_provider&.to_dynamic, |
| 19888 | 20128 | "set" => set&.to_dynamic, |
Mschema-rubydefault / TopLevel.rb+240 −0
| @@ -4066,6 +4066,63 @@ class UnionDelete < Dry::Struct | ||
| 4066 | 4066 | end |
| 4067 | 4067 | end |
| 4068 | 4068 | |
| 4069 | +class DeserializationFeature < Dry::Struct | |
| 4070 | + | |
| 4071 | + def self.from_dynamic!(d) | |
| 4072 | + d = Types::Hash[d] | |
| 4073 | + new( | |
| 4074 | + ) | |
| 4075 | + end | |
| 4076 | + | |
| 4077 | + def self.from_json!(json) | |
| 4078 | + from_dynamic!(JSON.parse(json)) | |
| 4079 | + end | |
| 4080 | + | |
| 4081 | + def to_dynamic | |
| 4082 | + { | |
| 4083 | + } | |
| 4084 | + end | |
| 4085 | + | |
| 4086 | + def to_json(options = nil) | |
| 4087 | + JSON.generate(to_dynamic, options) | |
| 4088 | + end | |
| 4089 | +end | |
| 4090 | + | |
| 4091 | +class UnionDeserializationFeature < Dry::Struct | |
| 4092 | + attribute :deserialization_feature, DeserializationFeature.optional | |
| 4093 | + attribute :double, Types::Double.optional | |
| 4094 | + | |
| 4095 | + def self.from_dynamic!(d) | |
| 4096 | + begin | |
| 4097 | + value = DeserializationFeature.from_dynamic!(d) | |
| 4098 | + if schema.key(:deserialization_feature).type.right.valid? value | |
| 4099 | + return new(deserialization_feature: value, double: nil) | |
| 4100 | + end | |
| 4101 | + rescue | |
| 4102 | + end | |
| 4103 | + if schema.key(:double).type.right.valid? d | |
| 4104 | + return new(double: d, deserialization_feature: nil) | |
| 4105 | + end | |
| 4106 | + raise "Invalid union" | |
| 4107 | + end | |
| 4108 | + | |
| 4109 | + def self.from_json!(json) | |
| 4110 | + from_dynamic!(JSON.parse(json)) | |
| 4111 | + end | |
| 4112 | + | |
| 4113 | + def to_dynamic | |
| 4114 | + if deserialization_feature != nil | |
| 4115 | + deserialization_feature.to_dynamic | |
| 4116 | + elsif double != nil | |
| 4117 | + double | |
| 4118 | + end | |
| 4119 | + end | |
| 4120 | + | |
| 4121 | + def to_json(options = nil) | |
| 4122 | + JSON.generate(to_dynamic, options) | |
| 4123 | + end | |
| 4124 | +end | |
| 4125 | + | |
| 4069 | 4126 | class Dict < Dry::Struct |
| 4070 | 4127 | |
| 4071 | 4128 | def self.from_dynamic!(d) |
| @@ -10507,6 +10564,120 @@ class UnionObjectMapper < Dry::Struct | ||
| 10507 | 10564 | end |
| 10508 | 10565 | end |
| 10509 | 10566 | |
| 10567 | +class ObjectReader < Dry::Struct | |
| 10568 | + | |
| 10569 | + def self.from_dynamic!(d) | |
| 10570 | + d = Types::Hash[d] | |
| 10571 | + new( | |
| 10572 | + ) | |
| 10573 | + end | |
| 10574 | + | |
| 10575 | + def self.from_json!(json) | |
| 10576 | + from_dynamic!(JSON.parse(json)) | |
| 10577 | + end | |
| 10578 | + | |
| 10579 | + def to_dynamic | |
| 10580 | + { | |
| 10581 | + } | |
| 10582 | + end | |
| 10583 | + | |
| 10584 | + def to_json(options = nil) | |
| 10585 | + JSON.generate(to_dynamic, options) | |
| 10586 | + end | |
| 10587 | +end | |
| 10588 | + | |
| 10589 | +class UnionObjectReader < Dry::Struct | |
| 10590 | + attribute :double, Types::Double.optional | |
| 10591 | + attribute :object_reader, ObjectReader.optional | |
| 10592 | + | |
| 10593 | + def self.from_dynamic!(d) | |
| 10594 | + if schema.key(:double).type.right.valid? d | |
| 10595 | + return new(double: d, object_reader: nil) | |
| 10596 | + end | |
| 10597 | + begin | |
| 10598 | + value = ObjectReader.from_dynamic!(d) | |
| 10599 | + if schema.key(:object_reader).type.right.valid? value | |
| 10600 | + return new(object_reader: value, double: nil) | |
| 10601 | + end | |
| 10602 | + rescue | |
| 10603 | + end | |
| 10604 | + raise "Invalid union" | |
| 10605 | + end | |
| 10606 | + | |
| 10607 | + def self.from_json!(json) | |
| 10608 | + from_dynamic!(JSON.parse(json)) | |
| 10609 | + end | |
| 10610 | + | |
| 10611 | + def to_dynamic | |
| 10612 | + if double != nil | |
| 10613 | + double | |
| 10614 | + elsif object_reader != nil | |
| 10615 | + object_reader.to_dynamic | |
| 10616 | + end | |
| 10617 | + end | |
| 10618 | + | |
| 10619 | + def to_json(options = nil) | |
| 10620 | + JSON.generate(to_dynamic, options) | |
| 10621 | + end | |
| 10622 | +end | |
| 10623 | + | |
| 10624 | +class ObjectWriter < Dry::Struct | |
| 10625 | + | |
| 10626 | + def self.from_dynamic!(d) | |
| 10627 | + d = Types::Hash[d] | |
| 10628 | + new( | |
| 10629 | + ) | |
| 10630 | + end | |
| 10631 | + | |
| 10632 | + def self.from_json!(json) | |
| 10633 | + from_dynamic!(JSON.parse(json)) | |
| 10634 | + end | |
| 10635 | + | |
| 10636 | + def to_dynamic | |
| 10637 | + { | |
| 10638 | + } | |
| 10639 | + end | |
| 10640 | + | |
| 10641 | + def to_json(options = nil) | |
| 10642 | + JSON.generate(to_dynamic, options) | |
| 10643 | + end | |
| 10644 | +end | |
| 10645 | + | |
| 10646 | +class UnionObjectWriter < Dry::Struct | |
| 10647 | + attribute :double, Types::Double.optional | |
| 10648 | + attribute :object_writer, ObjectWriter.optional | |
| 10649 | + | |
| 10650 | + def self.from_dynamic!(d) | |
| 10651 | + if schema.key(:double).type.right.valid? d | |
| 10652 | + return new(double: d, object_writer: nil) | |
| 10653 | + end | |
| 10654 | + begin | |
| 10655 | + value = ObjectWriter.from_dynamic!(d) | |
| 10656 | + if schema.key(:object_writer).type.right.valid? value | |
| 10657 | + return new(object_writer: value, double: nil) | |
| 10658 | + end | |
| 10659 | + rescue | |
| 10660 | + end | |
| 10661 | + raise "Invalid union" | |
| 10662 | + end | |
| 10663 | + | |
| 10664 | + def self.from_json!(json) | |
| 10665 | + from_dynamic!(JSON.parse(json)) | |
| 10666 | + end | |
| 10667 | + | |
| 10668 | + def to_dynamic | |
| 10669 | + if double != nil | |
| 10670 | + double | |
| 10671 | + elsif object_writer != nil | |
| 10672 | + object_writer.to_dynamic | |
| 10673 | + end | |
| 10674 | + end | |
| 10675 | + | |
| 10676 | + def to_json(options = nil) | |
| 10677 | + JSON.generate(to_dynamic, options) | |
| 10678 | + end | |
| 10679 | +end | |
| 10680 | + | |
| 10510 | 10681 | class Of < Dry::Struct |
| 10511 | 10682 | |
| 10512 | 10683 | def self.from_dynamic!(d) |
| @@ -12730,6 +12901,63 @@ class UnionSendable < Dry::Struct | ||
| 12730 | 12901 | end |
| 12731 | 12902 | end |
| 12732 | 12903 | |
| 12904 | +class SerializationFeature < Dry::Struct | |
| 12905 | + | |
| 12906 | + def self.from_dynamic!(d) | |
| 12907 | + d = Types::Hash[d] | |
| 12908 | + new( | |
| 12909 | + ) | |
| 12910 | + end | |
| 12911 | + | |
| 12912 | + def self.from_json!(json) | |
| 12913 | + from_dynamic!(JSON.parse(json)) | |
| 12914 | + end | |
| 12915 | + | |
| 12916 | + def to_dynamic | |
| 12917 | + { | |
| 12918 | + } | |
| 12919 | + end | |
| 12920 | + | |
| 12921 | + def to_json(options = nil) | |
| 12922 | + JSON.generate(to_dynamic, options) | |
| 12923 | + end | |
| 12924 | +end | |
| 12925 | + | |
| 12926 | +class UnionSerializationFeature < Dry::Struct | |
| 12927 | + attribute :double, Types::Double.optional | |
| 12928 | + attribute :serialization_feature, SerializationFeature.optional | |
| 12929 | + | |
| 12930 | + def self.from_dynamic!(d) | |
| 12931 | + if schema.key(:double).type.right.valid? d | |
| 12932 | + return new(double: d, serialization_feature: nil) | |
| 12933 | + end | |
| 12934 | + begin | |
| 12935 | + value = SerializationFeature.from_dynamic!(d) | |
| 12936 | + if schema.key(:serialization_feature).type.right.valid? value | |
| 12937 | + return new(serialization_feature: value, double: nil) | |
| 12938 | + end | |
| 12939 | + rescue | |
| 12940 | + end | |
| 12941 | + raise "Invalid union" | |
| 12942 | + end | |
| 12943 | + | |
| 12944 | + def self.from_json!(json) | |
| 12945 | + from_dynamic!(JSON.parse(json)) | |
| 12946 | + end | |
| 12947 | + | |
| 12948 | + def to_dynamic | |
| 12949 | + if double != nil | |
| 12950 | + double | |
| 12951 | + elsif serialization_feature != nil | |
| 12952 | + serialization_feature.to_dynamic | |
| 12953 | + end | |
| 12954 | + end | |
| 12955 | + | |
| 12956 | + def to_json(options = nil) | |
| 12957 | + JSON.generate(to_dynamic, options) | |
| 12958 | + end | |
| 12959 | +end | |
| 12960 | + | |
| 12733 | 12961 | class Serialize < Dry::Struct |
| 12734 | 12962 | |
| 12735 | 12963 | def self.from_dynamic!(d) |
| @@ -19028,6 +19256,7 @@ class TopLevel < Dry::Struct | ||
| 19028 | 19256 | attribute :del, Types.Instance(UnionDel).optional |
| 19029 | 19257 | attribute :delegate, Types.Instance(UnionDelegate).optional |
| 19030 | 19258 | attribute :delete, Types.Instance(UnionDelete).optional |
| 19259 | + attribute :deserialization_feature, Types.Instance(UnionDeserializationFeature).optional | |
| 19031 | 19260 | attribute :dict, Types.Instance(UnionDict).optional |
| 19032 | 19261 | attribute :dictionary, Types.Instance(UnionDictionary).optional |
| 19033 | 19262 | attribute :did_set, Types.Instance(UnionDidSet).optional |
| @@ -19154,6 +19383,8 @@ class TopLevel < Dry::Struct | ||
| 19154 | 19383 | attribute :number, Types.Instance(UnionNumber).optional |
| 19155 | 19384 | attribute :object, Types.Instance(UnionObject).optional |
| 19156 | 19385 | attribute :object_mapper, Types.Instance(UnionObjectMapper).optional |
| 19386 | + attribute :object_reader, Types.Instance(UnionObjectReader).optional | |
| 19387 | + attribute :object_writer, Types.Instance(UnionObjectWriter).optional | |
| 19157 | 19388 | attribute :of, Types.Instance(UnionOf).optional |
| 19158 | 19389 | attribute :oneway, Types.Instance(UnionOneway).optional |
| 19159 | 19390 | attribute :top_level_open, Types.Instance(UnionOpen).optional |
| @@ -19204,6 +19435,7 @@ class TopLevel < Dry::Struct | ||
| 19204 | 19435 | attribute :top_level_self, Types.Instance(UnionSelf).optional |
| 19205 | 19436 | attribute :self_1, Types.Instance(UnionSelfUnion).optional |
| 19206 | 19437 | attribute :sendable, Types.Instance(UnionSendable).optional |
| 19438 | + attribute :serialization_feature, Types.Instance(UnionSerializationFeature).optional | |
| 19207 | 19439 | attribute :serialize, Types.Instance(UnionSerialize).optional |
| 19208 | 19440 | attribute :serializer_provider, Types.Instance(UnionSerializerProvider).optional |
| 19209 | 19441 | attribute :set, Types.Instance(UnionSet).optional |
| @@ -19365,6 +19597,7 @@ class TopLevel < Dry::Struct | ||
| 19365 | 19597 | del: d.key?("del") ? UnionDel.from_dynamic!(d["del"]) : nil, |
| 19366 | 19598 | delegate: d.key?("delegate") ? UnionDelegate.from_dynamic!(d["delegate"]) : nil, |
| 19367 | 19599 | delete: d.key?("delete") ? UnionDelete.from_dynamic!(d["delete"]) : nil, |
| 19600 | + deserialization_feature: d.key?("DeserializationFeature") ? UnionDeserializationFeature.from_dynamic!(d["DeserializationFeature"]) : nil, | |
| 19368 | 19601 | dict: d.key?("dict") ? UnionDict.from_dynamic!(d["dict"]) : nil, |
| 19369 | 19602 | dictionary: d.key?("dictionary") ? UnionDictionary.from_dynamic!(d["dictionary"]) : nil, |
| 19370 | 19603 | did_set: d.key?("didSet") ? UnionDidSet.from_dynamic!(d["didSet"]) : nil, |
| @@ -19491,6 +19724,8 @@ class TopLevel < Dry::Struct | ||
| 19491 | 19724 | number: d.key?("number") ? UnionNumber.from_dynamic!(d["number"]) : nil, |
| 19492 | 19725 | object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil, |
| 19493 | 19726 | object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil, |
| 19727 | + object_reader: d.key?("ObjectReader") ? UnionObjectReader.from_dynamic!(d["ObjectReader"]) : nil, | |
| 19728 | + object_writer: d.key?("ObjectWriter") ? UnionObjectWriter.from_dynamic!(d["ObjectWriter"]) : nil, | |
| 19494 | 19729 | of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil, |
| 19495 | 19730 | oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil, |
| 19496 | 19731 | top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil, |
| @@ -19541,6 +19776,7 @@ class TopLevel < Dry::Struct | ||
| 19541 | 19776 | top_level_self: d.key?("Self") ? UnionSelf.from_dynamic!(d["Self"]) : nil, |
| 19542 | 19777 | self_1: d.key?("self") ? UnionSelfUnion.from_dynamic!(d["self"]) : nil, |
| 19543 | 19778 | sendable: d.key?("Sendable") ? UnionSendable.from_dynamic!(d["Sendable"]) : nil, |
| 19779 | + serialization_feature: d.key?("SerializationFeature") ? UnionSerializationFeature.from_dynamic!(d["SerializationFeature"]) : nil, | |
| 19544 | 19780 | serialize: d.key?("serialize") ? UnionSerialize.from_dynamic!(d["serialize"]) : nil, |
| 19545 | 19781 | serializer_provider: d.key?("SerializerProvider") ? UnionSerializerProvider.from_dynamic!(d["SerializerProvider"]) : nil, |
| 19546 | 19782 | set: d.key?("set") ? UnionSet.from_dynamic!(d["set"]) : nil, |
| @@ -19707,6 +19943,7 @@ class TopLevel < Dry::Struct | ||
| 19707 | 19943 | "del" => del&.to_dynamic, |
| 19708 | 19944 | "delegate" => delegate&.to_dynamic, |
| 19709 | 19945 | "delete" => delete&.to_dynamic, |
| 19946 | + "DeserializationFeature" => deserialization_feature&.to_dynamic, | |
| 19710 | 19947 | "dict" => dict&.to_dynamic, |
| 19711 | 19948 | "dictionary" => dictionary&.to_dynamic, |
| 19712 | 19949 | "didSet" => did_set&.to_dynamic, |
| @@ -19833,6 +20070,8 @@ class TopLevel < Dry::Struct | ||
| 19833 | 20070 | "number" => number&.to_dynamic, |
| 19834 | 20071 | "object" => object&.to_dynamic, |
| 19835 | 20072 | "ObjectMapper" => object_mapper&.to_dynamic, |
| 20073 | + "ObjectReader" => object_reader&.to_dynamic, | |
| 20074 | + "ObjectWriter" => object_writer&.to_dynamic, | |
| 19836 | 20075 | "of" => of&.to_dynamic, |
| 19837 | 20076 | "oneway" => oneway&.to_dynamic, |
| 19838 | 20077 | "open" => top_level_open&.to_dynamic, |
| @@ -19883,6 +20122,7 @@ class TopLevel < Dry::Struct | ||
| 19883 | 20122 | "Self" => top_level_self&.to_dynamic, |
| 19884 | 20123 | "self" => self_1&.to_dynamic, |
| 19885 | 20124 | "Sendable" => sendable&.to_dynamic, |
| 20125 | + "SerializationFeature" => serialization_feature&.to_dynamic, | |
| 19886 | 20126 | "serialize" => serialize&.to_dynamic, |
| 19887 | 20127 | "SerializerProvider" => serializer_provider&.to_dynamic, |
| 19888 | 20128 | "set" => set&.to_dynamic, |
Mschema-rustdefault / module_under_test.rs+60 −0
| @@ -214,6 +214,9 @@ pub struct TopLevel { | ||
| 214 | 214 | |
| 215 | 215 | pub delete: Option<UnionDelete>, |
| 216 | 216 | |
| 217 | + #[serde(rename = "DeserializationFeature")] | |
| 218 | + pub deserialization_feature: Option<UnionDeserializationFeature>, | |
| 219 | + | |
| 217 | 220 | pub dict: Option<UnionDict>, |
| 218 | 221 | |
| 219 | 222 | pub dictionary: Option<UnionDictionary>, |
| @@ -512,6 +515,12 @@ pub struct TopLevel { | ||
| 512 | 515 | #[serde(rename = "ObjectMapper")] |
| 513 | 516 | pub object_mapper: Option<UnionObjectMapper>, |
| 514 | 517 | |
| 518 | + #[serde(rename = "ObjectReader")] | |
| 519 | + pub object_reader: Option<UnionObjectReader>, | |
| 520 | + | |
| 521 | + #[serde(rename = "ObjectWriter")] | |
| 522 | + pub object_writer: Option<UnionObjectWriter>, | |
| 523 | + | |
| 515 | 524 | pub of: Option<UnionOf>, |
| 516 | 525 | |
| 517 | 526 | pub oneway: Option<UnionOneway>, |
| @@ -624,6 +633,9 @@ pub struct TopLevel { | ||
| 624 | 633 | #[serde(rename = "Sendable")] |
| 625 | 634 | pub sendable: Option<UnionSendable>, |
| 626 | 635 | |
| 636 | + #[serde(rename = "SerializationFeature")] | |
| 637 | + pub serialization_feature: Option<UnionSerializationFeature>, | |
| 638 | + | |
| 627 | 639 | pub serialize: Option<UnionSerialize>, |
| 628 | 640 | |
| 629 | 641 | #[serde(rename = "SerializerProvider")] |
| @@ -1628,6 +1640,18 @@ pub enum UnionDelete { | ||
| 1628 | 1640 | pub struct Delete { |
| 1629 | 1641 | } |
| 1630 | 1642 | |
| 1643 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1644 | +#[serde(untagged)] | |
| 1645 | +pub enum UnionDeserializationFeature { | |
| 1646 | + DeserializationFeature(DeserializationFeature), | |
| 1647 | + | |
| 1648 | + Double(f64), | |
| 1649 | +} | |
| 1650 | + | |
| 1651 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1652 | +pub struct DeserializationFeature { | |
| 1653 | +} | |
| 1654 | + | |
| 1631 | 1655 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1632 | 1656 | #[serde(untagged)] |
| 1633 | 1657 | pub enum UnionDict { |
| @@ -2996,6 +3020,30 @@ pub enum UnionObjectMapper { | ||
| 2996 | 3020 | pub struct ObjectMapper { |
| 2997 | 3021 | } |
| 2998 | 3022 | |
| 3023 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3024 | +#[serde(untagged)] | |
| 3025 | +pub enum UnionObjectReader { | |
| 3026 | + Double(f64), | |
| 3027 | + | |
| 3028 | + ObjectReader(ObjectReader), | |
| 3029 | +} | |
| 3030 | + | |
| 3031 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3032 | +pub struct ObjectReader { | |
| 3033 | +} | |
| 3034 | + | |
| 3035 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3036 | +#[serde(untagged)] | |
| 3037 | +pub enum UnionObjectWriter { | |
| 3038 | + Double(f64), | |
| 3039 | + | |
| 3040 | + ObjectWriter(ObjectWriter), | |
| 3041 | +} | |
| 3042 | + | |
| 3043 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3044 | +pub struct ObjectWriter { | |
| 3045 | +} | |
| 3046 | + | |
| 2999 | 3047 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 3000 | 3048 | #[serde(untagged)] |
| 3001 | 3049 | pub enum UnionOf { |
| @@ -3584,6 +3632,18 @@ pub enum UnionSendable { | ||
| 3584 | 3632 | pub struct Sendable { |
| 3585 | 3633 | } |
| 3586 | 3634 | |
| 3635 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3636 | +#[serde(untagged)] | |
| 3637 | +pub enum UnionSerializationFeature { | |
| 3638 | + Double(f64), | |
| 3639 | + | |
| 3640 | + SerializationFeature(SerializationFeature), | |
| 3641 | +} | |
| 3642 | + | |
| 3643 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3644 | +pub struct SerializationFeature { | |
| 3645 | +} | |
| 3646 | + | |
| 3587 | 3647 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 3588 | 3648 | #[serde(untagged)] |
| 3589 | 3649 | pub enum UnionSerialize { |
Mschema-schemadefault / TopLevel.schema+76 −0
| @@ -258,6 +258,9 @@ | ||
| 258 | 258 | "delete": { |
| 259 | 259 | "$ref": "#/definitions/UnionDelete" |
| 260 | 260 | }, |
| 261 | + "DeserializationFeature": { | |
| 262 | + "$ref": "#/definitions/UnionDeserializationFeature" | |
| 263 | + }, | |
| 261 | 264 | "dict": { |
| 262 | 265 | "$ref": "#/definitions/UnionDict" |
| 263 | 266 | }, |
| @@ -636,6 +639,12 @@ | ||
| 636 | 639 | "ObjectMapper": { |
| 637 | 640 | "$ref": "#/definitions/UnionObjectMapper" |
| 638 | 641 | }, |
| 642 | + "ObjectReader": { | |
| 643 | + "$ref": "#/definitions/UnionObjectReader" | |
| 644 | + }, | |
| 645 | + "ObjectWriter": { | |
| 646 | + "$ref": "#/definitions/UnionObjectWriter" | |
| 647 | + }, | |
| 639 | 648 | "of": { |
| 640 | 649 | "$ref": "#/definitions/UnionOf" |
| 641 | 650 | }, |
| @@ -786,6 +795,9 @@ | ||
| 786 | 795 | "Sendable": { |
| 787 | 796 | "$ref": "#/definitions/UnionSendable" |
| 788 | 797 | }, |
| 798 | + "SerializationFeature": { | |
| 799 | + "$ref": "#/definitions/UnionSerializationFeature" | |
| 800 | + }, | |
| 789 | 801 | "serialize": { |
| 790 | 802 | "$ref": "#/definitions/UnionSerialize" |
| 791 | 803 | }, |
| @@ -1084,6 +1096,11 @@ | ||
| 1084 | 1096 | "additionalProperties": false, |
| 1085 | 1097 | "title": "DecodingError" |
| 1086 | 1098 | }, |
| 1099 | + "DeserializationFeature": { | |
| 1100 | + "type": "object", | |
| 1101 | + "additionalProperties": false, | |
| 1102 | + "title": "DeserializationFeature" | |
| 1103 | + }, | |
| 1087 | 1104 | "Encoder": { |
| 1088 | 1105 | "type": "object", |
| 1089 | 1106 | "additionalProperties": false, |
| @@ -1229,6 +1246,16 @@ | ||
| 1229 | 1246 | "additionalProperties": false, |
| 1230 | 1247 | "title": "ObjectMapper" |
| 1231 | 1248 | }, |
| 1249 | + "ObjectReader": { | |
| 1250 | + "type": "object", | |
| 1251 | + "additionalProperties": false, | |
| 1252 | + "title": "ObjectReader" | |
| 1253 | + }, | |
| 1254 | + "ObjectWriter": { | |
| 1255 | + "type": "object", | |
| 1256 | + "additionalProperties": false, | |
| 1257 | + "title": "ObjectWriter" | |
| 1258 | + }, | |
| 1232 | 1259 | "Protocol": { |
| 1233 | 1260 | "type": "object", |
| 1234 | 1261 | "additionalProperties": false, |
| @@ -1254,6 +1281,11 @@ | ||
| 1254 | 1281 | "additionalProperties": false, |
| 1255 | 1282 | "title": "Sendable" |
| 1256 | 1283 | }, |
| 1284 | + "SerializationFeature": { | |
| 1285 | + "type": "object", | |
| 1286 | + "additionalProperties": false, | |
| 1287 | + "title": "SerializationFeature" | |
| 1288 | + }, | |
| 1257 | 1289 | "SerializerProvider": { |
| 1258 | 1290 | "type": "object", |
| 1259 | 1291 | "additionalProperties": false, |
| @@ -2834,6 +2866,17 @@ | ||
| 2834 | 2866 | ], |
| 2835 | 2867 | "title": "UnionDecodingError" |
| 2836 | 2868 | }, |
| 2869 | + "UnionDeserializationFeature": { | |
| 2870 | + "anyOf": [ | |
| 2871 | + { | |
| 2872 | + "$ref": "#/definitions/DeserializationFeature" | |
| 2873 | + }, | |
| 2874 | + { | |
| 2875 | + "type": "number" | |
| 2876 | + } | |
| 2877 | + ], | |
| 2878 | + "title": "UnionDeserializationFeature" | |
| 2879 | + }, | |
| 2837 | 2880 | "UnionEncoder": { |
| 2838 | 2881 | "anyOf": [ |
| 2839 | 2882 | { |
| @@ -3153,6 +3196,28 @@ | ||
| 3153 | 3196 | ], |
| 3154 | 3197 | "title": "UnionObjectMapper" |
| 3155 | 3198 | }, |
| 3199 | + "UnionObjectReader": { | |
| 3200 | + "anyOf": [ | |
| 3201 | + { | |
| 3202 | + "$ref": "#/definitions/ObjectReader" | |
| 3203 | + }, | |
| 3204 | + { | |
| 3205 | + "type": "number" | |
| 3206 | + } | |
| 3207 | + ], | |
| 3208 | + "title": "UnionObjectReader" | |
| 3209 | + }, | |
| 3210 | + "UnionObjectWriter": { | |
| 3211 | + "anyOf": [ | |
| 3212 | + { | |
| 3213 | + "$ref": "#/definitions/ObjectWriter" | |
| 3214 | + }, | |
| 3215 | + { | |
| 3216 | + "type": "number" | |
| 3217 | + } | |
| 3218 | + ], | |
| 3219 | + "title": "UnionObjectWriter" | |
| 3220 | + }, | |
| 3156 | 3221 | "UnionProtocol": { |
| 3157 | 3222 | "anyOf": [ |
| 3158 | 3223 | { |
| @@ -3208,6 +3273,17 @@ | ||
| 3208 | 3273 | ], |
| 3209 | 3274 | "title": "UnionSendable" |
| 3210 | 3275 | }, |
| 3276 | + "UnionSerializationFeature": { | |
| 3277 | + "anyOf": [ | |
| 3278 | + { | |
| 3279 | + "$ref": "#/definitions/SerializationFeature" | |
| 3280 | + }, | |
| 3281 | + { | |
| 3282 | + "type": "number" | |
| 3283 | + } | |
| 3284 | + ], | |
| 3285 | + "title": "UnionSerializationFeature" | |
| 3286 | + }, | |
| 3211 | 3287 | "UnionSerializerProvider": { |
| 3212 | 3288 | "anyOf": [ |
| 3213 | 3289 | { |
Mschema-swiftdefault / quicktype.swift+300 −0
| @@ -91,6 +91,7 @@ struct TopLevel: Codable { | ||
| 91 | 91 | let del: UnionDel? |
| 92 | 92 | let delegate: UnionDelegate? |
| 93 | 93 | let delete: UnionDelete? |
| 94 | + let deserializationFeature: UnionDeserializationFeature? | |
| 94 | 95 | let dict: UnionDict? |
| 95 | 96 | let dictionary: UnionDictionary? |
| 96 | 97 | let topLevelDidSet: UnionDidSet? |
| @@ -217,6 +218,8 @@ struct TopLevel: Codable { | ||
| 217 | 218 | let number: UnionNumber? |
| 218 | 219 | let object: UnionObject? |
| 219 | 220 | let objectMapper: UnionObjectMapper? |
| 221 | + let objectReader: UnionObjectReader? | |
| 222 | + let objectWriter: UnionObjectWriter? | |
| 220 | 223 | let of: UnionOf? |
| 221 | 224 | let oneway: UnionOneway? |
| 222 | 225 | let topLevelOpen: UnionOpen? |
| @@ -267,6 +270,7 @@ struct TopLevel: Codable { | ||
| 267 | 270 | let topLevelSelf: UnionSelf? |
| 268 | 271 | let purpleSelf: UnionSelfUnion? |
| 269 | 272 | let sendable: UnionSendable? |
| 273 | + let serializationFeature: UnionSerializationFeature? | |
| 270 | 274 | let serialize: UnionSerialize? |
| 271 | 275 | let serializerProvider: UnionSerializerProvider? |
| 272 | 276 | let topLevelSet: UnionSet? |
| @@ -426,6 +430,7 @@ struct TopLevel: Codable { | ||
| 426 | 430 | case del = "del" |
| 427 | 431 | case delegate = "delegate" |
| 428 | 432 | case delete = "delete" |
| 433 | + case deserializationFeature = "DeserializationFeature" | |
| 429 | 434 | case dict = "dict" |
| 430 | 435 | case dictionary = "dictionary" |
| 431 | 436 | case topLevelDidSet = "didSet" |
| @@ -552,6 +557,8 @@ struct TopLevel: Codable { | ||
| 552 | 557 | case number = "number" |
| 553 | 558 | case object = "object" |
| 554 | 559 | case objectMapper = "ObjectMapper" |
| 560 | + case objectReader = "ObjectReader" | |
| 561 | + case objectWriter = "ObjectWriter" | |
| 555 | 562 | case of = "of" |
| 556 | 563 | case oneway = "oneway" |
| 557 | 564 | case topLevelOpen = "open" |
| @@ -602,6 +609,7 @@ struct TopLevel: Codable { | ||
| 602 | 609 | case topLevelSelf = "Self" |
| 603 | 610 | case purpleSelf = "self" |
| 604 | 611 | case sendable = "Sendable" |
| 612 | + case serializationFeature = "SerializationFeature" | |
| 605 | 613 | case serialize = "serialize" |
| 606 | 614 | case serializerProvider = "SerializerProvider" |
| 607 | 615 | case topLevelSet = "set" |
| @@ -781,6 +789,7 @@ extension TopLevel { | ||
| 781 | 789 | del: UnionDel?? = nil, |
| 782 | 790 | delegate: UnionDelegate?? = nil, |
| 783 | 791 | delete: UnionDelete?? = nil, |
| 792 | + deserializationFeature: UnionDeserializationFeature?? = nil, | |
| 784 | 793 | dict: UnionDict?? = nil, |
| 785 | 794 | dictionary: UnionDictionary?? = nil, |
| 786 | 795 | topLevelDidSet: UnionDidSet?? = nil, |
| @@ -907,6 +916,8 @@ extension TopLevel { | ||
| 907 | 916 | number: UnionNumber?? = nil, |
| 908 | 917 | object: UnionObject?? = nil, |
| 909 | 918 | objectMapper: UnionObjectMapper?? = nil, |
| 919 | + objectReader: UnionObjectReader?? = nil, | |
| 920 | + objectWriter: UnionObjectWriter?? = nil, | |
| 910 | 921 | of: UnionOf?? = nil, |
| 911 | 922 | oneway: UnionOneway?? = nil, |
| 912 | 923 | topLevelOpen: UnionOpen?? = nil, |
| @@ -957,6 +968,7 @@ extension TopLevel { | ||
| 957 | 968 | topLevelSelf: UnionSelf?? = nil, |
| 958 | 969 | purpleSelf: UnionSelfUnion?? = nil, |
| 959 | 970 | sendable: UnionSendable?? = nil, |
| 971 | + serializationFeature: UnionSerializationFeature?? = nil, | |
| 960 | 972 | serialize: UnionSerialize?? = nil, |
| 961 | 973 | serializerProvider: UnionSerializerProvider?? = nil, |
| 962 | 974 | topLevelSet: UnionSet?? = nil, |
| @@ -1116,6 +1128,7 @@ extension TopLevel { | ||
| 1116 | 1128 | del: del ?? self.del, |
| 1117 | 1129 | delegate: delegate ?? self.delegate, |
| 1118 | 1130 | delete: delete ?? self.delete, |
| 1131 | + deserializationFeature: deserializationFeature ?? self.deserializationFeature, | |
| 1119 | 1132 | dict: dict ?? self.dict, |
| 1120 | 1133 | dictionary: dictionary ?? self.dictionary, |
| 1121 | 1134 | topLevelDidSet: topLevelDidSet ?? self.topLevelDidSet, |
| @@ -1242,6 +1255,8 @@ extension TopLevel { | ||
| 1242 | 1255 | number: number ?? self.number, |
| 1243 | 1256 | object: object ?? self.object, |
| 1244 | 1257 | objectMapper: objectMapper ?? self.objectMapper, |
| 1258 | + objectReader: objectReader ?? self.objectReader, | |
| 1259 | + objectWriter: objectWriter ?? self.objectWriter, | |
| 1245 | 1260 | of: of ?? self.of, |
| 1246 | 1261 | oneway: oneway ?? self.oneway, |
| 1247 | 1262 | topLevelOpen: topLevelOpen ?? self.topLevelOpen, |
| @@ -1292,6 +1307,7 @@ extension TopLevel { | ||
| 1292 | 1307 | topLevelSelf: topLevelSelf ?? self.topLevelSelf, |
| 1293 | 1308 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 1294 | 1309 | sendable: sendable ?? self.sendable, |
| 1310 | + serializationFeature: serializationFeature ?? self.serializationFeature, | |
| 1295 | 1311 | serialize: serialize ?? self.serialize, |
| 1296 | 1312 | serializerProvider: serializerProvider ?? self.serializerProvider, |
| 1297 | 1313 | topLevelSet: topLevelSet ?? self.topLevelSet, |
| @@ -5992,6 +6008,77 @@ extension Delete { | ||
| 5992 | 6008 | } |
| 5993 | 6009 | } |
| 5994 | 6010 | |
| 6011 | +enum UnionDeserializationFeature: Codable { | |
| 6012 | + case deserializationFeature(DeserializationFeature) | |
| 6013 | + case double(Double) | |
| 6014 | + | |
| 6015 | + init(from decoder: Decoder) throws { | |
| 6016 | + let container = try decoder.singleValueContainer() | |
| 6017 | + if let x = try? container.decode(Double.self) { | |
| 6018 | + self = .double(x) | |
| 6019 | + return | |
| 6020 | + } | |
| 6021 | + if let x = try? container.decode(DeserializationFeature.self) { | |
| 6022 | + self = .deserializationFeature(x) | |
| 6023 | + return | |
| 6024 | + } | |
| 6025 | + throw DecodingError.typeMismatch(UnionDeserializationFeature.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionDeserializationFeature")) | |
| 6026 | + } | |
| 6027 | + | |
| 6028 | + func encode(to encoder: Encoder) throws { | |
| 6029 | + var container = encoder.singleValueContainer() | |
| 6030 | + switch self { | |
| 6031 | + case .deserializationFeature(let x): | |
| 6032 | + try container.encode(x) | |
| 6033 | + case .double(let x): | |
| 6034 | + try container.encode(x) | |
| 6035 | + } | |
| 6036 | + } | |
| 6037 | +} | |
| 6038 | + | |
| 6039 | +// MARK: - DeserializationFeature | |
| 6040 | +struct DeserializationFeature: Codable { | |
| 6041 | + private enum K: String, CodingKey { case unused } | |
| 6042 | + init(from decoder: Decoder) throws { | |
| 6043 | + _ = try decoder.container(keyedBy: K.self) | |
| 6044 | + } | |
| 6045 | + init() { | |
| 6046 | + } | |
| 6047 | +} | |
| 6048 | + | |
| 6049 | +// MARK: DeserializationFeature convenience initializers and mutators | |
| 6050 | + | |
| 6051 | +extension DeserializationFeature { | |
| 6052 | + init(data: Data) throws { | |
| 6053 | + self = try newJSONDecoder().decode(DeserializationFeature.self, from: data) | |
| 6054 | + } | |
| 6055 | + | |
| 6056 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 6057 | + guard let data = json.data(using: encoding) else { | |
| 6058 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 6059 | + } | |
| 6060 | + try self.init(data: data) | |
| 6061 | + } | |
| 6062 | + | |
| 6063 | + init(fromURL url: URL) throws { | |
| 6064 | + try self.init(data: try Data(contentsOf: url)) | |
| 6065 | + } | |
| 6066 | + | |
| 6067 | + func with( | |
| 6068 | + ) -> DeserializationFeature { | |
| 6069 | + return DeserializationFeature( | |
| 6070 | + ) | |
| 6071 | + } | |
| 6072 | + | |
| 6073 | + func jsonData() throws -> Data { | |
| 6074 | + return try newJSONEncoder().encode(self) | |
| 6075 | + } | |
| 6076 | + | |
| 6077 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 6078 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 6079 | + } | |
| 6080 | +} | |
| 6081 | + | |
| 5995 | 6082 | enum UnionDict: Codable { |
| 5996 | 6083 | case dict(Dict) |
| 5997 | 6084 | case double(Double) |
| @@ -12666,6 +12753,148 @@ extension ObjectMapper { | ||
| 12666 | 12753 | } |
| 12667 | 12754 | } |
| 12668 | 12755 | |
| 12756 | +enum UnionObjectReader: Codable { | |
| 12757 | + case double(Double) | |
| 12758 | + case objectReader(ObjectReader) | |
| 12759 | + | |
| 12760 | + init(from decoder: Decoder) throws { | |
| 12761 | + let container = try decoder.singleValueContainer() | |
| 12762 | + if let x = try? container.decode(Double.self) { | |
| 12763 | + self = .double(x) | |
| 12764 | + return | |
| 12765 | + } | |
| 12766 | + if let x = try? container.decode(ObjectReader.self) { | |
| 12767 | + self = .objectReader(x) | |
| 12768 | + return | |
| 12769 | + } | |
| 12770 | + throw DecodingError.typeMismatch(UnionObjectReader.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionObjectReader")) | |
| 12771 | + } | |
| 12772 | + | |
| 12773 | + func encode(to encoder: Encoder) throws { | |
| 12774 | + var container = encoder.singleValueContainer() | |
| 12775 | + switch self { | |
| 12776 | + case .double(let x): | |
| 12777 | + try container.encode(x) | |
| 12778 | + case .objectReader(let x): | |
| 12779 | + try container.encode(x) | |
| 12780 | + } | |
| 12781 | + } | |
| 12782 | +} | |
| 12783 | + | |
| 12784 | +// MARK: - ObjectReader | |
| 12785 | +struct ObjectReader: Codable { | |
| 12786 | + private enum K: String, CodingKey { case unused } | |
| 12787 | + init(from decoder: Decoder) throws { | |
| 12788 | + _ = try decoder.container(keyedBy: K.self) | |
| 12789 | + } | |
| 12790 | + init() { | |
| 12791 | + } | |
| 12792 | +} | |
| 12793 | + | |
| 12794 | +// MARK: ObjectReader convenience initializers and mutators | |
| 12795 | + | |
| 12796 | +extension ObjectReader { | |
| 12797 | + init(data: Data) throws { | |
| 12798 | + self = try newJSONDecoder().decode(ObjectReader.self, from: data) | |
| 12799 | + } | |
| 12800 | + | |
| 12801 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12802 | + guard let data = json.data(using: encoding) else { | |
| 12803 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12804 | + } | |
| 12805 | + try self.init(data: data) | |
| 12806 | + } | |
| 12807 | + | |
| 12808 | + init(fromURL url: URL) throws { | |
| 12809 | + try self.init(data: try Data(contentsOf: url)) | |
| 12810 | + } | |
| 12811 | + | |
| 12812 | + func with( | |
| 12813 | + ) -> ObjectReader { | |
| 12814 | + return ObjectReader( | |
| 12815 | + ) | |
| 12816 | + } | |
| 12817 | + | |
| 12818 | + func jsonData() throws -> Data { | |
| 12819 | + return try newJSONEncoder().encode(self) | |
| 12820 | + } | |
| 12821 | + | |
| 12822 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12823 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12824 | + } | |
| 12825 | +} | |
| 12826 | + | |
| 12827 | +enum UnionObjectWriter: Codable { | |
| 12828 | + case double(Double) | |
| 12829 | + case objectWriter(ObjectWriter) | |
| 12830 | + | |
| 12831 | + init(from decoder: Decoder) throws { | |
| 12832 | + let container = try decoder.singleValueContainer() | |
| 12833 | + if let x = try? container.decode(Double.self) { | |
| 12834 | + self = .double(x) | |
| 12835 | + return | |
| 12836 | + } | |
| 12837 | + if let x = try? container.decode(ObjectWriter.self) { | |
| 12838 | + self = .objectWriter(x) | |
| 12839 | + return | |
| 12840 | + } | |
| 12841 | + throw DecodingError.typeMismatch(UnionObjectWriter.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionObjectWriter")) | |
| 12842 | + } | |
| 12843 | + | |
| 12844 | + func encode(to encoder: Encoder) throws { | |
| 12845 | + var container = encoder.singleValueContainer() | |
| 12846 | + switch self { | |
| 12847 | + case .double(let x): | |
| 12848 | + try container.encode(x) | |
| 12849 | + case .objectWriter(let x): | |
| 12850 | + try container.encode(x) | |
| 12851 | + } | |
| 12852 | + } | |
| 12853 | +} | |
| 12854 | + | |
| 12855 | +// MARK: - ObjectWriter | |
| 12856 | +struct ObjectWriter: Codable { | |
| 12857 | + private enum K: String, CodingKey { case unused } | |
| 12858 | + init(from decoder: Decoder) throws { | |
| 12859 | + _ = try decoder.container(keyedBy: K.self) | |
| 12860 | + } | |
| 12861 | + init() { | |
| 12862 | + } | |
| 12863 | +} | |
| 12864 | + | |
| 12865 | +// MARK: ObjectWriter convenience initializers and mutators | |
| 12866 | + | |
| 12867 | +extension ObjectWriter { | |
| 12868 | + init(data: Data) throws { | |
| 12869 | + self = try newJSONDecoder().decode(ObjectWriter.self, from: data) | |
| 12870 | + } | |
| 12871 | + | |
| 12872 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12873 | + guard let data = json.data(using: encoding) else { | |
| 12874 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12875 | + } | |
| 12876 | + try self.init(data: data) | |
| 12877 | + } | |
| 12878 | + | |
| 12879 | + init(fromURL url: URL) throws { | |
| 12880 | + try self.init(data: try Data(contentsOf: url)) | |
| 12881 | + } | |
| 12882 | + | |
| 12883 | + func with( | |
| 12884 | + ) -> ObjectWriter { | |
| 12885 | + return ObjectWriter( | |
| 12886 | + ) | |
| 12887 | + } | |
| 12888 | + | |
| 12889 | + func jsonData() throws -> Data { | |
| 12890 | + return try newJSONEncoder().encode(self) | |
| 12891 | + } | |
| 12892 | + | |
| 12893 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12894 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12895 | + } | |
| 12896 | +} | |
| 12897 | + | |
| 12669 | 12898 | enum UnionOf: Codable { |
| 12670 | 12899 | case double(Double) |
| 12671 | 12900 | case of(Of) |
| @@ -15364,6 +15593,77 @@ extension Sendable { | ||
| 15364 | 15593 | } |
| 15365 | 15594 | } |
| 15366 | 15595 | |
| 15596 | +enum UnionSerializationFeature: Codable { | |
| 15597 | + case double(Double) | |
| 15598 | + case serializationFeature(SerializationFeature) | |
| 15599 | + | |
| 15600 | + init(from decoder: Decoder) throws { | |
| 15601 | + let container = try decoder.singleValueContainer() | |
| 15602 | + if let x = try? container.decode(Double.self) { | |
| 15603 | + self = .double(x) | |
| 15604 | + return | |
| 15605 | + } | |
| 15606 | + if let x = try? container.decode(SerializationFeature.self) { | |
| 15607 | + self = .serializationFeature(x) | |
| 15608 | + return | |
| 15609 | + } | |
| 15610 | + throw DecodingError.typeMismatch(UnionSerializationFeature.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionSerializationFeature")) | |
| 15611 | + } | |
| 15612 | + | |
| 15613 | + func encode(to encoder: Encoder) throws { | |
| 15614 | + var container = encoder.singleValueContainer() | |
| 15615 | + switch self { | |
| 15616 | + case .double(let x): | |
| 15617 | + try container.encode(x) | |
| 15618 | + case .serializationFeature(let x): | |
| 15619 | + try container.encode(x) | |
| 15620 | + } | |
| 15621 | + } | |
| 15622 | +} | |
| 15623 | + | |
| 15624 | +// MARK: - SerializationFeature | |
| 15625 | +struct SerializationFeature: Codable { | |
| 15626 | + private enum K: String, CodingKey { case unused } | |
| 15627 | + init(from decoder: Decoder) throws { | |
| 15628 | + _ = try decoder.container(keyedBy: K.self) | |
| 15629 | + } | |
| 15630 | + init() { | |
| 15631 | + } | |
| 15632 | +} | |
| 15633 | + | |
| 15634 | +// MARK: SerializationFeature convenience initializers and mutators | |
| 15635 | + | |
| 15636 | +extension SerializationFeature { | |
| 15637 | + init(data: Data) throws { | |
| 15638 | + self = try newJSONDecoder().decode(SerializationFeature.self, from: data) | |
| 15639 | + } | |
| 15640 | + | |
| 15641 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15642 | + guard let data = json.data(using: encoding) else { | |
| 15643 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15644 | + } | |
| 15645 | + try self.init(data: data) | |
| 15646 | + } | |
| 15647 | + | |
| 15648 | + init(fromURL url: URL) throws { | |
| 15649 | + try self.init(data: try Data(contentsOf: url)) | |
| 15650 | + } | |
| 15651 | + | |
| 15652 | + func with( | |
| 15653 | + ) -> SerializationFeature { | |
| 15654 | + return SerializationFeature( | |
| 15655 | + ) | |
| 15656 | + } | |
| 15657 | + | |
| 15658 | + func jsonData() throws -> Data { | |
| 15659 | + return try newJSONEncoder().encode(self) | |
| 15660 | + } | |
| 15661 | + | |
| 15662 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15663 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15664 | + } | |
| 15665 | +} | |
| 15666 | + | |
| 15367 | 15667 | enum UnionSerialize: Codable { |
| 15368 | 15668 | case double(Double) |
| 15369 | 15669 | case serialize(Serialize) |
Mschema-typescript-effect-schemadefault / TopLevel.ts+16 −0
| @@ -244,6 +244,9 @@ export class SerializerProvider extends S.Class<SerializerProvider>("SerializerP | ||
| 244 | 244 | export class Serialize extends S.Class<Serialize>("Serialize")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 245 | 245 | ) {} |
| 246 | 246 | |
| 247 | +export class SerializationFeature extends S.Class<SerializationFeature>("SerializationFeature")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 248 | +) {} | |
| 249 | + | |
| 247 | 250 | export class Sendable extends S.Class<Sendable>("Sendable")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 248 | 251 | ) {} |
| 249 | 252 | |
| @@ -391,6 +394,12 @@ export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter | ||
| 391 | 394 | export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 392 | 395 | ) {} |
| 393 | 396 | |
| 397 | +export class ObjectWriter extends S.Class<ObjectWriter>("ObjectWriter")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 398 | +) {} | |
| 399 | + | |
| 400 | +export class ObjectReader extends S.Class<ObjectReader>("ObjectReader")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 401 | +) {} | |
| 402 | + | |
| 394 | 403 | export class ObjectMapper extends S.Class<ObjectMapper>("ObjectMapper")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 395 | 404 | ) {} |
| 396 | 405 | |
| @@ -763,6 +772,9 @@ export class Dictionary extends S.Class<Dictionary>("Dictionary")(S.Struct({}).p | ||
| 763 | 772 | export class Dict extends S.Class<Dict>("Dict")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 764 | 773 | ) {} |
| 765 | 774 | |
| 775 | +export class DeserializationFeature extends S.Class<DeserializationFeature>("DeserializationFeature")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 776 | +) {} | |
| 777 | + | |
| 766 | 778 | export class Delete extends S.Class<Delete>("Delete")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 767 | 779 | ) {} |
| 768 | 780 | |
| @@ -1082,6 +1094,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1082 | 1094 | "del": S.optional(S.Union(S.Number, Del)), |
| 1083 | 1095 | "delegate": S.optional(S.Union(S.Number, Delegate)), |
| 1084 | 1096 | "delete": S.optional(S.Union(S.Number, Delete)), |
| 1097 | + "DeserializationFeature": S.optional(S.Union(S.Number, DeserializationFeature)), | |
| 1085 | 1098 | "dict": S.optional(S.Union(S.Number, Dict)), |
| 1086 | 1099 | "dictionary": S.optional(S.Union(S.Number, Dictionary)), |
| 1087 | 1100 | "didSet": S.optional(S.Union(S.Number, DidSet)), |
| @@ -1208,6 +1221,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1208 | 1221 | "number": S.optional(S.Union(S.Number, Number)), |
| 1209 | 1222 | "object": S.optional(S.Union(S.Number, ObjectClass)), |
| 1210 | 1223 | "ObjectMapper": S.optional(S.Union(S.Number, ObjectMapper)), |
| 1224 | + "ObjectReader": S.optional(S.Union(S.Number, ObjectReader)), | |
| 1225 | + "ObjectWriter": S.optional(S.Union(S.Number, ObjectWriter)), | |
| 1211 | 1226 | "of": S.optional(S.Union(S.Number, Of)), |
| 1212 | 1227 | "oneway": S.optional(S.Union(S.Number, Oneway)), |
| 1213 | 1228 | "open": S.optional(S.Union(S.Number, Open)), |
| @@ -1258,6 +1273,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1258 | 1273 | "Self": S.optional(S.Union(S.Number, Self)), |
| 1259 | 1274 | "self": S.optional(S.Union(S.Number, SelfClass)), |
| 1260 | 1275 | "Sendable": S.optional(S.Union(S.Number, Sendable)), |
| 1276 | + "SerializationFeature": S.optional(S.Union(S.Number, SerializationFeature)), | |
| 1261 | 1277 | "serialize": S.optional(S.Union(S.Number, Serialize)), |
| 1262 | 1278 | "SerializerProvider": S.optional(S.Union(S.Number, SerializerProvider)), |
| 1263 | 1279 | "set": S.optional(S.Union(S.Number, Set)), |
Mschema-typescript-zoddefault / TopLevel.ts+20 −0
| @@ -313,6 +313,10 @@ export const DeleteSchema = z.object({ | ||
| 313 | 313 | }); |
| 314 | 314 | export type Delete = z.infer<typeof DeleteSchema>; |
| 315 | 315 | |
| 316 | +export const DeserializationFeatureSchema = z.object({ | |
| 317 | +}); | |
| 318 | +export type DeserializationFeature = z.infer<typeof DeserializationFeatureSchema>; | |
| 319 | + | |
| 316 | 320 | export const DictSchema = z.object({ |
| 317 | 321 | }); |
| 318 | 322 | export type Dict = z.infer<typeof DictSchema>; |
| @@ -809,6 +813,14 @@ export const ObjectMapperSchema = z.object({ | ||
| 809 | 813 | }); |
| 810 | 814 | export type ObjectMapper = z.infer<typeof ObjectMapperSchema>; |
| 811 | 815 | |
| 816 | +export const ObjectReaderSchema = z.object({ | |
| 817 | +}); | |
| 818 | +export type ObjectReader = z.infer<typeof ObjectReaderSchema>; | |
| 819 | + | |
| 820 | +export const ObjectWriterSchema = z.object({ | |
| 821 | +}); | |
| 822 | +export type ObjectWriter = z.infer<typeof ObjectWriterSchema>; | |
| 823 | + | |
| 812 | 824 | export const OfSchema = z.object({ |
| 813 | 825 | }); |
| 814 | 826 | export type Of = z.infer<typeof OfSchema>; |
| @@ -1005,6 +1017,10 @@ export const SendableSchema = z.object({ | ||
| 1005 | 1017 | }); |
| 1006 | 1018 | export type Sendable = z.infer<typeof SendableSchema>; |
| 1007 | 1019 | |
| 1020 | +export const SerializationFeatureSchema = z.object({ | |
| 1021 | +}); | |
| 1022 | +export type SerializationFeature = z.infer<typeof SerializationFeatureSchema>; | |
| 1023 | + | |
| 1008 | 1024 | export const SerializeSchema = z.object({ |
| 1009 | 1025 | }); |
| 1010 | 1026 | export type Serialize = z.infer<typeof SerializeSchema>; |
| @@ -1414,6 +1430,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1414 | 1430 | "del": z.union([DelSchema, z.number()]).optional(), |
| 1415 | 1431 | "delegate": z.union([DelegateSchema, z.number()]).optional(), |
| 1416 | 1432 | "delete": z.union([DeleteSchema, z.number()]).optional(), |
| 1433 | + "DeserializationFeature": z.union([DeserializationFeatureSchema, z.number()]).optional(), | |
| 1417 | 1434 | "dict": z.union([DictSchema, z.number()]).optional(), |
| 1418 | 1435 | "dictionary": z.union([DictionarySchema, z.number()]).optional(), |
| 1419 | 1436 | "didSet": z.union([DidSetSchema, z.number()]).optional(), |
| @@ -1540,6 +1557,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1540 | 1557 | "number": z.union([NumberSchema, z.number()]).optional(), |
| 1541 | 1558 | "object": z.union([ObjectClassSchema, z.number()]).optional(), |
| 1542 | 1559 | "ObjectMapper": z.union([ObjectMapperSchema, z.number()]).optional(), |
| 1560 | + "ObjectReader": z.union([ObjectReaderSchema, z.number()]).optional(), | |
| 1561 | + "ObjectWriter": z.union([ObjectWriterSchema, z.number()]).optional(), | |
| 1543 | 1562 | "of": z.union([OfSchema, z.number()]).optional(), |
| 1544 | 1563 | "oneway": z.union([OnewaySchema, z.number()]).optional(), |
| 1545 | 1564 | "open": z.union([OpenSchema, z.number()]).optional(), |
| @@ -1590,6 +1609,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1590 | 1609 | "Self": z.union([SelfSchema, z.number()]).optional(), |
| 1591 | 1610 | "self": z.union([SelfClassSchema, z.number()]).optional(), |
| 1592 | 1611 | "Sendable": z.union([SendableSchema, z.number()]).optional(), |
| 1612 | + "SerializationFeature": z.union([SerializationFeatureSchema, z.number()]).optional(), | |
| 1593 | 1613 | "serialize": z.union([SerializeSchema, z.number()]).optional(), |
| 1594 | 1614 | "SerializerProvider": z.union([SerializerProviderSchema, z.number()]).optional(), |
| 1595 | 1615 | "set": z.union([SetSchema, z.number()]).optional(), |
Mschema-typescriptdefault / TopLevel.ts+16 −0
| @@ -92,6 +92,7 @@ export interface TopLevel { | ||
| 92 | 92 | del?: UnionDel; |
| 93 | 93 | delegate?: UnionDelegate; |
| 94 | 94 | delete?: UnionDelete; |
| 95 | + DeserializationFeature?: UnionDeserializationFeature; | |
| 95 | 96 | dict?: UnionDict; |
| 96 | 97 | dictionary?: UnionDictionary; |
| 97 | 98 | didSet?: UnionDidSet; |
| @@ -218,6 +219,8 @@ export interface TopLevel { | ||
| 218 | 219 | number?: UnionNumber; |
| 219 | 220 | object?: UnionObject; |
| 220 | 221 | ObjectMapper?: UnionObjectMapper; |
| 222 | + ObjectReader?: UnionObjectReader; | |
| 223 | + ObjectWriter?: UnionObjectWriter; | |
| 221 | 224 | of?: UnionOf; |
| 222 | 225 | oneway?: UnionOneway; |
| 223 | 226 | open?: UnionOpen; |
| @@ -268,6 +271,7 @@ export interface TopLevel { | ||
| 268 | 271 | Self?: UnionSelf; |
| 269 | 272 | self?: UnionSelfUnion; |
| 270 | 273 | Sendable?: UnionSendable; |
| 274 | + SerializationFeature?: UnionSerializationFeature; | |
| 271 | 275 | serialize?: UnionSerialize; |
| 272 | 276 | SerializerProvider?: UnionSerializerProvider; |
| 273 | 277 | set?: UnionSet; |
| @@ -374,6 +378,8 @@ export type UnionDecoder = object | number; | ||
| 374 | 378 | |
| 375 | 379 | export type UnionDecodingError = object | number; |
| 376 | 380 | |
| 381 | +export type UnionDeserializationFeature = object | number; | |
| 382 | + | |
| 377 | 383 | export type UnionEncoder = object | number; |
| 378 | 384 | |
| 379 | 385 | export type UnionEnumValues = object | number; |
| @@ -432,6 +438,10 @@ export type UnionNone = object | number; | ||
| 432 | 438 | |
| 433 | 439 | export type UnionObjectMapper = object | number; |
| 434 | 440 | |
| 441 | +export type UnionObjectReader = object | number; | |
| 442 | + | |
| 443 | +export type UnionObjectWriter = object | number; | |
| 444 | + | |
| 435 | 445 | export type UnionProtocol = object | number; |
| 436 | 446 | |
| 437 | 447 | export type UnionRegExp = object | number; |
| @@ -442,6 +452,8 @@ export type UnionSelf = object | number; | ||
| 442 | 452 | |
| 443 | 453 | export type UnionSendable = object | number; |
| 444 | 454 | |
| 455 | +export type UnionSerializationFeature = object | number; | |
| 456 | + | |
| 445 | 457 | export type UnionSerializerProvider = object | number; |
| 446 | 458 | |
| 447 | 459 | export type UnionSimpleModule = object | number; |
| @@ -1280,6 +1292,7 @@ const typeMap: any = { | ||
| 1280 | 1292 | { json: "del", js: "del", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1281 | 1293 | { json: "delegate", js: "delegate", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1282 | 1294 | { json: "delete", js: "delete", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1295 | + { json: "DeserializationFeature", js: "DeserializationFeature", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1283 | 1296 | { json: "dict", js: "dict", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1284 | 1297 | { json: "dictionary", js: "dictionary", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1285 | 1298 | { json: "didSet", js: "didSet", typ: u(undefined, u(m("any"), 3.14)) }, |
| @@ -1406,6 +1419,8 @@ const typeMap: any = { | ||
| 1406 | 1419 | { json: "number", js: "number", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1407 | 1420 | { json: "object", js: "object", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1408 | 1421 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1422 | + { json: "ObjectReader", js: "ObjectReader", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1423 | + { json: "ObjectWriter", js: "ObjectWriter", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1409 | 1424 | { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1410 | 1425 | { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1411 | 1426 | { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) }, |
| @@ -1456,6 +1471,7 @@ const typeMap: any = { | ||
| 1456 | 1471 | { json: "Self", js: "Self", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1457 | 1472 | { json: "self", js: "self", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1458 | 1473 | { json: "Sendable", js: "Sendable", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1474 | + { json: "SerializationFeature", js: "SerializationFeature", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1459 | 1475 | { json: "serialize", js: "serialize", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1460 | 1476 | { json: "SerializerProvider", js: "SerializerProvider", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1461 | 1477 | { json: "set", js: "set", typ: u(undefined, u(m("any"), 3.14)) }, |
No generated files match these filters.