Test case
56 generated files · +9,962 −7,256test/inputs/json/priority/keywords.json
Mcjsondefault / TopLevel.c+665 −470
| @@ -10921,6 +10921,61 @@ void cJSON_DeleteList(struct List * x) { | ||
| 10921 | 10921 | } |
| 10922 | 10922 | } |
| 10923 | 10923 | |
| 10924 | +struct LocalDate * cJSON_ParseLocalDate(const char * s) { | |
| 10925 | + struct LocalDate * x = NULL; | |
| 10926 | + if (NULL != s) { | |
| 10927 | + cJSON * j = cJSON_Parse(s); | |
| 10928 | + if (NULL != j) { | |
| 10929 | + x = cJSON_GetLocalDateValue(j); | |
| 10930 | + cJSON_Delete(j); | |
| 10931 | + } | |
| 10932 | + } | |
| 10933 | + return x; | |
| 10934 | +} | |
| 10935 | + | |
| 10936 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) { | |
| 10937 | + struct LocalDate * x = NULL; | |
| 10938 | + if (NULL != j) { | |
| 10939 | + if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) { | |
| 10940 | + memset(x, 0, sizeof(struct LocalDate)); | |
| 10941 | + if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteLocalDate(x); return NULL; } | |
| 10942 | + if (cJSON_HasObjectItem(j, "LocalDate")) { | |
| 10943 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteLocalDate(x); return NULL; } | |
| 10944 | + x->local_date = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate")); | |
| 10945 | + } | |
| 10946 | + } | |
| 10947 | + } | |
| 10948 | + return x; | |
| 10949 | +} | |
| 10950 | + | |
| 10951 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) { | |
| 10952 | + cJSON * j = NULL; | |
| 10953 | + if (NULL != x) { | |
| 10954 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 10955 | + cJSON_AddNumberToObject(j, "LocalDate", x->local_date); | |
| 10956 | + } | |
| 10957 | + } | |
| 10958 | + return j; | |
| 10959 | +} | |
| 10960 | + | |
| 10961 | +char * cJSON_PrintLocalDate(const struct LocalDate * x) { | |
| 10962 | + char * s = NULL; | |
| 10963 | + if (NULL != x) { | |
| 10964 | + cJSON * j = cJSON_CreateLocalDate(x); | |
| 10965 | + if (NULL != j) { | |
| 10966 | + s = cJSON_Print(j); | |
| 10967 | + cJSON_Delete(j); | |
| 10968 | + } | |
| 10969 | + } | |
| 10970 | + return s; | |
| 10971 | +} | |
| 10972 | + | |
| 10973 | +void cJSON_DeleteLocalDate(struct LocalDate * x) { | |
| 10974 | + if (NULL != x) { | |
| 10975 | + cJSON_free(x); | |
| 10976 | + } | |
| 10977 | +} | |
| 10978 | + | |
| 10924 | 10979 | struct Locale * cJSON_ParseLocale(const char * s) { |
| 10925 | 10980 | struct Locale * x = NULL; |
| 10926 | 10981 | 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) { |
| @@ -12307,6 +12307,12 @@ struct Obj3 * cJSON_GetObj3Value(const cJSON * j) { | ||
| 12307 | 12307 | x->list = cJSON_GetListValue(cJSON_GetObjectItemCaseSensitive(j, "list")); |
| 12308 | 12308 | if (NULL == x->list) { cJSON_DeleteObj3(x); return NULL; } |
| 12309 | 12309 | } |
| 12310 | + if (!cJSON_HasObjectItem(j, "LocalDate")) { cJSON_DeleteObj3(x); return NULL; } | |
| 12311 | + if (cJSON_HasObjectItem(j, "LocalDate")) { | |
| 12312 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteObj3(x); return NULL; } | |
| 12313 | + x->local_date = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate")); | |
| 12314 | + if (NULL == x->local_date) { cJSON_DeleteObj3(x); return NULL; } | |
| 12315 | + } | |
| 12310 | 12316 | if (!cJSON_HasObjectItem(j, "Locale")) { cJSON_DeleteObj3(x); return NULL; } |
| 12311 | 12317 | if (cJSON_HasObjectItem(j, "Locale")) { |
| 12312 | 12318 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { 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; |
| @@ -12481,6 +12481,7 @@ cJSON * cJSON_CreateObj3(const struct Obj3 * x) { | ||
| 12481 | 12481 | cJSON_AddItemToObject(j, "left", cJSON_CreateLeft(x->left)); |
| 12482 | 12482 | cJSON_AddItemToObject(j, "let", cJSON_CreateLet(x->let)); |
| 12483 | 12483 | cJSON_AddItemToObject(j, "list", cJSON_CreateList(x->list)); |
| 12484 | + cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateLocalDate(x->local_date)); | |
| 12484 | 12485 | cJSON_AddItemToObject(j, "Locale", cJSON_CreateLocale(x->locale)); |
| 12485 | 12486 | cJSON_AddItemToObject(j, "lock", cJSON_CreateLock(x->lock)); |
| 12486 | 12487 | cJSON_AddItemToObject(j, "map", cJSON_CreateMap(x->map)); |
| @@ -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; |
| @@ -12652,6 +12652,9 @@ void cJSON_DeleteObj3(struct Obj3 * x) { | ||
| 12652 | 12652 | if (NULL != x->list) { |
| 12653 | 12653 | cJSON_DeleteList(x->list); |
| 12654 | 12654 | } |
| 12655 | + if (NULL != x->local_date) { | |
| 12656 | + cJSON_DeleteLocalDate(x->local_date); | |
| 12657 | + } | |
| 12655 | 12658 | if (NULL != x->locale) { |
| 12656 | 12659 | cJSON_DeleteLocale(x->locale); |
| 12657 | 12660 | } |
| @@ -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,6 +13266,61 @@ void cJSON_DeleteNumberClass(struct NumberClass * x) { | ||
| 13266 | 13266 | } |
| 13267 | 13267 | } |
| 13268 | 13268 | |
| 13269 | +struct Noexcept * cJSON_ParseNoexcept(const char * s) { | |
| 13270 | + struct Noexcept * x = NULL; | |
| 13271 | + if (NULL != s) { | |
| 13272 | + cJSON * j = cJSON_Parse(s); | |
| 13273 | + if (NULL != j) { | |
| 13274 | + x = cJSON_GetNoexceptValue(j); | |
| 13275 | + cJSON_Delete(j); | |
| 13276 | + } | |
| 13277 | + } | |
| 13278 | + return x; | |
| 13279 | +} | |
| 13280 | + | |
| 13281 | +struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j) { | |
| 13282 | + struct Noexcept * x = NULL; | |
| 13283 | + if (NULL != j) { | |
| 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 | + } | |
| 13291 | + } | |
| 13292 | + } | |
| 13293 | + return x; | |
| 13294 | +} | |
| 13295 | + | |
| 13296 | +cJSON * cJSON_CreateNoexcept(const struct Noexcept * x) { | |
| 13297 | + cJSON * j = NULL; | |
| 13298 | + if (NULL != x) { | |
| 13299 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 13300 | + cJSON_AddNumberToObject(j, "noexcept", x->noexcept_noexcept); | |
| 13301 | + } | |
| 13302 | + } | |
| 13303 | + return j; | |
| 13304 | +} | |
| 13305 | + | |
| 13306 | +char * cJSON_PrintNoexcept(const struct Noexcept * x) { | |
| 13307 | + char * s = NULL; | |
| 13308 | + if (NULL != x) { | |
| 13309 | + cJSON * j = cJSON_CreateNoexcept(x); | |
| 13310 | + if (NULL != j) { | |
| 13311 | + s = cJSON_Print(j); | |
| 13312 | + cJSON_Delete(j); | |
| 13313 | + } | |
| 13314 | + } | |
| 13315 | + return s; | |
| 13316 | +} | |
| 13317 | + | |
| 13318 | +void cJSON_DeleteNoexcept(struct Noexcept * x) { | |
| 13319 | + if (NULL != x) { | |
| 13320 | + cJSON_free(x); | |
| 13321 | + } | |
| 13322 | +} | |
| 13323 | + | |
| 13269 | 13324 | struct NoneClass * cJSON_ParseNoneClass(const char * s) { |
| 13270 | 13325 | struct NoneClass * x = NULL; |
| 13271 | 13326 | if (NULL != s) { |
| @@ -14421,6 +14476,116 @@ void cJSON_DeleteOf(struct Of * x) { | ||
| 14421 | 14476 | } |
| 14422 | 14477 | } |
| 14423 | 14478 | |
| 14479 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) { | |
| 14480 | + struct OffsetDateTime * x = NULL; | |
| 14481 | + if (NULL != s) { | |
| 14482 | + cJSON * j = cJSON_Parse(s); | |
| 14483 | + if (NULL != j) { | |
| 14484 | + x = cJSON_GetOffsetDateTimeValue(j); | |
| 14485 | + cJSON_Delete(j); | |
| 14486 | + } | |
| 14487 | + } | |
| 14488 | + return x; | |
| 14489 | +} | |
| 14490 | + | |
| 14491 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) { | |
| 14492 | + struct OffsetDateTime * x = NULL; | |
| 14493 | + if (NULL != j) { | |
| 14494 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) { | |
| 14495 | + memset(x, 0, sizeof(struct OffsetDateTime)); | |
| 14496 | + if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteOffsetDateTime(x); return NULL; } | |
| 14497 | + if (cJSON_HasObjectItem(j, "OffsetDateTime")) { | |
| 14498 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteOffsetDateTime(x); return NULL; } | |
| 14499 | + x->offset_date_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime")); | |
| 14500 | + } | |
| 14501 | + } | |
| 14502 | + } | |
| 14503 | + return x; | |
| 14504 | +} | |
| 14505 | + | |
| 14506 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) { | |
| 14507 | + cJSON * j = NULL; | |
| 14508 | + if (NULL != x) { | |
| 14509 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 14510 | + cJSON_AddNumberToObject(j, "OffsetDateTime", x->offset_date_time); | |
| 14511 | + } | |
| 14512 | + } | |
| 14513 | + return j; | |
| 14514 | +} | |
| 14515 | + | |
| 14516 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) { | |
| 14517 | + char * s = NULL; | |
| 14518 | + if (NULL != x) { | |
| 14519 | + cJSON * j = cJSON_CreateOffsetDateTime(x); | |
| 14520 | + if (NULL != j) { | |
| 14521 | + s = cJSON_Print(j); | |
| 14522 | + cJSON_Delete(j); | |
| 14523 | + } | |
| 14524 | + } | |
| 14525 | + return s; | |
| 14526 | +} | |
| 14527 | + | |
| 14528 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) { | |
| 14529 | + if (NULL != x) { | |
| 14530 | + cJSON_free(x); | |
| 14531 | + } | |
| 14532 | +} | |
| 14533 | + | |
| 14534 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s) { | |
| 14535 | + struct OffsetTime * x = NULL; | |
| 14536 | + if (NULL != s) { | |
| 14537 | + cJSON * j = cJSON_Parse(s); | |
| 14538 | + if (NULL != j) { | |
| 14539 | + x = cJSON_GetOffsetTimeValue(j); | |
| 14540 | + cJSON_Delete(j); | |
| 14541 | + } | |
| 14542 | + } | |
| 14543 | + return x; | |
| 14544 | +} | |
| 14545 | + | |
| 14546 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) { | |
| 14547 | + struct OffsetTime * x = NULL; | |
| 14548 | + if (NULL != j) { | |
| 14549 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) { | |
| 14550 | + memset(x, 0, sizeof(struct OffsetTime)); | |
| 14551 | + if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteOffsetTime(x); return NULL; } | |
| 14552 | + if (cJSON_HasObjectItem(j, "OffsetTime")) { | |
| 14553 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteOffsetTime(x); return NULL; } | |
| 14554 | + x->offset_time = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime")); | |
| 14555 | + } | |
| 14556 | + } | |
| 14557 | + } | |
| 14558 | + return x; | |
| 14559 | +} | |
| 14560 | + | |
| 14561 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) { | |
| 14562 | + cJSON * j = NULL; | |
| 14563 | + if (NULL != x) { | |
| 14564 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 14565 | + cJSON_AddNumberToObject(j, "OffsetTime", x->offset_time); | |
| 14566 | + } | |
| 14567 | + } | |
| 14568 | + return j; | |
| 14569 | +} | |
| 14570 | + | |
| 14571 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x) { | |
| 14572 | + char * s = NULL; | |
| 14573 | + if (NULL != x) { | |
| 14574 | + cJSON * j = cJSON_CreateOffsetTime(x); | |
| 14575 | + if (NULL != j) { | |
| 14576 | + s = cJSON_Print(j); | |
| 14577 | + cJSON_Delete(j); | |
| 14578 | + } | |
| 14579 | + } | |
| 14580 | + return s; | |
| 14581 | +} | |
| 14582 | + | |
| 14583 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x) { | |
| 14584 | + if (NULL != x) { | |
| 14585 | + cJSON_free(x); | |
| 14586 | + } | |
| 14587 | +} | |
| 14588 | + | |
| 14424 | 14589 | struct Oneway * cJSON_ParseOneway(const char * s) { |
| 14425 | 14590 | struct Oneway * x = NULL; |
| 14426 | 14591 | if (NULL != s) { |
| @@ -16084,192 +16249,27 @@ 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")); | |
| 16108 | - } | |
| 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")); | |
| 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 | 16273 | } |
| 16274 | 16274 | if (!cJSON_HasObjectItem(j, "noSuchMethod")) { cJSON_DeleteObj4(x); return NULL; } |
| 16275 | 16275 | if (cJSON_HasObjectItem(j, "noSuchMethod")) { |
| @@ -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; } |
| @@ -16457,6 +16463,18 @@ struct Obj4 * cJSON_GetObj4Value(const cJSON * j) { | ||
| 16457 | 16463 | x->of = cJSON_GetOfValue(cJSON_GetObjectItemCaseSensitive(j, "of")); |
| 16458 | 16464 | if (NULL == x->of) { cJSON_DeleteObj4(x); return NULL; } |
| 16459 | 16465 | } |
| 16466 | + if (!cJSON_HasObjectItem(j, "OffsetDateTime")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16467 | + if (cJSON_HasObjectItem(j, "OffsetDateTime")) { | |
| 16468 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16469 | + x->offset_date_time = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime")); | |
| 16470 | + if (NULL == x->offset_date_time) { cJSON_DeleteObj4(x); return NULL; } | |
| 16471 | + } | |
| 16472 | + if (!cJSON_HasObjectItem(j, "OffsetTime")) { cJSON_DeleteObj4(x); return NULL; } | |
| 16473 | + if (cJSON_HasObjectItem(j, "OffsetTime")) { | |
| 16474 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteObj4(x); return NULL; } | |
| 16475 | + x->offset_time = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime")); | |
| 16476 | + if (NULL == x->offset_time) { cJSON_DeleteObj4(x); return NULL; } | |
| 16477 | + } | |
| 16460 | 16478 | if (!cJSON_HasObjectItem(j, "oneway")) { cJSON_DeleteObj4(x); return NULL; } |
| 16461 | 16479 | if (cJSON_HasObjectItem(j, "oneway")) { |
| 16462 | 16480 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { 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)); |
| @@ -16696,6 +16697,8 @@ cJSON * cJSON_CreateObj4(const struct Obj4 * x) { | ||
| 16696 | 16697 | cJSON_AddItemToObject(j, "object", cJSON_CreateObjectClass(x->object)); |
| 16697 | 16698 | cJSON_AddItemToObject(j, "ObjectMapper", cJSON_CreateObjectMapper(x->object_mapper)); |
| 16698 | 16699 | cJSON_AddItemToObject(j, "of", cJSON_CreateOf(x->of)); |
| 16700 | + cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateOffsetDateTime(x->offset_date_time)); | |
| 16701 | + cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateOffsetTime(x->offset_time)); | |
| 16699 | 16702 | cJSON_AddItemToObject(j, "oneway", cJSON_CreateOneway(x->oneway)); |
| 16700 | 16703 | cJSON_AddItemToObject(j, "open", cJSON_CreateOpen(x->open)); |
| 16701 | 16704 | cJSON_AddItemToObject(j, "optional", cJSON_CreateOptional(x->optional)); |
| @@ -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 | } |
| @@ -16841,6 +16844,12 @@ void cJSON_DeleteObj4(struct Obj4 * x) { | ||
| 16841 | 16844 | if (NULL != x->of) { |
| 16842 | 16845 | cJSON_DeleteOf(x->of); |
| 16843 | 16846 | } |
| 16847 | + if (NULL != x->offset_date_time) { | |
| 16848 | + cJSON_DeleteOffsetDateTime(x->offset_date_time); | |
| 16849 | + } | |
| 16850 | + if (NULL != x->offset_time) { | |
| 16851 | + cJSON_DeleteOffsetTime(x->offset_time); | |
| 16852 | + } | |
| 16844 | 16853 | if (NULL != x->oneway) { |
| 16845 | 16854 | cJSON_DeleteOneway(x->oneway); |
| 16846 | 16855 | } |
| @@ -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 | } |
| @@ -18209,61 +18209,6 @@ void cJSON_DeleteUnion(struct Union * x) { | ||
| 18209 | 18209 | } |
| 18210 | 18210 | } |
| 18211 | 18211 | |
| 18212 | -struct Unsigned * cJSON_ParseUnsigned(const char * s) { | |
| 18213 | - struct Unsigned * x = NULL; | |
| 18214 | - if (NULL != s) { | |
| 18215 | - cJSON * j = cJSON_Parse(s); | |
| 18216 | - if (NULL != j) { | |
| 18217 | - x = cJSON_GetUnsignedValue(j); | |
| 18218 | - cJSON_Delete(j); | |
| 18219 | - } | |
| 18220 | - } | |
| 18221 | - return x; | |
| 18222 | -} | |
| 18223 | - | |
| 18224 | -struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j) { | |
| 18225 | - struct Unsigned * x = NULL; | |
| 18226 | - if (NULL != j) { | |
| 18227 | - if (NULL != (x = cJSON_malloc(sizeof(struct Unsigned)))) { | |
| 18228 | - memset(x, 0, sizeof(struct Unsigned)); | |
| 18229 | - if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteUnsigned(x); return NULL; } | |
| 18230 | - if (cJSON_HasObjectItem(j, "unsigned")) { | |
| 18231 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteUnsigned(x); return NULL; } | |
| 18232 | - x->unsigned_unsigned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned")); | |
| 18233 | - } | |
| 18234 | - } | |
| 18235 | - } | |
| 18236 | - return x; | |
| 18237 | -} | |
| 18238 | - | |
| 18239 | -cJSON * cJSON_CreateUnsigned(const struct Unsigned * x) { | |
| 18240 | - cJSON * j = NULL; | |
| 18241 | - if (NULL != x) { | |
| 18242 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 18243 | - cJSON_AddNumberToObject(j, "unsigned", x->unsigned_unsigned); | |
| 18244 | - } | |
| 18245 | - } | |
| 18246 | - return j; | |
| 18247 | -} | |
| 18248 | - | |
| 18249 | -char * cJSON_PrintUnsigned(const struct Unsigned * x) { | |
| 18250 | - char * s = NULL; | |
| 18251 | - if (NULL != x) { | |
| 18252 | - cJSON * j = cJSON_CreateUnsigned(x); | |
| 18253 | - if (NULL != j) { | |
| 18254 | - s = cJSON_Print(j); | |
| 18255 | - cJSON_Delete(j); | |
| 18256 | - } | |
| 18257 | - } | |
| 18258 | - return s; | |
| 18259 | -} | |
| 18260 | - | |
| 18261 | -void cJSON_DeleteUnsigned(struct Unsigned * x) { | |
| 18262 | - if (NULL != x) { | |
| 18263 | - cJSON_free(x); | |
| 18264 | - } | |
| 18265 | -} | |
| 18266 | - | |
| 18267 | 18212 | struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s) { |
| 18268 | 18213 | struct PrimitiveKind * x = NULL; |
| 18269 | 18214 | if (NULL != s) { |
| @@ -18374,20 +18319,185 @@ 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; | |
| 18336 | + if (NULL != j) { | |
| 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")); | |
| 18343 | + } | |
| 18344 | + } | |
| 18345 | + } | |
| 18346 | + return x; | |
| 18347 | +} | |
| 18348 | + | |
| 18349 | +cJSON * cJSON_CreateSealed(const struct Sealed * x) { | |
| 18350 | + cJSON * j = NULL; | |
| 18351 | + if (NULL != x) { | |
| 18352 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18353 | + cJSON_AddNumberToObject(j, "sealed", x->sealed); | |
| 18354 | + } | |
| 18355 | + } | |
| 18356 | + return j; | |
| 18357 | +} | |
| 18358 | + | |
| 18359 | +char * cJSON_PrintSealed(const struct Sealed * x) { | |
| 18360 | + char * s = NULL; | |
| 18361 | + if (NULL != x) { | |
| 18362 | + cJSON * j = cJSON_CreateSealed(x); | |
| 18363 | + if (NULL != j) { | |
| 18364 | + s = cJSON_Print(j); | |
| 18365 | + cJSON_Delete(j); | |
| 18366 | + } | |
| 18367 | + } | |
| 18368 | + return s; | |
| 18369 | +} | |
| 18370 | + | |
| 18371 | +void cJSON_DeleteSealed(struct Sealed * x) { | |
| 18372 | + if (NULL != x) { | |
| 18373 | + cJSON_free(x); | |
| 18374 | + } | |
| 18375 | +} | |
| 18376 | + | |
| 18377 | +struct Sel * cJSON_ParseSel(const char * s) { | |
| 18378 | + struct Sel * x = NULL; | |
| 18379 | + if (NULL != s) { | |
| 18380 | + cJSON * j = cJSON_Parse(s); | |
| 18381 | + if (NULL != j) { | |
| 18382 | + x = cJSON_GetSelValue(j); | |
| 18383 | + cJSON_Delete(j); | |
| 18384 | + } | |
| 18385 | + } | |
| 18386 | + return x; | |
| 18387 | +} | |
| 18388 | + | |
| 18389 | +struct Sel * cJSON_GetSelValue(const cJSON * j) { | |
| 18390 | + struct Sel * x = NULL; | |
| 18391 | + if (NULL != j) { | |
| 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")); | |
| 18398 | + } | |
| 18399 | + } | |
| 18400 | + } | |
| 18401 | + return x; | |
| 18402 | +} | |
| 18403 | + | |
| 18404 | +cJSON * cJSON_CreateSel(const struct Sel * x) { | |
| 18405 | + cJSON * j = NULL; | |
| 18406 | + if (NULL != x) { | |
| 18407 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18408 | + cJSON_AddNumberToObject(j, "SEL", x->sel); | |
| 18409 | + } | |
| 18410 | + } | |
| 18411 | + return j; | |
| 18412 | +} | |
| 18413 | + | |
| 18414 | +char * cJSON_PrintSel(const struct Sel * x) { | |
| 18415 | + char * s = NULL; | |
| 18416 | + if (NULL != x) { | |
| 18417 | + cJSON * j = cJSON_CreateSel(x); | |
| 18418 | + if (NULL != j) { | |
| 18419 | + s = cJSON_Print(j); | |
| 18420 | + cJSON_Delete(j); | |
| 18421 | + } | |
| 18422 | + } | |
| 18423 | + return s; | |
| 18424 | +} | |
| 18425 | + | |
| 18426 | +void cJSON_DeleteSel(struct Sel * x) { | |
| 18427 | + if (NULL != x) { | |
| 18428 | + cJSON_free(x); | |
| 18429 | + } | |
| 18430 | +} | |
| 18431 | + | |
| 18432 | +struct Select * cJSON_ParseSelect(const char * s) { | |
| 18433 | + struct Select * x = NULL; | |
| 18434 | + if (NULL != s) { | |
| 18435 | + cJSON * j = cJSON_Parse(s); | |
| 18436 | + if (NULL != j) { | |
| 18437 | + x = cJSON_GetSelectValue(j); | |
| 18438 | + cJSON_Delete(j); | |
| 18439 | + } | |
| 18440 | + } | |
| 18441 | + return x; | |
| 18442 | +} | |
| 18443 | + | |
| 18444 | +struct Select * cJSON_GetSelectValue(const cJSON * j) { | |
| 18445 | + struct Select * x = NULL; | |
| 18446 | + if (NULL != j) { | |
| 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")); | |
| 18453 | + } | |
| 18454 | + } | |
| 18455 | + } | |
| 18456 | + return x; | |
| 18457 | +} | |
| 18458 | + | |
| 18459 | +cJSON * cJSON_CreateSelect(const struct Select * x) { | |
| 18460 | + cJSON * j = NULL; | |
| 18461 | + if (NULL != x) { | |
| 18462 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 18463 | + cJSON_AddNumberToObject(j, "select", x->select); | |
| 18464 | + } | |
| 18465 | + } | |
| 18466 | + return j; | |
| 18467 | +} | |
| 18468 | + | |
| 18469 | +char * cJSON_PrintSelect(const struct Select * x) { | |
| 18470 | + char * s = NULL; | |
| 18471 | + if (NULL != x) { | |
| 18472 | + cJSON * j = cJSON_CreateSelect(x); | |
| 18473 | + if (NULL != j) { | |
| 18474 | + s = cJSON_Print(j); | |
| 18475 | + cJSON_Delete(j); | |
| 18476 | + } | |
| 18477 | + } | |
| 18478 | + return s; | |
| 18479 | +} | |
| 18480 | + | |
| 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; | |
| 18391 | 18501 | if (NULL != j) { |
| 18392 | 18502 | if (NULL != (x = cJSON_malloc(sizeof(struct Self)))) { |
| 18393 | 18503 | memset(x, 0, sizeof(struct Self)); |
| @@ -20299,61 +20409,6 @@ void cJSON_DeleteUnowned(struct Unowned * x) { | ||
| 20299 | 20409 | } |
| 20300 | 20410 | } |
| 20301 | 20411 | |
| 20302 | -struct Unsafe * cJSON_ParseUnsafe(const char * s) { | |
| 20303 | - struct Unsafe * x = NULL; | |
| 20304 | - if (NULL != s) { | |
| 20305 | - cJSON * j = cJSON_Parse(s); | |
| 20306 | - if (NULL != j) { | |
| 20307 | - x = cJSON_GetUnsafeValue(j); | |
| 20308 | - cJSON_Delete(j); | |
| 20309 | - } | |
| 20310 | - } | |
| 20311 | - return x; | |
| 20312 | -} | |
| 20313 | - | |
| 20314 | -struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) { | |
| 20315 | - struct Unsafe * x = NULL; | |
| 20316 | - if (NULL != j) { | |
| 20317 | - if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) { | |
| 20318 | - memset(x, 0, sizeof(struct Unsafe)); | |
| 20319 | - if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 20320 | - if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 20321 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 20322 | - x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 20323 | - } | |
| 20324 | - } | |
| 20325 | - } | |
| 20326 | - return x; | |
| 20327 | -} | |
| 20328 | - | |
| 20329 | -cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) { | |
| 20330 | - cJSON * j = NULL; | |
| 20331 | - if (NULL != x) { | |
| 20332 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20333 | - cJSON_AddNumberToObject(j, "unsafe", x->unsafe); | |
| 20334 | - } | |
| 20335 | - } | |
| 20336 | - return j; | |
| 20337 | -} | |
| 20338 | - | |
| 20339 | -char * cJSON_PrintUnsafe(const struct Unsafe * x) { | |
| 20340 | - char * s = NULL; | |
| 20341 | - if (NULL != x) { | |
| 20342 | - cJSON * j = cJSON_CreateUnsafe(x); | |
| 20343 | - if (NULL != j) { | |
| 20344 | - s = cJSON_Print(j); | |
| 20345 | - cJSON_Delete(j); | |
| 20346 | - } | |
| 20347 | - } | |
| 20348 | - return s; | |
| 20349 | -} | |
| 20350 | - | |
| 20351 | -void cJSON_DeleteUnsafe(struct Unsafe * x) { | |
| 20352 | - if (NULL != x) { | |
| 20353 | - cJSON_free(x); | |
| 20354 | - } | |
| 20355 | -} | |
| 20356 | - | |
| 20357 | 20412 | struct UseSerializers * cJSON_ParseUseSerializers(const char * s) { |
| 20358 | 20413 | struct UseSerializers * x = NULL; |
| 20359 | 20414 | if (NULL != s) { |
| @@ -20409,61 +20464,6 @@ void cJSON_DeleteUseSerializers(struct UseSerializers * x) { | ||
| 20409 | 20464 | } |
| 20410 | 20465 | } |
| 20411 | 20466 | |
| 20412 | -struct Ushort * cJSON_ParseUshort(const char * s) { | |
| 20413 | - struct Ushort * x = NULL; | |
| 20414 | - if (NULL != s) { | |
| 20415 | - cJSON * j = cJSON_Parse(s); | |
| 20416 | - if (NULL != j) { | |
| 20417 | - x = cJSON_GetUshortValue(j); | |
| 20418 | - cJSON_Delete(j); | |
| 20419 | - } | |
| 20420 | - } | |
| 20421 | - return x; | |
| 20422 | -} | |
| 20423 | - | |
| 20424 | -struct Ushort * cJSON_GetUshortValue(const cJSON * j) { | |
| 20425 | - struct Ushort * x = NULL; | |
| 20426 | - if (NULL != j) { | |
| 20427 | - if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) { | |
| 20428 | - memset(x, 0, sizeof(struct Ushort)); | |
| 20429 | - if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; } | |
| 20430 | - if (cJSON_HasObjectItem(j, "ushort")) { | |
| 20431 | - if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; } | |
| 20432 | - x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort")); | |
| 20433 | - } | |
| 20434 | - } | |
| 20435 | - } | |
| 20436 | - return x; | |
| 20437 | -} | |
| 20438 | - | |
| 20439 | -cJSON * cJSON_CreateUshort(const struct Ushort * x) { | |
| 20440 | - cJSON * j = NULL; | |
| 20441 | - if (NULL != x) { | |
| 20442 | - if (NULL != (j = cJSON_CreateObject())) { | |
| 20443 | - cJSON_AddNumberToObject(j, "ushort", x->ushort); | |
| 20444 | - } | |
| 20445 | - } | |
| 20446 | - return j; | |
| 20447 | -} | |
| 20448 | - | |
| 20449 | -char * cJSON_PrintUshort(const struct Ushort * x) { | |
| 20450 | - char * s = NULL; | |
| 20451 | - if (NULL != x) { | |
| 20452 | - cJSON * j = cJSON_CreateUshort(x); | |
| 20453 | - if (NULL != j) { | |
| 20454 | - s = cJSON_Print(j); | |
| 20455 | - cJSON_Delete(j); | |
| 20456 | - } | |
| 20457 | - } | |
| 20458 | - return s; | |
| 20459 | -} | |
| 20460 | - | |
| 20461 | -void cJSON_DeleteUshort(struct Ushort * x) { | |
| 20462 | - if (NULL != x) { | |
| 20463 | - cJSON_free(x); | |
| 20464 | - } | |
| 20465 | -} | |
| 20466 | - | |
| 20467 | 20467 | struct Obj5 * cJSON_ParseObj5(const char * s) { |
| 20468 | 20468 | struct Obj5 * x = NULL; |
| 20469 | 20469 | if (NULL != s) { |
| @@ -20624,12 +20624,6 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20624 | 20624 | x->obj5_union = cJSON_GetUnionValue(cJSON_GetObjectItemCaseSensitive(j, "union")); |
| 20625 | 20625 | if (NULL == x->obj5_union) { cJSON_DeleteObj5(x); return NULL; } |
| 20626 | 20626 | } |
| 20627 | - if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20628 | - if (cJSON_HasObjectItem(j, "unsigned")) { | |
| 20629 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20630 | - x->obj5_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned")); | |
| 20631 | - if (NULL == x->obj5_unsigned) { cJSON_DeleteObj5(x); return NULL; } | |
| 20632 | - } | |
| 20633 | 20627 | if (!cJSON_HasObjectItem(j, "PrimitiveKind")) { cJSON_DeleteObj5(x); return NULL; } |
| 20634 | 20628 | if (cJSON_HasObjectItem(j, "PrimitiveKind")) { |
| 20635 | 20629 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "PrimitiveKind"))) { cJSON_DeleteObj5(x); return NULL; } |
| @@ -20642,6 +20636,24 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 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; } |
| @@ -20852,24 +20864,12 @@ struct Obj5 * cJSON_GetObj5Value(const cJSON * j) { | ||
| 20852 | 20864 | x->unowned = cJSON_GetUnownedValue(cJSON_GetObjectItemCaseSensitive(j, "unowned")); |
| 20853 | 20865 | if (NULL == x->unowned) { cJSON_DeleteObj5(x); return NULL; } |
| 20854 | 20866 | } |
| 20855 | - if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20856 | - if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 20857 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20858 | - x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 20859 | - if (NULL == x->unsafe) { cJSON_DeleteObj5(x); return NULL; } | |
| 20860 | - } | |
| 20861 | 20867 | if (!cJSON_HasObjectItem(j, "UseSerializers")) { cJSON_DeleteObj5(x); return NULL; } |
| 20862 | 20868 | if (cJSON_HasObjectItem(j, "UseSerializers")) { |
| 20863 | 20869 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers"))) { cJSON_DeleteObj5(x); return NULL; } |
| 20864 | 20870 | x->use_serializers = cJSON_GetUseSerializersValue(cJSON_GetObjectItemCaseSensitive(j, "UseSerializers")); |
| 20865 | 20871 | if (NULL == x->use_serializers) { cJSON_DeleteObj5(x); return NULL; } |
| 20866 | 20872 | } |
| 20867 | - if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj5(x); return NULL; } | |
| 20868 | - if (cJSON_HasObjectItem(j, "ushort")) { | |
| 20869 | - if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj5(x); return NULL; } | |
| 20870 | - x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort")); | |
| 20871 | - if (NULL == x->ushort) { cJSON_DeleteObj5(x); return NULL; } | |
| 20872 | - } | |
| 20873 | 20873 | } |
| 20874 | 20874 | } |
| 20875 | 20875 | return x; |
| @@ -20903,9 +20903,11 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) { | ||
| 20903 | 20903 | cJSON_AddItemToObject(j, "typename", cJSON_CreateTypename(x->obj5_typename)); |
| 20904 | 20904 | cJSON_AddItemToObject(j, "typeof", cJSON_CreateTypeof(x->obj5_typeof)); |
| 20905 | 20905 | cJSON_AddItemToObject(j, "union", cJSON_CreateUnion(x->obj5_union)); |
| 20906 | - cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj5_unsigned)); | |
| 20907 | 20906 | cJSON_AddItemToObject(j, "PrimitiveKind", cJSON_CreatePrimitiveKind(x->primitive_kind)); |
| 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)); |
| 20911 | 20913 | cJSON_AddItemToObject(j, "SerialDescriptor", cJSON_CreateSerialDescriptor(x->serial_descriptor)); |
| @@ -20941,9 +20943,7 @@ cJSON * cJSON_CreateObj5(const struct Obj5 * x) { | ||
| 20941 | 20943 | cJSON_AddItemToObject(j, "unchecked", cJSON_CreateUnchecked(x->unchecked)); |
| 20942 | 20944 | cJSON_AddItemToObject(j, "undefined", cJSON_CreateUndefined(x->undefined)); |
| 20943 | 20945 | cJSON_AddItemToObject(j, "unowned", cJSON_CreateUnowned(x->unowned)); |
| 20944 | - cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe)); | |
| 20945 | 20946 | cJSON_AddItemToObject(j, "UseSerializers", cJSON_CreateUseSerializers(x->use_serializers)); |
| 20946 | - cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort)); | |
| 20947 | 20947 | } |
| 20948 | 20948 | } |
| 20949 | 20949 | return j; |
| @@ -21032,15 +21032,21 @@ void cJSON_DeleteObj5(struct Obj5 * x) { | ||
| 21032 | 21032 | if (NULL != x->obj5_union) { |
| 21033 | 21033 | cJSON_DeleteUnion(x->obj5_union); |
| 21034 | 21034 | } |
| 21035 | - if (NULL != x->obj5_unsigned) { | |
| 21036 | - cJSON_DeleteUnsigned(x->obj5_unsigned); | |
| 21037 | - } | |
| 21038 | 21035 | if (NULL != x->primitive_kind) { |
| 21039 | 21036 | cJSON_DeletePrimitiveKind(x->primitive_kind); |
| 21040 | 21037 | } |
| 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 | } |
| @@ -21146,15 +21152,64 @@ void cJSON_DeleteObj5(struct Obj5 * x) { | ||
| 21146 | 21152 | if (NULL != x->unowned) { |
| 21147 | 21153 | cJSON_DeleteUnowned(x->unowned); |
| 21148 | 21154 | } |
| 21149 | - if (NULL != x->unsafe) { | |
| 21150 | - cJSON_DeleteUnsafe(x->unsafe); | |
| 21151 | - } | |
| 21152 | 21155 | if (NULL != x->use_serializers) { |
| 21153 | 21156 | cJSON_DeleteUseSerializers(x->use_serializers); |
| 21154 | 21157 | } |
| 21155 | - if (NULL != x->ushort) { | |
| 21156 | - cJSON_DeleteUshort(x->ushort); | |
| 21158 | + cJSON_free(x); | |
| 21159 | + } | |
| 21160 | +} | |
| 21161 | + | |
| 21162 | +struct Unsigned * cJSON_ParseUnsigned(const char * s) { | |
| 21163 | + struct Unsigned * x = NULL; | |
| 21164 | + if (NULL != s) { | |
| 21165 | + cJSON * j = cJSON_Parse(s); | |
| 21166 | + if (NULL != j) { | |
| 21167 | + x = cJSON_GetUnsignedValue(j); | |
| 21168 | + cJSON_Delete(j); | |
| 21157 | 21169 | } |
| 21170 | + } | |
| 21171 | + return x; | |
| 21172 | +} | |
| 21173 | + | |
| 21174 | +struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j) { | |
| 21175 | + struct Unsigned * x = NULL; | |
| 21176 | + if (NULL != j) { | |
| 21177 | + if (NULL != (x = cJSON_malloc(sizeof(struct Unsigned)))) { | |
| 21178 | + memset(x, 0, sizeof(struct Unsigned)); | |
| 21179 | + if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteUnsigned(x); return NULL; } | |
| 21180 | + if (cJSON_HasObjectItem(j, "unsigned")) { | |
| 21181 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteUnsigned(x); return NULL; } | |
| 21182 | + x->unsigned_unsigned = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned")); | |
| 21183 | + } | |
| 21184 | + } | |
| 21185 | + } | |
| 21186 | + return x; | |
| 21187 | +} | |
| 21188 | + | |
| 21189 | +cJSON * cJSON_CreateUnsigned(const struct Unsigned * x) { | |
| 21190 | + cJSON * j = NULL; | |
| 21191 | + if (NULL != x) { | |
| 21192 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21193 | + cJSON_AddNumberToObject(j, "unsigned", x->unsigned_unsigned); | |
| 21194 | + } | |
| 21195 | + } | |
| 21196 | + return j; | |
| 21197 | +} | |
| 21198 | + | |
| 21199 | +char * cJSON_PrintUnsigned(const struct Unsigned * x) { | |
| 21200 | + char * s = NULL; | |
| 21201 | + if (NULL != x) { | |
| 21202 | + cJSON * j = cJSON_CreateUnsigned(x); | |
| 21203 | + if (NULL != j) { | |
| 21204 | + s = cJSON_Print(j); | |
| 21205 | + cJSON_Delete(j); | |
| 21206 | + } | |
| 21207 | + } | |
| 21208 | + return s; | |
| 21209 | +} | |
| 21210 | + | |
| 21211 | +void cJSON_DeleteUnsigned(struct Unsigned * x) { | |
| 21212 | + if (NULL != x) { | |
| 21158 | 21213 | cJSON_free(x); |
| 21159 | 21214 | } |
| 21160 | 21215 | } |
| @@ -21599,6 +21654,116 @@ void cJSON_DeleteXorEq(struct XorEq * x) { | ||
| 21599 | 21654 | } |
| 21600 | 21655 | } |
| 21601 | 21656 | |
| 21657 | +struct Unsafe * cJSON_ParseUnsafe(const char * s) { | |
| 21658 | + struct Unsafe * x = NULL; | |
| 21659 | + if (NULL != s) { | |
| 21660 | + cJSON * j = cJSON_Parse(s); | |
| 21661 | + if (NULL != j) { | |
| 21662 | + x = cJSON_GetUnsafeValue(j); | |
| 21663 | + cJSON_Delete(j); | |
| 21664 | + } | |
| 21665 | + } | |
| 21666 | + return x; | |
| 21667 | +} | |
| 21668 | + | |
| 21669 | +struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j) { | |
| 21670 | + struct Unsafe * x = NULL; | |
| 21671 | + if (NULL != j) { | |
| 21672 | + if (NULL != (x = cJSON_malloc(sizeof(struct Unsafe)))) { | |
| 21673 | + memset(x, 0, sizeof(struct Unsafe)); | |
| 21674 | + if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 21675 | + if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 21676 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteUnsafe(x); return NULL; } | |
| 21677 | + x->unsafe = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 21678 | + } | |
| 21679 | + } | |
| 21680 | + } | |
| 21681 | + return x; | |
| 21682 | +} | |
| 21683 | + | |
| 21684 | +cJSON * cJSON_CreateUnsafe(const struct Unsafe * x) { | |
| 21685 | + cJSON * j = NULL; | |
| 21686 | + if (NULL != x) { | |
| 21687 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21688 | + cJSON_AddNumberToObject(j, "unsafe", x->unsafe); | |
| 21689 | + } | |
| 21690 | + } | |
| 21691 | + return j; | |
| 21692 | +} | |
| 21693 | + | |
| 21694 | +char * cJSON_PrintUnsafe(const struct Unsafe * x) { | |
| 21695 | + char * s = NULL; | |
| 21696 | + if (NULL != x) { | |
| 21697 | + cJSON * j = cJSON_CreateUnsafe(x); | |
| 21698 | + if (NULL != j) { | |
| 21699 | + s = cJSON_Print(j); | |
| 21700 | + cJSON_Delete(j); | |
| 21701 | + } | |
| 21702 | + } | |
| 21703 | + return s; | |
| 21704 | +} | |
| 21705 | + | |
| 21706 | +void cJSON_DeleteUnsafe(struct Unsafe * x) { | |
| 21707 | + if (NULL != x) { | |
| 21708 | + cJSON_free(x); | |
| 21709 | + } | |
| 21710 | +} | |
| 21711 | + | |
| 21712 | +struct Ushort * cJSON_ParseUshort(const char * s) { | |
| 21713 | + struct Ushort * x = NULL; | |
| 21714 | + if (NULL != s) { | |
| 21715 | + cJSON * j = cJSON_Parse(s); | |
| 21716 | + if (NULL != j) { | |
| 21717 | + x = cJSON_GetUshortValue(j); | |
| 21718 | + cJSON_Delete(j); | |
| 21719 | + } | |
| 21720 | + } | |
| 21721 | + return x; | |
| 21722 | +} | |
| 21723 | + | |
| 21724 | +struct Ushort * cJSON_GetUshortValue(const cJSON * j) { | |
| 21725 | + struct Ushort * x = NULL; | |
| 21726 | + if (NULL != j) { | |
| 21727 | + if (NULL != (x = cJSON_malloc(sizeof(struct Ushort)))) { | |
| 21728 | + memset(x, 0, sizeof(struct Ushort)); | |
| 21729 | + if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteUshort(x); return NULL; } | |
| 21730 | + if (cJSON_HasObjectItem(j, "ushort")) { | |
| 21731 | + if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteUshort(x); return NULL; } | |
| 21732 | + x->ushort = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "ushort")); | |
| 21733 | + } | |
| 21734 | + } | |
| 21735 | + } | |
| 21736 | + return x; | |
| 21737 | +} | |
| 21738 | + | |
| 21739 | +cJSON * cJSON_CreateUshort(const struct Ushort * x) { | |
| 21740 | + cJSON * j = NULL; | |
| 21741 | + if (NULL != x) { | |
| 21742 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21743 | + cJSON_AddNumberToObject(j, "ushort", x->ushort); | |
| 21744 | + } | |
| 21745 | + } | |
| 21746 | + return j; | |
| 21747 | +} | |
| 21748 | + | |
| 21749 | +char * cJSON_PrintUshort(const struct Ushort * x) { | |
| 21750 | + char * s = NULL; | |
| 21751 | + if (NULL != x) { | |
| 21752 | + cJSON * j = cJSON_CreateUshort(x); | |
| 21753 | + if (NULL != j) { | |
| 21754 | + s = cJSON_Print(j); | |
| 21755 | + cJSON_Delete(j); | |
| 21756 | + } | |
| 21757 | + } | |
| 21758 | + return s; | |
| 21759 | +} | |
| 21760 | + | |
| 21761 | +void cJSON_DeleteUshort(struct Ushort * x) { | |
| 21762 | + if (NULL != x) { | |
| 21763 | + cJSON_free(x); | |
| 21764 | + } | |
| 21765 | +} | |
| 21766 | + | |
| 21602 | 21767 | struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s) { |
| 21603 | 21768 | struct Utf8JsonReader * x = NULL; |
| 21604 | 21769 | if (NULL != s) { |
| @@ -22171,6 +22336,12 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) { | ||
| 22171 | 22336 | if (!quicktype_cJSON_IsInteger(cJSON_GetObjectItemCaseSensitive(j, "dummy"))) { cJSON_DeleteObj6(x); return NULL; } |
| 22172 | 22337 | x->dummy = cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(j, "dummy")); |
| 22173 | 22338 | } |
| 22339 | + if (!cJSON_HasObjectItem(j, "unsigned")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22340 | + if (cJSON_HasObjectItem(j, "unsigned")) { | |
| 22341 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsigned"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22342 | + x->obj6_unsigned = cJSON_GetUnsignedValue(cJSON_GetObjectItemCaseSensitive(j, "unsigned")); | |
| 22343 | + if (NULL == x->obj6_unsigned) { cJSON_DeleteObj6(x); return NULL; } | |
| 22344 | + } | |
| 22174 | 22345 | if (!cJSON_HasObjectItem(j, "using")) { cJSON_DeleteObj6(x); return NULL; } |
| 22175 | 22346 | if (cJSON_HasObjectItem(j, "using")) { |
| 22176 | 22347 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "using"))) { cJSON_DeleteObj6(x); return NULL; } |
| @@ -22219,6 +22390,18 @@ struct Obj6 * cJSON_GetObj6Value(const cJSON * j) { | ||
| 22219 | 22390 | x->obj6_xor_eq = cJSON_GetXorEqValue(cJSON_GetObjectItemCaseSensitive(j, "xor_eq")); |
| 22220 | 22391 | if (NULL == x->obj6_xor_eq) { cJSON_DeleteObj6(x); return NULL; } |
| 22221 | 22392 | } |
| 22393 | + if (!cJSON_HasObjectItem(j, "unsafe")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22394 | + if (cJSON_HasObjectItem(j, "unsafe")) { | |
| 22395 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "unsafe"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22396 | + x->unsafe = cJSON_GetUnsafeValue(cJSON_GetObjectItemCaseSensitive(j, "unsafe")); | |
| 22397 | + if (NULL == x->unsafe) { cJSON_DeleteObj6(x); return NULL; } | |
| 22398 | + } | |
| 22399 | + if (!cJSON_HasObjectItem(j, "ushort")) { cJSON_DeleteObj6(x); return NULL; } | |
| 22400 | + if (cJSON_HasObjectItem(j, "ushort")) { | |
| 22401 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "ushort"))) { cJSON_DeleteObj6(x); return NULL; } | |
| 22402 | + x->ushort = cJSON_GetUshortValue(cJSON_GetObjectItemCaseSensitive(j, "ushort")); | |
| 22403 | + if (NULL == x->ushort) { cJSON_DeleteObj6(x); return NULL; } | |
| 22404 | + } | |
| 22222 | 22405 | if (!cJSON_HasObjectItem(j, "Utf8JsonReader")) { cJSON_DeleteObj6(x); return NULL; } |
| 22223 | 22406 | if (cJSON_HasObjectItem(j, "Utf8JsonReader")) { |
| 22224 | 22407 | if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "Utf8JsonReader"))) { cJSON_DeleteObj6(x); return NULL; } |
| @@ -22289,6 +22472,7 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) { | ||
| 22289 | 22472 | if (NULL != x) { |
| 22290 | 22473 | if (NULL != (j = cJSON_CreateObject())) { |
| 22291 | 22474 | cJSON_AddNumberToObject(j, "dummy", x->dummy); |
| 22475 | + cJSON_AddItemToObject(j, "unsigned", cJSON_CreateUnsigned(x->obj6_unsigned)); | |
| 22292 | 22476 | cJSON_AddItemToObject(j, "using", cJSON_CreateUsing(x->obj6_using)); |
| 22293 | 22477 | cJSON_AddItemToObject(j, "virtual", cJSON_CreateVirtual(x->obj6_virtual)); |
| 22294 | 22478 | cJSON_AddItemToObject(j, "void", cJSON_CreateVoid(x->obj6_void)); |
| @@ -22297,6 +22481,8 @@ cJSON * cJSON_CreateObj6(const struct Obj6 * x) { | ||
| 22297 | 22481 | cJSON_AddItemToObject(j, "while", cJSON_CreateWhile(x->obj6_while)); |
| 22298 | 22482 | cJSON_AddItemToObject(j, "xor", cJSON_CreateXor(x->obj6_xor)); |
| 22299 | 22483 | cJSON_AddItemToObject(j, "xor_eq", cJSON_CreateXorEq(x->obj6_xor_eq)); |
| 22484 | + cJSON_AddItemToObject(j, "unsafe", cJSON_CreateUnsafe(x->unsafe)); | |
| 22485 | + cJSON_AddItemToObject(j, "ushort", cJSON_CreateUshort(x->ushort)); | |
| 22300 | 22486 | cJSON_AddItemToObject(j, "Utf8JsonReader", cJSON_CreateUtf8JsonReader(x->utf8_json_reader)); |
| 22301 | 22487 | cJSON_AddItemToObject(j, "Utf8JsonWriter", cJSON_CreateUtf8JsonWriter(x->utf8_json_writer)); |
| 22302 | 22488 | cJSON_AddItemToObject(j, "UUID", cJSON_CreateUuid(x->uuid)); |
| @@ -22326,6 +22512,9 @@ char * cJSON_PrintObj6(const struct Obj6 * x) { | ||
| 22326 | 22512 | |
| 22327 | 22513 | void cJSON_DeleteObj6(struct Obj6 * x) { |
| 22328 | 22514 | if (NULL != x) { |
| 22515 | + if (NULL != x->obj6_unsigned) { | |
| 22516 | + cJSON_DeleteUnsigned(x->obj6_unsigned); | |
| 22517 | + } | |
| 22329 | 22518 | if (NULL != x->obj6_using) { |
| 22330 | 22519 | cJSON_DeleteUsing(x->obj6_using); |
| 22331 | 22520 | } |
| @@ -22350,6 +22539,12 @@ void cJSON_DeleteObj6(struct Obj6 * x) { | ||
| 22350 | 22539 | if (NULL != x->obj6_xor_eq) { |
| 22351 | 22540 | cJSON_DeleteXorEq(x->obj6_xor_eq); |
| 22352 | 22541 | } |
| 22542 | + if (NULL != x->unsafe) { | |
| 22543 | + cJSON_DeleteUnsafe(x->unsafe); | |
| 22544 | + } | |
| 22545 | + if (NULL != x->ushort) { | |
| 22546 | + cJSON_DeleteUshort(x->ushort); | |
| 22547 | + } | |
| 22353 | 22548 | if (NULL != x->utf8_json_reader) { |
| 22354 | 22549 | cJSON_DeleteUtf8JsonReader(x->utf8_json_reader); |
| 22355 | 22550 | } |
Mcjsondefault / TopLevel.h+110 −77
| @@ -877,6 +877,10 @@ struct List { | ||
| 877 | 877 | int64_t list; |
| 878 | 878 | }; |
| 879 | 879 | |
| 880 | +struct LocalDate { | |
| 881 | + int64_t local_date; | |
| 882 | +}; | |
| 883 | + | |
| 880 | 884 | struct Locale { |
| 881 | 885 | int64_t locale; |
| 882 | 886 | }; |
| @@ -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; |
| @@ -1003,6 +1003,7 @@ struct Obj3 { | ||
| 1003 | 1003 | struct Left * left; |
| 1004 | 1004 | struct Let * let; |
| 1005 | 1005 | struct List * list; |
| 1006 | + struct LocalDate * local_date; | |
| 1006 | 1007 | struct Locale * locale; |
| 1007 | 1008 | struct Lock * lock; |
| 1008 | 1009 | struct Map * map; |
| @@ -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 | }; |
| @@ -1149,6 +1153,14 @@ struct Of { | ||
| 1149 | 1153 | int64_t of; |
| 1150 | 1154 | }; |
| 1151 | 1155 | |
| 1156 | +struct OffsetDateTime { | |
| 1157 | + int64_t offset_date_time; | |
| 1158 | +}; | |
| 1159 | + | |
| 1160 | +struct OffsetTime { | |
| 1161 | + int64_t offset_time; | |
| 1162 | +}; | |
| 1163 | + | |
| 1152 | 1164 | struct Oneway { |
| 1153 | 1165 | int64_t oneway; |
| 1154 | 1166 | }; |
| @@ -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; |
| @@ -1314,6 +1315,8 @@ struct Obj4 { | ||
| 1314 | 1315 | struct ObjectClass * object; |
| 1315 | 1316 | struct ObjectMapper * object_mapper; |
| 1316 | 1317 | struct Of * of; |
| 1318 | + struct OffsetDateTime * offset_date_time; | |
| 1319 | + struct OffsetTime * offset_time; | |
| 1317 | 1320 | struct Oneway * oneway; |
| 1318 | 1321 | struct Open * open; |
| 1319 | 1322 | struct Optional * optional; |
| @@ -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 KSerializer { |
| @@ -1441,10 +1441,6 @@ struct Union { | ||
| 1441 | 1441 | int64_t union_union; |
| 1442 | 1442 | }; |
| 1443 | 1443 | |
| 1444 | -struct Unsigned { | |
| 1445 | - int64_t unsigned_unsigned; | |
| 1446 | -}; | |
| 1447 | - | |
| 1448 | 1444 | struct PrimitiveKind { |
| 1449 | 1445 | int64_t primitive_kind; |
| 1450 | 1446 | }; |
| @@ -1453,6 +1449,18 @@ 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 | }; |
| @@ -1593,18 +1601,10 @@ struct Unowned { | ||
| 1593 | 1601 | int64_t unowned; |
| 1594 | 1602 | }; |
| 1595 | 1603 | |
| 1596 | -struct Unsafe { | |
| 1597 | - int64_t unsafe; | |
| 1598 | -}; | |
| 1599 | - | |
| 1600 | 1604 | struct UseSerializers { |
| 1601 | 1605 | int64_t use_serializers; |
| 1602 | 1606 | }; |
| 1603 | 1607 | |
| 1604 | -struct Ushort { | |
| 1605 | - int64_t ushort; | |
| 1606 | -}; | |
| 1607 | - | |
| 1608 | 1608 | struct Obj5 { |
| 1609 | 1609 | int64_t dummy; |
| 1610 | 1610 | struct KSerializer * k_serializer; |
| @@ -1630,9 +1630,11 @@ struct Obj5 { | ||
| 1630 | 1630 | struct Typename * obj5_typename; |
| 1631 | 1631 | struct Typeof * obj5_typeof; |
| 1632 | 1632 | struct Union * obj5_union; |
| 1633 | - struct Unsigned * obj5_unsigned; | |
| 1634 | 1633 | struct PrimitiveKind * primitive_kind; |
| 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; |
| 1638 | 1640 | struct SerialDescriptor * serial_descriptor; |
| @@ -1668,9 +1670,11 @@ struct Obj5 { | ||
| 1668 | 1670 | struct Unchecked * unchecked; |
| 1669 | 1671 | struct Undefined * undefined; |
| 1670 | 1672 | struct Unowned * unowned; |
| 1671 | - struct Unsafe * unsafe; | |
| 1672 | 1673 | struct UseSerializers * use_serializers; |
| 1673 | - struct Ushort * ushort; | |
| 1674 | +}; | |
| 1675 | + | |
| 1676 | +struct Unsigned { | |
| 1677 | + int64_t unsigned_unsigned; | |
| 1674 | 1678 | }; |
| 1675 | 1679 | |
| 1676 | 1680 | struct Using { |
| @@ -1705,6 +1709,14 @@ struct XorEq { | ||
| 1705 | 1709 | int64_t xor_eq_xor_eq; |
| 1706 | 1710 | }; |
| 1707 | 1711 | |
| 1712 | +struct Unsafe { | |
| 1713 | + int64_t unsafe; | |
| 1714 | +}; | |
| 1715 | + | |
| 1716 | +struct Ushort { | |
| 1717 | + int64_t ushort; | |
| 1718 | +}; | |
| 1719 | + | |
| 1708 | 1720 | struct Utf8JsonReader { |
| 1709 | 1721 | int64_t utf8_json_reader; |
| 1710 | 1722 | }; |
| @@ -1747,6 +1759,7 @@ struct Yield { | ||
| 1747 | 1759 | |
| 1748 | 1760 | struct Obj6 { |
| 1749 | 1761 | int64_t dummy; |
| 1762 | + struct Unsigned * obj6_unsigned; | |
| 1750 | 1763 | struct Using * obj6_using; |
| 1751 | 1764 | struct Virtual * obj6_virtual; |
| 1752 | 1765 | struct Void * obj6_void; |
| @@ -1755,6 +1768,8 @@ struct Obj6 { | ||
| 1755 | 1768 | struct While * obj6_while; |
| 1756 | 1769 | struct Xor * obj6_xor; |
| 1757 | 1770 | struct XorEq * obj6_xor_eq; |
| 1771 | + struct Unsafe * unsafe; | |
| 1772 | + struct Ushort * ushort; | |
| 1758 | 1773 | struct Utf8JsonReader * utf8_json_reader; |
| 1759 | 1774 | struct Utf8JsonWriter * utf8_json_writer; |
| 1760 | 1775 | struct Uuid * uuid; |
| @@ -2824,6 +2839,12 @@ cJSON * cJSON_CreateList(const struct List * x); | ||
| 2824 | 2839 | char * cJSON_PrintList(const struct List * x); |
| 2825 | 2840 | void cJSON_DeleteList(struct List * x); |
| 2826 | 2841 | |
| 2842 | +struct LocalDate * cJSON_ParseLocalDate(const char * s); | |
| 2843 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j); | |
| 2844 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x); | |
| 2845 | +char * cJSON_PrintLocalDate(const struct LocalDate * x); | |
| 2846 | +void cJSON_DeleteLocalDate(struct LocalDate * x); | |
| 2847 | + | |
| 2827 | 2848 | struct Locale * cJSON_ParseLocale(const char * s); |
| 2828 | 2849 | struct Locale * cJSON_GetLocaleValue(const cJSON * j); |
| 2829 | 2850 | cJSON * cJSON_CreateLocale(const struct Locale * x); |
| @@ -2938,12 +2959,6 @@ cJSON * cJSON_CreateNew(const struct New * x); | ||
| 2938 | 2959 | char * cJSON_PrintNew(const struct New * x); |
| 2939 | 2960 | void cJSON_DeleteNew(struct New * x); |
| 2940 | 2961 | |
| 2941 | -struct Noexcept * cJSON_ParseNoexcept(const char * s); | |
| 2942 | -struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j); | |
| 2943 | -cJSON * cJSON_CreateNoexcept(const struct Noexcept * x); | |
| 2944 | -char * cJSON_PrintNoexcept(const struct Noexcept * x); | |
| 2945 | -void cJSON_DeleteNoexcept(struct Noexcept * x); | |
| 2946 | - | |
| 2947 | 2962 | struct Obj3 * cJSON_ParseObj3(const char * s); |
| 2948 | 2963 | struct Obj3 * cJSON_GetObj3Value(const cJSON * j); |
| 2949 | 2964 | cJSON * cJSON_CreateObj3(const struct Obj3 * x); |
| @@ -3010,6 +3025,12 @@ cJSON * cJSON_CreateNumberClass(const struct NumberClass * x); | ||
| 3010 | 3025 | char * cJSON_PrintNumberClass(const struct NumberClass * x); |
| 3011 | 3026 | void cJSON_DeleteNumberClass(struct NumberClass * x); |
| 3012 | 3027 | |
| 3028 | +struct Noexcept * cJSON_ParseNoexcept(const char * s); | |
| 3029 | +struct Noexcept * cJSON_GetNoexceptValue(const cJSON * j); | |
| 3030 | +cJSON * cJSON_CreateNoexcept(const struct Noexcept * x); | |
| 3031 | +char * cJSON_PrintNoexcept(const struct Noexcept * x); | |
| 3032 | +void cJSON_DeleteNoexcept(struct Noexcept * x); | |
| 3033 | + | |
| 3013 | 3034 | struct NoneClass * cJSON_ParseNoneClass(const char * s); |
| 3014 | 3035 | struct NoneClass * cJSON_GetNoneClassValue(const cJSON * j); |
| 3015 | 3036 | cJSON * cJSON_CreateNoneClass(const struct NoneClass * x); |
| @@ -3136,6 +3157,18 @@ cJSON * cJSON_CreateOf(const struct Of * x); | ||
| 3136 | 3157 | char * cJSON_PrintOf(const struct Of * x); |
| 3137 | 3158 | void cJSON_DeleteOf(struct Of * x); |
| 3138 | 3159 | |
| 3160 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s); | |
| 3161 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j); | |
| 3162 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x); | |
| 3163 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x); | |
| 3164 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x); | |
| 3165 | + | |
| 3166 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s); | |
| 3167 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j); | |
| 3168 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x); | |
| 3169 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x); | |
| 3170 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x); | |
| 3171 | + | |
| 3139 | 3172 | struct Oneway * cJSON_ParseOneway(const char * s); |
| 3140 | 3173 | struct Oneway * cJSON_GetOnewayValue(const cJSON * j); |
| 3141 | 3174 | cJSON * cJSON_CreateOneway(const struct Oneway * x); |
| @@ -3316,24 +3349,6 @@ cJSON * cJSON_CreateSbyte(const struct Sbyte * x); | ||
| 3316 | 3349 | char * cJSON_PrintSbyte(const struct Sbyte * x); |
| 3317 | 3350 | void cJSON_DeleteSbyte(struct Sbyte * x); |
| 3318 | 3351 | |
| 3319 | -struct Sealed * cJSON_ParseSealed(const char * s); | |
| 3320 | -struct Sealed * cJSON_GetSealedValue(const cJSON * j); | |
| 3321 | -cJSON * cJSON_CreateSealed(const struct Sealed * x); | |
| 3322 | -char * cJSON_PrintSealed(const struct Sealed * x); | |
| 3323 | -void cJSON_DeleteSealed(struct Sealed * x); | |
| 3324 | - | |
| 3325 | -struct Sel * cJSON_ParseSel(const char * s); | |
| 3326 | -struct Sel * cJSON_GetSelValue(const cJSON * j); | |
| 3327 | -cJSON * cJSON_CreateSel(const struct Sel * x); | |
| 3328 | -char * cJSON_PrintSel(const struct Sel * x); | |
| 3329 | -void cJSON_DeleteSel(struct Sel * x); | |
| 3330 | - | |
| 3331 | -struct Select * cJSON_ParseSelect(const char * s); | |
| 3332 | -struct Select * cJSON_GetSelectValue(const cJSON * j); | |
| 3333 | -cJSON * cJSON_CreateSelect(const struct Select * x); | |
| 3334 | -char * cJSON_PrintSelect(const struct Select * x); | |
| 3335 | -void cJSON_DeleteSelect(struct Select * x); | |
| 3336 | - | |
| 3337 | 3352 | struct Obj4 * cJSON_ParseObj4(const char * s); |
| 3338 | 3353 | struct Obj4 * cJSON_GetObj4Value(const cJSON * j); |
| 3339 | 3354 | cJSON * cJSON_CreateObj4(const struct Obj4 * x); |
| @@ -3478,12 +3493,6 @@ cJSON * cJSON_CreateUnion(const struct Union * x); | ||
| 3478 | 3493 | char * cJSON_PrintUnion(const struct Union * x); |
| 3479 | 3494 | void cJSON_DeleteUnion(struct Union * x); |
| 3480 | 3495 | |
| 3481 | -struct Unsigned * cJSON_ParseUnsigned(const char * s); | |
| 3482 | -struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j); | |
| 3483 | -cJSON * cJSON_CreateUnsigned(const struct Unsigned * x); | |
| 3484 | -char * cJSON_PrintUnsigned(const struct Unsigned * x); | |
| 3485 | -void cJSON_DeleteUnsigned(struct Unsigned * x); | |
| 3486 | - | |
| 3487 | 3496 | struct PrimitiveKind * cJSON_ParsePrimitiveKind(const char * s); |
| 3488 | 3497 | struct PrimitiveKind * cJSON_GetPrimitiveKindValue(const cJSON * j); |
| 3489 | 3498 | cJSON * cJSON_CreatePrimitiveKind(const struct PrimitiveKind * x); |
| @@ -3496,6 +3505,24 @@ cJSON * cJSON_CreateObj5True(const struct Obj5True * x); | ||
| 3496 | 3505 | char * cJSON_PrintObj5True(const struct Obj5True * x); |
| 3497 | 3506 | void cJSON_DeleteObj5True(struct Obj5True * x); |
| 3498 | 3507 | |
| 3508 | +struct Sealed * cJSON_ParseSealed(const char * s); | |
| 3509 | +struct Sealed * cJSON_GetSealedValue(const cJSON * j); | |
| 3510 | +cJSON * cJSON_CreateSealed(const struct Sealed * x); | |
| 3511 | +char * cJSON_PrintSealed(const struct Sealed * x); | |
| 3512 | +void cJSON_DeleteSealed(struct Sealed * x); | |
| 3513 | + | |
| 3514 | +struct Sel * cJSON_ParseSel(const char * s); | |
| 3515 | +struct Sel * cJSON_GetSelValue(const cJSON * j); | |
| 3516 | +cJSON * cJSON_CreateSel(const struct Sel * x); | |
| 3517 | +char * cJSON_PrintSel(const struct Sel * x); | |
| 3518 | +void cJSON_DeleteSel(struct Sel * x); | |
| 3519 | + | |
| 3520 | +struct Select * cJSON_ParseSelect(const char * s); | |
| 3521 | +struct Select * cJSON_GetSelectValue(const cJSON * j); | |
| 3522 | +cJSON * cJSON_CreateSelect(const struct Select * x); | |
| 3523 | +char * cJSON_PrintSelect(const struct Select * x); | |
| 3524 | +void cJSON_DeleteSelect(struct Select * x); | |
| 3525 | + | |
| 3499 | 3526 | struct Self * cJSON_ParseSelf(const char * s); |
| 3500 | 3527 | struct Self * cJSON_GetSelfValue(const cJSON * j); |
| 3501 | 3528 | cJSON * cJSON_CreateSelf(const struct Self * x); |
| @@ -3706,30 +3733,24 @@ cJSON * cJSON_CreateUnowned(const struct Unowned * x); | ||
| 3706 | 3733 | char * cJSON_PrintUnowned(const struct Unowned * x); |
| 3707 | 3734 | void cJSON_DeleteUnowned(struct Unowned * x); |
| 3708 | 3735 | |
| 3709 | -struct Unsafe * cJSON_ParseUnsafe(const char * s); | |
| 3710 | -struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j); | |
| 3711 | -cJSON * cJSON_CreateUnsafe(const struct Unsafe * x); | |
| 3712 | -char * cJSON_PrintUnsafe(const struct Unsafe * x); | |
| 3713 | -void cJSON_DeleteUnsafe(struct Unsafe * x); | |
| 3714 | - | |
| 3715 | 3736 | struct UseSerializers * cJSON_ParseUseSerializers(const char * s); |
| 3716 | 3737 | struct UseSerializers * cJSON_GetUseSerializersValue(const cJSON * j); |
| 3717 | 3738 | cJSON * cJSON_CreateUseSerializers(const struct UseSerializers * x); |
| 3718 | 3739 | char * cJSON_PrintUseSerializers(const struct UseSerializers * x); |
| 3719 | 3740 | void cJSON_DeleteUseSerializers(struct UseSerializers * x); |
| 3720 | 3741 | |
| 3721 | -struct Ushort * cJSON_ParseUshort(const char * s); | |
| 3722 | -struct Ushort * cJSON_GetUshortValue(const cJSON * j); | |
| 3723 | -cJSON * cJSON_CreateUshort(const struct Ushort * x); | |
| 3724 | -char * cJSON_PrintUshort(const struct Ushort * x); | |
| 3725 | -void cJSON_DeleteUshort(struct Ushort * x); | |
| 3726 | - | |
| 3727 | 3742 | struct Obj5 * cJSON_ParseObj5(const char * s); |
| 3728 | 3743 | struct Obj5 * cJSON_GetObj5Value(const cJSON * j); |
| 3729 | 3744 | cJSON * cJSON_CreateObj5(const struct Obj5 * x); |
| 3730 | 3745 | char * cJSON_PrintObj5(const struct Obj5 * x); |
| 3731 | 3746 | void cJSON_DeleteObj5(struct Obj5 * x); |
| 3732 | 3747 | |
| 3748 | +struct Unsigned * cJSON_ParseUnsigned(const char * s); | |
| 3749 | +struct Unsigned * cJSON_GetUnsignedValue(const cJSON * j); | |
| 3750 | +cJSON * cJSON_CreateUnsigned(const struct Unsigned * x); | |
| 3751 | +char * cJSON_PrintUnsigned(const struct Unsigned * x); | |
| 3752 | +void cJSON_DeleteUnsigned(struct Unsigned * x); | |
| 3753 | + | |
| 3733 | 3754 | struct Using * cJSON_ParseUsing(const char * s); |
| 3734 | 3755 | struct Using * cJSON_GetUsingValue(const cJSON * j); |
| 3735 | 3756 | cJSON * cJSON_CreateUsing(const struct Using * x); |
| @@ -3778,6 +3799,18 @@ cJSON * cJSON_CreateXorEq(const struct XorEq * x); | ||
| 3778 | 3799 | char * cJSON_PrintXorEq(const struct XorEq * x); |
| 3779 | 3800 | void cJSON_DeleteXorEq(struct XorEq * x); |
| 3780 | 3801 | |
| 3802 | +struct Unsafe * cJSON_ParseUnsafe(const char * s); | |
| 3803 | +struct Unsafe * cJSON_GetUnsafeValue(const cJSON * j); | |
| 3804 | +cJSON * cJSON_CreateUnsafe(const struct Unsafe * x); | |
| 3805 | +char * cJSON_PrintUnsafe(const struct Unsafe * x); | |
| 3806 | +void cJSON_DeleteUnsafe(struct Unsafe * x); | |
| 3807 | + | |
| 3808 | +struct Ushort * cJSON_ParseUshort(const char * s); | |
| 3809 | +struct Ushort * cJSON_GetUshortValue(const cJSON * j); | |
| 3810 | +cJSON * cJSON_CreateUshort(const struct Ushort * x); | |
| 3811 | +char * cJSON_PrintUshort(const struct Ushort * x); | |
| 3812 | +void cJSON_DeleteUshort(struct Ushort * x); | |
| 3813 | + | |
| 3781 | 3814 | struct Utf8JsonReader * cJSON_ParseUtf8JsonReader(const char * s); |
| 3782 | 3815 | struct Utf8JsonReader * cJSON_GetUtf8JsonReaderValue(const cJSON * j); |
| 3783 | 3816 | cJSON * cJSON_CreateUtf8JsonReader(const struct Utf8JsonReader * x); |
Mcplusplusdefault / quicktype.hpp+349 −244
| @@ -3109,6 +3109,20 @@ namespace quicktype { | ||
| 3109 | 3109 | void set_list(const int64_t & value) { this->list = value; } |
| 3110 | 3110 | }; |
| 3111 | 3111 | |
| 3112 | + class LocalDate { | |
| 3113 | + public: | |
| 3114 | + LocalDate() = default; | |
| 3115 | + virtual ~LocalDate() = default; | |
| 3116 | + | |
| 3117 | + private: | |
| 3118 | + int64_t local_date; | |
| 3119 | + | |
| 3120 | + public: | |
| 3121 | + const int64_t & get_local_date() const { return local_date; } | |
| 3122 | + int64_t & get_mutable_local_date() { return local_date; } | |
| 3123 | + void set_local_date(const int64_t & value) { this->local_date = value; } | |
| 3124 | + }; | |
| 3125 | + | |
| 3112 | 3126 | class Locale { |
| 3113 | 3127 | public: |
| 3114 | 3128 | Locale() = 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; |
| @@ -3440,6 +3440,7 @@ namespace quicktype { | ||
| 3440 | 3440 | Left left; |
| 3441 | 3441 | Let let; |
| 3442 | 3442 | List list; |
| 3443 | + LocalDate local_date; | |
| 3443 | 3444 | Locale locale; |
| 3444 | 3445 | Lock lock; |
| 3445 | 3446 | Map map; |
| @@ -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; } |
| @@ -3642,6 +3642,10 @@ namespace quicktype { | ||
| 3642 | 3642 | List & get_mutable_list() { return list; } |
| 3643 | 3643 | void set_list(const List & value) { this->list = value; } |
| 3644 | 3644 | |
| 3645 | + const LocalDate & get_local_date() const { return local_date; } | |
| 3646 | + LocalDate & get_mutable_local_date() { return local_date; } | |
| 3647 | + void set_local_date(const LocalDate & value) { this->local_date = value; } | |
| 3648 | + | |
| 3645 | 3649 | const Locale & get_locale() const { return locale; } |
| 3646 | 3650 | Locale & get_mutable_locale() { return locale; } |
| 3647 | 3651 | void set_locale(const Locale & value) { this->locale = 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; |
| @@ -4143,6 +4157,34 @@ namespace quicktype { | ||
| 4143 | 4157 | void set_of(const int64_t & value) { this->of = value; } |
| 4144 | 4158 | }; |
| 4145 | 4159 | |
| 4160 | + class OffsetDateTime { | |
| 4161 | + public: | |
| 4162 | + OffsetDateTime() = default; | |
| 4163 | + virtual ~OffsetDateTime() = default; | |
| 4164 | + | |
| 4165 | + private: | |
| 4166 | + int64_t offset_date_time; | |
| 4167 | + | |
| 4168 | + public: | |
| 4169 | + const int64_t & get_offset_date_time() const { return offset_date_time; } | |
| 4170 | + int64_t & get_mutable_offset_date_time() { return offset_date_time; } | |
| 4171 | + void set_offset_date_time(const int64_t & value) { this->offset_date_time = value; } | |
| 4172 | + }; | |
| 4173 | + | |
| 4174 | + class OffsetTime { | |
| 4175 | + public: | |
| 4176 | + OffsetTime() = default; | |
| 4177 | + virtual ~OffsetTime() = default; | |
| 4178 | + | |
| 4179 | + private: | |
| 4180 | + int64_t offset_time; | |
| 4181 | + | |
| 4182 | + public: | |
| 4183 | + const int64_t & get_offset_time() const { return offset_time; } | |
| 4184 | + int64_t & get_mutable_offset_time() { return offset_time; } | |
| 4185 | + void set_offset_time(const int64_t & value) { this->offset_time = value; } | |
| 4186 | + }; | |
| 4187 | + | |
| 4146 | 4188 | class Oneway { |
| 4147 | 4189 | public: |
| 4148 | 4190 | Oneway() = 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; |
| @@ -4656,6 +4657,8 @@ namespace quicktype { | ||
| 4656 | 4657 | Object object; |
| 4657 | 4658 | ObjectMapper object_mapper; |
| 4658 | 4659 | Of of; |
| 4660 | + OffsetDateTime offset_date_time; | |
| 4661 | + OffsetTime offset_time; | |
| 4659 | 4662 | Oneway oneway; |
| 4660 | 4663 | Open open; |
| 4661 | 4664 | Optional optional; |
| @@ -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; } |
| @@ -4816,6 +4820,14 @@ namespace quicktype { | ||
| 4816 | 4820 | Of & get_mutable_of() { return of; } |
| 4817 | 4821 | void set_of(const Of & value) { this->of = value; } |
| 4818 | 4822 | |
| 4823 | + const OffsetDateTime & get_offset_date_time() const { return offset_date_time; } | |
| 4824 | + OffsetDateTime & get_mutable_offset_date_time() { return offset_date_time; } | |
| 4825 | + void set_offset_date_time(const OffsetDateTime & value) { this->offset_date_time = value; } | |
| 4826 | + | |
| 4827 | + const OffsetTime & get_offset_time() const { return offset_time; } | |
| 4828 | + OffsetTime & get_mutable_offset_time() { return offset_time; } | |
| 4829 | + void set_offset_time(const OffsetTime & value) { this->offset_time = value; } | |
| 4830 | + | |
| 4819 | 4831 | const Oneway & get_oneway() const { return oneway; } |
| 4820 | 4832 | Oneway & get_mutable_oneway() { return oneway; } |
| 4821 | 4833 | void set_oneway(const Oneway & value) { this->oneway = 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 KSerializer { |
| @@ -5261,20 +5261,6 @@ namespace quicktype { | ||
| 5261 | 5261 | void set_union_union(const int64_t & value) { this->union_union = value; } |
| 5262 | 5262 | }; |
| 5263 | 5263 | |
| 5264 | - class Unsigned { | |
| 5265 | - public: | |
| 5266 | - Unsigned() = default; | |
| 5267 | - virtual ~Unsigned() = default; | |
| 5268 | - | |
| 5269 | - private: | |
| 5270 | - int64_t unsigned_unsigned; | |
| 5271 | - | |
| 5272 | - public: | |
| 5273 | - const int64_t & get_unsigned_unsigned() const { return unsigned_unsigned; } | |
| 5274 | - int64_t & get_mutable_unsigned_unsigned() { return unsigned_unsigned; } | |
| 5275 | - void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; } | |
| 5276 | - }; | |
| 5277 | - | |
| 5278 | 5264 | class PrimitiveKind { |
| 5279 | 5265 | public: |
| 5280 | 5266 | PrimitiveKind() = 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; |
| @@ -5807,20 +5835,6 @@ namespace quicktype { | ||
| 5807 | 5835 | void set_unowned(const int64_t & value) { this->unowned = value; } |
| 5808 | 5836 | }; |
| 5809 | 5837 | |
| 5810 | - class Unsafe { | |
| 5811 | - public: | |
| 5812 | - Unsafe() = default; | |
| 5813 | - virtual ~Unsafe() = default; | |
| 5814 | - | |
| 5815 | - private: | |
| 5816 | - int64_t unsafe; | |
| 5817 | - | |
| 5818 | - public: | |
| 5819 | - const int64_t & get_unsafe() const { return unsafe; } | |
| 5820 | - int64_t & get_mutable_unsafe() { return unsafe; } | |
| 5821 | - void set_unsafe(const int64_t & value) { this->unsafe = value; } | |
| 5822 | - }; | |
| 5823 | - | |
| 5824 | 5838 | class UseSerializers { |
| 5825 | 5839 | public: |
| 5826 | 5840 | UseSerializers() = default; |
| @@ -5835,20 +5849,6 @@ namespace quicktype { | ||
| 5835 | 5849 | void set_use_serializers(const int64_t & value) { this->use_serializers = value; } |
| 5836 | 5850 | }; |
| 5837 | 5851 | |
| 5838 | - class Ushort { | |
| 5839 | - public: | |
| 5840 | - Ushort() = default; | |
| 5841 | - virtual ~Ushort() = default; | |
| 5842 | - | |
| 5843 | - private: | |
| 5844 | - int64_t ushort; | |
| 5845 | - | |
| 5846 | - public: | |
| 5847 | - const int64_t & get_ushort() const { return ushort; } | |
| 5848 | - int64_t & get_mutable_ushort() { return ushort; } | |
| 5849 | - void set_ushort(const int64_t & value) { this->ushort = value; } | |
| 5850 | - }; | |
| 5851 | - | |
| 5852 | 5852 | class Obj5 { |
| 5853 | 5853 | public: |
| 5854 | 5854 | Obj5() = default; |
| @@ -5878,9 +5878,11 @@ namespace quicktype { | ||
| 5878 | 5878 | Typeid obj5_typeid; |
| 5879 | 5879 | Typename obj5_typename; |
| 5880 | 5880 | Union obj5_union; |
| 5881 | - Unsigned obj5_unsigned; | |
| 5882 | 5881 | PrimitiveKind primitive_kind; |
| 5883 | 5882 | TrueClass purple_true; |
| 5883 | + Sealed sealed; | |
| 5884 | + Sel sel; | |
| 5885 | + Select select; | |
| 5884 | 5886 | Self self; |
| 5885 | 5887 | Sendable sendable; |
| 5886 | 5888 | SerialDescriptor serial_descriptor; |
| @@ -5917,9 +5919,7 @@ namespace quicktype { | ||
| 5917 | 5919 | Unchecked unchecked; |
| 5918 | 5920 | Undefined undefined; |
| 5919 | 5921 | Unowned unowned; |
| 5920 | - Unsafe unsafe; | |
| 5921 | 5922 | UseSerializers use_serializers; |
| 5922 | - Ushort ushort; | |
| 5923 | 5923 | |
| 5924 | 5924 | public: |
| 5925 | 5925 | const int64_t & get_dummy() const { return dummy; } |
| @@ -6014,10 +6014,6 @@ namespace quicktype { | ||
| 6014 | 6014 | Union & get_mutable_obj5_union() { return obj5_union; } |
| 6015 | 6015 | void set_obj5_union(const Union & value) { this->obj5_union = value; } |
| 6016 | 6016 | |
| 6017 | - const Unsigned & get_obj5_unsigned() const { return obj5_unsigned; } | |
| 6018 | - Unsigned & get_mutable_obj5_unsigned() { return obj5_unsigned; } | |
| 6019 | - void set_obj5_unsigned(const Unsigned & value) { this->obj5_unsigned = value; } | |
| 6020 | - | |
| 6021 | 6017 | const PrimitiveKind & get_primitive_kind() const { return primitive_kind; } |
| 6022 | 6018 | PrimitiveKind & get_mutable_primitive_kind() { return primitive_kind; } |
| 6023 | 6019 | void set_primitive_kind(const PrimitiveKind & value) { this->primitive_kind = value; } |
| @@ -6026,6 +6022,18 @@ namespace quicktype { | ||
| 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 | |
| 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 | + | |
| 6029 | 6037 | const Self & get_self() const { return self; } |
| 6030 | 6038 | Self & get_mutable_self() { return self; } |
| 6031 | 6039 | void set_self(const Self & value) { this->self = value; } |
| @@ -6170,17 +6178,23 @@ namespace quicktype { | ||
| 6170 | 6178 | Unowned & get_mutable_unowned() { return unowned; } |
| 6171 | 6179 | void set_unowned(const Unowned & value) { this->unowned = value; } |
| 6172 | 6180 | |
| 6173 | - const Unsafe & get_unsafe() const { return unsafe; } | |
| 6174 | - Unsafe & get_mutable_unsafe() { return unsafe; } | |
| 6175 | - void set_unsafe(const Unsafe & value) { this->unsafe = value; } | |
| 6176 | - | |
| 6177 | 6181 | const UseSerializers & get_use_serializers() const { return use_serializers; } |
| 6178 | 6182 | UseSerializers & get_mutable_use_serializers() { return use_serializers; } |
| 6179 | 6183 | void set_use_serializers(const UseSerializers & value) { this->use_serializers = value; } |
| 6184 | + }; | |
| 6180 | 6185 | |
| 6181 | - const Ushort & get_ushort() const { return ushort; } | |
| 6182 | - Ushort & get_mutable_ushort() { return ushort; } | |
| 6183 | - void set_ushort(const Ushort & value) { this->ushort = value; } | |
| 6186 | + class Unsigned { | |
| 6187 | + public: | |
| 6188 | + Unsigned() = default; | |
| 6189 | + virtual ~Unsigned() = default; | |
| 6190 | + | |
| 6191 | + private: | |
| 6192 | + int64_t unsigned_unsigned; | |
| 6193 | + | |
| 6194 | + public: | |
| 6195 | + const int64_t & get_unsigned_unsigned() const { return unsigned_unsigned; } | |
| 6196 | + int64_t & get_mutable_unsigned_unsigned() { return unsigned_unsigned; } | |
| 6197 | + void set_unsigned_unsigned(const int64_t & value) { this->unsigned_unsigned = value; } | |
| 6184 | 6198 | }; |
| 6185 | 6199 | |
| 6186 | 6200 | class Using { |
| @@ -6295,6 +6309,34 @@ namespace quicktype { | ||
| 6295 | 6309 | void set_xor_eq_xor_eq(const int64_t & value) { this->xor_eq_xor_eq = value; } |
| 6296 | 6310 | }; |
| 6297 | 6311 | |
| 6312 | + class Unsafe { | |
| 6313 | + public: | |
| 6314 | + Unsafe() = default; | |
| 6315 | + virtual ~Unsafe() = default; | |
| 6316 | + | |
| 6317 | + private: | |
| 6318 | + int64_t unsafe; | |
| 6319 | + | |
| 6320 | + public: | |
| 6321 | + const int64_t & get_unsafe() const { return unsafe; } | |
| 6322 | + int64_t & get_mutable_unsafe() { return unsafe; } | |
| 6323 | + void set_unsafe(const int64_t & value) { this->unsafe = value; } | |
| 6324 | + }; | |
| 6325 | + | |
| 6326 | + class Ushort { | |
| 6327 | + public: | |
| 6328 | + Ushort() = default; | |
| 6329 | + virtual ~Ushort() = default; | |
| 6330 | + | |
| 6331 | + private: | |
| 6332 | + int64_t ushort; | |
| 6333 | + | |
| 6334 | + public: | |
| 6335 | + const int64_t & get_ushort() const { return ushort; } | |
| 6336 | + int64_t & get_mutable_ushort() { return ushort; } | |
| 6337 | + void set_ushort(const int64_t & value) { this->ushort = value; } | |
| 6338 | + }; | |
| 6339 | + | |
| 6298 | 6340 | class Utf8JsonReader { |
| 6299 | 6341 | public: |
| 6300 | 6342 | Utf8JsonReader() = default; |
| @@ -6442,6 +6484,7 @@ namespace quicktype { | ||
| 6442 | 6484 | |
| 6443 | 6485 | private: |
| 6444 | 6486 | int64_t dummy; |
| 6487 | + Unsigned obj6_unsigned; | |
| 6445 | 6488 | Using obj6_using; |
| 6446 | 6489 | Virtual obj6_virtual; |
| 6447 | 6490 | Void obj6_void; |
| @@ -6450,6 +6493,8 @@ namespace quicktype { | ||
| 6450 | 6493 | While obj6_while; |
| 6451 | 6494 | Xor obj6_xor; |
| 6452 | 6495 | XorEq obj6_xor_eq; |
| 6496 | + Unsafe unsafe; | |
| 6497 | + Ushort ushort; | |
| 6453 | 6498 | Utf8JsonReader utf8_json_reader; |
| 6454 | 6499 | Utf8JsonWriter utf8_json_writer; |
| 6455 | 6500 | Uuid uuid; |
| @@ -6466,6 +6511,10 @@ namespace quicktype { | ||
| 6466 | 6511 | int64_t & get_mutable_dummy() { return dummy; } |
| 6467 | 6512 | void set_dummy(const int64_t & value) { this->dummy = value; } |
| 6468 | 6513 | |
| 6514 | + const Unsigned & get_obj6_unsigned() const { return obj6_unsigned; } | |
| 6515 | + Unsigned & get_mutable_obj6_unsigned() { return obj6_unsigned; } | |
| 6516 | + void set_obj6_unsigned(const Unsigned & value) { this->obj6_unsigned = value; } | |
| 6517 | + | |
| 6469 | 6518 | const Using & get_obj6_using() const { return obj6_using; } |
| 6470 | 6519 | Using & get_mutable_obj6_using() { return obj6_using; } |
| 6471 | 6520 | void set_obj6_using(const Using & value) { this->obj6_using = value; } |
| @@ -6498,6 +6547,14 @@ namespace quicktype { | ||
| 6498 | 6547 | XorEq & get_mutable_obj6_xor_eq() { return obj6_xor_eq; } |
| 6499 | 6548 | void set_obj6_xor_eq(const XorEq & value) { this->obj6_xor_eq = value; } |
| 6500 | 6549 | |
| 6550 | + const Unsafe & get_unsafe() const { return unsafe; } | |
| 6551 | + Unsafe & get_mutable_unsafe() { return unsafe; } | |
| 6552 | + void set_unsafe(const Unsafe & value) { this->unsafe = value; } | |
| 6553 | + | |
| 6554 | + const Ushort & get_ushort() const { return ushort; } | |
| 6555 | + Ushort & get_mutable_ushort() { return ushort; } | |
| 6556 | + void set_ushort(const Ushort & value) { this->ushort = value; } | |
| 6557 | + | |
| 6501 | 6558 | const Utf8JsonReader & get_utf8_json_reader() const { return utf8_json_reader; } |
| 6502 | 6559 | Utf8JsonReader & get_mutable_utf8_json_reader() { return utf8_json_reader; } |
| 6503 | 6560 | void set_utf8_json_reader(const Utf8JsonReader & value) { this->utf8_json_reader = value; } |
| @@ -7107,6 +7164,9 @@ namespace quicktype { | ||
| 7107 | 7164 | void from_json(const json & j, List & x); |
| 7108 | 7165 | void to_json(json & j, const List & x); |
| 7109 | 7166 | |
| 7167 | + void from_json(const json & j, LocalDate & x); | |
| 7168 | + void to_json(json & j, const LocalDate & x); | |
| 7169 | + | |
| 7110 | 7170 | void from_json(const json & j, Locale & x); |
| 7111 | 7171 | void to_json(json & j, const Locale & x); |
| 7112 | 7172 | |
| @@ -7164,9 +7224,6 @@ namespace quicktype { | ||
| 7164 | 7224 | void from_json(const json & j, New & x); |
| 7165 | 7225 | void to_json(json & j, const New & x); |
| 7166 | 7226 | |
| 7167 | - void from_json(const json & j, Noexcept & x); | |
| 7168 | - void to_json(json & j, const Noexcept & x); | |
| 7169 | - | |
| 7170 | 7227 | void from_json(const json & j, Obj3 & x); |
| 7171 | 7228 | void to_json(json & j, const Obj3 & x); |
| 7172 | 7229 | |
| @@ -7200,6 +7257,9 @@ namespace quicktype { | ||
| 7200 | 7257 | void from_json(const json & j, Number & x); |
| 7201 | 7258 | void to_json(json & j, const Number & x); |
| 7202 | 7259 | |
| 7260 | + void from_json(const json & j, Noexcept & x); | |
| 7261 | + void to_json(json & j, const Noexcept & x); | |
| 7262 | + | |
| 7203 | 7263 | void from_json(const json & j, NoneClass & x); |
| 7204 | 7264 | void to_json(json & j, const NoneClass & x); |
| 7205 | 7265 | |
| @@ -7260,6 +7320,12 @@ namespace quicktype { | ||
| 7260 | 7320 | void from_json(const json & j, Of & x); |
| 7261 | 7321 | void to_json(json & j, const Of & x); |
| 7262 | 7322 | |
| 7323 | + void from_json(const json & j, OffsetDateTime & x); | |
| 7324 | + void to_json(json & j, const OffsetDateTime & x); | |
| 7325 | + | |
| 7326 | + void from_json(const json & j, OffsetTime & x); | |
| 7327 | + void to_json(json & j, const OffsetTime & x); | |
| 7328 | + | |
| 7263 | 7329 | void from_json(const json & j, Oneway & x); |
| 7264 | 7330 | void to_json(json & j, const Oneway & x); |
| 7265 | 7331 | |
| @@ -7353,15 +7419,6 @@ namespace quicktype { | ||
| 7353 | 7419 | void from_json(const json & j, Sbyte & x); |
| 7354 | 7420 | void to_json(json & j, const Sbyte & x); |
| 7355 | 7421 | |
| 7356 | - void from_json(const json & j, Sealed & x); | |
| 7357 | - void to_json(json & j, const Sealed & x); | |
| 7358 | - | |
| 7359 | - void from_json(const json & j, Sel & x); | |
| 7360 | - void to_json(json & j, const Sel & x); | |
| 7361 | - | |
| 7362 | - void from_json(const json & j, Select & x); | |
| 7363 | - void to_json(json & j, const Select & x); | |
| 7364 | - | |
| 7365 | 7422 | void from_json(const json & j, Obj4 & x); |
| 7366 | 7423 | void to_json(json & j, const Obj4 & x); |
| 7367 | 7424 | |
| @@ -7431,15 +7488,21 @@ namespace quicktype { | ||
| 7431 | 7488 | void from_json(const json & j, Union & x); |
| 7432 | 7489 | void to_json(json & j, const Union & x); |
| 7433 | 7490 | |
| 7434 | - void from_json(const json & j, Unsigned & x); | |
| 7435 | - void to_json(json & j, const Unsigned & x); | |
| 7436 | - | |
| 7437 | 7491 | void from_json(const json & j, PrimitiveKind & x); |
| 7438 | 7492 | void to_json(json & j, const PrimitiveKind & x); |
| 7439 | 7493 | |
| 7440 | 7494 | void from_json(const json & j, TrueClass & x); |
| 7441 | 7495 | void to_json(json & j, const TrueClass & x); |
| 7442 | 7496 | |
| 7497 | + void from_json(const json & j, Sealed & x); | |
| 7498 | + void to_json(json & j, const Sealed & x); | |
| 7499 | + | |
| 7500 | + void from_json(const json & j, Sel & x); | |
| 7501 | + void to_json(json & j, const Sel & x); | |
| 7502 | + | |
| 7503 | + void from_json(const json & j, Select & x); | |
| 7504 | + void to_json(json & j, const Select & x); | |
| 7505 | + | |
| 7443 | 7506 | void from_json(const json & j, Self & x); |
| 7444 | 7507 | void to_json(json & j, const Self & x); |
| 7445 | 7508 | |
| @@ -7548,18 +7611,15 @@ namespace quicktype { | ||
| 7548 | 7611 | void from_json(const json & j, Unowned & x); |
| 7549 | 7612 | void to_json(json & j, const Unowned & x); |
| 7550 | 7613 | |
| 7551 | - void from_json(const json & j, Unsafe & x); | |
| 7552 | - void to_json(json & j, const Unsafe & x); | |
| 7553 | - | |
| 7554 | 7614 | void from_json(const json & j, UseSerializers & x); |
| 7555 | 7615 | void to_json(json & j, const UseSerializers & x); |
| 7556 | 7616 | |
| 7557 | - void from_json(const json & j, Ushort & x); | |
| 7558 | - void to_json(json & j, const Ushort & x); | |
| 7559 | - | |
| 7560 | 7617 | void from_json(const json & j, Obj5 & x); |
| 7561 | 7618 | void to_json(json & j, const Obj5 & x); |
| 7562 | 7619 | |
| 7620 | + void from_json(const json & j, Unsigned & x); | |
| 7621 | + void to_json(json & j, const Unsigned & x); | |
| 7622 | + | |
| 7563 | 7623 | void from_json(const json & j, Using & x); |
| 7564 | 7624 | void to_json(json & j, const Using & x); |
| 7565 | 7625 | |
| @@ -7584,6 +7644,12 @@ namespace quicktype { | ||
| 7584 | 7644 | void from_json(const json & j, XorEq & x); |
| 7585 | 7645 | void to_json(json & j, const XorEq & x); |
| 7586 | 7646 | |
| 7647 | + void from_json(const json & j, Unsafe & x); | |
| 7648 | + void to_json(json & j, const Unsafe & x); | |
| 7649 | + | |
| 7650 | + void from_json(const json & j, Ushort & x); | |
| 7651 | + void to_json(json & j, const Ushort & x); | |
| 7652 | + | |
| 7587 | 7653 | void from_json(const json & j, Utf8JsonReader & x); |
| 7588 | 7654 | void to_json(json & j, const Utf8JsonReader & x); |
| 7589 | 7655 | |
| @@ -9791,6 +9857,17 @@ namespace quicktype { | ||
| 9791 | 9857 | j["list"] = x.get_list(); |
| 9792 | 9858 | } |
| 9793 | 9859 | |
| 9860 | + inline void from_json(const json & j, LocalDate& x) { | |
| 9861 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 9862 | + if (j.find("LocalDate") != j.end() && !j.at("LocalDate").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 9863 | + x.set_local_date(j.at("LocalDate").get<int64_t>()); | |
| 9864 | + } | |
| 9865 | + | |
| 9866 | + inline void to_json(json & j, const LocalDate & x) { | |
| 9867 | + j = json::object(); | |
| 9868 | + j["LocalDate"] = x.get_local_date(); | |
| 9869 | + } | |
| 9870 | + | |
| 9794 | 9871 | inline void from_json(const json & j, Locale& x) { |
| 9795 | 9872 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 9796 | 9873 | if (j.find("Locale") != j.end() && !j.at("Locale").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10000,17 +10077,6 @@ namespace quicktype { | ||
| 10000 | 10077 | j["new"] = x.get_new_new(); |
| 10001 | 10078 | } |
| 10002 | 10079 | |
| 10003 | - inline void from_json(const json & j, Noexcept& x) { | |
| 10004 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10005 | - if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10006 | - x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>()); | |
| 10007 | - } | |
| 10008 | - | |
| 10009 | - inline void to_json(json & j, const Noexcept & x) { | |
| 10010 | - j = json::object(); | |
| 10011 | - j["noexcept"] = x.get_noexcept_noexcept(); | |
| 10012 | - } | |
| 10013 | - | |
| 10014 | 10080 | inline void from_json(const json & j, Obj3& x) { |
| 10015 | 10081 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10016 | 10082 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10059,6 +10125,7 @@ namespace quicktype { | ||
| 10059 | 10125 | x.set_left(j.at("left").get<Left>()); |
| 10060 | 10126 | x.set_let(j.at("let").get<Let>()); |
| 10061 | 10127 | x.set_list(j.at("list").get<List>()); |
| 10128 | + x.set_local_date(j.at("LocalDate").get<LocalDate>()); | |
| 10062 | 10129 | x.set_locale(j.at("Locale").get<Locale>()); |
| 10063 | 10130 | x.set_lock(j.at("lock").get<Lock>()); |
| 10064 | 10131 | x.set_map(j.at("map").get<Map>()); |
| @@ -10078,7 +10145,6 @@ namespace quicktype { | ||
| 10078 | 10145 | x.set_obj3_mutable(j.at("mutable").get<Mutable>()); |
| 10079 | 10146 | x.set_obj3_namespace(j.at("namespace").get<Namespace>()); |
| 10080 | 10147 | x.set_obj3_new(j.at("new").get<New>()); |
| 10081 | - x.set_obj3_noexcept(j.at("noexcept").get<Noexcept>()); | |
| 10082 | 10148 | } |
| 10083 | 10149 | |
| 10084 | 10150 | inline void to_json(json & j, const Obj3 & x) { |
| @@ -10128,6 +10194,7 @@ namespace quicktype { | ||
| 10128 | 10194 | j["left"] = x.get_left(); |
| 10129 | 10195 | j["let"] = x.get_let(); |
| 10130 | 10196 | j["list"] = x.get_list(); |
| 10197 | + j["LocalDate"] = x.get_local_date(); | |
| 10131 | 10198 | j["Locale"] = x.get_locale(); |
| 10132 | 10199 | j["lock"] = x.get_lock(); |
| 10133 | 10200 | j["map"] = x.get_map(); |
| @@ -10147,7 +10214,6 @@ namespace quicktype { | ||
| 10147 | 10214 | j["mutable"] = x.get_obj3_mutable(); |
| 10148 | 10215 | j["namespace"] = x.get_obj3_namespace(); |
| 10149 | 10216 | j["new"] = x.get_obj3_new(); |
| 10150 | - j["noexcept"] = x.get_obj3_noexcept(); | |
| 10151 | 10217 | } |
| 10152 | 10218 | |
| 10153 | 10219 | inline void from_json(const json & j, NoSuchMethod& x) { |
| @@ -10260,6 +10326,17 @@ namespace quicktype { | ||
| 10260 | 10326 | j["number"] = x.get_number(); |
| 10261 | 10327 | } |
| 10262 | 10328 | |
| 10329 | + inline void from_json(const json & j, Noexcept& x) { | |
| 10330 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10331 | + if (j.find("noexcept") != j.end() && !j.at("noexcept").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10332 | + x.set_noexcept_noexcept(j.at("noexcept").get<int64_t>()); | |
| 10333 | + } | |
| 10334 | + | |
| 10335 | + inline void to_json(json & j, const Noexcept & x) { | |
| 10336 | + j = json::object(); | |
| 10337 | + j["noexcept"] = x.get_noexcept_noexcept(); | |
| 10338 | + } | |
| 10339 | + | |
| 10263 | 10340 | inline void from_json(const json & j, NoneClass& x) { |
| 10264 | 10341 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10265 | 10342 | if (j.find("none") != j.end() && !j.at("none").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10480,6 +10557,28 @@ namespace quicktype { | ||
| 10480 | 10557 | j["of"] = x.get_of(); |
| 10481 | 10558 | } |
| 10482 | 10559 | |
| 10560 | + inline void from_json(const json & j, OffsetDateTime& x) { | |
| 10561 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10562 | + if (j.find("OffsetDateTime") != j.end() && !j.at("OffsetDateTime").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10563 | + x.set_offset_date_time(j.at("OffsetDateTime").get<int64_t>()); | |
| 10564 | + } | |
| 10565 | + | |
| 10566 | + inline void to_json(json & j, const OffsetDateTime & x) { | |
| 10567 | + j = json::object(); | |
| 10568 | + j["OffsetDateTime"] = x.get_offset_date_time(); | |
| 10569 | + } | |
| 10570 | + | |
| 10571 | + inline void from_json(const json & j, OffsetTime& x) { | |
| 10572 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10573 | + if (j.find("OffsetTime") != j.end() && !j.at("OffsetTime").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10574 | + x.set_offset_time(j.at("OffsetTime").get<int64_t>()); | |
| 10575 | + } | |
| 10576 | + | |
| 10577 | + inline void to_json(json & j, const OffsetTime & x) { | |
| 10578 | + j = json::object(); | |
| 10579 | + j["OffsetTime"] = x.get_offset_time(); | |
| 10580 | + } | |
| 10581 | + | |
| 10483 | 10582 | inline void from_json(const json & j, Oneway& x) { |
| 10484 | 10583 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10485 | 10584 | if (j.find("oneway") != j.end() && !j.at("oneway").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10821,39 +10920,6 @@ namespace quicktype { | ||
| 10821 | 10920 | j["sbyte"] = x.get_sbyte(); |
| 10822 | 10921 | } |
| 10823 | 10922 | |
| 10824 | - inline void from_json(const json & j, Sealed& x) { | |
| 10825 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10826 | - if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10827 | - x.set_sealed(j.at("sealed").get<int64_t>()); | |
| 10828 | - } | |
| 10829 | - | |
| 10830 | - inline void to_json(json & j, const Sealed & x) { | |
| 10831 | - j = json::object(); | |
| 10832 | - j["sealed"] = x.get_sealed(); | |
| 10833 | - } | |
| 10834 | - | |
| 10835 | - inline void from_json(const json & j, Sel& x) { | |
| 10836 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10837 | - if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10838 | - x.set_sel(j.at("SEL").get<int64_t>()); | |
| 10839 | - } | |
| 10840 | - | |
| 10841 | - inline void to_json(json & j, const Sel & x) { | |
| 10842 | - j = json::object(); | |
| 10843 | - j["SEL"] = x.get_sel(); | |
| 10844 | - } | |
| 10845 | - | |
| 10846 | - inline void from_json(const json & j, Select& x) { | |
| 10847 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10848 | - if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 10849 | - x.set_select(j.at("select").get<int64_t>()); | |
| 10850 | - } | |
| 10851 | - | |
| 10852 | - inline void to_json(json & j, const Select & x) { | |
| 10853 | - j = json::object(); | |
| 10854 | - j["select"] = x.get_select(); | |
| 10855 | - } | |
| 10856 | - | |
| 10857 | 10923 | inline void from_json(const json & j, Obj4& x) { |
| 10858 | 10924 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10859 | 10925 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -10868,6 +10934,7 @@ namespace quicktype { | ||
| 10868 | 10934 | x.set_ns_string(j.at("NSString").get<NsString>()); |
| 10869 | 10935 | x.set_null(j.at("NULL").get<Null>()); |
| 10870 | 10936 | x.set_number(j.at("number").get<Number>()); |
| 10937 | + x.set_obj4_noexcept(j.at("noexcept").get<Noexcept>()); | |
| 10871 | 10938 | x.set_obj4_none(j.at("none").get<NoneClass>()); |
| 10872 | 10939 | x.set_obj4_not(j.at("not").get<Not>()); |
| 10873 | 10940 | x.set_obj4_not_eq(j.at("not_eq").get<NotEq>()); |
| @@ -10888,6 +10955,8 @@ namespace quicktype { | ||
| 10888 | 10955 | x.set_object(j.at("object").get<Object>()); |
| 10889 | 10956 | x.set_object_mapper(j.at("ObjectMapper").get<ObjectMapper>()); |
| 10890 | 10957 | x.set_of(j.at("of").get<Of>()); |
| 10958 | + x.set_offset_date_time(j.at("OffsetDateTime").get<OffsetDateTime>()); | |
| 10959 | + x.set_offset_time(j.at("OffsetTime").get<OffsetTime>()); | |
| 10891 | 10960 | x.set_oneway(j.at("oneway").get<Oneway>()); |
| 10892 | 10961 | x.set_open(j.at("open").get<Open>()); |
| 10893 | 10962 | x.set_optional(j.at("optional").get<Optional>()); |
| @@ -10919,9 +10988,6 @@ namespace quicktype { | ||
| 10919 | 10988 | x.set_runtime_type(j.at("runtimeType").get<RuntimeType>()); |
| 10920 | 10989 | x.set_s(j.at("s").get<S>()); |
| 10921 | 10990 | x.set_sbyte(j.at("sbyte").get<Sbyte>()); |
| 10922 | - x.set_sealed(j.at("sealed").get<Sealed>()); | |
| 10923 | - x.set_sel(j.at("SEL").get<Sel>()); | |
| 10924 | - x.set_select(j.at("select").get<Select>()); | |
| 10925 | 10991 | } |
| 10926 | 10992 | |
| 10927 | 10993 | inline void to_json(json & j, const Obj4 & x) { |
| @@ -10937,6 +11003,7 @@ namespace quicktype { | ||
| 10937 | 11003 | j["NSString"] = x.get_ns_string(); |
| 10938 | 11004 | j["NULL"] = x.get_null(); |
| 10939 | 11005 | j["number"] = x.get_number(); |
| 11006 | + j["noexcept"] = x.get_obj4_noexcept(); | |
| 10940 | 11007 | j["none"] = x.get_obj4_none(); |
| 10941 | 11008 | j["not"] = x.get_obj4_not(); |
| 10942 | 11009 | j["not_eq"] = x.get_obj4_not_eq(); |
| @@ -10957,6 +11024,8 @@ namespace quicktype { | ||
| 10957 | 11024 | j["object"] = x.get_object(); |
| 10958 | 11025 | j["ObjectMapper"] = x.get_object_mapper(); |
| 10959 | 11026 | j["of"] = x.get_of(); |
| 11027 | + j["OffsetDateTime"] = x.get_offset_date_time(); | |
| 11028 | + j["OffsetTime"] = x.get_offset_time(); | |
| 10960 | 11029 | j["oneway"] = x.get_oneway(); |
| 10961 | 11030 | j["open"] = x.get_open(); |
| 10962 | 11031 | j["optional"] = x.get_optional(); |
| @@ -10988,9 +11057,6 @@ namespace quicktype { | ||
| 10988 | 11057 | j["runtimeType"] = x.get_runtime_type(); |
| 10989 | 11058 | j["s"] = x.get_s(); |
| 10990 | 11059 | j["sbyte"] = x.get_sbyte(); |
| 10991 | - j["sealed"] = x.get_sealed(); | |
| 10992 | - j["SEL"] = x.get_sel(); | |
| 10993 | - j["select"] = x.get_select(); | |
| 10994 | 11060 | } |
| 10995 | 11061 | |
| 10996 | 11062 | inline void from_json(const json & j, KSerializer& x) { |
| @@ -11235,17 +11301,6 @@ namespace quicktype { | ||
| 11235 | 11301 | j["union"] = x.get_union_union(); |
| 11236 | 11302 | } |
| 11237 | 11303 | |
| 11238 | - inline void from_json(const json & j, Unsigned& x) { | |
| 11239 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11240 | - if (j.find("unsigned") != j.end() && !j.at("unsigned").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11241 | - x.set_unsigned_unsigned(j.at("unsigned").get<int64_t>()); | |
| 11242 | - } | |
| 11243 | - | |
| 11244 | - inline void to_json(json & j, const Unsigned & x) { | |
| 11245 | - j = json::object(); | |
| 11246 | - j["unsigned"] = x.get_unsigned_unsigned(); | |
| 11247 | - } | |
| 11248 | - | |
| 11249 | 11304 | inline void from_json(const json & j, PrimitiveKind& x) { |
| 11250 | 11305 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11251 | 11306 | if (j.find("PrimitiveKind") != j.end() && !j.at("PrimitiveKind").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11268,6 +11323,39 @@ namespace quicktype { | ||
| 11268 | 11323 | j["true"] = x.get_true_true(); |
| 11269 | 11324 | } |
| 11270 | 11325 | |
| 11326 | + inline void from_json(const json & j, Sealed& x) { | |
| 11327 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11328 | + if (j.find("sealed") != j.end() && !j.at("sealed").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11329 | + x.set_sealed(j.at("sealed").get<int64_t>()); | |
| 11330 | + } | |
| 11331 | + | |
| 11332 | + inline void to_json(json & j, const Sealed & x) { | |
| 11333 | + j = json::object(); | |
| 11334 | + j["sealed"] = x.get_sealed(); | |
| 11335 | + } | |
| 11336 | + | |
| 11337 | + inline void from_json(const json & j, Sel& x) { | |
| 11338 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11339 | + if (j.find("SEL") != j.end() && !j.at("SEL").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11340 | + x.set_sel(j.at("SEL").get<int64_t>()); | |
| 11341 | + } | |
| 11342 | + | |
| 11343 | + inline void to_json(json & j, const Sel & x) { | |
| 11344 | + j = json::object(); | |
| 11345 | + j["SEL"] = x.get_sel(); | |
| 11346 | + } | |
| 11347 | + | |
| 11348 | + inline void from_json(const json & j, Select& x) { | |
| 11349 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11350 | + if (j.find("select") != j.end() && !j.at("select").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11351 | + x.set_select(j.at("select").get<int64_t>()); | |
| 11352 | + } | |
| 11353 | + | |
| 11354 | + inline void to_json(json & j, const Select & x) { | |
| 11355 | + j = json::object(); | |
| 11356 | + j["select"] = x.get_select(); | |
| 11357 | + } | |
| 11358 | + | |
| 11271 | 11359 | inline void from_json(const json & j, Self& x) { |
| 11272 | 11360 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11273 | 11361 | if (j.find("Self") != j.end() && !j.at("Self").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11664,17 +11752,6 @@ namespace quicktype { | ||
| 11664 | 11752 | j["unowned"] = x.get_unowned(); |
| 11665 | 11753 | } |
| 11666 | 11754 | |
| 11667 | - inline void from_json(const json & j, Unsafe& x) { | |
| 11668 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11669 | - if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11670 | - x.set_unsafe(j.at("unsafe").get<int64_t>()); | |
| 11671 | - } | |
| 11672 | - | |
| 11673 | - inline void to_json(json & j, const Unsafe & x) { | |
| 11674 | - j = json::object(); | |
| 11675 | - j["unsafe"] = x.get_unsafe(); | |
| 11676 | - } | |
| 11677 | - | |
| 11678 | 11755 | inline void from_json(const json & j, UseSerializers& x) { |
| 11679 | 11756 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11680 | 11757 | if (j.find("UseSerializers") != j.end() && !j.at("UseSerializers").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11686,17 +11763,6 @@ namespace quicktype { | ||
| 11686 | 11763 | j["UseSerializers"] = x.get_use_serializers(); |
| 11687 | 11764 | } |
| 11688 | 11765 | |
| 11689 | - inline void from_json(const json & j, Ushort& x) { | |
| 11690 | - if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11691 | - if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11692 | - x.set_ushort(j.at("ushort").get<int64_t>()); | |
| 11693 | - } | |
| 11694 | - | |
| 11695 | - inline void to_json(json & j, const Ushort & x) { | |
| 11696 | - j = json::object(); | |
| 11697 | - j["ushort"] = x.get_ushort(); | |
| 11698 | - } | |
| 11699 | - | |
| 11700 | 11766 | inline void from_json(const json & j, Obj5& x) { |
| 11701 | 11767 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11702 | 11768 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -11723,9 +11789,11 @@ namespace quicktype { | ||
| 11723 | 11789 | x.set_obj5_typeid(j.at("typeid").get<Typeid>()); |
| 11724 | 11790 | x.set_obj5_typename(j.at("typename").get<Typename>()); |
| 11725 | 11791 | x.set_obj5_union(j.at("union").get<Union>()); |
| 11726 | - x.set_obj5_unsigned(j.at("unsigned").get<Unsigned>()); | |
| 11727 | 11792 | x.set_primitive_kind(j.at("PrimitiveKind").get<PrimitiveKind>()); |
| 11728 | 11793 | x.set_purple_true(j.at("true").get<TrueClass>()); |
| 11794 | + x.set_sealed(j.at("sealed").get<Sealed>()); | |
| 11795 | + x.set_sel(j.at("SEL").get<Sel>()); | |
| 11796 | + x.set_select(j.at("select").get<Select>()); | |
| 11729 | 11797 | x.set_self(j.at("Self").get<Self>()); |
| 11730 | 11798 | x.set_sendable(j.at("Sendable").get<Sendable>()); |
| 11731 | 11799 | x.set_serial_descriptor(j.at("SerialDescriptor").get<SerialDescriptor>()); |
| @@ -11762,9 +11830,7 @@ namespace quicktype { | ||
| 11762 | 11830 | x.set_unchecked(j.at("unchecked").get<Unchecked>()); |
| 11763 | 11831 | x.set_undefined(j.at("undefined").get<Undefined>()); |
| 11764 | 11832 | x.set_unowned(j.at("unowned").get<Unowned>()); |
| 11765 | - x.set_unsafe(j.at("unsafe").get<Unsafe>()); | |
| 11766 | 11833 | x.set_use_serializers(j.at("UseSerializers").get<UseSerializers>()); |
| 11767 | - x.set_ushort(j.at("ushort").get<Ushort>()); | |
| 11768 | 11834 | } |
| 11769 | 11835 | |
| 11770 | 11836 | inline void to_json(json & j, const Obj5 & x) { |
| @@ -11792,9 +11858,11 @@ namespace quicktype { | ||
| 11792 | 11858 | j["typeid"] = x.get_obj5_typeid(); |
| 11793 | 11859 | j["typename"] = x.get_obj5_typename(); |
| 11794 | 11860 | j["union"] = x.get_obj5_union(); |
| 11795 | - j["unsigned"] = x.get_obj5_unsigned(); | |
| 11796 | 11861 | j["PrimitiveKind"] = x.get_primitive_kind(); |
| 11797 | 11862 | j["true"] = x.get_purple_true(); |
| 11863 | + j["sealed"] = x.get_sealed(); | |
| 11864 | + j["SEL"] = x.get_sel(); | |
| 11865 | + j["select"] = x.get_select(); | |
| 11798 | 11866 | j["Self"] = x.get_self(); |
| 11799 | 11867 | j["Sendable"] = x.get_sendable(); |
| 11800 | 11868 | j["SerialDescriptor"] = x.get_serial_descriptor(); |
| @@ -11831,9 +11899,18 @@ namespace quicktype { | ||
| 11831 | 11899 | j["unchecked"] = x.get_unchecked(); |
| 11832 | 11900 | j["undefined"] = x.get_undefined(); |
| 11833 | 11901 | j["unowned"] = x.get_unowned(); |
| 11834 | - j["unsafe"] = x.get_unsafe(); | |
| 11835 | 11902 | j["UseSerializers"] = x.get_use_serializers(); |
| 11836 | - j["ushort"] = x.get_ushort(); | |
| 11903 | + } | |
| 11904 | + | |
| 11905 | + inline void from_json(const json & j, Unsigned& x) { | |
| 11906 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 11907 | + if (j.find("unsigned") != j.end() && !j.at("unsigned").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 11908 | + x.set_unsigned_unsigned(j.at("unsigned").get<int64_t>()); | |
| 11909 | + } | |
| 11910 | + | |
| 11911 | + inline void to_json(json & j, const Unsigned & x) { | |
| 11912 | + j = json::object(); | |
| 11913 | + j["unsigned"] = x.get_unsigned_unsigned(); | |
| 11837 | 11914 | } |
| 11838 | 11915 | |
| 11839 | 11916 | inline void from_json(const json & j, Using& x) { |
| @@ -11924,6 +12001,28 @@ namespace quicktype { | ||
| 11924 | 12001 | j["xor_eq"] = x.get_xor_eq_xor_eq(); |
| 11925 | 12002 | } |
| 11926 | 12003 | |
| 12004 | + inline void from_json(const json & j, Unsafe& x) { | |
| 12005 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 12006 | + if (j.find("unsafe") != j.end() && !j.at("unsafe").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 12007 | + x.set_unsafe(j.at("unsafe").get<int64_t>()); | |
| 12008 | + } | |
| 12009 | + | |
| 12010 | + inline void to_json(json & j, const Unsafe & x) { | |
| 12011 | + j = json::object(); | |
| 12012 | + j["unsafe"] = x.get_unsafe(); | |
| 12013 | + } | |
| 12014 | + | |
| 12015 | + inline void from_json(const json & j, Ushort& x) { | |
| 12016 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 12017 | + if (j.find("ushort") != j.end() && !j.at("ushort").is_number_integer()) throw std::runtime_error("Expected integer"); | |
| 12018 | + x.set_ushort(j.at("ushort").get<int64_t>()); | |
| 12019 | + } | |
| 12020 | + | |
| 12021 | + inline void to_json(json & j, const Ushort & x) { | |
| 12022 | + j = json::object(); | |
| 12023 | + j["ushort"] = x.get_ushort(); | |
| 12024 | + } | |
| 12025 | + | |
| 11927 | 12026 | inline void from_json(const json & j, Utf8JsonReader& x) { |
| 11928 | 12027 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 11929 | 12028 | if (j.find("Utf8JsonReader") != j.end() && !j.at("Utf8JsonReader").is_number_integer()) throw std::runtime_error("Expected integer"); |
| @@ -12038,6 +12137,7 @@ namespace quicktype { | ||
| 12038 | 12137 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 12039 | 12138 | if (j.find("dummy") != j.end() && !j.at("dummy").is_number_integer()) throw std::runtime_error("Expected integer"); |
| 12040 | 12139 | x.set_dummy(j.at("dummy").get<int64_t>()); |
| 12140 | + x.set_obj6_unsigned(j.at("unsigned").get<Unsigned>()); | |
| 12041 | 12141 | x.set_obj6_using(j.at("using").get<Using>()); |
| 12042 | 12142 | x.set_obj6_virtual(j.at("virtual").get<Virtual>()); |
| 12043 | 12143 | x.set_obj6_void(j.at("void").get<Void>()); |
| @@ -12046,6 +12146,8 @@ namespace quicktype { | ||
| 12046 | 12146 | x.set_obj6_while(j.at("while").get<While>()); |
| 12047 | 12147 | x.set_obj6_xor(j.at("xor").get<Xor>()); |
| 12048 | 12148 | x.set_obj6_xor_eq(j.at("xor_eq").get<XorEq>()); |
| 12149 | + x.set_unsafe(j.at("unsafe").get<Unsafe>()); | |
| 12150 | + x.set_ushort(j.at("ushort").get<Ushort>()); | |
| 12049 | 12151 | x.set_utf8_json_reader(j.at("Utf8JsonReader").get<Utf8JsonReader>()); |
| 12050 | 12152 | x.set_utf8_json_writer(j.at("Utf8JsonWriter").get<Utf8JsonWriter>()); |
| 12051 | 12153 | x.set_uuid(j.at("UUID").get<Uuid>()); |
| @@ -12061,6 +12163,7 @@ namespace quicktype { | ||
| 12061 | 12163 | inline void to_json(json & j, const Obj6 & x) { |
| 12062 | 12164 | j = json::object(); |
| 12063 | 12165 | j["dummy"] = x.get_dummy(); |
| 12166 | + j["unsigned"] = x.get_obj6_unsigned(); | |
| 12064 | 12167 | j["using"] = x.get_obj6_using(); |
| 12065 | 12168 | j["virtual"] = x.get_obj6_virtual(); |
| 12066 | 12169 | j["void"] = x.get_obj6_void(); |
| @@ -12069,6 +12172,8 @@ namespace quicktype { | ||
| 12069 | 12172 | j["while"] = x.get_obj6_while(); |
| 12070 | 12173 | j["xor"] = x.get_obj6_xor(); |
| 12071 | 12174 | j["xor_eq"] = x.get_obj6_xor_eq(); |
| 12175 | + j["unsafe"] = x.get_unsafe(); | |
| 12176 | + j["ushort"] = x.get_ushort(); | |
| 12072 | 12177 | j["Utf8JsonReader"] = x.get_utf8_json_reader(); |
| 12073 | 12178 | j["Utf8JsonWriter"] = x.get_utf8_json_writer(); |
| 12074 | 12179 | j["UUID"] = x.get_uuid(); |
Mcrystaldefault / TopLevel.cr+90 −60
| @@ -1246,6 +1246,9 @@ class Obj3 | ||
| 1246 | 1246 | |
| 1247 | 1247 | property list : List |
| 1248 | 1248 | |
| 1249 | + @[JSON::Field(key: "LocalDate")] | |
| 1250 | + property local_date : LocalDate | |
| 1251 | + | |
| 1249 | 1252 | @[JSON::Field(key: "Locale")] |
| 1250 | 1253 | property locale : Locale |
| 1251 | 1254 | |
| @@ -1275,8 +1278,6 @@ class Obj3 | ||
| 1275 | 1278 | @[JSON::Field(key: "NO")] |
| 1276 | 1279 | property no : No |
| 1277 | 1280 | |
| 1278 | - property noexcept : Noexcept | |
| 1279 | - | |
| 1280 | 1281 | @[JSON::Field(key: "if")] |
| 1281 | 1282 | property obj3_if : If |
| 1282 | 1283 | |
| @@ -1583,6 +1584,13 @@ class List | ||
| 1583 | 1584 | property list : Int64 |
| 1584 | 1585 | end |
| 1585 | 1586 | |
| 1587 | +class LocalDate | |
| 1588 | + include JSON::Serializable | |
| 1589 | + | |
| 1590 | + @[JSON::Field(key: "LocalDate")] | |
| 1591 | + property local_date : Int64 | |
| 1592 | +end | |
| 1593 | + | |
| 1586 | 1594 | class Locale |
| 1587 | 1595 | include JSON::Serializable |
| 1588 | 1596 | |
| @@ -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: "OffsetDateTime")] | |
| 1775 | + property offset_date_time : OffsetDateTime | |
| 1776 | + | |
| 1777 | + @[JSON::Field(key: "OffsetTime")] | |
| 1778 | + property offset_time : OffsetTime | |
| 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 OffsetDateTime | |
| 2023 | + include JSON::Serializable | |
| 2024 | + | |
| 2025 | + @[JSON::Field(key: "OffsetDateTime")] | |
| 2026 | + property offset_date_time : Int64 | |
| 2027 | +end | |
| 2028 | + | |
| 2029 | +class OffsetTime | |
| 2030 | + include JSON::Serializable | |
| 2031 | + | |
| 2032 | + @[JSON::Field(key: "OffsetTime")] | |
| 2033 | + property offset_time : Int64 | |
| 2034 | +end | |
| 2035 | + | |
| 2021 | 2036 | class Oneway |
| 2022 | 2037 | include JSON::Serializable |
| 2023 | 2038 | |
| @@ -2244,19 +2259,6 @@ 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 | |
| @@ -2265,6 +2267,9 @@ class Obj5 | ||
| 2265 | 2267 | @[JSON::Field(key: "KSerializer")] |
| 2266 | 2268 | property k_serializer : KSerializer |
| 2267 | 2269 | |
| 2270 | + @[JSON::Field(key: "select")] | |
| 2271 | + property obj5_select : Select | |
| 2272 | + | |
| 2268 | 2273 | @[JSON::Field(key: "Self")] |
| 2269 | 2274 | property obj5_self : Self |
| 2270 | 2275 | |
| @@ -2307,6 +2312,11 @@ class Obj5 | ||
| 2307 | 2312 | @[JSON::Field(key: "type")] |
| 2308 | 2313 | property purple_type : TypeClass |
| 2309 | 2314 | |
| 2315 | + property sealed : Sealed | |
| 2316 | + | |
| 2317 | + @[JSON::Field(key: "SEL")] | |
| 2318 | + property sel : Sel | |
| 2319 | + | |
| 2310 | 2320 | @[JSON::Field(key: "Sendable")] |
| 2311 | 2321 | property sendable : Sendable |
| 2312 | 2322 | |
| @@ -2410,14 +2420,8 @@ class Obj5 | ||
| 2410 | 2420 | |
| 2411 | 2421 | property unowned : Unowned |
| 2412 | 2422 | |
| 2413 | - property unsafe : Unsafe | |
| 2414 | - | |
| 2415 | - property unsigned : Unsigned | |
| 2416 | - | |
| 2417 | 2423 | @[JSON::Field(key: "UseSerializers")] |
| 2418 | 2424 | property use_serializers : UseSerializers |
| 2419 | - | |
| 2420 | - property ushort : Ushort | |
| 2421 | 2425 | end |
| 2422 | 2426 | |
| 2423 | 2427 | class KSerializer |
| @@ -2427,6 +2431,13 @@ class KSerializer | ||
| 2427 | 2431 | property k_serializer : Int64 |
| 2428 | 2432 | end |
| 2429 | 2433 | |
| 2434 | +class Select | |
| 2435 | + include JSON::Serializable | |
| 2436 | + | |
| 2437 | + @[JSON::Field(key: "select")] | |
| 2438 | + property select_select : Int64 | |
| 2439 | +end | |
| 2440 | + | |
| 2430 | 2441 | class Self |
| 2431 | 2442 | include JSON::Serializable |
| 2432 | 2443 | |
| @@ -2525,6 +2536,19 @@ class TypeClass | ||
| 2525 | 2536 | property type_type : Int64 |
| 2526 | 2537 | end |
| 2527 | 2538 | |
| 2539 | +class Sealed | |
| 2540 | + include JSON::Serializable | |
| 2541 | + | |
| 2542 | + property sealed : Int64 | |
| 2543 | +end | |
| 2544 | + | |
| 2545 | +class Sel | |
| 2546 | + include JSON::Serializable | |
| 2547 | + | |
| 2548 | + @[JSON::Field(key: "SEL")] | |
| 2549 | + property sel : Int64 | |
| 2550 | +end | |
| 2551 | + | |
| 2528 | 2552 | class Sendable |
| 2529 | 2553 | include JSON::Serializable |
| 2530 | 2554 | |
| @@ -2808,18 +2832,6 @@ class Unowned | ||
| 2808 | 2832 | property unowned : Int64 |
| 2809 | 2833 | end |
| 2810 | 2834 | |
| 2811 | -class Unsafe | |
| 2812 | - include JSON::Serializable | |
| 2813 | - | |
| 2814 | - property unsafe : Int64 | |
| 2815 | -end | |
| 2816 | - | |
| 2817 | -class Unsigned | |
| 2818 | - include JSON::Serializable | |
| 2819 | - | |
| 2820 | - property unsigned : Int64 | |
| 2821 | -end | |
| 2822 | - | |
| 2823 | 2835 | class UseSerializers |
| 2824 | 2836 | include JSON::Serializable |
| 2825 | 2837 | |
| @@ -2827,12 +2839,6 @@ class UseSerializers | ||
| 2827 | 2839 | property use_serializers : Int64 |
| 2828 | 2840 | end |
| 2829 | 2841 | |
| 2830 | -class Ushort | |
| 2831 | - include JSON::Serializable | |
| 2832 | - | |
| 2833 | - property ushort : Int64 | |
| 2834 | -end | |
| 2835 | - | |
| 2836 | 2842 | class Obj6 |
| 2837 | 2843 | include JSON::Serializable |
| 2838 | 2844 | |
| @@ -2847,6 +2853,12 @@ class Obj6 | ||
| 2847 | 2853 | @[JSON::Field(key: "yield")] |
| 2848 | 2854 | property obj6_yield : Yield |
| 2849 | 2855 | |
| 2856 | + property unsafe : Unsafe | |
| 2857 | + | |
| 2858 | + property unsigned : Unsigned | |
| 2859 | + | |
| 2860 | + property ushort : Ushort | |
| 2861 | + | |
| 2850 | 2862 | property using : Using |
| 2851 | 2863 | |
| 2852 | 2864 | @[JSON::Field(key: "Utf8JsonReader")] |
| @@ -2904,6 +2916,24 @@ class Yield | ||
| 2904 | 2916 | property yield_yield : Int64 |
| 2905 | 2917 | end |
| 2906 | 2918 | |
| 2919 | +class Unsafe | |
| 2920 | + include JSON::Serializable | |
| 2921 | + | |
| 2922 | + property unsafe : Int64 | |
| 2923 | +end | |
| 2924 | + | |
| 2925 | +class Unsigned | |
| 2926 | + include JSON::Serializable | |
| 2927 | + | |
| 2928 | + property unsigned : Int64 | |
| 2929 | +end | |
| 2930 | + | |
| 2931 | +class Ushort | |
| 2932 | + include JSON::Serializable | |
| 2933 | + | |
| 2934 | + property ushort : Int64 | |
| 2935 | +end | |
| 2936 | + | |
| 2907 | 2937 | class Using |
| 2908 | 2938 | include JSON::Serializable |
Mcsharp-recordsdefault / QuickType.cs+90 −63
| @@ -1360,6 +1360,9 @@ namespace QuickType | ||
| 1360 | 1360 | [JsonProperty("list", Required = Required.Always)] |
| 1361 | 1361 | public List List { get; set; } |
| 1362 | 1362 | |
| 1363 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1364 | + public LocalDate LocalDate { get; set; } | |
| 1365 | + | |
| 1363 | 1366 | [JsonProperty("Locale", Required = Required.Always)] |
| 1364 | 1367 | public Locale Locale { get; set; } |
| 1365 | 1368 | |
| @@ -1404,9 +1407,6 @@ namespace QuickType | ||
| 1404 | 1407 | |
| 1405 | 1408 | [JsonProperty("NO", Required = Required.Always)] |
| 1406 | 1409 | public No No { get; set; } |
| 1407 | - | |
| 1408 | - [JsonProperty("noexcept", Required = Required.Always)] | |
| 1409 | - public Noexcept Noexcept { get; set; } | |
| 1410 | 1410 | } |
| 1411 | 1411 | |
| 1412 | 1412 | public partial record Guard |
| @@ -1697,6 +1697,12 @@ namespace QuickType | ||
| 1697 | 1697 | public long ListList { get; set; } |
| 1698 | 1698 | } |
| 1699 | 1699 | |
| 1700 | + public partial record LocalDate | |
| 1701 | + { | |
| 1702 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1703 | + public long LocalDateLocalDate { get; set; } | |
| 1704 | + } | |
| 1705 | + | |
| 1700 | 1706 | public partial record Locale |
| 1701 | 1707 | { |
| 1702 | 1708 | [JsonProperty("Locale", Required = Required.Always)] |
| @@ -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 | |
| @@ -1861,6 +1864,12 @@ namespace QuickType | ||
| 1861 | 1864 | [JsonProperty("of", Required = Required.Always)] |
| 1862 | 1865 | public Of Of { get; set; } |
| 1863 | 1866 | |
| 1867 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 1868 | + public OffsetDateTime OffsetDateTime { get; set; } | |
| 1869 | + | |
| 1870 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 1871 | + public OffsetTime OffsetTime { get; set; } | |
| 1872 | + | |
| 1864 | 1873 | [JsonProperty("oneway", Required = Required.Always)] |
| 1865 | 1874 | public Oneway Oneway { get; set; } |
| 1866 | 1875 | |
| @@ -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)] |
| @@ -2117,6 +2123,18 @@ namespace QuickType | ||
| 2117 | 2123 | public long OfOf { get; set; } |
| 2118 | 2124 | } |
| 2119 | 2125 | |
| 2126 | + public partial record OffsetDateTime | |
| 2127 | + { | |
| 2128 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 2129 | + public long OffsetDateTimeOffsetDateTime { get; set; } | |
| 2130 | + } | |
| 2131 | + | |
| 2132 | + public partial record OffsetTime | |
| 2133 | + { | |
| 2134 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 2135 | + public long OffsetTimeOffsetTime { get; set; } | |
| 2136 | + } | |
| 2137 | + | |
| 2120 | 2138 | public partial record Oneway |
| 2121 | 2139 | { |
| 2122 | 2140 | [JsonProperty("oneway", 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)] |
| @@ -2401,6 +2401,15 @@ namespace QuickType | ||
| 2401 | 2401 | [JsonProperty("PrimitiveKind", Required = Required.Always)] |
| 2402 | 2402 | public PrimitiveKind PrimitiveKind { get; set; } |
| 2403 | 2403 | |
| 2404 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2405 | + public Sealed Sealed { get; set; } | |
| 2406 | + | |
| 2407 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2408 | + public Sel Sel { get; set; } | |
| 2409 | + | |
| 2410 | + [JsonProperty("select", Required = Required.Always)] | |
| 2411 | + public Select Select { get; set; } | |
| 2412 | + | |
| 2404 | 2413 | [JsonProperty("Self", Required = Required.Always)] |
| 2405 | 2414 | public Self Self { get; set; } |
| 2406 | 2415 | |
| @@ -2560,17 +2569,8 @@ namespace QuickType | ||
| 2560 | 2569 | [JsonProperty("unowned", Required = Required.Always)] |
| 2561 | 2570 | public Unowned Unowned { get; set; } |
| 2562 | 2571 | |
| 2563 | - [JsonProperty("unsafe", Required = Required.Always)] | |
| 2564 | - public Unsafe Unsafe { get; set; } | |
| 2565 | - | |
| 2566 | - [JsonProperty("unsigned", Required = Required.Always)] | |
| 2567 | - public Unsigned Unsigned { get; set; } | |
| 2568 | - | |
| 2569 | 2572 | [JsonProperty("UseSerializers", Required = Required.Always)] |
| 2570 | 2573 | public UseSerializers UseSerializers { get; set; } |
| 2571 | - | |
| 2572 | - [JsonProperty("ushort", Required = Required.Always)] | |
| 2573 | - public Ushort Ushort { get; set; } | |
| 2574 | 2574 | } |
| 2575 | 2575 | |
| 2576 | 2576 | public partial record KSerializer |
| @@ -2615,6 +2615,24 @@ namespace QuickType | ||
| 2615 | 2615 | public long PrimitiveKindPrimitiveKind { get; set; } |
| 2616 | 2616 | } |
| 2617 | 2617 | |
| 2618 | + public partial record Sealed | |
| 2619 | + { | |
| 2620 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2621 | + public long SealedSealed { get; set; } | |
| 2622 | + } | |
| 2623 | + | |
| 2624 | + public partial record Sel | |
| 2625 | + { | |
| 2626 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2627 | + public long SelSel { get; set; } | |
| 2628 | + } | |
| 2629 | + | |
| 2630 | + public partial record Select | |
| 2631 | + { | |
| 2632 | + [JsonProperty("select", Required = Required.Always)] | |
| 2633 | + public long SelectSelect { get; set; } | |
| 2634 | + } | |
| 2635 | + | |
| 2618 | 2636 | public partial record Self |
| 2619 | 2637 | { |
| 2620 | 2638 | [JsonProperty("Self", Required = Required.Always)] |
| @@ -2933,35 +2951,26 @@ namespace QuickType | ||
| 2933 | 2951 | public long UnownedUnowned { get; set; } |
| 2934 | 2952 | } |
| 2935 | 2953 | |
| 2936 | - public partial record Unsafe | |
| 2937 | - { | |
| 2938 | - [JsonProperty("unsafe", Required = Required.Always)] | |
| 2939 | - public long UnsafeUnsafe { get; set; } | |
| 2940 | - } | |
| 2941 | - | |
| 2942 | - public partial record Unsigned | |
| 2943 | - { | |
| 2944 | - [JsonProperty("unsigned", Required = Required.Always)] | |
| 2945 | - public long UnsignedUnsigned { get; set; } | |
| 2946 | - } | |
| 2947 | - | |
| 2948 | 2954 | public partial record UseSerializers |
| 2949 | 2955 | { |
| 2950 | 2956 | [JsonProperty("UseSerializers", Required = Required.Always)] |
| 2951 | 2957 | public long UseSerializersUseSerializers { get; set; } |
| 2952 | 2958 | } |
| 2953 | 2959 | |
| 2954 | - public partial record Ushort | |
| 2955 | - { | |
| 2956 | - [JsonProperty("ushort", Required = Required.Always)] | |
| 2957 | - public long UshortUshort { get; set; } | |
| 2958 | - } | |
| 2959 | - | |
| 2960 | 2960 | public partial record Obj6 |
| 2961 | 2961 | { |
| 2962 | 2962 | [JsonProperty("dummy", Required = Required.Always)] |
| 2963 | 2963 | public long Dummy { get; set; } |
| 2964 | 2964 | |
| 2965 | + [JsonProperty("unsafe", Required = Required.Always)] | |
| 2966 | + public Unsafe Unsafe { get; set; } | |
| 2967 | + | |
| 2968 | + [JsonProperty("unsigned", Required = Required.Always)] | |
| 2969 | + public Unsigned Unsigned { get; set; } | |
| 2970 | + | |
| 2971 | + [JsonProperty("ushort", Required = Required.Always)] | |
| 2972 | + public Ushort Ushort { get; set; } | |
| 2973 | + | |
| 2965 | 2974 | [JsonProperty("using", Required = Required.Always)] |
| 2966 | 2975 | public Using Using { get; set; } |
| 2967 | 2976 | |
| @@ -3017,6 +3026,24 @@ namespace QuickType | ||
| 3017 | 3026 | public Yield Yield { get; set; } |
| 3018 | 3027 | } |
| 3019 | 3028 | |
| 3029 | + public partial record Unsafe | |
| 3030 | + { | |
| 3031 | + [JsonProperty("unsafe", Required = Required.Always)] | |
| 3032 | + public long UnsafeUnsafe { get; set; } | |
| 3033 | + } | |
| 3034 | + | |
| 3035 | + public partial record Unsigned | |
| 3036 | + { | |
| 3037 | + [JsonProperty("unsigned", Required = Required.Always)] | |
| 3038 | + public long UnsignedUnsigned { get; set; } | |
| 3039 | + } | |
| 3040 | + | |
| 3041 | + public partial record Ushort | |
| 3042 | + { | |
| 3043 | + [JsonProperty("ushort", Required = Required.Always)] | |
| 3044 | + public long UshortUshort { get; set; } | |
| 3045 | + } | |
| 3046 | + | |
| 3020 | 3047 | public partial record Using |
| 3021 | 3048 | { |
| 3022 | 3049 | [JsonProperty("using", Required = Required.Always)] |
Mcsharp-SystemTextJsondefault / QuickType.cs+110 −77
| @@ -1671,6 +1671,10 @@ namespace QuickType | ||
| 1671 | 1671 | [JsonPropertyName("list")] |
| 1672 | 1672 | public List List { get; set; } |
| 1673 | 1673 | |
| 1674 | + [JsonRequired] | |
| 1675 | + [JsonPropertyName("LocalDate")] | |
| 1676 | + public LocalDate LocalDate { get; set; } | |
| 1677 | + | |
| 1674 | 1678 | [JsonRequired] |
| 1675 | 1679 | [JsonPropertyName("Locale")] |
| 1676 | 1680 | public Locale Locale { get; set; } |
| @@ -1730,10 +1734,6 @@ namespace QuickType | ||
| 1730 | 1734 | [JsonRequired] |
| 1731 | 1735 | [JsonPropertyName("NO")] |
| 1732 | 1736 | public No No { get; set; } |
| 1733 | - | |
| 1734 | - [JsonRequired] | |
| 1735 | - [JsonPropertyName("noexcept")] | |
| 1736 | - public Noexcept Noexcept { get; set; } | |
| 1737 | 1737 | } |
| 1738 | 1738 | |
| 1739 | 1739 | public partial class Guard |
| @@ -2072,6 +2072,13 @@ namespace QuickType | ||
| 2072 | 2072 | public long ListList { get; set; } |
| 2073 | 2073 | } |
| 2074 | 2074 | |
| 2075 | + public partial class LocalDate | |
| 2076 | + { | |
| 2077 | + [JsonRequired] | |
| 2078 | + [JsonPropertyName("LocalDate")] | |
| 2079 | + public long LocalDateLocalDate { get; set; } | |
| 2080 | + } | |
| 2081 | + | |
| 2075 | 2082 | public partial class Locale |
| 2076 | 2083 | { |
| 2077 | 2084 | [JsonRequired] |
| @@ -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; } |
| @@ -2270,6 +2274,14 @@ namespace QuickType | ||
| 2270 | 2274 | [JsonPropertyName("of")] |
| 2271 | 2275 | public Of Of { get; set; } |
| 2272 | 2276 | |
| 2277 | + [JsonRequired] | |
| 2278 | + [JsonPropertyName("OffsetDateTime")] | |
| 2279 | + public OffsetDateTime OffsetDateTime { get; set; } | |
| 2280 | + | |
| 2281 | + [JsonRequired] | |
| 2282 | + [JsonPropertyName("OffsetTime")] | |
| 2283 | + public OffsetTime OffsetTime { get; set; } | |
| 2284 | + | |
| 2273 | 2285 | [JsonRequired] |
| 2274 | 2286 | [JsonPropertyName("oneway")] |
| 2275 | 2287 | public Oneway Oneway { 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] |
| @@ -2587,6 +2594,20 @@ namespace QuickType | ||
| 2587 | 2594 | public long OfOf { get; set; } |
| 2588 | 2595 | } |
| 2589 | 2596 | |
| 2597 | + public partial class OffsetDateTime | |
| 2598 | + { | |
| 2599 | + [JsonRequired] | |
| 2600 | + [JsonPropertyName("OffsetDateTime")] | |
| 2601 | + public long OffsetDateTimeOffsetDateTime { get; set; } | |
| 2602 | + } | |
| 2603 | + | |
| 2604 | + public partial class OffsetTime | |
| 2605 | + { | |
| 2606 | + [JsonRequired] | |
| 2607 | + [JsonPropertyName("OffsetTime")] | |
| 2608 | + public long OffsetTimeOffsetTime { get; set; } | |
| 2609 | + } | |
| 2610 | + | |
| 2590 | 2611 | public partial class Oneway |
| 2591 | 2612 | { |
| 2592 | 2613 | [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] |
| @@ -2929,6 +2929,18 @@ namespace QuickType | ||
| 2929 | 2929 | [JsonPropertyName("PrimitiveKind")] |
| 2930 | 2930 | public PrimitiveKind PrimitiveKind { get; set; } |
| 2931 | 2931 | |
| 2932 | + [JsonRequired] | |
| 2933 | + [JsonPropertyName("sealed")] | |
| 2934 | + public Sealed Sealed { get; set; } | |
| 2935 | + | |
| 2936 | + [JsonRequired] | |
| 2937 | + [JsonPropertyName("SEL")] | |
| 2938 | + public Sel Sel { get; set; } | |
| 2939 | + | |
| 2940 | + [JsonRequired] | |
| 2941 | + [JsonPropertyName("select")] | |
| 2942 | + public Select Select { get; set; } | |
| 2943 | + | |
| 2932 | 2944 | [JsonRequired] |
| 2933 | 2945 | [JsonPropertyName("Self")] |
| 2934 | 2946 | public Self Self { get; set; } |
| @@ -3141,21 +3153,9 @@ namespace QuickType | ||
| 3141 | 3153 | [JsonPropertyName("unowned")] |
| 3142 | 3154 | public Unowned Unowned { get; set; } |
| 3143 | 3155 | |
| 3144 | - [JsonRequired] | |
| 3145 | - [JsonPropertyName("unsafe")] | |
| 3146 | - public Unsafe Unsafe { get; set; } | |
| 3147 | - | |
| 3148 | - [JsonRequired] | |
| 3149 | - [JsonPropertyName("unsigned")] | |
| 3150 | - public Unsigned Unsigned { get; set; } | |
| 3151 | - | |
| 3152 | 3156 | [JsonRequired] |
| 3153 | 3157 | [JsonPropertyName("UseSerializers")] |
| 3154 | 3158 | public UseSerializers UseSerializers { get; set; } |
| 3155 | - | |
| 3156 | - [JsonRequired] | |
| 3157 | - [JsonPropertyName("ushort")] | |
| 3158 | - public Ushort Ushort { get; set; } | |
| 3159 | 3159 | } |
| 3160 | 3160 | |
| 3161 | 3161 | public partial class KSerializer |
| @@ -3207,6 +3207,27 @@ namespace QuickType | ||
| 3207 | 3207 | public long PrimitiveKindPrimitiveKind { get; set; } |
| 3208 | 3208 | } |
| 3209 | 3209 | |
| 3210 | + public partial class Sealed | |
| 3211 | + { | |
| 3212 | + [JsonRequired] | |
| 3213 | + [JsonPropertyName("sealed")] | |
| 3214 | + public long SealedSealed { get; set; } | |
| 3215 | + } | |
| 3216 | + | |
| 3217 | + public partial class Sel | |
| 3218 | + { | |
| 3219 | + [JsonRequired] | |
| 3220 | + [JsonPropertyName("SEL")] | |
| 3221 | + public long SelSel { get; set; } | |
| 3222 | + } | |
| 3223 | + | |
| 3224 | + public partial class Select | |
| 3225 | + { | |
| 3226 | + [JsonRequired] | |
| 3227 | + [JsonPropertyName("select")] | |
| 3228 | + public long SelectSelect { get; set; } | |
| 3229 | + } | |
| 3230 | + | |
| 3210 | 3231 | public partial class Self |
| 3211 | 3232 | { |
| 3212 | 3233 | [JsonRequired] |
| @@ -3578,20 +3599,6 @@ namespace QuickType | ||
| 3578 | 3599 | public long UnownedUnowned { get; set; } |
| 3579 | 3600 | } |
| 3580 | 3601 | |
| 3581 | - public partial class Unsafe | |
| 3582 | - { | |
| 3583 | - [JsonRequired] | |
| 3584 | - [JsonPropertyName("unsafe")] | |
| 3585 | - public long UnsafeUnsafe { get; set; } | |
| 3586 | - } | |
| 3587 | - | |
| 3588 | - public partial class Unsigned | |
| 3589 | - { | |
| 3590 | - [JsonRequired] | |
| 3591 | - [JsonPropertyName("unsigned")] | |
| 3592 | - public long UnsignedUnsigned { get; set; } | |
| 3593 | - } | |
| 3594 | - | |
| 3595 | 3602 | public partial class UseSerializers |
| 3596 | 3603 | { |
| 3597 | 3604 | [JsonRequired] |
| @@ -3599,19 +3606,24 @@ namespace QuickType | ||
| 3599 | 3606 | public long UseSerializersUseSerializers { get; set; } |
| 3600 | 3607 | } |
| 3601 | 3608 | |
| 3602 | - public partial class Ushort | |
| 3603 | - { | |
| 3604 | - [JsonRequired] | |
| 3605 | - [JsonPropertyName("ushort")] | |
| 3606 | - public long UshortUshort { get; set; } | |
| 3607 | - } | |
| 3608 | - | |
| 3609 | 3609 | public partial class Obj6 |
| 3610 | 3610 | { |
| 3611 | 3611 | [JsonRequired] |
| 3612 | 3612 | [JsonPropertyName("dummy")] |
| 3613 | 3613 | public long Dummy { get; set; } |
| 3614 | 3614 | |
| 3615 | + [JsonRequired] | |
| 3616 | + [JsonPropertyName("unsafe")] | |
| 3617 | + public Unsafe Unsafe { get; set; } | |
| 3618 | + | |
| 3619 | + [JsonRequired] | |
| 3620 | + [JsonPropertyName("unsigned")] | |
| 3621 | + public Unsigned Unsigned { get; set; } | |
| 3622 | + | |
| 3623 | + [JsonRequired] | |
| 3624 | + [JsonPropertyName("ushort")] | |
| 3625 | + public Ushort Ushort { get; set; } | |
| 3626 | + | |
| 3615 | 3627 | [JsonRequired] |
| 3616 | 3628 | [JsonPropertyName("using")] |
| 3617 | 3629 | public Using Using { get; set; } |
| @@ -3685,6 +3697,27 @@ namespace QuickType | ||
| 3685 | 3697 | public Yield Yield { get; set; } |
| 3686 | 3698 | } |
| 3687 | 3699 | |
| 3700 | + public partial class Unsafe | |
| 3701 | + { | |
| 3702 | + [JsonRequired] | |
| 3703 | + [JsonPropertyName("unsafe")] | |
| 3704 | + public long UnsafeUnsafe { get; set; } | |
| 3705 | + } | |
| 3706 | + | |
| 3707 | + public partial class Unsigned | |
| 3708 | + { | |
| 3709 | + [JsonRequired] | |
| 3710 | + [JsonPropertyName("unsigned")] | |
| 3711 | + public long UnsignedUnsigned { get; set; } | |
| 3712 | + } | |
| 3713 | + | |
| 3714 | + public partial class Ushort | |
| 3715 | + { | |
| 3716 | + [JsonRequired] | |
| 3717 | + [JsonPropertyName("ushort")] | |
| 3718 | + public long UshortUshort { get; set; } | |
| 3719 | + } | |
| 3720 | + | |
| 3688 | 3721 | public partial class Using |
| 3689 | 3722 | { |
| 3690 | 3723 | [JsonRequired] |
Mcsharpdefault / QuickType.cs+90 −63
| @@ -1360,6 +1360,9 @@ namespace QuickType | ||
| 1360 | 1360 | [JsonProperty("list", Required = Required.Always)] |
| 1361 | 1361 | public List List { get; set; } |
| 1362 | 1362 | |
| 1363 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1364 | + public LocalDate LocalDate { get; set; } | |
| 1365 | + | |
| 1363 | 1366 | [JsonProperty("Locale", Required = Required.Always)] |
| 1364 | 1367 | public Locale Locale { get; set; } |
| 1365 | 1368 | |
| @@ -1404,9 +1407,6 @@ namespace QuickType | ||
| 1404 | 1407 | |
| 1405 | 1408 | [JsonProperty("NO", Required = Required.Always)] |
| 1406 | 1409 | public No No { get; set; } |
| 1407 | - | |
| 1408 | - [JsonProperty("noexcept", Required = Required.Always)] | |
| 1409 | - public Noexcept Noexcept { get; set; } | |
| 1410 | 1410 | } |
| 1411 | 1411 | |
| 1412 | 1412 | public partial class Guard |
| @@ -1697,6 +1697,12 @@ namespace QuickType | ||
| 1697 | 1697 | public long ListList { get; set; } |
| 1698 | 1698 | } |
| 1699 | 1699 | |
| 1700 | + public partial class LocalDate | |
| 1701 | + { | |
| 1702 | + [JsonProperty("LocalDate", Required = Required.Always)] | |
| 1703 | + public long LocalDateLocalDate { get; set; } | |
| 1704 | + } | |
| 1705 | + | |
| 1700 | 1706 | public partial class Locale |
| 1701 | 1707 | { |
| 1702 | 1708 | [JsonProperty("Locale", Required = Required.Always)] |
| @@ -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 | |
| @@ -1858,6 +1861,12 @@ namespace QuickType | ||
| 1858 | 1861 | [JsonProperty("of", Required = Required.Always)] |
| 1859 | 1862 | public Of Of { get; set; } |
| 1860 | 1863 | |
| 1864 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 1865 | + public OffsetDateTime OffsetDateTime { get; set; } | |
| 1866 | + | |
| 1867 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 1868 | + public OffsetTime OffsetTime { get; set; } | |
| 1869 | + | |
| 1861 | 1870 | [JsonProperty("oneway", Required = Required.Always)] |
| 1862 | 1871 | public Oneway Oneway { 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 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)] |
| @@ -2111,6 +2117,18 @@ namespace QuickType | ||
| 2111 | 2117 | public long OfOf { get; set; } |
| 2112 | 2118 | } |
| 2113 | 2119 | |
| 2120 | + public partial class OffsetDateTime | |
| 2121 | + { | |
| 2122 | + [JsonProperty("OffsetDateTime", Required = Required.Always)] | |
| 2123 | + public long OffsetDateTimeOffsetDateTime { get; set; } | |
| 2124 | + } | |
| 2125 | + | |
| 2126 | + public partial class OffsetTime | |
| 2127 | + { | |
| 2128 | + [JsonProperty("OffsetTime", Required = Required.Always)] | |
| 2129 | + public long OffsetTimeOffsetTime { get; set; } | |
| 2130 | + } | |
| 2131 | + | |
| 2114 | 2132 | public partial class Oneway |
| 2115 | 2133 | { |
| 2116 | 2134 | [JsonProperty("oneway", 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)] |
| @@ -2401,6 +2401,15 @@ namespace QuickType | ||
| 2401 | 2401 | [JsonProperty("PrimitiveKind", Required = Required.Always)] |
| 2402 | 2402 | public PrimitiveKind PrimitiveKind { get; set; } |
| 2403 | 2403 | |
| 2404 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2405 | + public Sealed Sealed { get; set; } | |
| 2406 | + | |
| 2407 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2408 | + public Sel Sel { get; set; } | |
| 2409 | + | |
| 2410 | + [JsonProperty("select", Required = Required.Always)] | |
| 2411 | + public Select Select { get; set; } | |
| 2412 | + | |
| 2404 | 2413 | [JsonProperty("Self", Required = Required.Always)] |
| 2405 | 2414 | public Self Self { get; set; } |
| 2406 | 2415 | |
| @@ -2560,17 +2569,8 @@ namespace QuickType | ||
| 2560 | 2569 | [JsonProperty("unowned", Required = Required.Always)] |
| 2561 | 2570 | public Unowned Unowned { get; set; } |
| 2562 | 2571 | |
| 2563 | - [JsonProperty("unsafe", Required = Required.Always)] | |
| 2564 | - public Unsafe Unsafe { get; set; } | |
| 2565 | - | |
| 2566 | - [JsonProperty("unsigned", Required = Required.Always)] | |
| 2567 | - public Unsigned Unsigned { get; set; } | |
| 2568 | - | |
| 2569 | 2572 | [JsonProperty("UseSerializers", Required = Required.Always)] |
| 2570 | 2573 | public UseSerializers UseSerializers { get; set; } |
| 2571 | - | |
| 2572 | - [JsonProperty("ushort", Required = Required.Always)] | |
| 2573 | - public Ushort Ushort { get; set; } | |
| 2574 | 2574 | } |
| 2575 | 2575 | |
| 2576 | 2576 | public partial class KSerializer |
| @@ -2615,6 +2615,24 @@ namespace QuickType | ||
| 2615 | 2615 | public long PrimitiveKindPrimitiveKind { get; set; } |
| 2616 | 2616 | } |
| 2617 | 2617 | |
| 2618 | + public partial class Sealed | |
| 2619 | + { | |
| 2620 | + [JsonProperty("sealed", Required = Required.Always)] | |
| 2621 | + public long SealedSealed { get; set; } | |
| 2622 | + } | |
| 2623 | + | |
| 2624 | + public partial class Sel | |
| 2625 | + { | |
| 2626 | + [JsonProperty("SEL", Required = Required.Always)] | |
| 2627 | + public long SelSel { get; set; } | |
| 2628 | + } | |
| 2629 | + | |
| 2630 | + public partial class Select | |
| 2631 | + { | |
| 2632 | + [JsonProperty("select", Required = Required.Always)] | |
| 2633 | + public long SelectSelect { get; set; } | |
| 2634 | + } | |
| 2635 | + | |
| 2618 | 2636 | public partial class Self |
| 2619 | 2637 | { |
| 2620 | 2638 | [JsonProperty("Self", Required = Required.Always)] |
| @@ -2933,35 +2951,26 @@ namespace QuickType | ||
| 2933 | 2951 | public long UnownedUnowned { get; set; } |
| 2934 | 2952 | } |
| 2935 | 2953 | |
| 2936 | - public partial class Unsafe | |
| 2937 | - { | |
| 2938 | - [JsonProperty("unsafe", Required = Required.Always)] | |
| 2939 | - public long UnsafeUnsafe { get; set; } | |
| 2940 | - } | |
| 2941 | - | |
| 2942 | - public partial class Unsigned | |
| 2943 | - { | |
| 2944 | - [JsonProperty("unsigned", Required = Required.Always)] | |
| 2945 | - public long UnsignedUnsigned { get; set; } | |
| 2946 | - } | |
| 2947 | - | |
| 2948 | 2954 | public partial class UseSerializers |
| 2949 | 2955 | { |
| 2950 | 2956 | [JsonProperty("UseSerializers", Required = Required.Always)] |
| 2951 | 2957 | public long UseSerializersUseSerializers { get; set; } |
| 2952 | 2958 | } |
| 2953 | 2959 | |
| 2954 | - public partial class Ushort | |
| 2955 | - { | |
| 2956 | - [JsonProperty("ushort", Required = Required.Always)] | |
| 2957 | - public long UshortUshort { get; set; } | |
| 2958 | - } | |
| 2959 | - | |
| 2960 | 2960 | public partial class Obj6 |
| 2961 | 2961 | { |
| 2962 | 2962 | [JsonProperty("dummy", Required = Required.Always)] |
| 2963 | 2963 | public long Dummy { get; set; } |
| 2964 | 2964 | |
| 2965 | + [JsonProperty("unsafe", Required = Required.Always)] | |
| 2966 | + public Unsafe Unsafe { get; set; } | |
| 2967 | + | |
| 2968 | + [JsonProperty("unsigned", Required = Required.Always)] | |
| 2969 | + public Unsigned Unsigned { get; set; } | |
| 2970 | + | |
| 2971 | + [JsonProperty("ushort", Required = Required.Always)] | |
| 2972 | + public Ushort Ushort { get; set; } | |
| 2973 | + | |
| 2965 | 2974 | [JsonProperty("using", Required = Required.Always)] |
| 2966 | 2975 | public Using Using { get; set; } |
| 2967 | 2976 | |
| @@ -3017,6 +3026,24 @@ namespace QuickType | ||
| 3017 | 3026 | public Yield Yield { get; set; } |
| 3018 | 3027 | } |
| 3019 | 3028 | |
| 3029 | + public partial class Unsafe | |
| 3030 | + { | |
| 3031 | + [JsonProperty("unsafe", Required = Required.Always)] | |
| 3032 | + public long UnsafeUnsafe { get; set; } | |
| 3033 | + } | |
| 3034 | + | |
| 3035 | + public partial class Unsigned | |
| 3036 | + { | |
| 3037 | + [JsonProperty("unsigned", Required = Required.Always)] | |
| 3038 | + public long UnsignedUnsigned { get; set; } | |
| 3039 | + } | |
| 3040 | + | |
| 3041 | + public partial class Ushort | |
| 3042 | + { | |
| 3043 | + [JsonProperty("ushort", Required = Required.Always)] | |
| 3044 | + public long UshortUshort { get; set; } | |
| 3045 | + } | |
| 3046 | + | |
| 3020 | 3047 | public partial class Using |
| 3021 | 3048 | { |
| 3022 | 3049 | [JsonProperty("using", Required = Required.Always)] |
Mdartdefault / TopLevel.dart+200 −140
| @@ -2692,6 +2692,7 @@ class Obj3 { | ||
| 2692 | 2692 | final Left left; |
| 2693 | 2693 | final Let let; |
| 2694 | 2694 | final ListClass list; |
| 2695 | + final LocalDate localDate; | |
| 2695 | 2696 | final Locale locale; |
| 2696 | 2697 | final Lock lock; |
| 2697 | 2698 | final Long long; |
| @@ -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; |
| @@ -2759,6 +2759,7 @@ class Obj3 { | ||
| 2759 | 2759 | required this.left, |
| 2760 | 2760 | required this.let, |
| 2761 | 2761 | required this.list, |
| 2762 | + required this.localDate, | |
| 2762 | 2763 | required this.locale, |
| 2763 | 2764 | required this.lock, |
| 2764 | 2765 | required this.long, |
| @@ -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, |
| @@ -2827,6 +2827,7 @@ class Obj3 { | ||
| 2827 | 2827 | left: Left.fromJson(json["left"]), |
| 2828 | 2828 | let: Let.fromJson(json["let"]), |
| 2829 | 2829 | list: ListClass.fromJson(json["list"]), |
| 2830 | + localDate: LocalDate.fromJson(json["LocalDate"]), | |
| 2830 | 2831 | locale: Locale.fromJson(json["Locale"]), |
| 2831 | 2832 | lock: Lock.fromJson(json["lock"]), |
| 2832 | 2833 | long: Long.fromJson(json["long"]), |
| @@ -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"]), |
| @@ -2895,6 +2895,7 @@ class Obj3 { | ||
| 2895 | 2895 | "left": left.toJson(), |
| 2896 | 2896 | "let": let.toJson(), |
| 2897 | 2897 | "list": list.toJson(), |
| 2898 | + "LocalDate": localDate.toJson(), | |
| 2898 | 2899 | "Locale": locale.toJson(), |
| 2899 | 2900 | "lock": lock.toJson(), |
| 2900 | 2901 | "long": long.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(), |
| @@ -3562,6 +3562,22 @@ class ListClass { | ||
| 3562 | 3562 | }; |
| 3563 | 3563 | } |
| 3564 | 3564 | |
| 3565 | +class LocalDate { | |
| 3566 | + final int localDate; | |
| 3567 | + | |
| 3568 | + LocalDate({ | |
| 3569 | + required this.localDate, | |
| 3570 | + }); | |
| 3571 | + | |
| 3572 | + factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate( | |
| 3573 | + localDate: json["LocalDate"], | |
| 3574 | + ); | |
| 3575 | + | |
| 3576 | + Map<String, dynamic> toJson() => { | |
| 3577 | + "LocalDate": localDate, | |
| 3578 | + }; | |
| 3579 | +} | |
| 3580 | + | |
| 3565 | 3581 | class Locale { |
| 3566 | 3582 | final int locale; |
| 3567 | 3583 | |
| @@ -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; |
| @@ -3969,6 +3970,8 @@ class Obj4 { | ||
| 3969 | 3970 | final Object object; |
| 3970 | 3971 | final ObjectMapper objectMapper; |
| 3971 | 3972 | final Of of; |
| 3973 | + final OffsetDateTime offsetDateTime; | |
| 3974 | + final OffsetTime offsetTime; | |
| 3972 | 3975 | final Oneway oneway; |
| 3973 | 3976 | final Open open; |
| 3974 | 3977 | final Optional optional; |
| @@ -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, |
| @@ -4036,6 +4037,8 @@ class Obj4 { | ||
| 4036 | 4037 | required this.object, |
| 4037 | 4038 | required this.objectMapper, |
| 4038 | 4039 | required this.of, |
| 4040 | + required this.offsetDateTime, | |
| 4041 | + required this.offsetTime, | |
| 4039 | 4042 | required this.oneway, |
| 4040 | 4043 | required this.open, |
| 4041 | 4044 | required this.optional, |
| @@ -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"]), |
| @@ -4104,6 +4105,8 @@ class Obj4 { | ||
| 4104 | 4105 | object: Object.fromJson(json["object"]), |
| 4105 | 4106 | objectMapper: ObjectMapper.fromJson(json["ObjectMapper"]), |
| 4106 | 4107 | of: Of.fromJson(json["of"]), |
| 4108 | + offsetDateTime: OffsetDateTime.fromJson(json["OffsetDateTime"]), | |
| 4109 | + offsetTime: OffsetTime.fromJson(json["OffsetTime"]), | |
| 4107 | 4110 | oneway: Oneway.fromJson(json["oneway"]), |
| 4108 | 4111 | open: Open.fromJson(json["open"]), |
| 4109 | 4112 | optional: Optional.fromJson(json["optional"]), |
| @@ -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(), |
| @@ -4172,6 +4173,8 @@ class Obj4 { | ||
| 4172 | 4173 | "object": object.toJson(), |
| 4173 | 4174 | "ObjectMapper": objectMapper.toJson(), |
| 4174 | 4175 | "of": of.toJson(), |
| 4176 | + "OffsetDateTime": offsetDateTime.toJson(), | |
| 4177 | + "OffsetTime": offsetTime.toJson(), | |
| 4175 | 4178 | "oneway": oneway.toJson(), |
| 4176 | 4179 | "open": open.toJson(), |
| 4177 | 4180 | "optional": optional.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 | |
| @@ -4554,6 +4570,38 @@ class Of { | ||
| 4554 | 4570 | }; |
| 4555 | 4571 | } |
| 4556 | 4572 | |
| 4573 | +class OffsetDateTime { | |
| 4574 | + final int offsetDateTime; | |
| 4575 | + | |
| 4576 | + OffsetDateTime({ | |
| 4577 | + required this.offsetDateTime, | |
| 4578 | + }); | |
| 4579 | + | |
| 4580 | + factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime( | |
| 4581 | + offsetDateTime: json["OffsetDateTime"], | |
| 4582 | + ); | |
| 4583 | + | |
| 4584 | + Map<String, dynamic> toJson() => { | |
| 4585 | + "OffsetDateTime": offsetDateTime, | |
| 4586 | + }; | |
| 4587 | +} | |
| 4588 | + | |
| 4589 | +class OffsetTime { | |
| 4590 | + final int offsetTime; | |
| 4591 | + | |
| 4592 | + OffsetTime({ | |
| 4593 | + required this.offsetTime, | |
| 4594 | + }); | |
| 4595 | + | |
| 4596 | + factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime( | |
| 4597 | + offsetTime: json["OffsetTime"], | |
| 4598 | + ); | |
| 4599 | + | |
| 4600 | + Map<String, dynamic> toJson() => { | |
| 4601 | + "OffsetTime": offsetTime, | |
| 4602 | + }; | |
| 4603 | +} | |
| 4604 | + | |
| 4557 | 4605 | class Oneway { |
| 4558 | 4606 | final int oneway; |
| 4559 | 4607 | |
| @@ -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 KSerializer kSerializer; |
| @@ -5260,6 +5260,9 @@ class Obj5 { | ||
| 5260 | 5260 | final Typedef obj5Typedef; |
| 5261 | 5261 | final PrimitiveKind primitiveKind; |
| 5262 | 5262 | final TrueClass purpleTrue; |
| 5263 | + final Sealed sealed; | |
| 5264 | + final Sel sel; | |
| 5265 | + final Select select; | |
| 5263 | 5266 | final Self self; |
| 5264 | 5267 | final Sendable sendable; |
| 5265 | 5268 | final SerialDescriptor serialDescriptor; |
| @@ -5304,10 +5307,7 @@ class Obj5 { | ||
| 5304 | 5307 | final Undefined undefined; |
| 5305 | 5308 | final Union union; |
| 5306 | 5309 | final Unowned unowned; |
| 5307 | - final Unsafe unsafe; | |
| 5308 | - final Unsigned unsigned; | |
| 5309 | 5310 | final UseSerializers useSerializers; |
| 5310 | - final Ushort ushort; | |
| 5311 | 5311 | |
| 5312 | 5312 | Obj5({ |
| 5313 | 5313 | required this.dummy, |
| @@ -5327,6 +5327,9 @@ class Obj5 { | ||
| 5327 | 5327 | required this.obj5Typedef, |
| 5328 | 5328 | required this.primitiveKind, |
| 5329 | 5329 | required this.purpleTrue, |
| 5330 | + required this.sealed, | |
| 5331 | + required this.sel, | |
| 5332 | + required this.select, | |
| 5330 | 5333 | required this.self, |
| 5331 | 5334 | required this.sendable, |
| 5332 | 5335 | required this.serialDescriptor, |
| @@ -5371,10 +5374,7 @@ class Obj5 { | ||
| 5371 | 5374 | required this.undefined, |
| 5372 | 5375 | required this.union, |
| 5373 | 5376 | required this.unowned, |
| 5374 | - required this.unsafe, | |
| 5375 | - required this.unsigned, | |
| 5376 | 5377 | required this.useSerializers, |
| 5377 | - required this.ushort, | |
| 5378 | 5378 | }); |
| 5379 | 5379 | |
| 5380 | 5380 | factory Obj5.fromJson(Map<String, dynamic> json) => Obj5( |
| @@ -5395,6 +5395,9 @@ class Obj5 { | ||
| 5395 | 5395 | obj5Typedef: Typedef.fromJson(json["typedef"]), |
| 5396 | 5396 | primitiveKind: PrimitiveKind.fromJson(json["PrimitiveKind"]), |
| 5397 | 5397 | purpleTrue: TrueClass.fromJson(json["true"]), |
| 5398 | + sealed: Sealed.fromJson(json["sealed"]), | |
| 5399 | + sel: Sel.fromJson(json["SEL"]), | |
| 5400 | + select: Select.fromJson(json["select"]), | |
| 5398 | 5401 | self: Self.fromJson(json["Self"]), |
| 5399 | 5402 | sendable: Sendable.fromJson(json["Sendable"]), |
| 5400 | 5403 | serialDescriptor: SerialDescriptor.fromJson(json["SerialDescriptor"]), |
| @@ -5439,10 +5442,7 @@ class Obj5 { | ||
| 5439 | 5442 | undefined: Undefined.fromJson(json["undefined"]), |
| 5440 | 5443 | union: Union.fromJson(json["union"]), |
| 5441 | 5444 | unowned: Unowned.fromJson(json["unowned"]), |
| 5442 | - unsafe: Unsafe.fromJson(json["unsafe"]), | |
| 5443 | - unsigned: Unsigned.fromJson(json["unsigned"]), | |
| 5444 | 5445 | useSerializers: UseSerializers.fromJson(json["UseSerializers"]), |
| 5445 | - ushort: Ushort.fromJson(json["ushort"]), | |
| 5446 | 5446 | ); |
| 5447 | 5447 | |
| 5448 | 5448 | Map<String, dynamic> toJson() => { |
| @@ -5463,6 +5463,9 @@ class Obj5 { | ||
| 5463 | 5463 | "typedef": obj5Typedef.toJson(), |
| 5464 | 5464 | "PrimitiveKind": primitiveKind.toJson(), |
| 5465 | 5465 | "true": purpleTrue.toJson(), |
| 5466 | + "sealed": sealed.toJson(), | |
| 5467 | + "SEL": sel.toJson(), | |
| 5468 | + "select": select.toJson(), | |
| 5466 | 5469 | "Self": self.toJson(), |
| 5467 | 5470 | "Sendable": sendable.toJson(), |
| 5468 | 5471 | "SerialDescriptor": serialDescriptor.toJson(), |
| @@ -5507,10 +5510,7 @@ class Obj5 { | ||
| 5507 | 5510 | "undefined": undefined.toJson(), |
| 5508 | 5511 | "union": union.toJson(), |
| 5509 | 5512 | "unowned": unowned.toJson(), |
| 5510 | - "unsafe": unsafe.toJson(), | |
| 5511 | - "unsigned": unsigned.toJson(), | |
| 5512 | 5513 | "UseSerializers": useSerializers.toJson(), |
| 5513 | - "ushort": ushort.toJson(), | |
| 5514 | 5514 | }; |
| 5515 | 5515 | } |
| 5516 | 5516 | |
| @@ -5770,6 +5770,54 @@ class TrueClass { | ||
| 5770 | 5770 | }; |
| 5771 | 5771 | } |
| 5772 | 5772 | |
| 5773 | +class Sealed { | |
| 5774 | + final int sealed; | |
| 5775 | + | |
| 5776 | + Sealed({ | |
| 5777 | + required this.sealed, | |
| 5778 | + }); | |
| 5779 | + | |
| 5780 | + factory Sealed.fromJson(Map<String, dynamic> json) => Sealed( | |
| 5781 | + sealed: json["sealed"], | |
| 5782 | + ); | |
| 5783 | + | |
| 5784 | + Map<String, dynamic> toJson() => { | |
| 5785 | + "sealed": sealed, | |
| 5786 | + }; | |
| 5787 | +} | |
| 5788 | + | |
| 5789 | +class Sel { | |
| 5790 | + final int sel; | |
| 5791 | + | |
| 5792 | + Sel({ | |
| 5793 | + required this.sel, | |
| 5794 | + }); | |
| 5795 | + | |
| 5796 | + factory Sel.fromJson(Map<String, dynamic> json) => Sel( | |
| 5797 | + sel: json["SEL"], | |
| 5798 | + ); | |
| 5799 | + | |
| 5800 | + Map<String, dynamic> toJson() => { | |
| 5801 | + "SEL": sel, | |
| 5802 | + }; | |
| 5803 | +} | |
| 5804 | + | |
| 5805 | +class Select { | |
| 5806 | + final int select; | |
| 5807 | + | |
| 5808 | + Select({ | |
| 5809 | + required this.select, | |
| 5810 | + }); | |
| 5811 | + | |
| 5812 | + factory Select.fromJson(Map<String, dynamic> json) => Select( | |
| 5813 | + select: json["select"], | |
| 5814 | + ); | |
| 5815 | + | |
| 5816 | + Map<String, dynamic> toJson() => { | |
| 5817 | + "select": select, | |
| 5818 | + }; | |
| 5819 | +} | |
| 5820 | + | |
| 5773 | 5821 | class Self { |
| 5774 | 5822 | final int self; |
| 5775 | 5823 | |
| @@ -6474,38 +6522,6 @@ class Unowned { | ||
| 6474 | 6522 | }; |
| 6475 | 6523 | } |
| 6476 | 6524 | |
| 6477 | -class Unsafe { | |
| 6478 | - final int unsafe; | |
| 6479 | - | |
| 6480 | - Unsafe({ | |
| 6481 | - required this.unsafe, | |
| 6482 | - }); | |
| 6483 | - | |
| 6484 | - factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe( | |
| 6485 | - unsafe: json["unsafe"], | |
| 6486 | - ); | |
| 6487 | - | |
| 6488 | - Map<String, dynamic> toJson() => { | |
| 6489 | - "unsafe": unsafe, | |
| 6490 | - }; | |
| 6491 | -} | |
| 6492 | - | |
| 6493 | -class Unsigned { | |
| 6494 | - final int unsigned; | |
| 6495 | - | |
| 6496 | - Unsigned({ | |
| 6497 | - required this.unsigned, | |
| 6498 | - }); | |
| 6499 | - | |
| 6500 | - factory Unsigned.fromJson(Map<String, dynamic> json) => Unsigned( | |
| 6501 | - unsigned: json["unsigned"], | |
| 6502 | - ); | |
| 6503 | - | |
| 6504 | - Map<String, dynamic> toJson() => { | |
| 6505 | - "unsigned": unsigned, | |
| 6506 | - }; | |
| 6507 | -} | |
| 6508 | - | |
| 6509 | 6525 | class UseSerializers { |
| 6510 | 6526 | final int useSerializers; |
| 6511 | 6527 | |
| @@ -6522,22 +6538,6 @@ class UseSerializers { | ||
| 6522 | 6538 | }; |
| 6523 | 6539 | } |
| 6524 | 6540 | |
| 6525 | -class Ushort { | |
| 6526 | - final int ushort; | |
| 6527 | - | |
| 6528 | - Ushort({ | |
| 6529 | - required this.ushort, | |
| 6530 | - }); | |
| 6531 | - | |
| 6532 | - factory Ushort.fromJson(Map<String, dynamic> json) => Ushort( | |
| 6533 | - ushort: json["ushort"], | |
| 6534 | - ); | |
| 6535 | - | |
| 6536 | - Map<String, dynamic> toJson() => { | |
| 6537 | - "ushort": ushort, | |
| 6538 | - }; | |
| 6539 | -} | |
| 6540 | - | |
| 6541 | 6541 | class Obj6 { |
| 6542 | 6542 | final int dummy; |
| 6543 | 6543 | final Var obj6Var; |
| @@ -6545,6 +6545,9 @@ class Obj6 { | ||
| 6545 | 6545 | final While obj6While; |
| 6546 | 6546 | final With obj6With; |
| 6547 | 6547 | final Yield obj6Yield; |
| 6548 | + final Unsafe unsafe; | |
| 6549 | + final Unsigned unsigned; | |
| 6550 | + final Ushort ushort; | |
| 6548 | 6551 | final Using using; |
| 6549 | 6552 | final Utf8JsonReader utf8JsonReader; |
| 6550 | 6553 | final Utf8JsonWriter utf8JsonWriter; |
| @@ -6566,6 +6569,9 @@ class Obj6 { | ||
| 6566 | 6569 | required this.obj6While, |
| 6567 | 6570 | required this.obj6With, |
| 6568 | 6571 | required this.obj6Yield, |
| 6572 | + required this.unsafe, | |
| 6573 | + required this.unsigned, | |
| 6574 | + required this.ushort, | |
| 6569 | 6575 | required this.using, |
| 6570 | 6576 | required this.utf8JsonReader, |
| 6571 | 6577 | required this.utf8JsonWriter, |
| @@ -6588,6 +6594,9 @@ class Obj6 { | ||
| 6588 | 6594 | obj6While: While.fromJson(json["while"]), |
| 6589 | 6595 | obj6With: With.fromJson(json["with"]), |
| 6590 | 6596 | obj6Yield: Yield.fromJson(json["yield"]), |
| 6597 | + unsafe: Unsafe.fromJson(json["unsafe"]), | |
| 6598 | + unsigned: Unsigned.fromJson(json["unsigned"]), | |
| 6599 | + ushort: Ushort.fromJson(json["ushort"]), | |
| 6591 | 6600 | using: Using.fromJson(json["using"]), |
| 6592 | 6601 | utf8JsonReader: Utf8JsonReader.fromJson(json["Utf8JsonReader"]), |
| 6593 | 6602 | utf8JsonWriter: Utf8JsonWriter.fromJson(json["Utf8JsonWriter"]), |
| @@ -6610,6 +6619,9 @@ class Obj6 { | ||
| 6610 | 6619 | "while": obj6While.toJson(), |
| 6611 | 6620 | "with": obj6With.toJson(), |
| 6612 | 6621 | "yield": obj6Yield.toJson(), |
| 6622 | + "unsafe": unsafe.toJson(), | |
| 6623 | + "unsigned": unsigned.toJson(), | |
| 6624 | + "ushort": ushort.toJson(), | |
| 6613 | 6625 | "using": using.toJson(), |
| 6614 | 6626 | "Utf8JsonReader": utf8JsonReader.toJson(), |
| 6615 | 6627 | "Utf8JsonWriter": utf8JsonWriter.toJson(), |
| @@ -6706,6 +6718,54 @@ class Yield { | ||
| 6706 | 6718 | }; |
| 6707 | 6719 | } |
| 6708 | 6720 | |
| 6721 | +class Unsafe { | |
| 6722 | + final int unsafe; | |
| 6723 | + | |
| 6724 | + Unsafe({ | |
| 6725 | + required this.unsafe, | |
| 6726 | + }); | |
| 6727 | + | |
| 6728 | + factory Unsafe.fromJson(Map<String, dynamic> json) => Unsafe( | |
| 6729 | + unsafe: json["unsafe"], | |
| 6730 | + ); | |
| 6731 | + | |
| 6732 | + Map<String, dynamic> toJson() => { | |
| 6733 | + "unsafe": unsafe, | |
| 6734 | + }; | |
| 6735 | +} | |
| 6736 | + | |
| 6737 | +class Unsigned { | |
| 6738 | + final int unsigned; | |
| 6739 | + | |
| 6740 | + Unsigned({ | |
| 6741 | + required this.unsigned, | |
| 6742 | + }); | |
| 6743 | + | |
| 6744 | + factory Unsigned.fromJson(Map<String, dynamic> json) => Unsigned( | |
| 6745 | + unsigned: json["unsigned"], | |
| 6746 | + ); | |
| 6747 | + | |
| 6748 | + Map<String, dynamic> toJson() => { | |
| 6749 | + "unsigned": unsigned, | |
| 6750 | + }; | |
| 6751 | +} | |
| 6752 | + | |
| 6753 | +class Ushort { | |
| 6754 | + final int ushort; | |
| 6755 | + | |
| 6756 | + Ushort({ | |
| 6757 | + required this.ushort, | |
| 6758 | + }); | |
| 6759 | + | |
| 6760 | + factory Ushort.fromJson(Map<String, dynamic> json) => Ushort( | |
| 6761 | + ushort: json["ushort"], | |
| 6762 | + ); | |
| 6763 | + | |
| 6764 | + Map<String, dynamic> toJson() => { | |
| 6765 | + "ushort": ushort, | |
| 6766 | + }; | |
| 6767 | +} | |
| 6768 | + | |
| 6709 | 6769 | class Using { |
| 6710 | 6770 | final int using; |
Melixirdefault / QuickType.ex+555 −429
| @@ -7299,6 +7299,45 @@ defmodule ListClass do | ||
| 7299 | 7299 | end |
| 7300 | 7300 | end |
| 7301 | 7301 | |
| 7302 | +defmodule LocalDate do | |
| 7303 | + @enforce_keys [:local_date] | |
| 7304 | + defstruct [:local_date] | |
| 7305 | + | |
| 7306 | + @type t :: %__MODULE__{ | |
| 7307 | + local_date: integer() | |
| 7308 | + } | |
| 7309 | + | |
| 7310 | + def decode_local_date(value) when is_integer(value), do: value | |
| 7311 | + def decode_local_date(_), do: {:error, "Unexpected type when decoding LocalDate.local_date"} | |
| 7312 | + | |
| 7313 | + def encode_local_date(value) when is_integer(value), do: value | |
| 7314 | + def encode_local_date(_), do: {:error, "Unexpected type when encoding LocalDate.local_date"} | |
| 7315 | + | |
| 7316 | + def from_map(m) do | |
| 7317 | + %LocalDate{ | |
| 7318 | + local_date: decode_local_date(m["LocalDate"]), | |
| 7319 | + } | |
| 7320 | + end | |
| 7321 | + | |
| 7322 | + def from_json(json) do | |
| 7323 | + json | |
| 7324 | + |> Jason.decode!() | |
| 7325 | + |> from_map() | |
| 7326 | + end | |
| 7327 | + | |
| 7328 | + def to_map(struct) do | |
| 7329 | + %{ | |
| 7330 | + "LocalDate" => struct.local_date, | |
| 7331 | + } | |
| 7332 | + end | |
| 7333 | + | |
| 7334 | + def to_json(struct) do | |
| 7335 | + struct | |
| 7336 | + |> to_map() | |
| 7337 | + |> Jason.encode!() | |
| 7338 | + end | |
| 7339 | +end | |
| 7340 | + | |
| 7302 | 7341 | defmodule Locale do |
| 7303 | 7342 | @enforce_keys [:locale] |
| 7304 | 7343 | defstruct [:locale] |
| @@ -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,8 +8002,8 @@ 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, :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, :local_date, :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, :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, :local_date, :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(), |
| @@ -8053,6 +8053,7 @@ defmodule Obj3 do | ||
| 8053 | 8053 | left: Left.t(), |
| 8054 | 8054 | let: Let.t(), |
| 8055 | 8055 | list: ListClass.t(), |
| 8056 | + local_date: LocalDate.t(), | |
| 8056 | 8057 | locale: Locale.t(), |
| 8057 | 8058 | lock: Lock.t(), |
| 8058 | 8059 | long: Long.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() |
| @@ -8128,6 +8128,7 @@ defmodule Obj3 do | ||
| 8128 | 8128 | left: Left.from_map(m["left"]), |
| 8129 | 8129 | let: Let.from_map(m["let"]), |
| 8130 | 8130 | list: ListClass.from_map(m["list"]), |
| 8131 | + local_date: LocalDate.from_map(m["LocalDate"]), | |
| 8131 | 8132 | locale: Locale.from_map(m["Locale"]), |
| 8132 | 8133 | lock: Lock.from_map(m["lock"]), |
| 8133 | 8134 | long: Long.from_map(m["long"]), |
| @@ -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"]), |
| @@ -8204,6 +8204,7 @@ defmodule Obj3 do | ||
| 8204 | 8204 | "left" => Left.to_map(struct.left), |
| 8205 | 8205 | "let" => Let.to_map(struct.let), |
| 8206 | 8206 | "list" => ListClass.to_map(struct.list), |
| 8207 | + "LocalDate" => LocalDate.to_map(struct.local_date), | |
| 8207 | 8208 | "Locale" => Locale.to_map(struct.locale), |
| 8208 | 8209 | "lock" => Lock.to_map(struct.lock), |
| 8209 | 8210 | "long" => Long.to_map(struct.long), |
| @@ -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] |
| @@ -9012,6 +9051,84 @@ defmodule Of do | ||
| 9012 | 9051 | end |
| 9013 | 9052 | end |
| 9014 | 9053 | |
| 9054 | +defmodule OffsetDateTime do | |
| 9055 | + @enforce_keys [:offset_date_time] | |
| 9056 | + defstruct [:offset_date_time] | |
| 9057 | + | |
| 9058 | + @type t :: %__MODULE__{ | |
| 9059 | + offset_date_time: integer() | |
| 9060 | + } | |
| 9061 | + | |
| 9062 | + def decode_offset_date_time(value) when is_integer(value), do: value | |
| 9063 | + def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding OffsetDateTime.offset_date_time"} | |
| 9064 | + | |
| 9065 | + def encode_offset_date_time(value) when is_integer(value), do: value | |
| 9066 | + def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding OffsetDateTime.offset_date_time"} | |
| 9067 | + | |
| 9068 | + def from_map(m) do | |
| 9069 | + %OffsetDateTime{ | |
| 9070 | + offset_date_time: decode_offset_date_time(m["OffsetDateTime"]), | |
| 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 | + "OffsetDateTime" => struct.offset_date_time, | |
| 9083 | + } | |
| 9084 | + end | |
| 9085 | + | |
| 9086 | + def to_json(struct) do | |
| 9087 | + struct | |
| 9088 | + |> to_map() | |
| 9089 | + |> Jason.encode!() | |
| 9090 | + end | |
| 9091 | +end | |
| 9092 | + | |
| 9093 | +defmodule OffsetTime do | |
| 9094 | + @enforce_keys [:offset_time] | |
| 9095 | + defstruct [:offset_time] | |
| 9096 | + | |
| 9097 | + @type t :: %__MODULE__{ | |
| 9098 | + offset_time: integer() | |
| 9099 | + } | |
| 9100 | + | |
| 9101 | + def decode_offset_time(value) when is_integer(value), do: value | |
| 9102 | + def decode_offset_time(_), do: {:error, "Unexpected type when decoding OffsetTime.offset_time"} | |
| 9103 | + | |
| 9104 | + def encode_offset_time(value) when is_integer(value), do: value | |
| 9105 | + def encode_offset_time(_), do: {:error, "Unexpected type when encoding OffsetTime.offset_time"} | |
| 9106 | + | |
| 9107 | + def from_map(m) do | |
| 9108 | + %OffsetTime{ | |
| 9109 | + offset_time: decode_offset_time(m["OffsetTime"]), | |
| 9110 | + } | |
| 9111 | + end | |
| 9112 | + | |
| 9113 | + def from_json(json) do | |
| 9114 | + json | |
| 9115 | + |> Jason.decode!() | |
| 9116 | + |> from_map() | |
| 9117 | + end | |
| 9118 | + | |
| 9119 | + def to_map(struct) do | |
| 9120 | + %{ | |
| 9121 | + "OffsetTime" => struct.offset_time, | |
| 9122 | + } | |
| 9123 | + end | |
| 9124 | + | |
| 9125 | + def to_json(struct) do | |
| 9126 | + struct | |
| 9127 | + |> to_map() | |
| 9128 | + |> Jason.encode!() | |
| 9129 | + end | |
| 9130 | +end | |
| 9131 | + | |
| 9015 | 9132 | defmodule Oneway do |
| 9016 | 9133 | @enforce_keys [:oneway] |
| 9017 | 9134 | defstruct [:oneway] |
| @@ -10611,205 +10728,89 @@ defmodule Sbyte do | ||
| 10611 | 10728 | end |
| 10612 | 10729 | end |
| 10613 | 10730 | |
| 10614 | -defmodule Sealed do | |
| 10615 | - @enforce_keys [:sealed] | |
| 10616 | - defstruct [:sealed] | |
| 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, :of, :offset_date_time, :offset_time, :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, :of, :offset_date_time, :offset_time, :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] | |
| 10617 | 10734 | |
| 10618 | 10735 | @type t :: %__MODULE__{ |
| 10619 | - sealed: integer() | |
| 10736 | + dummy: integer(), | |
| 10737 | + no_such_method: NoSuchMethod.t(), | |
| 10738 | + noexcept: Noexcept.t(), | |
| 10739 | + nonatomic: Nonatomic.t(), | |
| 10740 | + none: None.t(), | |
| 10741 | + nonlocal: Nonlocal.t(), | |
| 10742 | + nonmutating: Nonmutating.t(), | |
| 10743 | + not_eq: NotEq.t(), | |
| 10744 | + ns_error: NSError.t(), | |
| 10745 | + ns_object: NSObject.t(), | |
| 10746 | + ns_string: NSString.t(), | |
| 10747 | + null: Null.t(), | |
| 10748 | + nullptr: Nullptr.t(), | |
| 10749 | + number: Number.t(), | |
| 10750 | + obj4_none: NoneClass.t(), | |
| 10751 | + obj4_not: NotClass.t(), | |
| 10752 | + obj4_null: NullClass.t(), | |
| 10753 | + obj4_or: OrClass.t(), | |
| 10754 | + obj4_protocol: Obj4Protocol.t(), | |
| 10755 | + object: Object.t(), | |
| 10756 | + object_mapper: ObjectMapper.t(), | |
| 10757 | + of: Of.t(), | |
| 10758 | + offset_date_time: OffsetDateTime.t(), | |
| 10759 | + offset_time: OffsetTime.t(), | |
| 10760 | + oneway: Oneway.t(), | |
| 10761 | + open: Open.t(), | |
| 10762 | + operator: Operator.t(), | |
| 10763 | + optional: Optional.t(), | |
| 10764 | + or_eq: OrEq.t(), | |
| 10765 | + out: Out.t(), | |
| 10766 | + override: Override.t(), | |
| 10767 | + package: Package.t(), | |
| 10768 | + params: Params.t(), | |
| 10769 | + pass: Pass.t(), | |
| 10770 | + port: PortClass.t(), | |
| 10771 | + postfix: Postfix.t(), | |
| 10772 | + precedence: Precedence.t(), | |
| 10773 | + prefix: Prefix.t(), | |
| 10774 | + print: Print.t(), | |
| 10775 | + print_members: PrintMembers.t(), | |
| 10776 | + printf: Printf.t(), | |
| 10777 | + private: Private.t(), | |
| 10778 | + protected: Protected.t(), | |
| 10779 | + protocol: ProtocolClass.t(), | |
| 10780 | + public: Public.t(), | |
| 10781 | + quicktype: Quicktype.t(), | |
| 10782 | + raise: Raise.t(), | |
| 10783 | + range: RangeClass.t(), | |
| 10784 | + readonly: Readonly.t(), | |
| 10785 | + ref: Ref.t(), | |
| 10786 | + reg_exp: RegExp.t(), | |
| 10787 | + register: Register.t(), | |
| 10788 | + reinterpret_cast: ReinterpretCast.t(), | |
| 10789 | + repeat: Repeat.t(), | |
| 10790 | + require: Require.t(), | |
| 10791 | + required: Required.t(), | |
| 10792 | + requires: Requires.t(), | |
| 10793 | + restrict: Restrict.t(), | |
| 10794 | + retain: Retain.t(), | |
| 10795 | + rethrows: Rethrows.t(), | |
| 10796 | + return: Return.t(), | |
| 10797 | + right: Right.t(), | |
| 10798 | + runtime_type: RuntimeType.t(), | |
| 10799 | + s: S.t(), | |
| 10800 | + sbyte: Sbyte.t() | |
| 10620 | 10801 | } |
| 10621 | 10802 | |
| 10622 | - def decode_sealed(value) when is_integer(value), do: value | |
| 10623 | - def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"} | |
| 10803 | + def decode_dummy(value) when is_integer(value), do: value | |
| 10804 | + def decode_dummy(_), do: {:error, "Unexpected type when decoding Obj4.dummy"} | |
| 10624 | 10805 | |
| 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] | |
| 10734 | - | |
| 10735 | - @type t :: %__MODULE__{ | |
| 10736 | - dummy: integer(), | |
| 10737 | - no_such_method: NoSuchMethod.t(), | |
| 10738 | - nonatomic: Nonatomic.t(), | |
| 10739 | - none: None.t(), | |
| 10740 | - nonlocal: Nonlocal.t(), | |
| 10741 | - nonmutating: Nonmutating.t(), | |
| 10742 | - not_eq: NotEq.t(), | |
| 10743 | - ns_error: NSError.t(), | |
| 10744 | - ns_object: NSObject.t(), | |
| 10745 | - ns_string: NSString.t(), | |
| 10746 | - null: Null.t(), | |
| 10747 | - nullptr: Nullptr.t(), | |
| 10748 | - number: Number.t(), | |
| 10749 | - obj4_none: NoneClass.t(), | |
| 10750 | - obj4_not: NotClass.t(), | |
| 10751 | - obj4_null: NullClass.t(), | |
| 10752 | - obj4_or: OrClass.t(), | |
| 10753 | - obj4_protocol: Obj4Protocol.t(), | |
| 10754 | - object: Object.t(), | |
| 10755 | - object_mapper: ObjectMapper.t(), | |
| 10756 | - of: Of.t(), | |
| 10757 | - oneway: Oneway.t(), | |
| 10758 | - open: Open.t(), | |
| 10759 | - operator: Operator.t(), | |
| 10760 | - optional: Optional.t(), | |
| 10761 | - or_eq: OrEq.t(), | |
| 10762 | - out: Out.t(), | |
| 10763 | - override: Override.t(), | |
| 10764 | - package: Package.t(), | |
| 10765 | - params: Params.t(), | |
| 10766 | - pass: Pass.t(), | |
| 10767 | - port: PortClass.t(), | |
| 10768 | - postfix: Postfix.t(), | |
| 10769 | - precedence: Precedence.t(), | |
| 10770 | - prefix: Prefix.t(), | |
| 10771 | - print: Print.t(), | |
| 10772 | - print_members: PrintMembers.t(), | |
| 10773 | - printf: Printf.t(), | |
| 10774 | - private: Private.t(), | |
| 10775 | - protected: Protected.t(), | |
| 10776 | - protocol: ProtocolClass.t(), | |
| 10777 | - public: Public.t(), | |
| 10778 | - quicktype: Quicktype.t(), | |
| 10779 | - raise: Raise.t(), | |
| 10780 | - range: RangeClass.t(), | |
| 10781 | - readonly: Readonly.t(), | |
| 10782 | - ref: Ref.t(), | |
| 10783 | - reg_exp: RegExp.t(), | |
| 10784 | - register: Register.t(), | |
| 10785 | - reinterpret_cast: ReinterpretCast.t(), | |
| 10786 | - repeat: Repeat.t(), | |
| 10787 | - require: Require.t(), | |
| 10788 | - required: Required.t(), | |
| 10789 | - requires: Requires.t(), | |
| 10790 | - restrict: Restrict.t(), | |
| 10791 | - retain: Retain.t(), | |
| 10792 | - rethrows: Rethrows.t(), | |
| 10793 | - return: Return.t(), | |
| 10794 | - right: Right.t(), | |
| 10795 | - runtime_type: RuntimeType.t(), | |
| 10796 | - s: S.t(), | |
| 10797 | - sbyte: Sbyte.t(), | |
| 10798 | - sealed: Sealed.t(), | |
| 10799 | - sel: Sel.t(), | |
| 10800 | - select: Select.t() | |
| 10801 | - } | |
| 10802 | - | |
| 10803 | - def decode_dummy(value) when is_integer(value), do: value | |
| 10804 | - def decode_dummy(_), do: {:error, "Unexpected type when decoding Obj4.dummy"} | |
| 10805 | - | |
| 10806 | - def encode_dummy(value) when is_integer(value), do: value | |
| 10807 | - def encode_dummy(_), do: {:error, "Unexpected type when encoding Obj4.dummy"} | |
| 10806 | + def encode_dummy(value) when is_integer(value), do: value | |
| 10807 | + def encode_dummy(_), do: {:error, "Unexpected type when encoding Obj4.dummy"} | |
| 10808 | 10808 | |
| 10809 | 10809 | def from_map(m) 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"]), |
| @@ -10829,6 +10830,8 @@ defmodule Obj4 do | ||
| 10829 | 10830 | object: Object.from_map(m["object"]), |
| 10830 | 10831 | object_mapper: ObjectMapper.from_map(m["ObjectMapper"]), |
| 10831 | 10832 | of: Of.from_map(m["of"]), |
| 10833 | + offset_date_time: OffsetDateTime.from_map(m["OffsetDateTime"]), | |
| 10834 | + offset_time: OffsetTime.from_map(m["OffsetTime"]), | |
| 10832 | 10835 | oneway: Oneway.from_map(m["oneway"]), |
| 10833 | 10836 | open: Open.from_map(m["open"]), |
| 10834 | 10837 | operator: Operator.from_map(m["operator"]), |
| @@ -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), |
| @@ -10905,6 +10906,8 @@ defmodule Obj4 do | ||
| 10905 | 10906 | "object" => Object.to_map(struct.object), |
| 10906 | 10907 | "ObjectMapper" => ObjectMapper.to_map(struct.object_mapper), |
| 10907 | 10908 | "of" => Of.to_map(struct.of), |
| 10909 | + "OffsetDateTime" => OffsetDateTime.to_map(struct.offset_date_time), | |
| 10910 | + "OffsetTime" => OffsetTime.to_map(struct.offset_time), | |
| 10908 | 10911 | "oneway" => Oneway.to_map(struct.oneway), |
| 10909 | 10912 | "open" => Open.to_map(struct.open), |
| 10910 | 10913 | "operator" => Operator.to_map(struct.operator), |
| @@ -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 | |
| @@ -11154,6 +11154,123 @@ defmodule PrimitiveKind do | ||
| 11154 | 11154 | end |
| 11155 | 11155 | end |
| 11156 | 11156 | |
| 11157 | +defmodule Sealed do | |
| 11158 | + @enforce_keys [:sealed] | |
| 11159 | + defstruct [:sealed] | |
| 11160 | + | |
| 11161 | + @type t :: %__MODULE__{ | |
| 11162 | + sealed: integer() | |
| 11163 | + } | |
| 11164 | + | |
| 11165 | + def decode_sealed(value) when is_integer(value), do: value | |
| 11166 | + def decode_sealed(_), do: {:error, "Unexpected type when decoding Sealed.sealed"} | |
| 11167 | + | |
| 11168 | + def encode_sealed(value) when is_integer(value), do: value | |
| 11169 | + def encode_sealed(_), do: {:error, "Unexpected type when encoding Sealed.sealed"} | |
| 11170 | + | |
| 11171 | + def from_map(m) do | |
| 11172 | + %Sealed{ | |
| 11173 | + sealed: decode_sealed(m["sealed"]), | |
| 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 | + "sealed" => struct.sealed, | |
| 11186 | + } | |
| 11187 | + end | |
| 11188 | + | |
| 11189 | + def to_json(struct) do | |
| 11190 | + struct | |
| 11191 | + |> to_map() | |
| 11192 | + |> Jason.encode!() | |
| 11193 | + end | |
| 11194 | +end | |
| 11195 | + | |
| 11196 | +defmodule Sel do | |
| 11197 | + @enforce_keys [:sel] | |
| 11198 | + defstruct [:sel] | |
| 11199 | + | |
| 11200 | + @type t :: %__MODULE__{ | |
| 11201 | + sel: integer() | |
| 11202 | + } | |
| 11203 | + | |
| 11204 | + def decode_sel(value) when is_integer(value), do: value | |
| 11205 | + def decode_sel(_), do: {:error, "Unexpected type when decoding Sel.sel"} | |
| 11206 | + | |
| 11207 | + def encode_sel(value) when is_integer(value), do: value | |
| 11208 | + def encode_sel(_), do: {:error, "Unexpected type when encoding Sel.sel"} | |
| 11209 | + | |
| 11210 | + def from_map(m) do | |
| 11211 | + %Sel{ | |
| 11212 | + sel: decode_sel(m["SEL"]), | |
| 11213 | + } | |
| 11214 | + end | |
| 11215 | + | |
| 11216 | + def from_json(json) do | |
| 11217 | + json | |
| 11218 | + |> Jason.decode!() | |
| 11219 | + |> from_map() | |
| 11220 | + end | |
| 11221 | + | |
| 11222 | + def to_map(struct) do | |
| 11223 | + %{ | |
| 11224 | + "SEL" => struct.sel, | |
| 11225 | + } | |
| 11226 | + end | |
| 11227 | + | |
| 11228 | + def to_json(struct) do | |
| 11229 | + struct | |
| 11230 | + |> to_map() | |
| 11231 | + |> Jason.encode!() | |
| 11232 | + end | |
| 11233 | +end | |
| 11234 | + | |
| 11235 | +defmodule Select do | |
| 11236 | + @enforce_keys [:select] | |
| 11237 | + defstruct [:select] | |
| 11238 | + | |
| 11239 | + @type t :: %__MODULE__{ | |
| 11240 | + select: integer() | |
| 11241 | + } | |
| 11242 | + | |
| 11243 | + def decode_select(value) when is_integer(value), do: value | |
| 11244 | + def decode_select(_), do: {:error, "Unexpected type when decoding Select.select"} | |
| 11245 | + | |
| 11246 | + def encode_select(value) when is_integer(value), do: value | |
| 11247 | + def encode_select(_), do: {:error, "Unexpected type when encoding Select.select"} | |
| 11248 | + | |
| 11249 | + def from_map(m) do | |
| 11250 | + %Select{ | |
| 11251 | + select: decode_select(m["select"]), | |
| 11252 | + } | |
| 11253 | + end | |
| 11254 | + | |
| 11255 | + def from_json(json) do | |
| 11256 | + json | |
| 11257 | + |> Jason.decode!() | |
| 11258 | + |> from_map() | |
| 11259 | + end | |
| 11260 | + | |
| 11261 | + def to_map(struct) do | |
| 11262 | + %{ | |
| 11263 | + "select" => struct.select, | |
| 11264 | + } | |
| 11265 | + end | |
| 11266 | + | |
| 11267 | + def to_json(struct) do | |
| 11268 | + struct | |
| 11269 | + |> to_map() | |
| 11270 | + |> Jason.encode!() | |
| 11271 | + end | |
| 11272 | +end | |
| 11273 | + | |
| 11157 | 11274 | defmodule Self do |
| 11158 | 11275 | @enforce_keys [:self] |
| 11159 | 11276 | defstruct [:self] |
| @@ -13118,126 +13235,9 @@ defmodule Ulong do | ||
| 13118 | 13235 | def encode_ulong(value) when is_integer(value), do: value |
| 13119 | 13236 | def encode_ulong(_), do: {:error, "Unexpected type when encoding Ulong.ulong"} |
| 13120 | 13237 | |
| 13121 | - def from_map(m) do | |
| 13122 | - %Ulong{ | |
| 13123 | - ulong: decode_ulong(m["ulong"]), | |
| 13124 | - } | |
| 13125 | - end | |
| 13126 | - | |
| 13127 | - def from_json(json) do | |
| 13128 | - json | |
| 13129 | - |> Jason.decode!() | |
| 13130 | - |> from_map() | |
| 13131 | - end | |
| 13132 | - | |
| 13133 | - def to_map(struct) do | |
| 13134 | - %{ | |
| 13135 | - "ulong" => struct.ulong, | |
| 13136 | - } | |
| 13137 | - end | |
| 13138 | - | |
| 13139 | - def to_json(struct) do | |
| 13140 | - struct | |
| 13141 | - |> to_map() | |
| 13142 | - |> Jason.encode!() | |
| 13143 | - end | |
| 13144 | -end | |
| 13145 | - | |
| 13146 | -defmodule Unchecked do | |
| 13147 | - @enforce_keys [:unchecked] | |
| 13148 | - defstruct [:unchecked] | |
| 13149 | - | |
| 13150 | - @type t :: %__MODULE__{ | |
| 13151 | - unchecked: integer() | |
| 13152 | - } | |
| 13153 | - | |
| 13154 | - def decode_unchecked(value) when is_integer(value), do: value | |
| 13155 | - def decode_unchecked(_), do: {:error, "Unexpected type when decoding Unchecked.unchecked"} | |
| 13156 | - | |
| 13157 | - def encode_unchecked(value) when is_integer(value), do: value | |
| 13158 | - def encode_unchecked(_), do: {:error, "Unexpected type when encoding Unchecked.unchecked"} | |
| 13159 | - | |
| 13160 | - def from_map(m) do | |
| 13161 | - %Unchecked{ | |
| 13162 | - unchecked: decode_unchecked(m["unchecked"]), | |
| 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 | - "unchecked" => struct.unchecked, | |
| 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 Undefined do | |
| 13186 | - @enforce_keys [:undefined] | |
| 13187 | - defstruct [:undefined] | |
| 13188 | - | |
| 13189 | - @type t :: %__MODULE__{ | |
| 13190 | - undefined: integer() | |
| 13191 | - } | |
| 13192 | - | |
| 13193 | - def decode_undefined(value) when is_integer(value), do: value | |
| 13194 | - def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"} | |
| 13195 | - | |
| 13196 | - def encode_undefined(value) when is_integer(value), do: value | |
| 13197 | - def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"} | |
| 13198 | - | |
| 13199 | - def from_map(m) do | |
| 13200 | - %Undefined{ | |
| 13201 | - undefined: decode_undefined(m["undefined"]), | |
| 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 | - "undefined" => struct.undefined, | |
| 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 Union do | |
| 13225 | - @enforce_keys [:union] | |
| 13226 | - defstruct [:union] | |
| 13227 | - | |
| 13228 | - @type t :: %__MODULE__{ | |
| 13229 | - union: integer() | |
| 13230 | - } | |
| 13231 | - | |
| 13232 | - def decode_union(value) when is_integer(value), do: value | |
| 13233 | - def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"} | |
| 13234 | - | |
| 13235 | - def encode_union(value) when is_integer(value), do: value | |
| 13236 | - def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"} | |
| 13237 | - | |
| 13238 | - def from_map(m) do | |
| 13239 | - %Union{ | |
| 13240 | - union: decode_union(m["union"]), | |
| 13238 | + def from_map(m) do | |
| 13239 | + %Ulong{ | |
| 13240 | + ulong: decode_ulong(m["ulong"]), | |
| 13241 | 13241 | } |
| 13242 | 13242 | end |
| 13243 | 13243 | |
| @@ -13249,7 +13249,7 @@ defmodule Union do | ||
| 13249 | 13249 | |
| 13250 | 13250 | def to_map(struct) do |
| 13251 | 13251 | %{ |
| 13252 | - "union" => struct.union, | |
| 13252 | + "ulong" => struct.ulong, | |
| 13253 | 13253 | } |
| 13254 | 13254 | end |
| 13255 | 13255 | |
| @@ -13260,23 +13260,23 @@ defmodule Union do | ||
| 13260 | 13260 | end |
| 13261 | 13261 | end |
| 13262 | 13262 | |
| 13263 | -defmodule Unowned do | |
| 13264 | - @enforce_keys [:unowned] | |
| 13265 | - defstruct [:unowned] | |
| 13263 | +defmodule Unchecked do | |
| 13264 | + @enforce_keys [:unchecked] | |
| 13265 | + defstruct [:unchecked] | |
| 13266 | 13266 | |
| 13267 | 13267 | @type t :: %__MODULE__{ |
| 13268 | - unowned: integer() | |
| 13268 | + unchecked: integer() | |
| 13269 | 13269 | } |
| 13270 | 13270 | |
| 13271 | - def decode_unowned(value) when is_integer(value), do: value | |
| 13272 | - def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"} | |
| 13271 | + def decode_unchecked(value) when is_integer(value), do: value | |
| 13272 | + def decode_unchecked(_), do: {:error, "Unexpected type when decoding Unchecked.unchecked"} | |
| 13273 | 13273 | |
| 13274 | - def encode_unowned(value) when is_integer(value), do: value | |
| 13275 | - def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"} | |
| 13274 | + def encode_unchecked(value) when is_integer(value), do: value | |
| 13275 | + def encode_unchecked(_), do: {:error, "Unexpected type when encoding Unchecked.unchecked"} | |
| 13276 | 13276 | |
| 13277 | 13277 | def from_map(m) do |
| 13278 | - %Unowned{ | |
| 13279 | - unowned: decode_unowned(m["unowned"]), | |
| 13278 | + %Unchecked{ | |
| 13279 | + unchecked: decode_unchecked(m["unchecked"]), | |
| 13280 | 13280 | } |
| 13281 | 13281 | end |
| 13282 | 13282 | |
| @@ -13288,7 +13288,7 @@ defmodule Unowned do | ||
| 13288 | 13288 | |
| 13289 | 13289 | def to_map(struct) do |
| 13290 | 13290 | %{ |
| 13291 | - "unowned" => struct.unowned, | |
| 13291 | + "unchecked" => struct.unchecked, | |
| 13292 | 13292 | } |
| 13293 | 13293 | end |
| 13294 | 13294 | |
| @@ -13299,23 +13299,23 @@ defmodule Unowned do | ||
| 13299 | 13299 | end |
| 13300 | 13300 | end |
| 13301 | 13301 | |
| 13302 | -defmodule Unsafe do | |
| 13303 | - @enforce_keys [:unsafe] | |
| 13304 | - defstruct [:unsafe] | |
| 13302 | +defmodule Undefined do | |
| 13303 | + @enforce_keys [:undefined] | |
| 13304 | + defstruct [:undefined] | |
| 13305 | 13305 | |
| 13306 | 13306 | @type t :: %__MODULE__{ |
| 13307 | - unsafe: integer() | |
| 13307 | + undefined: integer() | |
| 13308 | 13308 | } |
| 13309 | 13309 | |
| 13310 | - def decode_unsafe(value) when is_integer(value), do: value | |
| 13311 | - def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"} | |
| 13310 | + def decode_undefined(value) when is_integer(value), do: value | |
| 13311 | + def decode_undefined(_), do: {:error, "Unexpected type when decoding Undefined.undefined"} | |
| 13312 | 13312 | |
| 13313 | - def encode_unsafe(value) when is_integer(value), do: value | |
| 13314 | - def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"} | |
| 13313 | + def encode_undefined(value) when is_integer(value), do: value | |
| 13314 | + def encode_undefined(_), do: {:error, "Unexpected type when encoding Undefined.undefined"} | |
| 13315 | 13315 | |
| 13316 | 13316 | def from_map(m) do |
| 13317 | - %Unsafe{ | |
| 13318 | - unsafe: decode_unsafe(m["unsafe"]), | |
| 13317 | + %Undefined{ | |
| 13318 | + undefined: decode_undefined(m["undefined"]), | |
| 13319 | 13319 | } |
| 13320 | 13320 | end |
| 13321 | 13321 | |
| @@ -13327,7 +13327,7 @@ defmodule Unsafe do | ||
| 13327 | 13327 | |
| 13328 | 13328 | def to_map(struct) do |
| 13329 | 13329 | %{ |
| 13330 | - "unsafe" => struct.unsafe, | |
| 13330 | + "undefined" => struct.undefined, | |
| 13331 | 13331 | } |
| 13332 | 13332 | end |
| 13333 | 13333 | |
| @@ -13338,23 +13338,23 @@ defmodule Unsafe do | ||
| 13338 | 13338 | end |
| 13339 | 13339 | end |
| 13340 | 13340 | |
| 13341 | -defmodule Unsigned do | |
| 13342 | - @enforce_keys [:unsigned] | |
| 13343 | - defstruct [:unsigned] | |
| 13341 | +defmodule Union do | |
| 13342 | + @enforce_keys [:union] | |
| 13343 | + defstruct [:union] | |
| 13344 | 13344 | |
| 13345 | 13345 | @type t :: %__MODULE__{ |
| 13346 | - unsigned: integer() | |
| 13346 | + union: integer() | |
| 13347 | 13347 | } |
| 13348 | 13348 | |
| 13349 | - def decode_unsigned(value) when is_integer(value), do: value | |
| 13350 | - def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"} | |
| 13349 | + def decode_union(value) when is_integer(value), do: value | |
| 13350 | + def decode_union(_), do: {:error, "Unexpected type when decoding Union.union"} | |
| 13351 | 13351 | |
| 13352 | - def encode_unsigned(value) when is_integer(value), do: value | |
| 13353 | - def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"} | |
| 13352 | + def encode_union(value) when is_integer(value), do: value | |
| 13353 | + def encode_union(_), do: {:error, "Unexpected type when encoding Union.union"} | |
| 13354 | 13354 | |
| 13355 | 13355 | def from_map(m) do |
| 13356 | - %Unsigned{ | |
| 13357 | - unsigned: decode_unsigned(m["unsigned"]), | |
| 13356 | + %Union{ | |
| 13357 | + union: decode_union(m["union"]), | |
| 13358 | 13358 | } |
| 13359 | 13359 | end |
| 13360 | 13360 | |
| @@ -13366,7 +13366,7 @@ defmodule Unsigned do | ||
| 13366 | 13366 | |
| 13367 | 13367 | def to_map(struct) do |
| 13368 | 13368 | %{ |
| 13369 | - "unsigned" => struct.unsigned, | |
| 13369 | + "union" => struct.union, | |
| 13370 | 13370 | } |
| 13371 | 13371 | end |
| 13372 | 13372 | |
| @@ -13377,23 +13377,23 @@ defmodule Unsigned do | ||
| 13377 | 13377 | end |
| 13378 | 13378 | end |
| 13379 | 13379 | |
| 13380 | -defmodule UseSerializers do | |
| 13381 | - @enforce_keys [:use_serializers] | |
| 13382 | - defstruct [:use_serializers] | |
| 13380 | +defmodule Unowned do | |
| 13381 | + @enforce_keys [:unowned] | |
| 13382 | + defstruct [:unowned] | |
| 13383 | 13383 | |
| 13384 | 13384 | @type t :: %__MODULE__{ |
| 13385 | - use_serializers: integer() | |
| 13385 | + unowned: integer() | |
| 13386 | 13386 | } |
| 13387 | 13387 | |
| 13388 | - def decode_use_serializers(value) when is_integer(value), do: value | |
| 13389 | - def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"} | |
| 13388 | + def decode_unowned(value) when is_integer(value), do: value | |
| 13389 | + def decode_unowned(_), do: {:error, "Unexpected type when decoding Unowned.unowned"} | |
| 13390 | 13390 | |
| 13391 | - def encode_use_serializers(value) when is_integer(value), do: value | |
| 13392 | - def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"} | |
| 13391 | + def encode_unowned(value) when is_integer(value), do: value | |
| 13392 | + def encode_unowned(_), do: {:error, "Unexpected type when encoding Unowned.unowned"} | |
| 13393 | 13393 | |
| 13394 | 13394 | def from_map(m) do |
| 13395 | - %UseSerializers{ | |
| 13396 | - use_serializers: decode_use_serializers(m["UseSerializers"]), | |
| 13395 | + %Unowned{ | |
| 13396 | + unowned: decode_unowned(m["unowned"]), | |
| 13397 | 13397 | } |
| 13398 | 13398 | end |
| 13399 | 13399 | |
| @@ -13405,7 +13405,7 @@ defmodule UseSerializers do | ||
| 13405 | 13405 | |
| 13406 | 13406 | def to_map(struct) do |
| 13407 | 13407 | %{ |
| 13408 | - "UseSerializers" => struct.use_serializers, | |
| 13408 | + "unowned" => struct.unowned, | |
| 13409 | 13409 | } |
| 13410 | 13410 | end |
| 13411 | 13411 | |
| @@ -13416,23 +13416,23 @@ defmodule UseSerializers do | ||
| 13416 | 13416 | end |
| 13417 | 13417 | end |
| 13418 | 13418 | |
| 13419 | -defmodule Ushort do | |
| 13420 | - @enforce_keys [:ushort] | |
| 13421 | - defstruct [:ushort] | |
| 13419 | +defmodule UseSerializers do | |
| 13420 | + @enforce_keys [:use_serializers] | |
| 13421 | + defstruct [:use_serializers] | |
| 13422 | 13422 | |
| 13423 | 13423 | @type t :: %__MODULE__{ |
| 13424 | - ushort: integer() | |
| 13424 | + use_serializers: integer() | |
| 13425 | 13425 | } |
| 13426 | 13426 | |
| 13427 | - def decode_ushort(value) when is_integer(value), do: value | |
| 13428 | - def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"} | |
| 13427 | + def decode_use_serializers(value) when is_integer(value), do: value | |
| 13428 | + def decode_use_serializers(_), do: {:error, "Unexpected type when decoding UseSerializers.use_serializers"} | |
| 13429 | 13429 | |
| 13430 | - def encode_ushort(value) when is_integer(value), do: value | |
| 13431 | - def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"} | |
| 13430 | + def encode_use_serializers(value) when is_integer(value), do: value | |
| 13431 | + def encode_use_serializers(_), do: {:error, "Unexpected type when encoding UseSerializers.use_serializers"} | |
| 13432 | 13432 | |
| 13433 | 13433 | def from_map(m) do |
| 13434 | - %Ushort{ | |
| 13435 | - ushort: decode_ushort(m["ushort"]), | |
| 13434 | + %UseSerializers{ | |
| 13435 | + use_serializers: decode_use_serializers(m["UseSerializers"]), | |
| 13436 | 13436 | } |
| 13437 | 13437 | end |
| 13438 | 13438 | |
| @@ -13444,7 +13444,7 @@ defmodule Ushort do | ||
| 13444 | 13444 | |
| 13445 | 13445 | def to_map(struct) do |
| 13446 | 13446 | %{ |
| 13447 | - "ushort" => struct.ushort, | |
| 13447 | + "UseSerializers" => struct.use_serializers, | |
| 13448 | 13448 | } |
| 13449 | 13449 | end |
| 13450 | 13450 | |
| @@ -13456,8 +13456,8 @@ defmodule Ushort do | ||
| 13456 | 13456 | end |
| 13457 | 13457 | |
| 13458 | 13458 | defmodule Obj5 do |
| 13459 | - @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers, :ushort] | |
| 13460 | - defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers, :ushort] | |
| 13459 | + @enforce_keys [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers] | |
| 13460 | + defstruct [:dummy, :k_serializer, :obj5_self, :obj5_true, :obj5_type, :primitive_kind, :sealed, :sel, :select, :self, :sendable, :serial_descriptor, :serial_name, :serializable, :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, :use_serializers] | |
| 13461 | 13461 | |
| 13462 | 13462 | @type t :: %__MODULE__{ |
| 13463 | 13463 | dummy: integer(), |
| @@ -13466,6 +13466,9 @@ defmodule Obj5 do | ||
| 13466 | 13466 | obj5_true: TrueClass.t(), |
| 13467 | 13467 | obj5_type: TypeClass.t(), |
| 13468 | 13468 | primitive_kind: PrimitiveKind.t(), |
| 13469 | + sealed: Sealed.t(), | |
| 13470 | + sel: Sel.t(), | |
| 13471 | + select: Select.t(), | |
| 13469 | 13472 | self: Self.t(), |
| 13470 | 13473 | sendable: Sendable.t(), |
| 13471 | 13474 | serial_descriptor: SerialDescriptor.t(), |
| @@ -13521,10 +13524,7 @@ defmodule Obj5 do | ||
| 13521 | 13524 | undefined: Undefined.t(), |
| 13522 | 13525 | union: Union.t(), |
| 13523 | 13526 | unowned: Unowned.t(), |
| 13524 | - unsafe: Unsafe.t(), | |
| 13525 | - unsigned: Unsigned.t(), | |
| 13526 | - use_serializers: UseSerializers.t(), | |
| 13527 | - ushort: Ushort.t() | |
| 13527 | + use_serializers: UseSerializers.t() | |
| 13528 | 13528 | } |
| 13529 | 13529 | |
| 13530 | 13530 | def decode_dummy(value) when is_integer(value), do: value |
| @@ -13541,6 +13541,9 @@ defmodule Obj5 do | ||
| 13541 | 13541 | obj5_true: TrueClass.from_map(m["True"]), |
| 13542 | 13542 | obj5_type: TypeClass.from_map(m["type"]), |
| 13543 | 13543 | primitive_kind: PrimitiveKind.from_map(m["PrimitiveKind"]), |
| 13544 | + sealed: Sealed.from_map(m["sealed"]), | |
| 13545 | + sel: Sel.from_map(m["SEL"]), | |
| 13546 | + select: Select.from_map(m["select"]), | |
| 13544 | 13547 | self: Self.from_map(m["Self"]), |
| 13545 | 13548 | sendable: Sendable.from_map(m["Sendable"]), |
| 13546 | 13549 | serial_descriptor: SerialDescriptor.from_map(m["SerialDescriptor"]), |
| @@ -13596,10 +13599,7 @@ defmodule Obj5 do | ||
| 13596 | 13599 | undefined: Undefined.from_map(m["undefined"]), |
| 13597 | 13600 | union: Union.from_map(m["union"]), |
| 13598 | 13601 | unowned: Unowned.from_map(m["unowned"]), |
| 13599 | - unsafe: Unsafe.from_map(m["unsafe"]), | |
| 13600 | - unsigned: Unsigned.from_map(m["unsigned"]), | |
| 13601 | 13602 | use_serializers: UseSerializers.from_map(m["UseSerializers"]), |
| 13602 | - ushort: Ushort.from_map(m["ushort"]), | |
| 13603 | 13603 | } |
| 13604 | 13604 | end |
| 13605 | 13605 | |
| @@ -13617,6 +13617,9 @@ defmodule Obj5 do | ||
| 13617 | 13617 | "True" => TrueClass.to_map(struct.obj5_true), |
| 13618 | 13618 | "type" => TypeClass.to_map(struct.obj5_type), |
| 13619 | 13619 | "PrimitiveKind" => PrimitiveKind.to_map(struct.primitive_kind), |
| 13620 | + "sealed" => Sealed.to_map(struct.sealed), | |
| 13621 | + "SEL" => Sel.to_map(struct.sel), | |
| 13622 | + "select" => Select.to_map(struct.select), | |
| 13620 | 13623 | "Self" => Self.to_map(struct.self), |
| 13621 | 13624 | "Sendable" => Sendable.to_map(struct.sendable), |
| 13622 | 13625 | "SerialDescriptor" => SerialDescriptor.to_map(struct.serial_descriptor), |
| @@ -13672,10 +13675,124 @@ defmodule Obj5 do | ||
| 13672 | 13675 | "undefined" => Undefined.to_map(struct.undefined), |
| 13673 | 13676 | "union" => Union.to_map(struct.union), |
| 13674 | 13677 | "unowned" => Unowned.to_map(struct.unowned), |
| 13675 | - "unsafe" => Unsafe.to_map(struct.unsafe), | |
| 13676 | - "unsigned" => Unsigned.to_map(struct.unsigned), | |
| 13677 | 13678 | "UseSerializers" => UseSerializers.to_map(struct.use_serializers), |
| 13678 | - "ushort" => Ushort.to_map(struct.ushort), | |
| 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 Unsafe do | |
| 13690 | + @enforce_keys [:unsafe] | |
| 13691 | + defstruct [:unsafe] | |
| 13692 | + | |
| 13693 | + @type t :: %__MODULE__{ | |
| 13694 | + unsafe: integer() | |
| 13695 | + } | |
| 13696 | + | |
| 13697 | + def decode_unsafe(value) when is_integer(value), do: value | |
| 13698 | + def decode_unsafe(_), do: {:error, "Unexpected type when decoding Unsafe.unsafe"} | |
| 13699 | + | |
| 13700 | + def encode_unsafe(value) when is_integer(value), do: value | |
| 13701 | + def encode_unsafe(_), do: {:error, "Unexpected type when encoding Unsafe.unsafe"} | |
| 13702 | + | |
| 13703 | + def from_map(m) do | |
| 13704 | + %Unsafe{ | |
| 13705 | + unsafe: decode_unsafe(m["unsafe"]), | |
| 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 | + "unsafe" => struct.unsafe, | |
| 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 Unsigned do | |
| 13729 | + @enforce_keys [:unsigned] | |
| 13730 | + defstruct [:unsigned] | |
| 13731 | + | |
| 13732 | + @type t :: %__MODULE__{ | |
| 13733 | + unsigned: integer() | |
| 13734 | + } | |
| 13735 | + | |
| 13736 | + def decode_unsigned(value) when is_integer(value), do: value | |
| 13737 | + def decode_unsigned(_), do: {:error, "Unexpected type when decoding Unsigned.unsigned"} | |
| 13738 | + | |
| 13739 | + def encode_unsigned(value) when is_integer(value), do: value | |
| 13740 | + def encode_unsigned(_), do: {:error, "Unexpected type when encoding Unsigned.unsigned"} | |
| 13741 | + | |
| 13742 | + def from_map(m) do | |
| 13743 | + %Unsigned{ | |
| 13744 | + unsigned: decode_unsigned(m["unsigned"]), | |
| 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 | + "unsigned" => struct.unsigned, | |
| 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 Ushort do | |
| 13768 | + @enforce_keys [:ushort] | |
| 13769 | + defstruct [:ushort] | |
| 13770 | + | |
| 13771 | + @type t :: %__MODULE__{ | |
| 13772 | + ushort: integer() | |
| 13773 | + } | |
| 13774 | + | |
| 13775 | + def decode_ushort(value) when is_integer(value), do: value | |
| 13776 | + def decode_ushort(_), do: {:error, "Unexpected type when decoding Ushort.ushort"} | |
| 13777 | + | |
| 13778 | + def encode_ushort(value) when is_integer(value), do: value | |
| 13779 | + def encode_ushort(_), do: {:error, "Unexpected type when encoding Ushort.ushort"} | |
| 13780 | + | |
| 13781 | + def from_map(m) do | |
| 13782 | + %Ushort{ | |
| 13783 | + ushort: decode_ushort(m["ushort"]), | |
| 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 | + "ushort" => struct.ushort, | |
| 13679 | 13796 | } |
| 13680 | 13797 | end |
| 13681 | 13798 | |
| @@ -14389,11 +14506,14 @@ defmodule Yield do | ||
| 14389 | 14506 | end |
| 14390 | 14507 | |
| 14391 | 14508 | defmodule Obj6 do |
| 14392 | - @enforce_keys [:dummy, :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] | |
| 14393 | - defstruct [:dummy, :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] | |
| 14509 | + @enforce_keys [:dummy, :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] | |
| 14510 | + defstruct [:dummy, :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] | |
| 14394 | 14511 | |
| 14395 | 14512 | @type t :: %__MODULE__{ |
| 14396 | 14513 | dummy: integer(), |
| 14514 | + unsafe: Unsafe.t(), | |
| 14515 | + unsigned: Unsigned.t(), | |
| 14516 | + ushort: Ushort.t(), | |
| 14397 | 14517 | using: Using.t(), |
| 14398 | 14518 | utf8_json_reader: Utf8JSONReader.t(), |
| 14399 | 14519 | utf8_json_writer: Utf8JSONWriter.t(), |
| @@ -14423,6 +14543,9 @@ defmodule Obj6 do | ||
| 14423 | 14543 | def from_map(m) do |
| 14424 | 14544 | %Obj6{ |
| 14425 | 14545 | dummy: decode_dummy(m["dummy"]), |
| 14546 | + unsafe: Unsafe.from_map(m["unsafe"]), | |
| 14547 | + unsigned: Unsigned.from_map(m["unsigned"]), | |
| 14548 | + ushort: Ushort.from_map(m["ushort"]), | |
| 14426 | 14549 | using: Using.from_map(m["using"]), |
| 14427 | 14550 | utf8_json_reader: Utf8JSONReader.from_map(m["Utf8JsonReader"]), |
| 14428 | 14551 | utf8_json_writer: Utf8JSONWriter.from_map(m["Utf8JsonWriter"]), |
| @@ -14453,6 +14576,9 @@ defmodule Obj6 do | ||
| 14453 | 14576 | def to_map(struct) do |
| 14454 | 14577 | %{ |
| 14455 | 14578 | "dummy" => struct.dummy, |
| 14579 | + "unsafe" => Unsafe.to_map(struct.unsafe), | |
| 14580 | + "unsigned" => Unsigned.to_map(struct.unsigned), | |
| 14581 | + "ushort" => Ushort.to_map(struct.ushort), | |
| 14456 | 14582 | "using" => Using.to_map(struct.using), |
| 14457 | 14583 | "Utf8JsonReader" => Utf8JSONReader.to_map(struct.utf8_json_reader), |
| 14458 | 14584 | "Utf8JsonWriter" => Utf8JSONWriter.to_map(struct.utf8_json_writer), |
Melmdefault / QuickType.elm+190 −133
| @@ -188,6 +188,7 @@ module QuickType exposing | ||
| 188 | 188 | , Lazy |
| 189 | 189 | , Left |
| 190 | 190 | , ListClass |
| 191 | + , LocalDate | |
| 191 | 192 | , Locale |
| 192 | 193 | , Lock |
| 193 | 194 | , Long |
| @@ -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 | + , OffsetDateTime | |
| 236 | + , OffsetTime | |
| 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 | , KSerializer |
| 280 | 280 | , SelfClass |
| @@ -284,6 +284,9 @@ module QuickType exposing | ||
| 284 | 284 | , Type |
| 285 | 285 | , PrimitiveKind |
| 286 | 286 | , TypeClass |
| 287 | + , Sealed | |
| 288 | + , Sel | |
| 289 | + , Select | |
| 287 | 290 | , Self |
| 288 | 291 | , Sendable |
| 289 | 292 | , SerialDescriptor |
| @@ -336,12 +339,12 @@ module QuickType exposing | ||
| 336 | 339 | , Undefined |
| 337 | 340 | , Union |
| 338 | 341 | , Unowned |
| 339 | - , Unsafe | |
| 340 | - , Unsigned | |
| 341 | 342 | , UseSerializers |
| 342 | - , Ushort | |
| 343 | 343 | , Obj6 |
| 344 | 344 | , Where |
| 345 | + , Unsafe | |
| 346 | + , Unsigned | |
| 347 | + , Ushort | |
| 345 | 348 | , Using |
| 346 | 349 | , Utf8JSONReader |
| 347 | 350 | , Utf8JSONWriter |
| @@ -1073,6 +1076,7 @@ type alias Obj3 = | ||
| 1073 | 1076 | , lazy : Lazy |
| 1074 | 1077 | , left : Left |
| 1075 | 1078 | , list : ListClass |
| 1079 | + , localDate : LocalDate | |
| 1076 | 1080 | , locale : Locale |
| 1077 | 1081 | , lock : Lock |
| 1078 | 1082 | , long : Long |
| @@ -1087,7 +1091,6 @@ type alias Obj3 = | ||
| 1087 | 1091 | , newtonsoft : Newtonsoft |
| 1088 | 1092 | , nil : Nil |
| 1089 | 1093 | , no : No |
| 1090 | - , noexcept : Noexcept | |
| 1091 | 1094 | , obj3If : If |
| 1092 | 1095 | , obj3Import : Import |
| 1093 | 1096 | , obj3In : In |
| @@ -1265,6 +1268,10 @@ type alias ListClass = | ||
| 1265 | 1268 | { list : Int |
| 1266 | 1269 | } |
| 1267 | 1270 | |
| 1271 | +type alias LocalDate = | |
| 1272 | + { localDate : Int | |
| 1273 | + } | |
| 1274 | + | |
| 1268 | 1275 | type alias Locale = |
| 1269 | 1276 | { locale : Int |
| 1270 | 1277 | } |
| @@ -1321,10 +1328,6 @@ type alias No = | ||
| 1321 | 1328 | { no : Int |
| 1322 | 1329 | } |
| 1323 | 1330 | |
| 1324 | -type alias Noexcept = | |
| 1325 | - { noexcept : Int | |
| 1326 | - } | |
| 1327 | - | |
| 1328 | 1331 | type alias If = |
| 1329 | 1332 | { ifIf : Int |
| 1330 | 1333 | } |
| @@ -1356,6 +1359,7 @@ type alias Module = | ||
| 1356 | 1359 | type alias Obj4 = |
| 1357 | 1360 | { dummy : Int |
| 1358 | 1361 | , noSuchMethod : NoSuchMethod |
| 1362 | + , noexcept : Noexcept | |
| 1359 | 1363 | , nonatomic : Nonatomic |
| 1360 | 1364 | , none : None |
| 1361 | 1365 | , nonlocal : Nonlocal |
| @@ -1375,6 +1379,8 @@ type alias Obj4 = | ||
| 1375 | 1379 | , obj4Protocol : ProtocolClass |
| 1376 | 1380 | , object : Object |
| 1377 | 1381 | , objectMapper : ObjectMapper |
| 1382 | + , offsetDateTime : OffsetDateTime | |
| 1383 | + , offsetTime : OffsetTime | |
| 1378 | 1384 | , oneway : Oneway |
| 1379 | 1385 | , open : Open |
| 1380 | 1386 | , operator : Operator |
| @@ -1416,15 +1422,16 @@ type alias Obj4 = | ||
| 1416 | 1422 | , runtimeType : RuntimeType |
| 1417 | 1423 | , s : S |
| 1418 | 1424 | , sbyte : Sbyte |
| 1419 | - , sealed : Sealed | |
| 1420 | - , sel : Sel | |
| 1421 | - , select : Select | |
| 1422 | 1425 | } |
| 1423 | 1426 | |
| 1424 | 1427 | type alias NoSuchMethod = |
| 1425 | 1428 | { noSuchMethod : Int |
| 1426 | 1429 | } |
| 1427 | 1430 | |
| 1431 | +type alias Noexcept = | |
| 1432 | + { noexcept : Int | |
| 1433 | + } | |
| 1434 | + | |
| 1428 | 1435 | type alias Nonatomic = |
| 1429 | 1436 | { nonatomic : Int |
| 1430 | 1437 | } |
| @@ -1501,6 +1508,14 @@ type alias ObjectMapper = | ||
| 1501 | 1508 | { objectMapper : Int |
| 1502 | 1509 | } |
| 1503 | 1510 | |
| 1511 | +type alias OffsetDateTime = | |
| 1512 | + { offsetDateTime : Int | |
| 1513 | + } | |
| 1514 | + | |
| 1515 | +type alias OffsetTime = | |
| 1516 | + { offsetTime : Int | |
| 1517 | + } | |
| 1518 | + | |
| 1504 | 1519 | type alias Oneway = |
| 1505 | 1520 | { oneway : Int |
| 1506 | 1521 | } |
| @@ -1665,18 +1680,6 @@ type alias Sbyte = | ||
| 1665 | 1680 | { sbyte : Int |
| 1666 | 1681 | } |
| 1667 | 1682 | |
| 1668 | -type alias Sealed = | |
| 1669 | - { sealed : Int | |
| 1670 | - } | |
| 1671 | - | |
| 1672 | -type alias Sel = | |
| 1673 | - { sel : Int | |
| 1674 | - } | |
| 1675 | - | |
| 1676 | -type alias Select = | |
| 1677 | - { select : Int | |
| 1678 | - } | |
| 1679 | - | |
| 1680 | 1683 | type alias Obj5 = |
| 1681 | 1684 | { dummy : Int |
| 1682 | 1685 | , kSerializer : KSerializer |
| @@ -1687,6 +1690,9 @@ type alias Obj5 = | ||
| 1687 | 1690 | , obj5Type : Type |
| 1688 | 1691 | , primitiveKind : PrimitiveKind |
| 1689 | 1692 | , purpleType : TypeClass |
| 1693 | + , sealed : Sealed | |
| 1694 | + , sel : Sel | |
| 1695 | + , select : Select | |
| 1690 | 1696 | , self : Self |
| 1691 | 1697 | , sendable : Sendable |
| 1692 | 1698 | , serialDescriptor : SerialDescriptor |
| @@ -1739,10 +1745,7 @@ type alias Obj5 = | ||
| 1739 | 1745 | , undefined : Undefined |
| 1740 | 1746 | , union : Union |
| 1741 | 1747 | , unowned : Unowned |
| 1742 | - , unsafe : Unsafe | |
| 1743 | - , unsigned : Unsigned | |
| 1744 | 1748 | , useSerializers : UseSerializers |
| 1745 | - , ushort : Ushort | |
| 1746 | 1749 | } |
| 1747 | 1750 | |
| 1748 | 1751 | type alias KSerializer = |
| @@ -1777,6 +1780,18 @@ type alias TypeClass = | ||
| 1777 | 1780 | { typeType : Int |
| 1778 | 1781 | } |
| 1779 | 1782 | |
| 1783 | +type alias Sealed = | |
| 1784 | + { sealed : Int | |
| 1785 | + } | |
| 1786 | + | |
| 1787 | +type alias Sel = | |
| 1788 | + { sel : Int | |
| 1789 | + } | |
| 1790 | + | |
| 1791 | +type alias Select = | |
| 1792 | + { select : Int | |
| 1793 | + } | |
| 1794 | + | |
| 1780 | 1795 | type alias Self = |
| 1781 | 1796 | { self : Int |
| 1782 | 1797 | } |
| @@ -1985,25 +2000,16 @@ type alias Unowned = | ||
| 1985 | 2000 | { unowned : Int |
| 1986 | 2001 | } |
| 1987 | 2002 | |
| 1988 | -type alias Unsafe = | |
| 1989 | - { unsafe : Int | |
| 1990 | - } | |
| 1991 | - | |
| 1992 | -type alias Unsigned = | |
| 1993 | - { unsigned : Int | |
| 1994 | - } | |
| 1995 | - | |
| 1996 | 2003 | type alias UseSerializers = |
| 1997 | 2004 | { useSerializers : Int |
| 1998 | 2005 | } |
| 1999 | 2006 | |
| 2000 | -type alias Ushort = | |
| 2001 | - { ushort : Int | |
| 2002 | - } | |
| 2003 | - | |
| 2004 | 2007 | type alias Obj6 = |
| 2005 | 2008 | { dummy : Int |
| 2006 | 2009 | , obj6Where : Where |
| 2010 | + , unsafe : Unsafe | |
| 2011 | + , unsigned : Unsigned | |
| 2012 | + , ushort : Ushort | |
| 2007 | 2013 | , using : Using |
| 2008 | 2014 | , utf8JSONReader : Utf8JSONReader |
| 2009 | 2015 | , utf8JSONWriter : Utf8JSONWriter |
| @@ -2027,6 +2033,18 @@ type alias Where = | ||
| 2027 | 2033 | { whereWhere : Int |
| 2028 | 2034 | } |
| 2029 | 2035 | |
| 2036 | +type alias Unsafe = | |
| 2037 | + { unsafe : Int | |
| 2038 | + } | |
| 2039 | + | |
| 2040 | +type alias Unsigned = | |
| 2041 | + { unsigned : Int | |
| 2042 | + } | |
| 2043 | + | |
| 2044 | +type alias Ushort = | |
| 2045 | + { ushort : Int | |
| 2046 | + } | |
| 2047 | + | |
| 2030 | 2048 | type alias Using = |
| 2031 | 2049 | { using : Int |
| 2032 | 2050 | } |
| @@ -3876,6 +3894,7 @@ obj3 = | ||
| 3876 | 3894 | |> Jpipe.required "lazy" lazy |
| 3877 | 3895 | |> Jpipe.required "left" left |
| 3878 | 3896 | |> Jpipe.required "list" listClass |
| 3897 | + |> Jpipe.required "LocalDate" localDate | |
| 3879 | 3898 | |> Jpipe.required "Locale" locale |
| 3880 | 3899 | |> Jpipe.required "lock" lock |
| 3881 | 3900 | |> Jpipe.required "long" long |
| @@ -3890,7 +3909,6 @@ obj3 = | ||
| 3890 | 3909 | |> Jpipe.required "newtonsoft" newtonsoft |
| 3891 | 3910 | |> Jpipe.required "nil" nil |
| 3892 | 3911 | |> Jpipe.required "NO" no |
| 3893 | - |> Jpipe.required "noexcept" noexcept | |
| 3894 | 3912 | |> Jpipe.required "if" purpleIf |
| 3895 | 3913 | |> Jpipe.required "import" purpleImport |
| 3896 | 3914 | |> Jpipe.required "in" purpleIn |
| @@ -3945,6 +3963,7 @@ encodeObj3 x = | ||
| 3945 | 3963 | , ("lazy", encodeLazy x.lazy) |
| 3946 | 3964 | , ("left", encodeLeft x.left) |
| 3947 | 3965 | , ("list", encodeListClass x.list) |
| 3966 | + , ("LocalDate", encodeLocalDate x.localDate) | |
| 3948 | 3967 | , ("Locale", encodeLocale x.locale) |
| 3949 | 3968 | , ("lock", encodeLock x.lock) |
| 3950 | 3969 | , ("long", encodeLong x.long) |
| @@ -3959,7 +3978,6 @@ encodeObj3 x = | ||
| 3959 | 3978 | , ("newtonsoft", encodeNewtonsoft x.newtonsoft) |
| 3960 | 3979 | , ("nil", encodeNil x.nil) |
| 3961 | 3980 | , ("NO", encodeNo x.no) |
| 3962 | - , ("noexcept", encodeNoexcept x.noexcept) | |
| 3963 | 3981 | , ("if", encodeIf x.obj3If) |
| 3964 | 3982 | , ("import", encodeImport x.obj3Import) |
| 3965 | 3983 | , ("in", encodeIn x.obj3In) |
| @@ -4431,6 +4449,17 @@ encodeListClass x = | ||
| 4431 | 4449 | [ ("list", Jenc.int x.list) |
| 4432 | 4450 | ] |
| 4433 | 4451 | |
| 4452 | +localDate : Jdec.Decoder LocalDate | |
| 4453 | +localDate = | |
| 4454 | + Jdec.succeed LocalDate | |
| 4455 | + |> Jpipe.required "LocalDate" Jdec.int | |
| 4456 | + | |
| 4457 | +encodeLocalDate : LocalDate -> Jenc.Value | |
| 4458 | +encodeLocalDate x = | |
| 4459 | + Jenc.object | |
| 4460 | + [ ("LocalDate", Jenc.int x.localDate) | |
| 4461 | + ] | |
| 4462 | + | |
| 4434 | 4463 | locale : Jdec.Decoder Locale |
| 4435 | 4464 | locale = |
| 4436 | 4465 | Jdec.succeed Locale |
| @@ -4585,17 +4614,6 @@ encodeNo x = | ||
| 4585 | 4614 | [ ("NO", Jenc.int x.no) |
| 4586 | 4615 | ] |
| 4587 | 4616 | |
| 4588 | -noexcept : Jdec.Decoder Noexcept | |
| 4589 | -noexcept = | |
| 4590 | - Jdec.succeed Noexcept | |
| 4591 | - |> Jpipe.required "noexcept" Jdec.int | |
| 4592 | - | |
| 4593 | -encodeNoexcept : Noexcept -> Jenc.Value | |
| 4594 | -encodeNoexcept x = | |
| 4595 | - Jenc.object | |
| 4596 | - [ ("noexcept", Jenc.int x.noexcept) | |
| 4597 | - ] | |
| 4598 | - | |
| 4599 | 4617 | purpleIf : Jdec.Decoder If |
| 4600 | 4618 | purpleIf = |
| 4601 | 4619 | Jdec.succeed If |
| @@ -4678,6 +4696,7 @@ obj4 = | ||
| 4678 | 4696 | Jdec.succeed Obj4 |
| 4679 | 4697 | |> Jpipe.required "dummy" Jdec.int |
| 4680 | 4698 | |> Jpipe.required "noSuchMethod" noSuchMethod |
| 4699 | + |> Jpipe.required "noexcept" noexcept | |
| 4681 | 4700 | |> Jpipe.required "nonatomic" nonatomic |
| 4682 | 4701 | |> Jpipe.required "None" none |
| 4683 | 4702 | |> Jpipe.required "nonlocal" nonlocal |
| @@ -4697,6 +4716,8 @@ obj4 = | ||
| 4697 | 4716 | |> Jpipe.required "protocol" protocolClass |
| 4698 | 4717 | |> Jpipe.required "object" object |
| 4699 | 4718 | |> Jpipe.required "ObjectMapper" objectMapper |
| 4719 | + |> Jpipe.required "OffsetDateTime" offsetDateTime | |
| 4720 | + |> Jpipe.required "OffsetTime" offsetTime | |
| 4700 | 4721 | |> Jpipe.required "oneway" oneway |
| 4701 | 4722 | |> Jpipe.required "open" open |
| 4702 | 4723 | |> Jpipe.required "operator" operator |
| @@ -4738,15 +4759,13 @@ obj4 = | ||
| 4738 | 4759 | |> Jpipe.required "runtimeType" runtimeType |
| 4739 | 4760 | |> Jpipe.required "s" s |
| 4740 | 4761 | |> Jpipe.required "sbyte" sbyte |
| 4741 | - |> Jpipe.required "sealed" sealed | |
| 4742 | - |> Jpipe.required "SEL" sel | |
| 4743 | - |> Jpipe.required "select" select | |
| 4744 | 4762 | |
| 4745 | 4763 | encodeObj4 : Obj4 -> Jenc.Value |
| 4746 | 4764 | encodeObj4 x = |
| 4747 | 4765 | Jenc.object |
| 4748 | 4766 | [ ("dummy", Jenc.int x.dummy) |
| 4749 | 4767 | , ("noSuchMethod", encodeNoSuchMethod x.noSuchMethod) |
| 4768 | + , ("noexcept", encodeNoexcept x.noexcept) | |
| 4750 | 4769 | , ("nonatomic", encodeNonatomic x.nonatomic) |
| 4751 | 4770 | , ("None", encodeNone x.none) |
| 4752 | 4771 | , ("nonlocal", encodeNonlocal x.nonlocal) |
| @@ -4766,6 +4785,8 @@ encodeObj4 x = | ||
| 4766 | 4785 | , ("protocol", encodeProtocolClass x.obj4Protocol) |
| 4767 | 4786 | , ("object", encodeObject x.object) |
| 4768 | 4787 | , ("ObjectMapper", encodeObjectMapper x.objectMapper) |
| 4788 | + , ("OffsetDateTime", encodeOffsetDateTime x.offsetDateTime) | |
| 4789 | + , ("OffsetTime", encodeOffsetTime x.offsetTime) | |
| 4769 | 4790 | , ("oneway", encodeOneway x.oneway) |
| 4770 | 4791 | , ("open", encodeOpen x.open) |
| 4771 | 4792 | , ("operator", encodeOperator x.operator) |
| @@ -4807,9 +4828,6 @@ encodeObj4 x = | ||
| 4807 | 4828 | , ("runtimeType", encodeRuntimeType x.runtimeType) |
| 4808 | 4829 | , ("s", encodeS x.s) |
| 4809 | 4830 | , ("sbyte", encodeSbyte x.sbyte) |
| 4810 | - , ("sealed", encodeSealed x.sealed) | |
| 4811 | - , ("SEL", encodeSel x.sel) | |
| 4812 | - , ("select", encodeSelect x.select) | |
| 4813 | 4831 | ] |
| 4814 | 4832 | |
| 4815 | 4833 | noSuchMethod : Jdec.Decoder NoSuchMethod |
| @@ -4823,6 +4841,17 @@ encodeNoSuchMethod x = | ||
| 4823 | 4841 | [ ("noSuchMethod", Jenc.int x.noSuchMethod) |
| 4824 | 4842 | ] |
| 4825 | 4843 | |
| 4844 | +noexcept : Jdec.Decoder Noexcept | |
| 4845 | +noexcept = | |
| 4846 | + Jdec.succeed Noexcept | |
| 4847 | + |> Jpipe.required "noexcept" Jdec.int | |
| 4848 | + | |
| 4849 | +encodeNoexcept : Noexcept -> Jenc.Value | |
| 4850 | +encodeNoexcept x = | |
| 4851 | + Jenc.object | |
| 4852 | + [ ("noexcept", Jenc.int x.noexcept) | |
| 4853 | + ] | |
| 4854 | + | |
| 4826 | 4855 | nonatomic : Jdec.Decoder Nonatomic |
| 4827 | 4856 | nonatomic = |
| 4828 | 4857 | Jdec.succeed Nonatomic |
| @@ -5032,6 +5061,28 @@ encodeObjectMapper x = | ||
| 5032 | 5061 | [ ("ObjectMapper", Jenc.int x.objectMapper) |
| 5033 | 5062 | ] |
| 5034 | 5063 | |
| 5064 | +offsetDateTime : Jdec.Decoder OffsetDateTime | |
| 5065 | +offsetDateTime = | |
| 5066 | + Jdec.succeed OffsetDateTime | |
| 5067 | + |> Jpipe.required "OffsetDateTime" Jdec.int | |
| 5068 | + | |
| 5069 | +encodeOffsetDateTime : OffsetDateTime -> Jenc.Value | |
| 5070 | +encodeOffsetDateTime x = | |
| 5071 | + Jenc.object | |
| 5072 | + [ ("OffsetDateTime", Jenc.int x.offsetDateTime) | |
| 5073 | + ] | |
| 5074 | + | |
| 5075 | +offsetTime : Jdec.Decoder OffsetTime | |
| 5076 | +offsetTime = | |
| 5077 | + Jdec.succeed OffsetTime | |
| 5078 | + |> Jpipe.required "OffsetTime" Jdec.int | |
| 5079 | + | |
| 5080 | +encodeOffsetTime : OffsetTime -> Jenc.Value | |
| 5081 | +encodeOffsetTime x = | |
| 5082 | + Jenc.object | |
| 5083 | + [ ("OffsetTime", Jenc.int x.offsetTime) | |
| 5084 | + ] | |
| 5085 | + | |
| 5035 | 5086 | oneway : Jdec.Decoder Oneway |
| 5036 | 5087 | oneway = |
| 5037 | 5088 | Jdec.succeed Oneway |
| @@ -5483,39 +5534,6 @@ encodeSbyte x = | ||
| 5483 | 5534 | [ ("sbyte", Jenc.int x.sbyte) |
| 5484 | 5535 | ] |
| 5485 | 5536 | |
| 5486 | -sealed : Jdec.Decoder Sealed | |
| 5487 | -sealed = | |
| 5488 | - Jdec.succeed Sealed | |
| 5489 | - |> Jpipe.required "sealed" Jdec.int | |
| 5490 | - | |
| 5491 | -encodeSealed : Sealed -> Jenc.Value | |
| 5492 | -encodeSealed x = | |
| 5493 | - Jenc.object | |
| 5494 | - [ ("sealed", Jenc.int x.sealed) | |
| 5495 | - ] | |
| 5496 | - | |
| 5497 | -sel : Jdec.Decoder Sel | |
| 5498 | -sel = | |
| 5499 | - Jdec.succeed Sel | |
| 5500 | - |> Jpipe.required "SEL" Jdec.int | |
| 5501 | - | |
| 5502 | -encodeSel : Sel -> Jenc.Value | |
| 5503 | -encodeSel x = | |
| 5504 | - Jenc.object | |
| 5505 | - [ ("SEL", Jenc.int x.sel) | |
| 5506 | - ] | |
| 5507 | - | |
| 5508 | -select : Jdec.Decoder Select | |
| 5509 | -select = | |
| 5510 | - Jdec.succeed Select | |
| 5511 | - |> Jpipe.required "select" Jdec.int | |
| 5512 | - | |
| 5513 | -encodeSelect : Select -> Jenc.Value | |
| 5514 | -encodeSelect x = | |
| 5515 | - Jenc.object | |
| 5516 | - [ ("select", Jenc.int x.select) | |
| 5517 | - ] | |
| 5518 | - | |
| 5519 | 5537 | obj5 : Jdec.Decoder Obj5 |
| 5520 | 5538 | obj5 = |
| 5521 | 5539 | Jdec.succeed Obj5 |
| @@ -5528,6 +5546,9 @@ obj5 = | ||
| 5528 | 5546 | |> Jpipe.required "Type" purpleType |
| 5529 | 5547 | |> Jpipe.required "PrimitiveKind" primitiveKind |
| 5530 | 5548 | |> Jpipe.required "type" typeClass |
| 5549 | + |> Jpipe.required "sealed" sealed | |
| 5550 | + |> Jpipe.required "SEL" sel | |
| 5551 | + |> Jpipe.required "select" select | |
| 5531 | 5552 | |> Jpipe.required "Self" self |
| 5532 | 5553 | |> Jpipe.required "Sendable" sendable |
| 5533 | 5554 | |> Jpipe.required "SerialDescriptor" serialDescriptor |
| @@ -5580,10 +5601,7 @@ obj5 = | ||
| 5580 | 5601 | |> Jpipe.required "undefined" undefined |
| 5581 | 5602 | |> Jpipe.required "union" union |
| 5582 | 5603 | |> Jpipe.required "unowned" unowned |
| 5583 | - |> Jpipe.required "unsafe" unsafe | |
| 5584 | - |> Jpipe.required "unsigned" unsigned | |
| 5585 | 5604 | |> Jpipe.required "UseSerializers" useSerializers |
| 5586 | - |> Jpipe.required "ushort" ushort | |
| 5587 | 5605 | |
| 5588 | 5606 | encodeObj5 : Obj5 -> Jenc.Value |
| 5589 | 5607 | encodeObj5 x = |
| @@ -5597,6 +5615,9 @@ encodeObj5 x = | ||
| 5597 | 5615 | , ("Type", encodeType x.obj5Type) |
| 5598 | 5616 | , ("PrimitiveKind", encodePrimitiveKind x.primitiveKind) |
| 5599 | 5617 | , ("type", encodeTypeClass x.purpleType) |
| 5618 | + , ("sealed", encodeSealed x.sealed) | |
| 5619 | + , ("SEL", encodeSel x.sel) | |
| 5620 | + , ("select", encodeSelect x.select) | |
| 5600 | 5621 | , ("Self", encodeSelf x.self) |
| 5601 | 5622 | , ("Sendable", encodeSendable x.sendable) |
| 5602 | 5623 | , ("SerialDescriptor", encodeSerialDescriptor x.serialDescriptor) |
| @@ -5649,10 +5670,7 @@ encodeObj5 x = | ||
| 5649 | 5670 | , ("undefined", encodeUndefined x.undefined) |
| 5650 | 5671 | , ("union", encodeUnion x.union) |
| 5651 | 5672 | , ("unowned", encodeUnowned x.unowned) |
| 5652 | - , ("unsafe", encodeUnsafe x.unsafe) | |
| 5653 | - , ("unsigned", encodeUnsigned x.unsigned) | |
| 5654 | 5673 | , ("UseSerializers", encodeUseSerializers x.useSerializers) |
| 5655 | - , ("ushort", encodeUshort x.ushort) | |
| 5656 | 5674 | ] |
| 5657 | 5675 | |
| 5658 | 5676 | kSerializer : Jdec.Decoder KSerializer |
| @@ -5743,6 +5761,39 @@ encodeTypeClass x = | ||
| 5743 | 5761 | [ ("type", Jenc.int x.typeType) |
| 5744 | 5762 | ] |
| 5745 | 5763 | |
| 5764 | +sealed : Jdec.Decoder Sealed | |
| 5765 | +sealed = | |
| 5766 | + Jdec.succeed Sealed | |
| 5767 | + |> Jpipe.required "sealed" Jdec.int | |
| 5768 | + | |
| 5769 | +encodeSealed : Sealed -> Jenc.Value | |
| 5770 | +encodeSealed x = | |
| 5771 | + Jenc.object | |
| 5772 | + [ ("sealed", Jenc.int x.sealed) | |
| 5773 | + ] | |
| 5774 | + | |
| 5775 | +sel : Jdec.Decoder Sel | |
| 5776 | +sel = | |
| 5777 | + Jdec.succeed Sel | |
| 5778 | + |> Jpipe.required "SEL" Jdec.int | |
| 5779 | + | |
| 5780 | +encodeSel : Sel -> Jenc.Value | |
| 5781 | +encodeSel x = | |
| 5782 | + Jenc.object | |
| 5783 | + [ ("SEL", Jenc.int x.sel) | |
| 5784 | + ] | |
| 5785 | + | |
| 5786 | +select : Jdec.Decoder Select | |
| 5787 | +select = | |
| 5788 | + Jdec.succeed Select | |
| 5789 | + |> Jpipe.required "select" Jdec.int | |
| 5790 | + | |
| 5791 | +encodeSelect : Select -> Jenc.Value | |
| 5792 | +encodeSelect x = | |
| 5793 | + Jenc.object | |
| 5794 | + [ ("select", Jenc.int x.select) | |
| 5795 | + ] | |
| 5796 | + | |
| 5746 | 5797 | self : Jdec.Decoder Self |
| 5747 | 5798 | self = |
| 5748 | 5799 | Jdec.succeed Self |
| @@ -6315,28 +6366,6 @@ encodeUnowned x = | ||
| 6315 | 6366 | [ ("unowned", Jenc.int x.unowned) |
| 6316 | 6367 | ] |
| 6317 | 6368 | |
| 6318 | -unsafe : Jdec.Decoder Unsafe | |
| 6319 | -unsafe = | |
| 6320 | - Jdec.succeed Unsafe | |
| 6321 | - |> Jpipe.required "unsafe" Jdec.int | |
| 6322 | - | |
| 6323 | -encodeUnsafe : Unsafe -> Jenc.Value | |
| 6324 | -encodeUnsafe x = | |
| 6325 | - Jenc.object | |
| 6326 | - [ ("unsafe", Jenc.int x.unsafe) | |
| 6327 | - ] | |
| 6328 | - | |
| 6329 | -unsigned : Jdec.Decoder Unsigned | |
| 6330 | -unsigned = | |
| 6331 | - Jdec.succeed Unsigned | |
| 6332 | - |> Jpipe.required "unsigned" Jdec.int | |
| 6333 | - | |
| 6334 | -encodeUnsigned : Unsigned -> Jenc.Value | |
| 6335 | -encodeUnsigned x = | |
| 6336 | - Jenc.object | |
| 6337 | - [ ("unsigned", Jenc.int x.unsigned) | |
| 6338 | - ] | |
| 6339 | - | |
| 6340 | 6369 | useSerializers : Jdec.Decoder UseSerializers |
| 6341 | 6370 | useSerializers = |
| 6342 | 6371 | Jdec.succeed UseSerializers |
| @@ -6348,22 +6377,14 @@ encodeUseSerializers x = | ||
| 6348 | 6377 | [ ("UseSerializers", Jenc.int x.useSerializers) |
| 6349 | 6378 | ] |
| 6350 | 6379 | |
| 6351 | -ushort : Jdec.Decoder Ushort | |
| 6352 | -ushort = | |
| 6353 | - Jdec.succeed Ushort | |
| 6354 | - |> Jpipe.required "ushort" Jdec.int | |
| 6355 | - | |
| 6356 | -encodeUshort : Ushort -> Jenc.Value | |
| 6357 | -encodeUshort x = | |
| 6358 | - Jenc.object | |
| 6359 | - [ ("ushort", Jenc.int x.ushort) | |
| 6360 | - ] | |
| 6361 | - | |
| 6362 | 6380 | obj6 : Jdec.Decoder Obj6 |
| 6363 | 6381 | obj6 = |
| 6364 | 6382 | Jdec.succeed Obj6 |
| 6365 | 6383 | |> Jpipe.required "dummy" Jdec.int |
| 6366 | 6384 | |> Jpipe.required "where" purpleWhere |
| 6385 | + |> Jpipe.required "unsafe" unsafe | |
| 6386 | + |> Jpipe.required "unsigned" unsigned | |
| 6387 | + |> Jpipe.required "ushort" ushort | |
| 6367 | 6388 | |> Jpipe.required "using" using |
| 6368 | 6389 | |> Jpipe.required "Utf8JsonReader" utf8JSONReader |
| 6369 | 6390 | |> Jpipe.required "Utf8JsonWriter" utf8JSONWriter |
| @@ -6387,6 +6408,9 @@ encodeObj6 x = | ||
| 6387 | 6408 | Jenc.object |
| 6388 | 6409 | [ ("dummy", Jenc.int x.dummy) |
| 6389 | 6410 | , ("where", encodeWhere x.obj6Where) |
| 6411 | + , ("unsafe", encodeUnsafe x.unsafe) | |
| 6412 | + , ("unsigned", encodeUnsigned x.unsigned) | |
| 6413 | + , ("ushort", encodeUshort x.ushort) | |
| 6390 | 6414 | , ("using", encodeUsing x.using) |
| 6391 | 6415 | , ("Utf8JsonReader", encodeUtf8JSONReader x.utf8JSONReader) |
| 6392 | 6416 | , ("Utf8JsonWriter", encodeUtf8JSONWriter x.utf8JSONWriter) |
| @@ -6417,6 +6441,39 @@ encodeWhere x = | ||
| 6417 | 6441 | [ ("where", Jenc.int x.whereWhere) |
| 6418 | 6442 | ] |
| 6419 | 6443 | |
| 6444 | +unsafe : Jdec.Decoder Unsafe | |
| 6445 | +unsafe = | |
| 6446 | + Jdec.succeed Unsafe | |
| 6447 | + |> Jpipe.required "unsafe" Jdec.int | |
| 6448 | + | |
| 6449 | +encodeUnsafe : Unsafe -> Jenc.Value | |
| 6450 | +encodeUnsafe x = | |
| 6451 | + Jenc.object | |
| 6452 | + [ ("unsafe", Jenc.int x.unsafe) | |
| 6453 | + ] | |
| 6454 | + | |
| 6455 | +unsigned : Jdec.Decoder Unsigned | |
| 6456 | +unsigned = | |
| 6457 | + Jdec.succeed Unsigned | |
| 6458 | + |> Jpipe.required "unsigned" Jdec.int | |
| 6459 | + | |
| 6460 | +encodeUnsigned : Unsigned -> Jenc.Value | |
| 6461 | +encodeUnsigned x = | |
| 6462 | + Jenc.object | |
| 6463 | + [ ("unsigned", Jenc.int x.unsigned) | |
| 6464 | + ] | |
| 6465 | + | |
| 6466 | +ushort : Jdec.Decoder Ushort | |
| 6467 | +ushort = | |
| 6468 | + Jdec.succeed Ushort | |
| 6469 | + |> Jpipe.required "ushort" Jdec.int | |
| 6470 | + | |
| 6471 | +encodeUshort : Ushort -> Jenc.Value | |
| 6472 | +encodeUshort x = | |
| 6473 | + Jenc.object | |
| 6474 | + [ ("ushort", Jenc.int x.ushort) | |
| 6475 | + ] | |
| 6476 | + | |
| 6420 | 6477 | using : Jdec.Decoder Using |
| 6421 | 6478 | using = |
| 6422 | 6479 | Jdec.succeed Using |
Mflowdefault / TopLevel.js+90 −63
| @@ -687,6 +687,7 @@ export type Obj3 = { | ||
| 687 | 687 | JsonParser: JSONParser; |
| 688 | 688 | JsonReader: JSONReader; |
| 689 | 689 | JsonTokenType: JSONTokenType; |
| 690 | + LocalDate: LocalDate; | |
| 690 | 691 | Locale: Locale; |
| 691 | 692 | MapEntry: MapEntry; |
| 692 | 693 | NO: No; |
| @@ -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 = { |
| @@ -799,6 +799,10 @@ export type JSONTokenType = { | ||
| 799 | 799 | JsonTokenType: number; |
| 800 | 800 | }; |
| 801 | 801 | |
| 802 | +export type LocalDate = { | |
| 803 | + LocalDate: number; | |
| 804 | +}; | |
| 805 | + | |
| 802 | 806 | export type Locale = { |
| 803 | 807 | Locale: number; |
| 804 | 808 | }; |
| @@ -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 | + OffsetDateTime: OffsetDateTime; | |
| 1006 | + OffsetTime: OffsetTime; | |
| 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 OffsetDateTime = { | |
| 1091 | + OffsetDateTime: number; | |
| 1092 | +}; | |
| 1093 | + | |
| 1094 | +export type OffsetTime = { | |
| 1095 | + OffsetTime: 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,17 +1319,10 @@ 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; | |
| 1320 | -}; | |
| 1321 | - | |
| 1322 | 1322 | export type Obj5 = { |
| 1323 | 1323 | KSerializer: KSerializer; |
| 1324 | 1324 | PrimitiveKind: PrimitiveKind; |
| 1325 | + SEL: Sel; | |
| 1325 | 1326 | Self: Self; |
| 1326 | 1327 | Sendable: Sendable; |
| 1327 | 1328 | SerialDescriptor: SerialDescriptor; |
| @@ -1339,6 +1340,8 @@ export type Obj5 = { | ||
| 1339 | 1340 | Type: Type; |
| 1340 | 1341 | UseSerializers: UseSerializers; |
| 1341 | 1342 | dummy: number; |
| 1343 | + sealed: Sealed; | |
| 1344 | + select: Select; | |
| 1342 | 1345 | self: SelfClass; |
| 1343 | 1346 | serialize: Serialize; |
| 1344 | 1347 | set: Set; |
| @@ -1382,9 +1385,6 @@ export type Obj5 = { | ||
| 1382 | 1385 | undefined: Undefined; |
| 1383 | 1386 | union: Union; |
| 1384 | 1387 | unowned: Unowned; |
| 1385 | - unsafe: Unsafe; | |
| 1386 | - unsigned: Unsigned; | |
| 1387 | - ushort: Ushort; | |
| 1388 | 1388 | }; |
| 1389 | 1389 | |
| 1390 | 1390 | export type KSerializer = { |
| @@ -1395,6 +1395,10 @@ export type PrimitiveKind = { | ||
| 1395 | 1395 | PrimitiveKind: number; |
| 1396 | 1396 | }; |
| 1397 | 1397 | |
| 1398 | +export type Sel = { | |
| 1399 | + SEL: number; | |
| 1400 | +}; | |
| 1401 | + | |
| 1398 | 1402 | export type Self = { |
| 1399 | 1403 | Self: number; |
| 1400 | 1404 | }; |
| @@ -1459,6 +1463,14 @@ export type UseSerializers = { | ||
| 1459 | 1463 | UseSerializers: number; |
| 1460 | 1464 | }; |
| 1461 | 1465 | |
| 1466 | +export type Sealed = { | |
| 1467 | + sealed: number; | |
| 1468 | +}; | |
| 1469 | + | |
| 1470 | +export type Select = { | |
| 1471 | + select: number; | |
| 1472 | +}; | |
| 1473 | + | |
| 1462 | 1474 | export type SelfClass = { |
| 1463 | 1475 | self: number; |
| 1464 | 1476 | }; |
| @@ -1631,24 +1643,15 @@ export type Unowned = { | ||
| 1631 | 1643 | unowned: number; |
| 1632 | 1644 | }; |
| 1633 | 1645 | |
| 1634 | -export type Unsafe = { | |
| 1635 | - unsafe: number; | |
| 1636 | -}; | |
| 1637 | - | |
| 1638 | -export type Unsigned = { | |
| 1639 | - unsigned: number; | |
| 1640 | -}; | |
| 1641 | - | |
| 1642 | -export type Ushort = { | |
| 1643 | - ushort: number; | |
| 1644 | -}; | |
| 1645 | - | |
| 1646 | 1646 | export type Obj6 = { |
| 1647 | 1647 | UUID: UUID; |
| 1648 | 1648 | Utf8JsonReader: Utf8JSONReader; |
| 1649 | 1649 | Utf8JsonWriter: Utf8JSONWriter; |
| 1650 | 1650 | YES: Yes; |
| 1651 | 1651 | dummy: number; |
| 1652 | + unsafe: Unsafe; | |
| 1653 | + unsigned: Unsigned; | |
| 1654 | + ushort: Ushort; | |
| 1652 | 1655 | using: Using; |
| 1653 | 1656 | var: Var; |
| 1654 | 1657 | virtual: Virtual; |
| @@ -1681,6 +1684,18 @@ export type Yes = { | ||
| 1681 | 1684 | YES: number; |
| 1682 | 1685 | }; |
| 1683 | 1686 | |
| 1687 | +export type Unsafe = { | |
| 1688 | + unsafe: number; | |
| 1689 | +}; | |
| 1690 | + | |
| 1691 | +export type Unsigned = { | |
| 1692 | + unsigned: number; | |
| 1693 | +}; | |
| 1694 | + | |
| 1695 | +export type Ushort = { | |
| 1696 | + ushort: number; | |
| 1697 | +}; | |
| 1698 | + | |
| 1684 | 1699 | export type Using = { |
| 1685 | 1700 | using: number; |
| 1686 | 1701 | }; |
| @@ -2466,6 +2481,7 @@ const typeMap: any = { | ||
| 2466 | 2481 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 2467 | 2482 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 2468 | 2483 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 2484 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 2469 | 2485 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 2470 | 2486 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2471 | 2487 | { json: "NO", js: "NO", typ: r("No") }, |
| @@ -2515,7 +2531,6 @@ const typeMap: any = { | ||
| 2515 | 2531 | { json: "new", js: "new", typ: r("New") }, |
| 2516 | 2532 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2517 | 2533 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 2518 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2519 | 2534 | ], false), |
| 2520 | 2535 | "Hashable": o([ |
| 2521 | 2536 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2562,6 +2577,9 @@ const typeMap: any = { | ||
| 2562 | 2577 | "JSONTokenType": o([ |
| 2563 | 2578 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 2564 | 2579 | ], false), |
| 2580 | + "LocalDate": o([ | |
| 2581 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 2582 | + ], false), | |
| 2565 | 2583 | "Locale": o([ |
| 2566 | 2584 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 2567 | 2585 | ], false), |
| @@ -2706,9 +2724,6 @@ const typeMap: any = { | ||
| 2706 | 2724 | "Nil": o([ |
| 2707 | 2725 | { json: "nil", js: "nil", typ: i(0) }, |
| 2708 | 2726 | ], false), |
| 2709 | - "Noexcept": o([ | |
| 2710 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2711 | - ], false), | |
| 2712 | 2727 | "Obj4": o([ |
| 2713 | 2728 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2714 | 2729 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -2716,11 +2731,13 @@ const typeMap: any = { | ||
| 2716 | 2731 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2717 | 2732 | { json: "None", js: "None", typ: r("None") }, |
| 2718 | 2733 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2734 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 2735 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 2719 | 2736 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2720 | 2737 | { json: "RegExp", js: "RegExp", typ: r("RegExpClass") }, |
| 2721 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2722 | 2738 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2723 | 2739 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2740 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2724 | 2741 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 2725 | 2742 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 2726 | 2743 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -2773,8 +2790,6 @@ const typeMap: any = { | ||
| 2773 | 2790 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2774 | 2791 | { json: "s", js: "s", typ: r("S") }, |
| 2775 | 2792 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2776 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2777 | - { json: "select", js: "select", typ: r("Select") }, | |
| 2778 | 2793 | ], false), |
| 2779 | 2794 | "NSError": o([ |
| 2780 | 2795 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2794,18 +2809,24 @@ const typeMap: any = { | ||
| 2794 | 2809 | "ObjectMapper": o([ |
| 2795 | 2810 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2796 | 2811 | ], false), |
| 2812 | + "OffsetDateTime": o([ | |
| 2813 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 2814 | + ], false), | |
| 2815 | + "OffsetTime": o([ | |
| 2816 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 2817 | + ], false), | |
| 2797 | 2818 | "Protocol": o([ |
| 2798 | 2819 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2799 | 2820 | ], false), |
| 2800 | 2821 | "RegExpClass": o([ |
| 2801 | 2822 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2802 | 2823 | ], false), |
| 2803 | - "Sel": o([ | |
| 2804 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2805 | - ], false), | |
| 2806 | 2824 | "NoSuchMethod": o([ |
| 2807 | 2825 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 2808 | 2826 | ], false), |
| 2827 | + "Noexcept": o([ | |
| 2828 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2829 | + ], false), | |
| 2809 | 2830 | "Nonatomic": o([ |
| 2810 | 2831 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 2811 | 2832 | ], false), |
| @@ -2962,15 +2983,10 @@ const typeMap: any = { | ||
| 2962 | 2983 | "Sbyte": o([ |
| 2963 | 2984 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2964 | 2985 | ], false), |
| 2965 | - "Sealed": o([ | |
| 2966 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2967 | - ], false), | |
| 2968 | - "Select": o([ | |
| 2969 | - { json: "select", js: "select", typ: i(0) }, | |
| 2970 | - ], false), | |
| 2971 | 2986 | "Obj5": o([ |
| 2972 | 2987 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 2973 | 2988 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 2989 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2974 | 2990 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2975 | 2991 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2976 | 2992 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -2988,6 +3004,8 @@ const typeMap: any = { | ||
| 2988 | 3004 | { json: "Type", js: "Type", typ: r("Type") }, |
| 2989 | 3005 | { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, |
| 2990 | 3006 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3007 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 3008 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2991 | 3009 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 2992 | 3010 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 2993 | 3011 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -3031,9 +3049,6 @@ const typeMap: any = { | ||
| 3031 | 3049 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 3032 | 3050 | { json: "union", js: "union", typ: r("Union") }, |
| 3033 | 3051 | { json: "unowned", js: "unowned", typ: r("Unowned") }, |
| 3034 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3035 | - { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 3036 | - { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 3037 | 3052 | ], false), |
| 3038 | 3053 | "KSerializer": o([ |
| 3039 | 3054 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -3041,6 +3056,9 @@ const typeMap: any = { | ||
| 3041 | 3056 | "PrimitiveKind": o([ |
| 3042 | 3057 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 3043 | 3058 | ], false), |
| 3059 | + "Sel": o([ | |
| 3060 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3061 | + ], false), | |
| 3044 | 3062 | "Self": o([ |
| 3045 | 3063 | { json: "Self", js: "Self", typ: i(0) }, |
| 3046 | 3064 | ], false), |
| @@ -3089,6 +3107,12 @@ const typeMap: any = { | ||
| 3089 | 3107 | "UseSerializers": o([ |
| 3090 | 3108 | { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, |
| 3091 | 3109 | ], false), |
| 3110 | + "Sealed": o([ | |
| 3111 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3112 | + ], false), | |
| 3113 | + "Select": o([ | |
| 3114 | + { json: "select", js: "select", typ: i(0) }, | |
| 3115 | + ], false), | |
| 3092 | 3116 | "SelfClass": o([ |
| 3093 | 3117 | { json: "self", js: "self", typ: i(0) }, |
| 3094 | 3118 | ], false), |
| @@ -3218,21 +3242,15 @@ const typeMap: any = { | ||
| 3218 | 3242 | "Unowned": o([ |
| 3219 | 3243 | { json: "unowned", js: "unowned", typ: i(0) }, |
| 3220 | 3244 | ], false), |
| 3221 | - "Unsafe": o([ | |
| 3222 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3223 | - ], false), | |
| 3224 | - "Unsigned": o([ | |
| 3225 | - { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 3226 | - ], false), | |
| 3227 | - "Ushort": o([ | |
| 3228 | - { json: "ushort", js: "ushort", typ: i(0) }, | |
| 3229 | - ], false), | |
| 3230 | 3245 | "Obj6": o([ |
| 3231 | 3246 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 3232 | 3247 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 3233 | 3248 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 3234 | 3249 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3235 | 3250 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3251 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3252 | + { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 3253 | + { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 3236 | 3254 | { json: "using", js: "using", typ: r("Using") }, |
| 3237 | 3255 | { json: "var", js: "var", typ: r("Var") }, |
| 3238 | 3256 | { json: "virtual", js: "virtual", typ: r("Virtual") }, |
| @@ -3260,6 +3278,15 @@ const typeMap: any = { | ||
| 3260 | 3278 | "Yes": o([ |
| 3261 | 3279 | { json: "YES", js: "YES", typ: i(0) }, |
| 3262 | 3280 | ], false), |
| 3281 | + "Unsafe": o([ | |
| 3282 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3283 | + ], false), | |
| 3284 | + "Unsigned": o([ | |
| 3285 | + { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 3286 | + ], false), | |
| 3287 | + "Ushort": o([ | |
| 3288 | + { json: "ushort", js: "ushort", typ: i(0) }, | |
| 3289 | + ], false), | |
| 3263 | 3290 | "Using": o([ |
| 3264 | 3291 | { json: "using", js: "using", typ: i(0) }, |
| 3265 | 3292 | ], false), |
Mgolangdefault / quicktype.go+50 −35
| @@ -728,6 +728,7 @@ type Obj3 struct { | ||
| 728 | 728 | Left Left `json:"left"` |
| 729 | 729 | Let Let `json:"let"` |
| 730 | 730 | List List `json:"list"` |
| 731 | + LocalDate LocalDate `json:"LocalDate"` | |
| 731 | 732 | Locale Locale `json:"Locale"` |
| 732 | 733 | Lock Lock `json:"lock"` |
| 733 | 734 | Long Long `json:"long"` |
| @@ -743,7 +744,6 @@ 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 | 747 | } |
| 748 | 748 | |
| 749 | 749 | type Guard struct { |
| @@ -938,6 +938,10 @@ type List struct { | ||
| 938 | 938 | List int64 `json:"list"` |
| 939 | 939 | } |
| 940 | 940 | |
| 941 | +type LocalDate struct { | |
| 942 | + LocalDate int64 `json:"LocalDate"` | |
| 943 | +} | |
| 944 | + | |
| 941 | 945 | type Locale struct { |
| 942 | 946 | Locale int64 `json:"Locale"` |
| 943 | 947 | } |
| @@ -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"` |
| @@ -1023,6 +1024,8 @@ type Obj4 struct { | ||
| 1023 | 1024 | Object Object `json:"object"` |
| 1024 | 1025 | ObjectMapper ObjectMapper `json:"ObjectMapper"` |
| 1025 | 1026 | Of Of `json:"of"` |
| 1027 | + OffsetDateTime OffsetDateTime `json:"OffsetDateTime"` | |
| 1028 | + OffsetTime OffsetTime `json:"OffsetTime"` | |
| 1026 | 1029 | Oneway Oneway `json:"oneway"` |
| 1027 | 1030 | Open Open `json:"open"` |
| 1028 | 1031 | Operator Operator `json:"operator"` |
| @@ -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 | } |
| @@ -1146,6 +1150,14 @@ type Of struct { | ||
| 1146 | 1150 | Of int64 `json:"of"` |
| 1147 | 1151 | } |
| 1148 | 1152 | |
| 1153 | +type OffsetDateTime struct { | |
| 1154 | + OffsetDateTime int64 `json:"OffsetDateTime"` | |
| 1155 | +} | |
| 1156 | + | |
| 1157 | +type OffsetTime struct { | |
| 1158 | + OffsetTime int64 `json:"OffsetTime"` | |
| 1159 | +} | |
| 1160 | + | |
| 1149 | 1161 | type Oneway struct { |
| 1150 | 1162 | Oneway int64 `json:"oneway"` |
| 1151 | 1163 | } |
| @@ -1314,18 +1326,6 @@ 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 | 1330 | Dummy int64 `json:"dummy"` |
| 1331 | 1331 | KSerializer KSerializer `json:"KSerializer"` |
| @@ -1333,6 +1333,9 @@ type Obj5 struct { | ||
| 1333 | 1333 | Obj5True TrueClass `json:"true"` |
| 1334 | 1334 | Obj5Type TypeClass `json:"type"` |
| 1335 | 1335 | PrimitiveKind PrimitiveKind `json:"PrimitiveKind"` |
| 1336 | + Sealed Sealed `json:"sealed"` | |
| 1337 | + Sel Sel `json:"SEL"` | |
| 1338 | + Select Select `json:"select"` | |
| 1336 | 1339 | Self Self `json:"Self"` |
| 1337 | 1340 | Sendable Sendable `json:"Sendable"` |
| 1338 | 1341 | SerialDescriptor SerialDescriptor `json:"SerialDescriptor"` |
| @@ -1388,10 +1391,7 @@ type Obj5 struct { | ||
| 1388 | 1391 | Undefined Undefined `json:"undefined"` |
| 1389 | 1392 | Union Union `json:"union"` |
| 1390 | 1393 | Unowned Unowned `json:"unowned"` |
| 1391 | - Unsafe Unsafe `json:"unsafe"` | |
| 1392 | - Unsigned Unsigned `json:"unsigned"` | |
| 1393 | 1394 | UseSerializers UseSerializers `json:"UseSerializers"` |
| 1394 | - Ushort Ushort `json:"ushort"` | |
| 1395 | 1395 | } |
| 1396 | 1396 | |
| 1397 | 1397 | type KSerializer struct { |
| @@ -1414,6 +1414,18 @@ type PrimitiveKind struct { | ||
| 1414 | 1414 | PrimitiveKind int64 `json:"PrimitiveKind"` |
| 1415 | 1415 | } |
| 1416 | 1416 | |
| 1417 | +type Sealed struct { | |
| 1418 | + Sealed int64 `json:"sealed"` | |
| 1419 | +} | |
| 1420 | + | |
| 1421 | +type Sel struct { | |
| 1422 | + Sel int64 `json:"SEL"` | |
| 1423 | +} | |
| 1424 | + | |
| 1425 | +type Select struct { | |
| 1426 | + Select int64 `json:"select"` | |
| 1427 | +} | |
| 1428 | + | |
| 1417 | 1429 | type Self struct { |
| 1418 | 1430 | Self int64 `json:"Self"` |
| 1419 | 1431 | } |
| @@ -1634,25 +1646,16 @@ type Unowned struct { | ||
| 1634 | 1646 | Unowned int64 `json:"unowned"` |
| 1635 | 1647 | } |
| 1636 | 1648 | |
| 1637 | -type Unsafe struct { | |
| 1638 | - Unsafe int64 `json:"unsafe"` | |
| 1639 | -} | |
| 1640 | - | |
| 1641 | -type Unsigned struct { | |
| 1642 | - Unsigned int64 `json:"unsigned"` | |
| 1643 | -} | |
| 1644 | - | |
| 1645 | 1649 | type UseSerializers struct { |
| 1646 | 1650 | UseSerializers int64 `json:"UseSerializers"` |
| 1647 | 1651 | } |
| 1648 | 1652 | |
| 1649 | -type Ushort struct { | |
| 1650 | - Ushort int64 `json:"ushort"` | |
| 1651 | -} | |
| 1652 | - | |
| 1653 | 1653 | type Obj6 struct { |
| 1654 | 1654 | Dummy int64 `json:"dummy"` |
| 1655 | 1655 | UUID UUID `json:"UUID"` |
| 1656 | + Unsafe Unsafe `json:"unsafe"` | |
| 1657 | + Unsigned Unsigned `json:"unsigned"` | |
| 1658 | + Ushort Ushort `json:"ushort"` | |
| 1656 | 1659 | Using Using `json:"using"` |
| 1657 | 1660 | Utf8JSONReader Utf8JSONReader `json:"Utf8JsonReader"` |
| 1658 | 1661 | Utf8JSONWriter Utf8JSONWriter `json:"Utf8JsonWriter"` |
| @@ -1676,6 +1679,18 @@ type UUID struct { | ||
| 1676 | 1679 | UUID int64 `json:"UUID"` |
| 1677 | 1680 | } |
| 1678 | 1681 | |
| 1682 | +type Unsafe struct { | |
| 1683 | + Unsafe int64 `json:"unsafe"` | |
| 1684 | +} | |
| 1685 | + | |
| 1686 | +type Unsigned struct { | |
| 1687 | + Unsigned int64 `json:"unsigned"` | |
| 1688 | +} | |
| 1689 | + | |
| 1690 | +type Ushort struct { | |
| 1691 | + Ushort int64 `json:"ushort"` | |
| 1692 | +} | |
| 1693 | + | |
| 1679 | 1694 | type Using struct { |
| 1680 | 1695 | Using int64 `json:"using"` |
| 1681 | 1696 | } |
Mhaskelldefault / QuickType.hs+184 −130
| @@ -176,6 +176,7 @@ module QuickType | ||
| 176 | 176 | , Lazy (..) |
| 177 | 177 | , LeftClass (..) |
| 178 | 178 | , List (..) |
| 179 | + , LocalDate (..) | |
| 179 | 180 | , Locale (..) |
| 180 | 181 | , Lock (..) |
| 181 | 182 | , Long (..) |
| @@ -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 | + , OffsetDateTime (..) | |
| 223 | + , OffsetTime (..) | |
| 221 | 224 | , Oneway (..) |
| 222 | 225 | , Open (..) |
| 223 | 226 | , Operator (..) |
| @@ -260,9 +263,6 @@ module QuickType | ||
| 260 | 263 | , RuntimeType (..) |
| 261 | 264 | , S (..) |
| 262 | 265 | , Sbyte (..) |
| 263 | - , Sealed (..) | |
| 264 | - , Sel (..) | |
| 265 | - , Select (..) | |
| 266 | 266 | , Obj5 (..) |
| 267 | 267 | , KSerializer (..) |
| 268 | 268 | , SelfClass (..) |
| @@ -271,6 +271,9 @@ module QuickType | ||
| 271 | 271 | , Type (..) |
| 272 | 272 | , PrimitiveKind (..) |
| 273 | 273 | , TypeClass (..) |
| 274 | + , Sealed (..) | |
| 275 | + , Sel (..) | |
| 276 | + , Select (..) | |
| 274 | 277 | , Self (..) |
| 275 | 278 | , Sendable (..) |
| 276 | 279 | , SerialDescriptor (..) |
| @@ -324,12 +327,12 @@ module QuickType | ||
| 324 | 327 | , Undefined (..) |
| 325 | 328 | , Union (..) |
| 326 | 329 | , Unowned (..) |
| 327 | - , Unsafe (..) | |
| 328 | - , Unsigned (..) | |
| 329 | 330 | , UseSerializers (..) |
| 330 | - , Ushort (..) | |
| 331 | 331 | , Obj6 (..) |
| 332 | 332 | , Where (..) |
| 333 | + , Unsafe (..) | |
| 334 | + , Unsigned (..) | |
| 335 | + , Ushort (..) | |
| 333 | 336 | , Using (..) |
| 334 | 337 | , Utf8JSONReader (..) |
| 335 | 338 | , Utf8JSONWriter (..) |
| @@ -1064,6 +1067,7 @@ data Obj3 = Obj3 | ||
| 1064 | 1067 | , lazyObj3 :: Lazy |
| 1065 | 1068 | , leftObj3 :: LeftClass |
| 1066 | 1069 | , listObj3 :: List |
| 1070 | + , localDateObj3 :: LocalDate | |
| 1067 | 1071 | , localeObj3 :: Locale |
| 1068 | 1072 | , lockObj3 :: Lock |
| 1069 | 1073 | , longObj3 :: Long |
| @@ -1078,7 +1082,6 @@ data Obj3 = Obj3 | ||
| 1078 | 1082 | , newtonsoftObj3 :: Newtonsoft |
| 1079 | 1083 | , nilObj3 :: Nil |
| 1080 | 1084 | , noObj3 :: No |
| 1081 | - , noexceptObj3 :: Noexcept | |
| 1082 | 1085 | , obj3IDObj3 :: ID |
| 1083 | 1086 | , obj3IfObj3 :: If |
| 1084 | 1087 | , obj3ImportObj3 :: Import |
| @@ -1256,6 +1259,10 @@ data List = List | ||
| 1256 | 1259 | { listList :: Int |
| 1257 | 1260 | } deriving (Show) |
| 1258 | 1261 | |
| 1262 | +data LocalDate = LocalDate | |
| 1263 | + { localDateLocalDate :: Int | |
| 1264 | + } deriving (Show) | |
| 1265 | + | |
| 1259 | 1266 | data Locale = Locale |
| 1260 | 1267 | { localeLocale :: Int |
| 1261 | 1268 | } deriving (Show) |
| @@ -1312,10 +1319,6 @@ data No = No | ||
| 1312 | 1319 | { noNo :: Int |
| 1313 | 1320 | } deriving (Show) |
| 1314 | 1321 | |
| 1315 | -data Noexcept = Noexcept | |
| 1316 | - { noexceptNoexcept :: Int | |
| 1317 | - } deriving (Show) | |
| 1318 | - | |
| 1319 | 1322 | data ID = ID |
| 1320 | 1323 | { idIDID :: Int |
| 1321 | 1324 | } deriving (Show) |
| @@ -1347,6 +1350,7 @@ data Module = Module | ||
| 1347 | 1350 | data Obj4 = Obj4 |
| 1348 | 1351 | { dummyObj4 :: Int |
| 1349 | 1352 | , noSuchMethodObj4 :: NoSuchMethod |
| 1353 | + , noexceptObj4 :: Noexcept | |
| 1350 | 1354 | , nonatomicObj4 :: Nonatomic |
| 1351 | 1355 | , noneObj4 :: None |
| 1352 | 1356 | , nonlocalObj4 :: Nonlocal |
| @@ -1365,6 +1369,8 @@ data Obj4 = Obj4 | ||
| 1365 | 1369 | , obj4ProtocolObj4 :: ProtocolClass |
| 1366 | 1370 | , objectObj4 :: ObjectClass |
| 1367 | 1371 | , objectMapperObj4 :: ObjectMapper |
| 1372 | + , offsetDateTimeObj4 :: OffsetDateTime | |
| 1373 | + , offsetTimeObj4 :: OffsetTime | |
| 1368 | 1374 | , onewayObj4 :: Oneway |
| 1369 | 1375 | , openObj4 :: Open |
| 1370 | 1376 | , operatorObj4 :: Operator |
| @@ -1407,15 +1413,16 @@ data Obj4 = Obj4 | ||
| 1407 | 1413 | , runtimeTypeObj4 :: RuntimeType |
| 1408 | 1414 | , sObj4 :: S |
| 1409 | 1415 | , sbyteObj4 :: Sbyte |
| 1410 | - , sealedObj4 :: Sealed | |
| 1411 | - , selObj4 :: Sel | |
| 1412 | - , selectObj4 :: Select | |
| 1413 | 1416 | } deriving (Show) |
| 1414 | 1417 | |
| 1415 | 1418 | data NoSuchMethod = NoSuchMethod |
| 1416 | 1419 | { noSuchMethodNoSuchMethod :: Int |
| 1417 | 1420 | } deriving (Show) |
| 1418 | 1421 | |
| 1422 | +data Noexcept = Noexcept | |
| 1423 | + { noexceptNoexcept :: Int | |
| 1424 | + } deriving (Show) | |
| 1425 | + | |
| 1419 | 1426 | data Nonatomic = Nonatomic |
| 1420 | 1427 | { nonatomicNonatomic :: Int |
| 1421 | 1428 | } deriving (Show) |
| @@ -1488,6 +1495,14 @@ data ObjectMapper = ObjectMapper | ||
| 1488 | 1495 | { objectMapperObjectMapper :: Int |
| 1489 | 1496 | } deriving (Show) |
| 1490 | 1497 | |
| 1498 | +data OffsetDateTime = OffsetDateTime | |
| 1499 | + { offsetDateTimeOffsetDateTime :: Int | |
| 1500 | + } deriving (Show) | |
| 1501 | + | |
| 1502 | +data OffsetTime = OffsetTime | |
| 1503 | + { offsetTimeOffsetTime :: Int | |
| 1504 | + } deriving (Show) | |
| 1505 | + | |
| 1491 | 1506 | data Oneway = Oneway |
| 1492 | 1507 | { onewayOneway :: Int |
| 1493 | 1508 | } deriving (Show) |
| @@ -1656,18 +1671,6 @@ data Sbyte = Sbyte | ||
| 1656 | 1671 | { sbyteSbyte :: Int |
| 1657 | 1672 | } deriving (Show) |
| 1658 | 1673 | |
| 1659 | -data Sealed = Sealed | |
| 1660 | - { sealedSealed :: Int | |
| 1661 | - } deriving (Show) | |
| 1662 | - | |
| 1663 | -data Sel = Sel | |
| 1664 | - { selSel :: Int | |
| 1665 | - } deriving (Show) | |
| 1666 | - | |
| 1667 | -data Select = Select | |
| 1668 | - { selectSelect :: Int | |
| 1669 | - } deriving (Show) | |
| 1670 | - | |
| 1671 | 1674 | data Obj5 = Obj5 |
| 1672 | 1675 | { dummyObj5 :: Int |
| 1673 | 1676 | , kSerializerObj5 :: KSerializer |
| @@ -1677,6 +1680,9 @@ data Obj5 = Obj5 | ||
| 1677 | 1680 | , obj5TypeObj5 :: Type |
| 1678 | 1681 | , primitiveKindObj5 :: PrimitiveKind |
| 1679 | 1682 | , purpleTypeObj5 :: TypeClass |
| 1683 | + , sealedObj5 :: Sealed | |
| 1684 | + , selObj5 :: Sel | |
| 1685 | + , selectObj5 :: Select | |
| 1680 | 1686 | , selfObj5 :: Self |
| 1681 | 1687 | , sendableObj5 :: Sendable |
| 1682 | 1688 | , serialDescriptorObj5 :: SerialDescriptor |
| @@ -1730,10 +1736,7 @@ data Obj5 = Obj5 | ||
| 1730 | 1736 | , undefinedObj5 :: Undefined |
| 1731 | 1737 | , unionObj5 :: Union |
| 1732 | 1738 | , unownedObj5 :: Unowned |
| 1733 | - , unsafeObj5 :: Unsafe | |
| 1734 | - , unsignedObj5 :: Unsigned | |
| 1735 | 1739 | , useSerializersObj5 :: UseSerializers |
| 1736 | - , ushortObj5 :: Ushort | |
| 1737 | 1740 | } deriving (Show) |
| 1738 | 1741 | |
| 1739 | 1742 | data KSerializer = KSerializer |
| @@ -1764,6 +1767,18 @@ data TypeClass = TypeClass | ||
| 1764 | 1767 | { typeTypeTypeClass :: Int |
| 1765 | 1768 | } deriving (Show) |
| 1766 | 1769 | |
| 1770 | +data Sealed = Sealed | |
| 1771 | + { sealedSealed :: Int | |
| 1772 | + } deriving (Show) | |
| 1773 | + | |
| 1774 | +data Sel = Sel | |
| 1775 | + { selSel :: Int | |
| 1776 | + } deriving (Show) | |
| 1777 | + | |
| 1778 | +data Select = Select | |
| 1779 | + { selectSelect :: Int | |
| 1780 | + } deriving (Show) | |
| 1781 | + | |
| 1767 | 1782 | data Self = Self |
| 1768 | 1783 | { selfSelf :: Int |
| 1769 | 1784 | } deriving (Show) |
| @@ -1976,25 +1991,16 @@ data Unowned = Unowned | ||
| 1976 | 1991 | { unownedUnowned :: Int |
| 1977 | 1992 | } deriving (Show) |
| 1978 | 1993 | |
| 1979 | -data Unsafe = Unsafe | |
| 1980 | - { unsafeUnsafe :: Int | |
| 1981 | - } deriving (Show) | |
| 1982 | - | |
| 1983 | -data Unsigned = Unsigned | |
| 1984 | - { unsignedUnsigned :: Int | |
| 1985 | - } deriving (Show) | |
| 1986 | - | |
| 1987 | 1994 | data UseSerializers = UseSerializers |
| 1988 | 1995 | { useSerializersUseSerializers :: Int |
| 1989 | 1996 | } deriving (Show) |
| 1990 | 1997 | |
| 1991 | -data Ushort = Ushort | |
| 1992 | - { ushortUshort :: Int | |
| 1993 | - } deriving (Show) | |
| 1994 | - | |
| 1995 | 1998 | data Obj6 = Obj6 |
| 1996 | 1999 | { dummyObj6 :: Int |
| 1997 | 2000 | , obj6WhereObj6 :: Where |
| 2001 | + , unsafeObj6 :: Unsafe | |
| 2002 | + , unsignedObj6 :: Unsigned | |
| 2003 | + , ushortObj6 :: Ushort | |
| 1998 | 2004 | , usingObj6 :: Using |
| 1999 | 2005 | , utf8JSONReaderObj6 :: Utf8JSONReader |
| 2000 | 2006 | , utf8JSONWriterObj6 :: Utf8JSONWriter |
| @@ -2018,6 +2024,18 @@ data Where = Where | ||
| 2018 | 2024 | { whereWhereWhere :: Int |
| 2019 | 2025 | } deriving (Show) |
| 2020 | 2026 | |
| 2027 | +data Unsafe = Unsafe | |
| 2028 | + { unsafeUnsafe :: Int | |
| 2029 | + } deriving (Show) | |
| 2030 | + | |
| 2031 | +data Unsigned = Unsigned | |
| 2032 | + { unsignedUnsigned :: Int | |
| 2033 | + } deriving (Show) | |
| 2034 | + | |
| 2035 | +data Ushort = Ushort | |
| 2036 | + { ushortUshort :: Int | |
| 2037 | + } deriving (Show) | |
| 2038 | + | |
| 2021 | 2039 | data Using = Using |
| 2022 | 2040 | { usingUsing :: Int |
| 2023 | 2041 | } deriving (Show) |
| @@ -3678,7 +3696,7 @@ instance FromJSON Obj2False where | ||
| 3678 | 3696 | <$> v .: "false" |
| 3679 | 3697 | |
| 3680 | 3698 | instance ToJSON Obj3 where |
| 3681 | - 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) = | |
| 3699 | + 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 localDateObj3 localeObj3 lockObj3 longObj3 mapObj3 mapEntryObj3 metadataPropertyHandlingObj3 mutableObj3 mutatingObj3 namespaceObj3 nativeObj3 newObj3 newtonsoftObj3 nilObj3 noObj3 obj3IDObj3 obj3IfObj3 obj3ImportObj3 obj3InObj3 obj3InfixObj3 obj3LetObj3 obj3ModuleObj3) = | |
| 3682 | 3700 | object $ foldMap (maybe [] pure) |
| 3683 | 3701 | [ Just $ "dummy" .= dummyObj3 |
| 3684 | 3702 | , Just $ "guard" .= guardObj3 |
| @@ -3723,6 +3741,7 @@ instance ToJSON Obj3 where | ||
| 3723 | 3741 | , Just $ "lazy" .= lazyObj3 |
| 3724 | 3742 | , Just $ "left" .= leftObj3 |
| 3725 | 3743 | , Just $ "list" .= listObj3 |
| 3744 | + , Just $ "LocalDate" .= localDateObj3 | |
| 3726 | 3745 | , Just $ "Locale" .= localeObj3 |
| 3727 | 3746 | , Just $ "lock" .= lockObj3 |
| 3728 | 3747 | , Just $ "long" .= longObj3 |
| @@ -3737,7 +3756,6 @@ instance ToJSON Obj3 where | ||
| 3737 | 3756 | , Just $ "newtonsoft" .= newtonsoftObj3 |
| 3738 | 3757 | , Just $ "nil" .= nilObj3 |
| 3739 | 3758 | , Just $ "NO" .= noObj3 |
| 3740 | - , Just $ "noexcept" .= noexceptObj3 | |
| 3741 | 3759 | , Just $ "id" .= obj3IDObj3 |
| 3742 | 3760 | , Just $ "if" .= obj3IfObj3 |
| 3743 | 3761 | , Just $ "import" .= obj3ImportObj3 |
| @@ -3792,6 +3810,7 @@ instance FromJSON Obj3 where | ||
| 3792 | 3810 | <*> v .: "lazy" |
| 3793 | 3811 | <*> v .: "left" |
| 3794 | 3812 | <*> v .: "list" |
| 3813 | + <*> v .: "LocalDate" | |
| 3795 | 3814 | <*> v .: "Locale" |
| 3796 | 3815 | <*> v .: "lock" |
| 3797 | 3816 | <*> v .: "long" |
| @@ -3806,7 +3825,6 @@ instance FromJSON Obj3 where | ||
| 3806 | 3825 | <*> v .: "newtonsoft" |
| 3807 | 3826 | <*> v .: "nil" |
| 3808 | 3827 | <*> v .: "NO" |
| 3809 | - <*> v .: "noexcept" | |
| 3810 | 3828 | <*> v .: "id" |
| 3811 | 3829 | <*> v .: "if" |
| 3812 | 3830 | <*> v .: "import" |
| @@ -4235,6 +4253,16 @@ instance FromJSON List where | ||
| 4235 | 4253 | parseJSON (Object v) = List |
| 4236 | 4254 | <$> v .: "list" |
| 4237 | 4255 | |
| 4256 | +instance ToJSON LocalDate where | |
| 4257 | + toJSON (LocalDate localDateLocalDate) = | |
| 4258 | + object $ foldMap (maybe [] pure) | |
| 4259 | + [ Just $ "LocalDate" .= localDateLocalDate | |
| 4260 | + ] | |
| 4261 | + | |
| 4262 | +instance FromJSON LocalDate where | |
| 4263 | + parseJSON (Object v) = LocalDate | |
| 4264 | + <$> v .: "LocalDate" | |
| 4265 | + | |
| 4238 | 4266 | instance ToJSON Locale where |
| 4239 | 4267 | toJSON (Locale localeLocale) = |
| 4240 | 4268 | object $ foldMap (maybe [] pure) |
| @@ -4375,16 +4403,6 @@ instance FromJSON No where | ||
| 4375 | 4403 | parseJSON (Object v) = No |
| 4376 | 4404 | <$> v .: "NO" |
| 4377 | 4405 | |
| 4378 | -instance ToJSON Noexcept where | |
| 4379 | - toJSON (Noexcept noexceptNoexcept) = | |
| 4380 | - object $ foldMap (maybe [] pure) | |
| 4381 | - [ Just $ "noexcept" .= noexceptNoexcept | |
| 4382 | - ] | |
| 4383 | - | |
| 4384 | -instance FromJSON Noexcept where | |
| 4385 | - parseJSON (Object v) = Noexcept | |
| 4386 | - <$> v .: "noexcept" | |
| 4387 | - | |
| 4388 | 4406 | instance ToJSON ID where |
| 4389 | 4407 | toJSON (ID idIDID) = |
| 4390 | 4408 | object $ foldMap (maybe [] pure) |
| @@ -4456,10 +4474,11 @@ instance FromJSON Module where | ||
| 4456 | 4474 | <$> v .: "module" |
| 4457 | 4475 | |
| 4458 | 4476 | instance ToJSON Obj4 where |
| 4459 | - 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) = | |
| 4477 | + toJSON (Obj4 dummyObj4 noSuchMethodObj4 noexceptObj4 nonatomicObj4 noneObj4 nonlocalObj4 nonmutatingObj4 notObj4 notEqObj4 nsErrorObj4 nsObjectObj4 nsStringObj4 nullObj4 nullptrObj4 numberObj4 obj4NoneObj4 obj4NullObj4 obj4OfObj4 obj4ProtocolObj4 objectObj4 objectMapperObj4 offsetDateTimeObj4 offsetTimeObj4 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) = | |
| 4460 | 4478 | object $ foldMap (maybe [] pure) |
| 4461 | 4479 | [ Just $ "dummy" .= dummyObj4 |
| 4462 | 4480 | , Just $ "noSuchMethod" .= noSuchMethodObj4 |
| 4481 | + , Just $ "noexcept" .= noexceptObj4 | |
| 4463 | 4482 | , Just $ "nonatomic" .= nonatomicObj4 |
| 4464 | 4483 | , Just $ "None" .= noneObj4 |
| 4465 | 4484 | , Just $ "nonlocal" .= nonlocalObj4 |
| @@ -4478,6 +4497,8 @@ instance ToJSON Obj4 where | ||
| 4478 | 4497 | , Just $ "protocol" .= obj4ProtocolObj4 |
| 4479 | 4498 | , Just $ "object" .= objectObj4 |
| 4480 | 4499 | , Just $ "ObjectMapper" .= objectMapperObj4 |
| 4500 | + , Just $ "OffsetDateTime" .= offsetDateTimeObj4 | |
| 4501 | + , Just $ "OffsetTime" .= offsetTimeObj4 | |
| 4481 | 4502 | , Just $ "oneway" .= onewayObj4 |
| 4482 | 4503 | , Just $ "open" .= openObj4 |
| 4483 | 4504 | , Just $ "operator" .= operatorObj4 |
| @@ -4520,15 +4541,13 @@ instance ToJSON Obj4 where | ||
| 4520 | 4541 | , Just $ "runtimeType" .= runtimeTypeObj4 |
| 4521 | 4542 | , Just $ "s" .= sObj4 |
| 4522 | 4543 | , Just $ "sbyte" .= sbyteObj4 |
| 4523 | - , Just $ "sealed" .= sealedObj4 | |
| 4524 | - , Just $ "SEL" .= selObj4 | |
| 4525 | - , Just $ "select" .= selectObj4 | |
| 4526 | 4544 | ] |
| 4527 | 4545 | |
| 4528 | 4546 | instance FromJSON Obj4 where |
| 4529 | 4547 | parseJSON (Object v) = Obj4 |
| 4530 | 4548 | <$> v .: "dummy" |
| 4531 | 4549 | <*> v .: "noSuchMethod" |
| 4550 | + <*> v .: "noexcept" | |
| 4532 | 4551 | <*> v .: "nonatomic" |
| 4533 | 4552 | <*> v .: "None" |
| 4534 | 4553 | <*> v .: "nonlocal" |
| @@ -4547,6 +4566,8 @@ instance FromJSON Obj4 where | ||
| 4547 | 4566 | <*> v .: "protocol" |
| 4548 | 4567 | <*> v .: "object" |
| 4549 | 4568 | <*> v .: "ObjectMapper" |
| 4569 | + <*> v .: "OffsetDateTime" | |
| 4570 | + <*> v .: "OffsetTime" | |
| 4550 | 4571 | <*> v .: "oneway" |
| 4551 | 4572 | <*> v .: "open" |
| 4552 | 4573 | <*> v .: "operator" |
| @@ -4589,9 +4610,6 @@ instance FromJSON Obj4 where | ||
| 4589 | 4610 | <*> v .: "runtimeType" |
| 4590 | 4611 | <*> v .: "s" |
| 4591 | 4612 | <*> v .: "sbyte" |
| 4592 | - <*> v .: "sealed" | |
| 4593 | - <*> v .: "SEL" | |
| 4594 | - <*> v .: "select" | |
| 4595 | 4613 | |
| 4596 | 4614 | instance ToJSON NoSuchMethod where |
| 4597 | 4615 | toJSON (NoSuchMethod noSuchMethodNoSuchMethod) = |
| @@ -4603,6 +4621,16 @@ instance FromJSON NoSuchMethod where | ||
| 4603 | 4621 | parseJSON (Object v) = NoSuchMethod |
| 4604 | 4622 | <$> v .: "noSuchMethod" |
| 4605 | 4623 | |
| 4624 | +instance ToJSON Noexcept where | |
| 4625 | + toJSON (Noexcept noexceptNoexcept) = | |
| 4626 | + object $ foldMap (maybe [] pure) | |
| 4627 | + [ Just $ "noexcept" .= noexceptNoexcept | |
| 4628 | + ] | |
| 4629 | + | |
| 4630 | +instance FromJSON Noexcept where | |
| 4631 | + parseJSON (Object v) = Noexcept | |
| 4632 | + <$> v .: "noexcept" | |
| 4633 | + | |
| 4606 | 4634 | instance ToJSON Nonatomic where |
| 4607 | 4635 | toJSON (Nonatomic nonatomicNonatomic) = |
| 4608 | 4636 | object $ foldMap (maybe [] pure) |
| @@ -4783,6 +4811,26 @@ instance FromJSON ObjectMapper where | ||
| 4783 | 4811 | parseJSON (Object v) = ObjectMapper |
| 4784 | 4812 | <$> v .: "ObjectMapper" |
| 4785 | 4813 | |
| 4814 | +instance ToJSON OffsetDateTime where | |
| 4815 | + toJSON (OffsetDateTime offsetDateTimeOffsetDateTime) = | |
| 4816 | + object $ foldMap (maybe [] pure) | |
| 4817 | + [ Just $ "OffsetDateTime" .= offsetDateTimeOffsetDateTime | |
| 4818 | + ] | |
| 4819 | + | |
| 4820 | +instance FromJSON OffsetDateTime where | |
| 4821 | + parseJSON (Object v) = OffsetDateTime | |
| 4822 | + <$> v .: "OffsetDateTime" | |
| 4823 | + | |
| 4824 | +instance ToJSON OffsetTime where | |
| 4825 | + toJSON (OffsetTime offsetTimeOffsetTime) = | |
| 4826 | + object $ foldMap (maybe [] pure) | |
| 4827 | + [ Just $ "OffsetTime" .= offsetTimeOffsetTime | |
| 4828 | + ] | |
| 4829 | + | |
| 4830 | +instance FromJSON OffsetTime where | |
| 4831 | + parseJSON (Object v) = OffsetTime | |
| 4832 | + <$> v .: "OffsetTime" | |
| 4833 | + | |
| 4786 | 4834 | instance ToJSON Oneway where |
| 4787 | 4835 | toJSON (Oneway onewayOneway) = |
| 4788 | 4836 | object $ foldMap (maybe [] pure) |
| @@ -5203,38 +5251,8 @@ instance FromJSON Sbyte where | ||
| 5203 | 5251 | parseJSON (Object v) = Sbyte |
| 5204 | 5252 | <$> v .: "sbyte" |
| 5205 | 5253 | |
| 5206 | -instance ToJSON Sealed where | |
| 5207 | - toJSON (Sealed sealedSealed) = | |
| 5208 | - object $ foldMap (maybe [] pure) | |
| 5209 | - [ Just $ "sealed" .= sealedSealed | |
| 5210 | - ] | |
| 5211 | - | |
| 5212 | -instance FromJSON Sealed where | |
| 5213 | - parseJSON (Object v) = Sealed | |
| 5214 | - <$> v .: "sealed" | |
| 5215 | - | |
| 5216 | -instance ToJSON Sel where | |
| 5217 | - toJSON (Sel selSel) = | |
| 5218 | - object $ foldMap (maybe [] pure) | |
| 5219 | - [ Just $ "SEL" .= selSel | |
| 5220 | - ] | |
| 5221 | - | |
| 5222 | -instance FromJSON Sel where | |
| 5223 | - parseJSON (Object v) = Sel | |
| 5224 | - <$> v .: "SEL" | |
| 5225 | - | |
| 5226 | -instance ToJSON Select where | |
| 5227 | - toJSON (Select selectSelect) = | |
| 5228 | - object $ foldMap (maybe [] pure) | |
| 5229 | - [ Just $ "select" .= selectSelect | |
| 5230 | - ] | |
| 5231 | - | |
| 5232 | -instance FromJSON Select where | |
| 5233 | - parseJSON (Object v) = Select | |
| 5234 | - <$> v .: "select" | |
| 5235 | - | |
| 5236 | 5254 | instance ToJSON Obj5 where |
| 5237 | - toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 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 useSerializersObj5 ushortObj5) = | |
| 5255 | + toJSON (Obj5 dummyObj5 kSerializerObj5 obj5SelfObj5 obj5ThenObj5 obj5TrueObj5 obj5TypeObj5 primitiveKindObj5 purpleTypeObj5 sealedObj5 selObj5 selectObj5 selfObj5 sendableObj5 serialDescriptorObj5 serialNameObj5 serializableObj5 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 useSerializersObj5) = | |
| 5238 | 5256 | object $ foldMap (maybe [] pure) |
| 5239 | 5257 | [ Just $ "dummy" .= dummyObj5 |
| 5240 | 5258 | , Just $ "KSerializer" .= kSerializerObj5 |
| @@ -5244,6 +5262,9 @@ instance ToJSON Obj5 where | ||
| 5244 | 5262 | , Just $ "Type" .= obj5TypeObj5 |
| 5245 | 5263 | , Just $ "PrimitiveKind" .= primitiveKindObj5 |
| 5246 | 5264 | , Just $ "type" .= purpleTypeObj5 |
| 5265 | + , Just $ "sealed" .= sealedObj5 | |
| 5266 | + , Just $ "SEL" .= selObj5 | |
| 5267 | + , Just $ "select" .= selectObj5 | |
| 5247 | 5268 | , Just $ "Self" .= selfObj5 |
| 5248 | 5269 | , Just $ "Sendable" .= sendableObj5 |
| 5249 | 5270 | , Just $ "SerialDescriptor" .= serialDescriptorObj5 |
| @@ -5297,10 +5318,7 @@ instance ToJSON Obj5 where | ||
| 5297 | 5318 | , Just $ "undefined" .= undefinedObj5 |
| 5298 | 5319 | , Just $ "union" .= unionObj5 |
| 5299 | 5320 | , Just $ "unowned" .= unownedObj5 |
| 5300 | - , Just $ "unsafe" .= unsafeObj5 | |
| 5301 | - , Just $ "unsigned" .= unsignedObj5 | |
| 5302 | 5321 | , Just $ "UseSerializers" .= useSerializersObj5 |
| 5303 | - , Just $ "ushort" .= ushortObj5 | |
| 5304 | 5322 | ] |
| 5305 | 5323 | |
| 5306 | 5324 | instance FromJSON Obj5 where |
| @@ -5313,6 +5331,9 @@ instance FromJSON Obj5 where | ||
| 5313 | 5331 | <*> v .: "Type" |
| 5314 | 5332 | <*> v .: "PrimitiveKind" |
| 5315 | 5333 | <*> v .: "type" |
| 5334 | + <*> v .: "sealed" | |
| 5335 | + <*> v .: "SEL" | |
| 5336 | + <*> v .: "select" | |
| 5316 | 5337 | <*> v .: "Self" |
| 5317 | 5338 | <*> v .: "Sendable" |
| 5318 | 5339 | <*> v .: "SerialDescriptor" |
| @@ -5366,10 +5387,7 @@ instance FromJSON Obj5 where | ||
| 5366 | 5387 | <*> v .: "undefined" |
| 5367 | 5388 | <*> v .: "union" |
| 5368 | 5389 | <*> v .: "unowned" |
| 5369 | - <*> v .: "unsafe" | |
| 5370 | - <*> v .: "unsigned" | |
| 5371 | 5390 | <*> v .: "UseSerializers" |
| 5372 | - <*> v .: "ushort" | |
| 5373 | 5391 | |
| 5374 | 5392 | instance ToJSON KSerializer where |
| 5375 | 5393 | toJSON (KSerializer kSerializerKSerializer) = |
| @@ -5441,6 +5459,36 @@ instance FromJSON TypeClass where | ||
| 5441 | 5459 | parseJSON (Object v) = TypeClass |
| 5442 | 5460 | <$> v .: "type" |
| 5443 | 5461 | |
| 5462 | +instance ToJSON Sealed where | |
| 5463 | + toJSON (Sealed sealedSealed) = | |
| 5464 | + object $ foldMap (maybe [] pure) | |
| 5465 | + [ Just $ "sealed" .= sealedSealed | |
| 5466 | + ] | |
| 5467 | + | |
| 5468 | +instance FromJSON Sealed where | |
| 5469 | + parseJSON (Object v) = Sealed | |
| 5470 | + <$> v .: "sealed" | |
| 5471 | + | |
| 5472 | +instance ToJSON Sel where | |
| 5473 | + toJSON (Sel selSel) = | |
| 5474 | + object $ foldMap (maybe [] pure) | |
| 5475 | + [ Just $ "SEL" .= selSel | |
| 5476 | + ] | |
| 5477 | + | |
| 5478 | +instance FromJSON Sel where | |
| 5479 | + parseJSON (Object v) = Sel | |
| 5480 | + <$> v .: "SEL" | |
| 5481 | + | |
| 5482 | +instance ToJSON Select where | |
| 5483 | + toJSON (Select selectSelect) = | |
| 5484 | + object $ foldMap (maybe [] pure) | |
| 5485 | + [ Just $ "select" .= selectSelect | |
| 5486 | + ] | |
| 5487 | + | |
| 5488 | +instance FromJSON Select where | |
| 5489 | + parseJSON (Object v) = Select | |
| 5490 | + <$> v .: "select" | |
| 5491 | + | |
| 5444 | 5492 | instance ToJSON Self where |
| 5445 | 5493 | toJSON (Self selfSelf) = |
| 5446 | 5494 | object $ foldMap (maybe [] pure) |
| @@ -5971,26 +6019,6 @@ instance FromJSON Unowned where | ||
| 5971 | 6019 | parseJSON (Object v) = Unowned |
| 5972 | 6020 | <$> v .: "unowned" |
| 5973 | 6021 | |
| 5974 | -instance ToJSON Unsafe where | |
| 5975 | - toJSON (Unsafe unsafeUnsafe) = | |
| 5976 | - object $ foldMap (maybe [] pure) | |
| 5977 | - [ Just $ "unsafe" .= unsafeUnsafe | |
| 5978 | - ] | |
| 5979 | - | |
| 5980 | -instance FromJSON Unsafe where | |
| 5981 | - parseJSON (Object v) = Unsafe | |
| 5982 | - <$> v .: "unsafe" | |
| 5983 | - | |
| 5984 | -instance ToJSON Unsigned where | |
| 5985 | - toJSON (Unsigned unsignedUnsigned) = | |
| 5986 | - object $ foldMap (maybe [] pure) | |
| 5987 | - [ Just $ "unsigned" .= unsignedUnsigned | |
| 5988 | - ] | |
| 5989 | - | |
| 5990 | -instance FromJSON Unsigned where | |
| 5991 | - parseJSON (Object v) = Unsigned | |
| 5992 | - <$> v .: "unsigned" | |
| 5993 | - | |
| 5994 | 6022 | instance ToJSON UseSerializers where |
| 5995 | 6023 | toJSON (UseSerializers useSerializersUseSerializers) = |
| 5996 | 6024 | object $ foldMap (maybe [] pure) |
| @@ -6001,21 +6029,14 @@ instance FromJSON UseSerializers where | ||
| 6001 | 6029 | parseJSON (Object v) = UseSerializers |
| 6002 | 6030 | <$> v .: "UseSerializers" |
| 6003 | 6031 | |
| 6004 | -instance ToJSON Ushort where | |
| 6005 | - toJSON (Ushort ushortUshort) = | |
| 6006 | - object $ foldMap (maybe [] pure) | |
| 6007 | - [ Just $ "ushort" .= ushortUshort | |
| 6008 | - ] | |
| 6009 | - | |
| 6010 | -instance FromJSON Ushort where | |
| 6011 | - parseJSON (Object v) = Ushort | |
| 6012 | - <$> v .: "ushort" | |
| 6013 | - | |
| 6014 | 6032 | instance ToJSON Obj6 where |
| 6015 | - toJSON (Obj6 dummyObj6 obj6WhereObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) = | |
| 6033 | + toJSON (Obj6 dummyObj6 obj6WhereObj6 unsafeObj6 unsignedObj6 ushortObj6 usingObj6 utf8JSONReaderObj6 utf8JSONWriterObj6 uuidObj6 varObj6 virtualObj6 voidObj6 volatileObj6 wcharTObj6 weakObj6 whileObj6 willSetObj6 withObj6 xorObj6 xorEqObj6 yesObj6 yieldObj6) = | |
| 6016 | 6034 | object $ foldMap (maybe [] pure) |
| 6017 | 6035 | [ Just $ "dummy" .= dummyObj6 |
| 6018 | 6036 | , Just $ "where" .= obj6WhereObj6 |
| 6037 | + , Just $ "unsafe" .= unsafeObj6 | |
| 6038 | + , Just $ "unsigned" .= unsignedObj6 | |
| 6039 | + , Just $ "ushort" .= ushortObj6 | |
| 6019 | 6040 | , Just $ "using" .= usingObj6 |
| 6020 | 6041 | , Just $ "Utf8JsonReader" .= utf8JSONReaderObj6 |
| 6021 | 6042 | , Just $ "Utf8JsonWriter" .= utf8JSONWriterObj6 |
| @@ -6039,6 +6060,9 @@ instance FromJSON Obj6 where | ||
| 6039 | 6060 | parseJSON (Object v) = Obj6 |
| 6040 | 6061 | <$> v .: "dummy" |
| 6041 | 6062 | <*> v .: "where" |
| 6063 | + <*> v .: "unsafe" | |
| 6064 | + <*> v .: "unsigned" | |
| 6065 | + <*> v .: "ushort" | |
| 6042 | 6066 | <*> v .: "using" |
| 6043 | 6067 | <*> v .: "Utf8JsonReader" |
| 6044 | 6068 | <*> v .: "Utf8JsonWriter" |
| @@ -6067,6 +6091,36 @@ instance FromJSON Where where | ||
| 6067 | 6091 | parseJSON (Object v) = Where |
| 6068 | 6092 | <$> v .: "where" |
| 6069 | 6093 | |
| 6094 | +instance ToJSON Unsafe where | |
| 6095 | + toJSON (Unsafe unsafeUnsafe) = | |
| 6096 | + object $ foldMap (maybe [] pure) | |
| 6097 | + [ Just $ "unsafe" .= unsafeUnsafe | |
| 6098 | + ] | |
| 6099 | + | |
| 6100 | +instance FromJSON Unsafe where | |
| 6101 | + parseJSON (Object v) = Unsafe | |
| 6102 | + <$> v .: "unsafe" | |
| 6103 | + | |
| 6104 | +instance ToJSON Unsigned where | |
| 6105 | + toJSON (Unsigned unsignedUnsigned) = | |
| 6106 | + object $ foldMap (maybe [] pure) | |
| 6107 | + [ Just $ "unsigned" .= unsignedUnsigned | |
| 6108 | + ] | |
| 6109 | + | |
| 6110 | +instance FromJSON Unsigned where | |
| 6111 | + parseJSON (Object v) = Unsigned | |
| 6112 | + <$> v .: "unsigned" | |
| 6113 | + | |
| 6114 | +instance ToJSON Ushort where | |
| 6115 | + toJSON (Ushort ushortUshort) = | |
| 6116 | + object $ foldMap (maybe [] pure) | |
| 6117 | + [ Just $ "ushort" .= ushortUshort | |
| 6118 | + ] | |
| 6119 | + | |
| 6120 | +instance FromJSON Ushort where | |
| 6121 | + parseJSON (Object v) = Ushort | |
| 6122 | + <$> v .: "ushort" | |
| 6123 | + | |
| 6070 | 6124 | instance ToJSON Using where |
| 6071 | 6125 | toJSON (Using usingUsing) = |
| 6072 | 6126 | object $ foldMap (maybe [] pure) |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class LocalDate { | |
| 6 | + private long localDate; | |
| 7 | + | |
| 8 | + @JsonProperty("LocalDate") | |
| 9 | + public long getLocalDate() { return localDate; } | |
| 10 | + @JsonProperty("LocalDate") | |
| 11 | + public void setLocalDate(long value) { this.localDate = value; } | |
| 12 | +} |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj3.java+6 −6
| @@ -46,6 +46,7 @@ public class Obj3 { | ||
| 46 | 46 | private Left left; |
| 47 | 47 | private Let let; |
| 48 | 48 | private ListClass list; |
| 49 | + private LocalDate localDate; | |
| 49 | 50 | private Locale locale; |
| 50 | 51 | private Lock lock; |
| 51 | 52 | private MapClass map; |
| @@ -58,7 +59,6 @@ public class Obj3 { | ||
| 58 | 59 | private Newtonsoft newtonsoft; |
| 59 | 60 | private Nil nil; |
| 60 | 61 | private No no; |
| 61 | - private Noexcept noexcept; | |
| 62 | 62 | private If obj3If; |
| 63 | 63 | private Implements obj3Implements; |
| 64 | 64 | private Import obj3Import; |
| @@ -284,6 +284,11 @@ public class Obj3 { | ||
| 284 | 284 | @JsonProperty("list") |
| 285 | 285 | public void setList(ListClass value) { this.list = value; } |
| 286 | 286 | |
| 287 | + @JsonProperty("LocalDate") | |
| 288 | + public LocalDate getLocalDate() { return localDate; } | |
| 289 | + @JsonProperty("LocalDate") | |
| 290 | + public void setLocalDate(LocalDate value) { this.localDate = value; } | |
| 291 | + | |
| 287 | 292 | @JsonProperty("Locale") |
| 288 | 293 | public Locale getLocale() { return locale; } |
| 289 | 294 | @JsonProperty("Locale") |
| @@ -344,11 +349,6 @@ public class Obj3 { | ||
| 344 | 349 | @JsonProperty("NO") |
| 345 | 350 | public void setNo(No value) { this.no = value; } |
| 346 | 351 | |
| 347 | - @JsonProperty("noexcept") | |
| 348 | - public Noexcept getNoexcept() { return noexcept; } | |
| 349 | - @JsonProperty("noexcept") | |
| 350 | - public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 351 | - | |
| 352 | 352 | @JsonProperty("if") |
| 353 | 353 | public If getObj3If() { return obj3If; } |
| 354 | 354 | @JsonProperty("if") |
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; |
| @@ -28,6 +29,8 @@ public class Obj4 { | ||
| 28 | 29 | private ObjectClass object; |
| 29 | 30 | private ObjectMapperClass objectMapper; |
| 30 | 31 | private Of of; |
| 32 | + private OffsetDateTime offsetDateTime; | |
| 33 | + private OffsetTime offsetTime; | |
| 31 | 34 | private Oneway oneway; |
| 32 | 35 | private Open open; |
| 33 | 36 | private Operator operator; |
| @@ -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") |
| @@ -194,6 +199,16 @@ public class Obj4 { | ||
| 194 | 199 | @JsonProperty("of") |
| 195 | 200 | public void setOf(Of value) { this.of = value; } |
| 196 | 201 | |
| 202 | + @JsonProperty("OffsetDateTime") | |
| 203 | + public OffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 204 | + @JsonProperty("OffsetDateTime") | |
| 205 | + public void setOffsetDateTime(OffsetDateTime value) { this.offsetDateTime = value; } | |
| 206 | + | |
| 207 | + @JsonProperty("OffsetTime") | |
| 208 | + public OffsetTime getOffsetTime() { return offsetTime; } | |
| 209 | + @JsonProperty("OffsetTime") | |
| 210 | + public void setOffsetTime(OffsetTime value) { this.offsetTime = value; } | |
| 211 | + | |
| 197 | 212 | @JsonProperty("oneway") |
| 198 | 213 | public Oneway getOneway() { return oneway; } |
| 199 | 214 | @JsonProperty("oneway") |
| @@ -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+18 −18
| @@ -21,6 +21,9 @@ public class Obj5 { | ||
| 21 | 21 | private TypeClass obj5Type; |
| 22 | 22 | private PrimitiveKind primitiveKind; |
| 23 | 23 | private TrueClass purpleTrue; |
| 24 | + private Sealed sealed; | |
| 25 | + private Sel sel; | |
| 26 | + private Select select; | |
| 24 | 27 | private Self self; |
| 25 | 28 | private Sendable sendable; |
| 26 | 29 | private SerialDescriptor serialDescriptor; |
| @@ -64,10 +67,7 @@ public class Obj5 { | ||
| 64 | 67 | private Undefined undefined; |
| 65 | 68 | private Union union; |
| 66 | 69 | private Unowned unowned; |
| 67 | - private Unsafe unsafe; | |
| 68 | - private Unsigned unsigned; | |
| 69 | 70 | private UseSerializers useSerializers; |
| 70 | - private Ushort ushort; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -159,6 +159,21 @@ public class Obj5 { | ||
| 159 | 159 | @JsonProperty("true") |
| 160 | 160 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 161 | 161 | |
| 162 | + @JsonProperty("sealed") | |
| 163 | + public Sealed getSealed() { return sealed; } | |
| 164 | + @JsonProperty("sealed") | |
| 165 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 166 | + | |
| 167 | + @JsonProperty("SEL") | |
| 168 | + public Sel getSel() { return sel; } | |
| 169 | + @JsonProperty("SEL") | |
| 170 | + public void setSel(Sel value) { this.sel = value; } | |
| 171 | + | |
| 172 | + @JsonProperty("select") | |
| 173 | + public Select getSelect() { return select; } | |
| 174 | + @JsonProperty("select") | |
| 175 | + public void setSelect(Select value) { this.select = value; } | |
| 176 | + | |
| 162 | 177 | @JsonProperty("Self") |
| 163 | 178 | public Self getSelf() { return self; } |
| 164 | 179 | @JsonProperty("Self") |
| @@ -374,23 +389,8 @@ public class Obj5 { | ||
| 374 | 389 | @JsonProperty("unowned") |
| 375 | 390 | public void setUnowned(Unowned value) { this.unowned = value; } |
| 376 | 391 | |
| 377 | - @JsonProperty("unsafe") | |
| 378 | - public Unsafe getUnsafe() { return unsafe; } | |
| 379 | - @JsonProperty("unsafe") | |
| 380 | - public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("unsigned") | |
| 383 | - public Unsigned getUnsigned() { return unsigned; } | |
| 384 | - @JsonProperty("unsigned") | |
| 385 | - public void setUnsigned(Unsigned value) { this.unsigned = value; } | |
| 386 | - | |
| 387 | 392 | @JsonProperty("UseSerializers") |
| 388 | 393 | public UseSerializers getUseSerializers() { return useSerializers; } |
| 389 | 394 | @JsonProperty("UseSerializers") |
| 390 | 395 | public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } |
| 391 | - | |
| 392 | - @JsonProperty("ushort") | |
| 393 | - public Ushort getUshort() { return ushort; } | |
| 394 | - @JsonProperty("ushort") | |
| 395 | - public void setUshort(Ushort value) { this.ushort = value; } | |
| 396 | 396 | } |
Mjava-datetime-legacydefault / src / main / java / io / quicktype / Obj6.java+18 −0
| @@ -7,6 +7,9 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Unsafe unsafe; | |
| 11 | + private Unsigned unsigned; | |
| 12 | + private Ushort ushort; | |
| 10 | 13 | private Using using; |
| 11 | 14 | private Utf8JSONReader utf8JSONReader; |
| 12 | 15 | private Utf8JSONWriter utf8JSONWriter; |
| @@ -43,6 +46,21 @@ public class Obj6 { | ||
| 43 | 46 | @JsonProperty("while") |
| 44 | 47 | public void setObj6While(While value) { this.obj6While = value; } |
| 45 | 48 | |
| 49 | + @JsonProperty("unsafe") | |
| 50 | + public Unsafe getUnsafe() { return unsafe; } | |
| 51 | + @JsonProperty("unsafe") | |
| 52 | + public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 53 | + | |
| 54 | + @JsonProperty("unsigned") | |
| 55 | + public Unsigned getUnsigned() { return unsigned; } | |
| 56 | + @JsonProperty("unsigned") | |
| 57 | + public void setUnsigned(Unsigned value) { this.unsigned = value; } | |
| 58 | + | |
| 59 | + @JsonProperty("ushort") | |
| 60 | + public Ushort getUshort() { return ushort; } | |
| 61 | + @JsonProperty("ushort") | |
| 62 | + public void setUshort(Ushort value) { this.ushort = value; } | |
| 63 | + | |
| 46 | 64 | @JsonProperty("using") |
| 47 | 65 | public Using getUsing() { return using; } |
| 48 | 66 | @JsonProperty("using") |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetDateTime { | |
| 6 | + private long offsetDateTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetDateTime") | |
| 9 | + public long getOffsetDateTime() { return offsetDateTime; } | |
| 10 | + @JsonProperty("OffsetDateTime") | |
| 11 | + public void setOffsetDateTime(long value) { this.offsetDateTime = value; } | |
| 12 | +} |
Ajava-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetTime { | |
| 6 | + private long offsetTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetTime") | |
| 9 | + public long getOffsetTime() { return offsetTime; } | |
| 10 | + @JsonProperty("OffsetTime") | |
| 11 | + public void setOffsetTime(long value) { this.offsetTime = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class LocalDateClass { | |
| 6 | + private long localDate; | |
| 7 | + | |
| 8 | + @JsonProperty("LocalDate") | |
| 9 | + public long getLocalDate() { return localDate; } | |
| 10 | + @JsonProperty("LocalDate") | |
| 11 | + public void setLocalDate(long value) { this.localDate = value; } | |
| 12 | +} |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj3.java+6 −6
| @@ -46,6 +46,7 @@ public class Obj3 { | ||
| 46 | 46 | private Left left; |
| 47 | 47 | private Let let; |
| 48 | 48 | private ListClass list; |
| 49 | + private LocalDateClass localDate; | |
| 49 | 50 | private Locale locale; |
| 50 | 51 | private Lock lock; |
| 51 | 52 | private MapClass map; |
| @@ -58,7 +59,6 @@ public class Obj3 { | ||
| 58 | 59 | private Newtonsoft newtonsoft; |
| 59 | 60 | private Nil nil; |
| 60 | 61 | private No no; |
| 61 | - private Noexcept noexcept; | |
| 62 | 62 | private If obj3If; |
| 63 | 63 | private Implements obj3Implements; |
| 64 | 64 | private Import obj3Import; |
| @@ -284,6 +284,11 @@ public class Obj3 { | ||
| 284 | 284 | @JsonProperty("list") |
| 285 | 285 | public void setList(ListClass value) { this.list = value; } |
| 286 | 286 | |
| 287 | + @JsonProperty("LocalDate") | |
| 288 | + public LocalDateClass getLocalDate() { return localDate; } | |
| 289 | + @JsonProperty("LocalDate") | |
| 290 | + public void setLocalDate(LocalDateClass value) { this.localDate = value; } | |
| 291 | + | |
| 287 | 292 | @JsonProperty("Locale") |
| 288 | 293 | public Locale getLocale() { return locale; } |
| 289 | 294 | @JsonProperty("Locale") |
| @@ -344,11 +349,6 @@ public class Obj3 { | ||
| 344 | 349 | @JsonProperty("NO") |
| 345 | 350 | public void setNo(No value) { this.no = value; } |
| 346 | 351 | |
| 347 | - @JsonProperty("noexcept") | |
| 348 | - public Noexcept getNoexcept() { return noexcept; } | |
| 349 | - @JsonProperty("noexcept") | |
| 350 | - public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 351 | - | |
| 352 | 352 | @JsonProperty("if") |
| 353 | 353 | public If getObj3If() { return obj3If; } |
| 354 | 354 | @JsonProperty("if") |
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; |
| @@ -28,6 +29,8 @@ public class Obj4 { | ||
| 28 | 29 | private ObjectClass object; |
| 29 | 30 | private ObjectMapperClass objectMapper; |
| 30 | 31 | private Of of; |
| 32 | + private OffsetDateTimeClass offsetDateTime; | |
| 33 | + private OffsetTimeClass offsetTime; | |
| 31 | 34 | private Oneway oneway; |
| 32 | 35 | private Open open; |
| 33 | 36 | private Operator operator; |
| @@ -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") |
| @@ -194,6 +199,16 @@ public class Obj4 { | ||
| 194 | 199 | @JsonProperty("of") |
| 195 | 200 | public void setOf(Of value) { this.of = value; } |
| 196 | 201 | |
| 202 | + @JsonProperty("OffsetDateTime") | |
| 203 | + public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; } | |
| 204 | + @JsonProperty("OffsetDateTime") | |
| 205 | + public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; } | |
| 206 | + | |
| 207 | + @JsonProperty("OffsetTime") | |
| 208 | + public OffsetTimeClass getOffsetTime() { return offsetTime; } | |
| 209 | + @JsonProperty("OffsetTime") | |
| 210 | + public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; } | |
| 211 | + | |
| 197 | 212 | @JsonProperty("oneway") |
| 198 | 213 | public Oneway getOneway() { return oneway; } |
| 199 | 214 | @JsonProperty("oneway") |
| @@ -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+18 −18
| @@ -21,6 +21,9 @@ public class Obj5 { | ||
| 21 | 21 | private TypeClass obj5Type; |
| 22 | 22 | private PrimitiveKind primitiveKind; |
| 23 | 23 | private TrueClass purpleTrue; |
| 24 | + private Sealed sealed; | |
| 25 | + private Sel sel; | |
| 26 | + private Select select; | |
| 24 | 27 | private Self self; |
| 25 | 28 | private Sendable sendable; |
| 26 | 29 | private SerialDescriptor serialDescriptor; |
| @@ -64,10 +67,7 @@ public class Obj5 { | ||
| 64 | 67 | private Undefined undefined; |
| 65 | 68 | private Union union; |
| 66 | 69 | private Unowned unowned; |
| 67 | - private Unsafe unsafe; | |
| 68 | - private Unsigned unsigned; | |
| 69 | 70 | private UseSerializers useSerializers; |
| 70 | - private Ushort ushort; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -159,6 +159,21 @@ public class Obj5 { | ||
| 159 | 159 | @JsonProperty("true") |
| 160 | 160 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 161 | 161 | |
| 162 | + @JsonProperty("sealed") | |
| 163 | + public Sealed getSealed() { return sealed; } | |
| 164 | + @JsonProperty("sealed") | |
| 165 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 166 | + | |
| 167 | + @JsonProperty("SEL") | |
| 168 | + public Sel getSel() { return sel; } | |
| 169 | + @JsonProperty("SEL") | |
| 170 | + public void setSel(Sel value) { this.sel = value; } | |
| 171 | + | |
| 172 | + @JsonProperty("select") | |
| 173 | + public Select getSelect() { return select; } | |
| 174 | + @JsonProperty("select") | |
| 175 | + public void setSelect(Select value) { this.select = value; } | |
| 176 | + | |
| 162 | 177 | @JsonProperty("Self") |
| 163 | 178 | public Self getSelf() { return self; } |
| 164 | 179 | @JsonProperty("Self") |
| @@ -374,23 +389,8 @@ public class Obj5 { | ||
| 374 | 389 | @JsonProperty("unowned") |
| 375 | 390 | public void setUnowned(Unowned value) { this.unowned = value; } |
| 376 | 391 | |
| 377 | - @JsonProperty("unsafe") | |
| 378 | - public Unsafe getUnsafe() { return unsafe; } | |
| 379 | - @JsonProperty("unsafe") | |
| 380 | - public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("unsigned") | |
| 383 | - public Unsigned getUnsigned() { return unsigned; } | |
| 384 | - @JsonProperty("unsigned") | |
| 385 | - public void setUnsigned(Unsigned value) { this.unsigned = value; } | |
| 386 | - | |
| 387 | 392 | @JsonProperty("UseSerializers") |
| 388 | 393 | public UseSerializers getUseSerializers() { return useSerializers; } |
| 389 | 394 | @JsonProperty("UseSerializers") |
| 390 | 395 | public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } |
| 391 | - | |
| 392 | - @JsonProperty("ushort") | |
| 393 | - public Ushort getUshort() { return ushort; } | |
| 394 | - @JsonProperty("ushort") | |
| 395 | - public void setUshort(Ushort value) { this.ushort = value; } | |
| 396 | 396 | } |
Mjava-lombokdefault / src / main / java / io / quicktype / Obj6.java+18 −0
| @@ -7,6 +7,9 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Unsafe unsafe; | |
| 11 | + private Unsigned unsigned; | |
| 12 | + private Ushort ushort; | |
| 10 | 13 | private Using using; |
| 11 | 14 | private Utf8JSONReader utf8JSONReader; |
| 12 | 15 | private Utf8JSONWriter utf8JSONWriter; |
| @@ -43,6 +46,21 @@ public class Obj6 { | ||
| 43 | 46 | @JsonProperty("while") |
| 44 | 47 | public void setObj6While(While value) { this.obj6While = value; } |
| 45 | 48 | |
| 49 | + @JsonProperty("unsafe") | |
| 50 | + public Unsafe getUnsafe() { return unsafe; } | |
| 51 | + @JsonProperty("unsafe") | |
| 52 | + public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 53 | + | |
| 54 | + @JsonProperty("unsigned") | |
| 55 | + public Unsigned getUnsigned() { return unsigned; } | |
| 56 | + @JsonProperty("unsigned") | |
| 57 | + public void setUnsigned(Unsigned value) { this.unsigned = value; } | |
| 58 | + | |
| 59 | + @JsonProperty("ushort") | |
| 60 | + public Ushort getUshort() { return ushort; } | |
| 61 | + @JsonProperty("ushort") | |
| 62 | + public void setUshort(Ushort value) { this.ushort = value; } | |
| 63 | + | |
| 46 | 64 | @JsonProperty("using") |
| 47 | 65 | public Using getUsing() { return using; } |
| 48 | 66 | @JsonProperty("using") |
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetDateTimeClass { | |
| 6 | + private long offsetDateTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetDateTime") | |
| 9 | + public long getOffsetDateTime() { return offsetDateTime; } | |
| 10 | + @JsonProperty("OffsetDateTime") | |
| 11 | + public void setOffsetDateTime(long value) { this.offsetDateTime = value; } | |
| 12 | +} |
Ajava-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetTimeClass { | |
| 6 | + private long offsetTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetTime") | |
| 9 | + public long getOffsetTime() { return offsetTime; } | |
| 10 | + @JsonProperty("OffsetTime") | |
| 11 | + public void setOffsetTime(long value) { this.offsetTime = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / LocalDateClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class LocalDateClass { | |
| 6 | + private long localDate; | |
| 7 | + | |
| 8 | + @JsonProperty("LocalDate") | |
| 9 | + public long getLocalDate() { return localDate; } | |
| 10 | + @JsonProperty("LocalDate") | |
| 11 | + public void setLocalDate(long value) { this.localDate = value; } | |
| 12 | +} |
Mjavadefault / src / main / java / io / quicktype / Obj3.java+6 −6
| @@ -46,6 +46,7 @@ public class Obj3 { | ||
| 46 | 46 | private Left left; |
| 47 | 47 | private Let let; |
| 48 | 48 | private ListClass list; |
| 49 | + private LocalDateClass localDate; | |
| 49 | 50 | private Locale locale; |
| 50 | 51 | private Lock lock; |
| 51 | 52 | private MapClass map; |
| @@ -58,7 +59,6 @@ public class Obj3 { | ||
| 58 | 59 | private Newtonsoft newtonsoft; |
| 59 | 60 | private Nil nil; |
| 60 | 61 | private No no; |
| 61 | - private Noexcept noexcept; | |
| 62 | 62 | private If obj3If; |
| 63 | 63 | private Implements obj3Implements; |
| 64 | 64 | private Import obj3Import; |
| @@ -284,6 +284,11 @@ public class Obj3 { | ||
| 284 | 284 | @JsonProperty("list") |
| 285 | 285 | public void setList(ListClass value) { this.list = value; } |
| 286 | 286 | |
| 287 | + @JsonProperty("LocalDate") | |
| 288 | + public LocalDateClass getLocalDate() { return localDate; } | |
| 289 | + @JsonProperty("LocalDate") | |
| 290 | + public void setLocalDate(LocalDateClass value) { this.localDate = value; } | |
| 291 | + | |
| 287 | 292 | @JsonProperty("Locale") |
| 288 | 293 | public Locale getLocale() { return locale; } |
| 289 | 294 | @JsonProperty("Locale") |
| @@ -344,11 +349,6 @@ public class Obj3 { | ||
| 344 | 349 | @JsonProperty("NO") |
| 345 | 350 | public void setNo(No value) { this.no = value; } |
| 346 | 351 | |
| 347 | - @JsonProperty("noexcept") | |
| 348 | - public Noexcept getNoexcept() { return noexcept; } | |
| 349 | - @JsonProperty("noexcept") | |
| 350 | - public void setNoexcept(Noexcept value) { this.noexcept = value; } | |
| 351 | - | |
| 352 | 352 | @JsonProperty("if") |
| 353 | 353 | public If getObj3If() { return obj3If; } |
| 354 | 354 | @JsonProperty("if") |
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; |
| @@ -28,6 +29,8 @@ public class Obj4 { | ||
| 28 | 29 | private ObjectClass object; |
| 29 | 30 | private ObjectMapperClass objectMapper; |
| 30 | 31 | private Of of; |
| 32 | + private OffsetDateTimeClass offsetDateTime; | |
| 33 | + private OffsetTimeClass offsetTime; | |
| 31 | 34 | private Oneway oneway; |
| 32 | 35 | private Open open; |
| 33 | 36 | private Operator operator; |
| @@ -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") |
| @@ -194,6 +199,16 @@ public class Obj4 { | ||
| 194 | 199 | @JsonProperty("of") |
| 195 | 200 | public void setOf(Of value) { this.of = value; } |
| 196 | 201 | |
| 202 | + @JsonProperty("OffsetDateTime") | |
| 203 | + public OffsetDateTimeClass getOffsetDateTime() { return offsetDateTime; } | |
| 204 | + @JsonProperty("OffsetDateTime") | |
| 205 | + public void setOffsetDateTime(OffsetDateTimeClass value) { this.offsetDateTime = value; } | |
| 206 | + | |
| 207 | + @JsonProperty("OffsetTime") | |
| 208 | + public OffsetTimeClass getOffsetTime() { return offsetTime; } | |
| 209 | + @JsonProperty("OffsetTime") | |
| 210 | + public void setOffsetTime(OffsetTimeClass value) { this.offsetTime = value; } | |
| 211 | + | |
| 197 | 212 | @JsonProperty("oneway") |
| 198 | 213 | public Oneway getOneway() { return oneway; } |
| 199 | 214 | @JsonProperty("oneway") |
| @@ -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+18 −18
| @@ -21,6 +21,9 @@ public class Obj5 { | ||
| 21 | 21 | private TypeClass obj5Type; |
| 22 | 22 | private PrimitiveKind primitiveKind; |
| 23 | 23 | private TrueClass purpleTrue; |
| 24 | + private Sealed sealed; | |
| 25 | + private Sel sel; | |
| 26 | + private Select select; | |
| 24 | 27 | private Self self; |
| 25 | 28 | private Sendable sendable; |
| 26 | 29 | private SerialDescriptor serialDescriptor; |
| @@ -64,10 +67,7 @@ public class Obj5 { | ||
| 64 | 67 | private Undefined undefined; |
| 65 | 68 | private Union union; |
| 66 | 69 | private Unowned unowned; |
| 67 | - private Unsafe unsafe; | |
| 68 | - private Unsigned unsigned; | |
| 69 | 70 | private UseSerializers useSerializers; |
| 70 | - private Ushort ushort; | |
| 71 | 71 | |
| 72 | 72 | @JsonProperty("dummy") |
| 73 | 73 | public long getDummy() { return dummy; } |
| @@ -159,6 +159,21 @@ public class Obj5 { | ||
| 159 | 159 | @JsonProperty("true") |
| 160 | 160 | public void setPurpleTrue(TrueClass value) { this.purpleTrue = value; } |
| 161 | 161 | |
| 162 | + @JsonProperty("sealed") | |
| 163 | + public Sealed getSealed() { return sealed; } | |
| 164 | + @JsonProperty("sealed") | |
| 165 | + public void setSealed(Sealed value) { this.sealed = value; } | |
| 166 | + | |
| 167 | + @JsonProperty("SEL") | |
| 168 | + public Sel getSel() { return sel; } | |
| 169 | + @JsonProperty("SEL") | |
| 170 | + public void setSel(Sel value) { this.sel = value; } | |
| 171 | + | |
| 172 | + @JsonProperty("select") | |
| 173 | + public Select getSelect() { return select; } | |
| 174 | + @JsonProperty("select") | |
| 175 | + public void setSelect(Select value) { this.select = value; } | |
| 176 | + | |
| 162 | 177 | @JsonProperty("Self") |
| 163 | 178 | public Self getSelf() { return self; } |
| 164 | 179 | @JsonProperty("Self") |
| @@ -374,23 +389,8 @@ public class Obj5 { | ||
| 374 | 389 | @JsonProperty("unowned") |
| 375 | 390 | public void setUnowned(Unowned value) { this.unowned = value; } |
| 376 | 391 | |
| 377 | - @JsonProperty("unsafe") | |
| 378 | - public Unsafe getUnsafe() { return unsafe; } | |
| 379 | - @JsonProperty("unsafe") | |
| 380 | - public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 381 | - | |
| 382 | - @JsonProperty("unsigned") | |
| 383 | - public Unsigned getUnsigned() { return unsigned; } | |
| 384 | - @JsonProperty("unsigned") | |
| 385 | - public void setUnsigned(Unsigned value) { this.unsigned = value; } | |
| 386 | - | |
| 387 | 392 | @JsonProperty("UseSerializers") |
| 388 | 393 | public UseSerializers getUseSerializers() { return useSerializers; } |
| 389 | 394 | @JsonProperty("UseSerializers") |
| 390 | 395 | public void setUseSerializers(UseSerializers value) { this.useSerializers = value; } |
| 391 | - | |
| 392 | - @JsonProperty("ushort") | |
| 393 | - public Ushort getUshort() { return ushort; } | |
| 394 | - @JsonProperty("ushort") | |
| 395 | - public void setUshort(Ushort value) { this.ushort = value; } | |
| 396 | 396 | } |
Mjavadefault / src / main / java / io / quicktype / Obj6.java+18 −0
| @@ -7,6 +7,9 @@ public class Obj6 { | ||
| 7 | 7 | private Void obj6Void; |
| 8 | 8 | private Volatile obj6Volatile; |
| 9 | 9 | private While obj6While; |
| 10 | + private Unsafe unsafe; | |
| 11 | + private Unsigned unsigned; | |
| 12 | + private Ushort ushort; | |
| 10 | 13 | private Using using; |
| 11 | 14 | private Utf8JSONReader utf8JSONReader; |
| 12 | 15 | private Utf8JSONWriter utf8JSONWriter; |
| @@ -43,6 +46,21 @@ public class Obj6 { | ||
| 43 | 46 | @JsonProperty("while") |
| 44 | 47 | public void setObj6While(While value) { this.obj6While = value; } |
| 45 | 48 | |
| 49 | + @JsonProperty("unsafe") | |
| 50 | + public Unsafe getUnsafe() { return unsafe; } | |
| 51 | + @JsonProperty("unsafe") | |
| 52 | + public void setUnsafe(Unsafe value) { this.unsafe = value; } | |
| 53 | + | |
| 54 | + @JsonProperty("unsigned") | |
| 55 | + public Unsigned getUnsigned() { return unsigned; } | |
| 56 | + @JsonProperty("unsigned") | |
| 57 | + public void setUnsigned(Unsigned value) { this.unsigned = value; } | |
| 58 | + | |
| 59 | + @JsonProperty("ushort") | |
| 60 | + public Ushort getUshort() { return ushort; } | |
| 61 | + @JsonProperty("ushort") | |
| 62 | + public void setUshort(Ushort value) { this.ushort = value; } | |
| 63 | + | |
| 46 | 64 | @JsonProperty("using") |
| 47 | 65 | public Using getUsing() { return using; } |
| 48 | 66 | @JsonProperty("using") |
Ajavadefault / src / main / java / io / quicktype / OffsetDateTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetDateTimeClass { | |
| 6 | + private long offsetDateTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetDateTime") | |
| 9 | + public long getOffsetDateTime() { return offsetDateTime; } | |
| 10 | + @JsonProperty("OffsetDateTime") | |
| 11 | + public void setOffsetDateTime(long value) { this.offsetDateTime = value; } | |
| 12 | +} |
Ajavadefault / src / main / java / io / quicktype / OffsetTimeClass.java+12 −0
| @@ -0,0 +1,12 @@ | ||
| 1 | +package io.quicktype; | |
| 2 | + | |
| 3 | +import com.fasterxml.jackson.annotation.*; | |
| 4 | + | |
| 5 | +public class OffsetTimeClass { | |
| 6 | + private long offsetTime; | |
| 7 | + | |
| 8 | + @JsonProperty("OffsetTime") | |
| 9 | + public long getOffsetTime() { return offsetTime; } | |
| 10 | + @JsonProperty("OffsetTime") | |
| 11 | + public void setOffsetTime(long value) { this.offsetTime = value; } | |
| 12 | +} |
Mjavascript-prop-typesdefault / toplevel.js+50 −35
| @@ -160,6 +160,7 @@ let _JSONNode; | ||
| 160 | 160 | let _JSONParser; |
| 161 | 161 | let _JSONReader; |
| 162 | 162 | let _JSONTokenType; |
| 163 | +let _LocalDate; | |
| 163 | 164 | let _Locale; |
| 164 | 165 | let _MapEntry; |
| 165 | 166 | let _No; |
| @@ -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 _OffsetDateTime; | |
| 220 | +let _OffsetTime; | |
| 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,10 @@ 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 | 278 | let _KSerializer; |
| 279 | 279 | let _PrimitiveKind; |
| 280 | +let _Sel; | |
| 280 | 281 | let _Self; |
| 281 | 282 | let _Sendable; |
| 282 | 283 | let _SerialDescriptor; |
| @@ -293,6 +294,8 @@ let _TimeZone; | ||
| 293 | 294 | let _True; |
| 294 | 295 | let _Type; |
| 295 | 296 | let _UseSerializers; |
| 297 | +let _Sealed; | |
| 298 | +let _Select; | |
| 296 | 299 | let _SelfClass; |
| 297 | 300 | let _Serialize; |
| 298 | 301 | let _Set; |
| @@ -336,14 +339,14 @@ let _Unchecked; | ||
| 336 | 339 | let _Undefined; |
| 337 | 340 | let _Union; |
| 338 | 341 | let _Unowned; |
| 339 | -let _Unsafe; | |
| 340 | -let _Unsigned; | |
| 341 | -let _Ushort; | |
| 342 | 342 | let _Obj6; |
| 343 | 343 | let _UUID; |
| 344 | 344 | let _Utf8JSONReader; |
| 345 | 345 | let _Utf8JSONWriter; |
| 346 | 346 | let _Yes; |
| 347 | +let _Unsafe; | |
| 348 | +let _Unsigned; | |
| 349 | +let _Ushort; | |
| 347 | 350 | let _Using; |
| 348 | 351 | let _Var; |
| 349 | 352 | let _Virtual; |
| @@ -922,6 +925,9 @@ _JSONReader = PropTypes.shape({ | ||
| 922 | 925 | _JSONTokenType = PropTypes.shape({ |
| 923 | 926 | "JsonTokenType": PropTypes.oneOfType([Integer]).isRequired, |
| 924 | 927 | }); |
| 928 | +_LocalDate = PropTypes.shape({ | |
| 929 | + "LocalDate": PropTypes.oneOfType([Integer]).isRequired, | |
| 930 | +}); | |
| 925 | 931 | _Locale = PropTypes.shape({ |
| 926 | 932 | "Locale": PropTypes.oneOfType([Integer]).isRequired, |
| 927 | 933 | }); |
| @@ -1066,9 +1072,6 @@ _Newtonsoft = PropTypes.shape({ | ||
| 1066 | 1072 | _Nil = PropTypes.shape({ |
| 1067 | 1073 | "nil": PropTypes.oneOfType([Integer]).isRequired, |
| 1068 | 1074 | }); |
| 1069 | -_Noexcept = PropTypes.shape({ | |
| 1070 | - "noexcept": PropTypes.oneOfType([Integer]).isRequired, | |
| 1071 | -}); | |
| 1072 | 1075 | _Obj3 = PropTypes.shape({ |
| 1073 | 1076 | "Hashable": _Hashable, |
| 1074 | 1077 | "Hasher": _Hasher, |
| @@ -1085,6 +1088,7 @@ _Obj3 = PropTypes.shape({ | ||
| 1085 | 1088 | "JsonParser": _JSONParser, |
| 1086 | 1089 | "JsonReader": _JSONReader, |
| 1087 | 1090 | "JsonTokenType": _JSONTokenType, |
| 1091 | + "LocalDate": _LocalDate, | |
| 1088 | 1092 | "Locale": _Locale, |
| 1089 | 1093 | "MapEntry": _MapEntry, |
| 1090 | 1094 | "NO": _No, |
| @@ -1134,7 +1138,6 @@ _Obj3 = PropTypes.shape({ | ||
| 1134 | 1138 | "new": _New, |
| 1135 | 1139 | "newtonsoft": _Newtonsoft, |
| 1136 | 1140 | "nil": _Nil, |
| 1137 | - "noexcept": _Noexcept, | |
| 1138 | 1141 | }); |
| 1139 | 1142 | _NSError = PropTypes.shape({ |
| 1140 | 1143 | "NSError": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1154,18 +1157,24 @@ _None = PropTypes.shape({ | ||
| 1154 | 1157 | _ObjectMapper = PropTypes.shape({ |
| 1155 | 1158 | "ObjectMapper": PropTypes.oneOfType([Integer]).isRequired, |
| 1156 | 1159 | }); |
| 1160 | +_OffsetDateTime = PropTypes.shape({ | |
| 1161 | + "OffsetDateTime": PropTypes.oneOfType([Integer]).isRequired, | |
| 1162 | +}); | |
| 1163 | +_OffsetTime = PropTypes.shape({ | |
| 1164 | + "OffsetTime": PropTypes.oneOfType([Integer]).isRequired, | |
| 1165 | +}); | |
| 1157 | 1166 | _Protocol = PropTypes.shape({ |
| 1158 | 1167 | "Protocol": PropTypes.oneOfType([Integer]).isRequired, |
| 1159 | 1168 | }); |
| 1160 | 1169 | _RegExp = PropTypes.shape({ |
| 1161 | 1170 | "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, |
| 1162 | 1171 | }); |
| 1163 | -_Sel = PropTypes.shape({ | |
| 1164 | - "SEL": PropTypes.oneOfType([Integer]).isRequired, | |
| 1165 | -}); | |
| 1166 | 1172 | _NoSuchMethod = PropTypes.shape({ |
| 1167 | 1173 | "noSuchMethod": PropTypes.oneOfType([Integer]).isRequired, |
| 1168 | 1174 | }); |
| 1175 | +_Noexcept = PropTypes.shape({ | |
| 1176 | + "noexcept": PropTypes.oneOfType([Integer]).isRequired, | |
| 1177 | +}); | |
| 1169 | 1178 | _Nonatomic = PropTypes.shape({ |
| 1170 | 1179 | "nonatomic": PropTypes.oneOfType([Integer]).isRequired, |
| 1171 | 1180 | }); |
| @@ -1322,12 +1331,6 @@ _S = PropTypes.shape({ | ||
| 1322 | 1331 | _Sbyte = PropTypes.shape({ |
| 1323 | 1332 | "sbyte": PropTypes.oneOfType([Integer]).isRequired, |
| 1324 | 1333 | }); |
| 1325 | -_Sealed = PropTypes.shape({ | |
| 1326 | - "sealed": PropTypes.oneOfType([Integer]).isRequired, | |
| 1327 | -}); | |
| 1328 | -_Select = PropTypes.shape({ | |
| 1329 | - "select": PropTypes.oneOfType([Integer]).isRequired, | |
| 1330 | -}); | |
| 1331 | 1334 | _Obj4 = PropTypes.shape({ |
| 1332 | 1335 | "NSError": _NSError, |
| 1333 | 1336 | "NSObject": _NSObject, |
| @@ -1335,11 +1338,13 @@ _Obj4 = PropTypes.shape({ | ||
| 1335 | 1338 | "NULL": _Null, |
| 1336 | 1339 | "None": _None, |
| 1337 | 1340 | "ObjectMapper": _ObjectMapper, |
| 1341 | + "OffsetDateTime": _OffsetDateTime, | |
| 1342 | + "OffsetTime": _OffsetTime, | |
| 1338 | 1343 | "Protocol": _Protocol, |
| 1339 | 1344 | "RegExp": _RegExp, |
| 1340 | - "SEL": _Sel, | |
| 1341 | 1345 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1342 | 1346 | "noSuchMethod": _NoSuchMethod, |
| 1347 | + "noexcept": _Noexcept, | |
| 1343 | 1348 | "nonatomic": _Nonatomic, |
| 1344 | 1349 | "none": _NoneClass, |
| 1345 | 1350 | "nonlocal": _Nonlocal, |
| @@ -1392,8 +1397,6 @@ _Obj4 = PropTypes.shape({ | ||
| 1392 | 1397 | "runtimeType": _RuntimeType, |
| 1393 | 1398 | "s": _S, |
| 1394 | 1399 | "sbyte": _Sbyte, |
| 1395 | - "sealed": _Sealed, | |
| 1396 | - "select": _Select, | |
| 1397 | 1400 | }); |
| 1398 | 1401 | _KSerializer = PropTypes.shape({ |
| 1399 | 1402 | "KSerializer": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1401,6 +1404,9 @@ _KSerializer = PropTypes.shape({ | ||
| 1401 | 1404 | _PrimitiveKind = PropTypes.shape({ |
| 1402 | 1405 | "PrimitiveKind": PropTypes.oneOfType([Integer]).isRequired, |
| 1403 | 1406 | }); |
| 1407 | +_Sel = PropTypes.shape({ | |
| 1408 | + "SEL": PropTypes.oneOfType([Integer]).isRequired, | |
| 1409 | +}); | |
| 1404 | 1410 | _Self = PropTypes.shape({ |
| 1405 | 1411 | "Self": PropTypes.oneOfType([Integer]).isRequired, |
| 1406 | 1412 | }); |
| @@ -1449,6 +1455,12 @@ _Type = PropTypes.shape({ | ||
| 1449 | 1455 | _UseSerializers = PropTypes.shape({ |
| 1450 | 1456 | "UseSerializers": PropTypes.oneOfType([Integer]).isRequired, |
| 1451 | 1457 | }); |
| 1458 | +_Sealed = PropTypes.shape({ | |
| 1459 | + "sealed": PropTypes.oneOfType([Integer]).isRequired, | |
| 1460 | +}); | |
| 1461 | +_Select = PropTypes.shape({ | |
| 1462 | + "select": PropTypes.oneOfType([Integer]).isRequired, | |
| 1463 | +}); | |
| 1452 | 1464 | _SelfClass = PropTypes.shape({ |
| 1453 | 1465 | "self": PropTypes.oneOfType([Integer]).isRequired, |
| 1454 | 1466 | }); |
| @@ -1578,18 +1590,10 @@ _Union = PropTypes.shape({ | ||
| 1578 | 1590 | _Unowned = PropTypes.shape({ |
| 1579 | 1591 | "unowned": PropTypes.oneOfType([Integer]).isRequired, |
| 1580 | 1592 | }); |
| 1581 | -_Unsafe = PropTypes.shape({ | |
| 1582 | - "unsafe": PropTypes.oneOfType([Integer]).isRequired, | |
| 1583 | -}); | |
| 1584 | -_Unsigned = PropTypes.shape({ | |
| 1585 | - "unsigned": PropTypes.oneOfType([Integer]).isRequired, | |
| 1586 | -}); | |
| 1587 | -_Ushort = PropTypes.shape({ | |
| 1588 | - "ushort": PropTypes.oneOfType([Integer]).isRequired, | |
| 1589 | -}); | |
| 1590 | 1593 | _Obj5 = PropTypes.shape({ |
| 1591 | 1594 | "KSerializer": _KSerializer, |
| 1592 | 1595 | "PrimitiveKind": _PrimitiveKind, |
| 1596 | + "SEL": _Sel, | |
| 1593 | 1597 | "Self": _Self, |
| 1594 | 1598 | "Sendable": _Sendable, |
| 1595 | 1599 | "SerialDescriptor": _SerialDescriptor, |
| @@ -1607,6 +1611,8 @@ _Obj5 = PropTypes.shape({ | ||
| 1607 | 1611 | "Type": _Type, |
| 1608 | 1612 | "UseSerializers": _UseSerializers, |
| 1609 | 1613 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1614 | + "sealed": _Sealed, | |
| 1615 | + "select": _Select, | |
| 1610 | 1616 | "self": _SelfClass, |
| 1611 | 1617 | "serialize": _Serialize, |
| 1612 | 1618 | "set": _Set, |
| @@ -1650,9 +1656,6 @@ _Obj5 = PropTypes.shape({ | ||
| 1650 | 1656 | "undefined": _Undefined, |
| 1651 | 1657 | "union": _Union, |
| 1652 | 1658 | "unowned": _Unowned, |
| 1653 | - "unsafe": _Unsafe, | |
| 1654 | - "unsigned": _Unsigned, | |
| 1655 | - "ushort": _Ushort, | |
| 1656 | 1659 | }); |
| 1657 | 1660 | _UUID = PropTypes.shape({ |
| 1658 | 1661 | "UUID": PropTypes.oneOfType([Integer]).isRequired, |
| @@ -1666,6 +1669,15 @@ _Utf8JSONWriter = PropTypes.shape({ | ||
| 1666 | 1669 | _Yes = PropTypes.shape({ |
| 1667 | 1670 | "YES": PropTypes.oneOfType([Integer]).isRequired, |
| 1668 | 1671 | }); |
| 1672 | +_Unsafe = PropTypes.shape({ | |
| 1673 | + "unsafe": PropTypes.oneOfType([Integer]).isRequired, | |
| 1674 | +}); | |
| 1675 | +_Unsigned = PropTypes.shape({ | |
| 1676 | + "unsigned": PropTypes.oneOfType([Integer]).isRequired, | |
| 1677 | +}); | |
| 1678 | +_Ushort = PropTypes.shape({ | |
| 1679 | + "ushort": PropTypes.oneOfType([Integer]).isRequired, | |
| 1680 | +}); | |
| 1669 | 1681 | _Using = PropTypes.shape({ |
| 1670 | 1682 | "using": PropTypes.oneOfType([Integer]).isRequired, |
| 1671 | 1683 | }); |
| @@ -1714,6 +1726,9 @@ _Obj6 = PropTypes.shape({ | ||
| 1714 | 1726 | "Utf8JsonWriter": _Utf8JSONWriter, |
| 1715 | 1727 | "YES": _Yes, |
| 1716 | 1728 | "dummy": PropTypes.oneOfType([Integer]).isRequired, |
| 1729 | + "unsafe": _Unsafe, | |
| 1730 | + "unsigned": _Unsigned, | |
| 1731 | + "ushort": _Ushort, | |
| 1717 | 1732 | "using": _Using, |
| 1718 | 1733 | "var": _Var, |
| 1719 | 1734 | "virtual": _Virtual, |
Mjavascriptdefault / TopLevel.js+40 −28
| @@ -736,6 +736,7 @@ const typeMap = { | ||
| 736 | 736 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 737 | 737 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 738 | 738 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 739 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 739 | 740 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 740 | 741 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 741 | 742 | { json: "NO", js: "NO", typ: r("No") }, |
| @@ -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) }, |
| @@ -832,6 +832,9 @@ const typeMap = { | ||
| 832 | 832 | "JSONTokenType": o([ |
| 833 | 833 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 834 | 834 | ], false), |
| 835 | + "LocalDate": o([ | |
| 836 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 837 | + ], false), | |
| 835 | 838 | "Locale": o([ |
| 836 | 839 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 837 | 840 | ], 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: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 990 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 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 | + "OffsetDateTime": o([ | |
| 1068 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 1069 | + ], false), | |
| 1070 | + "OffsetTime": o([ | |
| 1071 | + { json: "OffsetTime", js: "OffsetTime", 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,10 @@ 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 | 1242 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 1243 | 1243 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 1244 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 1244 | 1245 | { json: "Self", js: "Self", typ: r("Self") }, |
| 1245 | 1246 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 1246 | 1247 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -1258,6 +1259,8 @@ const typeMap = { | ||
| 1258 | 1259 | { json: "Type", js: "Type", typ: r("Type") }, |
| 1259 | 1260 | { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, |
| 1260 | 1261 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 1262 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 1263 | + { json: "select", js: "select", typ: r("Select") }, | |
| 1261 | 1264 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 1262 | 1265 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 1263 | 1266 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -1301,9 +1304,6 @@ const typeMap = { | ||
| 1301 | 1304 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 1302 | 1305 | { json: "union", js: "union", typ: r("Union") }, |
| 1303 | 1306 | { json: "unowned", js: "unowned", typ: r("Unowned") }, |
| 1304 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 1305 | - { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 1306 | - { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 1307 | 1307 | ], false), |
| 1308 | 1308 | "KSerializer": o([ |
| 1309 | 1309 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -1311,6 +1311,9 @@ const typeMap = { | ||
| 1311 | 1311 | "PrimitiveKind": o([ |
| 1312 | 1312 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 1313 | 1313 | ], false), |
| 1314 | + "Sel": o([ | |
| 1315 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 1316 | + ], false), | |
| 1314 | 1317 | "Self": o([ |
| 1315 | 1318 | { json: "Self", js: "Self", typ: i(0) }, |
| 1316 | 1319 | ], false), |
| @@ -1359,6 +1362,12 @@ const typeMap = { | ||
| 1359 | 1362 | "UseSerializers": o([ |
| 1360 | 1363 | { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, |
| 1361 | 1364 | ], false), |
| 1365 | + "Sealed": o([ | |
| 1366 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 1367 | + ], false), | |
| 1368 | + "Select": o([ | |
| 1369 | + { json: "select", js: "select", typ: i(0) }, | |
| 1370 | + ], false), | |
| 1362 | 1371 | "SelfClass": o([ |
| 1363 | 1372 | { json: "self", js: "self", typ: i(0) }, |
| 1364 | 1373 | ], false), |
| @@ -1488,21 +1497,15 @@ const typeMap = { | ||
| 1488 | 1497 | "Unowned": o([ |
| 1489 | 1498 | { json: "unowned", js: "unowned", typ: i(0) }, |
| 1490 | 1499 | ], false), |
| 1491 | - "Unsafe": o([ | |
| 1492 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 1493 | - ], false), | |
| 1494 | - "Unsigned": o([ | |
| 1495 | - { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 1496 | - ], false), | |
| 1497 | - "Ushort": o([ | |
| 1498 | - { json: "ushort", js: "ushort", typ: i(0) }, | |
| 1499 | - ], false), | |
| 1500 | 1500 | "Obj6": o([ |
| 1501 | 1501 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 1502 | 1502 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 1503 | 1503 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 1504 | 1504 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 1505 | 1505 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 1506 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 1507 | + { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 1508 | + { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 1506 | 1509 | { json: "using", js: "using", typ: r("Using") }, |
| 1507 | 1510 | { json: "var", js: "var", typ: r("Var") }, |
| 1508 | 1511 | { json: "virtual", js: "virtual", typ: r("Virtual") }, |
| @@ -1530,6 +1533,15 @@ const typeMap = { | ||
| 1530 | 1533 | "Yes": o([ |
| 1531 | 1534 | { json: "YES", js: "YES", typ: i(0) }, |
| 1532 | 1535 | ], false), |
| 1536 | + "Unsafe": o([ | |
| 1537 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 1538 | + ], false), | |
| 1539 | + "Unsigned": o([ | |
| 1540 | + { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 1541 | + ], false), | |
| 1542 | + "Ushort": o([ | |
| 1543 | + { json: "ushort", js: "ushort", typ: i(0) }, | |
| 1544 | + ], false), | |
| 1533 | 1545 | "Using": o([ |
| 1534 | 1546 | { json: "using", js: "using", typ: i(0) }, |
| 1535 | 1547 | ], false), |
Mkotlin-jacksondefault / TopLevel.kt+82 −58
| @@ -1246,6 +1246,9 @@ data class Obj3 ( | ||
| 1246 | 1246 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1247 | 1247 | val list: ListClass, |
| 1248 | 1248 | |
| 1249 | + @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true) | |
| 1250 | + val localDate: LocalDate, | |
| 1251 | + | |
| 1249 | 1252 | @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true) |
| 1250 | 1253 | val locale: Locale, |
| 1251 | 1254 | |
| @@ -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 | |
| @@ -1527,6 +1527,11 @@ data class ListClass ( | ||
| 1527 | 1527 | val list: Long |
| 1528 | 1528 | ) |
| 1529 | 1529 | |
| 1530 | +data class LocalDate ( | |
| 1531 | + @get:JsonProperty("LocalDate", required=true)@field:JsonProperty("LocalDate", required=true) | |
| 1532 | + val localDate: Long | |
| 1533 | +) | |
| 1534 | + | |
| 1530 | 1535 | data class Locale ( |
| 1531 | 1536 | @get:JsonProperty("Locale", required=true)@field:JsonProperty("Locale", required=true) |
| 1532 | 1537 | val locale: 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 | |
| @@ -1694,6 +1697,12 @@ data class Obj4 ( | ||
| 1694 | 1697 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1695 | 1698 | val of: Of, |
| 1696 | 1699 | |
| 1700 | + @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true) | |
| 1701 | + val offsetDateTime: OffsetDateTimeClass, | |
| 1702 | + | |
| 1703 | + @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true) | |
| 1704 | + val offsetTime: OffsetTime, | |
| 1705 | + | |
| 1697 | 1706 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1698 | 1707 | val oneway: Oneway, |
| 1699 | 1708 | |
| @@ -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 |
| @@ -1929,6 +1934,16 @@ data class Of ( | ||
| 1929 | 1934 | val of: Long |
| 1930 | 1935 | ) |
| 1931 | 1936 | |
| 1937 | +data class OffsetDateTimeClass ( | |
| 1938 | + @get:JsonProperty("OffsetDateTime", required=true)@field:JsonProperty("OffsetDateTime", required=true) | |
| 1939 | + val offsetDateTime: Long | |
| 1940 | +) | |
| 1941 | + | |
| 1942 | +data class OffsetTime ( | |
| 1943 | + @get:JsonProperty("OffsetTime", required=true)@field:JsonProperty("OffsetTime", required=true) | |
| 1944 | + val offsetTime: Long | |
| 1945 | +) | |
| 1946 | + | |
| 1932 | 1947 | data class Oneway ( |
| 1933 | 1948 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 1934 | 1949 | val oneway: 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, |
| @@ -2184,6 +2184,15 @@ data class Obj5 ( | ||
| 2184 | 2184 | @get:JsonProperty("true", required=true)@field:JsonProperty("true", required=true) |
| 2185 | 2185 | val purpleTrue: TrueClass, |
| 2186 | 2186 | |
| 2187 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2188 | + val sealed: Sealed, | |
| 2189 | + | |
| 2190 | + @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2191 | + val sel: Sel, | |
| 2192 | + | |
| 2193 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2194 | + val select: Select, | |
| 2195 | + | |
| 2187 | 2196 | @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true) |
| 2188 | 2197 | val self: Self, |
| 2189 | 2198 | |
| @@ -2328,17 +2337,8 @@ data class Obj5 ( | ||
| 2328 | 2337 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2329 | 2338 | val unowned: Unowned, |
| 2330 | 2339 | |
| 2331 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2332 | - val unsafe: Unsafe, | |
| 2333 | - | |
| 2334 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2335 | - val unsigned: Unsigned, | |
| 2336 | - | |
| 2337 | 2340 | @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true) |
| 2338 | - val useSerializers: UseSerializers, | |
| 2339 | - | |
| 2340 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2341 | - val ushort: Ushort | |
| 2341 | + val useSerializers: UseSerializers | |
| 2342 | 2342 | ) |
| 2343 | 2343 | |
| 2344 | 2344 | data class KSerializer ( |
| @@ -2401,6 +2401,21 @@ data class TrueClass ( | ||
| 2401 | 2401 | val trueTrue: Long |
| 2402 | 2402 | ) |
| 2403 | 2403 | |
| 2404 | +data class Sealed ( | |
| 2405 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2406 | + val sealed: Long | |
| 2407 | +) | |
| 2408 | + | |
| 2409 | +data class Sel ( | |
| 2410 | + @get:JsonProperty("SEL", required=true)@field:JsonProperty("SEL", required=true) | |
| 2411 | + val sel: Long | |
| 2412 | +) | |
| 2413 | + | |
| 2414 | +data class Select ( | |
| 2415 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2416 | + val select: Long | |
| 2417 | +) | |
| 2418 | + | |
| 2404 | 2419 | data class Self ( |
| 2405 | 2420 | @get:JsonProperty("Self", required=true)@field:JsonProperty("Self", required=true) |
| 2406 | 2421 | val self: Long |
| @@ -2641,26 +2656,11 @@ data class Unowned ( | ||
| 2641 | 2656 | val unowned: Long |
| 2642 | 2657 | ) |
| 2643 | 2658 | |
| 2644 | -data class Unsafe ( | |
| 2645 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2646 | - val unsafe: Long | |
| 2647 | -) | |
| 2648 | - | |
| 2649 | -data class Unsigned ( | |
| 2650 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2651 | - val unsigned: Long | |
| 2652 | -) | |
| 2653 | - | |
| 2654 | 2659 | data class UseSerializers ( |
| 2655 | 2660 | @get:JsonProperty("UseSerializers", required=true)@field:JsonProperty("UseSerializers", required=true) |
| 2656 | 2661 | val useSerializers: Long |
| 2657 | 2662 | ) |
| 2658 | 2663 | |
| 2659 | -data class Ushort ( | |
| 2660 | - @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2661 | - val ushort: Long | |
| 2662 | -) | |
| 2663 | - | |
| 2664 | 2664 | data class Obj6 ( |
| 2665 | 2665 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2666 | 2666 | val dummy: Long, |
| @@ -2671,6 +2671,15 @@ data class Obj6 ( | ||
| 2671 | 2671 | @get:JsonProperty("while", required=true)@field:JsonProperty("while", required=true) |
| 2672 | 2672 | val obj6While: While, |
| 2673 | 2673 | |
| 2674 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2675 | + val unsafe: Unsafe, | |
| 2676 | + | |
| 2677 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2678 | + val unsigned: Unsigned, | |
| 2679 | + | |
| 2680 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2681 | + val ushort: Ushort, | |
| 2682 | + | |
| 2674 | 2683 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2675 | 2684 | val using: Using, |
| 2676 | 2685 | |
| @@ -2730,6 +2739,21 @@ data class While ( | ||
| 2730 | 2739 | val whileWhile: Long |
| 2731 | 2740 | ) |
| 2732 | 2741 | |
| 2742 | +data class Unsafe ( | |
| 2743 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2744 | + val unsafe: Long | |
| 2745 | +) | |
| 2746 | + | |
| 2747 | +data class Unsigned ( | |
| 2748 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2749 | + val unsigned: Long | |
| 2750 | +) | |
| 2751 | + | |
| 2752 | +data class Ushort ( | |
| 2753 | + @get:JsonProperty(required=true)@field:JsonProperty(required=true) | |
| 2754 | + val ushort: Long | |
| 2755 | +) | |
| 2756 | + | |
| 2733 | 2757 | data class Using ( |
| 2734 | 2758 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 2735 | 2759 | val using: Long |
Mkotlindefault / TopLevel.kt+67 −43
| @@ -947,6 +947,9 @@ data class Obj3 ( | ||
| 947 | 947 | val let: Let, |
| 948 | 948 | val list: ListClass, |
| 949 | 949 | |
| 950 | + @Json(name = "LocalDate") | |
| 951 | + val localDate: LocalDate, | |
| 952 | + | |
| 950 | 953 | @Json(name = "Locale") |
| 951 | 954 | val locale: Locale, |
| 952 | 955 | |
| @@ -972,8 +975,6 @@ data class Obj3 ( | ||
| 972 | 975 | @Json(name = "NO") |
| 973 | 976 | val no: No, |
| 974 | 977 | |
| 975 | - val noexcept: Noexcept, | |
| 976 | - | |
| 977 | 978 | @Json(name = "if") |
| 978 | 979 | val obj3If: If, |
| 979 | 980 | |
| @@ -1182,6 +1183,11 @@ data class ListClass ( | ||
| 1182 | 1183 | val list: Long |
| 1183 | 1184 | ) |
| 1184 | 1185 | |
| 1186 | +data class LocalDate ( | |
| 1187 | + @Json(name = "LocalDate") | |
| 1188 | + val localDate: Long | |
| 1189 | +) | |
| 1190 | + | |
| 1185 | 1191 | data class Locale ( |
| 1186 | 1192 | @Json(name = "Locale") |
| 1187 | 1193 | val locale: Long |
| @@ -1246,10 +1252,6 @@ data class No ( | ||
| 1246 | 1252 | val no: Long |
| 1247 | 1253 | ) |
| 1248 | 1254 | |
| 1249 | -data class Noexcept ( | |
| 1250 | - val noexcept: Long | |
| 1251 | -) | |
| 1252 | - | |
| 1253 | 1255 | data class If ( |
| 1254 | 1256 | @Json(name = "if") |
| 1255 | 1257 | val ifIf: Long |
| @@ -1273,6 +1275,7 @@ data class Is ( | ||
| 1273 | 1275 | data class Obj4 ( |
| 1274 | 1276 | val dummy: Long, |
| 1275 | 1277 | val noSuchMethod: NoSuchMethod, |
| 1278 | + val noexcept: Noexcept, | |
| 1276 | 1279 | val nonatomic: Nonatomic, |
| 1277 | 1280 | |
| 1278 | 1281 | @Json(name = "None") |
| @@ -1322,6 +1325,13 @@ data class Obj4 ( | ||
| 1322 | 1325 | val objectMapper: ObjectMapper, |
| 1323 | 1326 | |
| 1324 | 1327 | val of: Of, |
| 1328 | + | |
| 1329 | + @Json(name = "OffsetDateTime") | |
| 1330 | + val offsetDateTime: OffsetDateTimeClass, | |
| 1331 | + | |
| 1332 | + @Json(name = "OffsetTime") | |
| 1333 | + val offsetTime: OffsetTime, | |
| 1334 | + | |
| 1325 | 1335 | val oneway: Oneway, |
| 1326 | 1336 | val open: Open, |
| 1327 | 1337 | val operator: Operator, |
| @@ -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 | ) |
| @@ -1477,6 +1485,16 @@ data class Of ( | ||
| 1477 | 1485 | val of: Long |
| 1478 | 1486 | ) |
| 1479 | 1487 | |
| 1488 | +data class OffsetDateTimeClass ( | |
| 1489 | + @Json(name = "OffsetDateTime") | |
| 1490 | + val offsetDateTime: Long | |
| 1491 | +) | |
| 1492 | + | |
| 1493 | +data class OffsetTime ( | |
| 1494 | + @Json(name = "OffsetTime") | |
| 1495 | + val offsetTime: Long | |
| 1496 | +) | |
| 1497 | + | |
| 1480 | 1498 | data class Oneway ( |
| 1481 | 1499 | val oneway: Long |
| 1482 | 1500 | ) |
| @@ -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 | |
| @@ -1693,6 +1698,13 @@ data class Obj5 ( | ||
| 1693 | 1698 | @Json(name = "true") |
| 1694 | 1699 | val purpleTrue: TrueClass, |
| 1695 | 1700 | |
| 1701 | + val sealed: Sealed, | |
| 1702 | + | |
| 1703 | + @Json(name = "SEL") | |
| 1704 | + val sel: Sel, | |
| 1705 | + | |
| 1706 | + val select: Select, | |
| 1707 | + | |
| 1696 | 1708 | @Json(name = "Self") |
| 1697 | 1709 | val self: Self, |
| 1698 | 1710 | |
| @@ -1787,13 +1799,9 @@ data class Obj5 ( | ||
| 1787 | 1799 | val undefined: Undefined, |
| 1788 | 1800 | val union: Union, |
| 1789 | 1801 | val unowned: Unowned, |
| 1790 | - val unsafe: Unsafe, | |
| 1791 | - val unsigned: Unsigned, | |
| 1792 | 1802 | |
| 1793 | 1803 | @Json(name = "UseSerializers") |
| 1794 | - val useSerializers: UseSerializers, | |
| 1795 | - | |
| 1796 | - val ushort: Ushort | |
| 1804 | + val useSerializers: UseSerializers | |
| 1797 | 1805 | ) |
| 1798 | 1806 | |
| 1799 | 1807 | data class KSerializer ( |
| @@ -1854,6 +1862,19 @@ data class TrueClass ( | ||
| 1854 | 1862 | val trueTrue: Long |
| 1855 | 1863 | ) |
| 1856 | 1864 | |
| 1865 | +data class Sealed ( | |
| 1866 | + val sealed: Long | |
| 1867 | +) | |
| 1868 | + | |
| 1869 | +data class Sel ( | |
| 1870 | + @Json(name = "SEL") | |
| 1871 | + val sel: Long | |
| 1872 | +) | |
| 1873 | + | |
| 1874 | +data class Select ( | |
| 1875 | + val select: Long | |
| 1876 | +) | |
| 1877 | + | |
| 1857 | 1878 | data class Self ( |
| 1858 | 1879 | @Json(name = "Self") |
| 1859 | 1880 | val self: Long |
| @@ -2065,23 +2086,11 @@ data class Unowned ( | ||
| 2065 | 2086 | val unowned: Long |
| 2066 | 2087 | ) |
| 2067 | 2088 | |
| 2068 | -data class Unsafe ( | |
| 2069 | - val unsafe: Long | |
| 2070 | -) | |
| 2071 | - | |
| 2072 | -data class Unsigned ( | |
| 2073 | - val unsigned: Long | |
| 2074 | -) | |
| 2075 | - | |
| 2076 | 2089 | data class UseSerializers ( |
| 2077 | 2090 | @Json(name = "UseSerializers") |
| 2078 | 2091 | val useSerializers: Long |
| 2079 | 2092 | ) |
| 2080 | 2093 | |
| 2081 | -data class Ushort ( | |
| 2082 | - val ushort: Long | |
| 2083 | -) | |
| 2084 | - | |
| 2085 | 2094 | data class Obj6 ( |
| 2086 | 2095 | val dummy: Long, |
| 2087 | 2096 | |
| @@ -2091,6 +2100,9 @@ data class Obj6 ( | ||
| 2091 | 2100 | @Json(name = "while") |
| 2092 | 2101 | val obj6While: While, |
| 2093 | 2102 | |
| 2103 | + val unsafe: Unsafe, | |
| 2104 | + val unsigned: Unsigned, | |
| 2105 | + val ushort: Ushort, | |
| 2094 | 2106 | val using: Using, |
| 2095 | 2107 | |
| 2096 | 2108 | @Json(name = "Utf8JsonReader") |
| @@ -2134,6 +2146,18 @@ data class While ( | ||
| 2134 | 2146 | val whileWhile: Long |
| 2135 | 2147 | ) |
| 2136 | 2148 | |
| 2149 | +data class Unsafe ( | |
| 2150 | + val unsafe: Long | |
| 2151 | +) | |
| 2152 | + | |
| 2153 | +data class Unsigned ( | |
| 2154 | + val unsigned: Long | |
| 2155 | +) | |
| 2156 | + | |
| 2157 | +data class Ushort ( | |
| 2158 | + val ushort: Long | |
| 2159 | +) | |
| 2160 | + | |
| 2137 | 2161 | data class Using ( |
| 2138 | 2162 | val using: Long |
| 2139 | 2163 | ) |
Mkotlinxdefault / TopLevel.kt+77 −50
| @@ -1060,6 +1060,9 @@ data class Obj3 ( | ||
| 1060 | 1060 | val let: Let, |
| 1061 | 1061 | val list: ListClass, |
| 1062 | 1062 | |
| 1063 | + @SerialName("LocalDate") | |
| 1064 | + val localDate: LocalDate, | |
| 1065 | + | |
| 1063 | 1066 | @SerialName("Locale") |
| 1064 | 1067 | val locale: Locale, |
| 1065 | 1068 | |
| @@ -1085,8 +1088,6 @@ data class Obj3 ( | ||
| 1085 | 1088 | @SerialName("NO") |
| 1086 | 1089 | val no: No, |
| 1087 | 1090 | |
| 1088 | - val noexcept: Noexcept, | |
| 1089 | - | |
| 1090 | 1091 | @SerialName("if") |
| 1091 | 1092 | val obj3If: If, |
| 1092 | 1093 | |
| @@ -1339,6 +1340,12 @@ data class ListClass ( | ||
| 1339 | 1340 | val list: Long |
| 1340 | 1341 | ) |
| 1341 | 1342 | |
| 1343 | +@Serializable | |
| 1344 | +data class LocalDate ( | |
| 1345 | + @SerialName("LocalDate") | |
| 1346 | + val localDate: Long | |
| 1347 | +) | |
| 1348 | + | |
| 1342 | 1349 | @Serializable |
| 1343 | 1350 | data class Locale ( |
| 1344 | 1351 | @SerialName("Locale") |
| @@ -1418,11 +1425,6 @@ data class No ( | ||
| 1418 | 1425 | val no: Long |
| 1419 | 1426 | ) |
| 1420 | 1427 | |
| 1421 | -@Serializable | |
| 1422 | -data class Noexcept ( | |
| 1423 | - val noexcept: Long | |
| 1424 | -) | |
| 1425 | - | |
| 1426 | 1428 | @Serializable |
| 1427 | 1429 | data class If ( |
| 1428 | 1430 | @SerialName("if") |
| @@ -1451,6 +1453,7 @@ data class Is ( | ||
| 1451 | 1453 | data class Obj4 ( |
| 1452 | 1454 | val dummy: Long, |
| 1453 | 1455 | val noSuchMethod: NoSuchMethod, |
| 1456 | + val noexcept: Noexcept, | |
| 1454 | 1457 | val nonatomic: Nonatomic, |
| 1455 | 1458 | |
| 1456 | 1459 | @SerialName("None") |
| @@ -1500,6 +1503,13 @@ data class Obj4 ( | ||
| 1500 | 1503 | val objectMapper: ObjectMapper, |
| 1501 | 1504 | |
| 1502 | 1505 | val of: Of, |
| 1506 | + | |
| 1507 | + @SerialName("OffsetDateTime") | |
| 1508 | + val offsetDateTime: OffsetDateTimeClass, | |
| 1509 | + | |
| 1510 | + @SerialName("OffsetTime") | |
| 1511 | + val offsetTime: OffsetTime, | |
| 1512 | + | |
| 1503 | 1513 | val oneway: Oneway, |
| 1504 | 1514 | val open: Open, |
| 1505 | 1515 | val operator: Operator, |
| @@ -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 |
| @@ -1676,6 +1685,18 @@ data class Of ( | ||
| 1676 | 1685 | val of: Long |
| 1677 | 1686 | ) |
| 1678 | 1687 | |
| 1688 | +@Serializable | |
| 1689 | +data class OffsetDateTimeClass ( | |
| 1690 | + @SerialName("OffsetDateTime") | |
| 1691 | + val offsetDateTime: Long | |
| 1692 | +) | |
| 1693 | + | |
| 1694 | +@Serializable | |
| 1695 | +data class OffsetTime ( | |
| 1696 | + @SerialName("OffsetTime") | |
| 1697 | + val offsetTime: Long | |
| 1698 | +) | |
| 1699 | + | |
| 1679 | 1700 | @Serializable |
| 1680 | 1701 | data class Oneway ( |
| 1681 | 1702 | val oneway: 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, |
| @@ -1936,6 +1941,13 @@ data class Obj5 ( | ||
| 1936 | 1941 | @SerialName("true") |
| 1937 | 1942 | val purpleTrue: TrueClass, |
| 1938 | 1943 | |
| 1944 | + val sealed: Sealed, | |
| 1945 | + | |
| 1946 | + @SerialName("SEL") | |
| 1947 | + val sel: Sel, | |
| 1948 | + | |
| 1949 | + val select: Select, | |
| 1950 | + | |
| 1939 | 1951 | @SerialName("Self") |
| 1940 | 1952 | val self: Self, |
| 1941 | 1953 | |
| @@ -2030,13 +2042,9 @@ data class Obj5 ( | ||
| 2030 | 2042 | val undefined: Undefined, |
| 2031 | 2043 | val union: Union, |
| 2032 | 2044 | val unowned: Unowned, |
| 2033 | - val unsafe: Unsafe, | |
| 2034 | - val unsigned: Unsigned, | |
| 2035 | 2045 | |
| 2036 | 2046 | @SerialName("UseSerializers") |
| 2037 | - val useSerializers: UseSerializersClass, | |
| 2038 | - | |
| 2039 | - val ushort: Ushort | |
| 2047 | + val useSerializers: UseSerializersClass | |
| 2040 | 2048 | ) |
| 2041 | 2049 | |
| 2042 | 2050 | @Serializable |
| @@ -2109,6 +2117,22 @@ data class TrueClass ( | ||
| 2109 | 2117 | val trueTrue: Long |
| 2110 | 2118 | ) |
| 2111 | 2119 | |
| 2120 | +@Serializable | |
| 2121 | +data class Sealed ( | |
| 2122 | + val sealed: Long | |
| 2123 | +) | |
| 2124 | + | |
| 2125 | +@Serializable | |
| 2126 | +data class Sel ( | |
| 2127 | + @SerialName("SEL") | |
| 2128 | + val sel: Long | |
| 2129 | +) | |
| 2130 | + | |
| 2131 | +@Serializable | |
| 2132 | +data class Select ( | |
| 2133 | + val select: Long | |
| 2134 | +) | |
| 2135 | + | |
| 2112 | 2136 | @Serializable |
| 2113 | 2137 | data class Self ( |
| 2114 | 2138 | @SerialName("Self") |
| @@ -2368,27 +2392,12 @@ data class Unowned ( | ||
| 2368 | 2392 | val unowned: Long |
| 2369 | 2393 | ) |
| 2370 | 2394 | |
| 2371 | -@Serializable | |
| 2372 | -data class Unsafe ( | |
| 2373 | - val unsafe: Long | |
| 2374 | -) | |
| 2375 | - | |
| 2376 | -@Serializable | |
| 2377 | -data class Unsigned ( | |
| 2378 | - val unsigned: Long | |
| 2379 | -) | |
| 2380 | - | |
| 2381 | 2395 | @Serializable |
| 2382 | 2396 | data class UseSerializersClass ( |
| 2383 | 2397 | @SerialName("UseSerializers") |
| 2384 | 2398 | val useSerializers: Long |
| 2385 | 2399 | ) |
| 2386 | 2400 | |
| 2387 | -@Serializable | |
| 2388 | -data class Ushort ( | |
| 2389 | - val ushort: Long | |
| 2390 | -) | |
| 2391 | - | |
| 2392 | 2401 | @Serializable |
| 2393 | 2402 | data class Obj6 ( |
| 2394 | 2403 | val dummy: Long, |
| @@ -2399,6 +2408,9 @@ data class Obj6 ( | ||
| 2399 | 2408 | @SerialName("while") |
| 2400 | 2409 | val obj6While: While, |
| 2401 | 2410 | |
| 2411 | + val unsafe: Unsafe, | |
| 2412 | + val unsigned: Unsigned, | |
| 2413 | + val ushort: Ushort, | |
| 2402 | 2414 | val using: Using, |
| 2403 | 2415 | |
| 2404 | 2416 | @SerialName("Utf8JsonReader") |
| @@ -2444,6 +2456,21 @@ data class While ( | ||
| 2444 | 2456 | val whileWhile: Long |
| 2445 | 2457 | ) |
| 2446 | 2458 | |
| 2459 | +@Serializable | |
| 2460 | +data class Unsafe ( | |
| 2461 | + val unsafe: Long | |
| 2462 | +) | |
| 2463 | + | |
| 2464 | +@Serializable | |
| 2465 | +data class Unsigned ( | |
| 2466 | + val unsigned: Long | |
| 2467 | +) | |
| 2468 | + | |
| 2469 | +@Serializable | |
| 2470 | +data class Ushort ( | |
| 2471 | + val ushort: Long | |
| 2472 | +) | |
| 2473 | + | |
| 2447 | 2474 | @Serializable |
| 2448 | 2475 | data class Using ( |
| 2449 | 2476 | val using: Long |
Mobjective-cdefault / QTTopLevel.h+60 −42
| @@ -181,6 +181,7 @@ | ||
| 181 | 181 | @class QTLeft; |
| 182 | 182 | @class QTLet; |
| 183 | 183 | @class QTList; |
| 184 | +@class QTLocalDate; | |
| 184 | 185 | @class QTLocale; |
| 185 | 186 | @class QTLock; |
| 186 | 187 | @class QTMap; |
| @@ -193,7 +194,6 @@ | ||
| 193 | 194 | @class QTNative; |
| 194 | 195 | @class QTNewtonsoft; |
| 195 | 196 | @class QTNo; |
| 196 | -@class QTNoexcept; | |
| 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; |
| @@ -226,6 +227,8 @@ | ||
| 226 | 227 | @class QTObject; |
| 227 | 228 | @class QTObjectMapper; |
| 228 | 229 | @class QTOf; |
| 230 | +@class QTOffsetDateTime; | |
| 231 | +@class QTOffsetTime; | |
| 229 | 232 | @class QTOneway; |
| 230 | 233 | @class QTOpen; |
| 231 | 234 | @class QTOperator; |
| @@ -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 QTKSerializer; |
| 272 | 272 | @class QTSelfClass; |
| @@ -281,8 +281,10 @@ | ||
| 281 | 281 | @class QTTypedef; |
| 282 | 282 | @class QTTypeof; |
| 283 | 283 | @class QTUnion; |
| 284 | -@class QTUnsigned; | |
| 285 | 284 | @class QTPrimitiveKind; |
| 285 | +@class QTSealed; | |
| 286 | +@class QTSel; | |
| 287 | +@class QTSelect; | |
| 286 | 288 | @class QTSelf; |
| 287 | 289 | @class QTSendable; |
| 288 | 290 | @class QTSerialDescriptor; |
| @@ -329,13 +331,14 @@ | ||
| 329 | 331 | @class QTUnchecked; |
| 330 | 332 | @class QTUndefined; |
| 331 | 333 | @class QTUnowned; |
| 332 | -@class QTUnsafe; | |
| 333 | 334 | @class QTUseSerializers; |
| 334 | -@class QTUshort; | |
| 335 | 335 | @class QTObj6; |
| 336 | +@class QTUnsigned; | |
| 336 | 337 | @class QTVoid; |
| 337 | 338 | @class QTVolatile; |
| 338 | 339 | @class QTWhile; |
| 340 | +@class QTUnsafe; | |
| 341 | +@class QTUshort; | |
| 339 | 342 | @class QTUsing; |
| 340 | 343 | @class QTUtf8JSONReader; |
| 341 | 344 | @class QTUtf8JSONWriter; |
| @@ -1080,6 +1083,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1080 | 1083 | @property (nonatomic, strong) QTLeft *left; |
| 1081 | 1084 | @property (nonatomic, strong) QTLet *let; |
| 1082 | 1085 | @property (nonatomic, strong) QTList *list; |
| 1086 | +@property (nonatomic, strong) QTLocalDate *localDate; | |
| 1083 | 1087 | @property (nonatomic, strong) QTLocale *locale; |
| 1084 | 1088 | @property (nonatomic, strong) QTLock *lock; |
| 1085 | 1089 | @property (nonatomic, strong) QTMap *map; |
| @@ -1092,7 +1096,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1092 | 1096 | @property (nonatomic, strong) QTNative *native; |
| 1093 | 1097 | @property (nonatomic, strong) QTNewtonsoft *newtonsoft; |
| 1094 | 1098 | @property (nonatomic, strong) QTNo *no; |
| 1095 | -@property (nonatomic, strong) QTNoexcept *noexcept; | |
| 1096 | 1099 | @property (nonatomic, strong) QTIf *obj3If; |
| 1097 | 1100 | @property (nonatomic, strong) QTInline *obj3Inline; |
| 1098 | 1101 | @property (nonatomic, strong) QTInt *obj3Int; |
| @@ -1275,6 +1278,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1275 | 1278 | @property (nonatomic, assign) NSInteger list; |
| 1276 | 1279 | @end |
| 1277 | 1280 | |
| 1281 | +@interface QTLocalDate : NSObject | |
| 1282 | +@property (nonatomic, assign) NSInteger localDate; | |
| 1283 | +@end | |
| 1284 | + | |
| 1278 | 1285 | @interface QTLocale : NSObject |
| 1279 | 1286 | @property (nonatomic, assign) NSInteger locale; |
| 1280 | 1287 | @end |
| @@ -1323,10 +1330,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1323 | 1330 | @property (nonatomic, assign) NSInteger no; |
| 1324 | 1331 | @end |
| 1325 | 1332 | |
| 1326 | -@interface QTNoexcept : NSObject | |
| 1327 | -@property (nonatomic, assign) NSInteger noexcept; | |
| 1328 | -@end | |
| 1329 | - | |
| 1330 | 1333 | @interface QTIf : NSObject |
| 1331 | 1334 | @property (nonatomic, assign) NSInteger ifIf; |
| 1332 | 1335 | @end |
| @@ -1362,6 +1365,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1362 | 1365 | @interface QTObj4 : NSObject |
| 1363 | 1366 | @property (nonatomic, assign) NSInteger dummy; |
| 1364 | 1367 | @property (nonatomic, strong) QTNoSuchMethod *noSuchMethod; |
| 1368 | +@property (nonatomic, strong) QTNoexcept *noexcept; | |
| 1365 | 1369 | @property (nonatomic, strong) QTNone *none; |
| 1366 | 1370 | @property (nonatomic, strong) QTNonlocal *nonlocal; |
| 1367 | 1371 | @property (nonatomic, strong) QTNonmutating *nonmutating; |
| @@ -1384,6 +1388,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1384 | 1388 | @property (nonatomic, strong) QTObject *object; |
| 1385 | 1389 | @property (nonatomic, strong) QTObjectMapper *objectMapper; |
| 1386 | 1390 | @property (nonatomic, strong) QTOf *of; |
| 1391 | +@property (nonatomic, strong) QTOffsetDateTime *offsetDateTime; | |
| 1392 | +@property (nonatomic, strong) QTOffsetTime *offsetTime; | |
| 1387 | 1393 | @property (nonatomic, strong) QTOneway *oneway; |
| 1388 | 1394 | @property (nonatomic, strong) QTOpen *open; |
| 1389 | 1395 | @property (nonatomic, strong) QTOperator *operator; |
| @@ -1422,15 +1428,16 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1422 | 1428 | @property (nonatomic, strong) QTRuntimeType *runtimeType; |
| 1423 | 1429 | @property (nonatomic, strong) QTS *s; |
| 1424 | 1430 | @property (nonatomic, strong) QTSbyte *sbyte; |
| 1425 | -@property (nonatomic, strong) QTSealed *sealed; | |
| 1426 | -@property (nonatomic, strong) QTSel *sel; | |
| 1427 | -@property (nonatomic, strong) QTSelect *select; | |
| 1428 | 1431 | @end |
| 1429 | 1432 | |
| 1430 | 1433 | @interface QTNoSuchMethod : NSObject |
| 1431 | 1434 | @property (nonatomic, assign) NSInteger noSuchMethod; |
| 1432 | 1435 | @end |
| 1433 | 1436 | |
| 1437 | +@interface QTNoexcept : NSObject | |
| 1438 | +@property (nonatomic, assign) NSInteger noexcept; | |
| 1439 | +@end | |
| 1440 | + | |
| 1434 | 1441 | @interface QTNone : NSObject |
| 1435 | 1442 | @property (nonatomic, assign) NSInteger none; |
| 1436 | 1443 | @end |
| @@ -1519,6 +1526,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1519 | 1526 | @property (nonatomic, assign) NSInteger of; |
| 1520 | 1527 | @end |
| 1521 | 1528 | |
| 1529 | +@interface QTOffsetDateTime : NSObject | |
| 1530 | +@property (nonatomic, assign) NSInteger offsetDateTime; | |
| 1531 | +@end | |
| 1532 | + | |
| 1533 | +@interface QTOffsetTime : NSObject | |
| 1534 | +@property (nonatomic, assign) NSInteger offsetTime; | |
| 1535 | +@end | |
| 1536 | + | |
| 1522 | 1537 | @interface QTOneway : NSObject |
| 1523 | 1538 | @property (nonatomic, assign) NSInteger oneway; |
| 1524 | 1539 | @end |
| @@ -1671,18 +1686,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1671 | 1686 | @property (nonatomic, assign) NSInteger sbyte; |
| 1672 | 1687 | @end |
| 1673 | 1688 | |
| 1674 | -@interface QTSealed : NSObject | |
| 1675 | -@property (nonatomic, assign) NSInteger sealed; | |
| 1676 | -@end | |
| 1677 | - | |
| 1678 | -@interface QTSel : NSObject | |
| 1679 | -@property (nonatomic, assign) NSInteger sel; | |
| 1680 | -@end | |
| 1681 | - | |
| 1682 | -@interface QTSelect : NSObject | |
| 1683 | -@property (nonatomic, assign) NSInteger select; | |
| 1684 | -@end | |
| 1685 | - | |
| 1686 | 1689 | @interface QTObj5 : NSObject |
| 1687 | 1690 | @property (nonatomic, assign) NSInteger dummy; |
| 1688 | 1691 | @property (nonatomic, strong) QTKSerializer *kSerializer; |
| @@ -1698,8 +1701,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1698 | 1701 | @property (nonatomic, strong) QTTypedef *obj5Typedef; |
| 1699 | 1702 | @property (nonatomic, strong) QTTypeof *obj5Typeof; |
| 1700 | 1703 | @property (nonatomic, strong) QTUnion *obj5Union; |
| 1701 | -@property (nonatomic, strong) QTUnsigned *obj5Unsigned; | |
| 1702 | 1704 | @property (nonatomic, strong) QTPrimitiveKind *primitiveKind; |
| 1705 | +@property (nonatomic, strong) QTSealed *sealed; | |
| 1706 | +@property (nonatomic, strong) QTSel *sel; | |
| 1707 | +@property (nonatomic, strong) QTSelect *select; | |
| 1703 | 1708 | @property (nonatomic, strong) QTSelf *self; |
| 1704 | 1709 | @property (nonatomic, strong) QTSendable *sendable; |
| 1705 | 1710 | @property (nonatomic, strong) QTSerialDescriptor *serialDescriptor; |
| @@ -1746,9 +1751,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1746 | 1751 | @property (nonatomic, strong) QTUnchecked *unchecked; |
| 1747 | 1752 | @property (nonatomic, strong) QTUndefined *undefined; |
| 1748 | 1753 | @property (nonatomic, strong) QTUnowned *unowned; |
| 1749 | -@property (nonatomic, strong) QTUnsafe *unsafe; | |
| 1750 | 1754 | @property (nonatomic, strong) QTUseSerializers *useSerializers; |
| 1751 | -@property (nonatomic, strong) QTUshort *ushort; | |
| 1752 | 1755 | @end |
| 1753 | 1756 | |
| 1754 | 1757 | @interface QTKSerializer : NSObject |
| @@ -1803,14 +1806,22 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1803 | 1806 | @property (nonatomic, assign) NSInteger unionUnion; |
| 1804 | 1807 | @end |
| 1805 | 1808 | |
| 1806 | -@interface QTUnsigned : NSObject | |
| 1807 | -@property (nonatomic, assign) NSInteger unsignedUnsigned; | |
| 1808 | -@end | |
| 1809 | - | |
| 1810 | 1809 | @interface QTPrimitiveKind : NSObject |
| 1811 | 1810 | @property (nonatomic, assign) NSInteger primitiveKind; |
| 1812 | 1811 | @end |
| 1813 | 1812 | |
| 1813 | +@interface QTSealed : NSObject | |
| 1814 | +@property (nonatomic, assign) NSInteger sealed; | |
| 1815 | +@end | |
| 1816 | + | |
| 1817 | +@interface QTSel : NSObject | |
| 1818 | +@property (nonatomic, assign) NSInteger sel; | |
| 1819 | +@end | |
| 1820 | + | |
| 1821 | +@interface QTSelect : NSObject | |
| 1822 | +@property (nonatomic, assign) NSInteger select; | |
| 1823 | +@end | |
| 1824 | + | |
| 1814 | 1825 | @interface QTSelf : NSObject |
| 1815 | 1826 | @property (nonatomic, assign) NSInteger self; |
| 1816 | 1827 | @end |
| @@ -1995,23 +2006,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1995 | 2006 | @property (nonatomic, assign) NSInteger unowned; |
| 1996 | 2007 | @end |
| 1997 | 2008 | |
| 1998 | -@interface QTUnsafe : NSObject | |
| 1999 | -@property (nonatomic, assign) NSInteger unsafe; | |
| 2000 | -@end | |
| 2001 | - | |
| 2002 | 2009 | @interface QTUseSerializers : NSObject |
| 2003 | 2010 | @property (nonatomic, assign) NSInteger useSerializers; |
| 2004 | 2011 | @end |
| 2005 | 2012 | |
| 2006 | -@interface QTUshort : NSObject | |
| 2007 | -@property (nonatomic, assign) NSInteger ushort; | |
| 2008 | -@end | |
| 2009 | - | |
| 2010 | 2013 | @interface QTObj6 : NSObject |
| 2011 | 2014 | @property (nonatomic, assign) NSInteger dummy; |
| 2015 | +@property (nonatomic, strong) QTUnsigned *obj6Unsigned; | |
| 2012 | 2016 | @property (nonatomic, strong) QTVoid *obj6Void; |
| 2013 | 2017 | @property (nonatomic, strong) QTVolatile *obj6Volatile; |
| 2014 | 2018 | @property (nonatomic, strong) QTWhile *obj6While; |
| 2019 | +@property (nonatomic, strong) QTUnsafe *unsafe; | |
| 2020 | +@property (nonatomic, strong) QTUshort *ushort; | |
| 2015 | 2021 | @property (nonatomic, strong) QTUsing *using; |
| 2016 | 2022 | @property (nonatomic, strong) QTUtf8JSONReader *utf8JSONReader; |
| 2017 | 2023 | @property (nonatomic, strong) QTUtf8JSONWriter *utf8JSONWriter; |
| @@ -2029,6 +2035,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 2029 | 2035 | @property (nonatomic, strong) QTYield *yield; |
| 2030 | 2036 | @end |
| 2031 | 2037 | |
| 2038 | +@interface QTUnsigned : NSObject | |
| 2039 | +@property (nonatomic, assign) NSInteger unsignedUnsigned; | |
| 2040 | +@end | |
| 2041 | + | |
| 2032 | 2042 | @interface QTVoid : NSObject |
| 2033 | 2043 | @property (nonatomic, assign) NSInteger voidVoid; |
| 2034 | 2044 | @end |
| @@ -2041,6 +2051,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 2041 | 2051 | @property (nonatomic, assign) NSInteger whileWhile; |
| 2042 | 2052 | @end |
| 2043 | 2053 | |
| 2054 | +@interface QTUnsafe : NSObject | |
| 2055 | +@property (nonatomic, assign) NSInteger unsafe; | |
| 2056 | +@end | |
| 2057 | + | |
| 2058 | +@interface QTUshort : NSObject | |
| 2059 | +@property (nonatomic, assign) NSInteger ushort; | |
| 2060 | +@end | |
| 2061 | + | |
| 2044 | 2062 | @interface QTUsing : NSObject |
| 2045 | 2063 | @property (nonatomic, assign) NSInteger using; |
| 2046 | 2064 | @end |
Mobjective-cdefault / QTTopLevel.m+551 −365
| @@ -883,6 +883,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 883 | 883 | - (NSDictionary *)JSONDictionary; |
| 884 | 884 | @end |
| 885 | 885 | |
| 886 | +@interface QTLocalDate (JSONConversion) | |
| 887 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 888 | +- (NSDictionary *)JSONDictionary; | |
| 889 | +@end | |
| 890 | + | |
| 886 | 891 | @interface QTLocale (JSONConversion) |
| 887 | 892 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 888 | 893 | - (NSDictionary *)JSONDictionary; |
| @@ -943,11 +948,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 943 | 948 | - (NSDictionary *)JSONDictionary; |
| 944 | 949 | @end |
| 945 | 950 | |
| 946 | -@interface QTNoexcept (JSONConversion) | |
| 947 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 948 | -- (NSDictionary *)JSONDictionary; | |
| 949 | -@end | |
| 950 | - | |
| 951 | 951 | @interface QTIf (JSONConversion) |
| 952 | 952 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 953 | 953 | - (NSDictionary *)JSONDictionary; |
| @@ -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; |
| @@ -1108,6 +1113,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1108 | 1113 | - (NSDictionary *)JSONDictionary; |
| 1109 | 1114 | @end |
| 1110 | 1115 | |
| 1116 | +@interface QTOffsetDateTime (JSONConversion) | |
| 1117 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1118 | +- (NSDictionary *)JSONDictionary; | |
| 1119 | +@end | |
| 1120 | + | |
| 1121 | +@interface QTOffsetTime (JSONConversion) | |
| 1122 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1123 | +- (NSDictionary *)JSONDictionary; | |
| 1124 | +@end | |
| 1125 | + | |
| 1111 | 1126 | @interface QTOneway (JSONConversion) |
| 1112 | 1127 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1113 | 1128 | - (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,12 +1383,22 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1383 | 1383 | - (NSDictionary *)JSONDictionary; |
| 1384 | 1384 | @end |
| 1385 | 1385 | |
| 1386 | -@interface QTUnsigned (JSONConversion) | |
| 1386 | +@interface QTPrimitiveKind (JSONConversion) | |
| 1387 | 1387 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1388 | 1388 | - (NSDictionary *)JSONDictionary; |
| 1389 | 1389 | @end |
| 1390 | 1390 | |
| 1391 | -@interface QTPrimitiveKind (JSONConversion) | |
| 1391 | +@interface QTSealed (JSONConversion) | |
| 1392 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1393 | +- (NSDictionary *)JSONDictionary; | |
| 1394 | +@end | |
| 1395 | + | |
| 1396 | +@interface QTSel (JSONConversion) | |
| 1397 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1398 | +- (NSDictionary *)JSONDictionary; | |
| 1399 | +@end | |
| 1400 | + | |
| 1401 | +@interface QTSelect (JSONConversion) | |
| 1392 | 1402 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1393 | 1403 | - (NSDictionary *)JSONDictionary; |
| 1394 | 1404 | @end |
| @@ -1623,22 +1633,17 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1623 | 1633 | - (NSDictionary *)JSONDictionary; |
| 1624 | 1634 | @end |
| 1625 | 1635 | |
| 1626 | -@interface QTUnsafe (JSONConversion) | |
| 1627 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1628 | -- (NSDictionary *)JSONDictionary; | |
| 1629 | -@end | |
| 1630 | - | |
| 1631 | 1636 | @interface QTUseSerializers (JSONConversion) |
| 1632 | 1637 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1633 | 1638 | - (NSDictionary *)JSONDictionary; |
| 1634 | 1639 | @end |
| 1635 | 1640 | |
| 1636 | -@interface QTUshort (JSONConversion) | |
| 1641 | +@interface QTObj6 (JSONConversion) | |
| 1637 | 1642 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1638 | 1643 | - (NSDictionary *)JSONDictionary; |
| 1639 | 1644 | @end |
| 1640 | 1645 | |
| 1641 | -@interface QTObj6 (JSONConversion) | |
| 1646 | +@interface QTUnsigned (JSONConversion) | |
| 1642 | 1647 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1643 | 1648 | - (NSDictionary *)JSONDictionary; |
| 1644 | 1649 | @end |
| @@ -1658,6 +1663,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 1658 | 1663 | - (NSDictionary *)JSONDictionary; |
| 1659 | 1664 | @end |
| 1660 | 1665 | |
| 1666 | +@interface QTUnsafe (JSONConversion) | |
| 1667 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1668 | +- (NSDictionary *)JSONDictionary; | |
| 1669 | +@end | |
| 1670 | + | |
| 1671 | +@interface QTUshort (JSONConversion) | |
| 1672 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 1673 | +- (NSDictionary *)JSONDictionary; | |
| 1674 | +@end | |
| 1675 | + | |
| 1661 | 1676 | @interface QTUsing (JSONConversion) |
| 1662 | 1677 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 1663 | 1678 | - (NSDictionary *)JSONDictionary; |
| @@ -8664,6 +8679,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8664 | 8679 | @"left": @"left", |
| 8665 | 8680 | @"let": @"let", |
| 8666 | 8681 | @"list": @"list", |
| 8682 | + @"LocalDate": @"localDate", | |
| 8667 | 8683 | @"Locale": @"locale", |
| 8668 | 8684 | @"lock": @"lock", |
| 8669 | 8685 | @"map": @"map", |
| @@ -8676,7 +8692,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8676 | 8692 | @"native": @"native", |
| 8677 | 8693 | @"newtonsoft": @"newtonsoft", |
| 8678 | 8694 | @"NO": @"no", |
| 8679 | - @"noexcept": @"noexcept", | |
| 8680 | 8695 | @"if": @"obj3If", |
| 8681 | 8696 | @"inline": @"obj3Inline", |
| 8682 | 8697 | @"int": @"obj3Int", |
| @@ -8741,6 +8756,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8741 | 8756 | if (![dict[@"left"] isKindOfClass:NSDictionary.class]) return nil; |
| 8742 | 8757 | if (![dict[@"let"] isKindOfClass:NSDictionary.class]) return nil; |
| 8743 | 8758 | if (![dict[@"list"] isKindOfClass:NSDictionary.class]) return nil; |
| 8759 | + if (![dict[@"LocalDate"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8744 | 8760 | if (![dict[@"Locale"] isKindOfClass:NSDictionary.class]) return nil; |
| 8745 | 8761 | if (![dict[@"lock"] isKindOfClass:NSDictionary.class]) return nil; |
| 8746 | 8762 | if (![dict[@"map"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -8753,7 +8769,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8753 | 8769 | if (![dict[@"native"] isKindOfClass:NSDictionary.class]) return nil; |
| 8754 | 8770 | if (![dict[@"newtonsoft"] isKindOfClass:NSDictionary.class]) return nil; |
| 8755 | 8771 | if (![dict[@"NO"] isKindOfClass:NSDictionary.class]) return nil; |
| 8756 | - if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil; | |
| 8757 | 8772 | if (![dict[@"if"] isKindOfClass:NSDictionary.class]) return nil; |
| 8758 | 8773 | if (![dict[@"inline"] isKindOfClass:NSDictionary.class]) return nil; |
| 8759 | 8774 | if (![dict[@"int"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -8849,6 +8864,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8849 | 8864 | if (!_let && dict[@"let"] && ![dict[@"let"] isKindOfClass:NSNull.class]) return nil; |
| 8850 | 8865 | _list = [QTList fromJSONDictionary:(id)_list]; |
| 8851 | 8866 | if (!_list && dict[@"list"] && ![dict[@"list"] isKindOfClass:NSNull.class]) return nil; |
| 8867 | + _localDate = [QTLocalDate fromJSONDictionary:(id)_localDate]; | |
| 8868 | + if (!_localDate && dict[@"LocalDate"] && ![dict[@"LocalDate"] isKindOfClass:NSNull.class]) return nil; | |
| 8852 | 8869 | _locale = [QTLocale fromJSONDictionary:(id)_locale]; |
| 8853 | 8870 | if (!_locale && dict[@"Locale"] && ![dict[@"Locale"] isKindOfClass:NSNull.class]) return nil; |
| 8854 | 8871 | _lock = [QTLock fromJSONDictionary:(id)_lock]; |
| @@ -8873,8 +8890,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8873 | 8890 | if (!_newtonsoft && dict[@"newtonsoft"] && ![dict[@"newtonsoft"] isKindOfClass:NSNull.class]) return nil; |
| 8874 | 8891 | _no = [QTNo fromJSONDictionary:(id)_no]; |
| 8875 | 8892 | if (!_no && dict[@"NO"] && ![dict[@"NO"] isKindOfClass:NSNull.class]) return nil; |
| 8876 | - _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept]; | |
| 8877 | - if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil; | |
| 8878 | 8893 | _obj3If = [QTIf fromJSONDictionary:(id)_obj3If]; |
| 8879 | 8894 | if (!_obj3If && dict[@"if"] && ![dict[@"if"] isKindOfClass:NSNull.class]) return nil; |
| 8880 | 8895 | _obj3Inline = [QTInline fromJSONDictionary:(id)_obj3Inline]; |
| @@ -8963,6 +8978,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8963 | 8978 | @"left": [_left JSONDictionary], |
| 8964 | 8979 | @"let": [_let JSONDictionary], |
| 8965 | 8980 | @"list": [_list JSONDictionary], |
| 8981 | + @"LocalDate": [_localDate JSONDictionary], | |
| 8966 | 8982 | @"Locale": [_locale JSONDictionary], |
| 8967 | 8983 | @"lock": [_lock JSONDictionary], |
| 8968 | 8984 | @"map": [_map JSONDictionary], |
| @@ -8975,7 +8991,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 8975 | 8991 | @"native": [_native JSONDictionary], |
| 8976 | 8992 | @"newtonsoft": [_newtonsoft JSONDictionary], |
| 8977 | 8993 | @"NO": [_no JSONDictionary], |
| 8978 | - @"noexcept": [_noexcept JSONDictionary], | |
| 8979 | 8994 | @"if": [_obj3If JSONDictionary], |
| 8980 | 8995 | @"inline": [_obj3Inline JSONDictionary], |
| 8981 | 8996 | @"int": [_obj3Int JSONDictionary], |
| @@ -10995,6 +11010,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 10995 | 11010 | } |
| 10996 | 11011 | @end |
| 10997 | 11012 | |
| 11013 | +@implementation QTLocalDate | |
| 11014 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 11015 | +{ | |
| 11016 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 11017 | + return properties = properties ? properties : @{ | |
| 11018 | + @"LocalDate": @"localDate", | |
| 11019 | + }; | |
| 11020 | +} | |
| 11021 | + | |
| 11022 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 11023 | +{ | |
| 11024 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil; | |
| 11025 | +} | |
| 11026 | + | |
| 11027 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 11028 | +{ | |
| 11029 | + if (self = [super init]) { | |
| 11030 | + if (![dict[@"LocalDate"] isKindOfClass:NSNumber.class]) return nil; | |
| 11031 | + if ([dict[@"LocalDate"] doubleValue] != [dict[@"LocalDate"] longLongValue]) return nil; | |
| 11032 | + [self setValuesForKeysWithDictionary:dict]; | |
| 11033 | + } | |
| 11034 | + return self; | |
| 11035 | +} | |
| 11036 | + | |
| 11037 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 11038 | +{ | |
| 11039 | + id resolved = QTLocalDate.properties[key]; | |
| 11040 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 11041 | +} | |
| 11042 | + | |
| 11043 | +- (void)setNilValueForKey:(NSString *)key | |
| 11044 | +{ | |
| 11045 | + id resolved = QTLocalDate.properties[key]; | |
| 11046 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 11047 | +} | |
| 11048 | + | |
| 11049 | +- (NSDictionary *)JSONDictionary | |
| 11050 | +{ | |
| 11051 | + id dict = [[self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues] mutableCopy]; | |
| 11052 | + | |
| 11053 | + for (id jsonName in QTLocalDate.properties) { | |
| 11054 | + id propertyName = QTLocalDate.properties[jsonName]; | |
| 11055 | + if (![jsonName isEqualToString:propertyName]) { | |
| 11056 | + dict[jsonName] = dict[propertyName]; | |
| 11057 | + [dict removeObjectForKey:propertyName]; | |
| 11058 | + } | |
| 11059 | + } | |
| 11060 | + | |
| 11061 | + return dict; | |
| 11062 | +} | |
| 11063 | +@end | |
| 11064 | + | |
| 10998 | 11065 | @implementation QTLocale |
| 10999 | 11066 | + (NSDictionary<NSString *, NSString *> *)properties |
| 11000 | 11067 | { |
| @@ -11539,48 +11606,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 11539 | 11606 | } |
| 11540 | 11607 | @end |
| 11541 | 11608 | |
| 11542 | -@implementation QTNoexcept | |
| 11543 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 11544 | -{ | |
| 11545 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 11546 | - return properties = properties ? properties : @{ | |
| 11547 | - @"noexcept": @"noexcept", | |
| 11548 | - }; | |
| 11549 | -} | |
| 11550 | - | |
| 11551 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 11552 | -{ | |
| 11553 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil; | |
| 11554 | -} | |
| 11555 | - | |
| 11556 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 11557 | -{ | |
| 11558 | - if (self = [super init]) { | |
| 11559 | - if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil; | |
| 11560 | - if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil; | |
| 11561 | - [self setValuesForKeysWithDictionary:dict]; | |
| 11562 | - } | |
| 11563 | - return self; | |
| 11564 | -} | |
| 11565 | - | |
| 11566 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 11567 | -{ | |
| 11568 | - id resolved = QTNoexcept.properties[key]; | |
| 11569 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 11570 | -} | |
| 11571 | - | |
| 11572 | -- (void)setNilValueForKey:(NSString *)key | |
| 11573 | -{ | |
| 11574 | - id resolved = QTNoexcept.properties[key]; | |
| 11575 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 11576 | -} | |
| 11577 | - | |
| 11578 | -- (NSDictionary *)JSONDictionary | |
| 11579 | -{ | |
| 11580 | - return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues]; | |
| 11581 | -} | |
| 11582 | -@end | |
| 11583 | - | |
| 11584 | 11609 | @implementation QTIf |
| 11585 | 11610 | + (NSDictionary<NSString *, NSString *> *)properties |
| 11586 | 11611 | { |
| @@ -12004,6 +12029,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12004 | 12029 | return properties = properties ? properties : @{ |
| 12005 | 12030 | @"dummy": @"dummy", |
| 12006 | 12031 | @"noSuchMethod": @"noSuchMethod", |
| 12032 | + @"noexcept": @"noexcept", | |
| 12007 | 12033 | @"None": @"none", |
| 12008 | 12034 | @"nonlocal": @"nonlocal", |
| 12009 | 12035 | @"nonmutating": @"nonmutating", |
| @@ -12026,6 +12052,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12026 | 12052 | @"object": @"object", |
| 12027 | 12053 | @"ObjectMapper": @"objectMapper", |
| 12028 | 12054 | @"of": @"of", |
| 12055 | + @"OffsetDateTime": @"offsetDateTime", | |
| 12056 | + @"OffsetTime": @"offsetTime", | |
| 12029 | 12057 | @"oneway": @"oneway", |
| 12030 | 12058 | @"open": @"open", |
| 12031 | 12059 | @"operator": @"operator", |
| @@ -12064,9 +12092,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12064 | 12092 | @"runtimeType": @"runtimeType", |
| 12065 | 12093 | @"s": @"s", |
| 12066 | 12094 | @"sbyte": @"sbyte", |
| 12067 | - @"sealed": @"sealed", | |
| 12068 | - @"SEL": @"sel", | |
| 12069 | - @"select": @"select", | |
| 12070 | 12095 | }; |
| 12071 | 12096 | } |
| 12072 | 12097 | |
| @@ -12081,6 +12106,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12081 | 12106 | if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; |
| 12082 | 12107 | if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; |
| 12083 | 12108 | if (![dict[@"noSuchMethod"] isKindOfClass:NSDictionary.class]) return nil; |
| 12109 | + if (![dict[@"noexcept"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12084 | 12110 | if (![dict[@"None"] isKindOfClass:NSDictionary.class]) return nil; |
| 12085 | 12111 | if (![dict[@"nonlocal"] isKindOfClass:NSDictionary.class]) return nil; |
| 12086 | 12112 | if (![dict[@"nonmutating"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12103,6 +12129,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12103 | 12129 | if (![dict[@"object"] isKindOfClass:NSDictionary.class]) return nil; |
| 12104 | 12130 | if (![dict[@"ObjectMapper"] isKindOfClass:NSDictionary.class]) return nil; |
| 12105 | 12131 | if (![dict[@"of"] isKindOfClass:NSDictionary.class]) return nil; |
| 12132 | + if (![dict[@"OffsetDateTime"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12133 | + if (![dict[@"OffsetTime"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12106 | 12134 | if (![dict[@"oneway"] isKindOfClass:NSDictionary.class]) return nil; |
| 12107 | 12135 | if (![dict[@"open"] isKindOfClass:NSDictionary.class]) return nil; |
| 12108 | 12136 | if (![dict[@"operator"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -12141,12 +12169,11 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12141 | 12169 | if (![dict[@"runtimeType"] isKindOfClass:NSDictionary.class]) return nil; |
| 12142 | 12170 | if (![dict[@"s"] isKindOfClass:NSDictionary.class]) return nil; |
| 12143 | 12171 | if (![dict[@"sbyte"] isKindOfClass:NSDictionary.class]) return nil; |
| 12144 | - if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12145 | - if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12146 | - if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil; | |
| 12147 | 12172 | [self setValuesForKeysWithDictionary:dict]; |
| 12148 | 12173 | _noSuchMethod = [QTNoSuchMethod fromJSONDictionary:(id)_noSuchMethod]; |
| 12149 | 12174 | if (!_noSuchMethod && dict[@"noSuchMethod"] && ![dict[@"noSuchMethod"] isKindOfClass:NSNull.class]) return nil; |
| 12175 | + _noexcept = [QTNoexcept fromJSONDictionary:(id)_noexcept]; | |
| 12176 | + if (!_noexcept && dict[@"noexcept"] && ![dict[@"noexcept"] isKindOfClass:NSNull.class]) return nil; | |
| 12150 | 12177 | _none = [QTNone fromJSONDictionary:(id)_none]; |
| 12151 | 12178 | if (!_none && dict[@"None"] && ![dict[@"None"] isKindOfClass:NSNull.class]) return nil; |
| 12152 | 12179 | _nonlocal = [QTNonlocal fromJSONDictionary:(id)_nonlocal]; |
| @@ -12191,6 +12218,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12191 | 12218 | if (!_objectMapper && dict[@"ObjectMapper"] && ![dict[@"ObjectMapper"] isKindOfClass:NSNull.class]) return nil; |
| 12192 | 12219 | _of = [QTOf fromJSONDictionary:(id)_of]; |
| 12193 | 12220 | if (!_of && dict[@"of"] && ![dict[@"of"] isKindOfClass:NSNull.class]) return nil; |
| 12221 | + _offsetDateTime = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTime]; | |
| 12222 | + if (!_offsetDateTime && dict[@"OffsetDateTime"] && ![dict[@"OffsetDateTime"] isKindOfClass:NSNull.class]) return nil; | |
| 12223 | + _offsetTime = [QTOffsetTime fromJSONDictionary:(id)_offsetTime]; | |
| 12224 | + if (!_offsetTime && dict[@"OffsetTime"] && ![dict[@"OffsetTime"] isKindOfClass:NSNull.class]) return nil; | |
| 12194 | 12225 | _oneway = [QTOneway fromJSONDictionary:(id)_oneway]; |
| 12195 | 12226 | if (!_oneway && dict[@"oneway"] && ![dict[@"oneway"] isKindOfClass:NSNull.class]) return nil; |
| 12196 | 12227 | _open = [QTOpen fromJSONDictionary:(id)_open]; |
| @@ -12267,12 +12298,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12267 | 12298 | if (!_s && dict[@"s"] && ![dict[@"s"] isKindOfClass:NSNull.class]) return nil; |
| 12268 | 12299 | _sbyte = [QTSbyte fromJSONDictionary:(id)_sbyte]; |
| 12269 | 12300 | if (!_sbyte && dict[@"sbyte"] && ![dict[@"sbyte"] isKindOfClass:NSNull.class]) return nil; |
| 12270 | - _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; | |
| 12271 | - if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil; | |
| 12272 | - _sel = [QTSel fromJSONDictionary:(id)_sel]; | |
| 12273 | - if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil; | |
| 12274 | - _select = [QTSelect fromJSONDictionary:(id)_select]; | |
| 12275 | - if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil; | |
| 12276 | 12301 | } |
| 12277 | 12302 | return self; |
| 12278 | 12303 | } |
| @@ -12303,6 +12328,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12303 | 12328 | |
| 12304 | 12329 | [dict addEntriesFromDictionary:@{ |
| 12305 | 12330 | @"noSuchMethod": [_noSuchMethod JSONDictionary], |
| 12331 | + @"noexcept": [_noexcept JSONDictionary], | |
| 12306 | 12332 | @"None": [_none JSONDictionary], |
| 12307 | 12333 | @"nonlocal": [_nonlocal JSONDictionary], |
| 12308 | 12334 | @"nonmutating": [_nonmutating JSONDictionary], |
| @@ -12325,6 +12351,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12325 | 12351 | @"object": [_object JSONDictionary], |
| 12326 | 12352 | @"ObjectMapper": [_objectMapper JSONDictionary], |
| 12327 | 12353 | @"of": [_of JSONDictionary], |
| 12354 | + @"OffsetDateTime": [_offsetDateTime JSONDictionary], | |
| 12355 | + @"OffsetTime": [_offsetTime JSONDictionary], | |
| 12328 | 12356 | @"oneway": [_oneway JSONDictionary], |
| 12329 | 12357 | @"open": [_open JSONDictionary], |
| 12330 | 12358 | @"operator": [_operator JSONDictionary], |
| @@ -12363,9 +12391,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12363 | 12391 | @"runtimeType": [_runtimeType JSONDictionary], |
| 12364 | 12392 | @"s": [_s JSONDictionary], |
| 12365 | 12393 | @"sbyte": [_sbyte JSONDictionary], |
| 12366 | - @"sealed": [_sealed JSONDictionary], | |
| 12367 | - @"SEL": [_sel JSONDictionary], | |
| 12368 | - @"select": [_select JSONDictionary], | |
| 12369 | 12394 | }]; |
| 12370 | 12395 | |
| 12371 | 12396 | return dict; |
| @@ -12414,6 +12439,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 12414 | 12439 | } |
| 12415 | 12440 | @end |
| 12416 | 12441 | |
| 12442 | +@implementation QTNoexcept | |
| 12443 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 12444 | +{ | |
| 12445 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 12446 | + return properties = properties ? properties : @{ | |
| 12447 | + @"noexcept": @"noexcept", | |
| 12448 | + }; | |
| 12449 | +} | |
| 12450 | + | |
| 12451 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 12452 | +{ | |
| 12453 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTNoexcept alloc] initWithJSONDictionary:dict] : nil; | |
| 12454 | +} | |
| 12455 | + | |
| 12456 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 12457 | +{ | |
| 12458 | + if (self = [super init]) { | |
| 12459 | + if (![dict[@"noexcept"] isKindOfClass:NSNumber.class]) return nil; | |
| 12460 | + if ([dict[@"noexcept"] doubleValue] != [dict[@"noexcept"] longLongValue]) return nil; | |
| 12461 | + [self setValuesForKeysWithDictionary:dict]; | |
| 12462 | + } | |
| 12463 | + return self; | |
| 12464 | +} | |
| 12465 | + | |
| 12466 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 12467 | +{ | |
| 12468 | + id resolved = QTNoexcept.properties[key]; | |
| 12469 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 12470 | +} | |
| 12471 | + | |
| 12472 | +- (void)setNilValueForKey:(NSString *)key | |
| 12473 | +{ | |
| 12474 | + id resolved = QTNoexcept.properties[key]; | |
| 12475 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 12476 | +} | |
| 12477 | + | |
| 12478 | +- (NSDictionary *)JSONDictionary | |
| 12479 | +{ | |
| 12480 | + return [self dictionaryWithValuesForKeys:QTNoexcept.properties.allValues]; | |
| 12481 | +} | |
| 12482 | +@end | |
| 12483 | + | |
| 12417 | 12484 | @implementation QTNone |
| 12418 | 12485 | + (NSDictionary<NSString *, NSString *> *)properties |
| 12419 | 12486 | { |
| @@ -13458,25 +13525,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13458 | 13525 | } |
| 13459 | 13526 | @end |
| 13460 | 13527 | |
| 13461 | -@implementation QTOneway | |
| 13528 | +@implementation QTOffsetDateTime | |
| 13462 | 13529 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13463 | 13530 | { |
| 13464 | 13531 | static NSDictionary<NSString *, NSString *> *properties; |
| 13465 | 13532 | return properties = properties ? properties : @{ |
| 13466 | - @"oneway": @"oneway", | |
| 13533 | + @"OffsetDateTime": @"offsetDateTime", | |
| 13467 | 13534 | }; |
| 13468 | 13535 | } |
| 13469 | 13536 | |
| 13470 | 13537 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 13471 | 13538 | { |
| 13472 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTOneway alloc] initWithJSONDictionary:dict] : nil; | |
| 13539 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil; | |
| 13473 | 13540 | } |
| 13474 | 13541 | |
| 13475 | 13542 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 13476 | 13543 | { |
| 13477 | 13544 | if (self = [super init]) { |
| 13478 | - if (![dict[@"oneway"] isKindOfClass:NSNumber.class]) return nil; | |
| 13479 | - if ([dict[@"oneway"] doubleValue] != [dict[@"oneway"] longLongValue]) return nil; | |
| 13545 | + if (![dict[@"OffsetDateTime"] isKindOfClass:NSNumber.class]) return nil; | |
| 13546 | + if ([dict[@"OffsetDateTime"] doubleValue] != [dict[@"OffsetDateTime"] longLongValue]) return nil; | |
| 13480 | 13547 | [self setValuesForKeysWithDictionary:dict]; |
| 13481 | 13548 | } |
| 13482 | 13549 | return self; |
| @@ -13484,41 +13551,51 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13484 | 13551 | |
| 13485 | 13552 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 13486 | 13553 | { |
| 13487 | - id resolved = QTOneway.properties[key]; | |
| 13554 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 13488 | 13555 | if (resolved) [super setValue:value forKey:resolved]; |
| 13489 | 13556 | } |
| 13490 | 13557 | |
| 13491 | 13558 | - (void)setNilValueForKey:(NSString *)key |
| 13492 | 13559 | { |
| 13493 | - id resolved = QTOneway.properties[key]; | |
| 13560 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 13494 | 13561 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 13495 | 13562 | } |
| 13496 | 13563 | |
| 13497 | 13564 | - (NSDictionary *)JSONDictionary |
| 13498 | 13565 | { |
| 13499 | - return [self dictionaryWithValuesForKeys:QTOneway.properties.allValues]; | |
| 13566 | + id dict = [[self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues] mutableCopy]; | |
| 13567 | + | |
| 13568 | + for (id jsonName in QTOffsetDateTime.properties) { | |
| 13569 | + id propertyName = QTOffsetDateTime.properties[jsonName]; | |
| 13570 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13571 | + dict[jsonName] = dict[propertyName]; | |
| 13572 | + [dict removeObjectForKey:propertyName]; | |
| 13573 | + } | |
| 13574 | + } | |
| 13575 | + | |
| 13576 | + return dict; | |
| 13500 | 13577 | } |
| 13501 | 13578 | @end |
| 13502 | 13579 | |
| 13503 | -@implementation QTOpen | |
| 13580 | +@implementation QTOffsetTime | |
| 13504 | 13581 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13505 | 13582 | { |
| 13506 | 13583 | static NSDictionary<NSString *, NSString *> *properties; |
| 13507 | 13584 | return properties = properties ? properties : @{ |
| 13508 | - @"open": @"open", | |
| 13585 | + @"OffsetTime": @"offsetTime", | |
| 13509 | 13586 | }; |
| 13510 | 13587 | } |
| 13511 | 13588 | |
| 13512 | 13589 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 13513 | 13590 | { |
| 13514 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTOpen alloc] initWithJSONDictionary:dict] : nil; | |
| 13591 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil; | |
| 13515 | 13592 | } |
| 13516 | 13593 | |
| 13517 | 13594 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 13518 | 13595 | { |
| 13519 | 13596 | if (self = [super init]) { |
| 13520 | - if (![dict[@"open"] isKindOfClass:NSNumber.class]) return nil; | |
| 13521 | - if ([dict[@"open"] doubleValue] != [dict[@"open"] longLongValue]) return nil; | |
| 13597 | + if (![dict[@"OffsetTime"] isKindOfClass:NSNumber.class]) return nil; | |
| 13598 | + if ([dict[@"OffsetTime"] doubleValue] != [dict[@"OffsetTime"] longLongValue]) return nil; | |
| 13522 | 13599 | [self setValuesForKeysWithDictionary:dict]; |
| 13523 | 13600 | } |
| 13524 | 13601 | return self; |
| @@ -13526,28 +13603,122 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 13526 | 13603 | |
| 13527 | 13604 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 13528 | 13605 | { |
| 13529 | - id resolved = QTOpen.properties[key]; | |
| 13606 | + id resolved = QTOffsetTime.properties[key]; | |
| 13530 | 13607 | if (resolved) [super setValue:value forKey:resolved]; |
| 13531 | 13608 | } |
| 13532 | 13609 | |
| 13533 | 13610 | - (void)setNilValueForKey:(NSString *)key |
| 13534 | 13611 | { |
| 13535 | - id resolved = QTOpen.properties[key]; | |
| 13612 | + id resolved = QTOffsetTime.properties[key]; | |
| 13536 | 13613 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 13537 | 13614 | } |
| 13538 | 13615 | |
| 13539 | 13616 | - (NSDictionary *)JSONDictionary |
| 13540 | 13617 | { |
| 13541 | - return [self dictionaryWithValuesForKeys:QTOpen.properties.allValues]; | |
| 13618 | + id dict = [[self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues] mutableCopy]; | |
| 13619 | + | |
| 13620 | + for (id jsonName in QTOffsetTime.properties) { | |
| 13621 | + id propertyName = QTOffsetTime.properties[jsonName]; | |
| 13622 | + if (![jsonName isEqualToString:propertyName]) { | |
| 13623 | + dict[jsonName] = dict[propertyName]; | |
| 13624 | + [dict removeObjectForKey:propertyName]; | |
| 13625 | + } | |
| 13626 | + } | |
| 13627 | + | |
| 13628 | + return dict; | |
| 13542 | 13629 | } |
| 13543 | 13630 | @end |
| 13544 | 13631 | |
| 13545 | -@implementation QTOperator | |
| 13632 | +@implementation QTOneway | |
| 13546 | 13633 | + (NSDictionary<NSString *, NSString *> *)properties |
| 13547 | 13634 | { |
| 13548 | 13635 | static NSDictionary<NSString *, NSString *> *properties; |
| 13549 | 13636 | return properties = properties ? properties : @{ |
| 13550 | - @"operator": @"operator", | |
| 13637 | + @"oneway": @"oneway", | |
| 13638 | + }; | |
| 13639 | +} | |
| 13640 | + | |
| 13641 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13642 | +{ | |
| 13643 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOneway alloc] initWithJSONDictionary:dict] : nil; | |
| 13644 | +} | |
| 13645 | + | |
| 13646 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13647 | +{ | |
| 13648 | + if (self = [super init]) { | |
| 13649 | + if (![dict[@"oneway"] isKindOfClass:NSNumber.class]) return nil; | |
| 13650 | + if ([dict[@"oneway"] doubleValue] != [dict[@"oneway"] longLongValue]) return nil; | |
| 13651 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13652 | + } | |
| 13653 | + return self; | |
| 13654 | +} | |
| 13655 | + | |
| 13656 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13657 | +{ | |
| 13658 | + id resolved = QTOneway.properties[key]; | |
| 13659 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13660 | +} | |
| 13661 | + | |
| 13662 | +- (void)setNilValueForKey:(NSString *)key | |
| 13663 | +{ | |
| 13664 | + id resolved = QTOneway.properties[key]; | |
| 13665 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13666 | +} | |
| 13667 | + | |
| 13668 | +- (NSDictionary *)JSONDictionary | |
| 13669 | +{ | |
| 13670 | + return [self dictionaryWithValuesForKeys:QTOneway.properties.allValues]; | |
| 13671 | +} | |
| 13672 | +@end | |
| 13673 | + | |
| 13674 | +@implementation QTOpen | |
| 13675 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13676 | +{ | |
| 13677 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13678 | + return properties = properties ? properties : @{ | |
| 13679 | + @"open": @"open", | |
| 13680 | + }; | |
| 13681 | +} | |
| 13682 | + | |
| 13683 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 13684 | +{ | |
| 13685 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOpen alloc] initWithJSONDictionary:dict] : nil; | |
| 13686 | +} | |
| 13687 | + | |
| 13688 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 13689 | +{ | |
| 13690 | + if (self = [super init]) { | |
| 13691 | + if (![dict[@"open"] isKindOfClass:NSNumber.class]) return nil; | |
| 13692 | + if ([dict[@"open"] doubleValue] != [dict[@"open"] longLongValue]) return nil; | |
| 13693 | + [self setValuesForKeysWithDictionary:dict]; | |
| 13694 | + } | |
| 13695 | + return self; | |
| 13696 | +} | |
| 13697 | + | |
| 13698 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 13699 | +{ | |
| 13700 | + id resolved = QTOpen.properties[key]; | |
| 13701 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 13702 | +} | |
| 13703 | + | |
| 13704 | +- (void)setNilValueForKey:(NSString *)key | |
| 13705 | +{ | |
| 13706 | + id resolved = QTOpen.properties[key]; | |
| 13707 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 13708 | +} | |
| 13709 | + | |
| 13710 | +- (NSDictionary *)JSONDictionary | |
| 13711 | +{ | |
| 13712 | + return [self dictionaryWithValuesForKeys:QTOpen.properties.allValues]; | |
| 13713 | +} | |
| 13714 | +@end | |
| 13715 | + | |
| 13716 | +@implementation QTOperator | |
| 13717 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 13718 | +{ | |
| 13719 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 13720 | + return properties = properties ? properties : @{ | |
| 13721 | + @"operator": @"operator", | |
| 13551 | 13722 | }; |
| 13552 | 13723 | } |
| 13553 | 13724 | |
| @@ -15094,142 +15265,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15094 | 15265 | } |
| 15095 | 15266 | @end |
| 15096 | 15267 | |
| 15097 | -@implementation QTSealed | |
| 15098 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15099 | -{ | |
| 15100 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15101 | - return properties = properties ? properties : @{ | |
| 15102 | - @"sealed": @"sealed", | |
| 15103 | - }; | |
| 15104 | -} | |
| 15105 | - | |
| 15106 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15107 | -{ | |
| 15108 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil; | |
| 15109 | -} | |
| 15110 | - | |
| 15111 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15112 | -{ | |
| 15113 | - if (self = [super init]) { | |
| 15114 | - if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil; | |
| 15115 | - if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil; | |
| 15116 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15117 | - } | |
| 15118 | - return self; | |
| 15119 | -} | |
| 15120 | - | |
| 15121 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15122 | -{ | |
| 15123 | - id resolved = QTSealed.properties[key]; | |
| 15124 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15125 | -} | |
| 15126 | - | |
| 15127 | -- (void)setNilValueForKey:(NSString *)key | |
| 15128 | -{ | |
| 15129 | - id resolved = QTSealed.properties[key]; | |
| 15130 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15131 | -} | |
| 15132 | - | |
| 15133 | -- (NSDictionary *)JSONDictionary | |
| 15134 | -{ | |
| 15135 | - return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues]; | |
| 15136 | -} | |
| 15137 | -@end | |
| 15138 | - | |
| 15139 | -@implementation QTSel | |
| 15140 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15141 | -{ | |
| 15142 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15143 | - return properties = properties ? properties : @{ | |
| 15144 | - @"SEL": @"sel", | |
| 15145 | - }; | |
| 15146 | -} | |
| 15147 | - | |
| 15148 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15149 | -{ | |
| 15150 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil; | |
| 15151 | -} | |
| 15152 | - | |
| 15153 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15154 | -{ | |
| 15155 | - if (self = [super init]) { | |
| 15156 | - if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil; | |
| 15157 | - if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil; | |
| 15158 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15159 | - } | |
| 15160 | - return self; | |
| 15161 | -} | |
| 15162 | - | |
| 15163 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15164 | -{ | |
| 15165 | - id resolved = QTSel.properties[key]; | |
| 15166 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15167 | -} | |
| 15168 | - | |
| 15169 | -- (void)setNilValueForKey:(NSString *)key | |
| 15170 | -{ | |
| 15171 | - id resolved = QTSel.properties[key]; | |
| 15172 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15173 | -} | |
| 15174 | - | |
| 15175 | -- (NSDictionary *)JSONDictionary | |
| 15176 | -{ | |
| 15177 | - id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy]; | |
| 15178 | - | |
| 15179 | - for (id jsonName in QTSel.properties) { | |
| 15180 | - id propertyName = QTSel.properties[jsonName]; | |
| 15181 | - if (![jsonName isEqualToString:propertyName]) { | |
| 15182 | - dict[jsonName] = dict[propertyName]; | |
| 15183 | - [dict removeObjectForKey:propertyName]; | |
| 15184 | - } | |
| 15185 | - } | |
| 15186 | - | |
| 15187 | - return dict; | |
| 15188 | -} | |
| 15189 | -@end | |
| 15190 | - | |
| 15191 | -@implementation QTSelect | |
| 15192 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 15193 | -{ | |
| 15194 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 15195 | - return properties = properties ? properties : @{ | |
| 15196 | - @"select": @"select", | |
| 15197 | - }; | |
| 15198 | -} | |
| 15199 | - | |
| 15200 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 15201 | -{ | |
| 15202 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil; | |
| 15203 | -} | |
| 15204 | - | |
| 15205 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 15206 | -{ | |
| 15207 | - if (self = [super init]) { | |
| 15208 | - if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil; | |
| 15209 | - if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil; | |
| 15210 | - [self setValuesForKeysWithDictionary:dict]; | |
| 15211 | - } | |
| 15212 | - return self; | |
| 15213 | -} | |
| 15214 | - | |
| 15215 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 15216 | -{ | |
| 15217 | - id resolved = QTSelect.properties[key]; | |
| 15218 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 15219 | -} | |
| 15220 | - | |
| 15221 | -- (void)setNilValueForKey:(NSString *)key | |
| 15222 | -{ | |
| 15223 | - id resolved = QTSelect.properties[key]; | |
| 15224 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 15225 | -} | |
| 15226 | - | |
| 15227 | -- (NSDictionary *)JSONDictionary | |
| 15228 | -{ | |
| 15229 | - return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues]; | |
| 15230 | -} | |
| 15231 | -@end | |
| 15232 | - | |
| 15233 | 15268 | @implementation QTObj5 |
| 15234 | 15269 | + (NSDictionary<NSString *, NSString *> *)properties |
| 15235 | 15270 | { |
| @@ -15249,8 +15284,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15249 | 15284 | @"typedef": @"obj5Typedef", |
| 15250 | 15285 | @"typeof": @"obj5Typeof", |
| 15251 | 15286 | @"union": @"obj5Union", |
| 15252 | - @"unsigned": @"obj5Unsigned", | |
| 15253 | 15287 | @"PrimitiveKind": @"primitiveKind", |
| 15288 | + @"sealed": @"sealed", | |
| 15289 | + @"SEL": @"sel", | |
| 15290 | + @"select": @"select", | |
| 15254 | 15291 | @"Self": @"self", |
| 15255 | 15292 | @"Sendable": @"sendable", |
| 15256 | 15293 | @"SerialDescriptor": @"serialDescriptor", |
| @@ -15297,9 +15334,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15297 | 15334 | @"unchecked": @"unchecked", |
| 15298 | 15335 | @"undefined": @"undefined", |
| 15299 | 15336 | @"unowned": @"unowned", |
| 15300 | - @"unsafe": @"unsafe", | |
| 15301 | 15337 | @"UseSerializers": @"useSerializers", |
| 15302 | - @"ushort": @"ushort", | |
| 15303 | 15338 | }; |
| 15304 | 15339 | } |
| 15305 | 15340 | |
| @@ -15326,8 +15361,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15326 | 15361 | if (![dict[@"typedef"] isKindOfClass:NSDictionary.class]) return nil; |
| 15327 | 15362 | if (![dict[@"typeof"] isKindOfClass:NSDictionary.class]) return nil; |
| 15328 | 15363 | if (![dict[@"union"] isKindOfClass:NSDictionary.class]) return nil; |
| 15329 | - if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15330 | 15364 | if (![dict[@"PrimitiveKind"] isKindOfClass:NSDictionary.class]) return nil; |
| 15365 | + if (![dict[@"sealed"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15366 | + if (![dict[@"SEL"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15367 | + if (![dict[@"select"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15331 | 15368 | if (![dict[@"Self"] isKindOfClass:NSDictionary.class]) return nil; |
| 15332 | 15369 | if (![dict[@"Sendable"] isKindOfClass:NSDictionary.class]) return nil; |
| 15333 | 15370 | if (![dict[@"SerialDescriptor"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -15374,9 +15411,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15374 | 15411 | if (![dict[@"unchecked"] isKindOfClass:NSDictionary.class]) return nil; |
| 15375 | 15412 | if (![dict[@"undefined"] isKindOfClass:NSDictionary.class]) return nil; |
| 15376 | 15413 | if (![dict[@"unowned"] isKindOfClass:NSDictionary.class]) return nil; |
| 15377 | - if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15378 | 15414 | if (![dict[@"UseSerializers"] isKindOfClass:NSDictionary.class]) return nil; |
| 15379 | - if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil; | |
| 15380 | 15415 | [self setValuesForKeysWithDictionary:dict]; |
| 15381 | 15416 | _kSerializer = [QTKSerializer fromJSONDictionary:(id)_kSerializer]; |
| 15382 | 15417 | if (!_kSerializer && dict[@"KSerializer"] && ![dict[@"KSerializer"] isKindOfClass:NSNull.class]) return nil; |
| @@ -15404,10 +15439,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15404 | 15439 | if (!_obj5Typeof && dict[@"typeof"] && ![dict[@"typeof"] isKindOfClass:NSNull.class]) return nil; |
| 15405 | 15440 | _obj5Union = [QTUnion fromJSONDictionary:(id)_obj5Union]; |
| 15406 | 15441 | if (!_obj5Union && dict[@"union"] && ![dict[@"union"] isKindOfClass:NSNull.class]) return nil; |
| 15407 | - _obj5Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj5Unsigned]; | |
| 15408 | - if (!_obj5Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil; | |
| 15409 | 15442 | _primitiveKind = [QTPrimitiveKind fromJSONDictionary:(id)_primitiveKind]; |
| 15410 | 15443 | if (!_primitiveKind && dict[@"PrimitiveKind"] && ![dict[@"PrimitiveKind"] isKindOfClass:NSNull.class]) return nil; |
| 15444 | + _sealed = [QTSealed fromJSONDictionary:(id)_sealed]; | |
| 15445 | + if (!_sealed && dict[@"sealed"] && ![dict[@"sealed"] isKindOfClass:NSNull.class]) return nil; | |
| 15446 | + _sel = [QTSel fromJSONDictionary:(id)_sel]; | |
| 15447 | + if (!_sel && dict[@"SEL"] && ![dict[@"SEL"] isKindOfClass:NSNull.class]) return nil; | |
| 15448 | + _select = [QTSelect fromJSONDictionary:(id)_select]; | |
| 15449 | + if (!_select && dict[@"select"] && ![dict[@"select"] isKindOfClass:NSNull.class]) return nil; | |
| 15411 | 15450 | _self = [QTSelf fromJSONDictionary:(id)_self]; |
| 15412 | 15451 | if (!_self && dict[@"Self"] && ![dict[@"Self"] isKindOfClass:NSNull.class]) return nil; |
| 15413 | 15452 | _sendable = [QTSendable fromJSONDictionary:(id)_sendable]; |
| @@ -15500,12 +15539,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15500 | 15539 | if (!_undefined && dict[@"undefined"] && ![dict[@"undefined"] isKindOfClass:NSNull.class]) return nil; |
| 15501 | 15540 | _unowned = [QTUnowned fromJSONDictionary:(id)_unowned]; |
| 15502 | 15541 | if (!_unowned && dict[@"unowned"] && ![dict[@"unowned"] isKindOfClass:NSNull.class]) return nil; |
| 15503 | - _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe]; | |
| 15504 | - if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil; | |
| 15505 | 15542 | _useSerializers = [QTUseSerializers fromJSONDictionary:(id)_useSerializers]; |
| 15506 | 15543 | if (!_useSerializers && dict[@"UseSerializers"] && ![dict[@"UseSerializers"] isKindOfClass:NSNull.class]) return nil; |
| 15507 | - _ushort = [QTUshort fromJSONDictionary:(id)_ushort]; | |
| 15508 | - if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil; | |
| 15509 | 15544 | } |
| 15510 | 15545 | return self; |
| 15511 | 15546 | } |
| @@ -15548,8 +15583,10 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15548 | 15583 | @"typedef": [_obj5Typedef JSONDictionary], |
| 15549 | 15584 | @"typeof": [_obj5Typeof JSONDictionary], |
| 15550 | 15585 | @"union": [_obj5Union JSONDictionary], |
| 15551 | - @"unsigned": [_obj5Unsigned JSONDictionary], | |
| 15552 | 15586 | @"PrimitiveKind": [_primitiveKind JSONDictionary], |
| 15587 | + @"sealed": [_sealed JSONDictionary], | |
| 15588 | + @"SEL": [_sel JSONDictionary], | |
| 15589 | + @"select": [_select JSONDictionary], | |
| 15553 | 15590 | @"Self": [_self JSONDictionary], |
| 15554 | 15591 | @"Sendable": [_sendable JSONDictionary], |
| 15555 | 15592 | @"SerialDescriptor": [_serialDescriptor JSONDictionary], |
| @@ -15596,9 +15633,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 15596 | 15633 | @"unchecked": [_unchecked JSONDictionary], |
| 15597 | 15634 | @"undefined": [_undefined JSONDictionary], |
| 15598 | 15635 | @"unowned": [_unowned JSONDictionary], |
| 15599 | - @"unsafe": [_unsafe JSONDictionary], | |
| 15600 | 15636 | @"UseSerializers": [_useSerializers JSONDictionary], |
| 15601 | - @"ushort": [_ushort JSONDictionary], | |
| 15602 | 15637 | }]; |
| 15603 | 15638 | |
| 15604 | 15639 | return dict; |
| @@ -16261,48 +16296,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16261 | 16296 | } |
| 16262 | 16297 | @end |
| 16263 | 16298 | |
| 16264 | -@implementation QTUnsigned | |
| 16299 | +@implementation QTPrimitiveKind | |
| 16265 | 16300 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16266 | 16301 | { |
| 16267 | 16302 | static NSDictionary<NSString *, NSString *> *properties; |
| 16268 | 16303 | return properties = properties ? properties : @{ |
| 16269 | - @"unsigned": @"unsignedUnsigned", | |
| 16304 | + @"PrimitiveKind": @"primitiveKind", | |
| 16270 | 16305 | }; |
| 16271 | 16306 | } |
| 16272 | 16307 | |
| 16273 | 16308 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16274 | 16309 | { |
| 16275 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil; | |
| 16310 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil; | |
| 16276 | 16311 | } |
| 16277 | 16312 | |
| 16278 | 16313 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16279 | 16314 | { |
| 16280 | 16315 | if (self = [super init]) { |
| 16281 | - if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil; | |
| 16282 | - if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil; | |
| 16283 | - [self setValuesForKeysWithDictionary:dict]; | |
| 16316 | + if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil; | |
| 16317 | + if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil; | |
| 16318 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16284 | 16319 | } |
| 16285 | 16320 | return self; |
| 16286 | 16321 | } |
| 16287 | 16322 | |
| 16288 | 16323 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16289 | 16324 | { |
| 16290 | - id resolved = QTUnsigned.properties[key]; | |
| 16325 | + id resolved = QTPrimitiveKind.properties[key]; | |
| 16291 | 16326 | if (resolved) [super setValue:value forKey:resolved]; |
| 16292 | 16327 | } |
| 16293 | 16328 | |
| 16294 | 16329 | - (void)setNilValueForKey:(NSString *)key |
| 16295 | 16330 | { |
| 16296 | - id resolved = QTUnsigned.properties[key]; | |
| 16331 | + id resolved = QTPrimitiveKind.properties[key]; | |
| 16297 | 16332 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16298 | 16333 | } |
| 16299 | 16334 | |
| 16300 | 16335 | - (NSDictionary *)JSONDictionary |
| 16301 | 16336 | { |
| 16302 | - id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy]; | |
| 16337 | + id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy]; | |
| 16303 | 16338 | |
| 16304 | - for (id jsonName in QTUnsigned.properties) { | |
| 16305 | - id propertyName = QTUnsigned.properties[jsonName]; | |
| 16339 | + for (id jsonName in QTPrimitiveKind.properties) { | |
| 16340 | + id propertyName = QTPrimitiveKind.properties[jsonName]; | |
| 16306 | 16341 | if (![jsonName isEqualToString:propertyName]) { |
| 16307 | 16342 | dict[jsonName] = dict[propertyName]; |
| 16308 | 16343 | [dict removeObjectForKey:propertyName]; |
| @@ -16313,25 +16348,25 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16313 | 16348 | } |
| 16314 | 16349 | @end |
| 16315 | 16350 | |
| 16316 | -@implementation QTPrimitiveKind | |
| 16351 | +@implementation QTSealed | |
| 16317 | 16352 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16318 | 16353 | { |
| 16319 | 16354 | static NSDictionary<NSString *, NSString *> *properties; |
| 16320 | 16355 | return properties = properties ? properties : @{ |
| 16321 | - @"PrimitiveKind": @"primitiveKind", | |
| 16356 | + @"sealed": @"sealed", | |
| 16322 | 16357 | }; |
| 16323 | 16358 | } |
| 16324 | 16359 | |
| 16325 | 16360 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict |
| 16326 | 16361 | { |
| 16327 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTPrimitiveKind alloc] initWithJSONDictionary:dict] : nil; | |
| 16362 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSealed alloc] initWithJSONDictionary:dict] : nil; | |
| 16328 | 16363 | } |
| 16329 | 16364 | |
| 16330 | 16365 | - (instancetype)initWithJSONDictionary:(NSDictionary *)dict |
| 16331 | 16366 | { |
| 16332 | 16367 | if (self = [super init]) { |
| 16333 | - if (![dict[@"PrimitiveKind"] isKindOfClass:NSNumber.class]) return nil; | |
| 16334 | - if ([dict[@"PrimitiveKind"] doubleValue] != [dict[@"PrimitiveKind"] longLongValue]) return nil; | |
| 16368 | + if (![dict[@"sealed"] isKindOfClass:NSNumber.class]) return nil; | |
| 16369 | + if ([dict[@"sealed"] doubleValue] != [dict[@"sealed"] longLongValue]) return nil; | |
| 16335 | 16370 | [self setValuesForKeysWithDictionary:dict]; |
| 16336 | 16371 | } |
| 16337 | 16372 | return self; |
| @@ -16339,22 +16374,64 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16339 | 16374 | |
| 16340 | 16375 | - (void)setValue:(nullable id)value forKey:(NSString *)key |
| 16341 | 16376 | { |
| 16342 | - id resolved = QTPrimitiveKind.properties[key]; | |
| 16377 | + id resolved = QTSealed.properties[key]; | |
| 16343 | 16378 | if (resolved) [super setValue:value forKey:resolved]; |
| 16344 | 16379 | } |
| 16345 | 16380 | |
| 16346 | 16381 | - (void)setNilValueForKey:(NSString *)key |
| 16347 | 16382 | { |
| 16348 | - id resolved = QTPrimitiveKind.properties[key]; | |
| 16383 | + id resolved = QTSealed.properties[key]; | |
| 16349 | 16384 | if (resolved) [super setValue:@(0) forKey:resolved]; |
| 16350 | 16385 | } |
| 16351 | 16386 | |
| 16352 | 16387 | - (NSDictionary *)JSONDictionary |
| 16353 | 16388 | { |
| 16354 | - id dict = [[self dictionaryWithValuesForKeys:QTPrimitiveKind.properties.allValues] mutableCopy]; | |
| 16389 | + return [self dictionaryWithValuesForKeys:QTSealed.properties.allValues]; | |
| 16390 | +} | |
| 16391 | +@end | |
| 16355 | 16392 | |
| 16356 | - for (id jsonName in QTPrimitiveKind.properties) { | |
| 16357 | - id propertyName = QTPrimitiveKind.properties[jsonName]; | |
| 16393 | +@implementation QTSel | |
| 16394 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16395 | +{ | |
| 16396 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16397 | + return properties = properties ? properties : @{ | |
| 16398 | + @"SEL": @"sel", | |
| 16399 | + }; | |
| 16400 | +} | |
| 16401 | + | |
| 16402 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16403 | +{ | |
| 16404 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSel alloc] initWithJSONDictionary:dict] : nil; | |
| 16405 | +} | |
| 16406 | + | |
| 16407 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16408 | +{ | |
| 16409 | + if (self = [super init]) { | |
| 16410 | + if (![dict[@"SEL"] isKindOfClass:NSNumber.class]) return nil; | |
| 16411 | + if ([dict[@"SEL"] doubleValue] != [dict[@"SEL"] longLongValue]) return nil; | |
| 16412 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16413 | + } | |
| 16414 | + return self; | |
| 16415 | +} | |
| 16416 | + | |
| 16417 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16418 | +{ | |
| 16419 | + id resolved = QTSel.properties[key]; | |
| 16420 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16421 | +} | |
| 16422 | + | |
| 16423 | +- (void)setNilValueForKey:(NSString *)key | |
| 16424 | +{ | |
| 16425 | + id resolved = QTSel.properties[key]; | |
| 16426 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16427 | +} | |
| 16428 | + | |
| 16429 | +- (NSDictionary *)JSONDictionary | |
| 16430 | +{ | |
| 16431 | + id dict = [[self dictionaryWithValuesForKeys:QTSel.properties.allValues] mutableCopy]; | |
| 16432 | + | |
| 16433 | + for (id jsonName in QTSel.properties) { | |
| 16434 | + id propertyName = QTSel.properties[jsonName]; | |
| 16358 | 16435 | if (![jsonName isEqualToString:propertyName]) { |
| 16359 | 16436 | dict[jsonName] = dict[propertyName]; |
| 16360 | 16437 | [dict removeObjectForKey:propertyName]; |
| @@ -16365,6 +16442,48 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 16365 | 16442 | } |
| 16366 | 16443 | @end |
| 16367 | 16444 | |
| 16445 | +@implementation QTSelect | |
| 16446 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 16447 | +{ | |
| 16448 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 16449 | + return properties = properties ? properties : @{ | |
| 16450 | + @"select": @"select", | |
| 16451 | + }; | |
| 16452 | +} | |
| 16453 | + | |
| 16454 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 16455 | +{ | |
| 16456 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTSelect alloc] initWithJSONDictionary:dict] : nil; | |
| 16457 | +} | |
| 16458 | + | |
| 16459 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 16460 | +{ | |
| 16461 | + if (self = [super init]) { | |
| 16462 | + if (![dict[@"select"] isKindOfClass:NSNumber.class]) return nil; | |
| 16463 | + if ([dict[@"select"] doubleValue] != [dict[@"select"] longLongValue]) return nil; | |
| 16464 | + [self setValuesForKeysWithDictionary:dict]; | |
| 16465 | + } | |
| 16466 | + return self; | |
| 16467 | +} | |
| 16468 | + | |
| 16469 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 16470 | +{ | |
| 16471 | + id resolved = QTSelect.properties[key]; | |
| 16472 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 16473 | +} | |
| 16474 | + | |
| 16475 | +- (void)setNilValueForKey:(NSString *)key | |
| 16476 | +{ | |
| 16477 | + id resolved = QTSelect.properties[key]; | |
| 16478 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 16479 | +} | |
| 16480 | + | |
| 16481 | +- (NSDictionary *)JSONDictionary | |
| 16482 | +{ | |
| 16483 | + return [self dictionaryWithValuesForKeys:QTSelect.properties.allValues]; | |
| 16484 | +} | |
| 16485 | +@end | |
| 16486 | + | |
| 16368 | 16487 | @implementation QTSelf |
| 16369 | 16488 | + (NSDictionary<NSString *, NSString *> *)properties |
| 16370 | 16489 | { |
| @@ -18497,48 +18616,6 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18497 | 18616 | } |
| 18498 | 18617 | @end |
| 18499 | 18618 | |
| 18500 | -@implementation QTUnsafe | |
| 18501 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 18502 | -{ | |
| 18503 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 18504 | - return properties = properties ? properties : @{ | |
| 18505 | - @"unsafe": @"unsafe", | |
| 18506 | - }; | |
| 18507 | -} | |
| 18508 | - | |
| 18509 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 18510 | -{ | |
| 18511 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil; | |
| 18512 | -} | |
| 18513 | - | |
| 18514 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 18515 | -{ | |
| 18516 | - if (self = [super init]) { | |
| 18517 | - if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil; | |
| 18518 | - if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil; | |
| 18519 | - [self setValuesForKeysWithDictionary:dict]; | |
| 18520 | - } | |
| 18521 | - return self; | |
| 18522 | -} | |
| 18523 | - | |
| 18524 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 18525 | -{ | |
| 18526 | - id resolved = QTUnsafe.properties[key]; | |
| 18527 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 18528 | -} | |
| 18529 | - | |
| 18530 | -- (void)setNilValueForKey:(NSString *)key | |
| 18531 | -{ | |
| 18532 | - id resolved = QTUnsafe.properties[key]; | |
| 18533 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 18534 | -} | |
| 18535 | - | |
| 18536 | -- (NSDictionary *)JSONDictionary | |
| 18537 | -{ | |
| 18538 | - return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues]; | |
| 18539 | -} | |
| 18540 | -@end | |
| 18541 | - | |
| 18542 | 18619 | @implementation QTUseSerializers |
| 18543 | 18620 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18544 | 18621 | { |
| @@ -18591,57 +18668,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18591 | 18668 | } |
| 18592 | 18669 | @end |
| 18593 | 18670 | |
| 18594 | -@implementation QTUshort | |
| 18595 | -+ (NSDictionary<NSString *, NSString *> *)properties | |
| 18596 | -{ | |
| 18597 | - static NSDictionary<NSString *, NSString *> *properties; | |
| 18598 | - return properties = properties ? properties : @{ | |
| 18599 | - @"ushort": @"ushort", | |
| 18600 | - }; | |
| 18601 | -} | |
| 18602 | - | |
| 18603 | -+ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 18604 | -{ | |
| 18605 | - return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil; | |
| 18606 | -} | |
| 18607 | - | |
| 18608 | -- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 18609 | -{ | |
| 18610 | - if (self = [super init]) { | |
| 18611 | - if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil; | |
| 18612 | - if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil; | |
| 18613 | - [self setValuesForKeysWithDictionary:dict]; | |
| 18614 | - } | |
| 18615 | - return self; | |
| 18616 | -} | |
| 18617 | - | |
| 18618 | -- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 18619 | -{ | |
| 18620 | - id resolved = QTUshort.properties[key]; | |
| 18621 | - if (resolved) [super setValue:value forKey:resolved]; | |
| 18622 | -} | |
| 18623 | - | |
| 18624 | -- (void)setNilValueForKey:(NSString *)key | |
| 18625 | -{ | |
| 18626 | - id resolved = QTUshort.properties[key]; | |
| 18627 | - if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 18628 | -} | |
| 18629 | - | |
| 18630 | -- (NSDictionary *)JSONDictionary | |
| 18631 | -{ | |
| 18632 | - return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues]; | |
| 18633 | -} | |
| 18634 | -@end | |
| 18635 | - | |
| 18636 | 18671 | @implementation QTObj6 |
| 18637 | 18672 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18638 | 18673 | { |
| 18639 | 18674 | static NSDictionary<NSString *, NSString *> *properties; |
| 18640 | 18675 | return properties = properties ? properties : @{ |
| 18641 | 18676 | @"dummy": @"dummy", |
| 18677 | + @"unsigned": @"obj6Unsigned", | |
| 18642 | 18678 | @"void": @"obj6Void", |
| 18643 | 18679 | @"volatile": @"obj6Volatile", |
| 18644 | 18680 | @"while": @"obj6While", |
| 18681 | + @"unsafe": @"unsafe", | |
| 18682 | + @"ushort": @"ushort", | |
| 18645 | 18683 | @"using": @"using", |
| 18646 | 18684 | @"Utf8JsonReader": @"utf8JSONReader", |
| 18647 | 18685 | @"Utf8JsonWriter": @"utf8JSONWriter", |
| @@ -18670,9 +18708,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18670 | 18708 | if (self = [super init]) { |
| 18671 | 18709 | if (![dict[@"dummy"] isKindOfClass:NSNumber.class]) return nil; |
| 18672 | 18710 | if ([dict[@"dummy"] doubleValue] != [dict[@"dummy"] longLongValue]) return nil; |
| 18711 | + if (![dict[@"unsigned"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18673 | 18712 | if (![dict[@"void"] isKindOfClass:NSDictionary.class]) return nil; |
| 18674 | 18713 | if (![dict[@"volatile"] isKindOfClass:NSDictionary.class]) return nil; |
| 18675 | 18714 | if (![dict[@"while"] isKindOfClass:NSDictionary.class]) return nil; |
| 18715 | + if (![dict[@"unsafe"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18716 | + if (![dict[@"ushort"] isKindOfClass:NSDictionary.class]) return nil; | |
| 18676 | 18717 | if (![dict[@"using"] isKindOfClass:NSDictionary.class]) return nil; |
| 18677 | 18718 | if (![dict[@"Utf8JsonReader"] isKindOfClass:NSDictionary.class]) return nil; |
| 18678 | 18719 | if (![dict[@"Utf8JsonWriter"] isKindOfClass:NSDictionary.class]) return nil; |
| @@ -18689,12 +18730,18 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18689 | 18730 | if (![dict[@"YES"] isKindOfClass:NSDictionary.class]) return nil; |
| 18690 | 18731 | if (![dict[@"yield"] isKindOfClass:NSDictionary.class]) return nil; |
| 18691 | 18732 | [self setValuesForKeysWithDictionary:dict]; |
| 18733 | + _obj6Unsigned = [QTUnsigned fromJSONDictionary:(id)_obj6Unsigned]; | |
| 18734 | + if (!_obj6Unsigned && dict[@"unsigned"] && ![dict[@"unsigned"] isKindOfClass:NSNull.class]) return nil; | |
| 18692 | 18735 | _obj6Void = [QTVoid fromJSONDictionary:(id)_obj6Void]; |
| 18693 | 18736 | if (!_obj6Void && dict[@"void"] && ![dict[@"void"] isKindOfClass:NSNull.class]) return nil; |
| 18694 | 18737 | _obj6Volatile = [QTVolatile fromJSONDictionary:(id)_obj6Volatile]; |
| 18695 | 18738 | if (!_obj6Volatile && dict[@"volatile"] && ![dict[@"volatile"] isKindOfClass:NSNull.class]) return nil; |
| 18696 | 18739 | _obj6While = [QTWhile fromJSONDictionary:(id)_obj6While]; |
| 18697 | 18740 | if (!_obj6While && dict[@"while"] && ![dict[@"while"] isKindOfClass:NSNull.class]) return nil; |
| 18741 | + _unsafe = [QTUnsafe fromJSONDictionary:(id)_unsafe]; | |
| 18742 | + if (!_unsafe && dict[@"unsafe"] && ![dict[@"unsafe"] isKindOfClass:NSNull.class]) return nil; | |
| 18743 | + _ushort = [QTUshort fromJSONDictionary:(id)_ushort]; | |
| 18744 | + if (!_ushort && dict[@"ushort"] && ![dict[@"ushort"] isKindOfClass:NSNull.class]) return nil; | |
| 18698 | 18745 | _using = [QTUsing fromJSONDictionary:(id)_using]; |
| 18699 | 18746 | if (!_using && dict[@"using"] && ![dict[@"using"] isKindOfClass:NSNull.class]) return nil; |
| 18700 | 18747 | _utf8JSONReader = [QTUtf8JSONReader fromJSONDictionary:(id)_utf8JSONReader]; |
| @@ -18754,9 +18801,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18754 | 18801 | } |
| 18755 | 18802 | |
| 18756 | 18803 | [dict addEntriesFromDictionary:@{ |
| 18804 | + @"unsigned": [_obj6Unsigned JSONDictionary], | |
| 18757 | 18805 | @"void": [_obj6Void JSONDictionary], |
| 18758 | 18806 | @"volatile": [_obj6Volatile JSONDictionary], |
| 18759 | 18807 | @"while": [_obj6While JSONDictionary], |
| 18808 | + @"unsafe": [_unsafe JSONDictionary], | |
| 18809 | + @"ushort": [_ushort JSONDictionary], | |
| 18760 | 18810 | @"using": [_using JSONDictionary], |
| 18761 | 18811 | @"Utf8JsonReader": [_utf8JSONReader JSONDictionary], |
| 18762 | 18812 | @"Utf8JsonWriter": [_utf8JSONWriter JSONDictionary], |
| @@ -18778,6 +18828,58 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18778 | 18828 | } |
| 18779 | 18829 | @end |
| 18780 | 18830 | |
| 18831 | +@implementation QTUnsigned | |
| 18832 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 18833 | +{ | |
| 18834 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 18835 | + return properties = properties ? properties : @{ | |
| 18836 | + @"unsigned": @"unsignedUnsigned", | |
| 18837 | + }; | |
| 18838 | +} | |
| 18839 | + | |
| 18840 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 18841 | +{ | |
| 18842 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsigned alloc] initWithJSONDictionary:dict] : nil; | |
| 18843 | +} | |
| 18844 | + | |
| 18845 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 18846 | +{ | |
| 18847 | + if (self = [super init]) { | |
| 18848 | + if (![dict[@"unsigned"] isKindOfClass:NSNumber.class]) return nil; | |
| 18849 | + if ([dict[@"unsigned"] doubleValue] != [dict[@"unsigned"] longLongValue]) return nil; | |
| 18850 | + [self setValuesForKeysWithDictionary:dict]; | |
| 18851 | + } | |
| 18852 | + return self; | |
| 18853 | +} | |
| 18854 | + | |
| 18855 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 18856 | +{ | |
| 18857 | + id resolved = QTUnsigned.properties[key]; | |
| 18858 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 18859 | +} | |
| 18860 | + | |
| 18861 | +- (void)setNilValueForKey:(NSString *)key | |
| 18862 | +{ | |
| 18863 | + id resolved = QTUnsigned.properties[key]; | |
| 18864 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 18865 | +} | |
| 18866 | + | |
| 18867 | +- (NSDictionary *)JSONDictionary | |
| 18868 | +{ | |
| 18869 | + id dict = [[self dictionaryWithValuesForKeys:QTUnsigned.properties.allValues] mutableCopy]; | |
| 18870 | + | |
| 18871 | + for (id jsonName in QTUnsigned.properties) { | |
| 18872 | + id propertyName = QTUnsigned.properties[jsonName]; | |
| 18873 | + if (![jsonName isEqualToString:propertyName]) { | |
| 18874 | + dict[jsonName] = dict[propertyName]; | |
| 18875 | + [dict removeObjectForKey:propertyName]; | |
| 18876 | + } | |
| 18877 | + } | |
| 18878 | + | |
| 18879 | + return dict; | |
| 18880 | +} | |
| 18881 | +@end | |
| 18882 | + | |
| 18781 | 18883 | @implementation QTVoid |
| 18782 | 18884 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18783 | 18885 | { |
| @@ -18934,6 +19036,90 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 18934 | 19036 | } |
| 18935 | 19037 | @end |
| 18936 | 19038 | |
| 19039 | +@implementation QTUnsafe | |
| 19040 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 19041 | +{ | |
| 19042 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 19043 | + return properties = properties ? properties : @{ | |
| 19044 | + @"unsafe": @"unsafe", | |
| 19045 | + }; | |
| 19046 | +} | |
| 19047 | + | |
| 19048 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 19049 | +{ | |
| 19050 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUnsafe alloc] initWithJSONDictionary:dict] : nil; | |
| 19051 | +} | |
| 19052 | + | |
| 19053 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 19054 | +{ | |
| 19055 | + if (self = [super init]) { | |
| 19056 | + if (![dict[@"unsafe"] isKindOfClass:NSNumber.class]) return nil; | |
| 19057 | + if ([dict[@"unsafe"] doubleValue] != [dict[@"unsafe"] longLongValue]) return nil; | |
| 19058 | + [self setValuesForKeysWithDictionary:dict]; | |
| 19059 | + } | |
| 19060 | + return self; | |
| 19061 | +} | |
| 19062 | + | |
| 19063 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 19064 | +{ | |
| 19065 | + id resolved = QTUnsafe.properties[key]; | |
| 19066 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 19067 | +} | |
| 19068 | + | |
| 19069 | +- (void)setNilValueForKey:(NSString *)key | |
| 19070 | +{ | |
| 19071 | + id resolved = QTUnsafe.properties[key]; | |
| 19072 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 19073 | +} | |
| 19074 | + | |
| 19075 | +- (NSDictionary *)JSONDictionary | |
| 19076 | +{ | |
| 19077 | + return [self dictionaryWithValuesForKeys:QTUnsafe.properties.allValues]; | |
| 19078 | +} | |
| 19079 | +@end | |
| 19080 | + | |
| 19081 | +@implementation QTUshort | |
| 19082 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 19083 | +{ | |
| 19084 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 19085 | + return properties = properties ? properties : @{ | |
| 19086 | + @"ushort": @"ushort", | |
| 19087 | + }; | |
| 19088 | +} | |
| 19089 | + | |
| 19090 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 19091 | +{ | |
| 19092 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTUshort alloc] initWithJSONDictionary:dict] : nil; | |
| 19093 | +} | |
| 19094 | + | |
| 19095 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 19096 | +{ | |
| 19097 | + if (self = [super init]) { | |
| 19098 | + if (![dict[@"ushort"] isKindOfClass:NSNumber.class]) return nil; | |
| 19099 | + if ([dict[@"ushort"] doubleValue] != [dict[@"ushort"] longLongValue]) return nil; | |
| 19100 | + [self setValuesForKeysWithDictionary:dict]; | |
| 19101 | + } | |
| 19102 | + return self; | |
| 19103 | +} | |
| 19104 | + | |
| 19105 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 19106 | +{ | |
| 19107 | + id resolved = QTUshort.properties[key]; | |
| 19108 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 19109 | +} | |
| 19110 | + | |
| 19111 | +- (void)setNilValueForKey:(NSString *)key | |
| 19112 | +{ | |
| 19113 | + id resolved = QTUshort.properties[key]; | |
| 19114 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 19115 | +} | |
| 19116 | + | |
| 19117 | +- (NSDictionary *)JSONDictionary | |
| 19118 | +{ | |
| 19119 | + return [self dictionaryWithValuesForKeys:QTUshort.properties.allValues]; | |
| 19120 | +} | |
| 19121 | +@end | |
| 19122 | + | |
| 18937 | 19123 | @implementation QTUsing |
| 18938 | 19124 | + (NSDictionary<NSString *, NSString *> *)properties |
| 18939 | 19125 | { |
Mphpdefault / TopLevel.php+2,622 −2,145
| @@ -21124,6 +21124,7 @@ class Obj3 { | ||
| 21124 | 21124 | private Left $left; // json:left Required |
| 21125 | 21125 | private Let $let; // json:let Required |
| 21126 | 21126 | private ListClass $list; // json:list Required |
| 21127 | + private LocalDate $localDate; // json:LocalDate Required | |
| 21127 | 21128 | private LocaleClass $locale; // json:Locale Required |
| 21128 | 21129 | private Lock $lock; // json:lock Required |
| 21129 | 21130 | private Long $long; // json:long Required |
| @@ -21139,7 +21140,6 @@ 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 |
| @@ -21191,6 +21191,7 @@ class Obj3 { | ||
| 21191 | 21191 | * @param Left $left |
| 21192 | 21192 | * @param Let $let |
| 21193 | 21193 | * @param ListClass $list |
| 21194 | + * @param LocalDate $localDate | |
| 21194 | 21195 | * @param LocaleClass $locale |
| 21195 | 21196 | * @param Lock $lock |
| 21196 | 21197 | * @param Long $long |
| @@ -21206,9 +21207,8 @@ 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, 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, LocalDate $localDate, 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 | 21213 | $this->guard = $guard; |
| 21214 | 21214 | $this->hasOwnProperty = $hasOwnProperty; |
| @@ -21258,6 +21258,7 @@ class Obj3 { | ||
| 21258 | 21258 | $this->left = $left; |
| 21259 | 21259 | $this->let = $let; |
| 21260 | 21260 | $this->list = $list; |
| 21261 | + $this->localDate = $localDate; | |
| 21261 | 21262 | $this->locale = $locale; |
| 21262 | 21263 | $this->lock = $lock; |
| 21263 | 21264 | $this->long = $long; |
| @@ -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 | /** |
| @@ -23627,6 +23627,54 @@ class Obj3 { | ||
| 23627 | 23627 | return ListClass::sample(); /*79:list*/ |
| 23628 | 23628 | } |
| 23629 | 23629 | |
| 23630 | + /** | |
| 23631 | + * @param stdClass $value | |
| 23632 | + * @throws Exception | |
| 23633 | + * @return LocalDate | |
| 23634 | + */ | |
| 23635 | + public static function fromLocalDate(stdClass $value): LocalDate { | |
| 23636 | + return LocalDate::from($value); /*class*/ | |
| 23637 | + } | |
| 23638 | + | |
| 23639 | + /** | |
| 23640 | + * @throws Exception | |
| 23641 | + * @return stdClass | |
| 23642 | + */ | |
| 23643 | + public function toLocalDate(): stdClass { | |
| 23644 | + if (Obj3::validateLocalDate($this->localDate)) { | |
| 23645 | + return $this->localDate->to(); /*class*/ | |
| 23646 | + } | |
| 23647 | + throw new Exception('never get to this Obj3::localDate'); | |
| 23648 | + } | |
| 23649 | + | |
| 23650 | + /** | |
| 23651 | + * @param LocalDate | |
| 23652 | + * @return bool | |
| 23653 | + * @throws Exception | |
| 23654 | + */ | |
| 23655 | + public static function validateLocalDate(LocalDate $value): bool { | |
| 23656 | + $value->validate(); | |
| 23657 | + return true; | |
| 23658 | + } | |
| 23659 | + | |
| 23660 | + /** | |
| 23661 | + * @throws Exception | |
| 23662 | + * @return LocalDate | |
| 23663 | + */ | |
| 23664 | + public function getLocalDate(): LocalDate { | |
| 23665 | + if (Obj3::validateLocalDate($this->localDate)) { | |
| 23666 | + return $this->localDate; | |
| 23667 | + } | |
| 23668 | + throw new Exception('never get to getLocalDate Obj3::localDate'); | |
| 23669 | + } | |
| 23670 | + | |
| 23671 | + /** | |
| 23672 | + * @return LocalDate | |
| 23673 | + */ | |
| 23674 | + public static function sampleLocalDate(): LocalDate { | |
| 23675 | + return LocalDate::sample(); /*80:localDate*/ | |
| 23676 | + } | |
| 23677 | + | |
| 23630 | 23678 | /** |
| 23631 | 23679 | * @param stdClass $value |
| 23632 | 23680 | * @throws Exception |
| @@ -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 | /** |
| @@ -24449,6 +24449,7 @@ class Obj3 { | ||
| 24449 | 24449 | || Obj3::validateLeft($this->left) |
| 24450 | 24450 | || Obj3::validateLet($this->let) |
| 24451 | 24451 | || Obj3::validateList($this->list) |
| 24452 | + || Obj3::validateLocalDate($this->localDate) | |
| 24452 | 24453 | || Obj3::validateLocale($this->locale) |
| 24453 | 24454 | || Obj3::validateLock($this->lock) |
| 24454 | 24455 | || Obj3::validateLong($this->long) |
| @@ -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 | /** |
| @@ -24522,6 +24522,7 @@ class Obj3 { | ||
| 24522 | 24522 | $out->{'left'} = $this->toLeft(); |
| 24523 | 24523 | $out->{'let'} = $this->toLet(); |
| 24524 | 24524 | $out->{'list'} = $this->toList(); |
| 24525 | + $out->{'LocalDate'} = $this->toLocalDate(); | |
| 24525 | 24526 | $out->{'Locale'} = $this->toLocale(); |
| 24526 | 24527 | $out->{'lock'} = $this->toLock(); |
| 24527 | 24528 | $out->{'long'} = $this->toLong(); |
| @@ -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 | |
| @@ -24694,6 +24694,9 @@ class Obj3 { | ||
| 24694 | 24694 | if (!property_exists($obj, 'list')) { |
| 24695 | 24695 | throw new Exception("Missing required property"); |
| 24696 | 24696 | } |
| 24697 | + if (!property_exists($obj, 'LocalDate')) { | |
| 24698 | + throw new Exception("Missing required property"); | |
| 24699 | + } | |
| 24697 | 24700 | if (!property_exists($obj, 'Locale')) { |
| 24698 | 24701 | throw new Exception("Missing required property"); |
| 24699 | 24702 | } |
| @@ -24739,9 +24742,6 @@ 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 | 24747 | ,Obj3::fromGuard($obj->{'guard'}) |
| @@ -24792,6 +24792,7 @@ class Obj3 { | ||
| 24792 | 24792 | ,Obj3::fromLeft($obj->{'left'}) |
| 24793 | 24793 | ,Obj3::fromLet($obj->{'let'}) |
| 24794 | 24794 | ,Obj3::fromList($obj->{'list'}) |
| 24795 | + ,Obj3::fromLocalDate($obj->{'LocalDate'}) | |
| 24795 | 24796 | ,Obj3::fromLocale($obj->{'Locale'}) |
| 24796 | 24797 | ,Obj3::fromLock($obj->{'lock'}) |
| 24797 | 24798 | ,Obj3::fromLong($obj->{'long'}) |
| @@ -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 | |
| @@ -24865,6 +24865,7 @@ class Obj3 { | ||
| 24865 | 24865 | ,Obj3::sampleLeft() |
| 24866 | 24866 | ,Obj3::sampleLet() |
| 24867 | 24867 | ,Obj3::sampleList() |
| 24868 | + ,Obj3::sampleLocalDate() | |
| 24868 | 24869 | ,Obj3::sampleLocale() |
| 24869 | 24870 | ,Obj3::sampleLock() |
| 24870 | 24871 | ,Obj3::sampleLong() |
| @@ -24880,7 +24881,6 @@ class Obj3 { | ||
| 24880 | 24881 | ,Obj3::sampleNewtonsoft() |
| 24881 | 24882 | ,Obj3::sampleNil() |
| 24882 | 24883 | ,Obj3::sampleNo() |
| 24883 | - ,Obj3::sampleNoexcept() | |
| 24884 | 24884 | ); |
| 24885 | 24885 | } |
| 24886 | 24886 | } |
| @@ -29736,6 +29736,107 @@ class ListClass { | ||
| 29736 | 29736 | } |
| 29737 | 29737 | } |
| 29738 | 29738 | |
| 29739 | +// This is an autogenerated file:LocalDate | |
| 29740 | + | |
| 29741 | +class LocalDate { | |
| 29742 | + private int $localDate; // json:LocalDate Required | |
| 29743 | + | |
| 29744 | + /** | |
| 29745 | + * @param int $localDate | |
| 29746 | + */ | |
| 29747 | + public function __construct(int $localDate) { | |
| 29748 | + $this->localDate = $localDate; | |
| 29749 | + } | |
| 29750 | + | |
| 29751 | + /** | |
| 29752 | + * @param int $value | |
| 29753 | + * @throws Exception | |
| 29754 | + * @return int | |
| 29755 | + */ | |
| 29756 | + public static function fromLocalDate(int $value): int { | |
| 29757 | + return $value; /*int*/ | |
| 29758 | + } | |
| 29759 | + | |
| 29760 | + /** | |
| 29761 | + * @throws Exception | |
| 29762 | + * @return int | |
| 29763 | + */ | |
| 29764 | + public function toLocalDate(): int { | |
| 29765 | + if (LocalDate::validateLocalDate($this->localDate)) { | |
| 29766 | + return $this->localDate; /*int*/ | |
| 29767 | + } | |
| 29768 | + throw new Exception('never get to this LocalDate::localDate'); | |
| 29769 | + } | |
| 29770 | + | |
| 29771 | + /** | |
| 29772 | + * @param int | |
| 29773 | + * @return bool | |
| 29774 | + * @throws Exception | |
| 29775 | + */ | |
| 29776 | + public static function validateLocalDate(int $value): bool { | |
| 29777 | + return true; | |
| 29778 | + } | |
| 29779 | + | |
| 29780 | + /** | |
| 29781 | + * @throws Exception | |
| 29782 | + * @return int | |
| 29783 | + */ | |
| 29784 | + public function getLocalDate(): int { | |
| 29785 | + if (LocalDate::validateLocalDate($this->localDate)) { | |
| 29786 | + return $this->localDate; | |
| 29787 | + } | |
| 29788 | + throw new Exception('never get to getLocalDate LocalDate::localDate'); | |
| 29789 | + } | |
| 29790 | + | |
| 29791 | + /** | |
| 29792 | + * @return int | |
| 29793 | + */ | |
| 29794 | + public static function sampleLocalDate(): int { | |
| 29795 | + return 31; /*31:localDate*/ | |
| 29796 | + } | |
| 29797 | + | |
| 29798 | + /** | |
| 29799 | + * @throws Exception | |
| 29800 | + * @return bool | |
| 29801 | + */ | |
| 29802 | + public function validate(): bool { | |
| 29803 | + return LocalDate::validateLocalDate($this->localDate); | |
| 29804 | + } | |
| 29805 | + | |
| 29806 | + /** | |
| 29807 | + * @return stdClass | |
| 29808 | + * @throws Exception | |
| 29809 | + */ | |
| 29810 | + public function to(): stdClass { | |
| 29811 | + $out = new stdClass(); | |
| 29812 | + $out->{'LocalDate'} = $this->toLocalDate(); | |
| 29813 | + return $out; | |
| 29814 | + } | |
| 29815 | + | |
| 29816 | + /** | |
| 29817 | + * @param stdClass $obj | |
| 29818 | + * @return LocalDate | |
| 29819 | + * @throws Exception | |
| 29820 | + */ | |
| 29821 | + public static function from(stdClass $obj): LocalDate { | |
| 29822 | + if (!property_exists($obj, 'LocalDate')) { | |
| 29823 | + throw new Exception("Missing required property"); | |
| 29824 | + } | |
| 29825 | + return new LocalDate( | |
| 29826 | + LocalDate::fromLocalDate($obj->{'LocalDate'}) | |
| 29827 | + ); | |
| 29828 | + } | |
| 29829 | + | |
| 29830 | + /** | |
| 29831 | + * @return LocalDate | |
| 29832 | + */ | |
| 29833 | + public static function sample(): LocalDate { | |
| 29834 | + return new LocalDate( | |
| 29835 | + LocalDate::sampleLocalDate() | |
| 29836 | + ); | |
| 29837 | + } | |
| 29838 | +} | |
| 29839 | + | |
| 29739 | 29840 | // This is an autogenerated file:LocaleClass |
| 29740 | 29841 | |
| 29741 | 29842 | class LocaleClass { |
| @@ -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 |
| @@ -31375,6 +31376,8 @@ class Obj4 { | ||
| 31375 | 31376 | private ObjectClass $object; // json:object Required |
| 31376 | 31377 | private ObjectMapper $objectMapper; // json:ObjectMapper Required |
| 31377 | 31378 | private Of $of; // json:of Required |
| 31379 | + private OffsetDateTime $offsetDateTime; // json:OffsetDateTime Required | |
| 31380 | + private OffsetTime $offsetTime; // json:OffsetTime Required | |
| 31378 | 31381 | private Oneway $oneway; // json:oneway Required |
| 31379 | 31382 | private Open $open; // json:open Required |
| 31380 | 31383 | private Operator $operator; // json:operator 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 |
| @@ -31442,6 +31443,8 @@ class Obj4 { | ||
| 31442 | 31443 | * @param ObjectClass $object |
| 31443 | 31444 | * @param ObjectMapper $objectMapper |
| 31444 | 31445 | * @param Of $of |
| 31446 | + * @param OffsetDateTime $offsetDateTime | |
| 31447 | + * @param OffsetTime $offsetTime | |
| 31445 | 31448 | * @param Oneway $oneway |
| 31446 | 31449 | * @param Open $open |
| 31447 | 31450 | * @param Operator $operator |
| @@ -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, Of $of, OffsetDateTime $offsetDateTime, OffsetTime $offsetTime, 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; |
| @@ -31509,6 +31510,8 @@ class Obj4 { | ||
| 31509 | 31510 | $this->object = $object; |
| 31510 | 31511 | $this->objectMapper = $objectMapper; |
| 31511 | 31512 | $this->of = $of; |
| 31513 | + $this->offsetDateTime = $offsetDateTime; | |
| 31514 | + $this->offsetTime = $offsetTime; | |
| 31512 | 31515 | $this->oneway = $oneway; |
| 31513 | 31516 | $this->open = $open; |
| 31514 | 31517 | $this->operator = $operator; |
| @@ -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,7 @@ 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*/ | |
| 32468 | 32516 | } |
| 32469 | 32517 | |
| 32470 | 32518 | /** |
| @@ -32512,7 +32560,103 @@ class Obj4 { | ||
| 32512 | 32560 | * @return Of |
| 32513 | 32561 | */ |
| 32514 | 32562 | public static function sampleOf(): Of { |
| 32515 | - return Of::sample(); /*50:of*/ | |
| 32563 | + return Of::sample(); /*51:of*/ | |
| 32564 | + } | |
| 32565 | + | |
| 32566 | + /** | |
| 32567 | + * @param stdClass $value | |
| 32568 | + * @throws Exception | |
| 32569 | + * @return OffsetDateTime | |
| 32570 | + */ | |
| 32571 | + public static function fromOffsetDateTime(stdClass $value): OffsetDateTime { | |
| 32572 | + return OffsetDateTime::from($value); /*class*/ | |
| 32573 | + } | |
| 32574 | + | |
| 32575 | + /** | |
| 32576 | + * @throws Exception | |
| 32577 | + * @return stdClass | |
| 32578 | + */ | |
| 32579 | + public function toOffsetDateTime(): stdClass { | |
| 32580 | + if (Obj4::validateOffsetDateTime($this->offsetDateTime)) { | |
| 32581 | + return $this->offsetDateTime->to(); /*class*/ | |
| 32582 | + } | |
| 32583 | + throw new Exception('never get to this Obj4::offsetDateTime'); | |
| 32584 | + } | |
| 32585 | + | |
| 32586 | + /** | |
| 32587 | + * @param OffsetDateTime | |
| 32588 | + * @return bool | |
| 32589 | + * @throws Exception | |
| 32590 | + */ | |
| 32591 | + public static function validateOffsetDateTime(OffsetDateTime $value): bool { | |
| 32592 | + $value->validate(); | |
| 32593 | + return true; | |
| 32594 | + } | |
| 32595 | + | |
| 32596 | + /** | |
| 32597 | + * @throws Exception | |
| 32598 | + * @return OffsetDateTime | |
| 32599 | + */ | |
| 32600 | + public function getOffsetDateTime(): OffsetDateTime { | |
| 32601 | + if (Obj4::validateOffsetDateTime($this->offsetDateTime)) { | |
| 32602 | + return $this->offsetDateTime; | |
| 32603 | + } | |
| 32604 | + throw new Exception('never get to getOffsetDateTime Obj4::offsetDateTime'); | |
| 32605 | + } | |
| 32606 | + | |
| 32607 | + /** | |
| 32608 | + * @return OffsetDateTime | |
| 32609 | + */ | |
| 32610 | + public static function sampleOffsetDateTime(): OffsetDateTime { | |
| 32611 | + return OffsetDateTime::sample(); /*52:offsetDateTime*/ | |
| 32612 | + } | |
| 32613 | + | |
| 32614 | + /** | |
| 32615 | + * @param stdClass $value | |
| 32616 | + * @throws Exception | |
| 32617 | + * @return OffsetTime | |
| 32618 | + */ | |
| 32619 | + public static function fromOffsetTime(stdClass $value): OffsetTime { | |
| 32620 | + return OffsetTime::from($value); /*class*/ | |
| 32621 | + } | |
| 32622 | + | |
| 32623 | + /** | |
| 32624 | + * @throws Exception | |
| 32625 | + * @return stdClass | |
| 32626 | + */ | |
| 32627 | + public function toOffsetTime(): stdClass { | |
| 32628 | + if (Obj4::validateOffsetTime($this->offsetTime)) { | |
| 32629 | + return $this->offsetTime->to(); /*class*/ | |
| 32630 | + } | |
| 32631 | + throw new Exception('never get to this Obj4::offsetTime'); | |
| 32632 | + } | |
| 32633 | + | |
| 32634 | + /** | |
| 32635 | + * @param OffsetTime | |
| 32636 | + * @return bool | |
| 32637 | + * @throws Exception | |
| 32638 | + */ | |
| 32639 | + public static function validateOffsetTime(OffsetTime $value): bool { | |
| 32640 | + $value->validate(); | |
| 32641 | + return true; | |
| 32642 | + } | |
| 32643 | + | |
| 32644 | + /** | |
| 32645 | + * @throws Exception | |
| 32646 | + * @return OffsetTime | |
| 32647 | + */ | |
| 32648 | + public function getOffsetTime(): OffsetTime { | |
| 32649 | + if (Obj4::validateOffsetTime($this->offsetTime)) { | |
| 32650 | + return $this->offsetTime; | |
| 32651 | + } | |
| 32652 | + throw new Exception('never get to getOffsetTime Obj4::offsetTime'); | |
| 32653 | + } | |
| 32654 | + | |
| 32655 | + /** | |
| 32656 | + * @return OffsetTime | |
| 32657 | + */ | |
| 32658 | + public static function sampleOffsetTime(): OffsetTime { | |
| 32659 | + return OffsetTime::sample(); /*53:offsetTime*/ | |
| 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) |
| @@ -34700,6 +34701,8 @@ class Obj4 { | ||
| 34700 | 34701 | || Obj4::validateObject($this->object) |
| 34701 | 34702 | || Obj4::validateObjectMapper($this->objectMapper) |
| 34702 | 34703 | || Obj4::validateOf($this->of) |
| 34704 | + || Obj4::validateOffsetDateTime($this->offsetDateTime) | |
| 34705 | + || Obj4::validateOffsetTime($this->offsetTime) | |
| 34703 | 34706 | || Obj4::validateOneway($this->oneway) |
| 34704 | 34707 | || Obj4::validateOpen($this->open) |
| 34705 | 34708 | || Obj4::validateOperator($this->operator) |
| @@ -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(); |
| @@ -34773,6 +34774,8 @@ class Obj4 { | ||
| 34773 | 34774 | $out->{'object'} = $this->toObject(); |
| 34774 | 34775 | $out->{'ObjectMapper'} = $this->toObjectMapper(); |
| 34775 | 34776 | $out->{'of'} = $this->toOf(); |
| 34777 | + $out->{'OffsetDateTime'} = $this->toOffsetDateTime(); | |
| 34778 | + $out->{'OffsetTime'} = $this->toOffsetTime(); | |
| 34776 | 34779 | $out->{'oneway'} = $this->toOneway(); |
| 34777 | 34780 | $out->{'open'} = $this->toOpen(); |
| 34778 | 34781 | $out->{'operator'} = $this->toOperator(); |
| @@ -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 | } |
| @@ -34887,13 +34890,19 @@ class Obj4 { | ||
| 34887 | 34890 | if (!property_exists($obj, 'of')) { |
| 34888 | 34891 | throw new Exception("Missing required property"); |
| 34889 | 34892 | } |
| 34890 | - if (!property_exists($obj, 'oneway')) { | |
| 34893 | + if (!property_exists($obj, 'OffsetDateTime')) { | |
| 34891 | 34894 | throw new Exception("Missing required property"); |
| 34892 | 34895 | } |
| 34893 | - if (!property_exists($obj, 'open')) { | |
| 34896 | + if (!property_exists($obj, 'OffsetTime')) { | |
| 34894 | 34897 | throw new Exception("Missing required property"); |
| 34895 | 34898 | } |
| 34896 | - if (!property_exists($obj, 'operator')) { | |
| 34899 | + if (!property_exists($obj, 'oneway')) { | |
| 34900 | + throw new Exception("Missing required property"); | |
| 34901 | + } | |
| 34902 | + if (!property_exists($obj, 'open')) { | |
| 34903 | + throw new Exception("Missing required property"); | |
| 34904 | + } | |
| 34905 | + if (!property_exists($obj, 'operator')) { | |
| 34897 | 34906 | throw new Exception("Missing required property"); |
| 34898 | 34907 | } |
| 34899 | 34908 | if (!property_exists($obj, 'optional')) { |
| @@ -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'}) |
| @@ -35043,6 +35044,8 @@ class Obj4 { | ||
| 35043 | 35044 | ,Obj4::fromObject($obj->{'object'}) |
| 35044 | 35045 | ,Obj4::fromObjectMapper($obj->{'ObjectMapper'}) |
| 35045 | 35046 | ,Obj4::fromOf($obj->{'of'}) |
| 35047 | + ,Obj4::fromOffsetDateTime($obj->{'OffsetDateTime'}) | |
| 35048 | + ,Obj4::fromOffsetTime($obj->{'OffsetTime'}) | |
| 35046 | 35049 | ,Obj4::fromOneway($obj->{'oneway'}) |
| 35047 | 35050 | ,Obj4::fromOpen($obj->{'open'}) |
| 35048 | 35051 | ,Obj4::fromOperator($obj->{'operator'}) |
| @@ -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() |
| @@ -35116,6 +35117,8 @@ class Obj4 { | ||
| 35116 | 35117 | ,Obj4::sampleObject() |
| 35117 | 35118 | ,Obj4::sampleObjectMapper() |
| 35118 | 35119 | ,Obj4::sampleOf() |
| 35120 | + ,Obj4::sampleOffsetDateTime() | |
| 35121 | + ,Obj4::sampleOffsetTime() | |
| 35119 | 35122 | ,Obj4::sampleOneway() |
| 35120 | 35123 | ,Obj4::sampleOpen() |
| 35121 | 35124 | ,Obj4::sampleOperator() |
| @@ -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 { |
| @@ -37084,16 +37185,16 @@ class Of { | ||
| 37084 | 37185 | } |
| 37085 | 37186 | } |
| 37086 | 37187 | |
| 37087 | -// This is an autogenerated file:Oneway | |
| 37188 | +// This is an autogenerated file:OffsetDateTime | |
| 37088 | 37189 | |
| 37089 | -class Oneway { | |
| 37090 | - private int $oneway; // json:oneway Required | |
| 37190 | +class OffsetDateTime { | |
| 37191 | + private int $offsetDateTime; // json:OffsetDateTime Required | |
| 37091 | 37192 | |
| 37092 | 37193 | /** |
| 37093 | - * @param int $oneway | |
| 37194 | + * @param int $offsetDateTime | |
| 37094 | 37195 | */ |
| 37095 | - public function __construct(int $oneway) { | |
| 37096 | - $this->oneway = $oneway; | |
| 37196 | + public function __construct(int $offsetDateTime) { | |
| 37197 | + $this->offsetDateTime = $offsetDateTime; | |
| 37097 | 37198 | } |
| 37098 | 37199 | |
| 37099 | 37200 | /** |
| @@ -37101,7 +37202,7 @@ class Oneway { | ||
| 37101 | 37202 | * @throws Exception |
| 37102 | 37203 | * @return int |
| 37103 | 37204 | */ |
| 37104 | - public static function fromOneway(int $value): int { | |
| 37205 | + public static function fromOffsetDateTime(int $value): int { | |
| 37105 | 37206 | return $value; /*int*/ |
| 37106 | 37207 | } |
| 37107 | 37208 | |
| @@ -37109,11 +37210,11 @@ class Oneway { | ||
| 37109 | 37210 | * @throws Exception |
| 37110 | 37211 | * @return int |
| 37111 | 37212 | */ |
| 37112 | - public function toOneway(): int { | |
| 37113 | - if (Oneway::validateOneway($this->oneway)) { | |
| 37114 | - return $this->oneway; /*int*/ | |
| 37213 | + public function toOffsetDateTime(): int { | |
| 37214 | + if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) { | |
| 37215 | + return $this->offsetDateTime; /*int*/ | |
| 37115 | 37216 | } |
| 37116 | - throw new Exception('never get to this Oneway::oneway'); | |
| 37217 | + throw new Exception('never get to this OffsetDateTime::offsetDateTime'); | |
| 37117 | 37218 | } |
| 37118 | 37219 | |
| 37119 | 37220 | /** |
| @@ -37121,7 +37222,7 @@ class Oneway { | ||
| 37121 | 37222 | * @return bool |
| 37122 | 37223 | * @throws Exception |
| 37123 | 37224 | */ |
| 37124 | - public static function validateOneway(int $value): bool { | |
| 37225 | + public static function validateOffsetDateTime(int $value): bool { | |
| 37125 | 37226 | return true; |
| 37126 | 37227 | } |
| 37127 | 37228 | |
| @@ -37129,18 +37230,18 @@ class Oneway { | ||
| 37129 | 37230 | * @throws Exception |
| 37130 | 37231 | * @return int |
| 37131 | 37232 | */ |
| 37132 | - public function getOneway(): int { | |
| 37133 | - if (Oneway::validateOneway($this->oneway)) { | |
| 37134 | - return $this->oneway; | |
| 37233 | + public function getOffsetDateTime(): int { | |
| 37234 | + if (OffsetDateTime::validateOffsetDateTime($this->offsetDateTime)) { | |
| 37235 | + return $this->offsetDateTime; | |
| 37135 | 37236 | } |
| 37136 | - throw new Exception('never get to getOneway Oneway::oneway'); | |
| 37237 | + throw new Exception('never get to getOffsetDateTime OffsetDateTime::offsetDateTime'); | |
| 37137 | 37238 | } |
| 37138 | 37239 | |
| 37139 | 37240 | /** |
| 37140 | 37241 | * @return int |
| 37141 | 37242 | */ |
| 37142 | - public static function sampleOneway(): int { | |
| 37143 | - return 31; /*31:oneway*/ | |
| 37243 | + public static function sampleOffsetDateTime(): int { | |
| 37244 | + return 31; /*31:offsetDateTime*/ | |
| 37144 | 37245 | } |
| 37145 | 37246 | |
| 37146 | 37247 | /** |
| @@ -37148,7 +37249,7 @@ class Oneway { | ||
| 37148 | 37249 | * @return bool |
| 37149 | 37250 | */ |
| 37150 | 37251 | public function validate(): bool { |
| 37151 | - return Oneway::validateOneway($this->oneway); | |
| 37252 | + return OffsetDateTime::validateOffsetDateTime($this->offsetDateTime); | |
| 37152 | 37253 | } |
| 37153 | 37254 | |
| 37154 | 37255 | /** |
| @@ -37157,44 +37258,44 @@ class Oneway { | ||
| 37157 | 37258 | */ |
| 37158 | 37259 | public function to(): stdClass { |
| 37159 | 37260 | $out = new stdClass(); |
| 37160 | - $out->{'oneway'} = $this->toOneway(); | |
| 37261 | + $out->{'OffsetDateTime'} = $this->toOffsetDateTime(); | |
| 37161 | 37262 | return $out; |
| 37162 | 37263 | } |
| 37163 | 37264 | |
| 37164 | 37265 | /** |
| 37165 | 37266 | * @param stdClass $obj |
| 37166 | - * @return Oneway | |
| 37267 | + * @return OffsetDateTime | |
| 37167 | 37268 | * @throws Exception |
| 37168 | 37269 | */ |
| 37169 | - public static function from(stdClass $obj): Oneway { | |
| 37170 | - if (!property_exists($obj, 'oneway')) { | |
| 37270 | + public static function from(stdClass $obj): OffsetDateTime { | |
| 37271 | + if (!property_exists($obj, 'OffsetDateTime')) { | |
| 37171 | 37272 | throw new Exception("Missing required property"); |
| 37172 | 37273 | } |
| 37173 | - return new Oneway( | |
| 37174 | - Oneway::fromOneway($obj->{'oneway'}) | |
| 37274 | + return new OffsetDateTime( | |
| 37275 | + OffsetDateTime::fromOffsetDateTime($obj->{'OffsetDateTime'}) | |
| 37175 | 37276 | ); |
| 37176 | 37277 | } |
| 37177 | 37278 | |
| 37178 | 37279 | /** |
| 37179 | - * @return Oneway | |
| 37280 | + * @return OffsetDateTime | |
| 37180 | 37281 | */ |
| 37181 | - public static function sample(): Oneway { | |
| 37182 | - return new Oneway( | |
| 37183 | - Oneway::sampleOneway() | |
| 37282 | + public static function sample(): OffsetDateTime { | |
| 37283 | + return new OffsetDateTime( | |
| 37284 | + OffsetDateTime::sampleOffsetDateTime() | |
| 37184 | 37285 | ); |
| 37185 | 37286 | } |
| 37186 | 37287 | } |
| 37187 | 37288 | |
| 37188 | -// This is an autogenerated file:Open | |
| 37289 | +// This is an autogenerated file:OffsetTime | |
| 37189 | 37290 | |
| 37190 | -class Open { | |
| 37191 | - private int $open; // json:open Required | |
| 37291 | +class OffsetTime { | |
| 37292 | + private int $offsetTime; // json:OffsetTime Required | |
| 37192 | 37293 | |
| 37193 | 37294 | /** |
| 37194 | - * @param int $open | |
| 37295 | + * @param int $offsetTime | |
| 37195 | 37296 | */ |
| 37196 | - public function __construct(int $open) { | |
| 37197 | - $this->open = $open; | |
| 37297 | + public function __construct(int $offsetTime) { | |
| 37298 | + $this->offsetTime = $offsetTime; | |
| 37198 | 37299 | } |
| 37199 | 37300 | |
| 37200 | 37301 | /** |
| @@ -37202,7 +37303,7 @@ class Open { | ||
| 37202 | 37303 | * @throws Exception |
| 37203 | 37304 | * @return int |
| 37204 | 37305 | */ |
| 37205 | - public static function fromOpen(int $value): int { | |
| 37306 | + public static function fromOffsetTime(int $value): int { | |
| 37206 | 37307 | return $value; /*int*/ |
| 37207 | 37308 | } |
| 37208 | 37309 | |
| @@ -37210,11 +37311,11 @@ class Open { | ||
| 37210 | 37311 | * @throws Exception |
| 37211 | 37312 | * @return int |
| 37212 | 37313 | */ |
| 37213 | - public function toOpen(): int { | |
| 37214 | - if (Open::validateOpen($this->open)) { | |
| 37215 | - return $this->open; /*int*/ | |
| 37314 | + public function toOffsetTime(): int { | |
| 37315 | + if (OffsetTime::validateOffsetTime($this->offsetTime)) { | |
| 37316 | + return $this->offsetTime; /*int*/ | |
| 37216 | 37317 | } |
| 37217 | - throw new Exception('never get to this Open::open'); | |
| 37318 | + throw new Exception('never get to this OffsetTime::offsetTime'); | |
| 37218 | 37319 | } |
| 37219 | 37320 | |
| 37220 | 37321 | /** |
| @@ -37222,7 +37323,7 @@ class Open { | ||
| 37222 | 37323 | * @return bool |
| 37223 | 37324 | * @throws Exception |
| 37224 | 37325 | */ |
| 37225 | - public static function validateOpen(int $value): bool { | |
| 37326 | + public static function validateOffsetTime(int $value): bool { | |
| 37226 | 37327 | return true; |
| 37227 | 37328 | } |
| 37228 | 37329 | |
| @@ -37230,18 +37331,18 @@ class Open { | ||
| 37230 | 37331 | * @throws Exception |
| 37231 | 37332 | * @return int |
| 37232 | 37333 | */ |
| 37233 | - public function getOpen(): int { | |
| 37234 | - if (Open::validateOpen($this->open)) { | |
| 37235 | - return $this->open; | |
| 37334 | + public function getOffsetTime(): int { | |
| 37335 | + if (OffsetTime::validateOffsetTime($this->offsetTime)) { | |
| 37336 | + return $this->offsetTime; | |
| 37236 | 37337 | } |
| 37237 | - throw new Exception('never get to getOpen Open::open'); | |
| 37338 | + throw new Exception('never get to getOffsetTime OffsetTime::offsetTime'); | |
| 37238 | 37339 | } |
| 37239 | 37340 | |
| 37240 | 37341 | /** |
| 37241 | 37342 | * @return int |
| 37242 | 37343 | */ |
| 37243 | - public static function sampleOpen(): int { | |
| 37244 | - return 31; /*31:open*/ | |
| 37344 | + public static function sampleOffsetTime(): int { | |
| 37345 | + return 31; /*31:offsetTime*/ | |
| 37245 | 37346 | } |
| 37246 | 37347 | |
| 37247 | 37348 | /** |
| @@ -37249,7 +37350,7 @@ class Open { | ||
| 37249 | 37350 | * @return bool |
| 37250 | 37351 | */ |
| 37251 | 37352 | public function validate(): bool { |
| 37252 | - return Open::validateOpen($this->open); | |
| 37353 | + return OffsetTime::validateOffsetTime($this->offsetTime); | |
| 37253 | 37354 | } |
| 37254 | 37355 | |
| 37255 | 37356 | /** |
| @@ -37258,44 +37359,44 @@ class Open { | ||
| 37258 | 37359 | */ |
| 37259 | 37360 | public function to(): stdClass { |
| 37260 | 37361 | $out = new stdClass(); |
| 37261 | - $out->{'open'} = $this->toOpen(); | |
| 37362 | + $out->{'OffsetTime'} = $this->toOffsetTime(); | |
| 37262 | 37363 | return $out; |
| 37263 | 37364 | } |
| 37264 | 37365 | |
| 37265 | 37366 | /** |
| 37266 | 37367 | * @param stdClass $obj |
| 37267 | - * @return Open | |
| 37368 | + * @return OffsetTime | |
| 37268 | 37369 | * @throws Exception |
| 37269 | 37370 | */ |
| 37270 | - public static function from(stdClass $obj): Open { | |
| 37271 | - if (!property_exists($obj, 'open')) { | |
| 37371 | + public static function from(stdClass $obj): OffsetTime { | |
| 37372 | + if (!property_exists($obj, 'OffsetTime')) { | |
| 37272 | 37373 | throw new Exception("Missing required property"); |
| 37273 | 37374 | } |
| 37274 | - return new Open( | |
| 37275 | - Open::fromOpen($obj->{'open'}) | |
| 37375 | + return new OffsetTime( | |
| 37376 | + OffsetTime::fromOffsetTime($obj->{'OffsetTime'}) | |
| 37276 | 37377 | ); |
| 37277 | 37378 | } |
| 37278 | 37379 | |
| 37279 | 37380 | /** |
| 37280 | - * @return Open | |
| 37381 | + * @return OffsetTime | |
| 37281 | 37382 | */ |
| 37282 | - public static function sample(): Open { | |
| 37283 | - return new Open( | |
| 37284 | - Open::sampleOpen() | |
| 37383 | + public static function sample(): OffsetTime { | |
| 37384 | + return new OffsetTime( | |
| 37385 | + OffsetTime::sampleOffsetTime() | |
| 37285 | 37386 | ); |
| 37286 | 37387 | } |
| 37287 | 37388 | } |
| 37288 | 37389 | |
| 37289 | -// This is an autogenerated file:Operator | |
| 37390 | +// This is an autogenerated file:Oneway | |
| 37290 | 37391 | |
| 37291 | -class Operator { | |
| 37292 | - private int $operator; // json:operator Required | |
| 37392 | +class Oneway { | |
| 37393 | + private int $oneway; // json:oneway Required | |
| 37293 | 37394 | |
| 37294 | 37395 | /** |
| 37295 | - * @param int $operator | |
| 37396 | + * @param int $oneway | |
| 37296 | 37397 | */ |
| 37297 | - public function __construct(int $operator) { | |
| 37298 | - $this->operator = $operator; | |
| 37398 | + public function __construct(int $oneway) { | |
| 37399 | + $this->oneway = $oneway; | |
| 37299 | 37400 | } |
| 37300 | 37401 | |
| 37301 | 37402 | /** |
| @@ -37303,7 +37404,7 @@ class Operator { | ||
| 37303 | 37404 | * @throws Exception |
| 37304 | 37405 | * @return int |
| 37305 | 37406 | */ |
| 37306 | - public static function fromOperator(int $value): int { | |
| 37407 | + public static function fromOneway(int $value): int { | |
| 37307 | 37408 | return $value; /*int*/ |
| 37308 | 37409 | } |
| 37309 | 37410 | |
| @@ -37311,11 +37412,11 @@ class Operator { | ||
| 37311 | 37412 | * @throws Exception |
| 37312 | 37413 | * @return int |
| 37313 | 37414 | */ |
| 37314 | - public function toOperator(): int { | |
| 37315 | - if (Operator::validateOperator($this->operator)) { | |
| 37316 | - return $this->operator; /*int*/ | |
| 37415 | + public function toOneway(): int { | |
| 37416 | + if (Oneway::validateOneway($this->oneway)) { | |
| 37417 | + return $this->oneway; /*int*/ | |
| 37317 | 37418 | } |
| 37318 | - throw new Exception('never get to this Operator::operator'); | |
| 37419 | + throw new Exception('never get to this Oneway::oneway'); | |
| 37319 | 37420 | } |
| 37320 | 37421 | |
| 37321 | 37422 | /** |
| @@ -37323,7 +37424,7 @@ class Operator { | ||
| 37323 | 37424 | * @return bool |
| 37324 | 37425 | * @throws Exception |
| 37325 | 37426 | */ |
| 37326 | - public static function validateOperator(int $value): bool { | |
| 37427 | + public static function validateOneway(int $value): bool { | |
| 37327 | 37428 | return true; |
| 37328 | 37429 | } |
| 37329 | 37430 | |
| @@ -37331,18 +37432,18 @@ class Operator { | ||
| 37331 | 37432 | * @throws Exception |
| 37332 | 37433 | * @return int |
| 37333 | 37434 | */ |
| 37334 | - public function getOperator(): int { | |
| 37335 | - if (Operator::validateOperator($this->operator)) { | |
| 37336 | - return $this->operator; | |
| 37435 | + public function getOneway(): int { | |
| 37436 | + if (Oneway::validateOneway($this->oneway)) { | |
| 37437 | + return $this->oneway; | |
| 37337 | 37438 | } |
| 37338 | - throw new Exception('never get to getOperator Operator::operator'); | |
| 37439 | + throw new Exception('never get to getOneway Oneway::oneway'); | |
| 37339 | 37440 | } |
| 37340 | 37441 | |
| 37341 | 37442 | /** |
| 37342 | 37443 | * @return int |
| 37343 | 37444 | */ |
| 37344 | - public static function sampleOperator(): int { | |
| 37345 | - return 31; /*31:operator*/ | |
| 37445 | + public static function sampleOneway(): int { | |
| 37446 | + return 31; /*31:oneway*/ | |
| 37346 | 37447 | } |
| 37347 | 37448 | |
| 37348 | 37449 | /** |
| @@ -37350,7 +37451,7 @@ class Operator { | ||
| 37350 | 37451 | * @return bool |
| 37351 | 37452 | */ |
| 37352 | 37453 | public function validate(): bool { |
| 37353 | - return Operator::validateOperator($this->operator); | |
| 37454 | + return Oneway::validateOneway($this->oneway); | |
| 37354 | 37455 | } |
| 37355 | 37456 | |
| 37356 | 37457 | /** |
| @@ -37359,44 +37460,44 @@ class Operator { | ||
| 37359 | 37460 | */ |
| 37360 | 37461 | public function to(): stdClass { |
| 37361 | 37462 | $out = new stdClass(); |
| 37362 | - $out->{'operator'} = $this->toOperator(); | |
| 37463 | + $out->{'oneway'} = $this->toOneway(); | |
| 37363 | 37464 | return $out; |
| 37364 | 37465 | } |
| 37365 | 37466 | |
| 37366 | 37467 | /** |
| 37367 | 37468 | * @param stdClass $obj |
| 37368 | - * @return Operator | |
| 37469 | + * @return Oneway | |
| 37369 | 37470 | * @throws Exception |
| 37370 | 37471 | */ |
| 37371 | - public static function from(stdClass $obj): Operator { | |
| 37372 | - if (!property_exists($obj, 'operator')) { | |
| 37472 | + public static function from(stdClass $obj): Oneway { | |
| 37473 | + if (!property_exists($obj, 'oneway')) { | |
| 37373 | 37474 | throw new Exception("Missing required property"); |
| 37374 | 37475 | } |
| 37375 | - return new Operator( | |
| 37376 | - Operator::fromOperator($obj->{'operator'}) | |
| 37476 | + return new Oneway( | |
| 37477 | + Oneway::fromOneway($obj->{'oneway'}) | |
| 37377 | 37478 | ); |
| 37378 | 37479 | } |
| 37379 | 37480 | |
| 37380 | 37481 | /** |
| 37381 | - * @return Operator | |
| 37482 | + * @return Oneway | |
| 37382 | 37483 | */ |
| 37383 | - public static function sample(): Operator { | |
| 37384 | - return new Operator( | |
| 37385 | - Operator::sampleOperator() | |
| 37484 | + public static function sample(): Oneway { | |
| 37485 | + return new Oneway( | |
| 37486 | + Oneway::sampleOneway() | |
| 37386 | 37487 | ); |
| 37387 | 37488 | } |
| 37388 | 37489 | } |
| 37389 | 37490 | |
| 37390 | -// This is an autogenerated file:Optional | |
| 37491 | +// This is an autogenerated file:Open | |
| 37391 | 37492 | |
| 37392 | -class Optional { | |
| 37393 | - private int $optional; // json:optional Required | |
| 37493 | +class Open { | |
| 37494 | + private int $open; // json:open Required | |
| 37394 | 37495 | |
| 37395 | 37496 | /** |
| 37396 | - * @param int $optional | |
| 37497 | + * @param int $open | |
| 37397 | 37498 | */ |
| 37398 | - public function __construct(int $optional) { | |
| 37399 | - $this->optional = $optional; | |
| 37499 | + public function __construct(int $open) { | |
| 37500 | + $this->open = $open; | |
| 37400 | 37501 | } |
| 37401 | 37502 | |
| 37402 | 37503 | /** |
| @@ -37404,7 +37505,7 @@ class Optional { | ||
| 37404 | 37505 | * @throws Exception |
| 37405 | 37506 | * @return int |
| 37406 | 37507 | */ |
| 37407 | - public static function fromOptional(int $value): int { | |
| 37508 | + public static function fromOpen(int $value): int { | |
| 37408 | 37509 | return $value; /*int*/ |
| 37409 | 37510 | } |
| 37410 | 37511 | |
| @@ -37412,11 +37513,11 @@ class Optional { | ||
| 37412 | 37513 | * @throws Exception |
| 37413 | 37514 | * @return int |
| 37414 | 37515 | */ |
| 37415 | - public function toOptional(): int { | |
| 37416 | - if (Optional::validateOptional($this->optional)) { | |
| 37417 | - return $this->optional; /*int*/ | |
| 37516 | + public function toOpen(): int { | |
| 37517 | + if (Open::validateOpen($this->open)) { | |
| 37518 | + return $this->open; /*int*/ | |
| 37418 | 37519 | } |
| 37419 | - throw new Exception('never get to this Optional::optional'); | |
| 37520 | + throw new Exception('never get to this Open::open'); | |
| 37420 | 37521 | } |
| 37421 | 37522 | |
| 37422 | 37523 | /** |
| @@ -37424,7 +37525,209 @@ class Optional { | ||
| 37424 | 37525 | * @return bool |
| 37425 | 37526 | * @throws Exception |
| 37426 | 37527 | */ |
| 37427 | - public static function validateOptional(int $value): bool { | |
| 37528 | + public static function validateOpen(int $value): bool { | |
| 37529 | + return true; | |
| 37530 | + } | |
| 37531 | + | |
| 37532 | + /** | |
| 37533 | + * @throws Exception | |
| 37534 | + * @return int | |
| 37535 | + */ | |
| 37536 | + public function getOpen(): int { | |
| 37537 | + if (Open::validateOpen($this->open)) { | |
| 37538 | + return $this->open; | |
| 37539 | + } | |
| 37540 | + throw new Exception('never get to getOpen Open::open'); | |
| 37541 | + } | |
| 37542 | + | |
| 37543 | + /** | |
| 37544 | + * @return int | |
| 37545 | + */ | |
| 37546 | + public static function sampleOpen(): int { | |
| 37547 | + return 31; /*31:open*/ | |
| 37548 | + } | |
| 37549 | + | |
| 37550 | + /** | |
| 37551 | + * @throws Exception | |
| 37552 | + * @return bool | |
| 37553 | + */ | |
| 37554 | + public function validate(): bool { | |
| 37555 | + return Open::validateOpen($this->open); | |
| 37556 | + } | |
| 37557 | + | |
| 37558 | + /** | |
| 37559 | + * @return stdClass | |
| 37560 | + * @throws Exception | |
| 37561 | + */ | |
| 37562 | + public function to(): stdClass { | |
| 37563 | + $out = new stdClass(); | |
| 37564 | + $out->{'open'} = $this->toOpen(); | |
| 37565 | + return $out; | |
| 37566 | + } | |
| 37567 | + | |
| 37568 | + /** | |
| 37569 | + * @param stdClass $obj | |
| 37570 | + * @return Open | |
| 37571 | + * @throws Exception | |
| 37572 | + */ | |
| 37573 | + public static function from(stdClass $obj): Open { | |
| 37574 | + if (!property_exists($obj, 'open')) { | |
| 37575 | + throw new Exception("Missing required property"); | |
| 37576 | + } | |
| 37577 | + return new Open( | |
| 37578 | + Open::fromOpen($obj->{'open'}) | |
| 37579 | + ); | |
| 37580 | + } | |
| 37581 | + | |
| 37582 | + /** | |
| 37583 | + * @return Open | |
| 37584 | + */ | |
| 37585 | + public static function sample(): Open { | |
| 37586 | + return new Open( | |
| 37587 | + Open::sampleOpen() | |
| 37588 | + ); | |
| 37589 | + } | |
| 37590 | +} | |
| 37591 | + | |
| 37592 | +// This is an autogenerated file:Operator | |
| 37593 | + | |
| 37594 | +class Operator { | |
| 37595 | + private int $operator; // json:operator Required | |
| 37596 | + | |
| 37597 | + /** | |
| 37598 | + * @param int $operator | |
| 37599 | + */ | |
| 37600 | + public function __construct(int $operator) { | |
| 37601 | + $this->operator = $operator; | |
| 37602 | + } | |
| 37603 | + | |
| 37604 | + /** | |
| 37605 | + * @param int $value | |
| 37606 | + * @throws Exception | |
| 37607 | + * @return int | |
| 37608 | + */ | |
| 37609 | + public static function fromOperator(int $value): int { | |
| 37610 | + return $value; /*int*/ | |
| 37611 | + } | |
| 37612 | + | |
| 37613 | + /** | |
| 37614 | + * @throws Exception | |
| 37615 | + * @return int | |
| 37616 | + */ | |
| 37617 | + public function toOperator(): int { | |
| 37618 | + if (Operator::validateOperator($this->operator)) { | |
| 37619 | + return $this->operator; /*int*/ | |
| 37620 | + } | |
| 37621 | + throw new Exception('never get to this Operator::operator'); | |
| 37622 | + } | |
| 37623 | + | |
| 37624 | + /** | |
| 37625 | + * @param int | |
| 37626 | + * @return bool | |
| 37627 | + * @throws Exception | |
| 37628 | + */ | |
| 37629 | + public static function validateOperator(int $value): bool { | |
| 37630 | + return true; | |
| 37631 | + } | |
| 37632 | + | |
| 37633 | + /** | |
| 37634 | + * @throws Exception | |
| 37635 | + * @return int | |
| 37636 | + */ | |
| 37637 | + public function getOperator(): int { | |
| 37638 | + if (Operator::validateOperator($this->operator)) { | |
| 37639 | + return $this->operator; | |
| 37640 | + } | |
| 37641 | + throw new Exception('never get to getOperator Operator::operator'); | |
| 37642 | + } | |
| 37643 | + | |
| 37644 | + /** | |
| 37645 | + * @return int | |
| 37646 | + */ | |
| 37647 | + public static function sampleOperator(): int { | |
| 37648 | + return 31; /*31:operator*/ | |
| 37649 | + } | |
| 37650 | + | |
| 37651 | + /** | |
| 37652 | + * @throws Exception | |
| 37653 | + * @return bool | |
| 37654 | + */ | |
| 37655 | + public function validate(): bool { | |
| 37656 | + return Operator::validateOperator($this->operator); | |
| 37657 | + } | |
| 37658 | + | |
| 37659 | + /** | |
| 37660 | + * @return stdClass | |
| 37661 | + * @throws Exception | |
| 37662 | + */ | |
| 37663 | + public function to(): stdClass { | |
| 37664 | + $out = new stdClass(); | |
| 37665 | + $out->{'operator'} = $this->toOperator(); | |
| 37666 | + return $out; | |
| 37667 | + } | |
| 37668 | + | |
| 37669 | + /** | |
| 37670 | + * @param stdClass $obj | |
| 37671 | + * @return Operator | |
| 37672 | + * @throws Exception | |
| 37673 | + */ | |
| 37674 | + public static function from(stdClass $obj): Operator { | |
| 37675 | + if (!property_exists($obj, 'operator')) { | |
| 37676 | + throw new Exception("Missing required property"); | |
| 37677 | + } | |
| 37678 | + return new Operator( | |
| 37679 | + Operator::fromOperator($obj->{'operator'}) | |
| 37680 | + ); | |
| 37681 | + } | |
| 37682 | + | |
| 37683 | + /** | |
| 37684 | + * @return Operator | |
| 37685 | + */ | |
| 37686 | + public static function sample(): Operator { | |
| 37687 | + return new Operator( | |
| 37688 | + Operator::sampleOperator() | |
| 37689 | + ); | |
| 37690 | + } | |
| 37691 | +} | |
| 37692 | + | |
| 37693 | +// This is an autogenerated file:Optional | |
| 37694 | + | |
| 37695 | +class Optional { | |
| 37696 | + private int $optional; // json:optional Required | |
| 37697 | + | |
| 37698 | + /** | |
| 37699 | + * @param int $optional | |
| 37700 | + */ | |
| 37701 | + public function __construct(int $optional) { | |
| 37702 | + $this->optional = $optional; | |
| 37703 | + } | |
| 37704 | + | |
| 37705 | + /** | |
| 37706 | + * @param int $value | |
| 37707 | + * @throws Exception | |
| 37708 | + * @return int | |
| 37709 | + */ | |
| 37710 | + public static function fromOptional(int $value): int { | |
| 37711 | + return $value; /*int*/ | |
| 37712 | + } | |
| 37713 | + | |
| 37714 | + /** | |
| 37715 | + * @throws Exception | |
| 37716 | + * @return int | |
| 37717 | + */ | |
| 37718 | + public function toOptional(): int { | |
| 37719 | + if (Optional::validateOptional($this->optional)) { | |
| 37720 | + return $this->optional; /*int*/ | |
| 37721 | + } | |
| 37722 | + throw new Exception('never get to this Optional::optional'); | |
| 37723 | + } | |
| 37724 | + | |
| 37725 | + /** | |
| 37726 | + * @param int | |
| 37727 | + * @return bool | |
| 37728 | + * @throws Exception | |
| 37729 | + */ | |
| 37730 | + public static function validateOptional(int $value): bool { | |
| 37428 | 37731 | return true; |
| 37429 | 37732 | } |
| 37430 | 37733 | |
| @@ -41329,310 +41632,7 @@ class Sbyte { | ||
| 41329 | 41632 | } |
| 41330 | 41633 | } |
| 41331 | 41634 | |
| 41332 | -// This is an autogenerated file:Sealed | |
| 41333 | - | |
| 41334 | -class Sealed { | |
| 41335 | - private int $sealed; // json:sealed Required | |
| 41336 | - | |
| 41337 | - /** | |
| 41338 | - * @param int $sealed | |
| 41339 | - */ | |
| 41340 | - public function __construct(int $sealed) { | |
| 41341 | - $this->sealed = $sealed; | |
| 41342 | - } | |
| 41343 | - | |
| 41344 | - /** | |
| 41345 | - * @param int $value | |
| 41346 | - * @throws Exception | |
| 41347 | - * @return int | |
| 41348 | - */ | |
| 41349 | - public static function fromSealed(int $value): int { | |
| 41350 | - return $value; /*int*/ | |
| 41351 | - } | |
| 41352 | - | |
| 41353 | - /** | |
| 41354 | - * @throws Exception | |
| 41355 | - * @return int | |
| 41356 | - */ | |
| 41357 | - public function toSealed(): int { | |
| 41358 | - if (Sealed::validateSealed($this->sealed)) { | |
| 41359 | - return $this->sealed; /*int*/ | |
| 41360 | - } | |
| 41361 | - throw new Exception('never get to this Sealed::sealed'); | |
| 41362 | - } | |
| 41363 | - | |
| 41364 | - /** | |
| 41365 | - * @param int | |
| 41366 | - * @return bool | |
| 41367 | - * @throws Exception | |
| 41368 | - */ | |
| 41369 | - public static function validateSealed(int $value): bool { | |
| 41370 | - return true; | |
| 41371 | - } | |
| 41372 | - | |
| 41373 | - /** | |
| 41374 | - * @throws Exception | |
| 41375 | - * @return int | |
| 41376 | - */ | |
| 41377 | - public function getSealed(): int { | |
| 41378 | - if (Sealed::validateSealed($this->sealed)) { | |
| 41379 | - return $this->sealed; | |
| 41380 | - } | |
| 41381 | - throw new Exception('never get to getSealed Sealed::sealed'); | |
| 41382 | - } | |
| 41383 | - | |
| 41384 | - /** | |
| 41385 | - * @return int | |
| 41386 | - */ | |
| 41387 | - public static function sampleSealed(): int { | |
| 41388 | - return 31; /*31:sealed*/ | |
| 41389 | - } | |
| 41390 | - | |
| 41391 | - /** | |
| 41392 | - * @throws Exception | |
| 41393 | - * @return bool | |
| 41394 | - */ | |
| 41395 | - public function validate(): bool { | |
| 41396 | - return Sealed::validateSealed($this->sealed); | |
| 41397 | - } | |
| 41398 | - | |
| 41399 | - /** | |
| 41400 | - * @return stdClass | |
| 41401 | - * @throws Exception | |
| 41402 | - */ | |
| 41403 | - public function to(): stdClass { | |
| 41404 | - $out = new stdClass(); | |
| 41405 | - $out->{'sealed'} = $this->toSealed(); | |
| 41406 | - return $out; | |
| 41407 | - } | |
| 41408 | - | |
| 41409 | - /** | |
| 41410 | - * @param stdClass $obj | |
| 41411 | - * @return Sealed | |
| 41412 | - * @throws Exception | |
| 41413 | - */ | |
| 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 | - ); | |
| 41421 | - } | |
| 41422 | - | |
| 41423 | - /** | |
| 41424 | - * @return Sealed | |
| 41425 | - */ | |
| 41426 | - public static function sample(): Sealed { | |
| 41427 | - return new Sealed( | |
| 41428 | - Sealed::sampleSealed() | |
| 41429 | - ); | |
| 41430 | - } | |
| 41431 | -} | |
| 41432 | - | |
| 41433 | -// This is an autogenerated file:Sel | |
| 41434 | - | |
| 41435 | -class Sel { | |
| 41436 | - private int $sel; // json:SEL Required | |
| 41437 | - | |
| 41438 | - /** | |
| 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 | |
| 41469 | - */ | |
| 41470 | - public static function validateSel(int $value): bool { | |
| 41471 | - return true; | |
| 41472 | - } | |
| 41473 | - | |
| 41474 | - /** | |
| 41475 | - * @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 | |
| 41487 | - */ | |
| 41488 | - public static function sampleSel(): int { | |
| 41489 | - return 31; /*31:sel*/ | |
| 41490 | - } | |
| 41491 | - | |
| 41492 | - /** | |
| 41493 | - * @throws Exception | |
| 41494 | - * @return bool | |
| 41495 | - */ | |
| 41496 | - public function validate(): bool { | |
| 41497 | - return Sel::validateSel($this->sel); | |
| 41498 | - } | |
| 41499 | - | |
| 41500 | - /** | |
| 41501 | - * @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 | - */ | |
| 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*/ | |
| 41562 | - } | |
| 41563 | - throw new Exception('never get to this Select::select'); | |
| 41564 | - } | |
| 41565 | - | |
| 41566 | - /** | |
| 41567 | - * @param int | |
| 41568 | - * @return bool | |
| 41569 | - * @throws Exception | |
| 41570 | - */ | |
| 41571 | - public static function validateSelect(int $value): bool { | |
| 41572 | - return true; | |
| 41573 | - } | |
| 41574 | - | |
| 41575 | - /** | |
| 41576 | - * @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 | |
| 41615 | - */ | |
| 41616 | - public static function from(stdClass $obj): Select { | |
| 41617 | - if (!property_exists($obj, 'select')) { | |
| 41618 | - throw new Exception("Missing required property"); | |
| 41619 | - } | |
| 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 | - ); | |
| 41632 | - } | |
| 41633 | -} | |
| 41634 | - | |
| 41635 | -// This is an autogenerated file:Obj5 | |
| 41635 | +// This is an autogenerated file:Obj5 | |
| 41636 | 41636 | |
| 41637 | 41637 | class Obj5 { |
| 41638 | 41638 | private int $dummy; // json:dummy Required |
| @@ -41642,6 +41642,9 @@ class Obj5 { | ||
| 41642 | 41642 | private Obj5True $obj5True; // json:true Required |
| 41643 | 41643 | private TypeClass $obj5Type; // json:type Required |
| 41644 | 41644 | private PrimitiveKind $primitiveKind; // json:PrimitiveKind Required |
| 41645 | + private Sealed $sealed; // json:sealed Required | |
| 41646 | + private Sel $sel; // json:SEL Required | |
| 41647 | + private Select $select; // json:select Required | |
| 41645 | 41648 | private SelfClass $self; // json:Self Required |
| 41646 | 41649 | private Sendable $sendable; // json:Sendable Required |
| 41647 | 41650 | private SerialDescriptor $serialDescriptor; // json:SerialDescriptor Required |
| @@ -41696,10 +41699,7 @@ class Obj5 { | ||
| 41696 | 41699 | private Undefined $undefined; // json:undefined Required |
| 41697 | 41700 | private Union $union; // json:union Required |
| 41698 | 41701 | private Unowned $unowned; // json:unowned Required |
| 41699 | - private Unsafe $unsafe; // json:unsafe Required | |
| 41700 | - private Unsigned $unsigned; // json:unsigned Required | |
| 41701 | 41702 | private UseSerializers $useSerializers; // json:UseSerializers Required |
| 41702 | - private Ushort $ushort; // json:ushort Required | |
| 41703 | 41703 | |
| 41704 | 41704 | /** |
| 41705 | 41705 | * @param int $dummy |
| @@ -41709,6 +41709,9 @@ class Obj5 { | ||
| 41709 | 41709 | * @param Obj5True $obj5True |
| 41710 | 41710 | * @param TypeClass $obj5Type |
| 41711 | 41711 | * @param PrimitiveKind $primitiveKind |
| 41712 | + * @param Sealed $sealed | |
| 41713 | + * @param Sel $sel | |
| 41714 | + * @param Select $select | |
| 41712 | 41715 | * @param SelfClass $self |
| 41713 | 41716 | * @param Sendable $sendable |
| 41714 | 41717 | * @param SerialDescriptor $serialDescriptor |
| @@ -41763,12 +41766,9 @@ class Obj5 { | ||
| 41763 | 41766 | * @param Undefined $undefined |
| 41764 | 41767 | * @param Union $union |
| 41765 | 41768 | * @param Unowned $unowned |
| 41766 | - * @param Unsafe $unsafe | |
| 41767 | - * @param Unsigned $unsigned | |
| 41768 | 41769 | * @param UseSerializers $useSerializers |
| 41769 | - * @param Ushort $ushort | |
| 41770 | 41770 | */ |
| 41771 | - public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, 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, UseSerializers $useSerializers, Ushort $ushort) { | |
| 41771 | + public function __construct(int $dummy, KSerializer $kSerializer, Obj5Self $obj5Self, This $obj5This, Obj5True $obj5True, TypeClass $obj5Type, PrimitiveKind $primitiveKind, Sealed $sealed, Sel $sel, Select $select, SelfClass $self, Sendable $sendable, SerialDescriptor $serialDescriptor, SerialName $serialName, SerializableClass $serializable, 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, UseSerializers $useSerializers) { | |
| 41772 | 41772 | $this->dummy = $dummy; |
| 41773 | 41773 | $this->kSerializer = $kSerializer; |
| 41774 | 41774 | $this->obj5Self = $obj5Self; |
| @@ -41776,6 +41776,9 @@ class Obj5 { | ||
| 41776 | 41776 | $this->obj5True = $obj5True; |
| 41777 | 41777 | $this->obj5Type = $obj5Type; |
| 41778 | 41778 | $this->primitiveKind = $primitiveKind; |
| 41779 | + $this->sealed = $sealed; | |
| 41780 | + $this->sel = $sel; | |
| 41781 | + $this->select = $select; | |
| 41779 | 41782 | $this->self = $self; |
| 41780 | 41783 | $this->sendable = $sendable; |
| 41781 | 41784 | $this->serialDescriptor = $serialDescriptor; |
| @@ -41830,10 +41833,7 @@ class Obj5 { | ||
| 41830 | 41833 | $this->undefined = $undefined; |
| 41831 | 41834 | $this->union = $union; |
| 41832 | 41835 | $this->unowned = $unowned; |
| 41833 | - $this->unsafe = $unsafe; | |
| 41834 | - $this->unsigned = $unsigned; | |
| 41835 | 41836 | $this->useSerializers = $useSerializers; |
| 41836 | - $this->ushort = $ushort; | |
| 41837 | 41837 | } |
| 41838 | 41838 | |
| 41839 | 41839 | /** |
| @@ -42171,6 +42171,150 @@ class Obj5 { | ||
| 42171 | 42171 | return PrimitiveKind::sample(); /*37:primitiveKind*/ |
| 42172 | 42172 | } |
| 42173 | 42173 | |
| 42174 | + /** | |
| 42175 | + * @param stdClass $value | |
| 42176 | + * @throws Exception | |
| 42177 | + * @return Sealed | |
| 42178 | + */ | |
| 42179 | + public static function fromSealed(stdClass $value): Sealed { | |
| 42180 | + return Sealed::from($value); /*class*/ | |
| 42181 | + } | |
| 42182 | + | |
| 42183 | + /** | |
| 42184 | + * @throws Exception | |
| 42185 | + * @return stdClass | |
| 42186 | + */ | |
| 42187 | + public function toSealed(): stdClass { | |
| 42188 | + if (Obj5::validateSealed($this->sealed)) { | |
| 42189 | + return $this->sealed->to(); /*class*/ | |
| 42190 | + } | |
| 42191 | + throw new Exception('never get to this Obj5::sealed'); | |
| 42192 | + } | |
| 42193 | + | |
| 42194 | + /** | |
| 42195 | + * @param Sealed | |
| 42196 | + * @return bool | |
| 42197 | + * @throws Exception | |
| 42198 | + */ | |
| 42199 | + public static function validateSealed(Sealed $value): bool { | |
| 42200 | + $value->validate(); | |
| 42201 | + return true; | |
| 42202 | + } | |
| 42203 | + | |
| 42204 | + /** | |
| 42205 | + * @throws Exception | |
| 42206 | + * @return Sealed | |
| 42207 | + */ | |
| 42208 | + public function getSealed(): Sealed { | |
| 42209 | + if (Obj5::validateSealed($this->sealed)) { | |
| 42210 | + return $this->sealed; | |
| 42211 | + } | |
| 42212 | + throw new Exception('never get to getSealed Obj5::sealed'); | |
| 42213 | + } | |
| 42214 | + | |
| 42215 | + /** | |
| 42216 | + * @return Sealed | |
| 42217 | + */ | |
| 42218 | + public static function sampleSealed(): Sealed { | |
| 42219 | + return Sealed::sample(); /*38:sealed*/ | |
| 42220 | + } | |
| 42221 | + | |
| 42222 | + /** | |
| 42223 | + * @param stdClass $value | |
| 42224 | + * @throws Exception | |
| 42225 | + * @return Sel | |
| 42226 | + */ | |
| 42227 | + public static function fromSel(stdClass $value): Sel { | |
| 42228 | + return Sel::from($value); /*class*/ | |
| 42229 | + } | |
| 42230 | + | |
| 42231 | + /** | |
| 42232 | + * @throws Exception | |
| 42233 | + * @return stdClass | |
| 42234 | + */ | |
| 42235 | + public function toSel(): stdClass { | |
| 42236 | + if (Obj5::validateSel($this->sel)) { | |
| 42237 | + return $this->sel->to(); /*class*/ | |
| 42238 | + } | |
| 42239 | + throw new Exception('never get to this Obj5::sel'); | |
| 42240 | + } | |
| 42241 | + | |
| 42242 | + /** | |
| 42243 | + * @param Sel | |
| 42244 | + * @return bool | |
| 42245 | + * @throws Exception | |
| 42246 | + */ | |
| 42247 | + public static function validateSel(Sel $value): bool { | |
| 42248 | + $value->validate(); | |
| 42249 | + return true; | |
| 42250 | + } | |
| 42251 | + | |
| 42252 | + /** | |
| 42253 | + * @throws Exception | |
| 42254 | + * @return Sel | |
| 42255 | + */ | |
| 42256 | + public function getSel(): Sel { | |
| 42257 | + if (Obj5::validateSel($this->sel)) { | |
| 42258 | + return $this->sel; | |
| 42259 | + } | |
| 42260 | + throw new Exception('never get to getSel Obj5::sel'); | |
| 42261 | + } | |
| 42262 | + | |
| 42263 | + /** | |
| 42264 | + * @return Sel | |
| 42265 | + */ | |
| 42266 | + public static function sampleSel(): Sel { | |
| 42267 | + return Sel::sample(); /*39:sel*/ | |
| 42268 | + } | |
| 42269 | + | |
| 42270 | + /** | |
| 42271 | + * @param stdClass $value | |
| 42272 | + * @throws Exception | |
| 42273 | + * @return Select | |
| 42274 | + */ | |
| 42275 | + public static function fromSelect(stdClass $value): Select { | |
| 42276 | + return Select::from($value); /*class*/ | |
| 42277 | + } | |
| 42278 | + | |
| 42279 | + /** | |
| 42280 | + * @throws Exception | |
| 42281 | + * @return stdClass | |
| 42282 | + */ | |
| 42283 | + public function toSelect(): stdClass { | |
| 42284 | + if (Obj5::validateSelect($this->select)) { | |
| 42285 | + return $this->select->to(); /*class*/ | |
| 42286 | + } | |
| 42287 | + throw new Exception('never get to this Obj5::select'); | |
| 42288 | + } | |
| 42289 | + | |
| 42290 | + /** | |
| 42291 | + * @param Select | |
| 42292 | + * @return bool | |
| 42293 | + * @throws Exception | |
| 42294 | + */ | |
| 42295 | + public static function validateSelect(Select $value): bool { | |
| 42296 | + $value->validate(); | |
| 42297 | + return true; | |
| 42298 | + } | |
| 42299 | + | |
| 42300 | + /** | |
| 42301 | + * @throws Exception | |
| 42302 | + * @return Select | |
| 42303 | + */ | |
| 42304 | + public function getSelect(): Select { | |
| 42305 | + if (Obj5::validateSelect($this->select)) { | |
| 42306 | + return $this->select; | |
| 42307 | + } | |
| 42308 | + throw new Exception('never get to getSelect Obj5::select'); | |
| 42309 | + } | |
| 42310 | + | |
| 42311 | + /** | |
| 42312 | + * @return Select | |
| 42313 | + */ | |
| 42314 | + public static function sampleSelect(): Select { | |
| 42315 | + return Select::sample(); /*40:select*/ | |
| 42316 | + } | |
| 42317 | + | |
| 42174 | 42318 | /** |
| 42175 | 42319 | * @param stdClass $value |
| 42176 | 42320 | * @throws Exception |
| @@ -42216,7 +42360,7 @@ class Obj5 { | ||
| 42216 | 42360 | * @return SelfClass |
| 42217 | 42361 | */ |
| 42218 | 42362 | public static function sampleSelf(): SelfClass { |
| 42219 | - return SelfClass::sample(); /*38:self*/ | |
| 42363 | + return SelfClass::sample(); /*41:self*/ | |
| 42220 | 42364 | } |
| 42221 | 42365 | |
| 42222 | 42366 | /** |
| @@ -42264,7 +42408,7 @@ class Obj5 { | ||
| 42264 | 42408 | * @return Sendable |
| 42265 | 42409 | */ |
| 42266 | 42410 | public static function sampleSendable(): Sendable { |
| 42267 | - return Sendable::sample(); /*39:sendable*/ | |
| 42411 | + return Sendable::sample(); /*42:sendable*/ | |
| 42268 | 42412 | } |
| 42269 | 42413 | |
| 42270 | 42414 | /** |
| @@ -42312,7 +42456,7 @@ class Obj5 { | ||
| 42312 | 42456 | * @return SerialDescriptor |
| 42313 | 42457 | */ |
| 42314 | 42458 | public static function sampleSerialDescriptor(): SerialDescriptor { |
| 42315 | - return SerialDescriptor::sample(); /*40:serialDescriptor*/ | |
| 42459 | + return SerialDescriptor::sample(); /*43:serialDescriptor*/ | |
| 42316 | 42460 | } |
| 42317 | 42461 | |
| 42318 | 42462 | /** |
| @@ -42360,7 +42504,7 @@ class Obj5 { | ||
| 42360 | 42504 | * @return SerialName |
| 42361 | 42505 | */ |
| 42362 | 42506 | public static function sampleSerialName(): SerialName { |
| 42363 | - return SerialName::sample(); /*41:serialName*/ | |
| 42507 | + return SerialName::sample(); /*44:serialName*/ | |
| 42364 | 42508 | } |
| 42365 | 42509 | |
| 42366 | 42510 | /** |
| @@ -42408,7 +42552,7 @@ class Obj5 { | ||
| 42408 | 42552 | * @return SerializableClass |
| 42409 | 42553 | */ |
| 42410 | 42554 | public static function sampleSerializable(): SerializableClass { |
| 42411 | - return SerializableClass::sample(); /*42:serializable*/ | |
| 42555 | + return SerializableClass::sample(); /*45:serializable*/ | |
| 42412 | 42556 | } |
| 42413 | 42557 | |
| 42414 | 42558 | /** |
| @@ -42456,7 +42600,7 @@ class Obj5 { | ||
| 42456 | 42600 | * @return Serialize |
| 42457 | 42601 | */ |
| 42458 | 42602 | public static function sampleSerialize(): Serialize { |
| 42459 | - return Serialize::sample(); /*43:serialize*/ | |
| 42603 | + return Serialize::sample(); /*46:serialize*/ | |
| 42460 | 42604 | } |
| 42461 | 42605 | |
| 42462 | 42606 | /** |
| @@ -42504,7 +42648,7 @@ class Obj5 { | ||
| 42504 | 42648 | * @return SerializerProvider |
| 42505 | 42649 | */ |
| 42506 | 42650 | public static function sampleSerializerProvider(): SerializerProvider { |
| 42507 | - return SerializerProvider::sample(); /*44:serializerProvider*/ | |
| 42651 | + return SerializerProvider::sample(); /*47:serializerProvider*/ | |
| 42508 | 42652 | } |
| 42509 | 42653 | |
| 42510 | 42654 | /** |
| @@ -42552,7 +42696,7 @@ class Obj5 { | ||
| 42552 | 42696 | * @return Set |
| 42553 | 42697 | */ |
| 42554 | 42698 | public static function sampleSet(): Set { |
| 42555 | - return Set::sample(); /*45:set*/ | |
| 42699 | + return Set::sample(); /*48:set*/ | |
| 42556 | 42700 | } |
| 42557 | 42701 | |
| 42558 | 42702 | /** |
| @@ -42600,7 +42744,7 @@ class Obj5 { | ||
| 42600 | 42744 | * @return Short |
| 42601 | 42745 | */ |
| 42602 | 42746 | public static function sampleShort(): Short { |
| 42603 | - return Short::sample(); /*46:short*/ | |
| 42747 | + return Short::sample(); /*49:short*/ | |
| 42604 | 42748 | } |
| 42605 | 42749 | |
| 42606 | 42750 | /** |
| @@ -42648,7 +42792,7 @@ class Obj5 { | ||
| 42648 | 42792 | * @return Signed |
| 42649 | 42793 | */ |
| 42650 | 42794 | public static function sampleSigned(): Signed { |
| 42651 | - return Signed::sample(); /*47:signed*/ | |
| 42795 | + return Signed::sample(); /*50:signed*/ | |
| 42652 | 42796 | } |
| 42653 | 42797 | |
| 42654 | 42798 | /** |
| @@ -42696,7 +42840,7 @@ class Obj5 { | ||
| 42696 | 42840 | * @return SimpleModule |
| 42697 | 42841 | */ |
| 42698 | 42842 | public static function sampleSimpleModule(): SimpleModule { |
| 42699 | - return SimpleModule::sample(); /*48:simpleModule*/ | |
| 42843 | + return SimpleModule::sample(); /*51:simpleModule*/ | |
| 42700 | 42844 | } |
| 42701 | 42845 | |
| 42702 | 42846 | /** |
| @@ -42744,7 +42888,7 @@ class Obj5 { | ||
| 42744 | 42888 | * @return Sizeof |
| 42745 | 42889 | */ |
| 42746 | 42890 | public static function sampleSizeof(): Sizeof { |
| 42747 | - return Sizeof::sample(); /*49:sizeof*/ | |
| 42891 | + return Sizeof::sample(); /*52:sizeof*/ | |
| 42748 | 42892 | } |
| 42749 | 42893 | |
| 42750 | 42894 | /** |
| @@ -42792,7 +42936,7 @@ class Obj5 { | ||
| 42792 | 42936 | * @return Stackalloc |
| 42793 | 42937 | */ |
| 42794 | 42938 | public static function sampleStackalloc(): Stackalloc { |
| 42795 | - return Stackalloc::sample(); /*50:stackalloc*/ | |
| 42939 | + return Stackalloc::sample(); /*53:stackalloc*/ | |
| 42796 | 42940 | } |
| 42797 | 42941 | |
| 42798 | 42942 | /** |
| @@ -42840,7 +42984,7 @@ class Obj5 { | ||
| 42840 | 42984 | * @return Standards |
| 42841 | 42985 | */ |
| 42842 | 42986 | public static function sampleStandards(): Standards { |
| 42843 | - return Standards::sample(); /*51:standards*/ | |
| 42987 | + return Standards::sample(); /*54:standards*/ | |
| 42844 | 42988 | } |
| 42845 | 42989 | |
| 42846 | 42990 | /** |
| @@ -42888,7 +43032,7 @@ class Obj5 { | ||
| 42888 | 43032 | * @return StaticClass |
| 42889 | 43033 | */ |
| 42890 | 43034 | public static function sampleStatic(): StaticClass { |
| 42891 | - return StaticClass::sample(); /*52:static*/ | |
| 43035 | + return StaticClass::sample(); /*55:static*/ | |
| 42892 | 43036 | } |
| 42893 | 43037 | |
| 42894 | 43038 | /** |
| @@ -42936,7 +43080,7 @@ class Obj5 { | ||
| 42936 | 43080 | * @return StaticAssert |
| 42937 | 43081 | */ |
| 42938 | 43082 | public static function sampleStaticAssert(): StaticAssert { |
| 42939 | - return StaticAssert::sample(); /*53:staticAssert*/ | |
| 43083 | + return StaticAssert::sample(); /*56:staticAssert*/ | |
| 42940 | 43084 | } |
| 42941 | 43085 | |
| 42942 | 43086 | /** |
| @@ -42984,7 +43128,7 @@ class Obj5 { | ||
| 42984 | 43128 | * @return StaticCast |
| 42985 | 43129 | */ |
| 42986 | 43130 | public static function sampleStaticCast(): StaticCast { |
| 42987 | - return StaticCast::sample(); /*54:staticCast*/ | |
| 43131 | + return StaticCast::sample(); /*57:staticCast*/ | |
| 42988 | 43132 | } |
| 42989 | 43133 | |
| 42990 | 43134 | /** |
| @@ -43032,7 +43176,7 @@ class Obj5 { | ||
| 43032 | 43176 | * @return StdDeserializer |
| 43033 | 43177 | */ |
| 43034 | 43178 | public static function sampleStdDeserializer(): StdDeserializer { |
| 43035 | - return StdDeserializer::sample(); /*55:stdDeserializer*/ | |
| 43179 | + return StdDeserializer::sample(); /*58:stdDeserializer*/ | |
| 43036 | 43180 | } |
| 43037 | 43181 | |
| 43038 | 43182 | /** |
| @@ -43080,7 +43224,7 @@ class Obj5 { | ||
| 43080 | 43224 | * @return StdSerializer |
| 43081 | 43225 | */ |
| 43082 | 43226 | public static function sampleStdSerializer(): StdSerializer { |
| 43083 | - return StdSerializer::sample(); /*56:stdSerializer*/ | |
| 43227 | + return StdSerializer::sample(); /*59:stdSerializer*/ | |
| 43084 | 43228 | } |
| 43085 | 43229 | |
| 43086 | 43230 | /** |
| @@ -43128,7 +43272,7 @@ class Obj5 { | ||
| 43128 | 43272 | * @return Strictfp |
| 43129 | 43273 | */ |
| 43130 | 43274 | public static function sampleStrictfp(): Strictfp { |
| 43131 | - return Strictfp::sample(); /*57:strictfp*/ | |
| 43275 | + return Strictfp::sample(); /*60:strictfp*/ | |
| 43132 | 43276 | } |
| 43133 | 43277 | |
| 43134 | 43278 | /** |
| @@ -43176,7 +43320,7 @@ class Obj5 { | ||
| 43176 | 43320 | * @return StringClass |
| 43177 | 43321 | */ |
| 43178 | 43322 | public static function sampleString(): StringClass { |
| 43179 | - return StringClass::sample(); /*58:string*/ | |
| 43323 | + return StringClass::sample(); /*61:string*/ | |
| 43180 | 43324 | } |
| 43181 | 43325 | |
| 43182 | 43326 | /** |
| @@ -43224,7 +43368,7 @@ class Obj5 { | ||
| 43224 | 43368 | * @return Struct |
| 43225 | 43369 | */ |
| 43226 | 43370 | public static function sampleStruct(): Struct { |
| 43227 | - return Struct::sample(); /*59:struct*/ | |
| 43371 | + return Struct::sample(); /*62:struct*/ | |
| 43228 | 43372 | } |
| 43229 | 43373 | |
| 43230 | 43374 | /** |
| @@ -43272,7 +43416,7 @@ class Obj5 { | ||
| 43272 | 43416 | * @return Subscript |
| 43273 | 43417 | */ |
| 43274 | 43418 | public static function sampleSubscript(): Subscript { |
| 43275 | - return Subscript::sample(); /*60:subscript*/ | |
| 43419 | + return Subscript::sample(); /*63:subscript*/ | |
| 43276 | 43420 | } |
| 43277 | 43421 | |
| 43278 | 43422 | /** |
| @@ -43320,7 +43464,7 @@ class Obj5 { | ||
| 43320 | 43464 | * @return Super |
| 43321 | 43465 | */ |
| 43322 | 43466 | public static function sampleSuper(): Super { |
| 43323 | - return Super::sample(); /*61:super*/ | |
| 43467 | + return Super::sample(); /*64:super*/ | |
| 43324 | 43468 | } |
| 43325 | 43469 | |
| 43326 | 43470 | /** |
| @@ -43368,7 +43512,7 @@ class Obj5 { | ||
| 43368 | 43512 | * @return SwitchClass |
| 43369 | 43513 | */ |
| 43370 | 43514 | public static function sampleSwitch(): SwitchClass { |
| 43371 | - return SwitchClass::sample(); /*62:switch*/ | |
| 43515 | + return SwitchClass::sample(); /*65:switch*/ | |
| 43372 | 43516 | } |
| 43373 | 43517 | |
| 43374 | 43518 | /** |
| @@ -43416,7 +43560,7 @@ class Obj5 { | ||
| 43416 | 43560 | * @return Symbol |
| 43417 | 43561 | */ |
| 43418 | 43562 | public static function sampleSymbol(): Symbol { |
| 43419 | - return Symbol::sample(); /*63:symbol*/ | |
| 43563 | + return Symbol::sample(); /*66:symbol*/ | |
| 43420 | 43564 | } |
| 43421 | 43565 | |
| 43422 | 43566 | /** |
| @@ -43464,7 +43608,7 @@ class Obj5 { | ||
| 43464 | 43608 | * @return Synchronized |
| 43465 | 43609 | */ |
| 43466 | 43610 | public static function sampleSynchronized(): Synchronized { |
| 43467 | - return Synchronized::sample(); /*64:synchronized*/ | |
| 43611 | + return Synchronized::sample(); /*67:synchronized*/ | |
| 43468 | 43612 | } |
| 43469 | 43613 | |
| 43470 | 43614 | /** |
| @@ -43512,7 +43656,7 @@ class Obj5 { | ||
| 43512 | 43656 | * @return System |
| 43513 | 43657 | */ |
| 43514 | 43658 | public static function sampleSystem(): System { |
| 43515 | - return System::sample(); /*65:system*/ | |
| 43659 | + return System::sample(); /*68:system*/ | |
| 43516 | 43660 | } |
| 43517 | 43661 | |
| 43518 | 43662 | /** |
| @@ -43560,7 +43704,7 @@ class Obj5 { | ||
| 43560 | 43704 | * @return Template |
| 43561 | 43705 | */ |
| 43562 | 43706 | public static function sampleTemplate(): Template { |
| 43563 | - return Template::sample(); /*66:template*/ | |
| 43707 | + return Template::sample(); /*69:template*/ | |
| 43564 | 43708 | } |
| 43565 | 43709 | |
| 43566 | 43710 | /** |
| @@ -43608,7 +43752,7 @@ class Obj5 { | ||
| 43608 | 43752 | * @return Then |
| 43609 | 43753 | */ |
| 43610 | 43754 | public static function sampleThen(): Then { |
| 43611 | - return Then::sample(); /*67:then*/ | |
| 43755 | + return Then::sample(); /*70:then*/ | |
| 43612 | 43756 | } |
| 43613 | 43757 | |
| 43614 | 43758 | /** |
| @@ -43656,7 +43800,7 @@ class Obj5 { | ||
| 43656 | 43800 | * @return ThreadLocal |
| 43657 | 43801 | */ |
| 43658 | 43802 | public static function sampleThreadLocal(): ThreadLocal { |
| 43659 | - return ThreadLocal::sample(); /*68:threadLocal*/ | |
| 43803 | + return ThreadLocal::sample(); /*71:threadLocal*/ | |
| 43660 | 43804 | } |
| 43661 | 43805 | |
| 43662 | 43806 | /** |
| @@ -43704,7 +43848,7 @@ class Obj5 { | ||
| 43704 | 43848 | * @return ThrowClass |
| 43705 | 43849 | */ |
| 43706 | 43850 | public static function sampleThrow(): ThrowClass { |
| 43707 | - return ThrowClass::sample(); /*69:throw*/ | |
| 43851 | + return ThrowClass::sample(); /*72:throw*/ | |
| 43708 | 43852 | } |
| 43709 | 43853 | |
| 43710 | 43854 | /** |
| @@ -43752,7 +43896,7 @@ class Obj5 { | ||
| 43752 | 43896 | * @return Throws |
| 43753 | 43897 | */ |
| 43754 | 43898 | public static function sampleThrows(): Throws { |
| 43755 | - return Throws::sample(); /*70:throws*/ | |
| 43899 | + return Throws::sample(); /*73:throws*/ | |
| 43756 | 43900 | } |
| 43757 | 43901 | |
| 43758 | 43902 | /** |
| @@ -43800,7 +43944,7 @@ class Obj5 { | ||
| 43800 | 43944 | * @return TimeOnly |
| 43801 | 43945 | */ |
| 43802 | 43946 | public static function sampleTimeOnly(): TimeOnly { |
| 43803 | - return TimeOnly::sample(); /*71:timeOnly*/ | |
| 43947 | + return TimeOnly::sample(); /*74:timeOnly*/ | |
| 43804 | 43948 | } |
| 43805 | 43949 | |
| 43806 | 43950 | /** |
| @@ -43848,7 +43992,7 @@ class Obj5 { | ||
| 43848 | 43992 | * @return TimeOnlyConverter |
| 43849 | 43993 | */ |
| 43850 | 43994 | public static function sampleTimeOnlyConverter(): TimeOnlyConverter { |
| 43851 | - return TimeOnlyConverter::sample(); /*72:timeOnlyConverter*/ | |
| 43995 | + return TimeOnlyConverter::sample(); /*75:timeOnlyConverter*/ | |
| 43852 | 43996 | } |
| 43853 | 43997 | |
| 43854 | 43998 | /** |
| @@ -43896,7 +44040,7 @@ class Obj5 { | ||
| 43896 | 44040 | * @return TimeZone |
| 43897 | 44041 | */ |
| 43898 | 44042 | public static function sampleTimeZone(): TimeZone { |
| 43899 | - return TimeZone::sample(); /*73:timeZone*/ | |
| 44043 | + return TimeZone::sample(); /*76:timeZone*/ | |
| 43900 | 44044 | } |
| 43901 | 44045 | |
| 43902 | 44046 | /** |
| @@ -43944,7 +44088,7 @@ class Obj5 { | ||
| 43944 | 44088 | * @return ToJSON |
| 43945 | 44089 | */ |
| 43946 | 44090 | public static function sampleToJSON(): ToJSON { |
| 43947 | - return ToJSON::sample(); /*74:toJSON*/ | |
| 44091 | + return ToJSON::sample(); /*77:toJSON*/ | |
| 43948 | 44092 | } |
| 43949 | 44093 | |
| 43950 | 44094 | /** |
| @@ -43992,7 +44136,7 @@ class Obj5 { | ||
| 43992 | 44136 | * @return ToString |
| 43993 | 44137 | */ |
| 43994 | 44138 | public static function sampleToString(): ToString { |
| 43995 | - return ToString::sample(); /*75:toString*/ | |
| 44139 | + return ToString::sample(); /*78:toString*/ | |
| 43996 | 44140 | } |
| 43997 | 44141 | |
| 43998 | 44142 | /** |
| @@ -44040,7 +44184,7 @@ class Obj5 { | ||
| 44040 | 44184 | * @return TopLevelClass |
| 44041 | 44185 | */ |
| 44042 | 44186 | public static function sampleTopLevel(): TopLevelClass { |
| 44043 | - return TopLevelClass::sample(); /*76:topLevel*/ | |
| 44187 | + return TopLevelClass::sample(); /*79:topLevel*/ | |
| 44044 | 44188 | } |
| 44045 | 44189 | |
| 44046 | 44190 | /** |
| @@ -44088,7 +44232,7 @@ class Obj5 { | ||
| 44088 | 44232 | * @return Transient |
| 44089 | 44233 | */ |
| 44090 | 44234 | public static function sampleTransient(): Transient { |
| 44091 | - return Transient::sample(); /*77:transient*/ | |
| 44235 | + return Transient::sample(); /*80:transient*/ | |
| 44092 | 44236 | } |
| 44093 | 44237 | |
| 44094 | 44238 | /** |
| @@ -44136,7 +44280,7 @@ class Obj5 { | ||
| 44136 | 44280 | * @return TrueClass |
| 44137 | 44281 | */ |
| 44138 | 44282 | public static function sampleTrue(): TrueClass { |
| 44139 | - return TrueClass::sample(); /*78:true*/ | |
| 44283 | + return TrueClass::sample(); /*81:true*/ | |
| 44140 | 44284 | } |
| 44141 | 44285 | |
| 44142 | 44286 | /** |
| @@ -44184,7 +44328,7 @@ class Obj5 { | ||
| 44184 | 44328 | * @return TryClass |
| 44185 | 44329 | */ |
| 44186 | 44330 | public static function sampleTry(): TryClass { |
| 44187 | - return TryClass::sample(); /*79:try*/ | |
| 44331 | + return TryClass::sample(); /*82:try*/ | |
| 44188 | 44332 | } |
| 44189 | 44333 | |
| 44190 | 44334 | /** |
| @@ -44232,7 +44376,7 @@ class Obj5 { | ||
| 44232 | 44376 | * @return Type |
| 44233 | 44377 | */ |
| 44234 | 44378 | public static function sampleType(): Type { |
| 44235 | - return Type::sample(); /*80:type*/ | |
| 44379 | + return Type::sample(); /*83:type*/ | |
| 44236 | 44380 | } |
| 44237 | 44381 | |
| 44238 | 44382 | /** |
| @@ -44280,7 +44424,7 @@ class Obj5 { | ||
| 44280 | 44424 | * @return Typealias |
| 44281 | 44425 | */ |
| 44282 | 44426 | public static function sampleTypealias(): Typealias { |
| 44283 | - return Typealias::sample(); /*81:typealias*/ | |
| 44427 | + return Typealias::sample(); /*84:typealias*/ | |
| 44284 | 44428 | } |
| 44285 | 44429 | |
| 44286 | 44430 | /** |
| @@ -44328,7 +44472,7 @@ class Obj5 { | ||
| 44328 | 44472 | * @return Typedef |
| 44329 | 44473 | */ |
| 44330 | 44474 | public static function sampleTypedef(): Typedef { |
| 44331 | - return Typedef::sample(); /*82:typedef*/ | |
| 44475 | + return Typedef::sample(); /*85:typedef*/ | |
| 44332 | 44476 | } |
| 44333 | 44477 | |
| 44334 | 44478 | /** |
| @@ -44376,7 +44520,7 @@ class Obj5 { | ||
| 44376 | 44520 | * @return Typeid |
| 44377 | 44521 | */ |
| 44378 | 44522 | public static function sampleTypeid(): Typeid { |
| 44379 | - return Typeid::sample(); /*83:typeid*/ | |
| 44523 | + return Typeid::sample(); /*86:typeid*/ | |
| 44380 | 44524 | } |
| 44381 | 44525 | |
| 44382 | 44526 | /** |
| @@ -44424,7 +44568,7 @@ class Obj5 { | ||
| 44424 | 44568 | * @return Typename |
| 44425 | 44569 | */ |
| 44426 | 44570 | public static function sampleTypename(): Typename { |
| 44427 | - return Typename::sample(); /*84:typename*/ | |
| 44571 | + return Typename::sample(); /*87:typename*/ | |
| 44428 | 44572 | } |
| 44429 | 44573 | |
| 44430 | 44574 | /** |
| @@ -44472,7 +44616,7 @@ class Obj5 { | ||
| 44472 | 44616 | * @return Typeof |
| 44473 | 44617 | */ |
| 44474 | 44618 | public static function sampleTypeof(): Typeof { |
| 44475 | - return Typeof::sample(); /*85:typeof*/ | |
| 44619 | + return Typeof::sample(); /*88:typeof*/ | |
| 44476 | 44620 | } |
| 44477 | 44621 | |
| 44478 | 44622 | /** |
| @@ -44520,7 +44664,7 @@ class Obj5 { | ||
| 44520 | 44664 | * @return Uint |
| 44521 | 44665 | */ |
| 44522 | 44666 | public static function sampleUint(): Uint { |
| 44523 | - return Uint::sample(); /*86:uint*/ | |
| 44667 | + return Uint::sample(); /*89:uint*/ | |
| 44524 | 44668 | } |
| 44525 | 44669 | |
| 44526 | 44670 | /** |
| @@ -44568,7 +44712,7 @@ class Obj5 { | ||
| 44568 | 44712 | * @return Ulong |
| 44569 | 44713 | */ |
| 44570 | 44714 | public static function sampleUlong(): Ulong { |
| 44571 | - return Ulong::sample(); /*87:ulong*/ | |
| 44715 | + return Ulong::sample(); /*90:ulong*/ | |
| 44572 | 44716 | } |
| 44573 | 44717 | |
| 44574 | 44718 | /** |
| @@ -44616,7 +44760,7 @@ class Obj5 { | ||
| 44616 | 44760 | * @return Unchecked |
| 44617 | 44761 | */ |
| 44618 | 44762 | public static function sampleUnchecked(): Unchecked { |
| 44619 | - return Unchecked::sample(); /*88:unchecked*/ | |
| 44763 | + return Unchecked::sample(); /*91:unchecked*/ | |
| 44620 | 44764 | } |
| 44621 | 44765 | |
| 44622 | 44766 | /** |
| @@ -44664,7 +44808,7 @@ class Obj5 { | ||
| 44664 | 44808 | * @return Undefined |
| 44665 | 44809 | */ |
| 44666 | 44810 | public static function sampleUndefined(): Undefined { |
| 44667 | - return Undefined::sample(); /*89:undefined*/ | |
| 44811 | + return Undefined::sample(); /*92:undefined*/ | |
| 44668 | 44812 | } |
| 44669 | 44813 | |
| 44670 | 44814 | /** |
| @@ -44712,7 +44856,7 @@ class Obj5 { | ||
| 44712 | 44856 | * @return Union |
| 44713 | 44857 | */ |
| 44714 | 44858 | public static function sampleUnion(): Union { |
| 44715 | - return Union::sample(); /*90:union*/ | |
| 44859 | + return Union::sample(); /*93:union*/ | |
| 44716 | 44860 | } |
| 44717 | 44861 | |
| 44718 | 44862 | /** |
| @@ -44760,103 +44904,7 @@ class Obj5 { | ||
| 44760 | 44904 | * @return Unowned |
| 44761 | 44905 | */ |
| 44762 | 44906 | public static function sampleUnowned(): Unowned { |
| 44763 | - return Unowned::sample(); /*91:unowned*/ | |
| 44764 | - } | |
| 44765 | - | |
| 44766 | - /** | |
| 44767 | - * @param stdClass $value | |
| 44768 | - * @throws Exception | |
| 44769 | - * @return Unsafe | |
| 44770 | - */ | |
| 44771 | - public static function fromUnsafe(stdClass $value): Unsafe { | |
| 44772 | - return Unsafe::from($value); /*class*/ | |
| 44773 | - } | |
| 44774 | - | |
| 44775 | - /** | |
| 44776 | - * @throws Exception | |
| 44777 | - * @return stdClass | |
| 44778 | - */ | |
| 44779 | - public function toUnsafe(): stdClass { | |
| 44780 | - if (Obj5::validateUnsafe($this->unsafe)) { | |
| 44781 | - return $this->unsafe->to(); /*class*/ | |
| 44782 | - } | |
| 44783 | - throw new Exception('never get to this Obj5::unsafe'); | |
| 44784 | - } | |
| 44785 | - | |
| 44786 | - /** | |
| 44787 | - * @param Unsafe | |
| 44788 | - * @return bool | |
| 44789 | - * @throws Exception | |
| 44790 | - */ | |
| 44791 | - public static function validateUnsafe(Unsafe $value): bool { | |
| 44792 | - $value->validate(); | |
| 44793 | - return true; | |
| 44794 | - } | |
| 44795 | - | |
| 44796 | - /** | |
| 44797 | - * @throws Exception | |
| 44798 | - * @return Unsafe | |
| 44799 | - */ | |
| 44800 | - public function getUnsafe(): Unsafe { | |
| 44801 | - if (Obj5::validateUnsafe($this->unsafe)) { | |
| 44802 | - return $this->unsafe; | |
| 44803 | - } | |
| 44804 | - throw new Exception('never get to getUnsafe Obj5::unsafe'); | |
| 44805 | - } | |
| 44806 | - | |
| 44807 | - /** | |
| 44808 | - * @return Unsafe | |
| 44809 | - */ | |
| 44810 | - public static function sampleUnsafe(): Unsafe { | |
| 44811 | - return Unsafe::sample(); /*92:unsafe*/ | |
| 44812 | - } | |
| 44813 | - | |
| 44814 | - /** | |
| 44815 | - * @param stdClass $value | |
| 44816 | - * @throws Exception | |
| 44817 | - * @return Unsigned | |
| 44818 | - */ | |
| 44819 | - public static function fromUnsigned(stdClass $value): Unsigned { | |
| 44820 | - return Unsigned::from($value); /*class*/ | |
| 44821 | - } | |
| 44822 | - | |
| 44823 | - /** | |
| 44824 | - * @throws Exception | |
| 44825 | - * @return stdClass | |
| 44826 | - */ | |
| 44827 | - public function toUnsigned(): stdClass { | |
| 44828 | - if (Obj5::validateUnsigned($this->unsigned)) { | |
| 44829 | - return $this->unsigned->to(); /*class*/ | |
| 44830 | - } | |
| 44831 | - throw new Exception('never get to this Obj5::unsigned'); | |
| 44832 | - } | |
| 44833 | - | |
| 44834 | - /** | |
| 44835 | - * @param Unsigned | |
| 44836 | - * @return bool | |
| 44837 | - * @throws Exception | |
| 44838 | - */ | |
| 44839 | - public static function validateUnsigned(Unsigned $value): bool { | |
| 44840 | - $value->validate(); | |
| 44841 | - return true; | |
| 44842 | - } | |
| 44843 | - | |
| 44844 | - /** | |
| 44845 | - * @throws Exception | |
| 44846 | - * @return Unsigned | |
| 44847 | - */ | |
| 44848 | - public function getUnsigned(): Unsigned { | |
| 44849 | - if (Obj5::validateUnsigned($this->unsigned)) { | |
| 44850 | - return $this->unsigned; | |
| 44851 | - } | |
| 44852 | - throw new Exception('never get to getUnsigned Obj5::unsigned'); | |
| 44853 | - } | |
| 44854 | - | |
| 44855 | - /** | |
| 44856 | - * @return Unsigned | |
| 44857 | - */ | |
| 44858 | - public static function sampleUnsigned(): Unsigned { | |
| 44859 | - return Unsigned::sample(); /*93:unsigned*/ | |
| 44907 | + return Unowned::sample(); /*94:unowned*/ | |
| 44860 | 44908 | } |
| 44861 | 44909 | |
| 44862 | 44910 | /** |
| @@ -44904,55 +44952,7 @@ class Obj5 { | ||
| 44904 | 44952 | * @return UseSerializers |
| 44905 | 44953 | */ |
| 44906 | 44954 | public static function sampleUseSerializers(): UseSerializers { |
| 44907 | - return UseSerializers::sample(); /*94:useSerializers*/ | |
| 44908 | - } | |
| 44909 | - | |
| 44910 | - /** | |
| 44911 | - * @param stdClass $value | |
| 44912 | - * @throws Exception | |
| 44913 | - * @return Ushort | |
| 44914 | - */ | |
| 44915 | - public static function fromUshort(stdClass $value): Ushort { | |
| 44916 | - return Ushort::from($value); /*class*/ | |
| 44917 | - } | |
| 44918 | - | |
| 44919 | - /** | |
| 44920 | - * @throws Exception | |
| 44921 | - * @return stdClass | |
| 44922 | - */ | |
| 44923 | - public function toUshort(): stdClass { | |
| 44924 | - if (Obj5::validateUshort($this->ushort)) { | |
| 44925 | - return $this->ushort->to(); /*class*/ | |
| 44926 | - } | |
| 44927 | - throw new Exception('never get to this Obj5::ushort'); | |
| 44928 | - } | |
| 44929 | - | |
| 44930 | - /** | |
| 44931 | - * @param Ushort | |
| 44932 | - * @return bool | |
| 44933 | - * @throws Exception | |
| 44934 | - */ | |
| 44935 | - public static function validateUshort(Ushort $value): bool { | |
| 44936 | - $value->validate(); | |
| 44937 | - return true; | |
| 44938 | - } | |
| 44939 | - | |
| 44940 | - /** | |
| 44941 | - * @throws Exception | |
| 44942 | - * @return Ushort | |
| 44943 | - */ | |
| 44944 | - public function getUshort(): Ushort { | |
| 44945 | - if (Obj5::validateUshort($this->ushort)) { | |
| 44946 | - return $this->ushort; | |
| 44947 | - } | |
| 44948 | - throw new Exception('never get to getUshort Obj5::ushort'); | |
| 44949 | - } | |
| 44950 | - | |
| 44951 | - /** | |
| 44952 | - * @return Ushort | |
| 44953 | - */ | |
| 44954 | - public static function sampleUshort(): Ushort { | |
| 44955 | - return Ushort::sample(); /*95:ushort*/ | |
| 44955 | + return UseSerializers::sample(); /*95:useSerializers*/ | |
| 44956 | 44956 | } |
| 44957 | 44957 | |
| 44958 | 44958 | /** |
| @@ -44967,6 +44967,9 @@ class Obj5 { | ||
| 44967 | 44967 | || Obj5::validateObj5True($this->obj5True) |
| 44968 | 44968 | || Obj5::validateObj5Type($this->obj5Type) |
| 44969 | 44969 | || Obj5::validatePrimitiveKind($this->primitiveKind) |
| 44970 | + || Obj5::validateSealed($this->sealed) | |
| 44971 | + || Obj5::validateSel($this->sel) | |
| 44972 | + || Obj5::validateSelect($this->select) | |
| 44970 | 44973 | || Obj5::validateSelf($this->self) |
| 44971 | 44974 | || Obj5::validateSendable($this->sendable) |
| 44972 | 44975 | || Obj5::validateSerialDescriptor($this->serialDescriptor) |
| @@ -45021,10 +45024,7 @@ class Obj5 { | ||
| 45021 | 45024 | || Obj5::validateUndefined($this->undefined) |
| 45022 | 45025 | || Obj5::validateUnion($this->union) |
| 45023 | 45026 | || Obj5::validateUnowned($this->unowned) |
| 45024 | - || Obj5::validateUnsafe($this->unsafe) | |
| 45025 | - || Obj5::validateUnsigned($this->unsigned) | |
| 45026 | - || Obj5::validateUseSerializers($this->useSerializers) | |
| 45027 | - || Obj5::validateUshort($this->ushort); | |
| 45027 | + || Obj5::validateUseSerializers($this->useSerializers); | |
| 45028 | 45028 | } |
| 45029 | 45029 | |
| 45030 | 45030 | /** |
| @@ -45040,6 +45040,9 @@ class Obj5 { | ||
| 45040 | 45040 | $out->{'true'} = $this->toObj5True(); |
| 45041 | 45041 | $out->{'type'} = $this->toObj5Type(); |
| 45042 | 45042 | $out->{'PrimitiveKind'} = $this->toPrimitiveKind(); |
| 45043 | + $out->{'sealed'} = $this->toSealed(); | |
| 45044 | + $out->{'SEL'} = $this->toSel(); | |
| 45045 | + $out->{'select'} = $this->toSelect(); | |
| 45043 | 45046 | $out->{'Self'} = $this->toSelf(); |
| 45044 | 45047 | $out->{'Sendable'} = $this->toSendable(); |
| 45045 | 45048 | $out->{'SerialDescriptor'} = $this->toSerialDescriptor(); |
| @@ -45094,10 +45097,7 @@ class Obj5 { | ||
| 45094 | 45097 | $out->{'undefined'} = $this->toUndefined(); |
| 45095 | 45098 | $out->{'union'} = $this->toUnion(); |
| 45096 | 45099 | $out->{'unowned'} = $this->toUnowned(); |
| 45097 | - $out->{'unsafe'} = $this->toUnsafe(); | |
| 45098 | - $out->{'unsigned'} = $this->toUnsigned(); | |
| 45099 | 45100 | $out->{'UseSerializers'} = $this->toUseSerializers(); |
| 45100 | - $out->{'ushort'} = $this->toUshort(); | |
| 45101 | 45101 | return $out; |
| 45102 | 45102 | } |
| 45103 | 45103 | |
| @@ -45128,6 +45128,15 @@ class Obj5 { | ||
| 45128 | 45128 | if (!property_exists($obj, 'PrimitiveKind')) { |
| 45129 | 45129 | throw new Exception("Missing required property"); |
| 45130 | 45130 | } |
| 45131 | + if (!property_exists($obj, 'sealed')) { | |
| 45132 | + throw new Exception("Missing required property"); | |
| 45133 | + } | |
| 45134 | + if (!property_exists($obj, 'SEL')) { | |
| 45135 | + throw new Exception("Missing required property"); | |
| 45136 | + } | |
| 45137 | + if (!property_exists($obj, 'select')) { | |
| 45138 | + throw new Exception("Missing required property"); | |
| 45139 | + } | |
| 45131 | 45140 | if (!property_exists($obj, 'Self')) { |
| 45132 | 45141 | throw new Exception("Missing required property"); |
| 45133 | 45142 | } |
| @@ -45290,18 +45299,9 @@ class Obj5 { | ||
| 45290 | 45299 | if (!property_exists($obj, 'unowned')) { |
| 45291 | 45300 | throw new Exception("Missing required property"); |
| 45292 | 45301 | } |
| 45293 | - if (!property_exists($obj, 'unsafe')) { | |
| 45294 | - throw new Exception("Missing required property"); | |
| 45295 | - } | |
| 45296 | - if (!property_exists($obj, 'unsigned')) { | |
| 45297 | - throw new Exception("Missing required property"); | |
| 45298 | - } | |
| 45299 | 45302 | if (!property_exists($obj, 'UseSerializers')) { |
| 45300 | 45303 | throw new Exception("Missing required property"); |
| 45301 | 45304 | } |
| 45302 | - if (!property_exists($obj, 'ushort')) { | |
| 45303 | - throw new Exception("Missing required property"); | |
| 45304 | - } | |
| 45305 | 45305 | return new Obj5( |
| 45306 | 45306 | Obj5::fromDummy($obj->{'dummy'}) |
| 45307 | 45307 | ,Obj5::fromKSerializer($obj->{'KSerializer'}) |
| @@ -45310,6 +45310,9 @@ class Obj5 { | ||
| 45310 | 45310 | ,Obj5::fromObj5True($obj->{'true'}) |
| 45311 | 45311 | ,Obj5::fromObj5Type($obj->{'type'}) |
| 45312 | 45312 | ,Obj5::fromPrimitiveKind($obj->{'PrimitiveKind'}) |
| 45313 | + ,Obj5::fromSealed($obj->{'sealed'}) | |
| 45314 | + ,Obj5::fromSel($obj->{'SEL'}) | |
| 45315 | + ,Obj5::fromSelect($obj->{'select'}) | |
| 45313 | 45316 | ,Obj5::fromSelf($obj->{'Self'}) |
| 45314 | 45317 | ,Obj5::fromSendable($obj->{'Sendable'}) |
| 45315 | 45318 | ,Obj5::fromSerialDescriptor($obj->{'SerialDescriptor'}) |
| @@ -45364,10 +45367,7 @@ class Obj5 { | ||
| 45364 | 45367 | ,Obj5::fromUndefined($obj->{'undefined'}) |
| 45365 | 45368 | ,Obj5::fromUnion($obj->{'union'}) |
| 45366 | 45369 | ,Obj5::fromUnowned($obj->{'unowned'}) |
| 45367 | - ,Obj5::fromUnsafe($obj->{'unsafe'}) | |
| 45368 | - ,Obj5::fromUnsigned($obj->{'unsigned'}) | |
| 45369 | 45370 | ,Obj5::fromUseSerializers($obj->{'UseSerializers'}) |
| 45370 | - ,Obj5::fromUshort($obj->{'ushort'}) | |
| 45371 | 45371 | ); |
| 45372 | 45372 | } |
| 45373 | 45373 | |
| @@ -45383,6 +45383,9 @@ class Obj5 { | ||
| 45383 | 45383 | ,Obj5::sampleObj5True() |
| 45384 | 45384 | ,Obj5::sampleObj5Type() |
| 45385 | 45385 | ,Obj5::samplePrimitiveKind() |
| 45386 | + ,Obj5::sampleSealed() | |
| 45387 | + ,Obj5::sampleSel() | |
| 45388 | + ,Obj5::sampleSelect() | |
| 45386 | 45389 | ,Obj5::sampleSelf() |
| 45387 | 45390 | ,Obj5::sampleSendable() |
| 45388 | 45391 | ,Obj5::sampleSerialDescriptor() |
| @@ -45437,10 +45440,7 @@ class Obj5 { | ||
| 45437 | 45440 | ,Obj5::sampleUndefined() |
| 45438 | 45441 | ,Obj5::sampleUnion() |
| 45439 | 45442 | ,Obj5::sampleUnowned() |
| 45440 | - ,Obj5::sampleUnsafe() | |
| 45441 | - ,Obj5::sampleUnsigned() | |
| 45442 | 45443 | ,Obj5::sampleUseSerializers() |
| 45443 | - ,Obj5::sampleUshort() | |
| 45444 | 45444 | ); |
| 45445 | 45445 | } |
| 45446 | 45446 | } |
| @@ -45509,7 +45509,310 @@ class KSerializer { | ||
| 45509 | 45509 | * @return bool |
| 45510 | 45510 | */ |
| 45511 | 45511 | public function validate(): bool { |
| 45512 | - return KSerializer::validateKSerializer($this->kSerializer); | |
| 45512 | + return KSerializer::validateKSerializer($this->kSerializer); | |
| 45513 | + } | |
| 45514 | + | |
| 45515 | + /** | |
| 45516 | + * @return stdClass | |
| 45517 | + * @throws Exception | |
| 45518 | + */ | |
| 45519 | + public function to(): stdClass { | |
| 45520 | + $out = new stdClass(); | |
| 45521 | + $out->{'KSerializer'} = $this->toKSerializer(); | |
| 45522 | + return $out; | |
| 45523 | + } | |
| 45524 | + | |
| 45525 | + /** | |
| 45526 | + * @param stdClass $obj | |
| 45527 | + * @return KSerializer | |
| 45528 | + * @throws Exception | |
| 45529 | + */ | |
| 45530 | + public static function from(stdClass $obj): KSerializer { | |
| 45531 | + if (!property_exists($obj, 'KSerializer')) { | |
| 45532 | + throw new Exception("Missing required property"); | |
| 45533 | + } | |
| 45534 | + return new KSerializer( | |
| 45535 | + KSerializer::fromKSerializer($obj->{'KSerializer'}) | |
| 45536 | + ); | |
| 45537 | + } | |
| 45538 | + | |
| 45539 | + /** | |
| 45540 | + * @return KSerializer | |
| 45541 | + */ | |
| 45542 | + public static function sample(): KSerializer { | |
| 45543 | + return new KSerializer( | |
| 45544 | + KSerializer::sampleKSerializer() | |
| 45545 | + ); | |
| 45546 | + } | |
| 45547 | +} | |
| 45548 | + | |
| 45549 | +// This is an autogenerated file:Obj5Self | |
| 45550 | + | |
| 45551 | +class Obj5Self { | |
| 45552 | + private int $self; // json:self Required | |
| 45553 | + | |
| 45554 | + /** | |
| 45555 | + * @param int $self | |
| 45556 | + */ | |
| 45557 | + public function __construct(int $self) { | |
| 45558 | + $this->self = $self; | |
| 45559 | + } | |
| 45560 | + | |
| 45561 | + /** | |
| 45562 | + * @param int $value | |
| 45563 | + * @throws Exception | |
| 45564 | + * @return int | |
| 45565 | + */ | |
| 45566 | + public static function fromSelf(int $value): int { | |
| 45567 | + return $value; /*int*/ | |
| 45568 | + } | |
| 45569 | + | |
| 45570 | + /** | |
| 45571 | + * @throws Exception | |
| 45572 | + * @return int | |
| 45573 | + */ | |
| 45574 | + public function toSelf(): int { | |
| 45575 | + if (Obj5Self::validateSelf($this->self)) { | |
| 45576 | + return $this->self; /*int*/ | |
| 45577 | + } | |
| 45578 | + throw new Exception('never get to this Obj5Self::self'); | |
| 45579 | + } | |
| 45580 | + | |
| 45581 | + /** | |
| 45582 | + * @param int | |
| 45583 | + * @return bool | |
| 45584 | + * @throws Exception | |
| 45585 | + */ | |
| 45586 | + public static function validateSelf(int $value): bool { | |
| 45587 | + return true; | |
| 45588 | + } | |
| 45589 | + | |
| 45590 | + /** | |
| 45591 | + * @throws Exception | |
| 45592 | + * @return int | |
| 45593 | + */ | |
| 45594 | + public function getSelf(): int { | |
| 45595 | + if (Obj5Self::validateSelf($this->self)) { | |
| 45596 | + return $this->self; | |
| 45597 | + } | |
| 45598 | + throw new Exception('never get to getSelf Obj5Self::self'); | |
| 45599 | + } | |
| 45600 | + | |
| 45601 | + /** | |
| 45602 | + * @return int | |
| 45603 | + */ | |
| 45604 | + public static function sampleSelf(): int { | |
| 45605 | + return 31; /*31:self*/ | |
| 45606 | + } | |
| 45607 | + | |
| 45608 | + /** | |
| 45609 | + * @throws Exception | |
| 45610 | + * @return bool | |
| 45611 | + */ | |
| 45612 | + public function validate(): bool { | |
| 45613 | + return Obj5Self::validateSelf($this->self); | |
| 45614 | + } | |
| 45615 | + | |
| 45616 | + /** | |
| 45617 | + * @return stdClass | |
| 45618 | + * @throws Exception | |
| 45619 | + */ | |
| 45620 | + public function to(): stdClass { | |
| 45621 | + $out = new stdClass(); | |
| 45622 | + $out->{'self'} = $this->toSelf(); | |
| 45623 | + return $out; | |
| 45624 | + } | |
| 45625 | + | |
| 45626 | + /** | |
| 45627 | + * @param stdClass $obj | |
| 45628 | + * @return Obj5Self | |
| 45629 | + * @throws Exception | |
| 45630 | + */ | |
| 45631 | + public static function from(stdClass $obj): Obj5Self { | |
| 45632 | + if (!property_exists($obj, 'self')) { | |
| 45633 | + throw new Exception("Missing required property"); | |
| 45634 | + } | |
| 45635 | + return new Obj5Self( | |
| 45636 | + Obj5Self::fromSelf($obj->{'self'}) | |
| 45637 | + ); | |
| 45638 | + } | |
| 45639 | + | |
| 45640 | + /** | |
| 45641 | + * @return Obj5Self | |
| 45642 | + */ | |
| 45643 | + public static function sample(): Obj5Self { | |
| 45644 | + return new Obj5Self( | |
| 45645 | + Obj5Self::sampleSelf() | |
| 45646 | + ); | |
| 45647 | + } | |
| 45648 | +} | |
| 45649 | + | |
| 45650 | +// This is an autogenerated file:This | |
| 45651 | + | |
| 45652 | +class This { | |
| 45653 | + private int $thisThis; // json:this Required | |
| 45654 | + | |
| 45655 | + /** | |
| 45656 | + * @param int $thisThis | |
| 45657 | + */ | |
| 45658 | + public function __construct(int $thisThis) { | |
| 45659 | + $this->thisThis = $thisThis; | |
| 45660 | + } | |
| 45661 | + | |
| 45662 | + /** | |
| 45663 | + * @param int $value | |
| 45664 | + * @throws Exception | |
| 45665 | + * @return int | |
| 45666 | + */ | |
| 45667 | + public static function fromThisThis(int $value): int { | |
| 45668 | + return $value; /*int*/ | |
| 45669 | + } | |
| 45670 | + | |
| 45671 | + /** | |
| 45672 | + * @throws Exception | |
| 45673 | + * @return int | |
| 45674 | + */ | |
| 45675 | + public function toThisThis(): int { | |
| 45676 | + if (This::validateThisThis($this->thisThis)) { | |
| 45677 | + return $this->thisThis; /*int*/ | |
| 45678 | + } | |
| 45679 | + throw new Exception('never get to this This::thisThis'); | |
| 45680 | + } | |
| 45681 | + | |
| 45682 | + /** | |
| 45683 | + * @param int | |
| 45684 | + * @return bool | |
| 45685 | + * @throws Exception | |
| 45686 | + */ | |
| 45687 | + public static function validateThisThis(int $value): bool { | |
| 45688 | + return true; | |
| 45689 | + } | |
| 45690 | + | |
| 45691 | + /** | |
| 45692 | + * @throws Exception | |
| 45693 | + * @return int | |
| 45694 | + */ | |
| 45695 | + public function getThisThis(): int { | |
| 45696 | + if (This::validateThisThis($this->thisThis)) { | |
| 45697 | + return $this->thisThis; | |
| 45698 | + } | |
| 45699 | + throw new Exception('never get to getThisThis This::thisThis'); | |
| 45700 | + } | |
| 45701 | + | |
| 45702 | + /** | |
| 45703 | + * @return int | |
| 45704 | + */ | |
| 45705 | + public static function sampleThisThis(): int { | |
| 45706 | + return 31; /*31:thisThis*/ | |
| 45707 | + } | |
| 45708 | + | |
| 45709 | + /** | |
| 45710 | + * @throws Exception | |
| 45711 | + * @return bool | |
| 45712 | + */ | |
| 45713 | + public function validate(): bool { | |
| 45714 | + return This::validateThisThis($this->thisThis); | |
| 45715 | + } | |
| 45716 | + | |
| 45717 | + /** | |
| 45718 | + * @return stdClass | |
| 45719 | + * @throws Exception | |
| 45720 | + */ | |
| 45721 | + public function to(): stdClass { | |
| 45722 | + $out = new stdClass(); | |
| 45723 | + $out->{'this'} = $this->toThisThis(); | |
| 45724 | + return $out; | |
| 45725 | + } | |
| 45726 | + | |
| 45727 | + /** | |
| 45728 | + * @param stdClass $obj | |
| 45729 | + * @return This | |
| 45730 | + * @throws Exception | |
| 45731 | + */ | |
| 45732 | + public static function from(stdClass $obj): This { | |
| 45733 | + if (!property_exists($obj, 'this')) { | |
| 45734 | + throw new Exception("Missing required property"); | |
| 45735 | + } | |
| 45736 | + return new This( | |
| 45737 | + This::fromThisThis($obj->{'this'}) | |
| 45738 | + ); | |
| 45739 | + } | |
| 45740 | + | |
| 45741 | + /** | |
| 45742 | + * @return This | |
| 45743 | + */ | |
| 45744 | + public static function sample(): This { | |
| 45745 | + return new This( | |
| 45746 | + This::sampleThisThis() | |
| 45747 | + ); | |
| 45748 | + } | |
| 45749 | +} | |
| 45750 | + | |
| 45751 | +// This is an autogenerated file:Obj5True | |
| 45752 | + | |
| 45753 | +class Obj5True { | |
| 45754 | + private int $true; // json:true Required | |
| 45755 | + | |
| 45756 | + /** | |
| 45757 | + * @param int $true | |
| 45758 | + */ | |
| 45759 | + public function __construct(int $true) { | |
| 45760 | + $this->true = $true; | |
| 45761 | + } | |
| 45762 | + | |
| 45763 | + /** | |
| 45764 | + * @param int $value | |
| 45765 | + * @throws Exception | |
| 45766 | + * @return int | |
| 45767 | + */ | |
| 45768 | + public static function fromTrue(int $value): int { | |
| 45769 | + return $value; /*int*/ | |
| 45770 | + } | |
| 45771 | + | |
| 45772 | + /** | |
| 45773 | + * @throws Exception | |
| 45774 | + * @return int | |
| 45775 | + */ | |
| 45776 | + public function toTrue(): int { | |
| 45777 | + if (Obj5True::validateTrue($this->true)) { | |
| 45778 | + return $this->true; /*int*/ | |
| 45779 | + } | |
| 45780 | + throw new Exception('never get to this Obj5True::true'); | |
| 45781 | + } | |
| 45782 | + | |
| 45783 | + /** | |
| 45784 | + * @param int | |
| 45785 | + * @return bool | |
| 45786 | + * @throws Exception | |
| 45787 | + */ | |
| 45788 | + public static function validateTrue(int $value): bool { | |
| 45789 | + return true; | |
| 45790 | + } | |
| 45791 | + | |
| 45792 | + /** | |
| 45793 | + * @throws Exception | |
| 45794 | + * @return int | |
| 45795 | + */ | |
| 45796 | + public function getTrue(): int { | |
| 45797 | + if (Obj5True::validateTrue($this->true)) { | |
| 45798 | + return $this->true; | |
| 45799 | + } | |
| 45800 | + throw new Exception('never get to getTrue Obj5True::true'); | |
| 45801 | + } | |
| 45802 | + | |
| 45803 | + /** | |
| 45804 | + * @return int | |
| 45805 | + */ | |
| 45806 | + public static function sampleTrue(): int { | |
| 45807 | + return 31; /*31:true*/ | |
| 45808 | + } | |
| 45809 | + | |
| 45810 | + /** | |
| 45811 | + * @throws Exception | |
| 45812 | + * @return bool | |
| 45813 | + */ | |
| 45814 | + public function validate(): bool { | |
| 45815 | + return Obj5True::validateTrue($this->true); | |
| 45513 | 45816 | } |
| 45514 | 45817 | |
| 45515 | 45818 | /** |
| @@ -45518,44 +45821,44 @@ class KSerializer { | ||
| 45518 | 45821 | */ |
| 45519 | 45822 | public function to(): stdClass { |
| 45520 | 45823 | $out = new stdClass(); |
| 45521 | - $out->{'KSerializer'} = $this->toKSerializer(); | |
| 45824 | + $out->{'true'} = $this->toTrue(); | |
| 45522 | 45825 | return $out; |
| 45523 | 45826 | } |
| 45524 | 45827 | |
| 45525 | 45828 | /** |
| 45526 | 45829 | * @param stdClass $obj |
| 45527 | - * @return KSerializer | |
| 45830 | + * @return Obj5True | |
| 45528 | 45831 | * @throws Exception |
| 45529 | 45832 | */ |
| 45530 | - public static function from(stdClass $obj): KSerializer { | |
| 45531 | - if (!property_exists($obj, 'KSerializer')) { | |
| 45833 | + public static function from(stdClass $obj): Obj5True { | |
| 45834 | + if (!property_exists($obj, 'true')) { | |
| 45532 | 45835 | throw new Exception("Missing required property"); |
| 45533 | 45836 | } |
| 45534 | - return new KSerializer( | |
| 45535 | - KSerializer::fromKSerializer($obj->{'KSerializer'}) | |
| 45837 | + return new Obj5True( | |
| 45838 | + Obj5True::fromTrue($obj->{'true'}) | |
| 45536 | 45839 | ); |
| 45537 | 45840 | } |
| 45538 | 45841 | |
| 45539 | 45842 | /** |
| 45540 | - * @return KSerializer | |
| 45843 | + * @return Obj5True | |
| 45541 | 45844 | */ |
| 45542 | - public static function sample(): KSerializer { | |
| 45543 | - return new KSerializer( | |
| 45544 | - KSerializer::sampleKSerializer() | |
| 45845 | + public static function sample(): Obj5True { | |
| 45846 | + return new Obj5True( | |
| 45847 | + Obj5True::sampleTrue() | |
| 45545 | 45848 | ); |
| 45546 | 45849 | } |
| 45547 | 45850 | } |
| 45548 | 45851 | |
| 45549 | -// This is an autogenerated file:Obj5Self | |
| 45852 | +// This is an autogenerated file:TypeClass | |
| 45550 | 45853 | |
| 45551 | -class Obj5Self { | |
| 45552 | - private int $self; // json:self Required | |
| 45854 | +class TypeClass { | |
| 45855 | + private int $type; // json:type Required | |
| 45553 | 45856 | |
| 45554 | 45857 | /** |
| 45555 | - * @param int $self | |
| 45858 | + * @param int $type | |
| 45556 | 45859 | */ |
| 45557 | - public function __construct(int $self) { | |
| 45558 | - $this->self = $self; | |
| 45860 | + public function __construct(int $type) { | |
| 45861 | + $this->type = $type; | |
| 45559 | 45862 | } |
| 45560 | 45863 | |
| 45561 | 45864 | /** |
| @@ -45563,7 +45866,7 @@ class Obj5Self { | ||
| 45563 | 45866 | * @throws Exception |
| 45564 | 45867 | * @return int |
| 45565 | 45868 | */ |
| 45566 | - public static function fromSelf(int $value): int { | |
| 45869 | + public static function fromType(int $value): int { | |
| 45567 | 45870 | return $value; /*int*/ |
| 45568 | 45871 | } |
| 45569 | 45872 | |
| @@ -45571,11 +45874,11 @@ class Obj5Self { | ||
| 45571 | 45874 | * @throws Exception |
| 45572 | 45875 | * @return int |
| 45573 | 45876 | */ |
| 45574 | - public function toSelf(): int { | |
| 45575 | - if (Obj5Self::validateSelf($this->self)) { | |
| 45576 | - return $this->self; /*int*/ | |
| 45877 | + public function toType(): int { | |
| 45878 | + if (TypeClass::validateType($this->type)) { | |
| 45879 | + return $this->type; /*int*/ | |
| 45577 | 45880 | } |
| 45578 | - throw new Exception('never get to this Obj5Self::self'); | |
| 45881 | + throw new Exception('never get to this TypeClass::type'); | |
| 45579 | 45882 | } |
| 45580 | 45883 | |
| 45581 | 45884 | /** |
| @@ -45583,7 +45886,7 @@ class Obj5Self { | ||
| 45583 | 45886 | * @return bool |
| 45584 | 45887 | * @throws Exception |
| 45585 | 45888 | */ |
| 45586 | - public static function validateSelf(int $value): bool { | |
| 45889 | + public static function validateType(int $value): bool { | |
| 45587 | 45890 | return true; |
| 45588 | 45891 | } |
| 45589 | 45892 | |
| @@ -45591,18 +45894,18 @@ class Obj5Self { | ||
| 45591 | 45894 | * @throws Exception |
| 45592 | 45895 | * @return int |
| 45593 | 45896 | */ |
| 45594 | - public function getSelf(): int { | |
| 45595 | - if (Obj5Self::validateSelf($this->self)) { | |
| 45596 | - return $this->self; | |
| 45897 | + public function getType(): int { | |
| 45898 | + if (TypeClass::validateType($this->type)) { | |
| 45899 | + return $this->type; | |
| 45597 | 45900 | } |
| 45598 | - throw new Exception('never get to getSelf Obj5Self::self'); | |
| 45901 | + throw new Exception('never get to getType TypeClass::type'); | |
| 45599 | 45902 | } |
| 45600 | 45903 | |
| 45601 | 45904 | /** |
| 45602 | 45905 | * @return int |
| 45603 | 45906 | */ |
| 45604 | - public static function sampleSelf(): int { | |
| 45605 | - return 31; /*31:self*/ | |
| 45907 | + public static function sampleType(): int { | |
| 45908 | + return 31; /*31:type*/ | |
| 45606 | 45909 | } |
| 45607 | 45910 | |
| 45608 | 45911 | /** |
| @@ -45610,7 +45913,7 @@ class Obj5Self { | ||
| 45610 | 45913 | * @return bool |
| 45611 | 45914 | */ |
| 45612 | 45915 | public function validate(): bool { |
| 45613 | - return Obj5Self::validateSelf($this->self); | |
| 45916 | + return TypeClass::validateType($this->type); | |
| 45614 | 45917 | } |
| 45615 | 45918 | |
| 45616 | 45919 | /** |
| @@ -45619,44 +45922,44 @@ class Obj5Self { | ||
| 45619 | 45922 | */ |
| 45620 | 45923 | public function to(): stdClass { |
| 45621 | 45924 | $out = new stdClass(); |
| 45622 | - $out->{'self'} = $this->toSelf(); | |
| 45925 | + $out->{'type'} = $this->toType(); | |
| 45623 | 45926 | return $out; |
| 45624 | 45927 | } |
| 45625 | 45928 | |
| 45626 | 45929 | /** |
| 45627 | 45930 | * @param stdClass $obj |
| 45628 | - * @return Obj5Self | |
| 45931 | + * @return TypeClass | |
| 45629 | 45932 | * @throws Exception |
| 45630 | 45933 | */ |
| 45631 | - public static function from(stdClass $obj): Obj5Self { | |
| 45632 | - if (!property_exists($obj, 'self')) { | |
| 45934 | + public static function from(stdClass $obj): TypeClass { | |
| 45935 | + if (!property_exists($obj, 'type')) { | |
| 45633 | 45936 | throw new Exception("Missing required property"); |
| 45634 | 45937 | } |
| 45635 | - return new Obj5Self( | |
| 45636 | - Obj5Self::fromSelf($obj->{'self'}) | |
| 45938 | + return new TypeClass( | |
| 45939 | + TypeClass::fromType($obj->{'type'}) | |
| 45637 | 45940 | ); |
| 45638 | 45941 | } |
| 45639 | 45942 | |
| 45640 | 45943 | /** |
| 45641 | - * @return Obj5Self | |
| 45944 | + * @return TypeClass | |
| 45642 | 45945 | */ |
| 45643 | - public static function sample(): Obj5Self { | |
| 45644 | - return new Obj5Self( | |
| 45645 | - Obj5Self::sampleSelf() | |
| 45946 | + public static function sample(): TypeClass { | |
| 45947 | + return new TypeClass( | |
| 45948 | + TypeClass::sampleType() | |
| 45646 | 45949 | ); |
| 45647 | 45950 | } |
| 45648 | 45951 | } |
| 45649 | 45952 | |
| 45650 | -// This is an autogenerated file:This | |
| 45953 | +// This is an autogenerated file:PrimitiveKind | |
| 45651 | 45954 | |
| 45652 | -class This { | |
| 45653 | - private int $thisThis; // json:this Required | |
| 45955 | +class PrimitiveKind { | |
| 45956 | + private int $primitiveKind; // json:PrimitiveKind Required | |
| 45654 | 45957 | |
| 45655 | 45958 | /** |
| 45656 | - * @param int $thisThis | |
| 45959 | + * @param int $primitiveKind | |
| 45657 | 45960 | */ |
| 45658 | - public function __construct(int $thisThis) { | |
| 45659 | - $this->thisThis = $thisThis; | |
| 45961 | + public function __construct(int $primitiveKind) { | |
| 45962 | + $this->primitiveKind = $primitiveKind; | |
| 45660 | 45963 | } |
| 45661 | 45964 | |
| 45662 | 45965 | /** |
| @@ -45664,7 +45967,7 @@ class This { | ||
| 45664 | 45967 | * @throws Exception |
| 45665 | 45968 | * @return int |
| 45666 | 45969 | */ |
| 45667 | - public static function fromThisThis(int $value): int { | |
| 45970 | + public static function fromPrimitiveKind(int $value): int { | |
| 45668 | 45971 | return $value; /*int*/ |
| 45669 | 45972 | } |
| 45670 | 45973 | |
| @@ -45672,11 +45975,11 @@ class This { | ||
| 45672 | 45975 | * @throws Exception |
| 45673 | 45976 | * @return int |
| 45674 | 45977 | */ |
| 45675 | - public function toThisThis(): int { | |
| 45676 | - if (This::validateThisThis($this->thisThis)) { | |
| 45677 | - return $this->thisThis; /*int*/ | |
| 45978 | + public function toPrimitiveKind(): int { | |
| 45979 | + if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 45980 | + return $this->primitiveKind; /*int*/ | |
| 45678 | 45981 | } |
| 45679 | - throw new Exception('never get to this This::thisThis'); | |
| 45982 | + throw new Exception('never get to this PrimitiveKind::primitiveKind'); | |
| 45680 | 45983 | } |
| 45681 | 45984 | |
| 45682 | 45985 | /** |
| @@ -45684,7 +45987,7 @@ class This { | ||
| 45684 | 45987 | * @return bool |
| 45685 | 45988 | * @throws Exception |
| 45686 | 45989 | */ |
| 45687 | - public static function validateThisThis(int $value): bool { | |
| 45990 | + public static function validatePrimitiveKind(int $value): bool { | |
| 45688 | 45991 | return true; |
| 45689 | 45992 | } |
| 45690 | 45993 | |
| @@ -45692,18 +45995,18 @@ class This { | ||
| 45692 | 45995 | * @throws Exception |
| 45693 | 45996 | * @return int |
| 45694 | 45997 | */ |
| 45695 | - public function getThisThis(): int { | |
| 45696 | - if (This::validateThisThis($this->thisThis)) { | |
| 45697 | - return $this->thisThis; | |
| 45998 | + public function getPrimitiveKind(): int { | |
| 45999 | + if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 46000 | + return $this->primitiveKind; | |
| 45698 | 46001 | } |
| 45699 | - throw new Exception('never get to getThisThis This::thisThis'); | |
| 46002 | + throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind'); | |
| 45700 | 46003 | } |
| 45701 | 46004 | |
| 45702 | 46005 | /** |
| 45703 | 46006 | * @return int |
| 45704 | 46007 | */ |
| 45705 | - public static function sampleThisThis(): int { | |
| 45706 | - return 31; /*31:thisThis*/ | |
| 46008 | + public static function samplePrimitiveKind(): int { | |
| 46009 | + return 31; /*31:primitiveKind*/ | |
| 45707 | 46010 | } |
| 45708 | 46011 | |
| 45709 | 46012 | /** |
| @@ -45711,7 +46014,7 @@ class This { | ||
| 45711 | 46014 | * @return bool |
| 45712 | 46015 | */ |
| 45713 | 46016 | public function validate(): bool { |
| 45714 | - return This::validateThisThis($this->thisThis); | |
| 46017 | + return PrimitiveKind::validatePrimitiveKind($this->primitiveKind); | |
| 45715 | 46018 | } |
| 45716 | 46019 | |
| 45717 | 46020 | /** |
| @@ -45720,44 +46023,44 @@ class This { | ||
| 45720 | 46023 | */ |
| 45721 | 46024 | public function to(): stdClass { |
| 45722 | 46025 | $out = new stdClass(); |
| 45723 | - $out->{'this'} = $this->toThisThis(); | |
| 46026 | + $out->{'PrimitiveKind'} = $this->toPrimitiveKind(); | |
| 45724 | 46027 | return $out; |
| 45725 | 46028 | } |
| 45726 | 46029 | |
| 45727 | 46030 | /** |
| 45728 | 46031 | * @param stdClass $obj |
| 45729 | - * @return This | |
| 46032 | + * @return PrimitiveKind | |
| 45730 | 46033 | * @throws Exception |
| 45731 | 46034 | */ |
| 45732 | - public static function from(stdClass $obj): This { | |
| 45733 | - if (!property_exists($obj, 'this')) { | |
| 46035 | + public static function from(stdClass $obj): PrimitiveKind { | |
| 46036 | + if (!property_exists($obj, 'PrimitiveKind')) { | |
| 45734 | 46037 | throw new Exception("Missing required property"); |
| 45735 | 46038 | } |
| 45736 | - return new This( | |
| 45737 | - This::fromThisThis($obj->{'this'}) | |
| 46039 | + return new PrimitiveKind( | |
| 46040 | + PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'}) | |
| 45738 | 46041 | ); |
| 45739 | 46042 | } |
| 45740 | 46043 | |
| 45741 | 46044 | /** |
| 45742 | - * @return This | |
| 46045 | + * @return PrimitiveKind | |
| 45743 | 46046 | */ |
| 45744 | - public static function sample(): This { | |
| 45745 | - return new This( | |
| 45746 | - This::sampleThisThis() | |
| 46047 | + public static function sample(): PrimitiveKind { | |
| 46048 | + return new PrimitiveKind( | |
| 46049 | + PrimitiveKind::samplePrimitiveKind() | |
| 45747 | 46050 | ); |
| 45748 | 46051 | } |
| 45749 | 46052 | } |
| 45750 | 46053 | |
| 45751 | -// This is an autogenerated file:Obj5True | |
| 46054 | +// This is an autogenerated file:Sealed | |
| 45752 | 46055 | |
| 45753 | -class Obj5True { | |
| 45754 | - private int $true; // json:true Required | |
| 46056 | +class Sealed { | |
| 46057 | + private int $sealed; // json:sealed Required | |
| 45755 | 46058 | |
| 45756 | 46059 | /** |
| 45757 | - * @param int $true | |
| 46060 | + * @param int $sealed | |
| 45758 | 46061 | */ |
| 45759 | - public function __construct(int $true) { | |
| 45760 | - $this->true = $true; | |
| 46062 | + public function __construct(int $sealed) { | |
| 46063 | + $this->sealed = $sealed; | |
| 45761 | 46064 | } |
| 45762 | 46065 | |
| 45763 | 46066 | /** |
| @@ -45765,7 +46068,7 @@ class Obj5True { | ||
| 45765 | 46068 | * @throws Exception |
| 45766 | 46069 | * @return int |
| 45767 | 46070 | */ |
| 45768 | - public static function fromTrue(int $value): int { | |
| 46071 | + public static function fromSealed(int $value): int { | |
| 45769 | 46072 | return $value; /*int*/ |
| 45770 | 46073 | } |
| 45771 | 46074 | |
| @@ -45773,11 +46076,11 @@ class Obj5True { | ||
| 45773 | 46076 | * @throws Exception |
| 45774 | 46077 | * @return int |
| 45775 | 46078 | */ |
| 45776 | - public function toTrue(): int { | |
| 45777 | - if (Obj5True::validateTrue($this->true)) { | |
| 45778 | - return $this->true; /*int*/ | |
| 46079 | + public function toSealed(): int { | |
| 46080 | + if (Sealed::validateSealed($this->sealed)) { | |
| 46081 | + return $this->sealed; /*int*/ | |
| 45779 | 46082 | } |
| 45780 | - throw new Exception('never get to this Obj5True::true'); | |
| 46083 | + throw new Exception('never get to this Sealed::sealed'); | |
| 45781 | 46084 | } |
| 45782 | 46085 | |
| 45783 | 46086 | /** |
| @@ -45785,7 +46088,7 @@ class Obj5True { | ||
| 45785 | 46088 | * @return bool |
| 45786 | 46089 | * @throws Exception |
| 45787 | 46090 | */ |
| 45788 | - public static function validateTrue(int $value): bool { | |
| 46091 | + public static function validateSealed(int $value): bool { | |
| 45789 | 46092 | return true; |
| 45790 | 46093 | } |
| 45791 | 46094 | |
| @@ -45793,18 +46096,18 @@ class Obj5True { | ||
| 45793 | 46096 | * @throws Exception |
| 45794 | 46097 | * @return int |
| 45795 | 46098 | */ |
| 45796 | - public function getTrue(): int { | |
| 45797 | - if (Obj5True::validateTrue($this->true)) { | |
| 45798 | - return $this->true; | |
| 46099 | + public function getSealed(): int { | |
| 46100 | + if (Sealed::validateSealed($this->sealed)) { | |
| 46101 | + return $this->sealed; | |
| 45799 | 46102 | } |
| 45800 | - throw new Exception('never get to getTrue Obj5True::true'); | |
| 46103 | + throw new Exception('never get to getSealed Sealed::sealed'); | |
| 45801 | 46104 | } |
| 45802 | 46105 | |
| 45803 | 46106 | /** |
| 45804 | 46107 | * @return int |
| 45805 | 46108 | */ |
| 45806 | - public static function sampleTrue(): int { | |
| 45807 | - return 31; /*31:true*/ | |
| 46109 | + public static function sampleSealed(): int { | |
| 46110 | + return 31; /*31:sealed*/ | |
| 45808 | 46111 | } |
| 45809 | 46112 | |
| 45810 | 46113 | /** |
| @@ -45812,7 +46115,7 @@ class Obj5True { | ||
| 45812 | 46115 | * @return bool |
| 45813 | 46116 | */ |
| 45814 | 46117 | public function validate(): bool { |
| 45815 | - return Obj5True::validateTrue($this->true); | |
| 46118 | + return Sealed::validateSealed($this->sealed); | |
| 45816 | 46119 | } |
| 45817 | 46120 | |
| 45818 | 46121 | /** |
| @@ -45821,44 +46124,44 @@ class Obj5True { | ||
| 45821 | 46124 | */ |
| 45822 | 46125 | public function to(): stdClass { |
| 45823 | 46126 | $out = new stdClass(); |
| 45824 | - $out->{'true'} = $this->toTrue(); | |
| 46127 | + $out->{'sealed'} = $this->toSealed(); | |
| 45825 | 46128 | return $out; |
| 45826 | 46129 | } |
| 45827 | 46130 | |
| 45828 | 46131 | /** |
| 45829 | 46132 | * @param stdClass $obj |
| 45830 | - * @return Obj5True | |
| 46133 | + * @return Sealed | |
| 45831 | 46134 | * @throws Exception |
| 45832 | 46135 | */ |
| 45833 | - public static function from(stdClass $obj): Obj5True { | |
| 45834 | - if (!property_exists($obj, 'true')) { | |
| 46136 | + public static function from(stdClass $obj): Sealed { | |
| 46137 | + if (!property_exists($obj, 'sealed')) { | |
| 45835 | 46138 | throw new Exception("Missing required property"); |
| 45836 | 46139 | } |
| 45837 | - return new Obj5True( | |
| 45838 | - Obj5True::fromTrue($obj->{'true'}) | |
| 46140 | + return new Sealed( | |
| 46141 | + Sealed::fromSealed($obj->{'sealed'}) | |
| 45839 | 46142 | ); |
| 45840 | 46143 | } |
| 45841 | 46144 | |
| 45842 | 46145 | /** |
| 45843 | - * @return Obj5True | |
| 46146 | + * @return Sealed | |
| 45844 | 46147 | */ |
| 45845 | - public static function sample(): Obj5True { | |
| 45846 | - return new Obj5True( | |
| 45847 | - Obj5True::sampleTrue() | |
| 46148 | + public static function sample(): Sealed { | |
| 46149 | + return new Sealed( | |
| 46150 | + Sealed::sampleSealed() | |
| 45848 | 46151 | ); |
| 45849 | 46152 | } |
| 45850 | 46153 | } |
| 45851 | 46154 | |
| 45852 | -// This is an autogenerated file:TypeClass | |
| 46155 | +// This is an autogenerated file:Sel | |
| 45853 | 46156 | |
| 45854 | -class TypeClass { | |
| 45855 | - private int $type; // json:type Required | |
| 46157 | +class Sel { | |
| 46158 | + private int $sel; // json:SEL Required | |
| 45856 | 46159 | |
| 45857 | 46160 | /** |
| 45858 | - * @param int $type | |
| 46161 | + * @param int $sel | |
| 45859 | 46162 | */ |
| 45860 | - public function __construct(int $type) { | |
| 45861 | - $this->type = $type; | |
| 46163 | + public function __construct(int $sel) { | |
| 46164 | + $this->sel = $sel; | |
| 45862 | 46165 | } |
| 45863 | 46166 | |
| 45864 | 46167 | /** |
| @@ -45866,7 +46169,7 @@ class TypeClass { | ||
| 45866 | 46169 | * @throws Exception |
| 45867 | 46170 | * @return int |
| 45868 | 46171 | */ |
| 45869 | - public static function fromType(int $value): int { | |
| 46172 | + public static function fromSel(int $value): int { | |
| 45870 | 46173 | return $value; /*int*/ |
| 45871 | 46174 | } |
| 45872 | 46175 | |
| @@ -45874,11 +46177,11 @@ class TypeClass { | ||
| 45874 | 46177 | * @throws Exception |
| 45875 | 46178 | * @return int |
| 45876 | 46179 | */ |
| 45877 | - public function toType(): int { | |
| 45878 | - if (TypeClass::validateType($this->type)) { | |
| 45879 | - return $this->type; /*int*/ | |
| 46180 | + public function toSel(): int { | |
| 46181 | + if (Sel::validateSel($this->sel)) { | |
| 46182 | + return $this->sel; /*int*/ | |
| 45880 | 46183 | } |
| 45881 | - throw new Exception('never get to this TypeClass::type'); | |
| 46184 | + throw new Exception('never get to this Sel::sel'); | |
| 45882 | 46185 | } |
| 45883 | 46186 | |
| 45884 | 46187 | /** |
| @@ -45886,7 +46189,7 @@ class TypeClass { | ||
| 45886 | 46189 | * @return bool |
| 45887 | 46190 | * @throws Exception |
| 45888 | 46191 | */ |
| 45889 | - public static function validateType(int $value): bool { | |
| 46192 | + public static function validateSel(int $value): bool { | |
| 45890 | 46193 | return true; |
| 45891 | 46194 | } |
| 45892 | 46195 | |
| @@ -45894,18 +46197,18 @@ class TypeClass { | ||
| 45894 | 46197 | * @throws Exception |
| 45895 | 46198 | * @return int |
| 45896 | 46199 | */ |
| 45897 | - public function getType(): int { | |
| 45898 | - if (TypeClass::validateType($this->type)) { | |
| 45899 | - return $this->type; | |
| 46200 | + public function getSel(): int { | |
| 46201 | + if (Sel::validateSel($this->sel)) { | |
| 46202 | + return $this->sel; | |
| 45900 | 46203 | } |
| 45901 | - throw new Exception('never get to getType TypeClass::type'); | |
| 46204 | + throw new Exception('never get to getSel Sel::sel'); | |
| 45902 | 46205 | } |
| 45903 | 46206 | |
| 45904 | 46207 | /** |
| 45905 | 46208 | * @return int |
| 45906 | 46209 | */ |
| 45907 | - public static function sampleType(): int { | |
| 45908 | - return 31; /*31:type*/ | |
| 46210 | + public static function sampleSel(): int { | |
| 46211 | + return 31; /*31:sel*/ | |
| 45909 | 46212 | } |
| 45910 | 46213 | |
| 45911 | 46214 | /** |
| @@ -45913,7 +46216,7 @@ class TypeClass { | ||
| 45913 | 46216 | * @return bool |
| 45914 | 46217 | */ |
| 45915 | 46218 | public function validate(): bool { |
| 45916 | - return TypeClass::validateType($this->type); | |
| 46219 | + return Sel::validateSel($this->sel); | |
| 45917 | 46220 | } |
| 45918 | 46221 | |
| 45919 | 46222 | /** |
| @@ -45922,44 +46225,44 @@ class TypeClass { | ||
| 45922 | 46225 | */ |
| 45923 | 46226 | public function to(): stdClass { |
| 45924 | 46227 | $out = new stdClass(); |
| 45925 | - $out->{'type'} = $this->toType(); | |
| 46228 | + $out->{'SEL'} = $this->toSel(); | |
| 45926 | 46229 | return $out; |
| 45927 | 46230 | } |
| 45928 | 46231 | |
| 45929 | 46232 | /** |
| 45930 | 46233 | * @param stdClass $obj |
| 45931 | - * @return TypeClass | |
| 46234 | + * @return Sel | |
| 45932 | 46235 | * @throws Exception |
| 45933 | 46236 | */ |
| 45934 | - public static function from(stdClass $obj): TypeClass { | |
| 45935 | - if (!property_exists($obj, 'type')) { | |
| 46237 | + public static function from(stdClass $obj): Sel { | |
| 46238 | + if (!property_exists($obj, 'SEL')) { | |
| 45936 | 46239 | throw new Exception("Missing required property"); |
| 45937 | 46240 | } |
| 45938 | - return new TypeClass( | |
| 45939 | - TypeClass::fromType($obj->{'type'}) | |
| 46241 | + return new Sel( | |
| 46242 | + Sel::fromSel($obj->{'SEL'}) | |
| 45940 | 46243 | ); |
| 45941 | 46244 | } |
| 45942 | 46245 | |
| 45943 | 46246 | /** |
| 45944 | - * @return TypeClass | |
| 46247 | + * @return Sel | |
| 45945 | 46248 | */ |
| 45946 | - public static function sample(): TypeClass { | |
| 45947 | - return new TypeClass( | |
| 45948 | - TypeClass::sampleType() | |
| 46249 | + public static function sample(): Sel { | |
| 46250 | + return new Sel( | |
| 46251 | + Sel::sampleSel() | |
| 45949 | 46252 | ); |
| 45950 | 46253 | } |
| 45951 | 46254 | } |
| 45952 | 46255 | |
| 45953 | -// This is an autogenerated file:PrimitiveKind | |
| 46256 | +// This is an autogenerated file:Select | |
| 45954 | 46257 | |
| 45955 | -class PrimitiveKind { | |
| 45956 | - private int $primitiveKind; // json:PrimitiveKind Required | |
| 46258 | +class Select { | |
| 46259 | + private int $select; // json:select Required | |
| 45957 | 46260 | |
| 45958 | 46261 | /** |
| 45959 | - * @param int $primitiveKind | |
| 46262 | + * @param int $select | |
| 45960 | 46263 | */ |
| 45961 | - public function __construct(int $primitiveKind) { | |
| 45962 | - $this->primitiveKind = $primitiveKind; | |
| 46264 | + public function __construct(int $select) { | |
| 46265 | + $this->select = $select; | |
| 45963 | 46266 | } |
| 45964 | 46267 | |
| 45965 | 46268 | /** |
| @@ -45967,7 +46270,7 @@ class PrimitiveKind { | ||
| 45967 | 46270 | * @throws Exception |
| 45968 | 46271 | * @return int |
| 45969 | 46272 | */ |
| 45970 | - public static function fromPrimitiveKind(int $value): int { | |
| 46273 | + public static function fromSelect(int $value): int { | |
| 45971 | 46274 | return $value; /*int*/ |
| 45972 | 46275 | } |
| 45973 | 46276 | |
| @@ -45975,11 +46278,11 @@ class PrimitiveKind { | ||
| 45975 | 46278 | * @throws Exception |
| 45976 | 46279 | * @return int |
| 45977 | 46280 | */ |
| 45978 | - public function toPrimitiveKind(): int { | |
| 45979 | - if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 45980 | - return $this->primitiveKind; /*int*/ | |
| 46281 | + public function toSelect(): int { | |
| 46282 | + if (Select::validateSelect($this->select)) { | |
| 46283 | + return $this->select; /*int*/ | |
| 45981 | 46284 | } |
| 45982 | - throw new Exception('never get to this PrimitiveKind::primitiveKind'); | |
| 46285 | + throw new Exception('never get to this Select::select'); | |
| 45983 | 46286 | } |
| 45984 | 46287 | |
| 45985 | 46288 | /** |
| @@ -45987,7 +46290,7 @@ class PrimitiveKind { | ||
| 45987 | 46290 | * @return bool |
| 45988 | 46291 | * @throws Exception |
| 45989 | 46292 | */ |
| 45990 | - public static function validatePrimitiveKind(int $value): bool { | |
| 46293 | + public static function validateSelect(int $value): bool { | |
| 45991 | 46294 | return true; |
| 45992 | 46295 | } |
| 45993 | 46296 | |
| @@ -45995,18 +46298,18 @@ class PrimitiveKind { | ||
| 45995 | 46298 | * @throws Exception |
| 45996 | 46299 | * @return int |
| 45997 | 46300 | */ |
| 45998 | - public function getPrimitiveKind(): int { | |
| 45999 | - if (PrimitiveKind::validatePrimitiveKind($this->primitiveKind)) { | |
| 46000 | - return $this->primitiveKind; | |
| 46301 | + public function getSelect(): int { | |
| 46302 | + if (Select::validateSelect($this->select)) { | |
| 46303 | + return $this->select; | |
| 46001 | 46304 | } |
| 46002 | - throw new Exception('never get to getPrimitiveKind PrimitiveKind::primitiveKind'); | |
| 46305 | + throw new Exception('never get to getSelect Select::select'); | |
| 46003 | 46306 | } |
| 46004 | 46307 | |
| 46005 | 46308 | /** |
| 46006 | 46309 | * @return int |
| 46007 | 46310 | */ |
| 46008 | - public static function samplePrimitiveKind(): int { | |
| 46009 | - return 31; /*31:primitiveKind*/ | |
| 46311 | + public static function sampleSelect(): int { | |
| 46312 | + return 31; /*31:select*/ | |
| 46010 | 46313 | } |
| 46011 | 46314 | |
| 46012 | 46315 | /** |
| @@ -46014,7 +46317,7 @@ class PrimitiveKind { | ||
| 46014 | 46317 | * @return bool |
| 46015 | 46318 | */ |
| 46016 | 46319 | public function validate(): bool { |
| 46017 | - return PrimitiveKind::validatePrimitiveKind($this->primitiveKind); | |
| 46320 | + return Select::validateSelect($this->select); | |
| 46018 | 46321 | } |
| 46019 | 46322 | |
| 46020 | 46323 | /** |
| @@ -46023,30 +46326,30 @@ class PrimitiveKind { | ||
| 46023 | 46326 | */ |
| 46024 | 46327 | public function to(): stdClass { |
| 46025 | 46328 | $out = new stdClass(); |
| 46026 | - $out->{'PrimitiveKind'} = $this->toPrimitiveKind(); | |
| 46329 | + $out->{'select'} = $this->toSelect(); | |
| 46027 | 46330 | return $out; |
| 46028 | 46331 | } |
| 46029 | 46332 | |
| 46030 | 46333 | /** |
| 46031 | 46334 | * @param stdClass $obj |
| 46032 | - * @return PrimitiveKind | |
| 46335 | + * @return Select | |
| 46033 | 46336 | * @throws Exception |
| 46034 | 46337 | */ |
| 46035 | - public static function from(stdClass $obj): PrimitiveKind { | |
| 46036 | - if (!property_exists($obj, 'PrimitiveKind')) { | |
| 46338 | + public static function from(stdClass $obj): Select { | |
| 46339 | + if (!property_exists($obj, 'select')) { | |
| 46037 | 46340 | throw new Exception("Missing required property"); |
| 46038 | 46341 | } |
| 46039 | - return new PrimitiveKind( | |
| 46040 | - PrimitiveKind::fromPrimitiveKind($obj->{'PrimitiveKind'}) | |
| 46342 | + return new Select( | |
| 46343 | + Select::fromSelect($obj->{'select'}) | |
| 46041 | 46344 | ); |
| 46042 | 46345 | } |
| 46043 | 46346 | |
| 46044 | 46347 | /** |
| 46045 | - * @return PrimitiveKind | |
| 46348 | + * @return Select | |
| 46046 | 46349 | */ |
| 46047 | - public static function sample(): PrimitiveKind { | |
| 46048 | - return new PrimitiveKind( | |
| 46049 | - PrimitiveKind::samplePrimitiveKind() | |
| 46350 | + public static function sample(): Select { | |
| 46351 | + return new Select( | |
| 46352 | + Select::sampleSelect() | |
| 46050 | 46353 | ); |
| 46051 | 46354 | } |
| 46052 | 46355 | } |
| @@ -51092,25 +51395,227 @@ class Ulong { | ||
| 51092 | 51395 | } |
| 51093 | 51396 | |
| 51094 | 51397 | /** |
| 51095 | - * @return Ulong | |
| 51398 | + * @return Ulong | |
| 51399 | + */ | |
| 51400 | + public static function sample(): Ulong { | |
| 51401 | + return new Ulong( | |
| 51402 | + Ulong::sampleUlong() | |
| 51403 | + ); | |
| 51404 | + } | |
| 51405 | +} | |
| 51406 | + | |
| 51407 | +// This is an autogenerated file:Unchecked | |
| 51408 | + | |
| 51409 | +class Unchecked { | |
| 51410 | + private int $unchecked; // json:unchecked Required | |
| 51411 | + | |
| 51412 | + /** | |
| 51413 | + * @param int $unchecked | |
| 51414 | + */ | |
| 51415 | + public function __construct(int $unchecked) { | |
| 51416 | + $this->unchecked = $unchecked; | |
| 51417 | + } | |
| 51418 | + | |
| 51419 | + /** | |
| 51420 | + * @param int $value | |
| 51421 | + * @throws Exception | |
| 51422 | + * @return int | |
| 51423 | + */ | |
| 51424 | + public static function fromUnchecked(int $value): int { | |
| 51425 | + return $value; /*int*/ | |
| 51426 | + } | |
| 51427 | + | |
| 51428 | + /** | |
| 51429 | + * @throws Exception | |
| 51430 | + * @return int | |
| 51431 | + */ | |
| 51432 | + public function toUnchecked(): int { | |
| 51433 | + if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51434 | + return $this->unchecked; /*int*/ | |
| 51435 | + } | |
| 51436 | + throw new Exception('never get to this Unchecked::unchecked'); | |
| 51437 | + } | |
| 51438 | + | |
| 51439 | + /** | |
| 51440 | + * @param int | |
| 51441 | + * @return bool | |
| 51442 | + * @throws Exception | |
| 51443 | + */ | |
| 51444 | + public static function validateUnchecked(int $value): bool { | |
| 51445 | + return true; | |
| 51446 | + } | |
| 51447 | + | |
| 51448 | + /** | |
| 51449 | + * @throws Exception | |
| 51450 | + * @return int | |
| 51451 | + */ | |
| 51452 | + public function getUnchecked(): int { | |
| 51453 | + if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51454 | + return $this->unchecked; | |
| 51455 | + } | |
| 51456 | + throw new Exception('never get to getUnchecked Unchecked::unchecked'); | |
| 51457 | + } | |
| 51458 | + | |
| 51459 | + /** | |
| 51460 | + * @return int | |
| 51461 | + */ | |
| 51462 | + public static function sampleUnchecked(): int { | |
| 51463 | + return 31; /*31:unchecked*/ | |
| 51464 | + } | |
| 51465 | + | |
| 51466 | + /** | |
| 51467 | + * @throws Exception | |
| 51468 | + * @return bool | |
| 51469 | + */ | |
| 51470 | + public function validate(): bool { | |
| 51471 | + return Unchecked::validateUnchecked($this->unchecked); | |
| 51472 | + } | |
| 51473 | + | |
| 51474 | + /** | |
| 51475 | + * @return stdClass | |
| 51476 | + * @throws Exception | |
| 51477 | + */ | |
| 51478 | + public function to(): stdClass { | |
| 51479 | + $out = new stdClass(); | |
| 51480 | + $out->{'unchecked'} = $this->toUnchecked(); | |
| 51481 | + return $out; | |
| 51482 | + } | |
| 51483 | + | |
| 51484 | + /** | |
| 51485 | + * @param stdClass $obj | |
| 51486 | + * @return Unchecked | |
| 51487 | + * @throws Exception | |
| 51488 | + */ | |
| 51489 | + public static function from(stdClass $obj): Unchecked { | |
| 51490 | + if (!property_exists($obj, 'unchecked')) { | |
| 51491 | + throw new Exception("Missing required property"); | |
| 51492 | + } | |
| 51493 | + return new Unchecked( | |
| 51494 | + Unchecked::fromUnchecked($obj->{'unchecked'}) | |
| 51495 | + ); | |
| 51496 | + } | |
| 51497 | + | |
| 51498 | + /** | |
| 51499 | + * @return Unchecked | |
| 51500 | + */ | |
| 51501 | + public static function sample(): Unchecked { | |
| 51502 | + return new Unchecked( | |
| 51503 | + Unchecked::sampleUnchecked() | |
| 51504 | + ); | |
| 51505 | + } | |
| 51506 | +} | |
| 51507 | + | |
| 51508 | +// This is an autogenerated file:Undefined | |
| 51509 | + | |
| 51510 | +class Undefined { | |
| 51511 | + private int $undefined; // json:undefined Required | |
| 51512 | + | |
| 51513 | + /** | |
| 51514 | + * @param int $undefined | |
| 51515 | + */ | |
| 51516 | + public function __construct(int $undefined) { | |
| 51517 | + $this->undefined = $undefined; | |
| 51518 | + } | |
| 51519 | + | |
| 51520 | + /** | |
| 51521 | + * @param int $value | |
| 51522 | + * @throws Exception | |
| 51523 | + * @return int | |
| 51524 | + */ | |
| 51525 | + public static function fromUndefined(int $value): int { | |
| 51526 | + return $value; /*int*/ | |
| 51527 | + } | |
| 51528 | + | |
| 51529 | + /** | |
| 51530 | + * @throws Exception | |
| 51531 | + * @return int | |
| 51532 | + */ | |
| 51533 | + public function toUndefined(): int { | |
| 51534 | + if (Undefined::validateUndefined($this->undefined)) { | |
| 51535 | + return $this->undefined; /*int*/ | |
| 51536 | + } | |
| 51537 | + throw new Exception('never get to this Undefined::undefined'); | |
| 51538 | + } | |
| 51539 | + | |
| 51540 | + /** | |
| 51541 | + * @param int | |
| 51542 | + * @return bool | |
| 51543 | + * @throws Exception | |
| 51544 | + */ | |
| 51545 | + public static function validateUndefined(int $value): bool { | |
| 51546 | + return true; | |
| 51547 | + } | |
| 51548 | + | |
| 51549 | + /** | |
| 51550 | + * @throws Exception | |
| 51551 | + * @return int | |
| 51552 | + */ | |
| 51553 | + public function getUndefined(): int { | |
| 51554 | + if (Undefined::validateUndefined($this->undefined)) { | |
| 51555 | + return $this->undefined; | |
| 51556 | + } | |
| 51557 | + throw new Exception('never get to getUndefined Undefined::undefined'); | |
| 51558 | + } | |
| 51559 | + | |
| 51560 | + /** | |
| 51561 | + * @return int | |
| 51562 | + */ | |
| 51563 | + public static function sampleUndefined(): int { | |
| 51564 | + return 31; /*31:undefined*/ | |
| 51565 | + } | |
| 51566 | + | |
| 51567 | + /** | |
| 51568 | + * @throws Exception | |
| 51569 | + * @return bool | |
| 51570 | + */ | |
| 51571 | + public function validate(): bool { | |
| 51572 | + return Undefined::validateUndefined($this->undefined); | |
| 51573 | + } | |
| 51574 | + | |
| 51575 | + /** | |
| 51576 | + * @return stdClass | |
| 51577 | + * @throws Exception | |
| 51578 | + */ | |
| 51579 | + public function to(): stdClass { | |
| 51580 | + $out = new stdClass(); | |
| 51581 | + $out->{'undefined'} = $this->toUndefined(); | |
| 51582 | + return $out; | |
| 51583 | + } | |
| 51584 | + | |
| 51585 | + /** | |
| 51586 | + * @param stdClass $obj | |
| 51587 | + * @return Undefined | |
| 51588 | + * @throws Exception | |
| 51589 | + */ | |
| 51590 | + public static function from(stdClass $obj): Undefined { | |
| 51591 | + if (!property_exists($obj, 'undefined')) { | |
| 51592 | + throw new Exception("Missing required property"); | |
| 51593 | + } | |
| 51594 | + return new Undefined( | |
| 51595 | + Undefined::fromUndefined($obj->{'undefined'}) | |
| 51596 | + ); | |
| 51597 | + } | |
| 51598 | + | |
| 51599 | + /** | |
| 51600 | + * @return Undefined | |
| 51096 | 51601 | */ |
| 51097 | - public static function sample(): Ulong { | |
| 51098 | - return new Ulong( | |
| 51099 | - Ulong::sampleUlong() | |
| 51602 | + public static function sample(): Undefined { | |
| 51603 | + return new Undefined( | |
| 51604 | + Undefined::sampleUndefined() | |
| 51100 | 51605 | ); |
| 51101 | 51606 | } |
| 51102 | 51607 | } |
| 51103 | 51608 | |
| 51104 | -// This is an autogenerated file:Unchecked | |
| 51609 | +// This is an autogenerated file:Union | |
| 51105 | 51610 | |
| 51106 | -class Unchecked { | |
| 51107 | - private int $unchecked; // json:unchecked Required | |
| 51611 | +class Union { | |
| 51612 | + private int $union; // json:union Required | |
| 51108 | 51613 | |
| 51109 | 51614 | /** |
| 51110 | - * @param int $unchecked | |
| 51615 | + * @param int $union | |
| 51111 | 51616 | */ |
| 51112 | - public function __construct(int $unchecked) { | |
| 51113 | - $this->unchecked = $unchecked; | |
| 51617 | + public function __construct(int $union) { | |
| 51618 | + $this->union = $union; | |
| 51114 | 51619 | } |
| 51115 | 51620 | |
| 51116 | 51621 | /** |
| @@ -51118,7 +51623,7 @@ class Unchecked { | ||
| 51118 | 51623 | * @throws Exception |
| 51119 | 51624 | * @return int |
| 51120 | 51625 | */ |
| 51121 | - public static function fromUnchecked(int $value): int { | |
| 51626 | + public static function fromUnion(int $value): int { | |
| 51122 | 51627 | return $value; /*int*/ |
| 51123 | 51628 | } |
| 51124 | 51629 | |
| @@ -51126,11 +51631,11 @@ class Unchecked { | ||
| 51126 | 51631 | * @throws Exception |
| 51127 | 51632 | * @return int |
| 51128 | 51633 | */ |
| 51129 | - public function toUnchecked(): int { | |
| 51130 | - if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51131 | - return $this->unchecked; /*int*/ | |
| 51634 | + public function toUnion(): int { | |
| 51635 | + if (Union::validateUnion($this->union)) { | |
| 51636 | + return $this->union; /*int*/ | |
| 51132 | 51637 | } |
| 51133 | - throw new Exception('never get to this Unchecked::unchecked'); | |
| 51638 | + throw new Exception('never get to this Union::union'); | |
| 51134 | 51639 | } |
| 51135 | 51640 | |
| 51136 | 51641 | /** |
| @@ -51138,7 +51643,7 @@ class Unchecked { | ||
| 51138 | 51643 | * @return bool |
| 51139 | 51644 | * @throws Exception |
| 51140 | 51645 | */ |
| 51141 | - public static function validateUnchecked(int $value): bool { | |
| 51646 | + public static function validateUnion(int $value): bool { | |
| 51142 | 51647 | return true; |
| 51143 | 51648 | } |
| 51144 | 51649 | |
| @@ -51146,18 +51651,18 @@ class Unchecked { | ||
| 51146 | 51651 | * @throws Exception |
| 51147 | 51652 | * @return int |
| 51148 | 51653 | */ |
| 51149 | - public function getUnchecked(): int { | |
| 51150 | - if (Unchecked::validateUnchecked($this->unchecked)) { | |
| 51151 | - return $this->unchecked; | |
| 51654 | + public function getUnion(): int { | |
| 51655 | + if (Union::validateUnion($this->union)) { | |
| 51656 | + return $this->union; | |
| 51152 | 51657 | } |
| 51153 | - throw new Exception('never get to getUnchecked Unchecked::unchecked'); | |
| 51658 | + throw new Exception('never get to getUnion Union::union'); | |
| 51154 | 51659 | } |
| 51155 | 51660 | |
| 51156 | 51661 | /** |
| 51157 | 51662 | * @return int |
| 51158 | 51663 | */ |
| 51159 | - public static function sampleUnchecked(): int { | |
| 51160 | - return 31; /*31:unchecked*/ | |
| 51664 | + public static function sampleUnion(): int { | |
| 51665 | + return 31; /*31:union*/ | |
| 51161 | 51666 | } |
| 51162 | 51667 | |
| 51163 | 51668 | /** |
| @@ -51165,7 +51670,7 @@ class Unchecked { | ||
| 51165 | 51670 | * @return bool |
| 51166 | 51671 | */ |
| 51167 | 51672 | public function validate(): bool { |
| 51168 | - return Unchecked::validateUnchecked($this->unchecked); | |
| 51673 | + return Union::validateUnion($this->union); | |
| 51169 | 51674 | } |
| 51170 | 51675 | |
| 51171 | 51676 | /** |
| @@ -51174,44 +51679,44 @@ class Unchecked { | ||
| 51174 | 51679 | */ |
| 51175 | 51680 | public function to(): stdClass { |
| 51176 | 51681 | $out = new stdClass(); |
| 51177 | - $out->{'unchecked'} = $this->toUnchecked(); | |
| 51682 | + $out->{'union'} = $this->toUnion(); | |
| 51178 | 51683 | return $out; |
| 51179 | 51684 | } |
| 51180 | 51685 | |
| 51181 | 51686 | /** |
| 51182 | 51687 | * @param stdClass $obj |
| 51183 | - * @return Unchecked | |
| 51688 | + * @return Union | |
| 51184 | 51689 | * @throws Exception |
| 51185 | 51690 | */ |
| 51186 | - public static function from(stdClass $obj): Unchecked { | |
| 51187 | - if (!property_exists($obj, 'unchecked')) { | |
| 51691 | + public static function from(stdClass $obj): Union { | |
| 51692 | + if (!property_exists($obj, 'union')) { | |
| 51188 | 51693 | throw new Exception("Missing required property"); |
| 51189 | 51694 | } |
| 51190 | - return new Unchecked( | |
| 51191 | - Unchecked::fromUnchecked($obj->{'unchecked'}) | |
| 51695 | + return new Union( | |
| 51696 | + Union::fromUnion($obj->{'union'}) | |
| 51192 | 51697 | ); |
| 51193 | 51698 | } |
| 51194 | 51699 | |
| 51195 | 51700 | /** |
| 51196 | - * @return Unchecked | |
| 51701 | + * @return Union | |
| 51197 | 51702 | */ |
| 51198 | - public static function sample(): Unchecked { | |
| 51199 | - return new Unchecked( | |
| 51200 | - Unchecked::sampleUnchecked() | |
| 51703 | + public static function sample(): Union { | |
| 51704 | + return new Union( | |
| 51705 | + Union::sampleUnion() | |
| 51201 | 51706 | ); |
| 51202 | 51707 | } |
| 51203 | 51708 | } |
| 51204 | 51709 | |
| 51205 | -// This is an autogenerated file:Undefined | |
| 51710 | +// This is an autogenerated file:Unowned | |
| 51206 | 51711 | |
| 51207 | -class Undefined { | |
| 51208 | - private int $undefined; // json:undefined Required | |
| 51712 | +class Unowned { | |
| 51713 | + private int $unowned; // json:unowned Required | |
| 51209 | 51714 | |
| 51210 | 51715 | /** |
| 51211 | - * @param int $undefined | |
| 51716 | + * @param int $unowned | |
| 51212 | 51717 | */ |
| 51213 | - public function __construct(int $undefined) { | |
| 51214 | - $this->undefined = $undefined; | |
| 51718 | + public function __construct(int $unowned) { | |
| 51719 | + $this->unowned = $unowned; | |
| 51215 | 51720 | } |
| 51216 | 51721 | |
| 51217 | 51722 | /** |
| @@ -51219,7 +51724,7 @@ class Undefined { | ||
| 51219 | 51724 | * @throws Exception |
| 51220 | 51725 | * @return int |
| 51221 | 51726 | */ |
| 51222 | - public static function fromUndefined(int $value): int { | |
| 51727 | + public static function fromUnowned(int $value): int { | |
| 51223 | 51728 | return $value; /*int*/ |
| 51224 | 51729 | } |
| 51225 | 51730 | |
| @@ -51227,11 +51732,11 @@ class Undefined { | ||
| 51227 | 51732 | * @throws Exception |
| 51228 | 51733 | * @return int |
| 51229 | 51734 | */ |
| 51230 | - public function toUndefined(): int { | |
| 51231 | - if (Undefined::validateUndefined($this->undefined)) { | |
| 51232 | - return $this->undefined; /*int*/ | |
| 51735 | + public function toUnowned(): int { | |
| 51736 | + if (Unowned::validateUnowned($this->unowned)) { | |
| 51737 | + return $this->unowned; /*int*/ | |
| 51233 | 51738 | } |
| 51234 | - throw new Exception('never get to this Undefined::undefined'); | |
| 51739 | + throw new Exception('never get to this Unowned::unowned'); | |
| 51235 | 51740 | } |
| 51236 | 51741 | |
| 51237 | 51742 | /** |
| @@ -51239,7 +51744,7 @@ class Undefined { | ||
| 51239 | 51744 | * @return bool |
| 51240 | 51745 | * @throws Exception |
| 51241 | 51746 | */ |
| 51242 | - public static function validateUndefined(int $value): bool { | |
| 51747 | + public static function validateUnowned(int $value): bool { | |
| 51243 | 51748 | return true; |
| 51244 | 51749 | } |
| 51245 | 51750 | |
| @@ -51247,18 +51752,18 @@ class Undefined { | ||
| 51247 | 51752 | * @throws Exception |
| 51248 | 51753 | * @return int |
| 51249 | 51754 | */ |
| 51250 | - public function getUndefined(): int { | |
| 51251 | - if (Undefined::validateUndefined($this->undefined)) { | |
| 51252 | - return $this->undefined; | |
| 51755 | + public function getUnowned(): int { | |
| 51756 | + if (Unowned::validateUnowned($this->unowned)) { | |
| 51757 | + return $this->unowned; | |
| 51253 | 51758 | } |
| 51254 | - throw new Exception('never get to getUndefined Undefined::undefined'); | |
| 51759 | + throw new Exception('never get to getUnowned Unowned::unowned'); | |
| 51255 | 51760 | } |
| 51256 | 51761 | |
| 51257 | 51762 | /** |
| 51258 | 51763 | * @return int |
| 51259 | 51764 | */ |
| 51260 | - public static function sampleUndefined(): int { | |
| 51261 | - return 31; /*31:undefined*/ | |
| 51765 | + public static function sampleUnowned(): int { | |
| 51766 | + return 31; /*31:unowned*/ | |
| 51262 | 51767 | } |
| 51263 | 51768 | |
| 51264 | 51769 | /** |
| @@ -51266,7 +51771,7 @@ class Undefined { | ||
| 51266 | 51771 | * @return bool |
| 51267 | 51772 | */ |
| 51268 | 51773 | public function validate(): bool { |
| 51269 | - return Undefined::validateUndefined($this->undefined); | |
| 51774 | + return Unowned::validateUnowned($this->unowned); | |
| 51270 | 51775 | } |
| 51271 | 51776 | |
| 51272 | 51777 | /** |
| @@ -51275,44 +51780,44 @@ class Undefined { | ||
| 51275 | 51780 | */ |
| 51276 | 51781 | public function to(): stdClass { |
| 51277 | 51782 | $out = new stdClass(); |
| 51278 | - $out->{'undefined'} = $this->toUndefined(); | |
| 51783 | + $out->{'unowned'} = $this->toUnowned(); | |
| 51279 | 51784 | return $out; |
| 51280 | 51785 | } |
| 51281 | 51786 | |
| 51282 | 51787 | /** |
| 51283 | 51788 | * @param stdClass $obj |
| 51284 | - * @return Undefined | |
| 51789 | + * @return Unowned | |
| 51285 | 51790 | * @throws Exception |
| 51286 | 51791 | */ |
| 51287 | - public static function from(stdClass $obj): Undefined { | |
| 51288 | - if (!property_exists($obj, 'undefined')) { | |
| 51792 | + public static function from(stdClass $obj): Unowned { | |
| 51793 | + if (!property_exists($obj, 'unowned')) { | |
| 51289 | 51794 | throw new Exception("Missing required property"); |
| 51290 | 51795 | } |
| 51291 | - return new Undefined( | |
| 51292 | - Undefined::fromUndefined($obj->{'undefined'}) | |
| 51796 | + return new Unowned( | |
| 51797 | + Unowned::fromUnowned($obj->{'unowned'}) | |
| 51293 | 51798 | ); |
| 51294 | 51799 | } |
| 51295 | 51800 | |
| 51296 | 51801 | /** |
| 51297 | - * @return Undefined | |
| 51802 | + * @return Unowned | |
| 51298 | 51803 | */ |
| 51299 | - public static function sample(): Undefined { | |
| 51300 | - return new Undefined( | |
| 51301 | - Undefined::sampleUndefined() | |
| 51804 | + public static function sample(): Unowned { | |
| 51805 | + return new Unowned( | |
| 51806 | + Unowned::sampleUnowned() | |
| 51302 | 51807 | ); |
| 51303 | 51808 | } |
| 51304 | 51809 | } |
| 51305 | 51810 | |
| 51306 | -// This is an autogenerated file:Union | |
| 51811 | +// This is an autogenerated file:UseSerializers | |
| 51307 | 51812 | |
| 51308 | -class Union { | |
| 51309 | - private int $union; // json:union Required | |
| 51813 | +class UseSerializers { | |
| 51814 | + private int $useSerializers; // json:UseSerializers Required | |
| 51310 | 51815 | |
| 51311 | 51816 | /** |
| 51312 | - * @param int $union | |
| 51817 | + * @param int $useSerializers | |
| 51313 | 51818 | */ |
| 51314 | - public function __construct(int $union) { | |
| 51315 | - $this->union = $union; | |
| 51819 | + public function __construct(int $useSerializers) { | |
| 51820 | + $this->useSerializers = $useSerializers; | |
| 51316 | 51821 | } |
| 51317 | 51822 | |
| 51318 | 51823 | /** |
| @@ -51320,7 +51825,7 @@ class Union { | ||
| 51320 | 51825 | * @throws Exception |
| 51321 | 51826 | * @return int |
| 51322 | 51827 | */ |
| 51323 | - public static function fromUnion(int $value): int { | |
| 51828 | + public static function fromUseSerializers(int $value): int { | |
| 51324 | 51829 | return $value; /*int*/ |
| 51325 | 51830 | } |
| 51326 | 51831 | |
| @@ -51328,11 +51833,11 @@ class Union { | ||
| 51328 | 51833 | * @throws Exception |
| 51329 | 51834 | * @return int |
| 51330 | 51835 | */ |
| 51331 | - public function toUnion(): int { | |
| 51332 | - if (Union::validateUnion($this->union)) { | |
| 51333 | - return $this->union; /*int*/ | |
| 51836 | + public function toUseSerializers(): int { | |
| 51837 | + if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 51838 | + return $this->useSerializers; /*int*/ | |
| 51334 | 51839 | } |
| 51335 | - throw new Exception('never get to this Union::union'); | |
| 51840 | + throw new Exception('never get to this UseSerializers::useSerializers'); | |
| 51336 | 51841 | } |
| 51337 | 51842 | |
| 51338 | 51843 | /** |
| @@ -51340,7 +51845,7 @@ class Union { | ||
| 51340 | 51845 | * @return bool |
| 51341 | 51846 | * @throws Exception |
| 51342 | 51847 | */ |
| 51343 | - public static function validateUnion(int $value): bool { | |
| 51848 | + public static function validateUseSerializers(int $value): bool { | |
| 51344 | 51849 | return true; |
| 51345 | 51850 | } |
| 51346 | 51851 | |
| @@ -51348,18 +51853,18 @@ class Union { | ||
| 51348 | 51853 | * @throws Exception |
| 51349 | 51854 | * @return int |
| 51350 | 51855 | */ |
| 51351 | - public function getUnion(): int { | |
| 51352 | - if (Union::validateUnion($this->union)) { | |
| 51353 | - return $this->union; | |
| 51856 | + public function getUseSerializers(): int { | |
| 51857 | + if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 51858 | + return $this->useSerializers; | |
| 51354 | 51859 | } |
| 51355 | - throw new Exception('never get to getUnion Union::union'); | |
| 51860 | + throw new Exception('never get to getUseSerializers UseSerializers::useSerializers'); | |
| 51356 | 51861 | } |
| 51357 | 51862 | |
| 51358 | 51863 | /** |
| 51359 | 51864 | * @return int |
| 51360 | 51865 | */ |
| 51361 | - public static function sampleUnion(): int { | |
| 51362 | - return 31; /*31:union*/ | |
| 51866 | + public static function sampleUseSerializers(): int { | |
| 51867 | + return 31; /*31:useSerializers*/ | |
| 51363 | 51868 | } |
| 51364 | 51869 | |
| 51365 | 51870 | /** |
| @@ -51367,7 +51872,7 @@ class Union { | ||
| 51367 | 51872 | * @return bool |
| 51368 | 51873 | */ |
| 51369 | 51874 | public function validate(): bool { |
| 51370 | - return Union::validateUnion($this->union); | |
| 51875 | + return UseSerializers::validateUseSerializers($this->useSerializers); | |
| 51371 | 51876 | } |
| 51372 | 51877 | |
| 51373 | 51878 | /** |
| @@ -51376,44 +51881,107 @@ class Union { | ||
| 51376 | 51881 | */ |
| 51377 | 51882 | public function to(): stdClass { |
| 51378 | 51883 | $out = new stdClass(); |
| 51379 | - $out->{'union'} = $this->toUnion(); | |
| 51884 | + $out->{'UseSerializers'} = $this->toUseSerializers(); | |
| 51380 | 51885 | return $out; |
| 51381 | 51886 | } |
| 51382 | 51887 | |
| 51383 | 51888 | /** |
| 51384 | 51889 | * @param stdClass $obj |
| 51385 | - * @return Union | |
| 51890 | + * @return UseSerializers | |
| 51386 | 51891 | * @throws Exception |
| 51387 | 51892 | */ |
| 51388 | - public static function from(stdClass $obj): Union { | |
| 51389 | - if (!property_exists($obj, 'union')) { | |
| 51893 | + public static function from(stdClass $obj): UseSerializers { | |
| 51894 | + if (!property_exists($obj, 'UseSerializers')) { | |
| 51390 | 51895 | throw new Exception("Missing required property"); |
| 51391 | 51896 | } |
| 51392 | - return new Union( | |
| 51393 | - Union::fromUnion($obj->{'union'}) | |
| 51897 | + return new UseSerializers( | |
| 51898 | + UseSerializers::fromUseSerializers($obj->{'UseSerializers'}) | |
| 51394 | 51899 | ); |
| 51395 | 51900 | } |
| 51396 | 51901 | |
| 51397 | 51902 | /** |
| 51398 | - * @return Union | |
| 51903 | + * @return UseSerializers | |
| 51399 | 51904 | */ |
| 51400 | - public static function sample(): Union { | |
| 51401 | - return new Union( | |
| 51402 | - Union::sampleUnion() | |
| 51905 | + public static function sample(): UseSerializers { | |
| 51906 | + return new UseSerializers( | |
| 51907 | + UseSerializers::sampleUseSerializers() | |
| 51403 | 51908 | ); |
| 51404 | 51909 | } |
| 51405 | 51910 | } |
| 51406 | 51911 | |
| 51407 | -// This is an autogenerated file:Unowned | |
| 51912 | +// This is an autogenerated file:Obj6 | |
| 51408 | 51913 | |
| 51409 | -class Unowned { | |
| 51410 | - private int $unowned; // json:unowned Required | |
| 51914 | +class Obj6 { | |
| 51915 | + private int $dummy; // json:dummy Required | |
| 51916 | + private Unsafe $unsafe; // json:unsafe Required | |
| 51917 | + private Unsigned $unsigned; // json:unsigned Required | |
| 51918 | + private Ushort $ushort; // json:ushort Required | |
| 51919 | + private Using $using; // json:using Required | |
| 51920 | + private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required | |
| 51921 | + private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 51922 | + private UUID $uuid; // json:UUID Required | |
| 51923 | + private VarClass $var; // json:var Required | |
| 51924 | + private Virtual $virtual; // json:virtual Required | |
| 51925 | + private VoidClass $void; // json:void Required | |
| 51926 | + private Volatile $volatile; // json:volatile Required | |
| 51927 | + private WcharT $wcharT; // json:wchar_t Required | |
| 51928 | + private Weak $weak; // json:weak Required | |
| 51929 | + private Where $where; // json:where Required | |
| 51930 | + private WhileClass $while; // json:while Required | |
| 51931 | + private WillSet $willSet; // json:willSet Required | |
| 51932 | + private With $with; // json:with Required | |
| 51933 | + private XorClass $xor; // json:xor Required | |
| 51934 | + private XorEq $xorEq; // json:xor_eq Required | |
| 51935 | + private Yes $yes; // json:YES Required | |
| 51936 | + private YieldClass $yield; // json:yield Required | |
| 51411 | 51937 | |
| 51412 | 51938 | /** |
| 51413 | - * @param int $unowned | |
| 51939 | + * @param int $dummy | |
| 51940 | + * @param Unsafe $unsafe | |
| 51941 | + * @param Unsigned $unsigned | |
| 51942 | + * @param Ushort $ushort | |
| 51943 | + * @param Using $using | |
| 51944 | + * @param Utf8JSONReader $utf8JSONReader | |
| 51945 | + * @param Utf8JSONWriter $utf8JSONWriter | |
| 51946 | + * @param UUID $uuid | |
| 51947 | + * @param VarClass $var | |
| 51948 | + * @param Virtual $virtual | |
| 51949 | + * @param VoidClass $void | |
| 51950 | + * @param Volatile $volatile | |
| 51951 | + * @param WcharT $wcharT | |
| 51952 | + * @param Weak $weak | |
| 51953 | + * @param Where $where | |
| 51954 | + * @param WhileClass $while | |
| 51955 | + * @param WillSet $willSet | |
| 51956 | + * @param With $with | |
| 51957 | + * @param XorClass $xor | |
| 51958 | + * @param XorEq $xorEq | |
| 51959 | + * @param Yes $yes | |
| 51960 | + * @param YieldClass $yield | |
| 51414 | 51961 | */ |
| 51415 | - public function __construct(int $unowned) { | |
| 51416 | - $this->unowned = $unowned; | |
| 51962 | + public function __construct(int $dummy, Unsafe $unsafe, Unsigned $unsigned, Ushort $ushort, Using $using, Utf8JSONReader $utf8JSONReader, 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) { | |
| 51963 | + $this->dummy = $dummy; | |
| 51964 | + $this->unsafe = $unsafe; | |
| 51965 | + $this->unsigned = $unsigned; | |
| 51966 | + $this->ushort = $ushort; | |
| 51967 | + $this->using = $using; | |
| 51968 | + $this->utf8JSONReader = $utf8JSONReader; | |
| 51969 | + $this->utf8JSONWriter = $utf8JSONWriter; | |
| 51970 | + $this->uuid = $uuid; | |
| 51971 | + $this->var = $var; | |
| 51972 | + $this->virtual = $virtual; | |
| 51973 | + $this->void = $void; | |
| 51974 | + $this->volatile = $volatile; | |
| 51975 | + $this->wcharT = $wcharT; | |
| 51976 | + $this->weak = $weak; | |
| 51977 | + $this->where = $where; | |
| 51978 | + $this->while = $while; | |
| 51979 | + $this->willSet = $willSet; | |
| 51980 | + $this->with = $with; | |
| 51981 | + $this->xor = $xor; | |
| 51982 | + $this->xorEq = $xorEq; | |
| 51983 | + $this->yes = $yes; | |
| 51984 | + $this->yield = $yield; | |
| 51417 | 51985 | } |
| 51418 | 51986 | |
| 51419 | 51987 | /** |
| @@ -51421,7 +51989,7 @@ class Unowned { | ||
| 51421 | 51989 | * @throws Exception |
| 51422 | 51990 | * @return int |
| 51423 | 51991 | */ |
| 51424 | - public static function fromUnowned(int $value): int { | |
| 51992 | + public static function fromDummy(int $value): int { | |
| 51425 | 51993 | return $value; /*int*/ |
| 51426 | 51994 | } |
| 51427 | 51995 | |
| @@ -51429,11 +51997,11 @@ class Unowned { | ||
| 51429 | 51997 | * @throws Exception |
| 51430 | 51998 | * @return int |
| 51431 | 51999 | */ |
| 51432 | - public function toUnowned(): int { | |
| 51433 | - if (Unowned::validateUnowned($this->unowned)) { | |
| 51434 | - return $this->unowned; /*int*/ | |
| 52000 | + public function toDummy(): int { | |
| 52001 | + if (Obj6::validateDummy($this->dummy)) { | |
| 52002 | + return $this->dummy; /*int*/ | |
| 51435 | 52003 | } |
| 51436 | - throw new Exception('never get to this Unowned::unowned'); | |
| 52004 | + throw new Exception('never get to this Obj6::dummy'); | |
| 51437 | 52005 | } |
| 51438 | 52006 | |
| 51439 | 52007 | /** |
| @@ -51441,7 +52009,7 @@ class Unowned { | ||
| 51441 | 52009 | * @return bool |
| 51442 | 52010 | * @throws Exception |
| 51443 | 52011 | */ |
| 51444 | - public static function validateUnowned(int $value): bool { | |
| 52012 | + public static function validateDummy(int $value): bool { | |
| 51445 | 52013 | return true; |
| 51446 | 52014 | } |
| 51447 | 52015 | |
| @@ -51449,1441 +52017,1476 @@ class Unowned { | ||
| 51449 | 52017 | * @throws Exception |
| 51450 | 52018 | * @return int |
| 51451 | 52019 | */ |
| 51452 | - public function getUnowned(): int { | |
| 51453 | - if (Unowned::validateUnowned($this->unowned)) { | |
| 51454 | - return $this->unowned; | |
| 52020 | + public function getDummy(): int { | |
| 52021 | + if (Obj6::validateDummy($this->dummy)) { | |
| 52022 | + return $this->dummy; | |
| 51455 | 52023 | } |
| 51456 | - throw new Exception('never get to getUnowned Unowned::unowned'); | |
| 52024 | + throw new Exception('never get to getDummy Obj6::dummy'); | |
| 51457 | 52025 | } |
| 51458 | 52026 | |
| 51459 | 52027 | /** |
| 51460 | 52028 | * @return int |
| 51461 | 52029 | */ |
| 51462 | - public static function sampleUnowned(): int { | |
| 51463 | - return 31; /*31:unowned*/ | |
| 52030 | + public static function sampleDummy(): int { | |
| 52031 | + return 31; /*31:dummy*/ | |
| 51464 | 52032 | } |
| 51465 | 52033 | |
| 51466 | 52034 | /** |
| 52035 | + * @param stdClass $value | |
| 51467 | 52036 | * @throws Exception |
| 51468 | - * @return bool | |
| 52037 | + * @return Unsafe | |
| 51469 | 52038 | */ |
| 51470 | - public function validate(): bool { | |
| 51471 | - return Unowned::validateUnowned($this->unowned); | |
| 52039 | + public static function fromUnsafe(stdClass $value): Unsafe { | |
| 52040 | + return Unsafe::from($value); /*class*/ | |
| 51472 | 52041 | } |
| 51473 | 52042 | |
| 51474 | 52043 | /** |
| 51475 | - * @return stdClass | |
| 51476 | 52044 | * @throws Exception |
| 52045 | + * @return stdClass | |
| 51477 | 52046 | */ |
| 51478 | - public function to(): stdClass { | |
| 51479 | - $out = new stdClass(); | |
| 51480 | - $out->{'unowned'} = $this->toUnowned(); | |
| 51481 | - return $out; | |
| 52047 | + public function toUnsafe(): stdClass { | |
| 52048 | + if (Obj6::validateUnsafe($this->unsafe)) { | |
| 52049 | + return $this->unsafe->to(); /*class*/ | |
| 52050 | + } | |
| 52051 | + throw new Exception('never get to this Obj6::unsafe'); | |
| 51482 | 52052 | } |
| 51483 | 52053 | |
| 51484 | 52054 | /** |
| 51485 | - * @param stdClass $obj | |
| 51486 | - * @return Unowned | |
| 52055 | + * @param Unsafe | |
| 52056 | + * @return bool | |
| 51487 | 52057 | * @throws Exception |
| 51488 | 52058 | */ |
| 51489 | - public static function from(stdClass $obj): Unowned { | |
| 51490 | - if (!property_exists($obj, 'unowned')) { | |
| 51491 | - throw new Exception("Missing required property"); | |
| 51492 | - } | |
| 51493 | - return new Unowned( | |
| 51494 | - Unowned::fromUnowned($obj->{'unowned'}) | |
| 51495 | - ); | |
| 52059 | + public static function validateUnsafe(Unsafe $value): bool { | |
| 52060 | + $value->validate(); | |
| 52061 | + return true; | |
| 51496 | 52062 | } |
| 51497 | 52063 | |
| 51498 | 52064 | /** |
| 51499 | - * @return Unowned | |
| 52065 | + * @throws Exception | |
| 52066 | + * @return Unsafe | |
| 51500 | 52067 | */ |
| 51501 | - public static function sample(): Unowned { | |
| 51502 | - return new Unowned( | |
| 51503 | - Unowned::sampleUnowned() | |
| 51504 | - ); | |
| 52068 | + public function getUnsafe(): Unsafe { | |
| 52069 | + if (Obj6::validateUnsafe($this->unsafe)) { | |
| 52070 | + return $this->unsafe; | |
| 52071 | + } | |
| 52072 | + throw new Exception('never get to getUnsafe Obj6::unsafe'); | |
| 51505 | 52073 | } |
| 51506 | -} | |
| 51507 | - | |
| 51508 | -// This is an autogenerated file:Unsafe | |
| 51509 | - | |
| 51510 | -class Unsafe { | |
| 51511 | - private int $unsafe; // json:unsafe Required | |
| 51512 | 52074 | |
| 51513 | 52075 | /** |
| 51514 | - * @param int $unsafe | |
| 52076 | + * @return Unsafe | |
| 51515 | 52077 | */ |
| 51516 | - public function __construct(int $unsafe) { | |
| 51517 | - $this->unsafe = $unsafe; | |
| 52078 | + public static function sampleUnsafe(): Unsafe { | |
| 52079 | + return Unsafe::sample(); /*32:unsafe*/ | |
| 51518 | 52080 | } |
| 51519 | 52081 | |
| 51520 | 52082 | /** |
| 51521 | - * @param int $value | |
| 52083 | + * @param stdClass $value | |
| 51522 | 52084 | * @throws Exception |
| 51523 | - * @return int | |
| 52085 | + * @return Unsigned | |
| 51524 | 52086 | */ |
| 51525 | - public static function fromUnsafe(int $value): int { | |
| 51526 | - return $value; /*int*/ | |
| 52087 | + public static function fromUnsigned(stdClass $value): Unsigned { | |
| 52088 | + return Unsigned::from($value); /*class*/ | |
| 51527 | 52089 | } |
| 51528 | 52090 | |
| 51529 | 52091 | /** |
| 51530 | 52092 | * @throws Exception |
| 51531 | - * @return int | |
| 52093 | + * @return stdClass | |
| 51532 | 52094 | */ |
| 51533 | - public function toUnsafe(): int { | |
| 51534 | - if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 51535 | - return $this->unsafe; /*int*/ | |
| 52095 | + public function toUnsigned(): stdClass { | |
| 52096 | + if (Obj6::validateUnsigned($this->unsigned)) { | |
| 52097 | + return $this->unsigned->to(); /*class*/ | |
| 51536 | 52098 | } |
| 51537 | - throw new Exception('never get to this Unsafe::unsafe'); | |
| 52099 | + throw new Exception('never get to this Obj6::unsigned'); | |
| 51538 | 52100 | } |
| 51539 | 52101 | |
| 51540 | 52102 | /** |
| 51541 | - * @param int | |
| 52103 | + * @param Unsigned | |
| 51542 | 52104 | * @return bool |
| 51543 | 52105 | * @throws Exception |
| 51544 | 52106 | */ |
| 51545 | - public static function validateUnsafe(int $value): bool { | |
| 52107 | + public static function validateUnsigned(Unsigned $value): bool { | |
| 52108 | + $value->validate(); | |
| 51546 | 52109 | return true; |
| 51547 | 52110 | } |
| 51548 | 52111 | |
| 51549 | 52112 | /** |
| 51550 | 52113 | * @throws Exception |
| 51551 | - * @return int | |
| 52114 | + * @return Unsigned | |
| 51552 | 52115 | */ |
| 51553 | - public function getUnsafe(): int { | |
| 51554 | - if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 51555 | - return $this->unsafe; | |
| 52116 | + public function getUnsigned(): Unsigned { | |
| 52117 | + if (Obj6::validateUnsigned($this->unsigned)) { | |
| 52118 | + return $this->unsigned; | |
| 51556 | 52119 | } |
| 51557 | - throw new Exception('never get to getUnsafe Unsafe::unsafe'); | |
| 52120 | + throw new Exception('never get to getUnsigned Obj6::unsigned'); | |
| 51558 | 52121 | } |
| 51559 | 52122 | |
| 51560 | 52123 | /** |
| 51561 | - * @return int | |
| 52124 | + * @return Unsigned | |
| 51562 | 52125 | */ |
| 51563 | - public static function sampleUnsafe(): int { | |
| 51564 | - return 31; /*31:unsafe*/ | |
| 52126 | + public static function sampleUnsigned(): Unsigned { | |
| 52127 | + return Unsigned::sample(); /*33:unsigned*/ | |
| 51565 | 52128 | } |
| 51566 | 52129 | |
| 51567 | 52130 | /** |
| 52131 | + * @param stdClass $value | |
| 51568 | 52132 | * @throws Exception |
| 51569 | - * @return bool | |
| 52133 | + * @return Ushort | |
| 51570 | 52134 | */ |
| 51571 | - public function validate(): bool { | |
| 51572 | - return Unsafe::validateUnsafe($this->unsafe); | |
| 52135 | + public static function fromUshort(stdClass $value): Ushort { | |
| 52136 | + return Ushort::from($value); /*class*/ | |
| 51573 | 52137 | } |
| 51574 | 52138 | |
| 51575 | 52139 | /** |
| 52140 | + * @throws Exception | |
| 51576 | 52141 | * @return stdClass |
| 52142 | + */ | |
| 52143 | + public function toUshort(): stdClass { | |
| 52144 | + if (Obj6::validateUshort($this->ushort)) { | |
| 52145 | + return $this->ushort->to(); /*class*/ | |
| 52146 | + } | |
| 52147 | + throw new Exception('never get to this Obj6::ushort'); | |
| 52148 | + } | |
| 52149 | + | |
| 52150 | + /** | |
| 52151 | + * @param Ushort | |
| 52152 | + * @return bool | |
| 51577 | 52153 | * @throws Exception |
| 51578 | 52154 | */ |
| 51579 | - public function to(): stdClass { | |
| 51580 | - $out = new stdClass(); | |
| 51581 | - $out->{'unsafe'} = $this->toUnsafe(); | |
| 51582 | - return $out; | |
| 52155 | + public static function validateUshort(Ushort $value): bool { | |
| 52156 | + $value->validate(); | |
| 52157 | + return true; | |
| 51583 | 52158 | } |
| 51584 | 52159 | |
| 51585 | 52160 | /** |
| 51586 | - * @param stdClass $obj | |
| 51587 | - * @return Unsafe | |
| 51588 | 52161 | * @throws Exception |
| 52162 | + * @return Ushort | |
| 51589 | 52163 | */ |
| 51590 | - public static function from(stdClass $obj): Unsafe { | |
| 51591 | - if (!property_exists($obj, 'unsafe')) { | |
| 51592 | - throw new Exception("Missing required property"); | |
| 52164 | + public function getUshort(): Ushort { | |
| 52165 | + if (Obj6::validateUshort($this->ushort)) { | |
| 52166 | + return $this->ushort; | |
| 51593 | 52167 | } |
| 51594 | - return new Unsafe( | |
| 51595 | - Unsafe::fromUnsafe($obj->{'unsafe'}) | |
| 51596 | - ); | |
| 52168 | + throw new Exception('never get to getUshort Obj6::ushort'); | |
| 51597 | 52169 | } |
| 51598 | 52170 | |
| 51599 | 52171 | /** |
| 51600 | - * @return Unsafe | |
| 52172 | + * @return Ushort | |
| 51601 | 52173 | */ |
| 51602 | - public static function sample(): Unsafe { | |
| 51603 | - return new Unsafe( | |
| 51604 | - Unsafe::sampleUnsafe() | |
| 51605 | - ); | |
| 52174 | + public static function sampleUshort(): Ushort { | |
| 52175 | + return Ushort::sample(); /*34:ushort*/ | |
| 51606 | 52176 | } |
| 51607 | -} | |
| 51608 | 52177 | |
| 51609 | -// This is an autogenerated file:Unsigned | |
| 52178 | + /** | |
| 52179 | + * @param stdClass $value | |
| 52180 | + * @throws Exception | |
| 52181 | + * @return Using | |
| 52182 | + */ | |
| 52183 | + public static function fromUsing(stdClass $value): Using { | |
| 52184 | + return Using::from($value); /*class*/ | |
| 52185 | + } | |
| 51610 | 52186 | |
| 51611 | -class Unsigned { | |
| 51612 | - private int $unsigned; // json:unsigned Required | |
| 52187 | + /** | |
| 52188 | + * @throws Exception | |
| 52189 | + * @return stdClass | |
| 52190 | + */ | |
| 52191 | + public function toUsing(): stdClass { | |
| 52192 | + if (Obj6::validateUsing($this->using)) { | |
| 52193 | + return $this->using->to(); /*class*/ | |
| 52194 | + } | |
| 52195 | + throw new Exception('never get to this Obj6::using'); | |
| 52196 | + } | |
| 51613 | 52197 | |
| 51614 | 52198 | /** |
| 51615 | - * @param int $unsigned | |
| 52199 | + * @param Using | |
| 52200 | + * @return bool | |
| 52201 | + * @throws Exception | |
| 51616 | 52202 | */ |
| 51617 | - public function __construct(int $unsigned) { | |
| 51618 | - $this->unsigned = $unsigned; | |
| 52203 | + public static function validateUsing(Using $value): bool { | |
| 52204 | + $value->validate(); | |
| 52205 | + return true; | |
| 51619 | 52206 | } |
| 51620 | 52207 | |
| 51621 | 52208 | /** |
| 51622 | - * @param int $value | |
| 51623 | 52209 | * @throws Exception |
| 51624 | - * @return int | |
| 52210 | + * @return Using | |
| 51625 | 52211 | */ |
| 51626 | - public static function fromUnsigned(int $value): int { | |
| 51627 | - return $value; /*int*/ | |
| 52212 | + public function getUsing(): Using { | |
| 52213 | + if (Obj6::validateUsing($this->using)) { | |
| 52214 | + return $this->using; | |
| 52215 | + } | |
| 52216 | + throw new Exception('never get to getUsing Obj6::using'); | |
| 52217 | + } | |
| 52218 | + | |
| 52219 | + /** | |
| 52220 | + * @return Using | |
| 52221 | + */ | |
| 52222 | + public static function sampleUsing(): Using { | |
| 52223 | + return Using::sample(); /*35:using*/ | |
| 51628 | 52224 | } |
| 51629 | 52225 | |
| 51630 | 52226 | /** |
| 52227 | + * @param stdClass $value | |
| 51631 | 52228 | * @throws Exception |
| 51632 | - * @return int | |
| 52229 | + * @return Utf8JSONReader | |
| 51633 | 52230 | */ |
| 51634 | - public function toUnsigned(): int { | |
| 51635 | - if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 51636 | - return $this->unsigned; /*int*/ | |
| 52231 | + public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader { | |
| 52232 | + return Utf8JSONReader::from($value); /*class*/ | |
| 52233 | + } | |
| 52234 | + | |
| 52235 | + /** | |
| 52236 | + * @throws Exception | |
| 52237 | + * @return stdClass | |
| 52238 | + */ | |
| 52239 | + public function toUtf8JSONReader(): stdClass { | |
| 52240 | + if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52241 | + return $this->utf8JSONReader->to(); /*class*/ | |
| 51637 | 52242 | } |
| 51638 | - throw new Exception('never get to this Unsigned::unsigned'); | |
| 52243 | + throw new Exception('never get to this Obj6::utf8JSONReader'); | |
| 51639 | 52244 | } |
| 51640 | 52245 | |
| 51641 | 52246 | /** |
| 51642 | - * @param int | |
| 52247 | + * @param Utf8JSONReader | |
| 51643 | 52248 | * @return bool |
| 51644 | 52249 | * @throws Exception |
| 51645 | 52250 | */ |
| 51646 | - public static function validateUnsigned(int $value): bool { | |
| 52251 | + public static function validateUtf8JSONReader(Utf8JSONReader $value): bool { | |
| 52252 | + $value->validate(); | |
| 51647 | 52253 | return true; |
| 51648 | 52254 | } |
| 51649 | 52255 | |
| 51650 | 52256 | /** |
| 51651 | 52257 | * @throws Exception |
| 51652 | - * @return int | |
| 52258 | + * @return Utf8JSONReader | |
| 51653 | 52259 | */ |
| 51654 | - public function getUnsigned(): int { | |
| 51655 | - if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 51656 | - return $this->unsigned; | |
| 52260 | + public function getUtf8JSONReader(): Utf8JSONReader { | |
| 52261 | + if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52262 | + return $this->utf8JSONReader; | |
| 51657 | 52263 | } |
| 51658 | - throw new Exception('never get to getUnsigned Unsigned::unsigned'); | |
| 52264 | + throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader'); | |
| 51659 | 52265 | } |
| 51660 | 52266 | |
| 51661 | 52267 | /** |
| 51662 | - * @return int | |
| 52268 | + * @return Utf8JSONReader | |
| 51663 | 52269 | */ |
| 51664 | - public static function sampleUnsigned(): int { | |
| 51665 | - return 31; /*31:unsigned*/ | |
| 52270 | + public static function sampleUtf8JSONReader(): Utf8JSONReader { | |
| 52271 | + return Utf8JSONReader::sample(); /*36:utf8JSONReader*/ | |
| 51666 | 52272 | } |
| 51667 | 52273 | |
| 51668 | 52274 | /** |
| 52275 | + * @param stdClass $value | |
| 51669 | 52276 | * @throws Exception |
| 51670 | - * @return bool | |
| 52277 | + * @return Utf8JSONWriter | |
| 51671 | 52278 | */ |
| 51672 | - public function validate(): bool { | |
| 51673 | - return Unsigned::validateUnsigned($this->unsigned); | |
| 52279 | + public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter { | |
| 52280 | + return Utf8JSONWriter::from($value); /*class*/ | |
| 51674 | 52281 | } |
| 51675 | 52282 | |
| 51676 | 52283 | /** |
| 51677 | - * @return stdClass | |
| 51678 | 52284 | * @throws Exception |
| 52285 | + * @return stdClass | |
| 51679 | 52286 | */ |
| 51680 | - public function to(): stdClass { | |
| 51681 | - $out = new stdClass(); | |
| 51682 | - $out->{'unsigned'} = $this->toUnsigned(); | |
| 51683 | - return $out; | |
| 52287 | + public function toUtf8JSONWriter(): stdClass { | |
| 52288 | + if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52289 | + return $this->utf8JSONWriter->to(); /*class*/ | |
| 52290 | + } | |
| 52291 | + throw new Exception('never get to this Obj6::utf8JSONWriter'); | |
| 51684 | 52292 | } |
| 51685 | 52293 | |
| 51686 | 52294 | /** |
| 51687 | - * @param stdClass $obj | |
| 51688 | - * @return Unsigned | |
| 52295 | + * @param Utf8JSONWriter | |
| 52296 | + * @return bool | |
| 51689 | 52297 | * @throws Exception |
| 51690 | 52298 | */ |
| 51691 | - public static function from(stdClass $obj): Unsigned { | |
| 51692 | - if (!property_exists($obj, 'unsigned')) { | |
| 51693 | - throw new Exception("Missing required property"); | |
| 51694 | - } | |
| 51695 | - return new Unsigned( | |
| 51696 | - Unsigned::fromUnsigned($obj->{'unsigned'}) | |
| 51697 | - ); | |
| 52299 | + public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool { | |
| 52300 | + $value->validate(); | |
| 52301 | + return true; | |
| 51698 | 52302 | } |
| 51699 | 52303 | |
| 51700 | 52304 | /** |
| 51701 | - * @return Unsigned | |
| 52305 | + * @throws Exception | |
| 52306 | + * @return Utf8JSONWriter | |
| 51702 | 52307 | */ |
| 51703 | - public static function sample(): Unsigned { | |
| 51704 | - return new Unsigned( | |
| 51705 | - Unsigned::sampleUnsigned() | |
| 51706 | - ); | |
| 52308 | + public function getUtf8JSONWriter(): Utf8JSONWriter { | |
| 52309 | + if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52310 | + return $this->utf8JSONWriter; | |
| 52311 | + } | |
| 52312 | + throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter'); | |
| 51707 | 52313 | } |
| 51708 | -} | |
| 51709 | - | |
| 51710 | -// This is an autogenerated file:UseSerializers | |
| 51711 | - | |
| 51712 | -class UseSerializers { | |
| 51713 | - private int $useSerializers; // json:UseSerializers Required | |
| 51714 | 52314 | |
| 51715 | 52315 | /** |
| 51716 | - * @param int $useSerializers | |
| 52316 | + * @return Utf8JSONWriter | |
| 51717 | 52317 | */ |
| 51718 | - public function __construct(int $useSerializers) { | |
| 51719 | - $this->useSerializers = $useSerializers; | |
| 52318 | + public static function sampleUtf8JSONWriter(): Utf8JSONWriter { | |
| 52319 | + return Utf8JSONWriter::sample(); /*37:utf8JSONWriter*/ | |
| 51720 | 52320 | } |
| 51721 | 52321 | |
| 51722 | 52322 | /** |
| 51723 | - * @param int $value | |
| 52323 | + * @param stdClass $value | |
| 51724 | 52324 | * @throws Exception |
| 51725 | - * @return int | |
| 52325 | + * @return UUID | |
| 51726 | 52326 | */ |
| 51727 | - public static function fromUseSerializers(int $value): int { | |
| 51728 | - return $value; /*int*/ | |
| 52327 | + public static function fromUUID(stdClass $value): UUID { | |
| 52328 | + return UUID::from($value); /*class*/ | |
| 51729 | 52329 | } |
| 51730 | 52330 | |
| 51731 | 52331 | /** |
| 51732 | 52332 | * @throws Exception |
| 51733 | - * @return int | |
| 52333 | + * @return stdClass | |
| 51734 | 52334 | */ |
| 51735 | - public function toUseSerializers(): int { | |
| 51736 | - if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 51737 | - return $this->useSerializers; /*int*/ | |
| 52335 | + public function toUUID(): stdClass { | |
| 52336 | + if (Obj6::validateUUID($this->uuid)) { | |
| 52337 | + return $this->uuid->to(); /*class*/ | |
| 51738 | 52338 | } |
| 51739 | - throw new Exception('never get to this UseSerializers::useSerializers'); | |
| 52339 | + throw new Exception('never get to this Obj6::uuid'); | |
| 51740 | 52340 | } |
| 51741 | 52341 | |
| 51742 | 52342 | /** |
| 51743 | - * @param int | |
| 52343 | + * @param UUID | |
| 51744 | 52344 | * @return bool |
| 51745 | 52345 | * @throws Exception |
| 51746 | 52346 | */ |
| 51747 | - public static function validateUseSerializers(int $value): bool { | |
| 52347 | + public static function validateUUID(UUID $value): bool { | |
| 52348 | + $value->validate(); | |
| 51748 | 52349 | return true; |
| 51749 | 52350 | } |
| 51750 | 52351 | |
| 51751 | 52352 | /** |
| 51752 | 52353 | * @throws Exception |
| 51753 | - * @return int | |
| 52354 | + * @return UUID | |
| 51754 | 52355 | */ |
| 51755 | - public function getUseSerializers(): int { | |
| 51756 | - if (UseSerializers::validateUseSerializers($this->useSerializers)) { | |
| 51757 | - return $this->useSerializers; | |
| 52356 | + public function getUUID(): UUID { | |
| 52357 | + if (Obj6::validateUUID($this->uuid)) { | |
| 52358 | + return $this->uuid; | |
| 51758 | 52359 | } |
| 51759 | - throw new Exception('never get to getUseSerializers UseSerializers::useSerializers'); | |
| 52360 | + throw new Exception('never get to getUUID Obj6::uuid'); | |
| 51760 | 52361 | } |
| 51761 | 52362 | |
| 51762 | 52363 | /** |
| 51763 | - * @return int | |
| 52364 | + * @return UUID | |
| 51764 | 52365 | */ |
| 51765 | - public static function sampleUseSerializers(): int { | |
| 51766 | - return 31; /*31:useSerializers*/ | |
| 52366 | + public static function sampleUUID(): UUID { | |
| 52367 | + return UUID::sample(); /*38:uuid*/ | |
| 51767 | 52368 | } |
| 51768 | 52369 | |
| 51769 | 52370 | /** |
| 52371 | + * @param stdClass $value | |
| 51770 | 52372 | * @throws Exception |
| 51771 | - * @return bool | |
| 52373 | + * @return VarClass | |
| 51772 | 52374 | */ |
| 51773 | - public function validate(): bool { | |
| 51774 | - return UseSerializers::validateUseSerializers($this->useSerializers); | |
| 52375 | + public static function fromVar(stdClass $value): VarClass { | |
| 52376 | + return VarClass::from($value); /*class*/ | |
| 51775 | 52377 | } |
| 51776 | 52378 | |
| 51777 | 52379 | /** |
| 51778 | - * @return stdClass | |
| 51779 | 52380 | * @throws Exception |
| 52381 | + * @return stdClass | |
| 51780 | 52382 | */ |
| 51781 | - public function to(): stdClass { | |
| 51782 | - $out = new stdClass(); | |
| 51783 | - $out->{'UseSerializers'} = $this->toUseSerializers(); | |
| 51784 | - return $out; | |
| 52383 | + public function toVar(): stdClass { | |
| 52384 | + if (Obj6::validateVar($this->var)) { | |
| 52385 | + return $this->var->to(); /*class*/ | |
| 52386 | + } | |
| 52387 | + throw new Exception('never get to this Obj6::var'); | |
| 51785 | 52388 | } |
| 51786 | 52389 | |
| 51787 | 52390 | /** |
| 51788 | - * @param stdClass $obj | |
| 51789 | - * @return UseSerializers | |
| 52391 | + * @param VarClass | |
| 52392 | + * @return bool | |
| 51790 | 52393 | * @throws Exception |
| 51791 | 52394 | */ |
| 51792 | - public static function from(stdClass $obj): UseSerializers { | |
| 51793 | - if (!property_exists($obj, 'UseSerializers')) { | |
| 51794 | - throw new Exception("Missing required property"); | |
| 51795 | - } | |
| 51796 | - return new UseSerializers( | |
| 51797 | - UseSerializers::fromUseSerializers($obj->{'UseSerializers'}) | |
| 51798 | - ); | |
| 52395 | + public static function validateVar(VarClass $value): bool { | |
| 52396 | + $value->validate(); | |
| 52397 | + return true; | |
| 51799 | 52398 | } |
| 51800 | 52399 | |
| 51801 | 52400 | /** |
| 51802 | - * @return UseSerializers | |
| 52401 | + * @throws Exception | |
| 52402 | + * @return VarClass | |
| 51803 | 52403 | */ |
| 51804 | - public static function sample(): UseSerializers { | |
| 51805 | - return new UseSerializers( | |
| 51806 | - UseSerializers::sampleUseSerializers() | |
| 51807 | - ); | |
| 52404 | + public function getVar(): VarClass { | |
| 52405 | + if (Obj6::validateVar($this->var)) { | |
| 52406 | + return $this->var; | |
| 52407 | + } | |
| 52408 | + throw new Exception('never get to getVar Obj6::var'); | |
| 51808 | 52409 | } |
| 51809 | -} | |
| 51810 | - | |
| 51811 | -// This is an autogenerated file:Ushort | |
| 51812 | - | |
| 51813 | -class Ushort { | |
| 51814 | - private int $ushort; // json:ushort Required | |
| 51815 | 52410 | |
| 51816 | 52411 | /** |
| 51817 | - * @param int $ushort | |
| 52412 | + * @return VarClass | |
| 51818 | 52413 | */ |
| 51819 | - public function __construct(int $ushort) { | |
| 51820 | - $this->ushort = $ushort; | |
| 52414 | + public static function sampleVar(): VarClass { | |
| 52415 | + return VarClass::sample(); /*39:var*/ | |
| 51821 | 52416 | } |
| 51822 | 52417 | |
| 51823 | 52418 | /** |
| 51824 | - * @param int $value | |
| 52419 | + * @param stdClass $value | |
| 51825 | 52420 | * @throws Exception |
| 51826 | - * @return int | |
| 52421 | + * @return Virtual | |
| 51827 | 52422 | */ |
| 51828 | - public static function fromUshort(int $value): int { | |
| 51829 | - return $value; /*int*/ | |
| 52423 | + public static function fromVirtual(stdClass $value): Virtual { | |
| 52424 | + return Virtual::from($value); /*class*/ | |
| 51830 | 52425 | } |
| 51831 | 52426 | |
| 51832 | 52427 | /** |
| 51833 | 52428 | * @throws Exception |
| 51834 | - * @return int | |
| 52429 | + * @return stdClass | |
| 51835 | 52430 | */ |
| 51836 | - public function toUshort(): int { | |
| 51837 | - if (Ushort::validateUshort($this->ushort)) { | |
| 51838 | - return $this->ushort; /*int*/ | |
| 52431 | + public function toVirtual(): stdClass { | |
| 52432 | + if (Obj6::validateVirtual($this->virtual)) { | |
| 52433 | + return $this->virtual->to(); /*class*/ | |
| 51839 | 52434 | } |
| 51840 | - throw new Exception('never get to this Ushort::ushort'); | |
| 52435 | + throw new Exception('never get to this Obj6::virtual'); | |
| 51841 | 52436 | } |
| 51842 | 52437 | |
| 51843 | 52438 | /** |
| 51844 | - * @param int | |
| 52439 | + * @param Virtual | |
| 51845 | 52440 | * @return bool |
| 51846 | 52441 | * @throws Exception |
| 51847 | 52442 | */ |
| 51848 | - public static function validateUshort(int $value): bool { | |
| 52443 | + public static function validateVirtual(Virtual $value): bool { | |
| 52444 | + $value->validate(); | |
| 51849 | 52445 | return true; |
| 51850 | 52446 | } |
| 51851 | 52447 | |
| 51852 | 52448 | /** |
| 51853 | 52449 | * @throws Exception |
| 51854 | - * @return int | |
| 52450 | + * @return Virtual | |
| 51855 | 52451 | */ |
| 51856 | - public function getUshort(): int { | |
| 51857 | - if (Ushort::validateUshort($this->ushort)) { | |
| 51858 | - return $this->ushort; | |
| 52452 | + public function getVirtual(): Virtual { | |
| 52453 | + if (Obj6::validateVirtual($this->virtual)) { | |
| 52454 | + return $this->virtual; | |
| 51859 | 52455 | } |
| 51860 | - throw new Exception('never get to getUshort Ushort::ushort'); | |
| 52456 | + throw new Exception('never get to getVirtual Obj6::virtual'); | |
| 51861 | 52457 | } |
| 51862 | 52458 | |
| 51863 | 52459 | /** |
| 51864 | - * @return int | |
| 52460 | + * @return Virtual | |
| 51865 | 52461 | */ |
| 51866 | - public static function sampleUshort(): int { | |
| 51867 | - return 31; /*31:ushort*/ | |
| 52462 | + public static function sampleVirtual(): Virtual { | |
| 52463 | + return Virtual::sample(); /*40:virtual*/ | |
| 51868 | 52464 | } |
| 51869 | 52465 | |
| 51870 | 52466 | /** |
| 52467 | + * @param stdClass $value | |
| 51871 | 52468 | * @throws Exception |
| 51872 | - * @return bool | |
| 52469 | + * @return VoidClass | |
| 51873 | 52470 | */ |
| 51874 | - public function validate(): bool { | |
| 51875 | - return Ushort::validateUshort($this->ushort); | |
| 52471 | + public static function fromVoid(stdClass $value): VoidClass { | |
| 52472 | + return VoidClass::from($value); /*class*/ | |
| 51876 | 52473 | } |
| 51877 | 52474 | |
| 51878 | 52475 | /** |
| 51879 | - * @return stdClass | |
| 51880 | 52476 | * @throws Exception |
| 52477 | + * @return stdClass | |
| 51881 | 52478 | */ |
| 51882 | - public function to(): stdClass { | |
| 51883 | - $out = new stdClass(); | |
| 51884 | - $out->{'ushort'} = $this->toUshort(); | |
| 51885 | - return $out; | |
| 52479 | + public function toVoid(): stdClass { | |
| 52480 | + if (Obj6::validateVoid($this->void)) { | |
| 52481 | + return $this->void->to(); /*class*/ | |
| 52482 | + } | |
| 52483 | + throw new Exception('never get to this Obj6::void'); | |
| 51886 | 52484 | } |
| 51887 | 52485 | |
| 51888 | 52486 | /** |
| 51889 | - * @param stdClass $obj | |
| 51890 | - * @return Ushort | |
| 52487 | + * @param VoidClass | |
| 52488 | + * @return bool | |
| 51891 | 52489 | * @throws Exception |
| 51892 | 52490 | */ |
| 51893 | - public static function from(stdClass $obj): Ushort { | |
| 51894 | - if (!property_exists($obj, 'ushort')) { | |
| 51895 | - throw new Exception("Missing required property"); | |
| 51896 | - } | |
| 51897 | - return new Ushort( | |
| 51898 | - Ushort::fromUshort($obj->{'ushort'}) | |
| 51899 | - ); | |
| 52491 | + public static function validateVoid(VoidClass $value): bool { | |
| 52492 | + $value->validate(); | |
| 52493 | + return true; | |
| 51900 | 52494 | } |
| 51901 | 52495 | |
| 51902 | 52496 | /** |
| 51903 | - * @return Ushort | |
| 52497 | + * @throws Exception | |
| 52498 | + * @return VoidClass | |
| 51904 | 52499 | */ |
| 51905 | - public static function sample(): Ushort { | |
| 51906 | - return new Ushort( | |
| 51907 | - Ushort::sampleUshort() | |
| 51908 | - ); | |
| 52500 | + public function getVoid(): VoidClass { | |
| 52501 | + if (Obj6::validateVoid($this->void)) { | |
| 52502 | + return $this->void; | |
| 52503 | + } | |
| 52504 | + throw new Exception('never get to getVoid Obj6::void'); | |
| 51909 | 52505 | } |
| 51910 | -} | |
| 51911 | - | |
| 51912 | -// This is an autogenerated file:Obj6 | |
| 51913 | - | |
| 51914 | -class Obj6 { | |
| 51915 | - private int $dummy; // json:dummy Required | |
| 51916 | - private Using $using; // json:using Required | |
| 51917 | - private Utf8JSONReader $utf8JSONReader; // json:Utf8JsonReader Required | |
| 51918 | - private Utf8JSONWriter $utf8JSONWriter; // json:Utf8JsonWriter Required | |
| 51919 | - private UUID $uuid; // json:UUID Required | |
| 51920 | - private VarClass $var; // json:var Required | |
| 51921 | - private Virtual $virtual; // json:virtual Required | |
| 51922 | - private VoidClass $void; // json:void Required | |
| 51923 | - private Volatile $volatile; // json:volatile Required | |
| 51924 | - private WcharT $wcharT; // json:wchar_t Required | |
| 51925 | - private Weak $weak; // json:weak Required | |
| 51926 | - private Where $where; // json:where Required | |
| 51927 | - private WhileClass $while; // json:while Required | |
| 51928 | - private WillSet $willSet; // json:willSet Required | |
| 51929 | - private With $with; // json:with Required | |
| 51930 | - private XorClass $xor; // json:xor Required | |
| 51931 | - private XorEq $xorEq; // json:xor_eq Required | |
| 51932 | - private Yes $yes; // json:YES Required | |
| 51933 | - private YieldClass $yield; // json:yield Required | |
| 51934 | 52506 | |
| 51935 | 52507 | /** |
| 51936 | - * @param int $dummy | |
| 51937 | - * @param Using $using | |
| 51938 | - * @param Utf8JSONReader $utf8JSONReader | |
| 51939 | - * @param Utf8JSONWriter $utf8JSONWriter | |
| 51940 | - * @param UUID $uuid | |
| 51941 | - * @param VarClass $var | |
| 51942 | - * @param Virtual $virtual | |
| 51943 | - * @param VoidClass $void | |
| 51944 | - * @param Volatile $volatile | |
| 51945 | - * @param WcharT $wcharT | |
| 51946 | - * @param Weak $weak | |
| 51947 | - * @param Where $where | |
| 51948 | - * @param WhileClass $while | |
| 51949 | - * @param WillSet $willSet | |
| 51950 | - * @param With $with | |
| 51951 | - * @param XorClass $xor | |
| 51952 | - * @param XorEq $xorEq | |
| 51953 | - * @param Yes $yes | |
| 51954 | - * @param YieldClass $yield | |
| 52508 | + * @return VoidClass | |
| 51955 | 52509 | */ |
| 51956 | - public function __construct(int $dummy, Using $using, Utf8JSONReader $utf8JSONReader, 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) { | |
| 51957 | - $this->dummy = $dummy; | |
| 51958 | - $this->using = $using; | |
| 51959 | - $this->utf8JSONReader = $utf8JSONReader; | |
| 51960 | - $this->utf8JSONWriter = $utf8JSONWriter; | |
| 51961 | - $this->uuid = $uuid; | |
| 51962 | - $this->var = $var; | |
| 51963 | - $this->virtual = $virtual; | |
| 51964 | - $this->void = $void; | |
| 51965 | - $this->volatile = $volatile; | |
| 51966 | - $this->wcharT = $wcharT; | |
| 51967 | - $this->weak = $weak; | |
| 51968 | - $this->where = $where; | |
| 51969 | - $this->while = $while; | |
| 51970 | - $this->willSet = $willSet; | |
| 51971 | - $this->with = $with; | |
| 51972 | - $this->xor = $xor; | |
| 51973 | - $this->xorEq = $xorEq; | |
| 51974 | - $this->yes = $yes; | |
| 51975 | - $this->yield = $yield; | |
| 52510 | + public static function sampleVoid(): VoidClass { | |
| 52511 | + return VoidClass::sample(); /*41:void*/ | |
| 51976 | 52512 | } |
| 51977 | 52513 | |
| 51978 | 52514 | /** |
| 51979 | - * @param int $value | |
| 52515 | + * @param stdClass $value | |
| 51980 | 52516 | * @throws Exception |
| 51981 | - * @return int | |
| 52517 | + * @return Volatile | |
| 51982 | 52518 | */ |
| 51983 | - public static function fromDummy(int $value): int { | |
| 51984 | - return $value; /*int*/ | |
| 52519 | + public static function fromVolatile(stdClass $value): Volatile { | |
| 52520 | + return Volatile::from($value); /*class*/ | |
| 51985 | 52521 | } |
| 51986 | 52522 | |
| 51987 | 52523 | /** |
| 51988 | 52524 | * @throws Exception |
| 51989 | - * @return int | |
| 52525 | + * @return stdClass | |
| 51990 | 52526 | */ |
| 51991 | - public function toDummy(): int { | |
| 51992 | - if (Obj6::validateDummy($this->dummy)) { | |
| 51993 | - return $this->dummy; /*int*/ | |
| 52527 | + public function toVolatile(): stdClass { | |
| 52528 | + if (Obj6::validateVolatile($this->volatile)) { | |
| 52529 | + return $this->volatile->to(); /*class*/ | |
| 51994 | 52530 | } |
| 51995 | - throw new Exception('never get to this Obj6::dummy'); | |
| 52531 | + throw new Exception('never get to this Obj6::volatile'); | |
| 51996 | 52532 | } |
| 51997 | 52533 | |
| 51998 | 52534 | /** |
| 51999 | - * @param int | |
| 52535 | + * @param Volatile | |
| 52000 | 52536 | * @return bool |
| 52001 | 52537 | * @throws Exception |
| 52002 | 52538 | */ |
| 52003 | - public static function validateDummy(int $value): bool { | |
| 52539 | + public static function validateVolatile(Volatile $value): bool { | |
| 52540 | + $value->validate(); | |
| 52004 | 52541 | return true; |
| 52005 | 52542 | } |
| 52006 | 52543 | |
| 52007 | 52544 | /** |
| 52008 | 52545 | * @throws Exception |
| 52009 | - * @return int | |
| 52546 | + * @return Volatile | |
| 52010 | 52547 | */ |
| 52011 | - public function getDummy(): int { | |
| 52012 | - if (Obj6::validateDummy($this->dummy)) { | |
| 52013 | - return $this->dummy; | |
| 52548 | + public function getVolatile(): Volatile { | |
| 52549 | + if (Obj6::validateVolatile($this->volatile)) { | |
| 52550 | + return $this->volatile; | |
| 52014 | 52551 | } |
| 52015 | - throw new Exception('never get to getDummy Obj6::dummy'); | |
| 52552 | + throw new Exception('never get to getVolatile Obj6::volatile'); | |
| 52016 | 52553 | } |
| 52017 | 52554 | |
| 52018 | 52555 | /** |
| 52019 | - * @return int | |
| 52556 | + * @return Volatile | |
| 52020 | 52557 | */ |
| 52021 | - public static function sampleDummy(): int { | |
| 52022 | - return 31; /*31:dummy*/ | |
| 52558 | + public static function sampleVolatile(): Volatile { | |
| 52559 | + return Volatile::sample(); /*42:volatile*/ | |
| 52023 | 52560 | } |
| 52024 | 52561 | |
| 52025 | 52562 | /** |
| 52026 | 52563 | * @param stdClass $value |
| 52027 | 52564 | * @throws Exception |
| 52028 | - * @return Using | |
| 52565 | + * @return WcharT | |
| 52029 | 52566 | */ |
| 52030 | - public static function fromUsing(stdClass $value): Using { | |
| 52031 | - return Using::from($value); /*class*/ | |
| 52567 | + public static function fromWcharT(stdClass $value): WcharT { | |
| 52568 | + return WcharT::from($value); /*class*/ | |
| 52032 | 52569 | } |
| 52033 | 52570 | |
| 52034 | 52571 | /** |
| 52035 | 52572 | * @throws Exception |
| 52036 | 52573 | * @return stdClass |
| 52037 | 52574 | */ |
| 52038 | - public function toUsing(): stdClass { | |
| 52039 | - if (Obj6::validateUsing($this->using)) { | |
| 52040 | - return $this->using->to(); /*class*/ | |
| 52575 | + public function toWcharT(): stdClass { | |
| 52576 | + if (Obj6::validateWcharT($this->wcharT)) { | |
| 52577 | + return $this->wcharT->to(); /*class*/ | |
| 52041 | 52578 | } |
| 52042 | - throw new Exception('never get to this Obj6::using'); | |
| 52579 | + throw new Exception('never get to this Obj6::wcharT'); | |
| 52043 | 52580 | } |
| 52044 | 52581 | |
| 52045 | 52582 | /** |
| 52046 | - * @param Using | |
| 52583 | + * @param WcharT | |
| 52047 | 52584 | * @return bool |
| 52048 | 52585 | * @throws Exception |
| 52049 | 52586 | */ |
| 52050 | - public static function validateUsing(Using $value): bool { | |
| 52587 | + public static function validateWcharT(WcharT $value): bool { | |
| 52051 | 52588 | $value->validate(); |
| 52052 | 52589 | return true; |
| 52053 | 52590 | } |
| 52054 | 52591 | |
| 52055 | 52592 | /** |
| 52056 | 52593 | * @throws Exception |
| 52057 | - * @return Using | |
| 52594 | + * @return WcharT | |
| 52058 | 52595 | */ |
| 52059 | - public function getUsing(): Using { | |
| 52060 | - if (Obj6::validateUsing($this->using)) { | |
| 52061 | - return $this->using; | |
| 52596 | + public function getWcharT(): WcharT { | |
| 52597 | + if (Obj6::validateWcharT($this->wcharT)) { | |
| 52598 | + return $this->wcharT; | |
| 52062 | 52599 | } |
| 52063 | - throw new Exception('never get to getUsing Obj6::using'); | |
| 52600 | + throw new Exception('never get to getWcharT Obj6::wcharT'); | |
| 52064 | 52601 | } |
| 52065 | 52602 | |
| 52066 | 52603 | /** |
| 52067 | - * @return Using | |
| 52604 | + * @return WcharT | |
| 52068 | 52605 | */ |
| 52069 | - public static function sampleUsing(): Using { | |
| 52070 | - return Using::sample(); /*32:using*/ | |
| 52606 | + public static function sampleWcharT(): WcharT { | |
| 52607 | + return WcharT::sample(); /*43:wcharT*/ | |
| 52071 | 52608 | } |
| 52072 | 52609 | |
| 52073 | 52610 | /** |
| 52074 | 52611 | * @param stdClass $value |
| 52075 | 52612 | * @throws Exception |
| 52076 | - * @return Utf8JSONReader | |
| 52613 | + * @return Weak | |
| 52077 | 52614 | */ |
| 52078 | - public static function fromUtf8JSONReader(stdClass $value): Utf8JSONReader { | |
| 52079 | - return Utf8JSONReader::from($value); /*class*/ | |
| 52615 | + public static function fromWeak(stdClass $value): Weak { | |
| 52616 | + return Weak::from($value); /*class*/ | |
| 52080 | 52617 | } |
| 52081 | 52618 | |
| 52082 | 52619 | /** |
| 52083 | 52620 | * @throws Exception |
| 52084 | 52621 | * @return stdClass |
| 52085 | 52622 | */ |
| 52086 | - public function toUtf8JSONReader(): stdClass { | |
| 52087 | - if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52088 | - return $this->utf8JSONReader->to(); /*class*/ | |
| 52623 | + public function toWeak(): stdClass { | |
| 52624 | + if (Obj6::validateWeak($this->weak)) { | |
| 52625 | + return $this->weak->to(); /*class*/ | |
| 52089 | 52626 | } |
| 52090 | - throw new Exception('never get to this Obj6::utf8JSONReader'); | |
| 52627 | + throw new Exception('never get to this Obj6::weak'); | |
| 52091 | 52628 | } |
| 52092 | 52629 | |
| 52093 | 52630 | /** |
| 52094 | - * @param Utf8JSONReader | |
| 52631 | + * @param Weak | |
| 52095 | 52632 | * @return bool |
| 52096 | 52633 | * @throws Exception |
| 52097 | 52634 | */ |
| 52098 | - public static function validateUtf8JSONReader(Utf8JSONReader $value): bool { | |
| 52635 | + public static function validateWeak(Weak $value): bool { | |
| 52099 | 52636 | $value->validate(); |
| 52100 | 52637 | return true; |
| 52101 | 52638 | } |
| 52102 | 52639 | |
| 52103 | 52640 | /** |
| 52104 | 52641 | * @throws Exception |
| 52105 | - * @return Utf8JSONReader | |
| 52642 | + * @return Weak | |
| 52106 | 52643 | */ |
| 52107 | - public function getUtf8JSONReader(): Utf8JSONReader { | |
| 52108 | - if (Obj6::validateUtf8JSONReader($this->utf8JSONReader)) { | |
| 52109 | - return $this->utf8JSONReader; | |
| 52644 | + public function getWeak(): Weak { | |
| 52645 | + if (Obj6::validateWeak($this->weak)) { | |
| 52646 | + return $this->weak; | |
| 52110 | 52647 | } |
| 52111 | - throw new Exception('never get to getUtf8JSONReader Obj6::utf8JSONReader'); | |
| 52648 | + throw new Exception('never get to getWeak Obj6::weak'); | |
| 52112 | 52649 | } |
| 52113 | 52650 | |
| 52114 | 52651 | /** |
| 52115 | - * @return Utf8JSONReader | |
| 52652 | + * @return Weak | |
| 52116 | 52653 | */ |
| 52117 | - public static function sampleUtf8JSONReader(): Utf8JSONReader { | |
| 52118 | - return Utf8JSONReader::sample(); /*33:utf8JSONReader*/ | |
| 52654 | + public static function sampleWeak(): Weak { | |
| 52655 | + return Weak::sample(); /*44:weak*/ | |
| 52119 | 52656 | } |
| 52120 | 52657 | |
| 52121 | 52658 | /** |
| 52122 | 52659 | * @param stdClass $value |
| 52123 | 52660 | * @throws Exception |
| 52124 | - * @return Utf8JSONWriter | |
| 52661 | + * @return Where | |
| 52125 | 52662 | */ |
| 52126 | - public static function fromUtf8JSONWriter(stdClass $value): Utf8JSONWriter { | |
| 52127 | - return Utf8JSONWriter::from($value); /*class*/ | |
| 52663 | + public static function fromWhere(stdClass $value): Where { | |
| 52664 | + return Where::from($value); /*class*/ | |
| 52128 | 52665 | } |
| 52129 | 52666 | |
| 52130 | 52667 | /** |
| 52131 | 52668 | * @throws Exception |
| 52132 | 52669 | * @return stdClass |
| 52133 | 52670 | */ |
| 52134 | - public function toUtf8JSONWriter(): stdClass { | |
| 52135 | - if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52136 | - return $this->utf8JSONWriter->to(); /*class*/ | |
| 52671 | + public function toWhere(): stdClass { | |
| 52672 | + if (Obj6::validateWhere($this->where)) { | |
| 52673 | + return $this->where->to(); /*class*/ | |
| 52137 | 52674 | } |
| 52138 | - throw new Exception('never get to this Obj6::utf8JSONWriter'); | |
| 52675 | + throw new Exception('never get to this Obj6::where'); | |
| 52139 | 52676 | } |
| 52140 | 52677 | |
| 52141 | 52678 | /** |
| 52142 | - * @param Utf8JSONWriter | |
| 52679 | + * @param Where | |
| 52143 | 52680 | * @return bool |
| 52144 | 52681 | * @throws Exception |
| 52145 | 52682 | */ |
| 52146 | - public static function validateUtf8JSONWriter(Utf8JSONWriter $value): bool { | |
| 52683 | + public static function validateWhere(Where $value): bool { | |
| 52147 | 52684 | $value->validate(); |
| 52148 | 52685 | return true; |
| 52149 | 52686 | } |
| 52150 | 52687 | |
| 52151 | 52688 | /** |
| 52152 | 52689 | * @throws Exception |
| 52153 | - * @return Utf8JSONWriter | |
| 52690 | + * @return Where | |
| 52154 | 52691 | */ |
| 52155 | - public function getUtf8JSONWriter(): Utf8JSONWriter { | |
| 52156 | - if (Obj6::validateUtf8JSONWriter($this->utf8JSONWriter)) { | |
| 52157 | - return $this->utf8JSONWriter; | |
| 52692 | + public function getWhere(): Where { | |
| 52693 | + if (Obj6::validateWhere($this->where)) { | |
| 52694 | + return $this->where; | |
| 52158 | 52695 | } |
| 52159 | - throw new Exception('never get to getUtf8JSONWriter Obj6::utf8JSONWriter'); | |
| 52696 | + throw new Exception('never get to getWhere Obj6::where'); | |
| 52160 | 52697 | } |
| 52161 | 52698 | |
| 52162 | 52699 | /** |
| 52163 | - * @return Utf8JSONWriter | |
| 52700 | + * @return Where | |
| 52164 | 52701 | */ |
| 52165 | - public static function sampleUtf8JSONWriter(): Utf8JSONWriter { | |
| 52166 | - return Utf8JSONWriter::sample(); /*34:utf8JSONWriter*/ | |
| 52702 | + public static function sampleWhere(): Where { | |
| 52703 | + return Where::sample(); /*45:where*/ | |
| 52167 | 52704 | } |
| 52168 | 52705 | |
| 52169 | 52706 | /** |
| 52170 | 52707 | * @param stdClass $value |
| 52171 | 52708 | * @throws Exception |
| 52172 | - * @return UUID | |
| 52709 | + * @return WhileClass | |
| 52173 | 52710 | */ |
| 52174 | - public static function fromUUID(stdClass $value): UUID { | |
| 52175 | - return UUID::from($value); /*class*/ | |
| 52711 | + public static function fromWhile(stdClass $value): WhileClass { | |
| 52712 | + return WhileClass::from($value); /*class*/ | |
| 52176 | 52713 | } |
| 52177 | 52714 | |
| 52178 | 52715 | /** |
| 52179 | 52716 | * @throws Exception |
| 52180 | 52717 | * @return stdClass |
| 52181 | 52718 | */ |
| 52182 | - public function toUUID(): stdClass { | |
| 52183 | - if (Obj6::validateUUID($this->uuid)) { | |
| 52184 | - return $this->uuid->to(); /*class*/ | |
| 52719 | + public function toWhile(): stdClass { | |
| 52720 | + if (Obj6::validateWhile($this->while)) { | |
| 52721 | + return $this->while->to(); /*class*/ | |
| 52185 | 52722 | } |
| 52186 | - throw new Exception('never get to this Obj6::uuid'); | |
| 52723 | + throw new Exception('never get to this Obj6::while'); | |
| 52187 | 52724 | } |
| 52188 | 52725 | |
| 52189 | 52726 | /** |
| 52190 | - * @param UUID | |
| 52727 | + * @param WhileClass | |
| 52191 | 52728 | * @return bool |
| 52192 | 52729 | * @throws Exception |
| 52193 | 52730 | */ |
| 52194 | - public static function validateUUID(UUID $value): bool { | |
| 52731 | + public static function validateWhile(WhileClass $value): bool { | |
| 52195 | 52732 | $value->validate(); |
| 52196 | 52733 | return true; |
| 52197 | 52734 | } |
| 52198 | 52735 | |
| 52199 | 52736 | /** |
| 52200 | 52737 | * @throws Exception |
| 52201 | - * @return UUID | |
| 52738 | + * @return WhileClass | |
| 52202 | 52739 | */ |
| 52203 | - public function getUUID(): UUID { | |
| 52204 | - if (Obj6::validateUUID($this->uuid)) { | |
| 52205 | - return $this->uuid; | |
| 52740 | + public function getWhile(): WhileClass { | |
| 52741 | + if (Obj6::validateWhile($this->while)) { | |
| 52742 | + return $this->while; | |
| 52206 | 52743 | } |
| 52207 | - throw new Exception('never get to getUUID Obj6::uuid'); | |
| 52744 | + throw new Exception('never get to getWhile Obj6::while'); | |
| 52208 | 52745 | } |
| 52209 | 52746 | |
| 52210 | 52747 | /** |
| 52211 | - * @return UUID | |
| 52748 | + * @return WhileClass | |
| 52212 | 52749 | */ |
| 52213 | - public static function sampleUUID(): UUID { | |
| 52214 | - return UUID::sample(); /*35:uuid*/ | |
| 52750 | + public static function sampleWhile(): WhileClass { | |
| 52751 | + return WhileClass::sample(); /*46:while*/ | |
| 52215 | 52752 | } |
| 52216 | 52753 | |
| 52217 | 52754 | /** |
| 52218 | 52755 | * @param stdClass $value |
| 52219 | 52756 | * @throws Exception |
| 52220 | - * @return VarClass | |
| 52757 | + * @return WillSet | |
| 52221 | 52758 | */ |
| 52222 | - public static function fromVar(stdClass $value): VarClass { | |
| 52223 | - return VarClass::from($value); /*class*/ | |
| 52759 | + public static function fromWillSet(stdClass $value): WillSet { | |
| 52760 | + return WillSet::from($value); /*class*/ | |
| 52224 | 52761 | } |
| 52225 | 52762 | |
| 52226 | 52763 | /** |
| 52227 | 52764 | * @throws Exception |
| 52228 | 52765 | * @return stdClass |
| 52229 | 52766 | */ |
| 52230 | - public function toVar(): stdClass { | |
| 52231 | - if (Obj6::validateVar($this->var)) { | |
| 52232 | - return $this->var->to(); /*class*/ | |
| 52767 | + public function toWillSet(): stdClass { | |
| 52768 | + if (Obj6::validateWillSet($this->willSet)) { | |
| 52769 | + return $this->willSet->to(); /*class*/ | |
| 52233 | 52770 | } |
| 52234 | - throw new Exception('never get to this Obj6::var'); | |
| 52771 | + throw new Exception('never get to this Obj6::willSet'); | |
| 52235 | 52772 | } |
| 52236 | 52773 | |
| 52237 | 52774 | /** |
| 52238 | - * @param VarClass | |
| 52775 | + * @param WillSet | |
| 52239 | 52776 | * @return bool |
| 52240 | 52777 | * @throws Exception |
| 52241 | 52778 | */ |
| 52242 | - public static function validateVar(VarClass $value): bool { | |
| 52779 | + public static function validateWillSet(WillSet $value): bool { | |
| 52243 | 52780 | $value->validate(); |
| 52244 | 52781 | return true; |
| 52245 | 52782 | } |
| 52246 | 52783 | |
| 52247 | 52784 | /** |
| 52248 | 52785 | * @throws Exception |
| 52249 | - * @return VarClass | |
| 52786 | + * @return WillSet | |
| 52250 | 52787 | */ |
| 52251 | - public function getVar(): VarClass { | |
| 52252 | - if (Obj6::validateVar($this->var)) { | |
| 52253 | - return $this->var; | |
| 52788 | + public function getWillSet(): WillSet { | |
| 52789 | + if (Obj6::validateWillSet($this->willSet)) { | |
| 52790 | + return $this->willSet; | |
| 52254 | 52791 | } |
| 52255 | - throw new Exception('never get to getVar Obj6::var'); | |
| 52792 | + throw new Exception('never get to getWillSet Obj6::willSet'); | |
| 52256 | 52793 | } |
| 52257 | 52794 | |
| 52258 | 52795 | /** |
| 52259 | - * @return VarClass | |
| 52796 | + * @return WillSet | |
| 52260 | 52797 | */ |
| 52261 | - public static function sampleVar(): VarClass { | |
| 52262 | - return VarClass::sample(); /*36:var*/ | |
| 52798 | + public static function sampleWillSet(): WillSet { | |
| 52799 | + return WillSet::sample(); /*47:willSet*/ | |
| 52263 | 52800 | } |
| 52264 | 52801 | |
| 52265 | 52802 | /** |
| 52266 | 52803 | * @param stdClass $value |
| 52267 | 52804 | * @throws Exception |
| 52268 | - * @return Virtual | |
| 52805 | + * @return With | |
| 52269 | 52806 | */ |
| 52270 | - public static function fromVirtual(stdClass $value): Virtual { | |
| 52271 | - return Virtual::from($value); /*class*/ | |
| 52807 | + public static function fromWith(stdClass $value): With { | |
| 52808 | + return With::from($value); /*class*/ | |
| 52272 | 52809 | } |
| 52273 | 52810 | |
| 52274 | 52811 | /** |
| 52275 | 52812 | * @throws Exception |
| 52276 | 52813 | * @return stdClass |
| 52277 | 52814 | */ |
| 52278 | - public function toVirtual(): stdClass { | |
| 52279 | - if (Obj6::validateVirtual($this->virtual)) { | |
| 52280 | - return $this->virtual->to(); /*class*/ | |
| 52815 | + public function toWith(): stdClass { | |
| 52816 | + if (Obj6::validateWith($this->with)) { | |
| 52817 | + return $this->with->to(); /*class*/ | |
| 52281 | 52818 | } |
| 52282 | - throw new Exception('never get to this Obj6::virtual'); | |
| 52819 | + throw new Exception('never get to this Obj6::with'); | |
| 52283 | 52820 | } |
| 52284 | 52821 | |
| 52285 | 52822 | /** |
| 52286 | - * @param Virtual | |
| 52823 | + * @param With | |
| 52287 | 52824 | * @return bool |
| 52288 | 52825 | * @throws Exception |
| 52289 | 52826 | */ |
| 52290 | - public static function validateVirtual(Virtual $value): bool { | |
| 52827 | + public static function validateWith(With $value): bool { | |
| 52291 | 52828 | $value->validate(); |
| 52292 | 52829 | return true; |
| 52293 | 52830 | } |
| 52294 | 52831 | |
| 52295 | 52832 | /** |
| 52296 | 52833 | * @throws Exception |
| 52297 | - * @return Virtual | |
| 52834 | + * @return With | |
| 52298 | 52835 | */ |
| 52299 | - public function getVirtual(): Virtual { | |
| 52300 | - if (Obj6::validateVirtual($this->virtual)) { | |
| 52301 | - return $this->virtual; | |
| 52836 | + public function getWith(): With { | |
| 52837 | + if (Obj6::validateWith($this->with)) { | |
| 52838 | + return $this->with; | |
| 52302 | 52839 | } |
| 52303 | - throw new Exception('never get to getVirtual Obj6::virtual'); | |
| 52840 | + throw new Exception('never get to getWith Obj6::with'); | |
| 52304 | 52841 | } |
| 52305 | 52842 | |
| 52306 | 52843 | /** |
| 52307 | - * @return Virtual | |
| 52844 | + * @return With | |
| 52308 | 52845 | */ |
| 52309 | - public static function sampleVirtual(): Virtual { | |
| 52310 | - return Virtual::sample(); /*37:virtual*/ | |
| 52846 | + public static function sampleWith(): With { | |
| 52847 | + return With::sample(); /*48:with*/ | |
| 52311 | 52848 | } |
| 52312 | 52849 | |
| 52313 | 52850 | /** |
| 52314 | 52851 | * @param stdClass $value |
| 52315 | 52852 | * @throws Exception |
| 52316 | - * @return VoidClass | |
| 52317 | - */ | |
| 52318 | - public static function fromVoid(stdClass $value): VoidClass { | |
| 52319 | - return VoidClass::from($value); /*class*/ | |
| 52853 | + * @return XorClass | |
| 52854 | + */ | |
| 52855 | + public static function fromXor(stdClass $value): XorClass { | |
| 52856 | + return XorClass::from($value); /*class*/ | |
| 52320 | 52857 | } |
| 52321 | 52858 | |
| 52322 | 52859 | /** |
| 52323 | 52860 | * @throws Exception |
| 52324 | 52861 | * @return stdClass |
| 52325 | 52862 | */ |
| 52326 | - public function toVoid(): stdClass { | |
| 52327 | - if (Obj6::validateVoid($this->void)) { | |
| 52328 | - return $this->void->to(); /*class*/ | |
| 52863 | + public function toXor(): stdClass { | |
| 52864 | + if (Obj6::validateXor($this->xor)) { | |
| 52865 | + return $this->xor->to(); /*class*/ | |
| 52329 | 52866 | } |
| 52330 | - throw new Exception('never get to this Obj6::void'); | |
| 52867 | + throw new Exception('never get to this Obj6::xor'); | |
| 52331 | 52868 | } |
| 52332 | 52869 | |
| 52333 | 52870 | /** |
| 52334 | - * @param VoidClass | |
| 52871 | + * @param XorClass | |
| 52335 | 52872 | * @return bool |
| 52336 | 52873 | * @throws Exception |
| 52337 | 52874 | */ |
| 52338 | - public static function validateVoid(VoidClass $value): bool { | |
| 52875 | + public static function validateXor(XorClass $value): bool { | |
| 52339 | 52876 | $value->validate(); |
| 52340 | 52877 | return true; |
| 52341 | 52878 | } |
| 52342 | 52879 | |
| 52343 | 52880 | /** |
| 52344 | 52881 | * @throws Exception |
| 52345 | - * @return VoidClass | |
| 52882 | + * @return XorClass | |
| 52346 | 52883 | */ |
| 52347 | - public function getVoid(): VoidClass { | |
| 52348 | - if (Obj6::validateVoid($this->void)) { | |
| 52349 | - return $this->void; | |
| 52884 | + public function getXor(): XorClass { | |
| 52885 | + if (Obj6::validateXor($this->xor)) { | |
| 52886 | + return $this->xor; | |
| 52350 | 52887 | } |
| 52351 | - throw new Exception('never get to getVoid Obj6::void'); | |
| 52888 | + throw new Exception('never get to getXor Obj6::xor'); | |
| 52352 | 52889 | } |
| 52353 | 52890 | |
| 52354 | 52891 | /** |
| 52355 | - * @return VoidClass | |
| 52892 | + * @return XorClass | |
| 52356 | 52893 | */ |
| 52357 | - public static function sampleVoid(): VoidClass { | |
| 52358 | - return VoidClass::sample(); /*38:void*/ | |
| 52894 | + public static function sampleXor(): XorClass { | |
| 52895 | + return XorClass::sample(); /*49:xor*/ | |
| 52359 | 52896 | } |
| 52360 | 52897 | |
| 52361 | 52898 | /** |
| 52362 | 52899 | * @param stdClass $value |
| 52363 | 52900 | * @throws Exception |
| 52364 | - * @return Volatile | |
| 52901 | + * @return XorEq | |
| 52365 | 52902 | */ |
| 52366 | - public static function fromVolatile(stdClass $value): Volatile { | |
| 52367 | - return Volatile::from($value); /*class*/ | |
| 52903 | + public static function fromXorEq(stdClass $value): XorEq { | |
| 52904 | + return XorEq::from($value); /*class*/ | |
| 52368 | 52905 | } |
| 52369 | 52906 | |
| 52370 | 52907 | /** |
| 52371 | 52908 | * @throws Exception |
| 52372 | 52909 | * @return stdClass |
| 52373 | 52910 | */ |
| 52374 | - public function toVolatile(): stdClass { | |
| 52375 | - if (Obj6::validateVolatile($this->volatile)) { | |
| 52376 | - return $this->volatile->to(); /*class*/ | |
| 52911 | + public function toXorEq(): stdClass { | |
| 52912 | + if (Obj6::validateXorEq($this->xorEq)) { | |
| 52913 | + return $this->xorEq->to(); /*class*/ | |
| 52377 | 52914 | } |
| 52378 | - throw new Exception('never get to this Obj6::volatile'); | |
| 52915 | + throw new Exception('never get to this Obj6::xorEq'); | |
| 52379 | 52916 | } |
| 52380 | 52917 | |
| 52381 | 52918 | /** |
| 52382 | - * @param Volatile | |
| 52919 | + * @param XorEq | |
| 52383 | 52920 | * @return bool |
| 52384 | 52921 | * @throws Exception |
| 52385 | 52922 | */ |
| 52386 | - public static function validateVolatile(Volatile $value): bool { | |
| 52923 | + public static function validateXorEq(XorEq $value): bool { | |
| 52387 | 52924 | $value->validate(); |
| 52388 | 52925 | return true; |
| 52389 | 52926 | } |
| 52390 | 52927 | |
| 52391 | 52928 | /** |
| 52392 | 52929 | * @throws Exception |
| 52393 | - * @return Volatile | |
| 52930 | + * @return XorEq | |
| 52394 | 52931 | */ |
| 52395 | - public function getVolatile(): Volatile { | |
| 52396 | - if (Obj6::validateVolatile($this->volatile)) { | |
| 52397 | - return $this->volatile; | |
| 52932 | + public function getXorEq(): XorEq { | |
| 52933 | + if (Obj6::validateXorEq($this->xorEq)) { | |
| 52934 | + return $this->xorEq; | |
| 52398 | 52935 | } |
| 52399 | - throw new Exception('never get to getVolatile Obj6::volatile'); | |
| 52936 | + throw new Exception('never get to getXorEq Obj6::xorEq'); | |
| 52400 | 52937 | } |
| 52401 | 52938 | |
| 52402 | 52939 | /** |
| 52403 | - * @return Volatile | |
| 52940 | + * @return XorEq | |
| 52404 | 52941 | */ |
| 52405 | - public static function sampleVolatile(): Volatile { | |
| 52406 | - return Volatile::sample(); /*39:volatile*/ | |
| 52942 | + public static function sampleXorEq(): XorEq { | |
| 52943 | + return XorEq::sample(); /*50:xorEq*/ | |
| 52407 | 52944 | } |
| 52408 | 52945 | |
| 52409 | 52946 | /** |
| 52410 | 52947 | * @param stdClass $value |
| 52411 | 52948 | * @throws Exception |
| 52412 | - * @return WcharT | |
| 52949 | + * @return Yes | |
| 52413 | 52950 | */ |
| 52414 | - public static function fromWcharT(stdClass $value): WcharT { | |
| 52415 | - return WcharT::from($value); /*class*/ | |
| 52951 | + public static function fromYes(stdClass $value): Yes { | |
| 52952 | + return Yes::from($value); /*class*/ | |
| 52416 | 52953 | } |
| 52417 | 52954 | |
| 52418 | 52955 | /** |
| 52419 | 52956 | * @throws Exception |
| 52420 | 52957 | * @return stdClass |
| 52421 | 52958 | */ |
| 52422 | - public function toWcharT(): stdClass { | |
| 52423 | - if (Obj6::validateWcharT($this->wcharT)) { | |
| 52424 | - return $this->wcharT->to(); /*class*/ | |
| 52959 | + public function toYes(): stdClass { | |
| 52960 | + if (Obj6::validateYes($this->yes)) { | |
| 52961 | + return $this->yes->to(); /*class*/ | |
| 52425 | 52962 | } |
| 52426 | - throw new Exception('never get to this Obj6::wcharT'); | |
| 52963 | + throw new Exception('never get to this Obj6::yes'); | |
| 52427 | 52964 | } |
| 52428 | 52965 | |
| 52429 | 52966 | /** |
| 52430 | - * @param WcharT | |
| 52967 | + * @param Yes | |
| 52431 | 52968 | * @return bool |
| 52432 | 52969 | * @throws Exception |
| 52433 | 52970 | */ |
| 52434 | - public static function validateWcharT(WcharT $value): bool { | |
| 52971 | + public static function validateYes(Yes $value): bool { | |
| 52435 | 52972 | $value->validate(); |
| 52436 | 52973 | return true; |
| 52437 | 52974 | } |
| 52438 | 52975 | |
| 52439 | 52976 | /** |
| 52440 | 52977 | * @throws Exception |
| 52441 | - * @return WcharT | |
| 52978 | + * @return Yes | |
| 52442 | 52979 | */ |
| 52443 | - public function getWcharT(): WcharT { | |
| 52444 | - if (Obj6::validateWcharT($this->wcharT)) { | |
| 52445 | - return $this->wcharT; | |
| 52980 | + public function getYes(): Yes { | |
| 52981 | + if (Obj6::validateYes($this->yes)) { | |
| 52982 | + return $this->yes; | |
| 52446 | 52983 | } |
| 52447 | - throw new Exception('never get to getWcharT Obj6::wcharT'); | |
| 52984 | + throw new Exception('never get to getYes Obj6::yes'); | |
| 52448 | 52985 | } |
| 52449 | 52986 | |
| 52450 | 52987 | /** |
| 52451 | - * @return WcharT | |
| 52988 | + * @return Yes | |
| 52452 | 52989 | */ |
| 52453 | - public static function sampleWcharT(): WcharT { | |
| 52454 | - return WcharT::sample(); /*40:wcharT*/ | |
| 52990 | + public static function sampleYes(): Yes { | |
| 52991 | + return Yes::sample(); /*51:yes*/ | |
| 52455 | 52992 | } |
| 52456 | 52993 | |
| 52457 | 52994 | /** |
| 52458 | 52995 | * @param stdClass $value |
| 52459 | 52996 | * @throws Exception |
| 52460 | - * @return Weak | |
| 52997 | + * @return YieldClass | |
| 52461 | 52998 | */ |
| 52462 | - public static function fromWeak(stdClass $value): Weak { | |
| 52463 | - return Weak::from($value); /*class*/ | |
| 52999 | + public static function fromYield(stdClass $value): YieldClass { | |
| 53000 | + return YieldClass::from($value); /*class*/ | |
| 52464 | 53001 | } |
| 52465 | 53002 | |
| 52466 | 53003 | /** |
| 52467 | 53004 | * @throws Exception |
| 52468 | 53005 | * @return stdClass |
| 52469 | 53006 | */ |
| 52470 | - public function toWeak(): stdClass { | |
| 52471 | - if (Obj6::validateWeak($this->weak)) { | |
| 52472 | - return $this->weak->to(); /*class*/ | |
| 53007 | + public function toYield(): stdClass { | |
| 53008 | + if (Obj6::validateYield($this->yield)) { | |
| 53009 | + return $this->yield->to(); /*class*/ | |
| 52473 | 53010 | } |
| 52474 | - throw new Exception('never get to this Obj6::weak'); | |
| 53011 | + throw new Exception('never get to this Obj6::yield'); | |
| 52475 | 53012 | } |
| 52476 | 53013 | |
| 52477 | 53014 | /** |
| 52478 | - * @param Weak | |
| 53015 | + * @param YieldClass | |
| 52479 | 53016 | * @return bool |
| 52480 | 53017 | * @throws Exception |
| 52481 | 53018 | */ |
| 52482 | - public static function validateWeak(Weak $value): bool { | |
| 53019 | + public static function validateYield(YieldClass $value): bool { | |
| 52483 | 53020 | $value->validate(); |
| 52484 | 53021 | return true; |
| 52485 | 53022 | } |
| 52486 | 53023 | |
| 52487 | 53024 | /** |
| 52488 | 53025 | * @throws Exception |
| 52489 | - * @return Weak | |
| 53026 | + * @return YieldClass | |
| 52490 | 53027 | */ |
| 52491 | - public function getWeak(): Weak { | |
| 52492 | - if (Obj6::validateWeak($this->weak)) { | |
| 52493 | - return $this->weak; | |
| 53028 | + public function getYield(): YieldClass { | |
| 53029 | + if (Obj6::validateYield($this->yield)) { | |
| 53030 | + return $this->yield; | |
| 52494 | 53031 | } |
| 52495 | - throw new Exception('never get to getWeak Obj6::weak'); | |
| 53032 | + throw new Exception('never get to getYield Obj6::yield'); | |
| 52496 | 53033 | } |
| 52497 | 53034 | |
| 52498 | 53035 | /** |
| 52499 | - * @return Weak | |
| 53036 | + * @return YieldClass | |
| 52500 | 53037 | */ |
| 52501 | - public static function sampleWeak(): Weak { | |
| 52502 | - return Weak::sample(); /*41:weak*/ | |
| 53038 | + public static function sampleYield(): YieldClass { | |
| 53039 | + return YieldClass::sample(); /*52:yield*/ | |
| 52503 | 53040 | } |
| 52504 | 53041 | |
| 52505 | 53042 | /** |
| 52506 | - * @param stdClass $value | |
| 52507 | 53043 | * @throws Exception |
| 52508 | - * @return Where | |
| 53044 | + * @return bool | |
| 52509 | 53045 | */ |
| 52510 | - public static function fromWhere(stdClass $value): Where { | |
| 52511 | - return Where::from($value); /*class*/ | |
| 53046 | + public function validate(): bool { | |
| 53047 | + return Obj6::validateDummy($this->dummy) | |
| 53048 | + || Obj6::validateUnsafe($this->unsafe) | |
| 53049 | + || Obj6::validateUnsigned($this->unsigned) | |
| 53050 | + || Obj6::validateUshort($this->ushort) | |
| 53051 | + || Obj6::validateUsing($this->using) | |
| 53052 | + || Obj6::validateUtf8JSONReader($this->utf8JSONReader) | |
| 53053 | + || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter) | |
| 53054 | + || Obj6::validateUUID($this->uuid) | |
| 53055 | + || Obj6::validateVar($this->var) | |
| 53056 | + || Obj6::validateVirtual($this->virtual) | |
| 53057 | + || Obj6::validateVoid($this->void) | |
| 53058 | + || Obj6::validateVolatile($this->volatile) | |
| 53059 | + || Obj6::validateWcharT($this->wcharT) | |
| 53060 | + || Obj6::validateWeak($this->weak) | |
| 53061 | + || Obj6::validateWhere($this->where) | |
| 53062 | + || Obj6::validateWhile($this->while) | |
| 53063 | + || Obj6::validateWillSet($this->willSet) | |
| 53064 | + || Obj6::validateWith($this->with) | |
| 53065 | + || Obj6::validateXor($this->xor) | |
| 53066 | + || Obj6::validateXorEq($this->xorEq) | |
| 53067 | + || Obj6::validateYes($this->yes) | |
| 53068 | + || Obj6::validateYield($this->yield); | |
| 52512 | 53069 | } |
| 52513 | 53070 | |
| 52514 | 53071 | /** |
| 52515 | - * @throws Exception | |
| 52516 | 53072 | * @return stdClass |
| 52517 | - */ | |
| 52518 | - public function toWhere(): stdClass { | |
| 52519 | - if (Obj6::validateWhere($this->where)) { | |
| 52520 | - return $this->where->to(); /*class*/ | |
| 52521 | - } | |
| 52522 | - throw new Exception('never get to this Obj6::where'); | |
| 52523 | - } | |
| 52524 | - | |
| 52525 | - /** | |
| 52526 | - * @param Where | |
| 52527 | - * @return bool | |
| 52528 | 53073 | * @throws Exception |
| 52529 | 53074 | */ |
| 52530 | - public static function validateWhere(Where $value): bool { | |
| 52531 | - $value->validate(); | |
| 52532 | - return true; | |
| 53075 | + public function to(): stdClass { | |
| 53076 | + $out = new stdClass(); | |
| 53077 | + $out->{'dummy'} = $this->toDummy(); | |
| 53078 | + $out->{'unsafe'} = $this->toUnsafe(); | |
| 53079 | + $out->{'unsigned'} = $this->toUnsigned(); | |
| 53080 | + $out->{'ushort'} = $this->toUshort(); | |
| 53081 | + $out->{'using'} = $this->toUsing(); | |
| 53082 | + $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader(); | |
| 53083 | + $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 53084 | + $out->{'UUID'} = $this->toUUID(); | |
| 53085 | + $out->{'var'} = $this->toVar(); | |
| 53086 | + $out->{'virtual'} = $this->toVirtual(); | |
| 53087 | + $out->{'void'} = $this->toVoid(); | |
| 53088 | + $out->{'volatile'} = $this->toVolatile(); | |
| 53089 | + $out->{'wchar_t'} = $this->toWcharT(); | |
| 53090 | + $out->{'weak'} = $this->toWeak(); | |
| 53091 | + $out->{'where'} = $this->toWhere(); | |
| 53092 | + $out->{'while'} = $this->toWhile(); | |
| 53093 | + $out->{'willSet'} = $this->toWillSet(); | |
| 53094 | + $out->{'with'} = $this->toWith(); | |
| 53095 | + $out->{'xor'} = $this->toXor(); | |
| 53096 | + $out->{'xor_eq'} = $this->toXorEq(); | |
| 53097 | + $out->{'YES'} = $this->toYes(); | |
| 53098 | + $out->{'yield'} = $this->toYield(); | |
| 53099 | + return $out; | |
| 52533 | 53100 | } |
| 52534 | 53101 | |
| 52535 | 53102 | /** |
| 53103 | + * @param stdClass $obj | |
| 53104 | + * @return Obj6 | |
| 52536 | 53105 | * @throws Exception |
| 52537 | - * @return Where | |
| 52538 | 53106 | */ |
| 52539 | - public function getWhere(): Where { | |
| 52540 | - if (Obj6::validateWhere($this->where)) { | |
| 52541 | - return $this->where; | |
| 53107 | + public static function from(stdClass $obj): Obj6 { | |
| 53108 | + if (!property_exists($obj, 'dummy')) { | |
| 53109 | + throw new Exception("Missing required property"); | |
| 53110 | + } | |
| 53111 | + if (!property_exists($obj, 'unsafe')) { | |
| 53112 | + throw new Exception("Missing required property"); | |
| 53113 | + } | |
| 53114 | + if (!property_exists($obj, 'unsigned')) { | |
| 53115 | + throw new Exception("Missing required property"); | |
| 53116 | + } | |
| 53117 | + if (!property_exists($obj, 'ushort')) { | |
| 53118 | + throw new Exception("Missing required property"); | |
| 53119 | + } | |
| 53120 | + if (!property_exists($obj, 'using')) { | |
| 53121 | + throw new Exception("Missing required property"); | |
| 53122 | + } | |
| 53123 | + if (!property_exists($obj, 'Utf8JsonReader')) { | |
| 53124 | + throw new Exception("Missing required property"); | |
| 53125 | + } | |
| 53126 | + if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 53127 | + throw new Exception("Missing required property"); | |
| 53128 | + } | |
| 53129 | + if (!property_exists($obj, 'UUID')) { | |
| 53130 | + throw new Exception("Missing required property"); | |
| 53131 | + } | |
| 53132 | + if (!property_exists($obj, 'var')) { | |
| 53133 | + throw new Exception("Missing required property"); | |
| 53134 | + } | |
| 53135 | + if (!property_exists($obj, 'virtual')) { | |
| 53136 | + throw new Exception("Missing required property"); | |
| 53137 | + } | |
| 53138 | + if (!property_exists($obj, 'void')) { | |
| 53139 | + throw new Exception("Missing required property"); | |
| 53140 | + } | |
| 53141 | + if (!property_exists($obj, 'volatile')) { | |
| 53142 | + throw new Exception("Missing required property"); | |
| 53143 | + } | |
| 53144 | + if (!property_exists($obj, 'wchar_t')) { | |
| 53145 | + throw new Exception("Missing required property"); | |
| 53146 | + } | |
| 53147 | + if (!property_exists($obj, 'weak')) { | |
| 53148 | + throw new Exception("Missing required property"); | |
| 53149 | + } | |
| 53150 | + if (!property_exists($obj, 'where')) { | |
| 53151 | + throw new Exception("Missing required property"); | |
| 53152 | + } | |
| 53153 | + if (!property_exists($obj, 'while')) { | |
| 53154 | + throw new Exception("Missing required property"); | |
| 53155 | + } | |
| 53156 | + if (!property_exists($obj, 'willSet')) { | |
| 53157 | + throw new Exception("Missing required property"); | |
| 53158 | + } | |
| 53159 | + if (!property_exists($obj, 'with')) { | |
| 53160 | + throw new Exception("Missing required property"); | |
| 53161 | + } | |
| 53162 | + if (!property_exists($obj, 'xor')) { | |
| 53163 | + throw new Exception("Missing required property"); | |
| 53164 | + } | |
| 53165 | + if (!property_exists($obj, 'xor_eq')) { | |
| 53166 | + throw new Exception("Missing required property"); | |
| 52542 | 53167 | } |
| 52543 | - throw new Exception('never get to getWhere Obj6::where'); | |
| 52544 | - } | |
| 52545 | - | |
| 52546 | - /** | |
| 52547 | - * @return Where | |
| 52548 | - */ | |
| 52549 | - public static function sampleWhere(): Where { | |
| 52550 | - return Where::sample(); /*42:where*/ | |
| 52551 | - } | |
| 52552 | - | |
| 52553 | - /** | |
| 52554 | - * @param stdClass $value | |
| 52555 | - * @throws Exception | |
| 52556 | - * @return WhileClass | |
| 52557 | - */ | |
| 52558 | - public static function fromWhile(stdClass $value): WhileClass { | |
| 52559 | - return WhileClass::from($value); /*class*/ | |
| 52560 | - } | |
| 52561 | - | |
| 52562 | - /** | |
| 52563 | - * @throws Exception | |
| 52564 | - * @return stdClass | |
| 52565 | - */ | |
| 52566 | - public function toWhile(): stdClass { | |
| 52567 | - if (Obj6::validateWhile($this->while)) { | |
| 52568 | - return $this->while->to(); /*class*/ | |
| 53168 | + if (!property_exists($obj, 'YES')) { | |
| 53169 | + throw new Exception("Missing required property"); | |
| 52569 | 53170 | } |
| 52570 | - throw new Exception('never get to this Obj6::while'); | |
| 53171 | + if (!property_exists($obj, 'yield')) { | |
| 53172 | + throw new Exception("Missing required property"); | |
| 53173 | + } | |
| 53174 | + return new Obj6( | |
| 53175 | + Obj6::fromDummy($obj->{'dummy'}) | |
| 53176 | + ,Obj6::fromUnsafe($obj->{'unsafe'}) | |
| 53177 | + ,Obj6::fromUnsigned($obj->{'unsigned'}) | |
| 53178 | + ,Obj6::fromUshort($obj->{'ushort'}) | |
| 53179 | + ,Obj6::fromUsing($obj->{'using'}) | |
| 53180 | + ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'}) | |
| 53181 | + ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 53182 | + ,Obj6::fromUUID($obj->{'UUID'}) | |
| 53183 | + ,Obj6::fromVar($obj->{'var'}) | |
| 53184 | + ,Obj6::fromVirtual($obj->{'virtual'}) | |
| 53185 | + ,Obj6::fromVoid($obj->{'void'}) | |
| 53186 | + ,Obj6::fromVolatile($obj->{'volatile'}) | |
| 53187 | + ,Obj6::fromWcharT($obj->{'wchar_t'}) | |
| 53188 | + ,Obj6::fromWeak($obj->{'weak'}) | |
| 53189 | + ,Obj6::fromWhere($obj->{'where'}) | |
| 53190 | + ,Obj6::fromWhile($obj->{'while'}) | |
| 53191 | + ,Obj6::fromWillSet($obj->{'willSet'}) | |
| 53192 | + ,Obj6::fromWith($obj->{'with'}) | |
| 53193 | + ,Obj6::fromXor($obj->{'xor'}) | |
| 53194 | + ,Obj6::fromXorEq($obj->{'xor_eq'}) | |
| 53195 | + ,Obj6::fromYes($obj->{'YES'}) | |
| 53196 | + ,Obj6::fromYield($obj->{'yield'}) | |
| 53197 | + ); | |
| 52571 | 53198 | } |
| 52572 | 53199 | |
| 52573 | 53200 | /** |
| 52574 | - * @param WhileClass | |
| 52575 | - * @return bool | |
| 52576 | - * @throws Exception | |
| 53201 | + * @return Obj6 | |
| 52577 | 53202 | */ |
| 52578 | - public static function validateWhile(WhileClass $value): bool { | |
| 52579 | - $value->validate(); | |
| 52580 | - return true; | |
| 53203 | + public static function sample(): Obj6 { | |
| 53204 | + return new Obj6( | |
| 53205 | + Obj6::sampleDummy() | |
| 53206 | + ,Obj6::sampleUnsafe() | |
| 53207 | + ,Obj6::sampleUnsigned() | |
| 53208 | + ,Obj6::sampleUshort() | |
| 53209 | + ,Obj6::sampleUsing() | |
| 53210 | + ,Obj6::sampleUtf8JSONReader() | |
| 53211 | + ,Obj6::sampleUtf8JSONWriter() | |
| 53212 | + ,Obj6::sampleUUID() | |
| 53213 | + ,Obj6::sampleVar() | |
| 53214 | + ,Obj6::sampleVirtual() | |
| 53215 | + ,Obj6::sampleVoid() | |
| 53216 | + ,Obj6::sampleVolatile() | |
| 53217 | + ,Obj6::sampleWcharT() | |
| 53218 | + ,Obj6::sampleWeak() | |
| 53219 | + ,Obj6::sampleWhere() | |
| 53220 | + ,Obj6::sampleWhile() | |
| 53221 | + ,Obj6::sampleWillSet() | |
| 53222 | + ,Obj6::sampleWith() | |
| 53223 | + ,Obj6::sampleXor() | |
| 53224 | + ,Obj6::sampleXorEq() | |
| 53225 | + ,Obj6::sampleYes() | |
| 53226 | + ,Obj6::sampleYield() | |
| 53227 | + ); | |
| 52581 | 53228 | } |
| 53229 | +} | |
| 52582 | 53230 | |
| 52583 | - /** | |
| 52584 | - * @throws Exception | |
| 52585 | - * @return WhileClass | |
| 52586 | - */ | |
| 52587 | - public function getWhile(): WhileClass { | |
| 52588 | - if (Obj6::validateWhile($this->while)) { | |
| 52589 | - return $this->while; | |
| 52590 | - } | |
| 52591 | - throw new Exception('never get to getWhile Obj6::while'); | |
| 52592 | - } | |
| 53231 | +// This is an autogenerated file:Unsafe | |
| 53232 | + | |
| 53233 | +class Unsafe { | |
| 53234 | + private int $unsafe; // json:unsafe Required | |
| 52593 | 53235 | |
| 52594 | 53236 | /** |
| 52595 | - * @return WhileClass | |
| 53237 | + * @param int $unsafe | |
| 52596 | 53238 | */ |
| 52597 | - public static function sampleWhile(): WhileClass { | |
| 52598 | - return WhileClass::sample(); /*43:while*/ | |
| 53239 | + public function __construct(int $unsafe) { | |
| 53240 | + $this->unsafe = $unsafe; | |
| 52599 | 53241 | } |
| 52600 | 53242 | |
| 52601 | 53243 | /** |
| 52602 | - * @param stdClass $value | |
| 53244 | + * @param int $value | |
| 52603 | 53245 | * @throws Exception |
| 52604 | - * @return WillSet | |
| 53246 | + * @return int | |
| 52605 | 53247 | */ |
| 52606 | - public static function fromWillSet(stdClass $value): WillSet { | |
| 52607 | - return WillSet::from($value); /*class*/ | |
| 53248 | + public static function fromUnsafe(int $value): int { | |
| 53249 | + return $value; /*int*/ | |
| 52608 | 53250 | } |
| 52609 | 53251 | |
| 52610 | 53252 | /** |
| 52611 | 53253 | * @throws Exception |
| 52612 | - * @return stdClass | |
| 53254 | + * @return int | |
| 52613 | 53255 | */ |
| 52614 | - public function toWillSet(): stdClass { | |
| 52615 | - if (Obj6::validateWillSet($this->willSet)) { | |
| 52616 | - return $this->willSet->to(); /*class*/ | |
| 53256 | + public function toUnsafe(): int { | |
| 53257 | + if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 53258 | + return $this->unsafe; /*int*/ | |
| 52617 | 53259 | } |
| 52618 | - throw new Exception('never get to this Obj6::willSet'); | |
| 53260 | + throw new Exception('never get to this Unsafe::unsafe'); | |
| 52619 | 53261 | } |
| 52620 | 53262 | |
| 52621 | 53263 | /** |
| 52622 | - * @param WillSet | |
| 53264 | + * @param int | |
| 52623 | 53265 | * @return bool |
| 52624 | 53266 | * @throws Exception |
| 52625 | 53267 | */ |
| 52626 | - public static function validateWillSet(WillSet $value): bool { | |
| 52627 | - $value->validate(); | |
| 53268 | + public static function validateUnsafe(int $value): bool { | |
| 52628 | 53269 | return true; |
| 52629 | 53270 | } |
| 52630 | 53271 | |
| 52631 | 53272 | /** |
| 52632 | 53273 | * @throws Exception |
| 52633 | - * @return WillSet | |
| 53274 | + * @return int | |
| 52634 | 53275 | */ |
| 52635 | - public function getWillSet(): WillSet { | |
| 52636 | - if (Obj6::validateWillSet($this->willSet)) { | |
| 52637 | - return $this->willSet; | |
| 53276 | + public function getUnsafe(): int { | |
| 53277 | + if (Unsafe::validateUnsafe($this->unsafe)) { | |
| 53278 | + return $this->unsafe; | |
| 52638 | 53279 | } |
| 52639 | - throw new Exception('never get to getWillSet Obj6::willSet'); | |
| 53280 | + throw new Exception('never get to getUnsafe Unsafe::unsafe'); | |
| 52640 | 53281 | } |
| 52641 | 53282 | |
| 52642 | 53283 | /** |
| 52643 | - * @return WillSet | |
| 53284 | + * @return int | |
| 52644 | 53285 | */ |
| 52645 | - public static function sampleWillSet(): WillSet { | |
| 52646 | - return WillSet::sample(); /*44:willSet*/ | |
| 53286 | + public static function sampleUnsafe(): int { | |
| 53287 | + return 31; /*31:unsafe*/ | |
| 52647 | 53288 | } |
| 52648 | 53289 | |
| 52649 | 53290 | /** |
| 52650 | - * @param stdClass $value | |
| 52651 | 53291 | * @throws Exception |
| 52652 | - * @return With | |
| 53292 | + * @return bool | |
| 52653 | 53293 | */ |
| 52654 | - public static function fromWith(stdClass $value): With { | |
| 52655 | - return With::from($value); /*class*/ | |
| 53294 | + public function validate(): bool { | |
| 53295 | + return Unsafe::validateUnsafe($this->unsafe); | |
| 52656 | 53296 | } |
| 52657 | 53297 | |
| 52658 | 53298 | /** |
| 52659 | - * @throws Exception | |
| 52660 | 53299 | * @return stdClass |
| 52661 | - */ | |
| 52662 | - public function toWith(): stdClass { | |
| 52663 | - if (Obj6::validateWith($this->with)) { | |
| 52664 | - return $this->with->to(); /*class*/ | |
| 52665 | - } | |
| 52666 | - throw new Exception('never get to this Obj6::with'); | |
| 52667 | - } | |
| 52668 | - | |
| 52669 | - /** | |
| 52670 | - * @param With | |
| 52671 | - * @return bool | |
| 52672 | 53300 | * @throws Exception |
| 52673 | 53301 | */ |
| 52674 | - public static function validateWith(With $value): bool { | |
| 52675 | - $value->validate(); | |
| 52676 | - return true; | |
| 53302 | + public function to(): stdClass { | |
| 53303 | + $out = new stdClass(); | |
| 53304 | + $out->{'unsafe'} = $this->toUnsafe(); | |
| 53305 | + return $out; | |
| 52677 | 53306 | } |
| 52678 | 53307 | |
| 52679 | 53308 | /** |
| 53309 | + * @param stdClass $obj | |
| 53310 | + * @return Unsafe | |
| 52680 | 53311 | * @throws Exception |
| 52681 | - * @return With | |
| 52682 | 53312 | */ |
| 52683 | - public function getWith(): With { | |
| 52684 | - if (Obj6::validateWith($this->with)) { | |
| 52685 | - return $this->with; | |
| 53313 | + public static function from(stdClass $obj): Unsafe { | |
| 53314 | + if (!property_exists($obj, 'unsafe')) { | |
| 53315 | + throw new Exception("Missing required property"); | |
| 52686 | 53316 | } |
| 52687 | - throw new Exception('never get to getWith Obj6::with'); | |
| 52688 | - } | |
| 52689 | - | |
| 52690 | - /** | |
| 52691 | - * @return With | |
| 52692 | - */ | |
| 52693 | - public static function sampleWith(): With { | |
| 52694 | - return With::sample(); /*45:with*/ | |
| 52695 | - } | |
| 52696 | - | |
| 52697 | - /** | |
| 52698 | - * @param stdClass $value | |
| 52699 | - * @throws Exception | |
| 52700 | - * @return XorClass | |
| 52701 | - */ | |
| 52702 | - public static function fromXor(stdClass $value): XorClass { | |
| 52703 | - return XorClass::from($value); /*class*/ | |
| 53317 | + return new Unsafe( | |
| 53318 | + Unsafe::fromUnsafe($obj->{'unsafe'}) | |
| 53319 | + ); | |
| 52704 | 53320 | } |
| 52705 | 53321 | |
| 52706 | 53322 | /** |
| 52707 | - * @throws Exception | |
| 52708 | - * @return stdClass | |
| 53323 | + * @return Unsafe | |
| 52709 | 53324 | */ |
| 52710 | - public function toXor(): stdClass { | |
| 52711 | - if (Obj6::validateXor($this->xor)) { | |
| 52712 | - return $this->xor->to(); /*class*/ | |
| 52713 | - } | |
| 52714 | - throw new Exception('never get to this Obj6::xor'); | |
| 53325 | + public static function sample(): Unsafe { | |
| 53326 | + return new Unsafe( | |
| 53327 | + Unsafe::sampleUnsafe() | |
| 53328 | + ); | |
| 52715 | 53329 | } |
| 53330 | +} | |
| 52716 | 53331 | |
| 52717 | - /** | |
| 52718 | - * @param XorClass | |
| 52719 | - * @return bool | |
| 52720 | - * @throws Exception | |
| 52721 | - */ | |
| 52722 | - public static function validateXor(XorClass $value): bool { | |
| 52723 | - $value->validate(); | |
| 52724 | - return true; | |
| 52725 | - } | |
| 53332 | +// This is an autogenerated file:Unsigned | |
| 52726 | 53333 | |
| 52727 | - /** | |
| 52728 | - * @throws Exception | |
| 52729 | - * @return XorClass | |
| 52730 | - */ | |
| 52731 | - public function getXor(): XorClass { | |
| 52732 | - if (Obj6::validateXor($this->xor)) { | |
| 52733 | - return $this->xor; | |
| 52734 | - } | |
| 52735 | - throw new Exception('never get to getXor Obj6::xor'); | |
| 52736 | - } | |
| 53334 | +class Unsigned { | |
| 53335 | + private int $unsigned; // json:unsigned Required | |
| 52737 | 53336 | |
| 52738 | 53337 | /** |
| 52739 | - * @return XorClass | |
| 53338 | + * @param int $unsigned | |
| 52740 | 53339 | */ |
| 52741 | - public static function sampleXor(): XorClass { | |
| 52742 | - return XorClass::sample(); /*46:xor*/ | |
| 53340 | + public function __construct(int $unsigned) { | |
| 53341 | + $this->unsigned = $unsigned; | |
| 52743 | 53342 | } |
| 52744 | 53343 | |
| 52745 | 53344 | /** |
| 52746 | - * @param stdClass $value | |
| 53345 | + * @param int $value | |
| 52747 | 53346 | * @throws Exception |
| 52748 | - * @return XorEq | |
| 53347 | + * @return int | |
| 52749 | 53348 | */ |
| 52750 | - public static function fromXorEq(stdClass $value): XorEq { | |
| 52751 | - return XorEq::from($value); /*class*/ | |
| 53349 | + public static function fromUnsigned(int $value): int { | |
| 53350 | + return $value; /*int*/ | |
| 52752 | 53351 | } |
| 52753 | 53352 | |
| 52754 | 53353 | /** |
| 52755 | 53354 | * @throws Exception |
| 52756 | - * @return stdClass | |
| 53355 | + * @return int | |
| 52757 | 53356 | */ |
| 52758 | - public function toXorEq(): stdClass { | |
| 52759 | - if (Obj6::validateXorEq($this->xorEq)) { | |
| 52760 | - return $this->xorEq->to(); /*class*/ | |
| 53357 | + public function toUnsigned(): int { | |
| 53358 | + if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 53359 | + return $this->unsigned; /*int*/ | |
| 52761 | 53360 | } |
| 52762 | - throw new Exception('never get to this Obj6::xorEq'); | |
| 53361 | + throw new Exception('never get to this Unsigned::unsigned'); | |
| 52763 | 53362 | } |
| 52764 | 53363 | |
| 52765 | 53364 | /** |
| 52766 | - * @param XorEq | |
| 53365 | + * @param int | |
| 52767 | 53366 | * @return bool |
| 52768 | 53367 | * @throws Exception |
| 52769 | 53368 | */ |
| 52770 | - public static function validateXorEq(XorEq $value): bool { | |
| 52771 | - $value->validate(); | |
| 53369 | + public static function validateUnsigned(int $value): bool { | |
| 52772 | 53370 | return true; |
| 52773 | 53371 | } |
| 52774 | 53372 | |
| 52775 | 53373 | /** |
| 52776 | 53374 | * @throws Exception |
| 52777 | - * @return XorEq | |
| 53375 | + * @return int | |
| 52778 | 53376 | */ |
| 52779 | - public function getXorEq(): XorEq { | |
| 52780 | - if (Obj6::validateXorEq($this->xorEq)) { | |
| 52781 | - return $this->xorEq; | |
| 53377 | + public function getUnsigned(): int { | |
| 53378 | + if (Unsigned::validateUnsigned($this->unsigned)) { | |
| 53379 | + return $this->unsigned; | |
| 52782 | 53380 | } |
| 52783 | - throw new Exception('never get to getXorEq Obj6::xorEq'); | |
| 53381 | + throw new Exception('never get to getUnsigned Unsigned::unsigned'); | |
| 52784 | 53382 | } |
| 52785 | 53383 | |
| 52786 | 53384 | /** |
| 52787 | - * @return XorEq | |
| 53385 | + * @return int | |
| 52788 | 53386 | */ |
| 52789 | - public static function sampleXorEq(): XorEq { | |
| 52790 | - return XorEq::sample(); /*47:xorEq*/ | |
| 53387 | + public static function sampleUnsigned(): int { | |
| 53388 | + return 31; /*31:unsigned*/ | |
| 52791 | 53389 | } |
| 52792 | 53390 | |
| 52793 | 53391 | /** |
| 52794 | - * @param stdClass $value | |
| 52795 | 53392 | * @throws Exception |
| 52796 | - * @return Yes | |
| 53393 | + * @return bool | |
| 52797 | 53394 | */ |
| 52798 | - public static function fromYes(stdClass $value): Yes { | |
| 52799 | - return Yes::from($value); /*class*/ | |
| 53395 | + public function validate(): bool { | |
| 53396 | + return Unsigned::validateUnsigned($this->unsigned); | |
| 52800 | 53397 | } |
| 52801 | 53398 | |
| 52802 | 53399 | /** |
| 52803 | - * @throws Exception | |
| 52804 | 53400 | * @return stdClass |
| 53401 | + * @throws Exception | |
| 52805 | 53402 | */ |
| 52806 | - public function toYes(): stdClass { | |
| 52807 | - if (Obj6::validateYes($this->yes)) { | |
| 52808 | - return $this->yes->to(); /*class*/ | |
| 52809 | - } | |
| 52810 | - throw new Exception('never get to this Obj6::yes'); | |
| 53403 | + public function to(): stdClass { | |
| 53404 | + $out = new stdClass(); | |
| 53405 | + $out->{'unsigned'} = $this->toUnsigned(); | |
| 53406 | + return $out; | |
| 52811 | 53407 | } |
| 52812 | 53408 | |
| 52813 | 53409 | /** |
| 52814 | - * @param Yes | |
| 52815 | - * @return bool | |
| 53410 | + * @param stdClass $obj | |
| 53411 | + * @return Unsigned | |
| 52816 | 53412 | * @throws Exception |
| 52817 | 53413 | */ |
| 52818 | - public static function validateYes(Yes $value): bool { | |
| 52819 | - $value->validate(); | |
| 52820 | - return true; | |
| 53414 | + public static function from(stdClass $obj): Unsigned { | |
| 53415 | + if (!property_exists($obj, 'unsigned')) { | |
| 53416 | + throw new Exception("Missing required property"); | |
| 53417 | + } | |
| 53418 | + return new Unsigned( | |
| 53419 | + Unsigned::fromUnsigned($obj->{'unsigned'}) | |
| 53420 | + ); | |
| 52821 | 53421 | } |
| 52822 | 53422 | |
| 52823 | 53423 | /** |
| 52824 | - * @throws Exception | |
| 52825 | - * @return Yes | |
| 53424 | + * @return Unsigned | |
| 52826 | 53425 | */ |
| 52827 | - public function getYes(): Yes { | |
| 52828 | - if (Obj6::validateYes($this->yes)) { | |
| 52829 | - return $this->yes; | |
| 52830 | - } | |
| 52831 | - throw new Exception('never get to getYes Obj6::yes'); | |
| 53426 | + public static function sample(): Unsigned { | |
| 53427 | + return new Unsigned( | |
| 53428 | + Unsigned::sampleUnsigned() | |
| 53429 | + ); | |
| 52832 | 53430 | } |
| 53431 | +} | |
| 53432 | + | |
| 53433 | +// This is an autogenerated file:Ushort | |
| 53434 | + | |
| 53435 | +class Ushort { | |
| 53436 | + private int $ushort; // json:ushort Required | |
| 52833 | 53437 | |
| 52834 | 53438 | /** |
| 52835 | - * @return Yes | |
| 53439 | + * @param int $ushort | |
| 52836 | 53440 | */ |
| 52837 | - public static function sampleYes(): Yes { | |
| 52838 | - return Yes::sample(); /*48:yes*/ | |
| 53441 | + public function __construct(int $ushort) { | |
| 53442 | + $this->ushort = $ushort; | |
| 52839 | 53443 | } |
| 52840 | 53444 | |
| 52841 | 53445 | /** |
| 52842 | - * @param stdClass $value | |
| 53446 | + * @param int $value | |
| 52843 | 53447 | * @throws Exception |
| 52844 | - * @return YieldClass | |
| 53448 | + * @return int | |
| 52845 | 53449 | */ |
| 52846 | - public static function fromYield(stdClass $value): YieldClass { | |
| 52847 | - return YieldClass::from($value); /*class*/ | |
| 53450 | + public static function fromUshort(int $value): int { | |
| 53451 | + return $value; /*int*/ | |
| 52848 | 53452 | } |
| 52849 | 53453 | |
| 52850 | 53454 | /** |
| 52851 | 53455 | * @throws Exception |
| 52852 | - * @return stdClass | |
| 53456 | + * @return int | |
| 52853 | 53457 | */ |
| 52854 | - public function toYield(): stdClass { | |
| 52855 | - if (Obj6::validateYield($this->yield)) { | |
| 52856 | - return $this->yield->to(); /*class*/ | |
| 53458 | + public function toUshort(): int { | |
| 53459 | + if (Ushort::validateUshort($this->ushort)) { | |
| 53460 | + return $this->ushort; /*int*/ | |
| 52857 | 53461 | } |
| 52858 | - throw new Exception('never get to this Obj6::yield'); | |
| 53462 | + throw new Exception('never get to this Ushort::ushort'); | |
| 52859 | 53463 | } |
| 52860 | 53464 | |
| 52861 | 53465 | /** |
| 52862 | - * @param YieldClass | |
| 53466 | + * @param int | |
| 52863 | 53467 | * @return bool |
| 52864 | 53468 | * @throws Exception |
| 52865 | 53469 | */ |
| 52866 | - public static function validateYield(YieldClass $value): bool { | |
| 52867 | - $value->validate(); | |
| 53470 | + public static function validateUshort(int $value): bool { | |
| 52868 | 53471 | return true; |
| 52869 | 53472 | } |
| 52870 | 53473 | |
| 52871 | 53474 | /** |
| 52872 | 53475 | * @throws Exception |
| 52873 | - * @return YieldClass | |
| 53476 | + * @return int | |
| 52874 | 53477 | */ |
| 52875 | - public function getYield(): YieldClass { | |
| 52876 | - if (Obj6::validateYield($this->yield)) { | |
| 52877 | - return $this->yield; | |
| 53478 | + public function getUshort(): int { | |
| 53479 | + if (Ushort::validateUshort($this->ushort)) { | |
| 53480 | + return $this->ushort; | |
| 52878 | 53481 | } |
| 52879 | - throw new Exception('never get to getYield Obj6::yield'); | |
| 53482 | + throw new Exception('never get to getUshort Ushort::ushort'); | |
| 52880 | 53483 | } |
| 52881 | 53484 | |
| 52882 | 53485 | /** |
| 52883 | - * @return YieldClass | |
| 53486 | + * @return int | |
| 52884 | 53487 | */ |
| 52885 | - public static function sampleYield(): YieldClass { | |
| 52886 | - return YieldClass::sample(); /*49:yield*/ | |
| 53488 | + public static function sampleUshort(): int { | |
| 53489 | + return 31; /*31:ushort*/ | |
| 52887 | 53490 | } |
| 52888 | 53491 | |
| 52889 | 53492 | /** |
| @@ -52891,25 +53494,7 @@ class Obj6 { | ||
| 52891 | 53494 | * @return bool |
| 52892 | 53495 | */ |
| 52893 | 53496 | public function validate(): bool { |
| 52894 | - return Obj6::validateDummy($this->dummy) | |
| 52895 | - || Obj6::validateUsing($this->using) | |
| 52896 | - || Obj6::validateUtf8JSONReader($this->utf8JSONReader) | |
| 52897 | - || Obj6::validateUtf8JSONWriter($this->utf8JSONWriter) | |
| 52898 | - || Obj6::validateUUID($this->uuid) | |
| 52899 | - || Obj6::validateVar($this->var) | |
| 52900 | - || Obj6::validateVirtual($this->virtual) | |
| 52901 | - || Obj6::validateVoid($this->void) | |
| 52902 | - || Obj6::validateVolatile($this->volatile) | |
| 52903 | - || Obj6::validateWcharT($this->wcharT) | |
| 52904 | - || Obj6::validateWeak($this->weak) | |
| 52905 | - || Obj6::validateWhere($this->where) | |
| 52906 | - || Obj6::validateWhile($this->while) | |
| 52907 | - || Obj6::validateWillSet($this->willSet) | |
| 52908 | - || Obj6::validateWith($this->with) | |
| 52909 | - || Obj6::validateXor($this->xor) | |
| 52910 | - || Obj6::validateXorEq($this->xorEq) | |
| 52911 | - || Obj6::validateYes($this->yes) | |
| 52912 | - || Obj6::validateYield($this->yield); | |
| 53497 | + return Ushort::validateUshort($this->ushort); | |
| 52913 | 53498 | } |
| 52914 | 53499 | |
| 52915 | 53500 | /** |
| @@ -52918,138 +53503,30 @@ class Obj6 { | ||
| 52918 | 53503 | */ |
| 52919 | 53504 | public function to(): stdClass { |
| 52920 | 53505 | $out = new stdClass(); |
| 52921 | - $out->{'dummy'} = $this->toDummy(); | |
| 52922 | - $out->{'using'} = $this->toUsing(); | |
| 52923 | - $out->{'Utf8JsonReader'} = $this->toUtf8JSONReader(); | |
| 52924 | - $out->{'Utf8JsonWriter'} = $this->toUtf8JSONWriter(); | |
| 52925 | - $out->{'UUID'} = $this->toUUID(); | |
| 52926 | - $out->{'var'} = $this->toVar(); | |
| 52927 | - $out->{'virtual'} = $this->toVirtual(); | |
| 52928 | - $out->{'void'} = $this->toVoid(); | |
| 52929 | - $out->{'volatile'} = $this->toVolatile(); | |
| 52930 | - $out->{'wchar_t'} = $this->toWcharT(); | |
| 52931 | - $out->{'weak'} = $this->toWeak(); | |
| 52932 | - $out->{'where'} = $this->toWhere(); | |
| 52933 | - $out->{'while'} = $this->toWhile(); | |
| 52934 | - $out->{'willSet'} = $this->toWillSet(); | |
| 52935 | - $out->{'with'} = $this->toWith(); | |
| 52936 | - $out->{'xor'} = $this->toXor(); | |
| 52937 | - $out->{'xor_eq'} = $this->toXorEq(); | |
| 52938 | - $out->{'YES'} = $this->toYes(); | |
| 52939 | - $out->{'yield'} = $this->toYield(); | |
| 53506 | + $out->{'ushort'} = $this->toUshort(); | |
| 52940 | 53507 | return $out; |
| 52941 | 53508 | } |
| 52942 | 53509 | |
| 52943 | 53510 | /** |
| 52944 | 53511 | * @param stdClass $obj |
| 52945 | - * @return Obj6 | |
| 53512 | + * @return Ushort | |
| 52946 | 53513 | * @throws Exception |
| 52947 | 53514 | */ |
| 52948 | - public static function from(stdClass $obj): Obj6 { | |
| 52949 | - if (!property_exists($obj, 'dummy')) { | |
| 52950 | - throw new Exception("Missing required property"); | |
| 52951 | - } | |
| 52952 | - if (!property_exists($obj, 'using')) { | |
| 52953 | - throw new Exception("Missing required property"); | |
| 52954 | - } | |
| 52955 | - if (!property_exists($obj, 'Utf8JsonReader')) { | |
| 52956 | - throw new Exception("Missing required property"); | |
| 52957 | - } | |
| 52958 | - if (!property_exists($obj, 'Utf8JsonWriter')) { | |
| 52959 | - throw new Exception("Missing required property"); | |
| 52960 | - } | |
| 52961 | - if (!property_exists($obj, 'UUID')) { | |
| 52962 | - throw new Exception("Missing required property"); | |
| 52963 | - } | |
| 52964 | - if (!property_exists($obj, 'var')) { | |
| 52965 | - throw new Exception("Missing required property"); | |
| 52966 | - } | |
| 52967 | - if (!property_exists($obj, 'virtual')) { | |
| 52968 | - throw new Exception("Missing required property"); | |
| 52969 | - } | |
| 52970 | - if (!property_exists($obj, 'void')) { | |
| 52971 | - throw new Exception("Missing required property"); | |
| 52972 | - } | |
| 52973 | - if (!property_exists($obj, 'volatile')) { | |
| 52974 | - throw new Exception("Missing required property"); | |
| 52975 | - } | |
| 52976 | - if (!property_exists($obj, 'wchar_t')) { | |
| 52977 | - throw new Exception("Missing required property"); | |
| 52978 | - } | |
| 52979 | - if (!property_exists($obj, 'weak')) { | |
| 52980 | - throw new Exception("Missing required property"); | |
| 52981 | - } | |
| 52982 | - if (!property_exists($obj, 'where')) { | |
| 52983 | - throw new Exception("Missing required property"); | |
| 52984 | - } | |
| 52985 | - if (!property_exists($obj, 'while')) { | |
| 52986 | - throw new Exception("Missing required property"); | |
| 52987 | - } | |
| 52988 | - if (!property_exists($obj, 'willSet')) { | |
| 52989 | - throw new Exception("Missing required property"); | |
| 52990 | - } | |
| 52991 | - if (!property_exists($obj, 'with')) { | |
| 52992 | - throw new Exception("Missing required property"); | |
| 52993 | - } | |
| 52994 | - if (!property_exists($obj, 'xor')) { | |
| 52995 | - throw new Exception("Missing required property"); | |
| 52996 | - } | |
| 52997 | - if (!property_exists($obj, 'xor_eq')) { | |
| 52998 | - throw new Exception("Missing required property"); | |
| 52999 | - } | |
| 53000 | - if (!property_exists($obj, 'YES')) { | |
| 53001 | - throw new Exception("Missing required property"); | |
| 53002 | - } | |
| 53003 | - if (!property_exists($obj, 'yield')) { | |
| 53515 | + public static function from(stdClass $obj): Ushort { | |
| 53516 | + if (!property_exists($obj, 'ushort')) { | |
| 53004 | 53517 | throw new Exception("Missing required property"); |
| 53005 | 53518 | } |
| 53006 | - return new Obj6( | |
| 53007 | - Obj6::fromDummy($obj->{'dummy'}) | |
| 53008 | - ,Obj6::fromUsing($obj->{'using'}) | |
| 53009 | - ,Obj6::fromUtf8JSONReader($obj->{'Utf8JsonReader'}) | |
| 53010 | - ,Obj6::fromUtf8JSONWriter($obj->{'Utf8JsonWriter'}) | |
| 53011 | - ,Obj6::fromUUID($obj->{'UUID'}) | |
| 53012 | - ,Obj6::fromVar($obj->{'var'}) | |
| 53013 | - ,Obj6::fromVirtual($obj->{'virtual'}) | |
| 53014 | - ,Obj6::fromVoid($obj->{'void'}) | |
| 53015 | - ,Obj6::fromVolatile($obj->{'volatile'}) | |
| 53016 | - ,Obj6::fromWcharT($obj->{'wchar_t'}) | |
| 53017 | - ,Obj6::fromWeak($obj->{'weak'}) | |
| 53018 | - ,Obj6::fromWhere($obj->{'where'}) | |
| 53019 | - ,Obj6::fromWhile($obj->{'while'}) | |
| 53020 | - ,Obj6::fromWillSet($obj->{'willSet'}) | |
| 53021 | - ,Obj6::fromWith($obj->{'with'}) | |
| 53022 | - ,Obj6::fromXor($obj->{'xor'}) | |
| 53023 | - ,Obj6::fromXorEq($obj->{'xor_eq'}) | |
| 53024 | - ,Obj6::fromYes($obj->{'YES'}) | |
| 53025 | - ,Obj6::fromYield($obj->{'yield'}) | |
| 53519 | + return new Ushort( | |
| 53520 | + Ushort::fromUshort($obj->{'ushort'}) | |
| 53026 | 53521 | ); |
| 53027 | 53522 | } |
| 53028 | 53523 | |
| 53029 | 53524 | /** |
| 53030 | - * @return Obj6 | |
| 53525 | + * @return Ushort | |
| 53031 | 53526 | */ |
| 53032 | - public static function sample(): Obj6 { | |
| 53033 | - return new Obj6( | |
| 53034 | - Obj6::sampleDummy() | |
| 53035 | - ,Obj6::sampleUsing() | |
| 53036 | - ,Obj6::sampleUtf8JSONReader() | |
| 53037 | - ,Obj6::sampleUtf8JSONWriter() | |
| 53038 | - ,Obj6::sampleUUID() | |
| 53039 | - ,Obj6::sampleVar() | |
| 53040 | - ,Obj6::sampleVirtual() | |
| 53041 | - ,Obj6::sampleVoid() | |
| 53042 | - ,Obj6::sampleVolatile() | |
| 53043 | - ,Obj6::sampleWcharT() | |
| 53044 | - ,Obj6::sampleWeak() | |
| 53045 | - ,Obj6::sampleWhere() | |
| 53046 | - ,Obj6::sampleWhile() | |
| 53047 | - ,Obj6::sampleWillSet() | |
| 53048 | - ,Obj6::sampleWith() | |
| 53049 | - ,Obj6::sampleXor() | |
| 53050 | - ,Obj6::sampleXorEq() | |
| 53051 | - ,Obj6::sampleYes() | |
| 53052 | - ,Obj6::sampleYield() | |
| 53527 | + public static function sample(): Ushort { | |
| 53528 | + return new Ushort( | |
| 53529 | + Ushort::sampleUshort() | |
| 53053 | 53530 | ); |
| 53054 | 53531 | } |
| 53055 | 53532 | } |
Mpikedefault / TopLevel.pmod+250 −175
| @@ -3351,6 +3351,7 @@ class Obj3 { | ||
| 3351 | 3351 | Left left; // json: "left" |
| 3352 | 3352 | Let let; // json: "let" |
| 3353 | 3353 | List list; // json: "list" |
| 3354 | + LocalDate local_date; // json: "LocalDate" | |
| 3354 | 3355 | Locale locale; // json: "Locale" |
| 3355 | 3356 | Lock lock; // json: "lock" |
| 3356 | 3357 | Long long; // json: "long" |
| @@ -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" |
| @@ -3419,6 +3419,7 @@ class Obj3 { | ||
| 3419 | 3419 | "left" : left, |
| 3420 | 3420 | "let" : let, |
| 3421 | 3421 | "list" : list, |
| 3422 | + "LocalDate" : local_date, | |
| 3422 | 3423 | "Locale" : locale, |
| 3423 | 3424 | "lock" : lock, |
| 3424 | 3425 | "long" : long, |
| @@ -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, |
| @@ -3537,6 +3537,8 @@ Obj3 Obj3_from_JSON(mixed json) { | ||
| 3537 | 3537 | retval.let = json["let"]; |
| 3538 | 3538 | if (!mappingp(json["list"])) error("Expected object"); |
| 3539 | 3539 | retval.list = json["list"]; |
| 3540 | + if (!mappingp(json["LocalDate"])) error("Expected object"); | |
| 3541 | + retval.local_date = json["LocalDate"]; | |
| 3540 | 3542 | if (!mappingp(json["Locale"])) error("Expected object"); |
| 3541 | 3543 | retval.locale = json["Locale"]; |
| 3542 | 3544 | if (!mappingp(json["lock"])) 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"); |
| @@ -4485,6 +4485,27 @@ List List_from_JSON(mixed json) { | ||
| 4485 | 4485 | return retval; |
| 4486 | 4486 | } |
| 4487 | 4487 | |
| 4488 | +class LocalDate { | |
| 4489 | + int local_date; // json: "LocalDate" | |
| 4490 | + | |
| 4491 | + string encode_json() { | |
| 4492 | + mapping(string:mixed) json = ([ | |
| 4493 | + "LocalDate" : local_date, | |
| 4494 | + ]); | |
| 4495 | + | |
| 4496 | + return Standards.JSON.encode(json); | |
| 4497 | + } | |
| 4498 | +} | |
| 4499 | + | |
| 4500 | +LocalDate LocalDate_from_JSON(mixed json) { | |
| 4501 | + LocalDate retval = LocalDate(); | |
| 4502 | + | |
| 4503 | + if (!intp(json["LocalDate"])) error("Expected integer"); | |
| 4504 | + retval.local_date = json["LocalDate"]; | |
| 4505 | + | |
| 4506 | + return retval; | |
| 4507 | +} | |
| 4508 | + | |
| 4488 | 4509 | class Locale { |
| 4489 | 4510 | int locale; // json: "Locale" |
| 4490 | 4511 | |
| @@ -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" |
| @@ -4952,6 +4953,8 @@ class Obj4 { | ||
| 4952 | 4953 | Return obj4_return; // json: "return" |
| 4953 | 4954 | ObjectMapper object_mapper; // json: "ObjectMapper" |
| 4954 | 4955 | Of of; // json: "of" |
| 4956 | + OffsetDateTime offset_date_time; // json: "OffsetDateTime" | |
| 4957 | + OffsetTime offset_time; // json: "OffsetTime" | |
| 4955 | 4958 | Oneway oneway; // json: "oneway" |
| 4956 | 4959 | Open open; // json: "open" |
| 4957 | 4960 | Operator operator; // json: "operator" |
| @@ -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, |
| @@ -5020,6 +5021,8 @@ class Obj4 { | ||
| 5020 | 5021 | "return" : obj4_return, |
| 5021 | 5022 | "ObjectMapper" : object_mapper, |
| 5022 | 5023 | "of" : of, |
| 5024 | + "OffsetDateTime" : offset_date_time, | |
| 5025 | + "OffsetTime" : offset_time, | |
| 5023 | 5026 | "oneway" : oneway, |
| 5024 | 5027 | "open" : open, |
| 5025 | 5028 | "operator" : operator, |
| @@ -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"); |
| @@ -5119,6 +5121,10 @@ Obj4 Obj4_from_JSON(mixed json) { | ||
| 5119 | 5121 | retval.object_mapper = json["ObjectMapper"]; |
| 5120 | 5122 | if (!mappingp(json["of"])) error("Expected object"); |
| 5121 | 5123 | retval.of = json["of"]; |
| 5124 | + if (!mappingp(json["OffsetDateTime"])) error("Expected object"); | |
| 5125 | + retval.offset_date_time = json["OffsetDateTime"]; | |
| 5126 | + if (!mappingp(json["OffsetTime"])) error("Expected object"); | |
| 5127 | + retval.offset_time = json["OffsetTime"]; | |
| 5122 | 5128 | if (!mappingp(json["oneway"])) error("Expected object"); |
| 5123 | 5129 | retval.oneway = json["oneway"]; |
| 5124 | 5130 | if (!mappingp(json["open"])) 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 | |
| @@ -5707,6 +5728,48 @@ Of Of_from_JSON(mixed json) { | ||
| 5707 | 5728 | return retval; |
| 5708 | 5729 | } |
| 5709 | 5730 | |
| 5731 | +class OffsetDateTime { | |
| 5732 | + int offset_date_time; // json: "OffsetDateTime" | |
| 5733 | + | |
| 5734 | + string encode_json() { | |
| 5735 | + mapping(string:mixed) json = ([ | |
| 5736 | + "OffsetDateTime" : offset_date_time, | |
| 5737 | + ]); | |
| 5738 | + | |
| 5739 | + return Standards.JSON.encode(json); | |
| 5740 | + } | |
| 5741 | +} | |
| 5742 | + | |
| 5743 | +OffsetDateTime OffsetDateTime_from_JSON(mixed json) { | |
| 5744 | + OffsetDateTime retval = OffsetDateTime(); | |
| 5745 | + | |
| 5746 | + if (!intp(json["OffsetDateTime"])) error("Expected integer"); | |
| 5747 | + retval.offset_date_time = json["OffsetDateTime"]; | |
| 5748 | + | |
| 5749 | + return retval; | |
| 5750 | +} | |
| 5751 | + | |
| 5752 | +class OffsetTime { | |
| 5753 | + int offset_time; // json: "OffsetTime" | |
| 5754 | + | |
| 5755 | + string encode_json() { | |
| 5756 | + mapping(string:mixed) json = ([ | |
| 5757 | + "OffsetTime" : offset_time, | |
| 5758 | + ]); | |
| 5759 | + | |
| 5760 | + return Standards.JSON.encode(json); | |
| 5761 | + } | |
| 5762 | +} | |
| 5763 | + | |
| 5764 | +OffsetTime OffsetTime_from_JSON(mixed json) { | |
| 5765 | + OffsetTime retval = OffsetTime(); | |
| 5766 | + | |
| 5767 | + if (!intp(json["OffsetTime"])) error("Expected integer"); | |
| 5768 | + retval.offset_time = json["OffsetTime"]; | |
| 5769 | + | |
| 5770 | + return retval; | |
| 5771 | +} | |
| 5772 | + | |
| 5710 | 5773 | class Oneway { |
| 5711 | 5774 | int oneway; // json: "oneway" |
| 5712 | 5775 | |
| @@ -6483,69 +6546,6 @@ 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 | 6550 | int dummy; // json: "dummy" |
| 6551 | 6551 | KSerializer k_serializer; // json: "KSerializer" |
| @@ -6558,6 +6558,9 @@ class Obj5 { | ||
| 6558 | 6558 | Typedef obj5_typedef; // json: "typedef" |
| 6559 | 6559 | Typeof obj5_typeof; // json: "typeof" |
| 6560 | 6560 | PrimitiveKind primitive_kind; // json: "PrimitiveKind" |
| 6561 | + Sealed sealed; // json: "sealed" | |
| 6562 | + Sel sel; // json: "SEL" | |
| 6563 | + Select select; // json: "select" | |
| 6561 | 6564 | Self self; // json: "Self" |
| 6562 | 6565 | Sendable sendable; // json: "Sendable" |
| 6563 | 6566 | SerialDescriptor serial_descriptor; // json: "SerialDescriptor" |
| @@ -6608,10 +6611,7 @@ class Obj5 { | ||
| 6608 | 6611 | Undefined undefined; // json: "undefined" |
| 6609 | 6612 | Union union; // json: "union" |
| 6610 | 6613 | Unowned unowned; // json: "unowned" |
| 6611 | - Unsafe unsafe; // json: "unsafe" | |
| 6612 | - Unsigned unsigned; // json: "unsigned" | |
| 6613 | 6614 | UseSerializers use_serializers; // json: "UseSerializers" |
| 6614 | - Ushort ushort; // json: "ushort" | |
| 6615 | 6615 | |
| 6616 | 6616 | string encode_json() { |
| 6617 | 6617 | mapping(string:mixed) json = ([ |
| @@ -6626,6 +6626,9 @@ class Obj5 { | ||
| 6626 | 6626 | "typedef" : obj5_typedef, |
| 6627 | 6627 | "typeof" : obj5_typeof, |
| 6628 | 6628 | "PrimitiveKind" : primitive_kind, |
| 6629 | + "sealed" : sealed, | |
| 6630 | + "SEL" : sel, | |
| 6631 | + "select" : select, | |
| 6629 | 6632 | "Self" : self, |
| 6630 | 6633 | "Sendable" : sendable, |
| 6631 | 6634 | "SerialDescriptor" : serial_descriptor, |
| @@ -6676,10 +6679,7 @@ class Obj5 { | ||
| 6676 | 6679 | "undefined" : undefined, |
| 6677 | 6680 | "union" : union, |
| 6678 | 6681 | "unowned" : unowned, |
| 6679 | - "unsafe" : unsafe, | |
| 6680 | - "unsigned" : unsigned, | |
| 6681 | 6682 | "UseSerializers" : use_serializers, |
| 6682 | - "ushort" : ushort, | |
| 6683 | 6683 | ]); |
| 6684 | 6684 | |
| 6685 | 6685 | return Standards.JSON.encode(json); |
| @@ -6711,6 +6711,12 @@ Obj5 Obj5_from_JSON(mixed json) { | ||
| 6711 | 6711 | retval.obj5_typeof = json["typeof"]; |
| 6712 | 6712 | if (!mappingp(json["PrimitiveKind"])) error("Expected object"); |
| 6713 | 6713 | retval.primitive_kind = json["PrimitiveKind"]; |
| 6714 | + if (!mappingp(json["sealed"])) error("Expected object"); | |
| 6715 | + retval.sealed = json["sealed"]; | |
| 6716 | + if (!mappingp(json["SEL"])) error("Expected object"); | |
| 6717 | + retval.sel = json["SEL"]; | |
| 6718 | + if (!mappingp(json["select"])) error("Expected object"); | |
| 6719 | + retval.select = json["select"]; | |
| 6714 | 6720 | if (!mappingp(json["Self"])) error("Expected object"); |
| 6715 | 6721 | retval.self = json["Self"]; |
| 6716 | 6722 | if (!mappingp(json["Sendable"])) error("Expected object"); |
| @@ -6811,14 +6817,8 @@ Obj5 Obj5_from_JSON(mixed json) { | ||
| 6811 | 6817 | retval.union = json["union"]; |
| 6812 | 6818 | if (!mappingp(json["unowned"])) error("Expected object"); |
| 6813 | 6819 | retval.unowned = json["unowned"]; |
| 6814 | - if (!mappingp(json["unsafe"])) error("Expected object"); | |
| 6815 | - retval.unsafe = json["unsafe"]; | |
| 6816 | - if (!mappingp(json["unsigned"])) error("Expected object"); | |
| 6817 | - retval.unsigned = json["unsigned"]; | |
| 6818 | 6820 | if (!mappingp(json["UseSerializers"])) error("Expected object"); |
| 6819 | 6821 | retval.use_serializers = json["UseSerializers"]; |
| 6820 | - if (!mappingp(json["ushort"])) error("Expected object"); | |
| 6821 | - retval.ushort = json["ushort"]; | |
| 6822 | 6822 | |
| 6823 | 6823 | return retval; |
| 6824 | 6824 | } |
| @@ -7033,6 +7033,69 @@ PrimitiveKind PrimitiveKind_from_JSON(mixed json) { | ||
| 7033 | 7033 | return retval; |
| 7034 | 7034 | } |
| 7035 | 7035 | |
| 7036 | +class Sealed { | |
| 7037 | + int sealed; // json: "sealed" | |
| 7038 | + | |
| 7039 | + string encode_json() { | |
| 7040 | + mapping(string:mixed) json = ([ | |
| 7041 | + "sealed" : sealed, | |
| 7042 | + ]); | |
| 7043 | + | |
| 7044 | + return Standards.JSON.encode(json); | |
| 7045 | + } | |
| 7046 | +} | |
| 7047 | + | |
| 7048 | +Sealed Sealed_from_JSON(mixed json) { | |
| 7049 | + Sealed retval = Sealed(); | |
| 7050 | + | |
| 7051 | + if (!intp(json["sealed"])) error("Expected integer"); | |
| 7052 | + retval.sealed = json["sealed"]; | |
| 7053 | + | |
| 7054 | + return retval; | |
| 7055 | +} | |
| 7056 | + | |
| 7057 | +class Sel { | |
| 7058 | + int sel; // json: "SEL" | |
| 7059 | + | |
| 7060 | + string encode_json() { | |
| 7061 | + mapping(string:mixed) json = ([ | |
| 7062 | + "SEL" : sel, | |
| 7063 | + ]); | |
| 7064 | + | |
| 7065 | + return Standards.JSON.encode(json); | |
| 7066 | + } | |
| 7067 | +} | |
| 7068 | + | |
| 7069 | +Sel Sel_from_JSON(mixed json) { | |
| 7070 | + Sel retval = Sel(); | |
| 7071 | + | |
| 7072 | + if (!intp(json["SEL"])) error("Expected integer"); | |
| 7073 | + retval.sel = json["SEL"]; | |
| 7074 | + | |
| 7075 | + return retval; | |
| 7076 | +} | |
| 7077 | + | |
| 7078 | +class Select { | |
| 7079 | + int select; // json: "select" | |
| 7080 | + | |
| 7081 | + string encode_json() { | |
| 7082 | + mapping(string:mixed) json = ([ | |
| 7083 | + "select" : select, | |
| 7084 | + ]); | |
| 7085 | + | |
| 7086 | + return Standards.JSON.encode(json); | |
| 7087 | + } | |
| 7088 | +} | |
| 7089 | + | |
| 7090 | +Select Select_from_JSON(mixed json) { | |
| 7091 | + Select retval = Select(); | |
| 7092 | + | |
| 7093 | + if (!intp(json["select"])) error("Expected integer"); | |
| 7094 | + retval.select = json["select"]; | |
| 7095 | + | |
| 7096 | + return retval; | |
| 7097 | +} | |
| 7098 | + | |
| 7036 | 7099 | class Self { |
| 7037 | 7100 | int self; // json: "Self" |
| 7038 | 7101 | |
| @@ -8083,48 +8146,6 @@ Unowned Unowned_from_JSON(mixed json) { | ||
| 8083 | 8146 | return retval; |
| 8084 | 8147 | } |
| 8085 | 8148 | |
| 8086 | -class Unsafe { | |
| 8087 | - int unsafe; // json: "unsafe" | |
| 8088 | - | |
| 8089 | - string encode_json() { | |
| 8090 | - mapping(string:mixed) json = ([ | |
| 8091 | - "unsafe" : unsafe, | |
| 8092 | - ]); | |
| 8093 | - | |
| 8094 | - return Standards.JSON.encode(json); | |
| 8095 | - } | |
| 8096 | -} | |
| 8097 | - | |
| 8098 | -Unsafe Unsafe_from_JSON(mixed json) { | |
| 8099 | - Unsafe retval = Unsafe(); | |
| 8100 | - | |
| 8101 | - if (!intp(json["unsafe"])) error("Expected integer"); | |
| 8102 | - retval.unsafe = json["unsafe"]; | |
| 8103 | - | |
| 8104 | - return retval; | |
| 8105 | -} | |
| 8106 | - | |
| 8107 | -class Unsigned { | |
| 8108 | - int unsigned; // json: "unsigned" | |
| 8109 | - | |
| 8110 | - string encode_json() { | |
| 8111 | - mapping(string:mixed) json = ([ | |
| 8112 | - "unsigned" : unsigned, | |
| 8113 | - ]); | |
| 8114 | - | |
| 8115 | - return Standards.JSON.encode(json); | |
| 8116 | - } | |
| 8117 | -} | |
| 8118 | - | |
| 8119 | -Unsigned Unsigned_from_JSON(mixed json) { | |
| 8120 | - Unsigned retval = Unsigned(); | |
| 8121 | - | |
| 8122 | - if (!intp(json["unsigned"])) error("Expected integer"); | |
| 8123 | - retval.unsigned = json["unsigned"]; | |
| 8124 | - | |
| 8125 | - return retval; | |
| 8126 | -} | |
| 8127 | - | |
| 8128 | 8149 | class UseSerializers { |
| 8129 | 8150 | int use_serializers; // json: "UseSerializers" |
| 8130 | 8151 | |
| @@ -8146,31 +8167,13 @@ UseSerializers UseSerializers_from_JSON(mixed json) { | ||
| 8146 | 8167 | return retval; |
| 8147 | 8168 | } |
| 8148 | 8169 | |
| 8149 | -class Ushort { | |
| 8150 | - int ushort; // json: "ushort" | |
| 8151 | - | |
| 8152 | - string encode_json() { | |
| 8153 | - mapping(string:mixed) json = ([ | |
| 8154 | - "ushort" : ushort, | |
| 8155 | - ]); | |
| 8156 | - | |
| 8157 | - return Standards.JSON.encode(json); | |
| 8158 | - } | |
| 8159 | -} | |
| 8160 | - | |
| 8161 | -Ushort Ushort_from_JSON(mixed json) { | |
| 8162 | - Ushort retval = Ushort(); | |
| 8163 | - | |
| 8164 | - if (!intp(json["ushort"])) error("Expected integer"); | |
| 8165 | - retval.ushort = json["ushort"]; | |
| 8166 | - | |
| 8167 | - return retval; | |
| 8168 | -} | |
| 8169 | - | |
| 8170 | 8170 | class Obj6 { |
| 8171 | 8171 | int dummy; // json: "dummy" |
| 8172 | 8172 | Void obj6_void; // json: "void" |
| 8173 | 8173 | While obj6_while; // json: "while" |
| 8174 | + Unsafe unsafe; // json: "unsafe" | |
| 8175 | + Unsigned unsigned; // json: "unsigned" | |
| 8176 | + Ushort ushort; // json: "ushort" | |
| 8174 | 8177 | Using using; // json: "using" |
| 8175 | 8178 | Utf8JsonReader utf8_json_reader; // json: "Utf8JsonReader" |
| 8176 | 8179 | Utf8JsonWriter utf8_json_writer; // json: "Utf8JsonWriter" |
| @@ -8193,6 +8196,9 @@ class Obj6 { | ||
| 8193 | 8196 | "dummy" : dummy, |
| 8194 | 8197 | "void" : obj6_void, |
| 8195 | 8198 | "while" : obj6_while, |
| 8199 | + "unsafe" : unsafe, | |
| 8200 | + "unsigned" : unsigned, | |
| 8201 | + "ushort" : ushort, | |
| 8196 | 8202 | "using" : using, |
| 8197 | 8203 | "Utf8JsonReader" : utf8_json_reader, |
| 8198 | 8204 | "Utf8JsonWriter" : utf8_json_writer, |
| @@ -8224,6 +8230,12 @@ Obj6 Obj6_from_JSON(mixed json) { | ||
| 8224 | 8230 | retval.obj6_void = json["void"]; |
| 8225 | 8231 | if (!mappingp(json["while"])) error("Expected object"); |
| 8226 | 8232 | retval.obj6_while = json["while"]; |
| 8233 | + if (!mappingp(json["unsafe"])) error("Expected object"); | |
| 8234 | + retval.unsafe = json["unsafe"]; | |
| 8235 | + if (!mappingp(json["unsigned"])) error("Expected object"); | |
| 8236 | + retval.unsigned = json["unsigned"]; | |
| 8237 | + if (!mappingp(json["ushort"])) error("Expected object"); | |
| 8238 | + retval.ushort = json["ushort"]; | |
| 8227 | 8239 | if (!mappingp(json["using"])) error("Expected object"); |
| 8228 | 8240 | retval.using = json["using"]; |
| 8229 | 8241 | if (!mappingp(json["Utf8JsonReader"])) error("Expected object"); |
| @@ -8302,6 +8314,69 @@ While While_from_JSON(mixed json) { | ||
| 8302 | 8314 | return retval; |
| 8303 | 8315 | } |
| 8304 | 8316 | |
| 8317 | +class Unsafe { | |
| 8318 | + int unsafe; // json: "unsafe" | |
| 8319 | + | |
| 8320 | + string encode_json() { | |
| 8321 | + mapping(string:mixed) json = ([ | |
| 8322 | + "unsafe" : unsafe, | |
| 8323 | + ]); | |
| 8324 | + | |
| 8325 | + return Standards.JSON.encode(json); | |
| 8326 | + } | |
| 8327 | +} | |
| 8328 | + | |
| 8329 | +Unsafe Unsafe_from_JSON(mixed json) { | |
| 8330 | + Unsafe retval = Unsafe(); | |
| 8331 | + | |
| 8332 | + if (!intp(json["unsafe"])) error("Expected integer"); | |
| 8333 | + retval.unsafe = json["unsafe"]; | |
| 8334 | + | |
| 8335 | + return retval; | |
| 8336 | +} | |
| 8337 | + | |
| 8338 | +class Unsigned { | |
| 8339 | + int unsigned; // json: "unsigned" | |
| 8340 | + | |
| 8341 | + string encode_json() { | |
| 8342 | + mapping(string:mixed) json = ([ | |
| 8343 | + "unsigned" : unsigned, | |
| 8344 | + ]); | |
| 8345 | + | |
| 8346 | + return Standards.JSON.encode(json); | |
| 8347 | + } | |
| 8348 | +} | |
| 8349 | + | |
| 8350 | +Unsigned Unsigned_from_JSON(mixed json) { | |
| 8351 | + Unsigned retval = Unsigned(); | |
| 8352 | + | |
| 8353 | + if (!intp(json["unsigned"])) error("Expected integer"); | |
| 8354 | + retval.unsigned = json["unsigned"]; | |
| 8355 | + | |
| 8356 | + return retval; | |
| 8357 | +} | |
| 8358 | + | |
| 8359 | +class Ushort { | |
| 8360 | + int ushort; // json: "ushort" | |
| 8361 | + | |
| 8362 | + string encode_json() { | |
| 8363 | + mapping(string:mixed) json = ([ | |
| 8364 | + "ushort" : ushort, | |
| 8365 | + ]); | |
| 8366 | + | |
| 8367 | + return Standards.JSON.encode(json); | |
| 8368 | + } | |
| 8369 | +} | |
| 8370 | + | |
| 8371 | +Ushort Ushort_from_JSON(mixed json) { | |
| 8372 | + Ushort retval = Ushort(); | |
| 8373 | + | |
| 8374 | + if (!intp(json["ushort"])) error("Expected integer"); | |
| 8375 | + retval.ushort = json["ushort"]; | |
| 8376 | + | |
| 8377 | + return retval; | |
| 8378 | +} | |
| 8379 | + | |
| 8305 | 8380 | class Using { |
| 8306 | 8381 | int using; // json: "using" |
Mpythondefault / quicktype.py+194 −137
| @@ -3180,6 +3180,22 @@ class ListClass: | ||
| 3180 | 3180 | return result |
| 3181 | 3181 | |
| 3182 | 3182 | |
| 3183 | +@dataclass | |
| 3184 | +class LocalDate: | |
| 3185 | + local_date: int | |
| 3186 | + | |
| 3187 | + @staticmethod | |
| 3188 | + def from_dict(obj: Any) -> 'LocalDate': | |
| 3189 | + assert isinstance(obj, dict) | |
| 3190 | + local_date = from_int(obj["LocalDate"]) | |
| 3191 | + return LocalDate(local_date) | |
| 3192 | + | |
| 3193 | + def to_dict(self) -> dict: | |
| 3194 | + result: dict = {} | |
| 3195 | + result["LocalDate"] = from_int(self.local_date) | |
| 3196 | + return result | |
| 3197 | + | |
| 3198 | + | |
| 3183 | 3199 | @dataclass |
| 3184 | 3200 | class Locale: |
| 3185 | 3201 | locale: int |
| @@ -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 |
| @@ -3549,6 +3549,7 @@ class Obj3: | ||
| 3549 | 3549 | json_parser: JSONParser |
| 3550 | 3550 | json_reader: JSONReader |
| 3551 | 3551 | json_token_type: JSONTokenType |
| 3552 | + local_date: LocalDate | |
| 3552 | 3553 | locale: Locale |
| 3553 | 3554 | map_entry: MapEntry |
| 3554 | 3555 | no: No |
| @@ -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': |
| @@ -3618,6 +3618,7 @@ class Obj3: | ||
| 3618 | 3618 | json_parser = JSONParser.from_dict(obj["JsonParser"]) |
| 3619 | 3619 | json_reader = JSONReader.from_dict(obj["JsonReader"]) |
| 3620 | 3620 | json_token_type = JSONTokenType.from_dict(obj["JsonTokenType"]) |
| 3621 | + local_date = LocalDate.from_dict(obj["LocalDate"]) | |
| 3621 | 3622 | locale = Locale.from_dict(obj["Locale"]) |
| 3622 | 3623 | map_entry = MapEntry.from_dict(obj["MapEntry"]) |
| 3623 | 3624 | no = No.from_dict(obj["NO"]) |
| @@ -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, local_date, 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) | |
| 3672 | 3672 | |
| 3673 | 3673 | def to_dict(self) -> dict: |
| 3674 | 3674 | result: dict = {} |
| @@ -3687,6 +3687,7 @@ class Obj3: | ||
| 3687 | 3687 | result["JsonParser"] = to_class(JSONParser, self.json_parser) |
| 3688 | 3688 | result["JsonReader"] = to_class(JSONReader, self.json_reader) |
| 3689 | 3689 | result["JsonTokenType"] = to_class(JSONTokenType, self.json_token_type) |
| 3690 | + result["LocalDate"] = to_class(LocalDate, self.local_date) | |
| 3690 | 3691 | result["Locale"] = to_class(Locale, self.locale) |
| 3691 | 3692 | result["MapEntry"] = to_class(MapEntry, self.map_entry) |
| 3692 | 3693 | result["NO"] = to_class(No, self.no) |
| @@ -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 |
| @@ -4124,6 +4140,38 @@ class Of: | ||
| 4124 | 4140 | return result |
| 4125 | 4141 | |
| 4126 | 4142 | |
| 4143 | +@dataclass | |
| 4144 | +class OffsetDateTime: | |
| 4145 | + offset_date_time: int | |
| 4146 | + | |
| 4147 | + @staticmethod | |
| 4148 | + def from_dict(obj: Any) -> 'OffsetDateTime': | |
| 4149 | + assert isinstance(obj, dict) | |
| 4150 | + offset_date_time = from_int(obj["OffsetDateTime"]) | |
| 4151 | + return OffsetDateTime(offset_date_time) | |
| 4152 | + | |
| 4153 | + def to_dict(self) -> dict: | |
| 4154 | + result: dict = {} | |
| 4155 | + result["OffsetDateTime"] = from_int(self.offset_date_time) | |
| 4156 | + return result | |
| 4157 | + | |
| 4158 | + | |
| 4159 | +@dataclass | |
| 4160 | +class OffsetTime: | |
| 4161 | + offset_time: int | |
| 4162 | + | |
| 4163 | + @staticmethod | |
| 4164 | + def from_dict(obj: Any) -> 'OffsetTime': | |
| 4165 | + assert isinstance(obj, dict) | |
| 4166 | + offset_time = from_int(obj["OffsetTime"]) | |
| 4167 | + return OffsetTime(offset_time) | |
| 4168 | + | |
| 4169 | + def to_dict(self) -> dict: | |
| 4170 | + result: dict = {} | |
| 4171 | + result["OffsetTime"] = from_int(self.offset_time) | |
| 4172 | + return result | |
| 4173 | + | |
| 4174 | + | |
| 4127 | 4175 | @dataclass |
| 4128 | 4176 | class Oneway: |
| 4129 | 4177 | oneway: 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 | + offset_date_time: OffsetDateTime | |
| 4776 | + offset_time: OffsetTime | |
| 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 | + offset_date_time = OffsetDateTime.from_dict(obj["OffsetDateTime"]) | |
| 4845 | + offset_time = OffsetTime.from_dict(obj["OffsetTime"]) | |
| 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, offset_date_time, offset_time, 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["OffsetDateTime"] = to_class(OffsetDateTime, self.offset_date_time) | |
| 4914 | + result["OffsetTime"] = to_class(OffsetTime, self.offset_time) | |
| 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 | |
| @@ -5084,6 +5084,54 @@ class SelfClass: | ||
| 5084 | 5084 | return result |
| 5085 | 5085 | |
| 5086 | 5086 | |
| 5087 | +@dataclass | |
| 5088 | +class Sealed: | |
| 5089 | + sealed: int | |
| 5090 | + | |
| 5091 | + @staticmethod | |
| 5092 | + def from_dict(obj: Any) -> 'Sealed': | |
| 5093 | + assert isinstance(obj, dict) | |
| 5094 | + sealed = from_int(obj["sealed"]) | |
| 5095 | + return Sealed(sealed) | |
| 5096 | + | |
| 5097 | + def to_dict(self) -> dict: | |
| 5098 | + result: dict = {} | |
| 5099 | + result["sealed"] = from_int(self.sealed) | |
| 5100 | + return result | |
| 5101 | + | |
| 5102 | + | |
| 5103 | +@dataclass | |
| 5104 | +class Sel: | |
| 5105 | + sel: int | |
| 5106 | + | |
| 5107 | + @staticmethod | |
| 5108 | + def from_dict(obj: Any) -> 'Sel': | |
| 5109 | + assert isinstance(obj, dict) | |
| 5110 | + sel = from_int(obj["SEL"]) | |
| 5111 | + return Sel(sel) | |
| 5112 | + | |
| 5113 | + def to_dict(self) -> dict: | |
| 5114 | + result: dict = {} | |
| 5115 | + result["SEL"] = from_int(self.sel) | |
| 5116 | + return result | |
| 5117 | + | |
| 5118 | + | |
| 5119 | +@dataclass | |
| 5120 | +class Select: | |
| 5121 | + select: int | |
| 5122 | + | |
| 5123 | + @staticmethod | |
| 5124 | + def from_dict(obj: Any) -> 'Select': | |
| 5125 | + assert isinstance(obj, dict) | |
| 5126 | + select = from_int(obj["select"]) | |
| 5127 | + return Select(select) | |
| 5128 | + | |
| 5129 | + def to_dict(self) -> dict: | |
| 5130 | + result: dict = {} | |
| 5131 | + result["select"] = from_int(self.select) | |
| 5132 | + return result | |
| 5133 | + | |
| 5134 | + | |
| 5087 | 5135 | @dataclass |
| 5088 | 5136 | class Sendable: |
| 5089 | 5137 | sendable: int |
| @@ -5932,38 +5980,6 @@ class Unowned: | ||
| 5932 | 5980 | return result |
| 5933 | 5981 | |
| 5934 | 5982 | |
| 5935 | -@dataclass | |
| 5936 | -class Unsafe: | |
| 5937 | - unsafe: int | |
| 5938 | - | |
| 5939 | - @staticmethod | |
| 5940 | - def from_dict(obj: Any) -> 'Unsafe': | |
| 5941 | - assert isinstance(obj, dict) | |
| 5942 | - unsafe = from_int(obj["unsafe"]) | |
| 5943 | - return Unsafe(unsafe) | |
| 5944 | - | |
| 5945 | - def to_dict(self) -> dict: | |
| 5946 | - result: dict = {} | |
| 5947 | - result["unsafe"] = from_int(self.unsafe) | |
| 5948 | - return result | |
| 5949 | - | |
| 5950 | - | |
| 5951 | -@dataclass | |
| 5952 | -class Unsigned: | |
| 5953 | - unsigned: int | |
| 5954 | - | |
| 5955 | - @staticmethod | |
| 5956 | - def from_dict(obj: Any) -> 'Unsigned': | |
| 5957 | - assert isinstance(obj, dict) | |
| 5958 | - unsigned = from_int(obj["unsigned"]) | |
| 5959 | - return Unsigned(unsigned) | |
| 5960 | - | |
| 5961 | - def to_dict(self) -> dict: | |
| 5962 | - result: dict = {} | |
| 5963 | - result["unsigned"] = from_int(self.unsigned) | |
| 5964 | - return result | |
| 5965 | - | |
| 5966 | - | |
| 5967 | 5983 | @dataclass |
| 5968 | 5984 | class UseSerializers: |
| 5969 | 5985 | use_serializers: int |
| @@ -5980,26 +5996,11 @@ class UseSerializers: | ||
| 5980 | 5996 | return result |
| 5981 | 5997 | |
| 5982 | 5998 | |
| 5983 | -@dataclass | |
| 5984 | -class Ushort: | |
| 5985 | - ushort: int | |
| 5986 | - | |
| 5987 | - @staticmethod | |
| 5988 | - def from_dict(obj: Any) -> 'Ushort': | |
| 5989 | - assert isinstance(obj, dict) | |
| 5990 | - ushort = from_int(obj["ushort"]) | |
| 5991 | - return Ushort(ushort) | |
| 5992 | - | |
| 5993 | - def to_dict(self) -> dict: | |
| 5994 | - result: dict = {} | |
| 5995 | - result["ushort"] = from_int(self.ushort) | |
| 5996 | - return result | |
| 5997 | - | |
| 5998 | - | |
| 5999 | 5999 | @dataclass |
| 6000 | 6000 | class Obj5: |
| 6001 | 6001 | k_serializer: KSerializer |
| 6002 | 6002 | primitive_kind: PrimitiveKind |
| 6003 | + sel: Sel | |
| 6003 | 6004 | obj5_self: Self |
| 6004 | 6005 | sendable: Sendable |
| 6005 | 6006 | serial_descriptor: SerialDescriptor |
| @@ -6017,6 +6018,8 @@ class Obj5: | ||
| 6017 | 6018 | type: TypeClass |
| 6018 | 6019 | use_serializers: UseSerializers |
| 6019 | 6020 | dummy: int |
| 6021 | + sealed: Sealed | |
| 6022 | + select: Select | |
| 6020 | 6023 | purple_self: SelfClass |
| 6021 | 6024 | serialize: Serialize |
| 6022 | 6025 | set: Set |
| @@ -6060,15 +6063,13 @@ class Obj5: | ||
| 6060 | 6063 | undefined: Undefined |
| 6061 | 6064 | union: UnionClass |
| 6062 | 6065 | unowned: Unowned |
| 6063 | - unsafe: Unsafe | |
| 6064 | - unsigned: Unsigned | |
| 6065 | - ushort: Ushort | |
| 6066 | 6066 | |
| 6067 | 6067 | @staticmethod |
| 6068 | 6068 | def from_dict(obj: Any) -> 'Obj5': |
| 6069 | 6069 | assert isinstance(obj, dict) |
| 6070 | 6070 | k_serializer = KSerializer.from_dict(obj["KSerializer"]) |
| 6071 | 6071 | primitive_kind = PrimitiveKind.from_dict(obj["PrimitiveKind"]) |
| 6072 | + sel = Sel.from_dict(obj["SEL"]) | |
| 6072 | 6073 | obj5_self = Self.from_dict(obj["Self"]) |
| 6073 | 6074 | sendable = Sendable.from_dict(obj["Sendable"]) |
| 6074 | 6075 | serial_descriptor = SerialDescriptor.from_dict(obj["SerialDescriptor"]) |
| @@ -6086,6 +6087,8 @@ class Obj5: | ||
| 6086 | 6087 | type = TypeClass.from_dict(obj["Type"]) |
| 6087 | 6088 | use_serializers = UseSerializers.from_dict(obj["UseSerializers"]) |
| 6088 | 6089 | dummy = from_int(obj["dummy"]) |
| 6090 | + sealed = Sealed.from_dict(obj["sealed"]) | |
| 6091 | + select = Select.from_dict(obj["select"]) | |
| 6089 | 6092 | purple_self = SelfClass.from_dict(obj["self"]) |
| 6090 | 6093 | serialize = Serialize.from_dict(obj["serialize"]) |
| 6091 | 6094 | set = Set.from_dict(obj["set"]) |
| @@ -6129,15 +6132,13 @@ class Obj5: | ||
| 6129 | 6132 | undefined = Undefined.from_dict(obj["undefined"]) |
| 6130 | 6133 | union = UnionClass.from_dict(obj["union"]) |
| 6131 | 6134 | unowned = Unowned.from_dict(obj["unowned"]) |
| 6132 | - unsafe = Unsafe.from_dict(obj["unsafe"]) | |
| 6133 | - unsigned = Unsigned.from_dict(obj["unsigned"]) | |
| 6134 | - ushort = Ushort.from_dict(obj["ushort"]) | |
| 6135 | - return Obj5(k_serializer, primitive_kind, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, 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) | |
| 6135 | + return Obj5(k_serializer, primitive_kind, sel, obj5_self, sendable, serial_descriptor, serial_name, serializable, serializer_provider, simple_module, standards, std_deserializer, std_serializer, time_only, time_only_converter, time_zone, true, type, use_serializers, 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) | |
| 6136 | 6136 | |
| 6137 | 6137 | def to_dict(self) -> dict: |
| 6138 | 6138 | result: dict = {} |
| 6139 | 6139 | result["KSerializer"] = to_class(KSerializer, self.k_serializer) |
| 6140 | 6140 | result["PrimitiveKind"] = to_class(PrimitiveKind, self.primitive_kind) |
| 6141 | + result["SEL"] = to_class(Sel, self.sel) | |
| 6141 | 6142 | result["Self"] = to_class(Self, self.obj5_self) |
| 6142 | 6143 | result["Sendable"] = to_class(Sendable, self.sendable) |
| 6143 | 6144 | result["SerialDescriptor"] = to_class(SerialDescriptor, self.serial_descriptor) |
| @@ -6155,6 +6156,8 @@ class Obj5: | ||
| 6155 | 6156 | result["Type"] = to_class(TypeClass, self.type) |
| 6156 | 6157 | result["UseSerializers"] = to_class(UseSerializers, self.use_serializers) |
| 6157 | 6158 | result["dummy"] = from_int(self.dummy) |
| 6159 | + result["sealed"] = to_class(Sealed, self.sealed) | |
| 6160 | + result["select"] = to_class(Select, self.select) | |
| 6158 | 6161 | result["self"] = to_class(SelfClass, self.purple_self) |
| 6159 | 6162 | result["serialize"] = to_class(Serialize, self.serialize) |
| 6160 | 6163 | result["set"] = to_class(Set, self.set) |
| @@ -6198,9 +6201,6 @@ class Obj5: | ||
| 6198 | 6201 | result["undefined"] = to_class(Undefined, self.undefined) |
| 6199 | 6202 | result["union"] = to_class(UnionClass, self.union) |
| 6200 | 6203 | result["unowned"] = to_class(Unowned, self.unowned) |
| 6201 | - result["unsafe"] = to_class(Unsafe, self.unsafe) | |
| 6202 | - result["unsigned"] = to_class(Unsigned, self.unsigned) | |
| 6203 | - result["ushort"] = to_class(Ushort, self.ushort) | |
| 6204 | 6204 | return result |
| 6205 | 6205 | |
| 6206 | 6206 | |
| @@ -6252,6 +6252,54 @@ class Yield: | ||
| 6252 | 6252 | return result |
| 6253 | 6253 | |
| 6254 | 6254 | |
| 6255 | +@dataclass | |
| 6256 | +class Unsafe: | |
| 6257 | + unsafe: int | |
| 6258 | + | |
| 6259 | + @staticmethod | |
| 6260 | + def from_dict(obj: Any) -> 'Unsafe': | |
| 6261 | + assert isinstance(obj, dict) | |
| 6262 | + unsafe = from_int(obj["unsafe"]) | |
| 6263 | + return Unsafe(unsafe) | |
| 6264 | + | |
| 6265 | + def to_dict(self) -> dict: | |
| 6266 | + result: dict = {} | |
| 6267 | + result["unsafe"] = from_int(self.unsafe) | |
| 6268 | + return result | |
| 6269 | + | |
| 6270 | + | |
| 6271 | +@dataclass | |
| 6272 | +class Unsigned: | |
| 6273 | + unsigned: int | |
| 6274 | + | |
| 6275 | + @staticmethod | |
| 6276 | + def from_dict(obj: Any) -> 'Unsigned': | |
| 6277 | + assert isinstance(obj, dict) | |
| 6278 | + unsigned = from_int(obj["unsigned"]) | |
| 6279 | + return Unsigned(unsigned) | |
| 6280 | + | |
| 6281 | + def to_dict(self) -> dict: | |
| 6282 | + result: dict = {} | |
| 6283 | + result["unsigned"] = from_int(self.unsigned) | |
| 6284 | + return result | |
| 6285 | + | |
| 6286 | + | |
| 6287 | +@dataclass | |
| 6288 | +class Ushort: | |
| 6289 | + ushort: int | |
| 6290 | + | |
| 6291 | + @staticmethod | |
| 6292 | + def from_dict(obj: Any) -> 'Ushort': | |
| 6293 | + assert isinstance(obj, dict) | |
| 6294 | + ushort = from_int(obj["ushort"]) | |
| 6295 | + return Ushort(ushort) | |
| 6296 | + | |
| 6297 | + def to_dict(self) -> dict: | |
| 6298 | + result: dict = {} | |
| 6299 | + result["ushort"] = from_int(self.ushort) | |
| 6300 | + return result | |
| 6301 | + | |
| 6302 | + | |
| 6255 | 6303 | @dataclass |
| 6256 | 6304 | class Using: |
| 6257 | 6305 | using: int |
| @@ -6499,6 +6547,9 @@ class Obj6: | ||
| 6499 | 6547 | utf8_json_writer: Utf8JSONWriter |
| 6500 | 6548 | yes: Yes |
| 6501 | 6549 | dummy: int |
| 6550 | + unsafe: Unsafe | |
| 6551 | + unsigned: Unsigned | |
| 6552 | + ushort: Ushort | |
| 6502 | 6553 | using: Using |
| 6503 | 6554 | var: Var |
| 6504 | 6555 | virtual: Virtual |
| @@ -6522,6 +6573,9 @@ class Obj6: | ||
| 6522 | 6573 | utf8_json_writer = Utf8JSONWriter.from_dict(obj["Utf8JsonWriter"]) |
| 6523 | 6574 | yes = Yes.from_dict(obj["YES"]) |
| 6524 | 6575 | dummy = from_int(obj["dummy"]) |
| 6576 | + unsafe = Unsafe.from_dict(obj["unsafe"]) | |
| 6577 | + unsigned = Unsigned.from_dict(obj["unsigned"]) | |
| 6578 | + ushort = Ushort.from_dict(obj["ushort"]) | |
| 6525 | 6579 | using = Using.from_dict(obj["using"]) |
| 6526 | 6580 | var = Var.from_dict(obj["var"]) |
| 6527 | 6581 | virtual = Virtual.from_dict(obj["virtual"]) |
| @@ -6536,7 +6590,7 @@ class Obj6: | ||
| 6536 | 6590 | xor = Xor.from_dict(obj["xor"]) |
| 6537 | 6591 | xor_eq = XorEq.from_dict(obj["xor_eq"]) |
| 6538 | 6592 | obj6_yield = Yield.from_dict(obj["yield"]) |
| 6539 | - return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield) | |
| 6593 | + return Obj6(uuid, utf8_json_reader, utf8_json_writer, yes, dummy, unsafe, unsigned, ushort, using, var, virtual, void, volatile, wchar_t, weak, where, obj6_while, will_set, obj6_with, xor, xor_eq, obj6_yield) | |
| 6540 | 6594 | |
| 6541 | 6595 | def to_dict(self) -> dict: |
| 6542 | 6596 | result: dict = {} |
| @@ -6545,6 +6599,9 @@ class Obj6: | ||
| 6545 | 6599 | result["Utf8JsonWriter"] = to_class(Utf8JSONWriter, self.utf8_json_writer) |
| 6546 | 6600 | result["YES"] = to_class(Yes, self.yes) |
| 6547 | 6601 | result["dummy"] = from_int(self.dummy) |
| 6602 | + result["unsafe"] = to_class(Unsafe, self.unsafe) | |
| 6603 | + result["unsigned"] = to_class(Unsigned, self.unsigned) | |
| 6604 | + result["ushort"] = to_class(Ushort, self.ushort) | |
| 6548 | 6605 | result["using"] = to_class(Using, self.using) |
| 6549 | 6606 | result["var"] = to_class(Var, self.var) |
| 6550 | 6607 | result["virtual"] = to_class(Virtual, self.virtual) |
Mrubydefault / TopLevel.rb+271 −187
| @@ -4786,6 +4786,31 @@ class List < Dry::Struct | ||
| 4786 | 4786 | end |
| 4787 | 4787 | end |
| 4788 | 4788 | |
| 4789 | +class LocalDate < Dry::Struct | |
| 4790 | + attribute :local_date, Types::Integer | |
| 4791 | + | |
| 4792 | + def self.from_dynamic!(d) | |
| 4793 | + d = Types::Hash[d] | |
| 4794 | + new( | |
| 4795 | + local_date: d.fetch("LocalDate"), | |
| 4796 | + ) | |
| 4797 | + end | |
| 4798 | + | |
| 4799 | + def self.from_json!(json) | |
| 4800 | + from_dynamic!(JSON.parse(json)) | |
| 4801 | + end | |
| 4802 | + | |
| 4803 | + def to_dynamic | |
| 4804 | + { | |
| 4805 | + "LocalDate" => local_date, | |
| 4806 | + } | |
| 4807 | + end | |
| 4808 | + | |
| 4809 | + def to_json(options = nil) | |
| 4810 | + JSON.generate(to_dynamic, options) | |
| 4811 | + end | |
| 4812 | +end | |
| 4813 | + | |
| 4789 | 4814 | class Locale < Dry::Struct |
| 4790 | 4815 | attribute :locale, Types::Integer |
| 4791 | 4816 | |
| @@ -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 | |
| @@ -5308,6 +5308,7 @@ class Obj3 < Dry::Struct | ||
| 5308 | 5308 | attribute :left, Left |
| 5309 | 5309 | attribute :let, Let |
| 5310 | 5310 | attribute :list, List |
| 5311 | + attribute :local_date, LocalDate | |
| 5311 | 5312 | attribute :locale, Locale |
| 5312 | 5313 | attribute :lock, Lock |
| 5313 | 5314 | attribute :long, Long |
| @@ -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 |
| @@ -5377,6 +5377,7 @@ class Obj3 < Dry::Struct | ||
| 5377 | 5377 | left: Left.from_dynamic!(d.fetch("left")), |
| 5378 | 5378 | let: Let.from_dynamic!(d.fetch("let")), |
| 5379 | 5379 | list: List.from_dynamic!(d.fetch("list")), |
| 5380 | + local_date: LocalDate.from_dynamic!(d.fetch("LocalDate")), | |
| 5380 | 5381 | locale: Locale.from_dynamic!(d.fetch("Locale")), |
| 5381 | 5382 | lock: Lock.from_dynamic!(d.fetch("lock")), |
| 5382 | 5383 | long: Long.from_dynamic!(d.fetch("long")), |
| @@ -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")), |
| @@ -5451,6 +5451,7 @@ class Obj3 < Dry::Struct | ||
| 5451 | 5451 | "left" => left.to_dynamic, |
| 5452 | 5452 | "let" => let.to_dynamic, |
| 5453 | 5453 | "list" => list.to_dynamic, |
| 5454 | + "LocalDate" => local_date.to_dynamic, | |
| 5454 | 5455 | "Locale" => locale.to_dynamic, |
| 5455 | 5456 | "lock" => lock.to_dynamic, |
| 5456 | 5457 | "long" => long.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 Of < Dry::Struct | |
| 6157 | + attribute :of, 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 | + of: d.fetch("of"), | |
| 6138 | 6163 | ) |
| 6139 | 6164 | end |
| 6140 | 6165 | |
| @@ -6144,7 +6169,7 @@ class ObjectMapper < Dry::Struct | ||
| 6144 | 6169 | |
| 6145 | 6170 | def to_dynamic |
| 6146 | 6171 | { |
| 6147 | - "ObjectMapper" => object_mapper, | |
| 6172 | + "of" => of, | |
| 6148 | 6173 | } |
| 6149 | 6174 | end |
| 6150 | 6175 | |
| @@ -6153,13 +6178,13 @@ class ObjectMapper < Dry::Struct | ||
| 6153 | 6178 | end |
| 6154 | 6179 | end |
| 6155 | 6180 | |
| 6156 | -class Of < Dry::Struct | |
| 6157 | - attribute :of, Types::Integer | |
| 6181 | +class OffsetDateTime < Dry::Struct | |
| 6182 | + attribute :offset_date_time, Types::Integer | |
| 6158 | 6183 | |
| 6159 | 6184 | def self.from_dynamic!(d) |
| 6160 | 6185 | d = Types::Hash[d] |
| 6161 | 6186 | new( |
| 6162 | - of: d.fetch("of"), | |
| 6187 | + offset_date_time: d.fetch("OffsetDateTime"), | |
| 6163 | 6188 | ) |
| 6164 | 6189 | end |
| 6165 | 6190 | |
| @@ -6169,7 +6194,32 @@ class Of < Dry::Struct | ||
| 6169 | 6194 | |
| 6170 | 6195 | def to_dynamic |
| 6171 | 6196 | { |
| 6172 | - "of" => of, | |
| 6197 | + "OffsetDateTime" => offset_date_time, | |
| 6198 | + } | |
| 6199 | + end | |
| 6200 | + | |
| 6201 | + def to_json(options = nil) | |
| 6202 | + JSON.generate(to_dynamic, options) | |
| 6203 | + end | |
| 6204 | +end | |
| 6205 | + | |
| 6206 | +class OffsetTime < Dry::Struct | |
| 6207 | + attribute :offset_time, Types::Integer | |
| 6208 | + | |
| 6209 | + def self.from_dynamic!(d) | |
| 6210 | + d = Types::Hash[d] | |
| 6211 | + new( | |
| 6212 | + offset_time: d.fetch("OffsetTime"), | |
| 6213 | + ) | |
| 6214 | + end | |
| 6215 | + | |
| 6216 | + def self.from_json!(json) | |
| 6217 | + from_dynamic!(JSON.parse(json)) | |
| 6218 | + end | |
| 6219 | + | |
| 6220 | + def to_dynamic | |
| 6221 | + { | |
| 6222 | + "OffsetTime" => offset_time, | |
| 6173 | 6223 | } |
| 6174 | 6224 | end |
| 6175 | 6225 | |
| @@ -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,10 +7105,11 @@ 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 | 7110 | attribute :of, Of |
| 7111 | + attribute :offset_date_time, OffsetDateTime | |
| 7112 | + attribute :offset_time, OffsetTime | |
| 7111 | 7113 | attribute :oneway, Oneway |
| 7112 | 7114 | attribute :operator, Operator |
| 7113 | 7115 | attribute :or_eq, OrEq |
| @@ -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,10 +7174,11 @@ 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 | 7179 | of: Of.from_dynamic!(d.fetch("of")), |
| 7180 | + offset_date_time: OffsetDateTime.from_dynamic!(d.fetch("OffsetDateTime")), | |
| 7181 | + offset_time: OffsetTime.from_dynamic!(d.fetch("OffsetTime")), | |
| 7180 | 7182 | oneway: Oneway.from_dynamic!(d.fetch("oneway")), |
| 7181 | 7183 | operator: Operator.from_dynamic!(d.fetch("operator")), |
| 7182 | 7184 | or_eq: OrEq.from_dynamic!(d.fetch("or_eq")), |
| @@ -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,10 +7248,11 @@ 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 | 7253 | "of" => of.to_dynamic, |
| 7254 | + "OffsetDateTime" => offset_date_time.to_dynamic, | |
| 7255 | + "OffsetTime" => offset_time.to_dynamic, | |
| 7254 | 7256 | "oneway" => oneway.to_dynamic, |
| 7255 | 7257 | "operator" => operator.to_dynamic, |
| 7256 | 7258 | "or_eq" => or_eq.to_dynamic, |
| @@ -7285,8 +7287,6 @@ 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 | 7290 | } |
| 7291 | 7291 | end |
| 7292 | 7292 | |
| @@ -7320,6 +7320,31 @@ class KSerializer < Dry::Struct | ||
| 7320 | 7320 | end |
| 7321 | 7321 | end |
| 7322 | 7322 | |
| 7323 | +class Select < Dry::Struct | |
| 7324 | + attribute :select_select, Types::Integer | |
| 7325 | + | |
| 7326 | + def self.from_dynamic!(d) | |
| 7327 | + d = Types::Hash[d] | |
| 7328 | + new( | |
| 7329 | + select_select: d.fetch("select"), | |
| 7330 | + ) | |
| 7331 | + end | |
| 7332 | + | |
| 7333 | + def self.from_json!(json) | |
| 7334 | + from_dynamic!(JSON.parse(json)) | |
| 7335 | + end | |
| 7336 | + | |
| 7337 | + def to_dynamic | |
| 7338 | + { | |
| 7339 | + "select" => select_select, | |
| 7340 | + } | |
| 7341 | + end | |
| 7342 | + | |
| 7343 | + def to_json(options = nil) | |
| 7344 | + JSON.generate(to_dynamic, options) | |
| 7345 | + end | |
| 7346 | +end | |
| 7347 | + | |
| 7323 | 7348 | class SelfClass < Dry::Struct |
| 7324 | 7349 | attribute :self_self, Types::Integer |
| 7325 | 7350 | |
| @@ -7570,6 +7595,56 @@ class PrimitiveKind < Dry::Struct | ||
| 7570 | 7595 | end |
| 7571 | 7596 | end |
| 7572 | 7597 | |
| 7598 | +class Sealed < Dry::Struct | |
| 7599 | + attribute :sealed, Types::Integer | |
| 7600 | + | |
| 7601 | + def self.from_dynamic!(d) | |
| 7602 | + d = Types::Hash[d] | |
| 7603 | + new( | |
| 7604 | + sealed: d.fetch("sealed"), | |
| 7605 | + ) | |
| 7606 | + end | |
| 7607 | + | |
| 7608 | + def self.from_json!(json) | |
| 7609 | + from_dynamic!(JSON.parse(json)) | |
| 7610 | + end | |
| 7611 | + | |
| 7612 | + def to_dynamic | |
| 7613 | + { | |
| 7614 | + "sealed" => sealed, | |
| 7615 | + } | |
| 7616 | + end | |
| 7617 | + | |
| 7618 | + def to_json(options = nil) | |
| 7619 | + JSON.generate(to_dynamic, options) | |
| 7620 | + end | |
| 7621 | +end | |
| 7622 | + | |
| 7623 | +class Sel < Dry::Struct | |
| 7624 | + attribute :sel, Types::Integer | |
| 7625 | + | |
| 7626 | + def self.from_dynamic!(d) | |
| 7627 | + d = Types::Hash[d] | |
| 7628 | + new( | |
| 7629 | + sel: d.fetch("SEL"), | |
| 7630 | + ) | |
| 7631 | + end | |
| 7632 | + | |
| 7633 | + def self.from_json!(json) | |
| 7634 | + from_dynamic!(JSON.parse(json)) | |
| 7635 | + end | |
| 7636 | + | |
| 7637 | + def to_dynamic | |
| 7638 | + { | |
| 7639 | + "SEL" => sel, | |
| 7640 | + } | |
| 7641 | + end | |
| 7642 | + | |
| 7643 | + def to_json(options = nil) | |
| 7644 | + JSON.generate(to_dynamic, options) | |
| 7645 | + end | |
| 7646 | +end | |
| 7647 | + | |
| 7573 | 7648 | class Obj5Self < Dry::Struct |
| 7574 | 7649 | attribute :self_self, Types::Integer |
| 7575 | 7650 | |
| @@ -8795,56 +8870,6 @@ class Unowned < Dry::Struct | ||
| 8795 | 8870 | end |
| 8796 | 8871 | end |
| 8797 | 8872 | |
| 8798 | -class Unsafe < Dry::Struct | |
| 8799 | - attribute :unsafe, Types::Integer | |
| 8800 | - | |
| 8801 | - def self.from_dynamic!(d) | |
| 8802 | - d = Types::Hash[d] | |
| 8803 | - new( | |
| 8804 | - unsafe: d.fetch("unsafe"), | |
| 8805 | - ) | |
| 8806 | - end | |
| 8807 | - | |
| 8808 | - def self.from_json!(json) | |
| 8809 | - from_dynamic!(JSON.parse(json)) | |
| 8810 | - end | |
| 8811 | - | |
| 8812 | - def to_dynamic | |
| 8813 | - { | |
| 8814 | - "unsafe" => unsafe, | |
| 8815 | - } | |
| 8816 | - end | |
| 8817 | - | |
| 8818 | - def to_json(options = nil) | |
| 8819 | - JSON.generate(to_dynamic, options) | |
| 8820 | - end | |
| 8821 | -end | |
| 8822 | - | |
| 8823 | -class Unsigned < Dry::Struct | |
| 8824 | - attribute :unsigned, Types::Integer | |
| 8825 | - | |
| 8826 | - def self.from_dynamic!(d) | |
| 8827 | - d = Types::Hash[d] | |
| 8828 | - new( | |
| 8829 | - unsigned: d.fetch("unsigned"), | |
| 8830 | - ) | |
| 8831 | - end | |
| 8832 | - | |
| 8833 | - def self.from_json!(json) | |
| 8834 | - from_dynamic!(JSON.parse(json)) | |
| 8835 | - end | |
| 8836 | - | |
| 8837 | - def to_dynamic | |
| 8838 | - { | |
| 8839 | - "unsigned" => unsigned, | |
| 8840 | - } | |
| 8841 | - end | |
| 8842 | - | |
| 8843 | - def to_json(options = nil) | |
| 8844 | - JSON.generate(to_dynamic, options) | |
| 8845 | - end | |
| 8846 | -end | |
| 8847 | - | |
| 8848 | 8873 | class UseSerializers < Dry::Struct |
| 8849 | 8874 | attribute :use_serializers, Types::Integer |
| 8850 | 8875 | |
| @@ -8870,34 +8895,10 @@ class UseSerializers < Dry::Struct | ||
| 8870 | 8895 | end |
| 8871 | 8896 | end |
| 8872 | 8897 | |
| 8873 | -class Ushort < Dry::Struct | |
| 8874 | - attribute :ushort, Types::Integer | |
| 8875 | - | |
| 8876 | - def self.from_dynamic!(d) | |
| 8877 | - d = Types::Hash[d] | |
| 8878 | - new( | |
| 8879 | - ushort: d.fetch("ushort"), | |
| 8880 | - ) | |
| 8881 | - end | |
| 8882 | - | |
| 8883 | - def self.from_json!(json) | |
| 8884 | - from_dynamic!(JSON.parse(json)) | |
| 8885 | - end | |
| 8886 | - | |
| 8887 | - def to_dynamic | |
| 8888 | - { | |
| 8889 | - "ushort" => ushort, | |
| 8890 | - } | |
| 8891 | - end | |
| 8892 | - | |
| 8893 | - def to_json(options = nil) | |
| 8894 | - JSON.generate(to_dynamic, options) | |
| 8895 | - end | |
| 8896 | -end | |
| 8897 | - | |
| 8898 | 8898 | class Obj5 < Dry::Struct |
| 8899 | 8899 | attribute :dummy, Types::Integer |
| 8900 | 8900 | attribute :k_serializer, KSerializer |
| 8901 | + attribute :obj5_select, Select | |
| 8901 | 8902 | attribute :obj5_self, SelfClass |
| 8902 | 8903 | attribute :obj5_super, Super |
| 8903 | 8904 | attribute :obj5_system, System |
| @@ -8908,6 +8909,8 @@ class Obj5 < Dry::Struct | ||
| 8908 | 8909 | attribute :obj5_try, Try |
| 8909 | 8910 | attribute :obj5_type, Type |
| 8910 | 8911 | attribute :primitive_kind, PrimitiveKind |
| 8912 | + attribute :sealed, Sealed | |
| 8913 | + attribute :sel, Sel | |
| 8911 | 8914 | attribute :self_1, Obj5Self |
| 8912 | 8915 | attribute :sendable, Sendable |
| 8913 | 8916 | attribute :serial_descriptor, SerialDescriptor |
| @@ -8957,16 +8960,14 @@ class Obj5 < Dry::Struct | ||
| 8957 | 8960 | attribute :undefined, UndefinedClass |
| 8958 | 8961 | attribute :union, Union |
| 8959 | 8962 | attribute :unowned, Unowned |
| 8960 | - attribute :unsafe, Unsafe | |
| 8961 | - attribute :unsigned, Unsigned | |
| 8962 | 8963 | attribute :use_serializers, UseSerializers |
| 8963 | - attribute :ushort, Ushort | |
| 8964 | 8964 | |
| 8965 | 8965 | def self.from_dynamic!(d) |
| 8966 | 8966 | d = Types::Hash[d] |
| 8967 | 8967 | new( |
| 8968 | 8968 | dummy: d.fetch("dummy"), |
| 8969 | 8969 | k_serializer: KSerializer.from_dynamic!(d.fetch("KSerializer")), |
| 8970 | + obj5_select: Select.from_dynamic!(d.fetch("select")), | |
| 8970 | 8971 | obj5_self: SelfClass.from_dynamic!(d.fetch("Self")), |
| 8971 | 8972 | obj5_super: Super.from_dynamic!(d.fetch("super")), |
| 8972 | 8973 | obj5_system: System.from_dynamic!(d.fetch("system")), |
| @@ -8977,6 +8978,8 @@ class Obj5 < Dry::Struct | ||
| 8977 | 8978 | obj5_try: Try.from_dynamic!(d.fetch("try")), |
| 8978 | 8979 | obj5_type: Type.from_dynamic!(d.fetch("Type")), |
| 8979 | 8980 | primitive_kind: PrimitiveKind.from_dynamic!(d.fetch("PrimitiveKind")), |
| 8981 | + sealed: Sealed.from_dynamic!(d.fetch("sealed")), | |
| 8982 | + sel: Sel.from_dynamic!(d.fetch("SEL")), | |
| 8980 | 8983 | self_1: Obj5Self.from_dynamic!(d.fetch("self")), |
| 8981 | 8984 | sendable: Sendable.from_dynamic!(d.fetch("Sendable")), |
| 8982 | 8985 | serial_descriptor: SerialDescriptor.from_dynamic!(d.fetch("SerialDescriptor")), |
| @@ -9026,10 +9029,7 @@ class Obj5 < Dry::Struct | ||
| 9026 | 9029 | undefined: UndefinedClass.from_dynamic!(d.fetch("undefined")), |
| 9027 | 9030 | union: Union.from_dynamic!(d.fetch("union")), |
| 9028 | 9031 | unowned: Unowned.from_dynamic!(d.fetch("unowned")), |
| 9029 | - unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")), | |
| 9030 | - unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")), | |
| 9031 | 9032 | use_serializers: UseSerializers.from_dynamic!(d.fetch("UseSerializers")), |
| 9032 | - ushort: Ushort.from_dynamic!(d.fetch("ushort")), | |
| 9033 | 9033 | ) |
| 9034 | 9034 | end |
| 9035 | 9035 | |
| @@ -9041,6 +9041,7 @@ class Obj5 < Dry::Struct | ||
| 9041 | 9041 | { |
| 9042 | 9042 | "dummy" => dummy, |
| 9043 | 9043 | "KSerializer" => k_serializer.to_dynamic, |
| 9044 | + "select" => obj5_select.to_dynamic, | |
| 9044 | 9045 | "Self" => obj5_self.to_dynamic, |
| 9045 | 9046 | "super" => obj5_super.to_dynamic, |
| 9046 | 9047 | "system" => obj5_system.to_dynamic, |
| @@ -9051,6 +9052,8 @@ class Obj5 < Dry::Struct | ||
| 9051 | 9052 | "try" => obj5_try.to_dynamic, |
| 9052 | 9053 | "Type" => obj5_type.to_dynamic, |
| 9053 | 9054 | "PrimitiveKind" => primitive_kind.to_dynamic, |
| 9055 | + "sealed" => sealed.to_dynamic, | |
| 9056 | + "SEL" => sel.to_dynamic, | |
| 9054 | 9057 | "self" => self_1.to_dynamic, |
| 9055 | 9058 | "Sendable" => sendable.to_dynamic, |
| 9056 | 9059 | "SerialDescriptor" => serial_descriptor.to_dynamic, |
| @@ -9100,10 +9103,7 @@ class Obj5 < Dry::Struct | ||
| 9100 | 9103 | "undefined" => undefined.to_dynamic, |
| 9101 | 9104 | "union" => union.to_dynamic, |
| 9102 | 9105 | "unowned" => unowned.to_dynamic, |
| 9103 | - "unsafe" => unsafe.to_dynamic, | |
| 9104 | - "unsigned" => unsigned.to_dynamic, | |
| 9105 | 9106 | "UseSerializers" => use_serializers.to_dynamic, |
| 9106 | - "ushort" => ushort.to_dynamic, | |
| 9107 | 9107 | } |
| 9108 | 9108 | end |
| 9109 | 9109 | |
| @@ -9187,6 +9187,81 @@ class Yield < Dry::Struct | ||
| 9187 | 9187 | end |
| 9188 | 9188 | end |
| 9189 | 9189 | |
| 9190 | +class Unsafe < Dry::Struct | |
| 9191 | + attribute :unsafe, Types::Integer | |
| 9192 | + | |
| 9193 | + def self.from_dynamic!(d) | |
| 9194 | + d = Types::Hash[d] | |
| 9195 | + new( | |
| 9196 | + unsafe: d.fetch("unsafe"), | |
| 9197 | + ) | |
| 9198 | + end | |
| 9199 | + | |
| 9200 | + def self.from_json!(json) | |
| 9201 | + from_dynamic!(JSON.parse(json)) | |
| 9202 | + end | |
| 9203 | + | |
| 9204 | + def to_dynamic | |
| 9205 | + { | |
| 9206 | + "unsafe" => unsafe, | |
| 9207 | + } | |
| 9208 | + end | |
| 9209 | + | |
| 9210 | + def to_json(options = nil) | |
| 9211 | + JSON.generate(to_dynamic, options) | |
| 9212 | + end | |
| 9213 | +end | |
| 9214 | + | |
| 9215 | +class Unsigned < Dry::Struct | |
| 9216 | + attribute :unsigned, Types::Integer | |
| 9217 | + | |
| 9218 | + def self.from_dynamic!(d) | |
| 9219 | + d = Types::Hash[d] | |
| 9220 | + new( | |
| 9221 | + unsigned: d.fetch("unsigned"), | |
| 9222 | + ) | |
| 9223 | + end | |
| 9224 | + | |
| 9225 | + def self.from_json!(json) | |
| 9226 | + from_dynamic!(JSON.parse(json)) | |
| 9227 | + end | |
| 9228 | + | |
| 9229 | + def to_dynamic | |
| 9230 | + { | |
| 9231 | + "unsigned" => unsigned, | |
| 9232 | + } | |
| 9233 | + end | |
| 9234 | + | |
| 9235 | + def to_json(options = nil) | |
| 9236 | + JSON.generate(to_dynamic, options) | |
| 9237 | + end | |
| 9238 | +end | |
| 9239 | + | |
| 9240 | +class Ushort < Dry::Struct | |
| 9241 | + attribute :ushort, Types::Integer | |
| 9242 | + | |
| 9243 | + def self.from_dynamic!(d) | |
| 9244 | + d = Types::Hash[d] | |
| 9245 | + new( | |
| 9246 | + ushort: d.fetch("ushort"), | |
| 9247 | + ) | |
| 9248 | + end | |
| 9249 | + | |
| 9250 | + def self.from_json!(json) | |
| 9251 | + from_dynamic!(JSON.parse(json)) | |
| 9252 | + end | |
| 9253 | + | |
| 9254 | + def to_dynamic | |
| 9255 | + { | |
| 9256 | + "ushort" => ushort, | |
| 9257 | + } | |
| 9258 | + end | |
| 9259 | + | |
| 9260 | + def to_json(options = nil) | |
| 9261 | + JSON.generate(to_dynamic, options) | |
| 9262 | + end | |
| 9263 | +end | |
| 9264 | + | |
| 9190 | 9265 | class Using < Dry::Struct |
| 9191 | 9266 | attribute :using, Types::Integer |
| 9192 | 9267 | |
| @@ -9567,6 +9642,9 @@ class Obj6 < Dry::Struct | ||
| 9567 | 9642 | attribute :obj6_while, While |
| 9568 | 9643 | attribute :obj6_with, With |
| 9569 | 9644 | attribute :obj6_yield, Yield |
| 9645 | + attribute :unsafe, Unsafe | |
| 9646 | + attribute :unsigned, Unsigned | |
| 9647 | + attribute :ushort, Ushort | |
| 9570 | 9648 | attribute :using, Using |
| 9571 | 9649 | attribute :utf8_json_reader, Utf8JSONReader |
| 9572 | 9650 | attribute :utf8_json_writer, Utf8JSONWriter |
| @@ -9590,6 +9668,9 @@ class Obj6 < Dry::Struct | ||
| 9590 | 9668 | obj6_while: While.from_dynamic!(d.fetch("while")), |
| 9591 | 9669 | obj6_with: With.from_dynamic!(d.fetch("with")), |
| 9592 | 9670 | obj6_yield: Yield.from_dynamic!(d.fetch("yield")), |
| 9671 | + unsafe: Unsafe.from_dynamic!(d.fetch("unsafe")), | |
| 9672 | + unsigned: Unsigned.from_dynamic!(d.fetch("unsigned")), | |
| 9673 | + ushort: Ushort.from_dynamic!(d.fetch("ushort")), | |
| 9593 | 9674 | using: Using.from_dynamic!(d.fetch("using")), |
| 9594 | 9675 | utf8_json_reader: Utf8JSONReader.from_dynamic!(d.fetch("Utf8JsonReader")), |
| 9595 | 9676 | utf8_json_writer: Utf8JSONWriter.from_dynamic!(d.fetch("Utf8JsonWriter")), |
| @@ -9618,6 +9699,9 @@ class Obj6 < Dry::Struct | ||
| 9618 | 9699 | "while" => obj6_while.to_dynamic, |
| 9619 | 9700 | "with" => obj6_with.to_dynamic, |
| 9620 | 9701 | "yield" => obj6_yield.to_dynamic, |
| 9702 | + "unsafe" => unsafe.to_dynamic, | |
| 9703 | + "unsigned" => unsigned.to_dynamic, | |
| 9704 | + "ushort" => ushort.to_dynamic, | |
| 9621 | 9705 | "using" => using.to_dynamic, |
| 9622 | 9706 | "Utf8JsonReader" => utf8_json_reader.to_dynamic, |
| 9623 | 9707 | "Utf8JsonWriter" => utf8_json_writer.to_dynamic, |
Mrustdefault / module_under_test.rs+80 −53
| @@ -1143,6 +1143,9 @@ pub struct Obj3 { | ||
| 1143 | 1143 | |
| 1144 | 1144 | pub list: List, |
| 1145 | 1145 | |
| 1146 | + #[serde(rename = "LocalDate")] | |
| 1147 | + pub local_date: LocalDate, | |
| 1148 | + | |
| 1146 | 1149 | #[serde(rename = "Locale")] |
| 1147 | 1150 | pub locale: Locale, |
| 1148 | 1151 | |
| @@ -1176,8 +1179,6 @@ pub struct Obj3 { | ||
| 1176 | 1179 | #[serde(rename = "NO")] |
| 1177 | 1180 | pub no: No, |
| 1178 | 1181 | |
| 1179 | - pub noexcept: Noexcept, | |
| 1180 | - | |
| 1181 | 1182 | #[serde(rename = "if")] |
| 1182 | 1183 | pub obj3_if: If, |
| 1183 | 1184 | |
| @@ -1435,6 +1436,12 @@ pub struct List { | ||
| 1435 | 1436 | pub list: i64, |
| 1436 | 1437 | } |
| 1437 | 1438 | |
| 1439 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1440 | +#[serde(rename_all = "PascalCase")] | |
| 1441 | +pub struct LocalDate { | |
| 1442 | + pub local_date: i64, | |
| 1443 | +} | |
| 1444 | + | |
| 1438 | 1445 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1439 | 1446 | #[serde(rename_all = "PascalCase")] |
| 1440 | 1447 | pub struct Locale { |
| @@ -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")] |
| @@ -1597,6 +1601,12 @@ pub struct Obj4 { | ||
| 1597 | 1601 | |
| 1598 | 1602 | pub of: Of, |
| 1599 | 1603 | |
| 1604 | + #[serde(rename = "OffsetDateTime")] | |
| 1605 | + pub offset_date_time: OffsetDateTime, | |
| 1606 | + | |
| 1607 | + #[serde(rename = "OffsetTime")] | |
| 1608 | + pub offset_time: OffsetTime, | |
| 1609 | + | |
| 1600 | 1610 | pub oneway: Oneway, |
| 1601 | 1611 | |
| 1602 | 1612 | pub open: Open, |
| @@ -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, |
| @@ -1810,6 +1818,18 @@ pub struct Of { | ||
| 1810 | 1818 | pub of: i64, |
| 1811 | 1819 | } |
| 1812 | 1820 | |
| 1821 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1822 | +#[serde(rename_all = "PascalCase")] | |
| 1823 | +pub struct OffsetDateTime { | |
| 1824 | + pub offset_date_time: i64, | |
| 1825 | +} | |
| 1826 | + | |
| 1827 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 1828 | +#[serde(rename_all = "PascalCase")] | |
| 1829 | +pub struct OffsetTime { | |
| 1830 | + pub offset_time: i64, | |
| 1831 | +} | |
| 1832 | + | |
| 1813 | 1833 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 1814 | 1834 | pub struct Oneway { |
| 1815 | 1835 | pub oneway: 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 = "union")] |
| 2060 | 2064 | pub obj5_union: Union, |
| 2061 | 2065 | |
| 2062 | - #[serde(rename = "unsafe")] | |
| 2063 | - pub obj5_unsafe: Unsafe, | |
| 2064 | - | |
| 2065 | 2066 | #[serde(rename = "PrimitiveKind")] |
| 2066 | 2067 | pub primitive_kind: PrimitiveKind, |
| 2067 | 2068 | |
| @@ -2074,6 +2075,13 @@ pub struct Obj5 { | ||
| 2074 | 2075 | #[serde(rename = "type")] |
| 2075 | 2076 | pub purple_type: TypeClass, |
| 2076 | 2077 | |
| 2078 | + pub sealed: Sealed, | |
| 2079 | + | |
| 2080 | + #[serde(rename = "SEL")] | |
| 2081 | + pub sel: Sel, | |
| 2082 | + | |
| 2083 | + pub select: Select, | |
| 2084 | + | |
| 2077 | 2085 | #[serde(rename = "Sendable")] |
| 2078 | 2086 | pub sendable: Sendable, |
| 2079 | 2087 | |
| @@ -2179,12 +2187,8 @@ pub struct Obj5 { | ||
| 2179 | 2187 | |
| 2180 | 2188 | pub unowned: Unowned, |
| 2181 | 2189 | |
| 2182 | - pub unsigned: Unsigned, | |
| 2183 | - | |
| 2184 | 2190 | #[serde(rename = "UseSerializers")] |
| 2185 | 2191 | pub use_serializers: UseSerializers, |
| 2186 | - | |
| 2187 | - pub ushort: Ushort, | |
| 2188 | 2192 | } |
| 2189 | 2193 | |
| 2190 | 2194 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| @@ -2250,12 +2254,6 @@ pub struct Union { | ||
| 2250 | 2254 | pub union_union: i64, |
| 2251 | 2255 | } |
| 2252 | 2256 | |
| 2253 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2254 | -pub struct Unsafe { | |
| 2255 | - #[serde(rename = "unsafe")] | |
| 2256 | - pub unsafe_unsafe: i64, | |
| 2257 | -} | |
| 2258 | - | |
| 2259 | 2257 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2260 | 2258 | #[serde(rename_all = "PascalCase")] |
| 2261 | 2259 | pub struct PrimitiveKind { |
| @@ -2280,6 +2278,22 @@ pub struct TypeClass { | ||
| 2280 | 2278 | pub type_type: i64, |
| 2281 | 2279 | } |
| 2282 | 2280 | |
| 2281 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2282 | +pub struct Sealed { | |
| 2283 | + pub sealed: i64, | |
| 2284 | +} | |
| 2285 | + | |
| 2286 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2287 | +#[serde(rename_all = "SCREAMING_SNAKE_CASE")] | |
| 2288 | +pub struct Sel { | |
| 2289 | + pub sel: i64, | |
| 2290 | +} | |
| 2291 | + | |
| 2292 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2293 | +pub struct Select { | |
| 2294 | + pub select: i64, | |
| 2295 | +} | |
| 2296 | + | |
| 2283 | 2297 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2284 | 2298 | #[serde(rename_all = "PascalCase")] |
| 2285 | 2299 | pub struct Sendable { |
| @@ -2523,26 +2537,19 @@ pub struct Unowned { | ||
| 2523 | 2537 | pub unowned: i64, |
| 2524 | 2538 | } |
| 2525 | 2539 | |
| 2526 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2527 | -pub struct Unsigned { | |
| 2528 | - pub unsigned: i64, | |
| 2529 | -} | |
| 2530 | - | |
| 2531 | 2540 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2532 | 2541 | #[serde(rename_all = "PascalCase")] |
| 2533 | 2542 | pub struct UseSerializers { |
| 2534 | 2543 | pub use_serializers: i64, |
| 2535 | 2544 | } |
| 2536 | 2545 | |
| 2537 | -#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2538 | -pub struct Ushort { | |
| 2539 | - pub ushort: i64, | |
| 2540 | -} | |
| 2541 | - | |
| 2542 | 2546 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2543 | 2547 | pub struct Obj6 { |
| 2544 | 2548 | pub dummy: i64, |
| 2545 | 2549 | |
| 2550 | + #[serde(rename = "unsafe")] | |
| 2551 | + pub obj6_unsafe: Unsafe, | |
| 2552 | + | |
| 2546 | 2553 | #[serde(rename = "virtual")] |
| 2547 | 2554 | pub obj6_virtual: Virtual, |
| 2548 | 2555 | |
| @@ -2555,6 +2562,10 @@ pub struct Obj6 { | ||
| 2555 | 2562 | #[serde(rename = "yield")] |
| 2556 | 2563 | pub obj6_yield: Yield, |
| 2557 | 2564 | |
| 2565 | + pub unsigned: Unsigned, | |
| 2566 | + | |
| 2567 | + pub ushort: Ushort, | |
| 2568 | + | |
| 2558 | 2569 | pub using: Using, |
| 2559 | 2570 | |
| 2560 | 2571 | #[serde(rename = "Utf8JsonReader")] |
| @@ -2589,6 +2600,12 @@ pub struct Obj6 { | ||
| 2589 | 2600 | pub yes: Yes, |
| 2590 | 2601 | } |
| 2591 | 2602 | |
| 2603 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2604 | +pub struct Unsafe { | |
| 2605 | + #[serde(rename = "unsafe")] | |
| 2606 | + pub unsafe_unsafe: i64, | |
| 2607 | +} | |
| 2608 | + | |
| 2592 | 2609 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2593 | 2610 | pub struct Virtual { |
| 2594 | 2611 | #[serde(rename = "virtual")] |
| @@ -2613,6 +2630,16 @@ pub struct Yield { | ||
| 2613 | 2630 | pub yield_yield: i64, |
| 2614 | 2631 | } |
| 2615 | 2632 | |
| 2633 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2634 | +pub struct Unsigned { | |
| 2635 | + pub unsigned: i64, | |
| 2636 | +} | |
| 2637 | + | |
| 2638 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2639 | +pub struct Ushort { | |
| 2640 | + pub ushort: i64, | |
| 2641 | +} | |
| 2642 | + | |
| 2616 | 2643 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2617 | 2644 | pub struct Using { |
| 2618 | 2645 | pub using: i64, |
Mscala3-upickledefault / TopLevel.scala+52 −37
| @@ -803,6 +803,7 @@ case class Obj3 ( | ||
| 803 | 803 | val left : Left, |
| 804 | 804 | val let : Let, |
| 805 | 805 | val list : ListClass, |
| 806 | + val LocalDate : LocalDate, | |
| 806 | 807 | val Locale : Locale, |
| 807 | 808 | val lock : Lock, |
| 808 | 809 | val long : LongClass, |
| @@ -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, |
| @@ -1002,6 +1002,10 @@ case class ListClass ( | ||
| 1002 | 1002 | val list : Long |
| 1003 | 1003 | ) derives OptionPickler.ReadWriter |
| 1004 | 1004 | |
| 1005 | +case class LocalDate ( | |
| 1006 | + val LocalDate : Long | |
| 1007 | +) derives OptionPickler.ReadWriter | |
| 1008 | + | |
| 1005 | 1009 | case class Locale ( |
| 1006 | 1010 | val Locale : Long |
| 1007 | 1011 | ) 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,9 +1107,10 @@ 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 | 1111 | val of : Of, |
| 1112 | + val OffsetDateTime : OffsetDateTime, | |
| 1113 | + val OffsetTime : OffsetTime, | |
| 1112 | 1114 | val oneway : Oneway, |
| 1113 | 1115 | val open : Open, |
| 1114 | 1116 | val operator : Operator, |
| @@ -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,10 +1242,6 @@ 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 |
| @@ -1250,6 +1250,14 @@ case class Of ( | ||
| 1250 | 1250 | val of : Long |
| 1251 | 1251 | ) derives OptionPickler.ReadWriter |
| 1252 | 1252 | |
| 1253 | +case class OffsetDateTime ( | |
| 1254 | + val OffsetDateTime : Long | |
| 1255 | +) derives OptionPickler.ReadWriter | |
| 1256 | + | |
| 1257 | +case class OffsetTime ( | |
| 1258 | + val OffsetTime : Long | |
| 1259 | +) derives OptionPickler.ReadWriter | |
| 1260 | + | |
| 1253 | 1261 | case class Oneway ( |
| 1254 | 1262 | val oneway : Long |
| 1255 | 1263 | ) derives OptionPickler.ReadWriter |
| @@ -1398,17 +1406,10 @@ 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 | 1411 | val KSerializer : KSerializer, |
| 1412 | + val `sealed` : Sealed, | |
| 1412 | 1413 | val self : SelfClass, |
| 1413 | 1414 | val `super` : Super, |
| 1414 | 1415 | val `then` : Then, |
| @@ -1420,6 +1421,8 @@ case class Obj5 ( | ||
| 1420 | 1421 | val PrimitiveKind : PrimitiveKind, |
| 1421 | 1422 | val `true` : TrueClass, |
| 1422 | 1423 | val `type` : TypeClass, |
| 1424 | + val SEL : Sel, | |
| 1425 | + val select : Select, | |
| 1423 | 1426 | val Self : Self, |
| 1424 | 1427 | val Sendable : Sendable, |
| 1425 | 1428 | val SerialDescriptor : SerialDescriptor, |
| @@ -1470,16 +1473,17 @@ case class Obj5 ( | ||
| 1470 | 1473 | val undefined : Undefined, |
| 1471 | 1474 | val union : Union, |
| 1472 | 1475 | val unowned : Unowned, |
| 1473 | - val unsafe : Unsafe, | |
| 1474 | - val unsigned : Unsigned, | |
| 1475 | - val UseSerializers : UseSerializers, | |
| 1476 | - val ushort : Ushort | |
| 1476 | + val UseSerializers : UseSerializers | |
| 1477 | 1477 | ) derives OptionPickler.ReadWriter |
| 1478 | 1478 | |
| 1479 | 1479 | case class KSerializer ( |
| 1480 | 1480 | val KSerializer : Long |
| 1481 | 1481 | ) derives OptionPickler.ReadWriter |
| 1482 | 1482 | |
| 1483 | +case class Sealed ( | |
| 1484 | + val `sealed` : Long | |
| 1485 | +) derives OptionPickler.ReadWriter | |
| 1486 | + | |
| 1483 | 1487 | case class SelfClass ( |
| 1484 | 1488 | val self : Long |
| 1485 | 1489 | ) derives OptionPickler.ReadWriter |
| @@ -1524,6 +1528,14 @@ case class TypeClass ( | ||
| 1524 | 1528 | val `type` : Long |
| 1525 | 1529 | ) derives OptionPickler.ReadWriter |
| 1526 | 1530 | |
| 1531 | +case class Sel ( | |
| 1532 | + val SEL : Long | |
| 1533 | +) derives OptionPickler.ReadWriter | |
| 1534 | + | |
| 1535 | +case class Select ( | |
| 1536 | + val select : Long | |
| 1537 | +) derives OptionPickler.ReadWriter | |
| 1538 | + | |
| 1527 | 1539 | case class Self ( |
| 1528 | 1540 | val Self : Long |
| 1529 | 1541 | ) derives OptionPickler.ReadWriter |
| @@ -1718,28 +1730,19 @@ case class Unowned ( | ||
| 1718 | 1730 | val unowned : Long |
| 1719 | 1731 | ) derives OptionPickler.ReadWriter |
| 1720 | 1732 | |
| 1721 | -case class Unsafe ( | |
| 1722 | - val unsafe : Long | |
| 1723 | -) derives OptionPickler.ReadWriter | |
| 1724 | - | |
| 1725 | -case class Unsigned ( | |
| 1726 | - val unsigned : Long | |
| 1727 | -) derives OptionPickler.ReadWriter | |
| 1728 | - | |
| 1729 | 1733 | case class UseSerializers ( |
| 1730 | 1734 | val UseSerializers : Long |
| 1731 | 1735 | ) derives OptionPickler.ReadWriter |
| 1732 | 1736 | |
| 1733 | -case class Ushort ( | |
| 1734 | - val ushort : Long | |
| 1735 | -) derives OptionPickler.ReadWriter | |
| 1736 | - | |
| 1737 | 1737 | case class Obj6 ( |
| 1738 | 1738 | val dummy : Long, |
| 1739 | 1739 | val `var` : Var, |
| 1740 | 1740 | val `while` : While, |
| 1741 | 1741 | val `with` : With, |
| 1742 | 1742 | val `yield` : Yield, |
| 1743 | + val unsafe : Unsafe, | |
| 1744 | + val unsigned : Unsigned, | |
| 1745 | + val ushort : Ushort, | |
| 1743 | 1746 | val using : Using, |
| 1744 | 1747 | val Utf8JsonReader : Utf8JSONReader, |
| 1745 | 1748 | val Utf8JsonWriter : Utf8JSONWriter, |
| @@ -1772,6 +1775,18 @@ case class Yield ( | ||
| 1772 | 1775 | val `yield` : Long |
| 1773 | 1776 | ) derives OptionPickler.ReadWriter |
| 1774 | 1777 | |
| 1778 | +case class Unsafe ( | |
| 1779 | + val unsafe : Long | |
| 1780 | +) derives OptionPickler.ReadWriter | |
| 1781 | + | |
| 1782 | +case class Unsigned ( | |
| 1783 | + val unsigned : Long | |
| 1784 | +) derives OptionPickler.ReadWriter | |
| 1785 | + | |
| 1786 | +case class Ushort ( | |
| 1787 | + val ushort : Long | |
| 1788 | +) derives OptionPickler.ReadWriter | |
| 1789 | + | |
| 1775 | 1790 | case class Using ( |
| 1776 | 1791 | val using : Long |
| 1777 | 1792 | ) derives OptionPickler.ReadWriter |
Mscala3default / TopLevel.scala+52 −37
| @@ -753,6 +753,7 @@ case class Obj3 ( | ||
| 753 | 753 | val left : Left, |
| 754 | 754 | val let : Let, |
| 755 | 755 | val list : ListClass, |
| 756 | + val LocalDate : LocalDate, | |
| 756 | 757 | val Locale : Locale, |
| 757 | 758 | val lock : Lock, |
| 758 | 759 | val long : LongClass, |
| @@ -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, |
| @@ -969,6 +969,10 @@ case class ListClass ( | ||
| 969 | 969 | val list : Long |
| 970 | 970 | ) derives Encoder.AsObject, Decoder |
| 971 | 971 | |
| 972 | +case class LocalDate ( | |
| 973 | + val LocalDate : Long | |
| 974 | +) derives Encoder.AsObject, Decoder | |
| 975 | + | |
| 972 | 976 | case class Locale ( |
| 973 | 977 | val Locale : Long |
| 974 | 978 | ) 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,9 +1074,10 @@ 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 | 1078 | val of : Of, |
| 1079 | + val OffsetDateTime : OffsetDateTime, | |
| 1080 | + val OffsetTime : OffsetTime, | |
| 1079 | 1081 | val oneway : Oneway, |
| 1080 | 1082 | val open : Open, |
| 1081 | 1083 | val operator : Operator, |
| @@ -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,10 +1209,6 @@ 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 |
| @@ -1217,6 +1217,14 @@ case class Of ( | ||
| 1217 | 1217 | val of : Long |
| 1218 | 1218 | ) derives Encoder.AsObject, Decoder |
| 1219 | 1219 | |
| 1220 | +case class OffsetDateTime ( | |
| 1221 | + val OffsetDateTime : Long | |
| 1222 | +) derives Encoder.AsObject, Decoder | |
| 1223 | + | |
| 1224 | +case class OffsetTime ( | |
| 1225 | + val OffsetTime : Long | |
| 1226 | +) derives Encoder.AsObject, Decoder | |
| 1227 | + | |
| 1220 | 1228 | case class Oneway ( |
| 1221 | 1229 | val oneway : Long |
| 1222 | 1230 | ) derives Encoder.AsObject, Decoder |
| @@ -1365,17 +1373,10 @@ 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 | 1378 | val KSerializer : KSerializer, |
| 1379 | + val `sealed` : Sealed, | |
| 1379 | 1380 | val self : SelfClass, |
| 1380 | 1381 | val `super` : Super, |
| 1381 | 1382 | val `then` : Then, |
| @@ -1387,6 +1388,8 @@ case class Obj5 ( | ||
| 1387 | 1388 | val PrimitiveKind : PrimitiveKind, |
| 1388 | 1389 | val `true` : TrueClass, |
| 1389 | 1390 | val `type` : TypeClass, |
| 1391 | + val SEL : Sel, | |
| 1392 | + val select : Select, | |
| 1390 | 1393 | val Self : Self, |
| 1391 | 1394 | val Sendable : Sendable, |
| 1392 | 1395 | val SerialDescriptor : SerialDescriptor, |
| @@ -1435,10 +1438,7 @@ case class Obj5 ( | ||
| 1435 | 1438 | val undefined : Undefined, |
| 1436 | 1439 | val union : Union, |
| 1437 | 1440 | val unowned : Unowned, |
| 1438 | - val unsafe : Unsafe, | |
| 1439 | - val unsigned : Unsigned, | |
| 1440 | - val UseSerializers : UseSerializers, | |
| 1441 | - val ushort : Ushort | |
| 1441 | + val UseSerializers : UseSerializers | |
| 1442 | 1442 | ) |
| 1443 | 1443 | |
| 1444 | 1444 | object Obj5: |
| @@ -1455,6 +1455,10 @@ case class KSerializer ( | ||
| 1455 | 1455 | val KSerializer : Long |
| 1456 | 1456 | ) derives Encoder.AsObject, Decoder |
| 1457 | 1457 | |
| 1458 | +case class Sealed ( | |
| 1459 | + val `sealed` : Long | |
| 1460 | +) derives Encoder.AsObject, Decoder | |
| 1461 | + | |
| 1458 | 1462 | case class SelfClass ( |
| 1459 | 1463 | val self : Long |
| 1460 | 1464 | ) derives Encoder.AsObject, Decoder |
| @@ -1499,6 +1503,14 @@ case class TypeClass ( | ||
| 1499 | 1503 | val `type` : Long |
| 1500 | 1504 | ) derives Encoder.AsObject, Decoder |
| 1501 | 1505 | |
| 1506 | +case class Sel ( | |
| 1507 | + val SEL : Long | |
| 1508 | +) derives Encoder.AsObject, Decoder | |
| 1509 | + | |
| 1510 | +case class Select ( | |
| 1511 | + val select : Long | |
| 1512 | +) derives Encoder.AsObject, Decoder | |
| 1513 | + | |
| 1502 | 1514 | case class Self ( |
| 1503 | 1515 | val Self : Long |
| 1504 | 1516 | ) derives Encoder.AsObject, Decoder |
| @@ -1709,28 +1721,19 @@ case class Unowned ( | ||
| 1709 | 1721 | val unowned : Long |
| 1710 | 1722 | ) derives Encoder.AsObject, Decoder |
| 1711 | 1723 | |
| 1712 | -case class Unsafe ( | |
| 1713 | - val unsafe : Long | |
| 1714 | -) derives Encoder.AsObject, Decoder | |
| 1715 | - | |
| 1716 | -case class Unsigned ( | |
| 1717 | - val unsigned : Long | |
| 1718 | -) derives Encoder.AsObject, Decoder | |
| 1719 | - | |
| 1720 | 1724 | case class UseSerializers ( |
| 1721 | 1725 | val UseSerializers : Long |
| 1722 | 1726 | ) derives Encoder.AsObject, Decoder |
| 1723 | 1727 | |
| 1724 | -case class Ushort ( | |
| 1725 | - val ushort : Long | |
| 1726 | -) derives Encoder.AsObject, Decoder | |
| 1727 | - | |
| 1728 | 1728 | case class Obj6 ( |
| 1729 | 1729 | val dummy : Long, |
| 1730 | 1730 | val `var` : Var, |
| 1731 | 1731 | val `while` : While, |
| 1732 | 1732 | val `with` : With, |
| 1733 | 1733 | val `yield` : Yield, |
| 1734 | + val unsafe : Unsafe, | |
| 1735 | + val unsigned : Unsigned, | |
| 1736 | + val ushort : Ushort, | |
| 1734 | 1737 | val using : Using, |
| 1735 | 1738 | val Utf8JsonReader : Utf8JSONReader, |
| 1736 | 1739 | val Utf8JsonWriter : Utf8JSONWriter, |
| @@ -1763,6 +1766,18 @@ case class Yield ( | ||
| 1763 | 1766 | val `yield` : Long |
| 1764 | 1767 | ) derives Encoder.AsObject, Decoder |
| 1765 | 1768 | |
| 1769 | +case class Unsafe ( | |
| 1770 | + val unsafe : Long | |
| 1771 | +) derives Encoder.AsObject, Decoder | |
| 1772 | + | |
| 1773 | +case class Unsigned ( | |
| 1774 | + val unsigned : Long | |
| 1775 | +) derives Encoder.AsObject, Decoder | |
| 1776 | + | |
| 1777 | +case class Ushort ( | |
| 1778 | + val ushort : Long | |
| 1779 | +) derives Encoder.AsObject, Decoder | |
| 1780 | + | |
| 1766 | 1781 | case class Using ( |
| 1767 | 1782 | val using : Long |
| 1768 | 1783 | ) derives Encoder.AsObject, Decoder |
Mswiftdefault / quicktype.swift+484 −340
| @@ -6347,6 +6347,7 @@ struct Obj3: Codable { | ||
| 6347 | 6347 | let jsonWriter: JSONWriter |
| 6348 | 6348 | let lambda: Lambda |
| 6349 | 6349 | let list: List |
| 6350 | + let localDate: LocalDate | |
| 6350 | 6351 | let locale: LocaleClass |
| 6351 | 6352 | let lock: Lock |
| 6352 | 6353 | let long: Long |
| @@ -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 |
| @@ -6414,6 +6414,7 @@ struct Obj3: Codable { | ||
| 6414 | 6414 | case jsonWriter = "json_writer" |
| 6415 | 6415 | case lambda = "lambda" |
| 6416 | 6416 | case list = "list" |
| 6417 | + case localDate = "LocalDate" | |
| 6417 | 6418 | case locale = "Locale" |
| 6418 | 6419 | case lock = "lock" |
| 6419 | 6420 | case long = "long" |
| @@ -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" |
| @@ -6501,6 +6501,7 @@ extension Obj3 { | ||
| 6501 | 6501 | jsonWriter: JSONWriter? = nil, |
| 6502 | 6502 | lambda: Lambda? = nil, |
| 6503 | 6503 | list: List? = nil, |
| 6504 | + localDate: LocalDate? = nil, | |
| 6504 | 6505 | locale: LocaleClass? = nil, |
| 6505 | 6506 | lock: Lock? = nil, |
| 6506 | 6507 | long: Long? = 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, |
| @@ -6568,6 +6568,7 @@ extension Obj3 { | ||
| 6568 | 6568 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 6569 | 6569 | lambda: lambda ?? self.lambda, |
| 6570 | 6570 | list: list ?? self.list, |
| 6571 | + localDate: localDate ?? self.localDate, | |
| 6571 | 6572 | locale: locale ?? self.locale, |
| 6572 | 6573 | lock: lock ?? self.lock, |
| 6573 | 6574 | long: long ?? self.long, |
| @@ -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, |
| @@ -8106,6 +8106,50 @@ extension List { | ||
| 8106 | 8106 | } |
| 8107 | 8107 | } |
| 8108 | 8108 | |
| 8109 | +// MARK: - LocalDate | |
| 8110 | +struct LocalDate: Codable { | |
| 8111 | + let localDate: Int | |
| 8112 | + | |
| 8113 | + enum CodingKeys: String, CodingKey { | |
| 8114 | + case localDate = "LocalDate" | |
| 8115 | + } | |
| 8116 | +} | |
| 8117 | + | |
| 8118 | +// MARK: LocalDate convenience initializers and mutators | |
| 8119 | + | |
| 8120 | +extension LocalDate { | |
| 8121 | + init(data: Data) throws { | |
| 8122 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 8123 | + } | |
| 8124 | + | |
| 8125 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8126 | + guard let data = json.data(using: encoding) else { | |
| 8127 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8128 | + } | |
| 8129 | + try self.init(data: data) | |
| 8130 | + } | |
| 8131 | + | |
| 8132 | + init(fromURL url: URL) throws { | |
| 8133 | + try self.init(data: try Data(contentsOf: url)) | |
| 8134 | + } | |
| 8135 | + | |
| 8136 | + func with( | |
| 8137 | + localDate: Int? = nil | |
| 8138 | + ) -> LocalDate { | |
| 8139 | + return LocalDate( | |
| 8140 | + localDate: localDate ?? self.localDate | |
| 8141 | + ) | |
| 8142 | + } | |
| 8143 | + | |
| 8144 | + func jsonData() throws -> Data { | |
| 8145 | + return try newJSONEncoder().encode(self) | |
| 8146 | + } | |
| 8147 | + | |
| 8148 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8149 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 8150 | + } | |
| 8151 | +} | |
| 8152 | + | |
| 8109 | 8153 | // MARK: - LocaleClass |
| 8110 | 8154 | struct LocaleClass: Codable { |
| 8111 | 8155 | let locale: 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 |
| @@ -9462,6 +9463,8 @@ struct Obj4: Codable { | ||
| 9462 | 9463 | let object: Object |
| 9463 | 9464 | let objectMapper: ObjectMapper |
| 9464 | 9465 | let of: Of |
| 9466 | + let offsetDateTime: OffsetDateTime | |
| 9467 | + let offsetTime: OffsetTime | |
| 9465 | 9468 | let oneway: Oneway |
| 9466 | 9469 | let or: Or |
| 9467 | 9470 | let orEq: OrEq |
| @@ -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" |
| @@ -9529,6 +9530,8 @@ struct Obj4: Codable { | ||
| 9529 | 9530 | case object = "object" |
| 9530 | 9531 | case objectMapper = "ObjectMapper" |
| 9531 | 9532 | case of = "of" |
| 9533 | + case offsetDateTime = "OffsetDateTime" | |
| 9534 | + case offsetTime = "OffsetTime" | |
| 9532 | 9535 | case oneway = "oneway" |
| 9533 | 9536 | case or = "or" |
| 9534 | 9537 | case orEq = "or_eq" |
| @@ -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, |
| @@ -9616,6 +9617,8 @@ extension Obj4 { | ||
| 9616 | 9617 | object: Object? = nil, |
| 9617 | 9618 | objectMapper: ObjectMapper? = nil, |
| 9618 | 9619 | of: Of? = nil, |
| 9620 | + offsetDateTime: OffsetDateTime? = nil, | |
| 9621 | + offsetTime: OffsetTime? = nil, | |
| 9619 | 9622 | oneway: Oneway? = nil, |
| 9620 | 9623 | or: Or? = nil, |
| 9621 | 9624 | orEq: OrEq? = 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, |
| @@ -9683,6 +9684,8 @@ extension Obj4 { | ||
| 9683 | 9684 | object: object ?? self.object, |
| 9684 | 9685 | objectMapper: objectMapper ?? self.objectMapper, |
| 9685 | 9686 | of: of ?? self.of, |
| 9687 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 9688 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 9686 | 9689 | oneway: oneway ?? self.oneway, |
| 9687 | 9690 | or: or ?? self.or, |
| 9688 | 9691 | orEq: orEq ?? self.orEq, |
| @@ -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 |
| @@ -11178,6 +11222,94 @@ extension Of { | ||
| 11178 | 11222 | } |
| 11179 | 11223 | } |
| 11180 | 11224 | |
| 11225 | +// MARK: - OffsetDateTime | |
| 11226 | +struct OffsetDateTime: Codable { | |
| 11227 | + let offsetDateTime: Int | |
| 11228 | + | |
| 11229 | + enum CodingKeys: String, CodingKey { | |
| 11230 | + case offsetDateTime = "OffsetDateTime" | |
| 11231 | + } | |
| 11232 | +} | |
| 11233 | + | |
| 11234 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 11235 | + | |
| 11236 | +extension OffsetDateTime { | |
| 11237 | + init(data: Data) throws { | |
| 11238 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 11239 | + } | |
| 11240 | + | |
| 11241 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11242 | + guard let data = json.data(using: encoding) else { | |
| 11243 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11244 | + } | |
| 11245 | + try self.init(data: data) | |
| 11246 | + } | |
| 11247 | + | |
| 11248 | + init(fromURL url: URL) throws { | |
| 11249 | + try self.init(data: try Data(contentsOf: url)) | |
| 11250 | + } | |
| 11251 | + | |
| 11252 | + func with( | |
| 11253 | + offsetDateTime: Int? = nil | |
| 11254 | + ) -> OffsetDateTime { | |
| 11255 | + return OffsetDateTime( | |
| 11256 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 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: - OffsetTime | |
| 11270 | +struct OffsetTime: Codable { | |
| 11271 | + let offsetTime: Int | |
| 11272 | + | |
| 11273 | + enum CodingKeys: String, CodingKey { | |
| 11274 | + case offsetTime = "OffsetTime" | |
| 11275 | + } | |
| 11276 | +} | |
| 11277 | + | |
| 11278 | +// MARK: OffsetTime convenience initializers and mutators | |
| 11279 | + | |
| 11280 | +extension OffsetTime { | |
| 11281 | + init(data: Data) throws { | |
| 11282 | + self = try newJSONDecoder().decode(OffsetTime.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 | + offsetTime: Int? = nil | |
| 11298 | + ) -> OffsetTime { | |
| 11299 | + return OffsetTime( | |
| 11300 | + offsetTime: offsetTime ?? self.offsetTime | |
| 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 | + | |
| 11181 | 11313 | // MARK: - Oneway |
| 11182 | 11314 | struct Oneway: Codable { |
| 11183 | 11315 | let oneway: Int |
| @@ -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 |
| @@ -12563,6 +12563,9 @@ struct Obj5: Codable { | ||
| 12563 | 12563 | let primitiveKind: PrimitiveKind |
| 12564 | 12564 | let purpleSelf: Obj5Self |
| 12565 | 12565 | let purpleTrue: TrueClass |
| 12566 | + let sealed: Sealed | |
| 12567 | + let sel: Sel | |
| 12568 | + let select: Select | |
| 12566 | 12569 | let sendable: Sendable |
| 12567 | 12570 | let serialDescriptor: SerialDescriptor |
| 12568 | 12571 | let serialName: SerialName |
| @@ -12605,10 +12608,7 @@ struct Obj5: Codable { | ||
| 12605 | 12608 | let unchecked: Unchecked |
| 12606 | 12609 | let undefined: Undefined |
| 12607 | 12610 | let union: Union |
| 12608 | - let unsafe: Unsafe | |
| 12609 | - let unsigned: Unsigned | |
| 12610 | 12611 | let useSerializers: UseSerializers |
| 12611 | - let ushort: Ushort | |
| 12612 | 12612 | |
| 12613 | 12613 | enum CodingKeys: String, CodingKey { |
| 12614 | 12614 | case dummy = "dummy" |
| @@ -12630,6 +12630,9 @@ struct Obj5: Codable { | ||
| 12630 | 12630 | case primitiveKind = "PrimitiveKind" |
| 12631 | 12631 | case purpleSelf = "self" |
| 12632 | 12632 | case purpleTrue = "true" |
| 12633 | + case sealed = "sealed" | |
| 12634 | + case sel = "SEL" | |
| 12635 | + case select = "select" | |
| 12633 | 12636 | case sendable = "Sendable" |
| 12634 | 12637 | case serialDescriptor = "SerialDescriptor" |
| 12635 | 12638 | case serialName = "SerialName" |
| @@ -12672,10 +12675,7 @@ struct Obj5: Codable { | ||
| 12672 | 12675 | case unchecked = "unchecked" |
| 12673 | 12676 | case undefined = "undefined" |
| 12674 | 12677 | case union = "union" |
| 12675 | - case unsafe = "unsafe" | |
| 12676 | - case unsigned = "unsigned" | |
| 12677 | 12678 | case useSerializers = "UseSerializers" |
| 12678 | - case ushort = "ushort" | |
| 12679 | 12679 | } |
| 12680 | 12680 | } |
| 12681 | 12681 | |
| @@ -12717,6 +12717,9 @@ extension Obj5 { | ||
| 12717 | 12717 | primitiveKind: PrimitiveKind? = nil, |
| 12718 | 12718 | purpleSelf: Obj5Self? = nil, |
| 12719 | 12719 | purpleTrue: TrueClass? = nil, |
| 12720 | + sealed: Sealed? = nil, | |
| 12721 | + sel: Sel? = nil, | |
| 12722 | + select: Select? = nil, | |
| 12720 | 12723 | sendable: Sendable? = nil, |
| 12721 | 12724 | serialDescriptor: SerialDescriptor? = nil, |
| 12722 | 12725 | serialName: SerialName? = nil, |
| @@ -12759,10 +12762,7 @@ extension Obj5 { | ||
| 12759 | 12762 | unchecked: Unchecked? = nil, |
| 12760 | 12763 | undefined: Undefined? = nil, |
| 12761 | 12764 | union: Union? = nil, |
| 12762 | - unsafe: Unsafe? = nil, | |
| 12763 | - unsigned: Unsigned? = nil, | |
| 12764 | - useSerializers: UseSerializers? = nil, | |
| 12765 | - ushort: Ushort? = nil | |
| 12765 | + useSerializers: UseSerializers? = nil | |
| 12766 | 12766 | ) -> Obj5 { |
| 12767 | 12767 | return Obj5( |
| 12768 | 12768 | dummy: dummy ?? self.dummy, |
| @@ -12784,6 +12784,9 @@ extension Obj5 { | ||
| 12784 | 12784 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 12785 | 12785 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 12786 | 12786 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 12787 | + sealed: sealed ?? self.sealed, | |
| 12788 | + sel: sel ?? self.sel, | |
| 12789 | + select: select ?? self.select, | |
| 12787 | 12790 | sendable: sendable ?? self.sendable, |
| 12788 | 12791 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| 12789 | 12792 | serialName: serialName ?? self.serialName, |
| @@ -12826,10 +12829,7 @@ extension Obj5 { | ||
| 12826 | 12829 | unchecked: unchecked ?? self.unchecked, |
| 12827 | 12830 | undefined: undefined ?? self.undefined, |
| 12828 | 12831 | union: union ?? self.union, |
| 12829 | - unsafe: unsafe ?? self.unsafe, | |
| 12830 | - unsigned: unsigned ?? self.unsigned, | |
| 12831 | - useSerializers: useSerializers ?? self.useSerializers, | |
| 12832 | - ushort: ushort ?? self.ushort | |
| 12832 | + useSerializers: useSerializers ?? self.useSerializers | |
| 12833 | 12833 | ) |
| 12834 | 12834 | } |
| 12835 | 12835 | |
| @@ -13634,6 +13634,138 @@ extension TrueClass { | ||
| 13634 | 13634 | } |
| 13635 | 13635 | } |
| 13636 | 13636 | |
| 13637 | +// MARK: - Sealed | |
| 13638 | +struct Sealed: Codable { | |
| 13639 | + let sealed: Int | |
| 13640 | + | |
| 13641 | + enum CodingKeys: String, CodingKey { | |
| 13642 | + case sealed = "sealed" | |
| 13643 | + } | |
| 13644 | +} | |
| 13645 | + | |
| 13646 | +// MARK: Sealed convenience initializers and mutators | |
| 13647 | + | |
| 13648 | +extension Sealed { | |
| 13649 | + init(data: Data) throws { | |
| 13650 | + self = try newJSONDecoder().decode(Sealed.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 | + sealed: Int? = nil | |
| 13666 | + ) -> Sealed { | |
| 13667 | + return Sealed( | |
| 13668 | + sealed: sealed ?? self.sealed | |
| 13669 | + ) | |
| 13670 | + } | |
| 13671 | + | |
| 13672 | + func jsonData() throws -> Data { | |
| 13673 | + return try newJSONEncoder().encode(self) | |
| 13674 | + } | |
| 13675 | + | |
| 13676 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13677 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13678 | + } | |
| 13679 | +} | |
| 13680 | + | |
| 13681 | +// MARK: - Sel | |
| 13682 | +struct Sel: Codable { | |
| 13683 | + let sel: Int | |
| 13684 | + | |
| 13685 | + enum CodingKeys: String, CodingKey { | |
| 13686 | + case sel = "SEL" | |
| 13687 | + } | |
| 13688 | +} | |
| 13689 | + | |
| 13690 | +// MARK: Sel convenience initializers and mutators | |
| 13691 | + | |
| 13692 | +extension Sel { | |
| 13693 | + init(data: Data) throws { | |
| 13694 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 13695 | + } | |
| 13696 | + | |
| 13697 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13698 | + guard let data = json.data(using: encoding) else { | |
| 13699 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13700 | + } | |
| 13701 | + try self.init(data: data) | |
| 13702 | + } | |
| 13703 | + | |
| 13704 | + init(fromURL url: URL) throws { | |
| 13705 | + try self.init(data: try Data(contentsOf: url)) | |
| 13706 | + } | |
| 13707 | + | |
| 13708 | + func with( | |
| 13709 | + sel: Int? = nil | |
| 13710 | + ) -> Sel { | |
| 13711 | + return Sel( | |
| 13712 | + sel: sel ?? self.sel | |
| 13713 | + ) | |
| 13714 | + } | |
| 13715 | + | |
| 13716 | + func jsonData() throws -> Data { | |
| 13717 | + return try newJSONEncoder().encode(self) | |
| 13718 | + } | |
| 13719 | + | |
| 13720 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13721 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13722 | + } | |
| 13723 | +} | |
| 13724 | + | |
| 13725 | +// MARK: - Select | |
| 13726 | +struct Select: Codable { | |
| 13727 | + let select: Int | |
| 13728 | + | |
| 13729 | + enum CodingKeys: String, CodingKey { | |
| 13730 | + case select = "select" | |
| 13731 | + } | |
| 13732 | +} | |
| 13733 | + | |
| 13734 | +// MARK: Select convenience initializers and mutators | |
| 13735 | + | |
| 13736 | +extension Select { | |
| 13737 | + init(data: Data) throws { | |
| 13738 | + self = try newJSONDecoder().decode(Select.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 | + select: Int? = nil | |
| 13754 | + ) -> Select { | |
| 13755 | + return Select( | |
| 13756 | + select: select ?? self.select | |
| 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: - Sendable |
| 13638 | 13770 | struct Sendable: Codable { |
| 13639 | 13771 | let sendable: Int |
| @@ -15482,94 +15614,6 @@ extension Union { | ||
| 15482 | 15614 | } |
| 15483 | 15615 | } |
| 15484 | 15616 | |
| 15485 | -// MARK: - Unsafe | |
| 15486 | -struct Unsafe: Codable { | |
| 15487 | - let unsafe: Int | |
| 15488 | - | |
| 15489 | - enum CodingKeys: String, CodingKey { | |
| 15490 | - case unsafe = "unsafe" | |
| 15491 | - } | |
| 15492 | -} | |
| 15493 | - | |
| 15494 | -// MARK: Unsafe convenience initializers and mutators | |
| 15495 | - | |
| 15496 | -extension Unsafe { | |
| 15497 | - init(data: Data) throws { | |
| 15498 | - self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 15499 | - } | |
| 15500 | - | |
| 15501 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15502 | - guard let data = json.data(using: encoding) else { | |
| 15503 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15504 | - } | |
| 15505 | - try self.init(data: data) | |
| 15506 | - } | |
| 15507 | - | |
| 15508 | - init(fromURL url: URL) throws { | |
| 15509 | - try self.init(data: try Data(contentsOf: url)) | |
| 15510 | - } | |
| 15511 | - | |
| 15512 | - func with( | |
| 15513 | - unsafe: Int? = nil | |
| 15514 | - ) -> Unsafe { | |
| 15515 | - return Unsafe( | |
| 15516 | - unsafe: unsafe ?? self.unsafe | |
| 15517 | - ) | |
| 15518 | - } | |
| 15519 | - | |
| 15520 | - func jsonData() throws -> Data { | |
| 15521 | - return try newJSONEncoder().encode(self) | |
| 15522 | - } | |
| 15523 | - | |
| 15524 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15525 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15526 | - } | |
| 15527 | -} | |
| 15528 | - | |
| 15529 | -// MARK: - Unsigned | |
| 15530 | -struct Unsigned: Codable { | |
| 15531 | - let unsigned: Int | |
| 15532 | - | |
| 15533 | - enum CodingKeys: String, CodingKey { | |
| 15534 | - case unsigned = "unsigned" | |
| 15535 | - } | |
| 15536 | -} | |
| 15537 | - | |
| 15538 | -// MARK: Unsigned convenience initializers and mutators | |
| 15539 | - | |
| 15540 | -extension Unsigned { | |
| 15541 | - init(data: Data) throws { | |
| 15542 | - self = try newJSONDecoder().decode(Unsigned.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 | - unsigned: Int? = nil | |
| 15558 | - ) -> Unsigned { | |
| 15559 | - return Unsigned( | |
| 15560 | - unsigned: unsigned ?? self.unsigned | |
| 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 | 15617 | // MARK: - UseSerializers |
| 15574 | 15618 | struct UseSerializers: Codable { |
| 15575 | 15619 | let useSerializers: Int |
| @@ -15614,50 +15658,6 @@ extension UseSerializers { | ||
| 15614 | 15658 | } |
| 15615 | 15659 | } |
| 15616 | 15660 | |
| 15617 | -// MARK: - Ushort | |
| 15618 | -struct Ushort: Codable { | |
| 15619 | - let ushort: Int | |
| 15620 | - | |
| 15621 | - enum CodingKeys: String, CodingKey { | |
| 15622 | - case ushort = "ushort" | |
| 15623 | - } | |
| 15624 | -} | |
| 15625 | - | |
| 15626 | -// MARK: Ushort convenience initializers and mutators | |
| 15627 | - | |
| 15628 | -extension Ushort { | |
| 15629 | - init(data: Data) throws { | |
| 15630 | - self = try newJSONDecoder().decode(Ushort.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 | - ushort: Int? = nil | |
| 15646 | - ) -> Ushort { | |
| 15647 | - return Ushort( | |
| 15648 | - ushort: ushort ?? self.ushort | |
| 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 |
| @@ -15666,6 +15666,9 @@ struct Obj6: Codable { | ||
| 15666 | 15666 | let obj6Where: Where |
| 15667 | 15667 | let obj6While: While |
| 15668 | 15668 | let obj6WillSet: WillSet |
| 15669 | + let unsafe: Unsafe | |
| 15670 | + let unsigned: Unsigned | |
| 15671 | + let ushort: Ushort | |
| 15669 | 15672 | let using: Using |
| 15670 | 15673 | let utf8JSONReader: Utf8JSONReader |
| 15671 | 15674 | let utf8JSONWriter: Utf8JSONWriter |
| @@ -15687,6 +15690,9 @@ struct Obj6: Codable { | ||
| 15687 | 15690 | case obj6Where = "where" |
| 15688 | 15691 | case obj6While = "while" |
| 15689 | 15692 | case obj6WillSet = "willSet" |
| 15693 | + case unsafe = "unsafe" | |
| 15694 | + case unsigned = "unsigned" | |
| 15695 | + case ushort = "ushort" | |
| 15690 | 15696 | case using = "using" |
| 15691 | 15697 | case utf8JSONReader = "Utf8JsonReader" |
| 15692 | 15698 | case utf8JSONWriter = "Utf8JsonWriter" |
| @@ -15728,6 +15734,9 @@ extension Obj6 { | ||
| 15728 | 15734 | obj6Where: Where? = nil, |
| 15729 | 15735 | obj6While: While? = nil, |
| 15730 | 15736 | obj6WillSet: WillSet? = nil, |
| 15737 | + unsafe: Unsafe? = nil, | |
| 15738 | + unsigned: Unsigned? = nil, | |
| 15739 | + ushort: Ushort? = nil, | |
| 15731 | 15740 | using: Using? = nil, |
| 15732 | 15741 | utf8JSONReader: Utf8JSONReader? = nil, |
| 15733 | 15742 | utf8JSONWriter: Utf8JSONWriter? = nil, |
| @@ -15749,6 +15758,9 @@ extension Obj6 { | ||
| 15749 | 15758 | obj6Where: obj6Where ?? self.obj6Where, |
| 15750 | 15759 | obj6While: obj6While ?? self.obj6While, |
| 15751 | 15760 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 15761 | + unsafe: unsafe ?? self.unsafe, | |
| 15762 | + unsigned: unsigned ?? self.unsigned, | |
| 15763 | + ushort: ushort ?? self.ushort, | |
| 15752 | 15764 | using: using ?? self.using, |
| 15753 | 15765 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| 15754 | 15766 | utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, |
| @@ -15994,6 +16006,138 @@ extension WillSet { | ||
| 15994 | 16006 | } |
| 15995 | 16007 | } |
| 15996 | 16008 | |
| 16009 | +// MARK: - Unsafe | |
| 16010 | +struct Unsafe: Codable { | |
| 16011 | + let unsafe: Int | |
| 16012 | + | |
| 16013 | + enum CodingKeys: String, CodingKey { | |
| 16014 | + case unsafe = "unsafe" | |
| 16015 | + } | |
| 16016 | +} | |
| 16017 | + | |
| 16018 | +// MARK: Unsafe convenience initializers and mutators | |
| 16019 | + | |
| 16020 | +extension Unsafe { | |
| 16021 | + init(data: Data) throws { | |
| 16022 | + self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 16023 | + } | |
| 16024 | + | |
| 16025 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16026 | + guard let data = json.data(using: encoding) else { | |
| 16027 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16028 | + } | |
| 16029 | + try self.init(data: data) | |
| 16030 | + } | |
| 16031 | + | |
| 16032 | + init(fromURL url: URL) throws { | |
| 16033 | + try self.init(data: try Data(contentsOf: url)) | |
| 16034 | + } | |
| 16035 | + | |
| 16036 | + func with( | |
| 16037 | + unsafe: Int? = nil | |
| 16038 | + ) -> Unsafe { | |
| 16039 | + return Unsafe( | |
| 16040 | + unsafe: unsafe ?? self.unsafe | |
| 16041 | + ) | |
| 16042 | + } | |
| 16043 | + | |
| 16044 | + func jsonData() throws -> Data { | |
| 16045 | + return try newJSONEncoder().encode(self) | |
| 16046 | + } | |
| 16047 | + | |
| 16048 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16049 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16050 | + } | |
| 16051 | +} | |
| 16052 | + | |
| 16053 | +// MARK: - Unsigned | |
| 16054 | +struct Unsigned: Codable { | |
| 16055 | + let unsigned: Int | |
| 16056 | + | |
| 16057 | + enum CodingKeys: String, CodingKey { | |
| 16058 | + case unsigned = "unsigned" | |
| 16059 | + } | |
| 16060 | +} | |
| 16061 | + | |
| 16062 | +// MARK: Unsigned convenience initializers and mutators | |
| 16063 | + | |
| 16064 | +extension Unsigned { | |
| 16065 | + init(data: Data) throws { | |
| 16066 | + self = try newJSONDecoder().decode(Unsigned.self, from: data) | |
| 16067 | + } | |
| 16068 | + | |
| 16069 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16070 | + guard let data = json.data(using: encoding) else { | |
| 16071 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16072 | + } | |
| 16073 | + try self.init(data: data) | |
| 16074 | + } | |
| 16075 | + | |
| 16076 | + init(fromURL url: URL) throws { | |
| 16077 | + try self.init(data: try Data(contentsOf: url)) | |
| 16078 | + } | |
| 16079 | + | |
| 16080 | + func with( | |
| 16081 | + unsigned: Int? = nil | |
| 16082 | + ) -> Unsigned { | |
| 16083 | + return Unsigned( | |
| 16084 | + unsigned: unsigned ?? self.unsigned | |
| 16085 | + ) | |
| 16086 | + } | |
| 16087 | + | |
| 16088 | + func jsonData() throws -> Data { | |
| 16089 | + return try newJSONEncoder().encode(self) | |
| 16090 | + } | |
| 16091 | + | |
| 16092 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16093 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16094 | + } | |
| 16095 | +} | |
| 16096 | + | |
| 16097 | +// MARK: - Ushort | |
| 16098 | +struct Ushort: Codable { | |
| 16099 | + let ushort: Int | |
| 16100 | + | |
| 16101 | + enum CodingKeys: String, CodingKey { | |
| 16102 | + case ushort = "ushort" | |
| 16103 | + } | |
| 16104 | +} | |
| 16105 | + | |
| 16106 | +// MARK: Ushort convenience initializers and mutators | |
| 16107 | + | |
| 16108 | +extension Ushort { | |
| 16109 | + init(data: Data) throws { | |
| 16110 | + self = try newJSONDecoder().decode(Ushort.self, from: data) | |
| 16111 | + } | |
| 16112 | + | |
| 16113 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16114 | + guard let data = json.data(using: encoding) else { | |
| 16115 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16116 | + } | |
| 16117 | + try self.init(data: data) | |
| 16118 | + } | |
| 16119 | + | |
| 16120 | + init(fromURL url: URL) throws { | |
| 16121 | + try self.init(data: try Data(contentsOf: url)) | |
| 16122 | + } | |
| 16123 | + | |
| 16124 | + func with( | |
| 16125 | + ushort: Int? = nil | |
| 16126 | + ) -> Ushort { | |
| 16127 | + return Ushort( | |
| 16128 | + ushort: ushort ?? self.ushort | |
| 16129 | + ) | |
| 16130 | + } | |
| 16131 | + | |
| 16132 | + func jsonData() throws -> Data { | |
| 16133 | + return try newJSONEncoder().encode(self) | |
| 16134 | + } | |
| 16135 | + | |
| 16136 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16137 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16138 | + } | |
| 16139 | +} | |
| 16140 | + | |
| 15997 | 16141 | // MARK: - Using |
| 15998 | 16142 | struct Using: Codable { |
| 15999 | 16143 | let using: Int |
Mswiftobjective-c-support-true__struct-or-class-class--f14372afa3e4 / quicktype.swift+609 −447
| @@ -7136,6 +7136,7 @@ extension FalseClass { | ||
| 7136 | 7136 | let jsonWriter: JSONWriter |
| 7137 | 7137 | let lambda: Lambda |
| 7138 | 7138 | let list: List |
| 7139 | + let localDate: LocalDate | |
| 7139 | 7140 | let locale: LocaleClass |
| 7140 | 7141 | let lock: Lock |
| 7141 | 7142 | let long: Long |
| @@ -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 |
| @@ -7203,6 +7203,7 @@ extension FalseClass { | ||
| 7203 | 7203 | case jsonWriter = "json_writer" |
| 7204 | 7204 | case lambda = "lambda" |
| 7205 | 7205 | case list = "list" |
| 7206 | + case localDate = "LocalDate" | |
| 7206 | 7207 | case locale = "Locale" |
| 7207 | 7208 | case lock = "lock" |
| 7208 | 7209 | case long = "long" |
| @@ -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,7 +7235,7 @@ 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, 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, localDate: LocalDate, 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 | 7240 | self.hasOwnProperty = hasOwnProperty |
| 7241 | 7241 | self.hashCode = hashCode |
| @@ -7271,6 +7271,7 @@ extension FalseClass { | ||
| 7271 | 7271 | self.jsonWriter = jsonWriter |
| 7272 | 7272 | self.lambda = lambda |
| 7273 | 7273 | self.list = list |
| 7274 | + self.localDate = localDate | |
| 7274 | 7275 | self.locale = locale |
| 7275 | 7276 | self.lock = lock |
| 7276 | 7277 | self.long = long |
| @@ -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, 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, localDate: me.localDate, 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 { |
| @@ -7359,6 +7359,7 @@ extension Obj3 { | ||
| 7359 | 7359 | jsonWriter: JSONWriter? = nil, |
| 7360 | 7360 | lambda: Lambda? = nil, |
| 7361 | 7361 | list: List? = nil, |
| 7362 | + localDate: LocalDate? = nil, | |
| 7362 | 7363 | locale: LocaleClass? = nil, |
| 7363 | 7364 | lock: Lock? = nil, |
| 7364 | 7365 | long: Long? = 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, |
| @@ -7426,6 +7426,7 @@ extension Obj3 { | ||
| 7426 | 7426 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 7427 | 7427 | lambda: lambda ?? self.lambda, |
| 7428 | 7428 | list: list ?? self.list, |
| 7429 | + localDate: localDate ?? self.localDate, | |
| 7429 | 7430 | locale: locale ?? self.locale, |
| 7430 | 7431 | lock: lock ?? self.lock, |
| 7431 | 7432 | long: long ?? self.long, |
| @@ -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, |
| @@ -9134,6 +9134,55 @@ extension List { | ||
| 9134 | 9134 | } |
| 9135 | 9135 | } |
| 9136 | 9136 | |
| 9137 | +// MARK: - LocalDate | |
| 9138 | +@objcMembers class LocalDate: NSObject, Codable { | |
| 9139 | + let localDate: Int | |
| 9140 | + | |
| 9141 | + enum CodingKeys: String, CodingKey { | |
| 9142 | + case localDate = "LocalDate" | |
| 9143 | + } | |
| 9144 | + | |
| 9145 | + init(localDate: Int) { | |
| 9146 | + self.localDate = localDate | |
| 9147 | + } | |
| 9148 | +} | |
| 9149 | + | |
| 9150 | +// MARK: LocalDate convenience initializers and mutators | |
| 9151 | + | |
| 9152 | +extension LocalDate { | |
| 9153 | + convenience init(data: Data) throws { | |
| 9154 | + let me = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 9155 | + self.init(localDate: me.localDate) | |
| 9156 | + } | |
| 9157 | + | |
| 9158 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9159 | + guard let data = json.data(using: encoding) else { | |
| 9160 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9161 | + } | |
| 9162 | + try self.init(data: data) | |
| 9163 | + } | |
| 9164 | + | |
| 9165 | + convenience init(fromURL url: URL) throws { | |
| 9166 | + try self.init(data: try Data(contentsOf: url)) | |
| 9167 | + } | |
| 9168 | + | |
| 9169 | + func with( | |
| 9170 | + localDate: Int? = nil | |
| 9171 | + ) -> LocalDate { | |
| 9172 | + return LocalDate( | |
| 9173 | + localDate: localDate ?? self.localDate | |
| 9174 | + ) | |
| 9175 | + } | |
| 9176 | + | |
| 9177 | + func jsonData() throws -> Data { | |
| 9178 | + return try newJSONEncoder().encode(self) | |
| 9179 | + } | |
| 9180 | + | |
| 9181 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9182 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9183 | + } | |
| 9184 | +} | |
| 9185 | + | |
| 9137 | 9186 | // MARK: - LocaleClass |
| 9138 | 9187 | @objcMembers class LocaleClass: NSObject, Codable { |
| 9139 | 9188 | let locale: 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 |
| @@ -10641,6 +10642,8 @@ extension Nil { | ||
| 10641 | 10642 | let object: Object |
| 10642 | 10643 | let objectMapper: ObjectMapper |
| 10643 | 10644 | let of: Of |
| 10645 | + let offsetDateTime: OffsetDateTime | |
| 10646 | + let offsetTime: OffsetTime | |
| 10644 | 10647 | let oneway: Oneway |
| 10645 | 10648 | let or: Or |
| 10646 | 10649 | let orEq: OrEq |
| @@ -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" |
| @@ -10708,6 +10709,8 @@ extension Nil { | ||
| 10708 | 10709 | case object = "object" |
| 10709 | 10710 | case objectMapper = "ObjectMapper" |
| 10710 | 10711 | case of = "of" |
| 10712 | + case offsetDateTime = "OffsetDateTime" | |
| 10713 | + case offsetTime = "OffsetTime" | |
| 10711 | 10714 | case oneway = "oneway" |
| 10712 | 10715 | case or = "or" |
| 10713 | 10716 | case orEq = "or_eq" |
| @@ -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, of: Of, offsetDateTime: OffsetDateTime, offsetTime: OffsetTime, 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 |
| @@ -10776,6 +10777,8 @@ extension Nil { | ||
| 10776 | 10777 | self.object = object |
| 10777 | 10778 | self.objectMapper = objectMapper |
| 10778 | 10779 | self.of = of |
| 10780 | + self.offsetDateTime = offsetDateTime | |
| 10781 | + self.offsetTime = offsetTime | |
| 10779 | 10782 | self.oneway = oneway |
| 10780 | 10783 | self.or = or |
| 10781 | 10784 | self.orEq = orEq |
| @@ -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, of: me.of, offsetDateTime: me.offsetDateTime, offsetTime: me.offsetTime, 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, |
| @@ -10864,6 +10865,8 @@ extension Obj4 { | ||
| 10864 | 10865 | object: Object? = nil, |
| 10865 | 10866 | objectMapper: ObjectMapper? = nil, |
| 10866 | 10867 | of: Of? = nil, |
| 10868 | + offsetDateTime: OffsetDateTime? = nil, | |
| 10869 | + offsetTime: OffsetTime? = nil, | |
| 10867 | 10870 | oneway: Oneway? = nil, |
| 10868 | 10871 | or: Or? = nil, |
| 10869 | 10872 | orEq: OrEq? = 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, |
| @@ -10931,6 +10932,8 @@ extension Obj4 { | ||
| 10931 | 10932 | object: object ?? self.object, |
| 10932 | 10933 | objectMapper: objectMapper ?? self.objectMapper, |
| 10933 | 10934 | of: of ?? self.of, |
| 10935 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 10936 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 10934 | 10937 | oneway: oneway ?? self.oneway, |
| 10935 | 10938 | or: or ?? self.or, |
| 10936 | 10939 | orEq: orEq ?? self.orEq, |
| @@ -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,6 +11022,55 @@ extension NoSuchMethod { | ||
| 11022 | 11022 | } |
| 11023 | 11023 | } |
| 11024 | 11024 | |
| 11025 | +// MARK: - Noexcept | |
| 11026 | +@objcMembers class Noexcept: NSObject, Codable { | |
| 11027 | + let noexcept: Int | |
| 11028 | + | |
| 11029 | + enum CodingKeys: String, CodingKey { | |
| 11030 | + case noexcept = "noexcept" | |
| 11031 | + } | |
| 11032 | + | |
| 11033 | + init(noexcept: Int) { | |
| 11034 | + self.noexcept = noexcept | |
| 11035 | + } | |
| 11036 | +} | |
| 11037 | + | |
| 11038 | +// MARK: Noexcept convenience initializers and mutators | |
| 11039 | + | |
| 11040 | +extension Noexcept { | |
| 11041 | + convenience init(data: Data) throws { | |
| 11042 | + let me = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 11043 | + self.init(noexcept: me.noexcept) | |
| 11044 | + } | |
| 11045 | + | |
| 11046 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11047 | + guard let data = json.data(using: encoding) else { | |
| 11048 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11049 | + } | |
| 11050 | + try self.init(data: data) | |
| 11051 | + } | |
| 11052 | + | |
| 11053 | + convenience init(fromURL url: URL) throws { | |
| 11054 | + try self.init(data: try Data(contentsOf: url)) | |
| 11055 | + } | |
| 11056 | + | |
| 11057 | + func with( | |
| 11058 | + noexcept: Int? = nil | |
| 11059 | + ) -> Noexcept { | |
| 11060 | + return Noexcept( | |
| 11061 | + noexcept: noexcept ?? self.noexcept | |
| 11062 | + ) | |
| 11063 | + } | |
| 11064 | + | |
| 11065 | + func jsonData() throws -> Data { | |
| 11066 | + return try newJSONEncoder().encode(self) | |
| 11067 | + } | |
| 11068 | + | |
| 11069 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11070 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11071 | + } | |
| 11072 | +} | |
| 11073 | + | |
| 11025 | 11074 | // MARK: - Nonatomic |
| 11026 | 11075 | @objcMembers class Nonatomic: NSObject, Codable { |
| 11027 | 11076 | let nonatomic: Int |
| @@ -12639,6 +12688,104 @@ extension Of { | ||
| 12639 | 12688 | } |
| 12640 | 12689 | } |
| 12641 | 12690 | |
| 12691 | +// MARK: - OffsetDateTime | |
| 12692 | +@objcMembers class OffsetDateTime: NSObject, Codable { | |
| 12693 | + let offsetDateTime: Int | |
| 12694 | + | |
| 12695 | + enum CodingKeys: String, CodingKey { | |
| 12696 | + case offsetDateTime = "OffsetDateTime" | |
| 12697 | + } | |
| 12698 | + | |
| 12699 | + init(offsetDateTime: Int) { | |
| 12700 | + self.offsetDateTime = offsetDateTime | |
| 12701 | + } | |
| 12702 | +} | |
| 12703 | + | |
| 12704 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 12705 | + | |
| 12706 | +extension OffsetDateTime { | |
| 12707 | + convenience init(data: Data) throws { | |
| 12708 | + let me = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 12709 | + self.init(offsetDateTime: me.offsetDateTime) | |
| 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 | + offsetDateTime: Int? = nil | |
| 12725 | + ) -> OffsetDateTime { | |
| 12726 | + return OffsetDateTime( | |
| 12727 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 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 | + | |
| 12740 | +// MARK: - OffsetTime | |
| 12741 | +@objcMembers class OffsetTime: NSObject, Codable { | |
| 12742 | + let offsetTime: Int | |
| 12743 | + | |
| 12744 | + enum CodingKeys: String, CodingKey { | |
| 12745 | + case offsetTime = "OffsetTime" | |
| 12746 | + } | |
| 12747 | + | |
| 12748 | + init(offsetTime: Int) { | |
| 12749 | + self.offsetTime = offsetTime | |
| 12750 | + } | |
| 12751 | +} | |
| 12752 | + | |
| 12753 | +// MARK: OffsetTime convenience initializers and mutators | |
| 12754 | + | |
| 12755 | +extension OffsetTime { | |
| 12756 | + convenience init(data: Data) throws { | |
| 12757 | + let me = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 12758 | + self.init(offsetTime: me.offsetTime) | |
| 12759 | + } | |
| 12760 | + | |
| 12761 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12762 | + guard let data = json.data(using: encoding) else { | |
| 12763 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12764 | + } | |
| 12765 | + try self.init(data: data) | |
| 12766 | + } | |
| 12767 | + | |
| 12768 | + convenience init(fromURL url: URL) throws { | |
| 12769 | + try self.init(data: try Data(contentsOf: url)) | |
| 12770 | + } | |
| 12771 | + | |
| 12772 | + func with( | |
| 12773 | + offsetTime: Int? = nil | |
| 12774 | + ) -> OffsetTime { | |
| 12775 | + return OffsetTime( | |
| 12776 | + offsetTime: offsetTime ?? self.offsetTime | |
| 12777 | + ) | |
| 12778 | + } | |
| 12779 | + | |
| 12780 | + func jsonData() throws -> Data { | |
| 12781 | + return try newJSONEncoder().encode(self) | |
| 12782 | + } | |
| 12783 | + | |
| 12784 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12785 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12786 | + } | |
| 12787 | +} | |
| 12788 | + | |
| 12642 | 12789 | // MARK: - Oneway |
| 12643 | 12790 | @objcMembers class Oneway: NSObject, Codable { |
| 12644 | 12791 | let oneway: Int |
| @@ -13962,153 +14109,6 @@ extension Sbyte { | ||
| 13962 | 14109 | } |
| 13963 | 14110 | } |
| 13964 | 14111 | |
| 13965 | -// MARK: - Sealed | |
| 13966 | -@objcMembers class Sealed: NSObject, Codable { | |
| 13967 | - let sealed: Int | |
| 13968 | - | |
| 13969 | - enum CodingKeys: String, CodingKey { | |
| 13970 | - case sealed = "sealed" | |
| 13971 | - } | |
| 13972 | - | |
| 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 | 14112 | // MARK: - Obj5 |
| 14113 | 14113 | @objcMembers class Obj5: NSObject, Codable { |
| 14114 | 14114 | let dummy: Int |
| @@ -14130,6 +14130,9 @@ extension Select { | ||
| 14130 | 14130 | let primitiveKind: PrimitiveKind |
| 14131 | 14131 | let purpleSelf: Obj5Self |
| 14132 | 14132 | let purpleTrue: TrueClass |
| 14133 | + let sealed: Sealed | |
| 14134 | + let sel: Sel | |
| 14135 | + let select: Select | |
| 14133 | 14136 | let sendable: Sendable |
| 14134 | 14137 | let serialDescriptor: SerialDescriptor |
| 14135 | 14138 | let serialName: SerialName |
| @@ -14172,10 +14175,7 @@ extension Select { | ||
| 14172 | 14175 | let unchecked: Unchecked |
| 14173 | 14176 | let undefined: Undefined |
| 14174 | 14177 | let union: Union |
| 14175 | - let unsafe: Unsafe | |
| 14176 | - let unsigned: Unsigned | |
| 14177 | 14178 | let useSerializers: UseSerializers |
| 14178 | - let ushort: Ushort | |
| 14179 | 14179 | |
| 14180 | 14180 | enum CodingKeys: String, CodingKey { |
| 14181 | 14181 | case dummy = "dummy" |
| @@ -14197,6 +14197,9 @@ extension Select { | ||
| 14197 | 14197 | case primitiveKind = "PrimitiveKind" |
| 14198 | 14198 | case purpleSelf = "self" |
| 14199 | 14199 | case purpleTrue = "true" |
| 14200 | + case sealed = "sealed" | |
| 14201 | + case sel = "SEL" | |
| 14202 | + case select = "select" | |
| 14200 | 14203 | case sendable = "Sendable" |
| 14201 | 14204 | case serialDescriptor = "SerialDescriptor" |
| 14202 | 14205 | case serialName = "SerialName" |
| @@ -14239,13 +14242,10 @@ extension Select { | ||
| 14239 | 14242 | case unchecked = "unchecked" |
| 14240 | 14243 | case undefined = "undefined" |
| 14241 | 14244 | case union = "union" |
| 14242 | - case unsafe = "unsafe" | |
| 14243 | - case unsigned = "unsigned" | |
| 14244 | 14245 | case useSerializers = "UseSerializers" |
| 14245 | - case ushort = "ushort" | |
| 14246 | 14246 | } |
| 14247 | 14247 | |
| 14248 | - init(dummy: Int, kSerializer: KSerializer, 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, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, 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, useSerializers: UseSerializers, ushort: Ushort) { | |
| 14248 | + init(dummy: Int, kSerializer: KSerializer, 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, primitiveKind: PrimitiveKind, purpleSelf: Obj5Self, purpleTrue: TrueClass, sealed: Sealed, sel: Sel, select: Select, sendable: Sendable, serialDescriptor: SerialDescriptor, serialName: SerialName, serializable: Serializable, 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, useSerializers: UseSerializers) { | |
| 14249 | 14249 | self.dummy = dummy |
| 14250 | 14250 | self.kSerializer = kSerializer |
| 14251 | 14251 | self.obj5Self = obj5Self |
| @@ -14265,6 +14265,9 @@ extension Select { | ||
| 14265 | 14265 | self.primitiveKind = primitiveKind |
| 14266 | 14266 | self.purpleSelf = purpleSelf |
| 14267 | 14267 | self.purpleTrue = purpleTrue |
| 14268 | + self.sealed = sealed | |
| 14269 | + self.sel = sel | |
| 14270 | + self.select = select | |
| 14268 | 14271 | self.sendable = sendable |
| 14269 | 14272 | self.serialDescriptor = serialDescriptor |
| 14270 | 14273 | self.serialName = serialName |
| @@ -14307,10 +14310,7 @@ extension Select { | ||
| 14307 | 14310 | self.unchecked = unchecked |
| 14308 | 14311 | self.undefined = undefined |
| 14309 | 14312 | self.union = union |
| 14310 | - self.unsafe = unsafe | |
| 14311 | - self.unsigned = unsigned | |
| 14312 | 14313 | self.useSerializers = useSerializers |
| 14313 | - self.ushort = ushort | |
| 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, kSerializer: me.kSerializer, 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, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, 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, useSerializers: me.useSerializers, ushort: me.ushort) | |
| 14322 | + self.init(dummy: me.dummy, kSerializer: me.kSerializer, 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, primitiveKind: me.primitiveKind, purpleSelf: me.purpleSelf, purpleTrue: me.purpleTrue, sealed: me.sealed, sel: me.sel, select: me.select, sendable: me.sendable, serialDescriptor: me.serialDescriptor, serialName: me.serialName, serializable: me.serializable, 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, useSerializers: me.useSerializers) | |
| 14323 | 14323 | } |
| 14324 | 14324 | |
| 14325 | 14325 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -14353,6 +14353,9 @@ extension Obj5 { | ||
| 14353 | 14353 | primitiveKind: PrimitiveKind? = nil, |
| 14354 | 14354 | purpleSelf: Obj5Self? = nil, |
| 14355 | 14355 | purpleTrue: TrueClass? = nil, |
| 14356 | + sealed: Sealed? = nil, | |
| 14357 | + sel: Sel? = nil, | |
| 14358 | + select: Select? = nil, | |
| 14356 | 14359 | sendable: Sendable? = nil, |
| 14357 | 14360 | serialDescriptor: SerialDescriptor? = nil, |
| 14358 | 14361 | serialName: SerialName? = nil, |
| @@ -14395,10 +14398,7 @@ extension Obj5 { | ||
| 14395 | 14398 | unchecked: Unchecked? = nil, |
| 14396 | 14399 | undefined: Undefined? = nil, |
| 14397 | 14400 | union: Union? = nil, |
| 14398 | - unsafe: Unsafe? = nil, | |
| 14399 | - unsigned: Unsigned? = nil, | |
| 14400 | - useSerializers: UseSerializers? = nil, | |
| 14401 | - ushort: Ushort? = nil | |
| 14401 | + useSerializers: UseSerializers? = nil | |
| 14402 | 14402 | ) -> Obj5 { |
| 14403 | 14403 | return Obj5( |
| 14404 | 14404 | dummy: dummy ?? self.dummy, |
| @@ -14420,6 +14420,9 @@ extension Obj5 { | ||
| 14420 | 14420 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 14421 | 14421 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 14422 | 14422 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 14423 | + sealed: sealed ?? self.sealed, | |
| 14424 | + sel: sel ?? self.sel, | |
| 14425 | + select: select ?? self.select, | |
| 14423 | 14426 | sendable: sendable ?? self.sendable, |
| 14424 | 14427 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| 14425 | 14428 | serialName: serialName ?? self.serialName, |
| @@ -14462,10 +14465,7 @@ extension Obj5 { | ||
| 14462 | 14465 | unchecked: unchecked ?? self.unchecked, |
| 14463 | 14466 | undefined: undefined ?? self.undefined, |
| 14464 | 14467 | union: union ?? self.union, |
| 14465 | - unsafe: unsafe ?? self.unsafe, | |
| 14466 | - unsigned: unsigned ?? self.unsigned, | |
| 14467 | - useSerializers: useSerializers ?? self.useSerializers, | |
| 14468 | - ushort: ushort ?? self.ushort | |
| 14468 | + useSerializers: useSerializers ?? self.useSerializers | |
| 14469 | 14469 | ) |
| 14470 | 14470 | } |
| 14471 | 14471 | |
| @@ -15360,25 +15360,25 @@ extension TrueClass { | ||
| 15360 | 15360 | } |
| 15361 | 15361 | } |
| 15362 | 15362 | |
| 15363 | -// MARK: - Sendable | |
| 15364 | -@objcMembers class Sendable: NSObject, Codable { | |
| 15365 | - let sendable: Int | |
| 15363 | +// MARK: - Sealed | |
| 15364 | +@objcMembers class Sealed: NSObject, Codable { | |
| 15365 | + let sealed: Int | |
| 15366 | 15366 | |
| 15367 | 15367 | enum CodingKeys: String, CodingKey { |
| 15368 | - case sendable = "Sendable" | |
| 15368 | + case sealed = "sealed" | |
| 15369 | 15369 | } |
| 15370 | 15370 | |
| 15371 | - init(sendable: Int) { | |
| 15372 | - self.sendable = sendable | |
| 15371 | + init(sealed: Int) { | |
| 15372 | + self.sealed = sealed | |
| 15373 | 15373 | } |
| 15374 | 15374 | } |
| 15375 | 15375 | |
| 15376 | -// MARK: Sendable convenience initializers and mutators | |
| 15376 | +// MARK: Sealed convenience initializers and mutators | |
| 15377 | 15377 | |
| 15378 | -extension Sendable { | |
| 15378 | +extension Sealed { | |
| 15379 | 15379 | convenience init(data: Data) throws { |
| 15380 | - let me = try newJSONDecoder().decode(Sendable.self, from: data) | |
| 15381 | - self.init(sendable: me.sendable) | |
| 15380 | + let me = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 15381 | + self.init(sealed: me.sealed) | |
| 15382 | 15382 | } |
| 15383 | 15383 | |
| 15384 | 15384 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15393,10 +15393,10 @@ extension Sendable { | ||
| 15393 | 15393 | } |
| 15394 | 15394 | |
| 15395 | 15395 | func with( |
| 15396 | - sendable: Int? = nil | |
| 15397 | - ) -> Sendable { | |
| 15398 | - return Sendable( | |
| 15399 | - sendable: sendable ?? self.sendable | |
| 15396 | + sealed: Int? = nil | |
| 15397 | + ) -> Sealed { | |
| 15398 | + return Sealed( | |
| 15399 | + sealed: sealed ?? self.sealed | |
| 15400 | 15400 | ) |
| 15401 | 15401 | } |
| 15402 | 15402 | |
| @@ -15409,25 +15409,25 @@ extension Sendable { | ||
| 15409 | 15409 | } |
| 15410 | 15410 | } |
| 15411 | 15411 | |
| 15412 | -// MARK: - SerialDescriptor | |
| 15413 | -@objcMembers class SerialDescriptor: NSObject, Codable { | |
| 15414 | - let serialDescriptor: Int | |
| 15412 | +// MARK: - Sel | |
| 15413 | +@objcMembers class Sel: NSObject, Codable { | |
| 15414 | + let sel: Int | |
| 15415 | 15415 | |
| 15416 | 15416 | enum CodingKeys: String, CodingKey { |
| 15417 | - case serialDescriptor = "SerialDescriptor" | |
| 15417 | + case sel = "SEL" | |
| 15418 | 15418 | } |
| 15419 | 15419 | |
| 15420 | - init(serialDescriptor: Int) { | |
| 15421 | - self.serialDescriptor = serialDescriptor | |
| 15420 | + init(sel: Int) { | |
| 15421 | + self.sel = sel | |
| 15422 | 15422 | } |
| 15423 | 15423 | } |
| 15424 | 15424 | |
| 15425 | -// MARK: SerialDescriptor convenience initializers and mutators | |
| 15425 | +// MARK: Sel convenience initializers and mutators | |
| 15426 | 15426 | |
| 15427 | -extension SerialDescriptor { | |
| 15427 | +extension Sel { | |
| 15428 | 15428 | convenience init(data: Data) throws { |
| 15429 | - let me = try newJSONDecoder().decode(SerialDescriptor.self, from: data) | |
| 15430 | - self.init(serialDescriptor: me.serialDescriptor) | |
| 15429 | + let me = try newJSONDecoder().decode(Sel.self, from: data) | |
| 15430 | + self.init(sel: me.sel) | |
| 15431 | 15431 | } |
| 15432 | 15432 | |
| 15433 | 15433 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15442,10 +15442,10 @@ extension SerialDescriptor { | ||
| 15442 | 15442 | } |
| 15443 | 15443 | |
| 15444 | 15444 | func with( |
| 15445 | - serialDescriptor: Int? = nil | |
| 15446 | - ) -> SerialDescriptor { | |
| 15447 | - return SerialDescriptor( | |
| 15448 | - serialDescriptor: serialDescriptor ?? self.serialDescriptor | |
| 15445 | + sel: Int? = nil | |
| 15446 | + ) -> Sel { | |
| 15447 | + return Sel( | |
| 15448 | + sel: sel ?? self.sel | |
| 15449 | 15449 | ) |
| 15450 | 15450 | } |
| 15451 | 15451 | |
| @@ -15458,25 +15458,25 @@ extension SerialDescriptor { | ||
| 15458 | 15458 | } |
| 15459 | 15459 | } |
| 15460 | 15460 | |
| 15461 | -// MARK: - SerialName | |
| 15462 | -@objcMembers class SerialName: NSObject, Codable { | |
| 15463 | - let serialName: Int | |
| 15461 | +// MARK: - Select | |
| 15462 | +@objcMembers class Select: NSObject, Codable { | |
| 15463 | + let select: Int | |
| 15464 | 15464 | |
| 15465 | 15465 | enum CodingKeys: String, CodingKey { |
| 15466 | - case serialName = "SerialName" | |
| 15466 | + case select = "select" | |
| 15467 | 15467 | } |
| 15468 | 15468 | |
| 15469 | - init(serialName: Int) { | |
| 15470 | - self.serialName = serialName | |
| 15469 | + init(select: Int) { | |
| 15470 | + self.select = select | |
| 15471 | 15471 | } |
| 15472 | 15472 | } |
| 15473 | 15473 | |
| 15474 | -// MARK: SerialName convenience initializers and mutators | |
| 15474 | +// MARK: Select convenience initializers and mutators | |
| 15475 | 15475 | |
| 15476 | -extension SerialName { | |
| 15476 | +extension Select { | |
| 15477 | 15477 | convenience init(data: Data) throws { |
| 15478 | - let me = try newJSONDecoder().decode(SerialName.self, from: data) | |
| 15479 | - self.init(serialName: me.serialName) | |
| 15478 | + let me = try newJSONDecoder().decode(Select.self, from: data) | |
| 15479 | + self.init(select: me.select) | |
| 15480 | 15480 | } |
| 15481 | 15481 | |
| 15482 | 15482 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15491,10 +15491,10 @@ extension SerialName { | ||
| 15491 | 15491 | } |
| 15492 | 15492 | |
| 15493 | 15493 | func with( |
| 15494 | - serialName: Int? = nil | |
| 15495 | - ) -> SerialName { | |
| 15496 | - return SerialName( | |
| 15497 | - serialName: serialName ?? self.serialName | |
| 15494 | + select: Int? = nil | |
| 15495 | + ) -> Select { | |
| 15496 | + return Select( | |
| 15497 | + select: select ?? self.select | |
| 15498 | 15498 | ) |
| 15499 | 15499 | } |
| 15500 | 15500 | |
| @@ -15507,25 +15507,25 @@ extension SerialName { | ||
| 15507 | 15507 | } |
| 15508 | 15508 | } |
| 15509 | 15509 | |
| 15510 | -// MARK: - Serializable | |
| 15511 | -@objcMembers class Serializable: NSObject, Codable { | |
| 15512 | - let serializable: Int | |
| 15510 | +// MARK: - Sendable | |
| 15511 | +@objcMembers class Sendable: NSObject, Codable { | |
| 15512 | + let sendable: Int | |
| 15513 | 15513 | |
| 15514 | 15514 | enum CodingKeys: String, CodingKey { |
| 15515 | - case serializable = "Serializable" | |
| 15515 | + case sendable = "Sendable" | |
| 15516 | 15516 | } |
| 15517 | 15517 | |
| 15518 | - init(serializable: Int) { | |
| 15519 | - self.serializable = serializable | |
| 15518 | + init(sendable: Int) { | |
| 15519 | + self.sendable = sendable | |
| 15520 | 15520 | } |
| 15521 | 15521 | } |
| 15522 | 15522 | |
| 15523 | -// MARK: Serializable convenience initializers and mutators | |
| 15523 | +// MARK: Sendable convenience initializers and mutators | |
| 15524 | 15524 | |
| 15525 | -extension Serializable { | |
| 15525 | +extension Sendable { | |
| 15526 | 15526 | convenience init(data: Data) throws { |
| 15527 | - let me = try newJSONDecoder().decode(Serializable.self, from: data) | |
| 15528 | - self.init(serializable: me.serializable) | |
| 15527 | + let me = try newJSONDecoder().decode(Sendable.self, from: data) | |
| 15528 | + self.init(sendable: me.sendable) | |
| 15529 | 15529 | } |
| 15530 | 15530 | |
| 15531 | 15531 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15540,11 +15540,158 @@ extension Serializable { | ||
| 15540 | 15540 | } |
| 15541 | 15541 | |
| 15542 | 15542 | func with( |
| 15543 | - serializable: Int? = nil | |
| 15544 | - ) -> Serializable { | |
| 15545 | - return Serializable( | |
| 15546 | - serializable: serializable ?? self.serializable | |
| 15547 | - ) | |
| 15543 | + sendable: Int? = nil | |
| 15544 | + ) -> Sendable { | |
| 15545 | + return Sendable( | |
| 15546 | + sendable: sendable ?? self.sendable | |
| 15547 | + ) | |
| 15548 | + } | |
| 15549 | + | |
| 15550 | + func jsonData() throws -> Data { | |
| 15551 | + return try newJSONEncoder().encode(self) | |
| 15552 | + } | |
| 15553 | + | |
| 15554 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15555 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15556 | + } | |
| 15557 | +} | |
| 15558 | + | |
| 15559 | +// MARK: - SerialDescriptor | |
| 15560 | +@objcMembers class SerialDescriptor: NSObject, Codable { | |
| 15561 | + let serialDescriptor: Int | |
| 15562 | + | |
| 15563 | + enum CodingKeys: String, CodingKey { | |
| 15564 | + case serialDescriptor = "SerialDescriptor" | |
| 15565 | + } | |
| 15566 | + | |
| 15567 | + init(serialDescriptor: Int) { | |
| 15568 | + self.serialDescriptor = serialDescriptor | |
| 15569 | + } | |
| 15570 | +} | |
| 15571 | + | |
| 15572 | +// MARK: SerialDescriptor convenience initializers and mutators | |
| 15573 | + | |
| 15574 | +extension SerialDescriptor { | |
| 15575 | + convenience init(data: Data) throws { | |
| 15576 | + let me = try newJSONDecoder().decode(SerialDescriptor.self, from: data) | |
| 15577 | + self.init(serialDescriptor: me.serialDescriptor) | |
| 15578 | + } | |
| 15579 | + | |
| 15580 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15581 | + guard let data = json.data(using: encoding) else { | |
| 15582 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15583 | + } | |
| 15584 | + try self.init(data: data) | |
| 15585 | + } | |
| 15586 | + | |
| 15587 | + convenience init(fromURL url: URL) throws { | |
| 15588 | + try self.init(data: try Data(contentsOf: url)) | |
| 15589 | + } | |
| 15590 | + | |
| 15591 | + func with( | |
| 15592 | + serialDescriptor: Int? = nil | |
| 15593 | + ) -> SerialDescriptor { | |
| 15594 | + return SerialDescriptor( | |
| 15595 | + serialDescriptor: serialDescriptor ?? self.serialDescriptor | |
| 15596 | + ) | |
| 15597 | + } | |
| 15598 | + | |
| 15599 | + func jsonData() throws -> Data { | |
| 15600 | + return try newJSONEncoder().encode(self) | |
| 15601 | + } | |
| 15602 | + | |
| 15603 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15604 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15605 | + } | |
| 15606 | +} | |
| 15607 | + | |
| 15608 | +// MARK: - SerialName | |
| 15609 | +@objcMembers class SerialName: NSObject, Codable { | |
| 15610 | + let serialName: Int | |
| 15611 | + | |
| 15612 | + enum CodingKeys: String, CodingKey { | |
| 15613 | + case serialName = "SerialName" | |
| 15614 | + } | |
| 15615 | + | |
| 15616 | + init(serialName: Int) { | |
| 15617 | + self.serialName = serialName | |
| 15618 | + } | |
| 15619 | +} | |
| 15620 | + | |
| 15621 | +// MARK: SerialName convenience initializers and mutators | |
| 15622 | + | |
| 15623 | +extension SerialName { | |
| 15624 | + convenience init(data: Data) throws { | |
| 15625 | + let me = try newJSONDecoder().decode(SerialName.self, from: data) | |
| 15626 | + self.init(serialName: me.serialName) | |
| 15627 | + } | |
| 15628 | + | |
| 15629 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15630 | + guard let data = json.data(using: encoding) else { | |
| 15631 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15632 | + } | |
| 15633 | + try self.init(data: data) | |
| 15634 | + } | |
| 15635 | + | |
| 15636 | + convenience init(fromURL url: URL) throws { | |
| 15637 | + try self.init(data: try Data(contentsOf: url)) | |
| 15638 | + } | |
| 15639 | + | |
| 15640 | + func with( | |
| 15641 | + serialName: Int? = nil | |
| 15642 | + ) -> SerialName { | |
| 15643 | + return SerialName( | |
| 15644 | + serialName: serialName ?? self.serialName | |
| 15645 | + ) | |
| 15646 | + } | |
| 15647 | + | |
| 15648 | + func jsonData() throws -> Data { | |
| 15649 | + return try newJSONEncoder().encode(self) | |
| 15650 | + } | |
| 15651 | + | |
| 15652 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15653 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15654 | + } | |
| 15655 | +} | |
| 15656 | + | |
| 15657 | +// MARK: - Serializable | |
| 15658 | +@objcMembers class Serializable: NSObject, Codable { | |
| 15659 | + let serializable: Int | |
| 15660 | + | |
| 15661 | + enum CodingKeys: String, CodingKey { | |
| 15662 | + case serializable = "Serializable" | |
| 15663 | + } | |
| 15664 | + | |
| 15665 | + init(serializable: Int) { | |
| 15666 | + self.serializable = serializable | |
| 15667 | + } | |
| 15668 | +} | |
| 15669 | + | |
| 15670 | +// MARK: Serializable convenience initializers and mutators | |
| 15671 | + | |
| 15672 | +extension Serializable { | |
| 15673 | + convenience init(data: Data) throws { | |
| 15674 | + let me = try newJSONDecoder().decode(Serializable.self, from: data) | |
| 15675 | + self.init(serializable: me.serializable) | |
| 15676 | + } | |
| 15677 | + | |
| 15678 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15679 | + guard let data = json.data(using: encoding) else { | |
| 15680 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15681 | + } | |
| 15682 | + try self.init(data: data) | |
| 15683 | + } | |
| 15684 | + | |
| 15685 | + convenience init(fromURL url: URL) throws { | |
| 15686 | + try self.init(data: try Data(contentsOf: url)) | |
| 15687 | + } | |
| 15688 | + | |
| 15689 | + func with( | |
| 15690 | + serializable: Int? = nil | |
| 15691 | + ) -> Serializable { | |
| 15692 | + return Serializable( | |
| 15693 | + serializable: serializable ?? self.serializable | |
| 15694 | + ) | |
| 15548 | 15695 | } |
| 15549 | 15696 | |
| 15550 | 15697 | func jsonData() throws -> Data { |
| @@ -17418,104 +17565,6 @@ extension Union { | ||
| 17418 | 17565 | } |
| 17419 | 17566 | } |
| 17420 | 17567 | |
| 17421 | -// MARK: - Unsafe | |
| 17422 | -@objcMembers class Unsafe: NSObject, Codable { | |
| 17423 | - let unsafe: Int | |
| 17424 | - | |
| 17425 | - enum CodingKeys: String, CodingKey { | |
| 17426 | - case unsafe = "unsafe" | |
| 17427 | - } | |
| 17428 | - | |
| 17429 | - init(unsafe: Int) { | |
| 17430 | - self.unsafe = unsafe | |
| 17431 | - } | |
| 17432 | -} | |
| 17433 | - | |
| 17434 | -// MARK: Unsafe convenience initializers and mutators | |
| 17435 | - | |
| 17436 | -extension Unsafe { | |
| 17437 | - convenience init(data: Data) throws { | |
| 17438 | - let me = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 17439 | - self.init(unsafe: me.unsafe) | |
| 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 | - unsafe: Int? = nil | |
| 17455 | - ) -> Unsafe { | |
| 17456 | - return Unsafe( | |
| 17457 | - unsafe: unsafe ?? self.unsafe | |
| 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: - Unsigned | |
| 17471 | -@objcMembers class Unsigned: NSObject, Codable { | |
| 17472 | - let unsigned: Int | |
| 17473 | - | |
| 17474 | - enum CodingKeys: String, CodingKey { | |
| 17475 | - case unsigned = "unsigned" | |
| 17476 | - } | |
| 17477 | - | |
| 17478 | - init(unsigned: Int) { | |
| 17479 | - self.unsigned = unsigned | |
| 17480 | - } | |
| 17481 | -} | |
| 17482 | - | |
| 17483 | -// MARK: Unsigned convenience initializers and mutators | |
| 17484 | - | |
| 17485 | -extension Unsigned { | |
| 17486 | - convenience init(data: Data) throws { | |
| 17487 | - let me = try newJSONDecoder().decode(Unsigned.self, from: data) | |
| 17488 | - self.init(unsigned: me.unsigned) | |
| 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 | - unsigned: Int? = nil | |
| 17504 | - ) -> Unsigned { | |
| 17505 | - return Unsigned( | |
| 17506 | - unsigned: unsigned ?? self.unsigned | |
| 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 | 17568 | // MARK: - UseSerializers |
| 17520 | 17569 | @objcMembers class UseSerializers: NSObject, Codable { |
| 17521 | 17570 | let useSerializers: Int |
| @@ -17565,55 +17614,6 @@ extension UseSerializers { | ||
| 17565 | 17614 | } |
| 17566 | 17615 | } |
| 17567 | 17616 | |
| 17568 | -// MARK: - Ushort | |
| 17569 | -@objcMembers class Ushort: NSObject, Codable { | |
| 17570 | - let ushort: Int | |
| 17571 | - | |
| 17572 | - enum CodingKeys: String, CodingKey { | |
| 17573 | - case ushort = "ushort" | |
| 17574 | - } | |
| 17575 | - | |
| 17576 | - init(ushort: Int) { | |
| 17577 | - self.ushort = ushort | |
| 17578 | - } | |
| 17579 | -} | |
| 17580 | - | |
| 17581 | -// MARK: Ushort convenience initializers and mutators | |
| 17582 | - | |
| 17583 | -extension Ushort { | |
| 17584 | - convenience init(data: Data) throws { | |
| 17585 | - let me = try newJSONDecoder().decode(Ushort.self, from: data) | |
| 17586 | - self.init(ushort: me.ushort) | |
| 17587 | - } | |
| 17588 | - | |
| 17589 | - convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17590 | - guard let data = json.data(using: encoding) else { | |
| 17591 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17592 | - } | |
| 17593 | - try self.init(data: data) | |
| 17594 | - } | |
| 17595 | - | |
| 17596 | - convenience init(fromURL url: URL) throws { | |
| 17597 | - try self.init(data: try Data(contentsOf: url)) | |
| 17598 | - } | |
| 17599 | - | |
| 17600 | - func with( | |
| 17601 | - ushort: Int? = nil | |
| 17602 | - ) -> Ushort { | |
| 17603 | - return Ushort( | |
| 17604 | - ushort: ushort ?? self.ushort | |
| 17605 | - ) | |
| 17606 | - } | |
| 17607 | - | |
| 17608 | - func jsonData() throws -> Data { | |
| 17609 | - return try newJSONEncoder().encode(self) | |
| 17610 | - } | |
| 17611 | - | |
| 17612 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17613 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17614 | - } | |
| 17615 | -} | |
| 17616 | - | |
| 17617 | 17617 | // MARK: - Obj6 |
| 17618 | 17618 | @objcMembers class Obj6: NSObject, Codable { |
| 17619 | 17619 | let dummy: Int |
| @@ -17622,6 +17622,9 @@ extension Ushort { | ||
| 17622 | 17622 | let obj6Where: Where |
| 17623 | 17623 | let obj6While: While |
| 17624 | 17624 | let obj6WillSet: WillSet |
| 17625 | + let unsafe: Unsafe | |
| 17626 | + let unsigned: Unsigned | |
| 17627 | + let ushort: Ushort | |
| 17625 | 17628 | let using: Using |
| 17626 | 17629 | let utf8JSONReader: Utf8JSONReader |
| 17627 | 17630 | let utf8JSONWriter: Utf8JSONWriter |
| @@ -17643,6 +17646,9 @@ extension Ushort { | ||
| 17643 | 17646 | case obj6Where = "where" |
| 17644 | 17647 | case obj6While = "while" |
| 17645 | 17648 | case obj6WillSet = "willSet" |
| 17649 | + case unsafe = "unsafe" | |
| 17650 | + case unsigned = "unsigned" | |
| 17651 | + case ushort = "ushort" | |
| 17646 | 17652 | case using = "using" |
| 17647 | 17653 | case utf8JSONReader = "Utf8JsonReader" |
| 17648 | 17654 | case utf8JSONWriter = "Utf8JsonWriter" |
| @@ -17658,13 +17664,16 @@ extension Ushort { | ||
| 17658 | 17664 | case yield = "yield" |
| 17659 | 17665 | } |
| 17660 | 17666 | |
| 17661 | - init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) { | |
| 17667 | + init(dummy: Int, obj6Var: Var, obj6Weak: Weak, obj6Where: Where, obj6While: While, obj6WillSet: WillSet, unsafe: Unsafe, unsigned: Unsigned, ushort: Ushort, using: Using, utf8JSONReader: Utf8JSONReader, utf8JSONWriter: Utf8JSONWriter, uuid: UUIDClass, virtual: Virtual, void: Void, volatile: Volatile, wcharT: WcharT, with: With, xor: Xor, xorEq: XorEq, yes: Yes, yield: Yield) { | |
| 17662 | 17668 | self.dummy = dummy |
| 17663 | 17669 | self.obj6Var = obj6Var |
| 17664 | 17670 | self.obj6Weak = obj6Weak |
| 17665 | 17671 | self.obj6Where = obj6Where |
| 17666 | 17672 | self.obj6While = obj6While |
| 17667 | 17673 | self.obj6WillSet = obj6WillSet |
| 17674 | + self.unsafe = unsafe | |
| 17675 | + self.unsigned = unsigned | |
| 17676 | + self.ushort = ushort | |
| 17668 | 17677 | self.using = using |
| 17669 | 17678 | self.utf8JSONReader = utf8JSONReader |
| 17670 | 17679 | self.utf8JSONWriter = utf8JSONWriter |
| @@ -17686,7 +17695,7 @@ extension Ushort { | ||
| 17686 | 17695 | extension Obj6 { |
| 17687 | 17696 | convenience init(data: Data) throws { |
| 17688 | 17697 | let me = try newJSONDecoder().decode(Obj6.self, from: data) |
| 17689 | - self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, using: me.using, utf8JSONReader: me.utf8JSONReader, 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) | |
| 17698 | + self.init(dummy: me.dummy, obj6Var: me.obj6Var, obj6Weak: me.obj6Weak, obj6Where: me.obj6Where, obj6While: me.obj6While, obj6WillSet: me.obj6WillSet, unsafe: me.unsafe, unsigned: me.unsigned, ushort: me.ushort, using: me.using, utf8JSONReader: me.utf8JSONReader, 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) | |
| 17690 | 17699 | } |
| 17691 | 17700 | |
| 17692 | 17701 | convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -17707,6 +17716,9 @@ extension Obj6 { | ||
| 17707 | 17716 | obj6Where: Where? = nil, |
| 17708 | 17717 | obj6While: While? = nil, |
| 17709 | 17718 | obj6WillSet: WillSet? = nil, |
| 17719 | + unsafe: Unsafe? = nil, | |
| 17720 | + unsigned: Unsigned? = nil, | |
| 17721 | + ushort: Ushort? = nil, | |
| 17710 | 17722 | using: Using? = nil, |
| 17711 | 17723 | utf8JSONReader: Utf8JSONReader? = nil, |
| 17712 | 17724 | utf8JSONWriter: Utf8JSONWriter? = nil, |
| @@ -17728,6 +17740,9 @@ extension Obj6 { | ||
| 17728 | 17740 | obj6Where: obj6Where ?? self.obj6Where, |
| 17729 | 17741 | obj6While: obj6While ?? self.obj6While, |
| 17730 | 17742 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 17743 | + unsafe: unsafe ?? self.unsafe, | |
| 17744 | + unsigned: unsigned ?? self.unsigned, | |
| 17745 | + ushort: ushort ?? self.ushort, | |
| 17731 | 17746 | using: using ?? self.using, |
| 17732 | 17747 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| 17733 | 17748 | utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, |
| @@ -17998,6 +18013,153 @@ extension WillSet { | ||
| 17998 | 18013 | } |
| 17999 | 18014 | } |
| 18000 | 18015 | |
| 18016 | +// MARK: - Unsafe | |
| 18017 | +@objcMembers class Unsafe: NSObject, Codable { | |
| 18018 | + let unsafe: Int | |
| 18019 | + | |
| 18020 | + enum CodingKeys: String, CodingKey { | |
| 18021 | + case unsafe = "unsafe" | |
| 18022 | + } | |
| 18023 | + | |
| 18024 | + init(unsafe: Int) { | |
| 18025 | + self.unsafe = unsafe | |
| 18026 | + } | |
| 18027 | +} | |
| 18028 | + | |
| 18029 | +// MARK: Unsafe convenience initializers and mutators | |
| 18030 | + | |
| 18031 | +extension Unsafe { | |
| 18032 | + convenience init(data: Data) throws { | |
| 18033 | + let me = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 18034 | + self.init(unsafe: me.unsafe) | |
| 18035 | + } | |
| 18036 | + | |
| 18037 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18038 | + guard let data = json.data(using: encoding) else { | |
| 18039 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18040 | + } | |
| 18041 | + try self.init(data: data) | |
| 18042 | + } | |
| 18043 | + | |
| 18044 | + convenience init(fromURL url: URL) throws { | |
| 18045 | + try self.init(data: try Data(contentsOf: url)) | |
| 18046 | + } | |
| 18047 | + | |
| 18048 | + func with( | |
| 18049 | + unsafe: Int? = nil | |
| 18050 | + ) -> Unsafe { | |
| 18051 | + return Unsafe( | |
| 18052 | + unsafe: unsafe ?? self.unsafe | |
| 18053 | + ) | |
| 18054 | + } | |
| 18055 | + | |
| 18056 | + func jsonData() throws -> Data { | |
| 18057 | + return try newJSONEncoder().encode(self) | |
| 18058 | + } | |
| 18059 | + | |
| 18060 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18061 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18062 | + } | |
| 18063 | +} | |
| 18064 | + | |
| 18065 | +// MARK: - Unsigned | |
| 18066 | +@objcMembers class Unsigned: NSObject, Codable { | |
| 18067 | + let unsigned: Int | |
| 18068 | + | |
| 18069 | + enum CodingKeys: String, CodingKey { | |
| 18070 | + case unsigned = "unsigned" | |
| 18071 | + } | |
| 18072 | + | |
| 18073 | + init(unsigned: Int) { | |
| 18074 | + self.unsigned = unsigned | |
| 18075 | + } | |
| 18076 | +} | |
| 18077 | + | |
| 18078 | +// MARK: Unsigned convenience initializers and mutators | |
| 18079 | + | |
| 18080 | +extension Unsigned { | |
| 18081 | + convenience init(data: Data) throws { | |
| 18082 | + let me = try newJSONDecoder().decode(Unsigned.self, from: data) | |
| 18083 | + self.init(unsigned: me.unsigned) | |
| 18084 | + } | |
| 18085 | + | |
| 18086 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18087 | + guard let data = json.data(using: encoding) else { | |
| 18088 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18089 | + } | |
| 18090 | + try self.init(data: data) | |
| 18091 | + } | |
| 18092 | + | |
| 18093 | + convenience init(fromURL url: URL) throws { | |
| 18094 | + try self.init(data: try Data(contentsOf: url)) | |
| 18095 | + } | |
| 18096 | + | |
| 18097 | + func with( | |
| 18098 | + unsigned: Int? = nil | |
| 18099 | + ) -> Unsigned { | |
| 18100 | + return Unsigned( | |
| 18101 | + unsigned: unsigned ?? self.unsigned | |
| 18102 | + ) | |
| 18103 | + } | |
| 18104 | + | |
| 18105 | + func jsonData() throws -> Data { | |
| 18106 | + return try newJSONEncoder().encode(self) | |
| 18107 | + } | |
| 18108 | + | |
| 18109 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18110 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18111 | + } | |
| 18112 | +} | |
| 18113 | + | |
| 18114 | +// MARK: - Ushort | |
| 18115 | +@objcMembers class Ushort: NSObject, Codable { | |
| 18116 | + let ushort: Int | |
| 18117 | + | |
| 18118 | + enum CodingKeys: String, CodingKey { | |
| 18119 | + case ushort = "ushort" | |
| 18120 | + } | |
| 18121 | + | |
| 18122 | + init(ushort: Int) { | |
| 18123 | + self.ushort = ushort | |
| 18124 | + } | |
| 18125 | +} | |
| 18126 | + | |
| 18127 | +// MARK: Ushort convenience initializers and mutators | |
| 18128 | + | |
| 18129 | +extension Ushort { | |
| 18130 | + convenience init(data: Data) throws { | |
| 18131 | + let me = try newJSONDecoder().decode(Ushort.self, from: data) | |
| 18132 | + self.init(ushort: me.ushort) | |
| 18133 | + } | |
| 18134 | + | |
| 18135 | + convenience init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18136 | + guard let data = json.data(using: encoding) else { | |
| 18137 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18138 | + } | |
| 18139 | + try self.init(data: data) | |
| 18140 | + } | |
| 18141 | + | |
| 18142 | + convenience init(fromURL url: URL) throws { | |
| 18143 | + try self.init(data: try Data(contentsOf: url)) | |
| 18144 | + } | |
| 18145 | + | |
| 18146 | + func with( | |
| 18147 | + ushort: Int? = nil | |
| 18148 | + ) -> Ushort { | |
| 18149 | + return Ushort( | |
| 18150 | + ushort: ushort ?? self.ushort | |
| 18151 | + ) | |
| 18152 | + } | |
| 18153 | + | |
| 18154 | + func jsonData() throws -> Data { | |
| 18155 | + return try newJSONEncoder().encode(self) | |
| 18156 | + } | |
| 18157 | + | |
| 18158 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18159 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18160 | + } | |
| 18161 | +} | |
| 18162 | + | |
| 18001 | 18163 | // MARK: - Using |
| 18002 | 18164 | @objcMembers class Using: NSObject, Codable { |
| 18003 | 18165 | let using: Int |
Mswiftprotocol-equatable--bd9068f466c1 / quicktype.swift+596 −434
| @@ -7139,6 +7139,7 @@ struct Obj3: Codable, Equatable { | ||
| 7139 | 7139 | let jsonWriter: JSONWriter |
| 7140 | 7140 | let lambda: Lambda |
| 7141 | 7141 | let list: List |
| 7142 | + let localDate: LocalDate | |
| 7142 | 7143 | let locale: LocaleClass |
| 7143 | 7144 | let lock: Lock |
| 7144 | 7145 | let long: Long |
| @@ -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 |
| @@ -7206,6 +7206,7 @@ struct Obj3: Codable, Equatable { | ||
| 7206 | 7206 | case jsonWriter = "json_writer" |
| 7207 | 7207 | case lambda = "lambda" |
| 7208 | 7208 | case list = "list" |
| 7209 | + case localDate = "LocalDate" | |
| 7209 | 7210 | case locale = "Locale" |
| 7210 | 7211 | case lock = "lock" |
| 7211 | 7212 | case long = "long" |
| @@ -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" |
| @@ -7293,6 +7293,7 @@ extension Obj3 { | ||
| 7293 | 7293 | jsonWriter: JSONWriter? = nil, |
| 7294 | 7294 | lambda: Lambda? = nil, |
| 7295 | 7295 | list: List? = nil, |
| 7296 | + localDate: LocalDate? = nil, | |
| 7296 | 7297 | locale: LocaleClass? = nil, |
| 7297 | 7298 | lock: Lock? = nil, |
| 7298 | 7299 | long: Long? = 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, |
| @@ -7360,6 +7360,7 @@ extension Obj3 { | ||
| 7360 | 7360 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 7361 | 7361 | lambda: lambda ?? self.lambda, |
| 7362 | 7362 | list: list ?? self.list, |
| 7363 | + localDate: localDate ?? self.localDate, | |
| 7363 | 7364 | locale: locale ?? self.locale, |
| 7364 | 7365 | lock: lock ?? self.lock, |
| 7365 | 7366 | long: long ?? self.long, |
| @@ -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, |
| @@ -9108,6 +9108,56 @@ extension List { | ||
| 9108 | 9108 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 9109 | 9109 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 9110 | 9110 | |
| 9111 | +// MARK: - LocalDate | |
| 9112 | +struct LocalDate: Codable, Equatable { | |
| 9113 | + let localDate: Int | |
| 9114 | + | |
| 9115 | + enum CodingKeys: String, CodingKey { | |
| 9116 | + case localDate = "LocalDate" | |
| 9117 | + } | |
| 9118 | +} | |
| 9119 | + | |
| 9120 | +// MARK: LocalDate convenience initializers and mutators | |
| 9121 | + | |
| 9122 | +extension LocalDate { | |
| 9123 | + init(data: Data) throws { | |
| 9124 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 9125 | + } | |
| 9126 | + | |
| 9127 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 9128 | + guard let data = json.data(using: encoding) else { | |
| 9129 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 9130 | + } | |
| 9131 | + try self.init(data: data) | |
| 9132 | + } | |
| 9133 | + | |
| 9134 | + init(fromURL url: URL) throws { | |
| 9135 | + try self.init(data: try Data(contentsOf: url)) | |
| 9136 | + } | |
| 9137 | + | |
| 9138 | + func with( | |
| 9139 | + localDate: Int? = nil | |
| 9140 | + ) -> LocalDate { | |
| 9141 | + return LocalDate( | |
| 9142 | + localDate: localDate ?? self.localDate | |
| 9143 | + ) | |
| 9144 | + } | |
| 9145 | + | |
| 9146 | + func jsonData() throws -> Data { | |
| 9147 | + return try newJSONEncoder().encode(self) | |
| 9148 | + } | |
| 9149 | + | |
| 9150 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 9151 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 9152 | + } | |
| 9153 | +} | |
| 9154 | + | |
| 9155 | +// | |
| 9156 | +// Hashable or Equatable: | |
| 9157 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 9158 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 9159 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 9160 | + | |
| 9111 | 9161 | // MARK: - LocaleClass |
| 9112 | 9162 | struct LocaleClass: Codable, Equatable { |
| 9113 | 9163 | let locale: 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 |
| @@ -10644,6 +10645,8 @@ struct Obj4: Codable, Equatable { | ||
| 10644 | 10645 | let object: Object |
| 10645 | 10646 | let objectMapper: ObjectMapper |
| 10646 | 10647 | let of: Of |
| 10648 | + let offsetDateTime: OffsetDateTime | |
| 10649 | + let offsetTime: OffsetTime | |
| 10647 | 10650 | let oneway: Oneway |
| 10648 | 10651 | let or: Or |
| 10649 | 10652 | let orEq: OrEq |
| @@ -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" |
| @@ -10711,6 +10712,8 @@ struct Obj4: Codable, Equatable { | ||
| 10711 | 10712 | case object = "object" |
| 10712 | 10713 | case objectMapper = "ObjectMapper" |
| 10713 | 10714 | case of = "of" |
| 10715 | + case offsetDateTime = "OffsetDateTime" | |
| 10716 | + case offsetTime = "OffsetTime" | |
| 10714 | 10717 | case oneway = "oneway" |
| 10715 | 10718 | case or = "or" |
| 10716 | 10719 | case orEq = "or_eq" |
| @@ -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, |
| @@ -10798,6 +10799,8 @@ extension Obj4 { | ||
| 10798 | 10799 | object: Object? = nil, |
| 10799 | 10800 | objectMapper: ObjectMapper? = nil, |
| 10800 | 10801 | of: Of? = nil, |
| 10802 | + offsetDateTime: OffsetDateTime? = nil, | |
| 10803 | + offsetTime: OffsetTime? = nil, | |
| 10801 | 10804 | oneway: Oneway? = nil, |
| 10802 | 10805 | or: Or? = nil, |
| 10803 | 10806 | orEq: OrEq? = 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, |
| @@ -10865,6 +10866,8 @@ extension Obj4 { | ||
| 10865 | 10866 | object: object ?? self.object, |
| 10866 | 10867 | objectMapper: objectMapper ?? self.objectMapper, |
| 10867 | 10868 | of: of ?? self.of, |
| 10869 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 10870 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 10868 | 10871 | oneway: oneway ?? self.oneway, |
| 10869 | 10872 | or: or ?? self.or, |
| 10870 | 10873 | orEq: orEq ?? self.orEq, |
| @@ -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,6 +10964,56 @@ 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: - Noexcept | |
| 10968 | +struct Noexcept: Codable, Equatable { | |
| 10969 | + let noexcept: Int | |
| 10970 | + | |
| 10971 | + enum CodingKeys: String, CodingKey { | |
| 10972 | + case noexcept = "noexcept" | |
| 10973 | + } | |
| 10974 | +} | |
| 10975 | + | |
| 10976 | +// MARK: Noexcept convenience initializers and mutators | |
| 10977 | + | |
| 10978 | +extension Noexcept { | |
| 10979 | + init(data: Data) throws { | |
| 10980 | + self = try newJSONDecoder().decode(Noexcept.self, from: data) | |
| 10981 | + } | |
| 10982 | + | |
| 10983 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10984 | + guard let data = json.data(using: encoding) else { | |
| 10985 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10986 | + } | |
| 10987 | + try self.init(data: data) | |
| 10988 | + } | |
| 10989 | + | |
| 10990 | + init(fromURL url: URL) throws { | |
| 10991 | + try self.init(data: try Data(contentsOf: url)) | |
| 10992 | + } | |
| 10993 | + | |
| 10994 | + func with( | |
| 10995 | + noexcept: Int? = nil | |
| 10996 | + ) -> Noexcept { | |
| 10997 | + return Noexcept( | |
| 10998 | + noexcept: noexcept ?? self.noexcept | |
| 10999 | + ) | |
| 11000 | + } | |
| 11001 | + | |
| 11002 | + func jsonData() throws -> Data { | |
| 11003 | + return try newJSONEncoder().encode(self) | |
| 11004 | + } | |
| 11005 | + | |
| 11006 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 11007 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 11008 | + } | |
| 11009 | +} | |
| 11010 | + | |
| 11011 | +// | |
| 11012 | +// Hashable or Equatable: | |
| 11013 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 11014 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 11015 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 11016 | + | |
| 10967 | 11017 | // MARK: - Nonatomic |
| 10968 | 11018 | struct Nonatomic: Codable, Equatable { |
| 10969 | 11019 | let nonatomic: Int |
| @@ -12564,6 +12614,106 @@ extension Of { | ||
| 12564 | 12614 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 12565 | 12615 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 12566 | 12616 | |
| 12617 | +// MARK: - OffsetDateTime | |
| 12618 | +struct OffsetDateTime: Codable, Equatable { | |
| 12619 | + let offsetDateTime: Int | |
| 12620 | + | |
| 12621 | + enum CodingKeys: String, CodingKey { | |
| 12622 | + case offsetDateTime = "OffsetDateTime" | |
| 12623 | + } | |
| 12624 | +} | |
| 12625 | + | |
| 12626 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 12627 | + | |
| 12628 | +extension OffsetDateTime { | |
| 12629 | + init(data: Data) throws { | |
| 12630 | + self = try newJSONDecoder().decode(OffsetDateTime.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 | + offsetDateTime: Int? = nil | |
| 12646 | + ) -> OffsetDateTime { | |
| 12647 | + return OffsetDateTime( | |
| 12648 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 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 | + | |
| 12667 | +// MARK: - OffsetTime | |
| 12668 | +struct OffsetTime: Codable, Equatable { | |
| 12669 | + let offsetTime: Int | |
| 12670 | + | |
| 12671 | + enum CodingKeys: String, CodingKey { | |
| 12672 | + case offsetTime = "OffsetTime" | |
| 12673 | + } | |
| 12674 | +} | |
| 12675 | + | |
| 12676 | +// MARK: OffsetTime convenience initializers and mutators | |
| 12677 | + | |
| 12678 | +extension OffsetTime { | |
| 12679 | + init(data: Data) throws { | |
| 12680 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 12681 | + } | |
| 12682 | + | |
| 12683 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12684 | + guard let data = json.data(using: encoding) else { | |
| 12685 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12686 | + } | |
| 12687 | + try self.init(data: data) | |
| 12688 | + } | |
| 12689 | + | |
| 12690 | + init(fromURL url: URL) throws { | |
| 12691 | + try self.init(data: try Data(contentsOf: url)) | |
| 12692 | + } | |
| 12693 | + | |
| 12694 | + func with( | |
| 12695 | + offsetTime: Int? = nil | |
| 12696 | + ) -> OffsetTime { | |
| 12697 | + return OffsetTime( | |
| 12698 | + offsetTime: offsetTime ?? self.offsetTime | |
| 12699 | + ) | |
| 12700 | + } | |
| 12701 | + | |
| 12702 | + func jsonData() throws -> Data { | |
| 12703 | + return try newJSONEncoder().encode(self) | |
| 12704 | + } | |
| 12705 | + | |
| 12706 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12707 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12708 | + } | |
| 12709 | +} | |
| 12710 | + | |
| 12711 | +// | |
| 12712 | +// Hashable or Equatable: | |
| 12713 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 12714 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 12715 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 12716 | + | |
| 12567 | 12717 | // MARK: - Oneway |
| 12568 | 12718 | struct Oneway: Codable, Equatable { |
| 12569 | 12719 | let oneway: Int |
| @@ -13964,156 +14114,6 @@ 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 | |
| 13970 | - | |
| 13971 | - enum CodingKeys: String, CodingKey { | |
| 13972 | - 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 | - 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 | - 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 | 14117 | // MARK: - Obj5 |
| 14118 | 14118 | struct Obj5: Codable, Equatable { |
| 14119 | 14119 | let dummy: Int |
| @@ -14135,6 +14135,9 @@ struct Obj5: Codable, Equatable { | ||
| 14135 | 14135 | let primitiveKind: PrimitiveKind |
| 14136 | 14136 | let purpleSelf: Obj5Self |
| 14137 | 14137 | let purpleTrue: TrueClass |
| 14138 | + let sealed: Sealed | |
| 14139 | + let sel: Sel | |
| 14140 | + let select: Select | |
| 14138 | 14141 | let sendable: Sendable |
| 14139 | 14142 | let serialDescriptor: SerialDescriptor |
| 14140 | 14143 | let serialName: SerialName |
| @@ -14177,10 +14180,7 @@ struct Obj5: Codable, Equatable { | ||
| 14177 | 14180 | let unchecked: Unchecked |
| 14178 | 14181 | let undefined: Undefined |
| 14179 | 14182 | let union: Union |
| 14180 | - let unsafe: Unsafe | |
| 14181 | - let unsigned: Unsigned | |
| 14182 | 14183 | let useSerializers: UseSerializers |
| 14183 | - let ushort: Ushort | |
| 14184 | 14184 | |
| 14185 | 14185 | enum CodingKeys: String, CodingKey { |
| 14186 | 14186 | case dummy = "dummy" |
| @@ -14202,6 +14202,9 @@ struct Obj5: Codable, Equatable { | ||
| 14202 | 14202 | case primitiveKind = "PrimitiveKind" |
| 14203 | 14203 | case purpleSelf = "self" |
| 14204 | 14204 | case purpleTrue = "true" |
| 14205 | + case sealed = "sealed" | |
| 14206 | + case sel = "SEL" | |
| 14207 | + case select = "select" | |
| 14205 | 14208 | case sendable = "Sendable" |
| 14206 | 14209 | case serialDescriptor = "SerialDescriptor" |
| 14207 | 14210 | case serialName = "SerialName" |
| @@ -14244,10 +14247,7 @@ struct Obj5: Codable, Equatable { | ||
| 14244 | 14247 | case unchecked = "unchecked" |
| 14245 | 14248 | case undefined = "undefined" |
| 14246 | 14249 | case union = "union" |
| 14247 | - case unsafe = "unsafe" | |
| 14248 | - case unsigned = "unsigned" | |
| 14249 | 14250 | case useSerializers = "UseSerializers" |
| 14250 | - case ushort = "ushort" | |
| 14251 | 14251 | } |
| 14252 | 14252 | } |
| 14253 | 14253 | |
| @@ -14289,6 +14289,9 @@ extension Obj5 { | ||
| 14289 | 14289 | primitiveKind: PrimitiveKind? = nil, |
| 14290 | 14290 | purpleSelf: Obj5Self? = nil, |
| 14291 | 14291 | purpleTrue: TrueClass? = nil, |
| 14292 | + sealed: Sealed? = nil, | |
| 14293 | + sel: Sel? = nil, | |
| 14294 | + select: Select? = nil, | |
| 14292 | 14295 | sendable: Sendable? = nil, |
| 14293 | 14296 | serialDescriptor: SerialDescriptor? = nil, |
| 14294 | 14297 | serialName: SerialName? = nil, |
| @@ -14331,10 +14334,7 @@ extension Obj5 { | ||
| 14331 | 14334 | unchecked: Unchecked? = nil, |
| 14332 | 14335 | undefined: Undefined? = nil, |
| 14333 | 14336 | union: Union? = nil, |
| 14334 | - unsafe: Unsafe? = nil, | |
| 14335 | - unsigned: Unsigned? = nil, | |
| 14336 | - useSerializers: UseSerializers? = nil, | |
| 14337 | - ushort: Ushort? = nil | |
| 14337 | + useSerializers: UseSerializers? = nil | |
| 14338 | 14338 | ) -> Obj5 { |
| 14339 | 14339 | return Obj5( |
| 14340 | 14340 | dummy: dummy ?? self.dummy, |
| @@ -14356,6 +14356,9 @@ extension Obj5 { | ||
| 14356 | 14356 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 14357 | 14357 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 14358 | 14358 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 14359 | + sealed: sealed ?? self.sealed, | |
| 14360 | + sel: sel ?? self.sel, | |
| 14361 | + select: select ?? self.select, | |
| 14359 | 14362 | sendable: sendable ?? self.sendable, |
| 14360 | 14363 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| 14361 | 14364 | serialName: serialName ?? self.serialName, |
| @@ -14398,10 +14401,7 @@ extension Obj5 { | ||
| 14398 | 14401 | unchecked: unchecked ?? self.unchecked, |
| 14399 | 14402 | undefined: undefined ?? self.undefined, |
| 14400 | 14403 | union: union ?? self.union, |
| 14401 | - unsafe: unsafe ?? self.unsafe, | |
| 14402 | - unsigned: unsigned ?? self.unsigned, | |
| 14403 | - useSerializers: useSerializers ?? self.useSerializers, | |
| 14404 | - ushort: ushort ?? self.ushort | |
| 14404 | + useSerializers: useSerializers ?? self.useSerializers | |
| 14405 | 14405 | ) |
| 14406 | 14406 | } |
| 14407 | 14407 | |
| @@ -15320,20 +15320,20 @@ extension TrueClass { | ||
| 15320 | 15320 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15321 | 15321 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15322 | 15322 | |
| 15323 | -// MARK: - Sendable | |
| 15324 | -struct Sendable: Codable, Equatable { | |
| 15325 | - let sendable: Int | |
| 15323 | +// MARK: - Sealed | |
| 15324 | +struct Sealed: Codable, Equatable { | |
| 15325 | + let sealed: Int | |
| 15326 | 15326 | |
| 15327 | 15327 | enum CodingKeys: String, CodingKey { |
| 15328 | - case sendable = "Sendable" | |
| 15328 | + case sealed = "sealed" | |
| 15329 | 15329 | } |
| 15330 | 15330 | } |
| 15331 | 15331 | |
| 15332 | -// MARK: Sendable convenience initializers and mutators | |
| 15332 | +// MARK: Sealed convenience initializers and mutators | |
| 15333 | 15333 | |
| 15334 | -extension Sendable { | |
| 15334 | +extension Sealed { | |
| 15335 | 15335 | init(data: Data) throws { |
| 15336 | - self = try newJSONDecoder().decode(Sendable.self, from: data) | |
| 15336 | + self = try newJSONDecoder().decode(Sealed.self, from: data) | |
| 15337 | 15337 | } |
| 15338 | 15338 | |
| 15339 | 15339 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15348,10 +15348,10 @@ extension Sendable { | ||
| 15348 | 15348 | } |
| 15349 | 15349 | |
| 15350 | 15350 | func with( |
| 15351 | - sendable: Int? = nil | |
| 15352 | - ) -> Sendable { | |
| 15353 | - return Sendable( | |
| 15354 | - sendable: sendable ?? self.sendable | |
| 15351 | + sealed: Int? = nil | |
| 15352 | + ) -> Sealed { | |
| 15353 | + return Sealed( | |
| 15354 | + sealed: sealed ?? self.sealed | |
| 15355 | 15355 | ) |
| 15356 | 15356 | } |
| 15357 | 15357 | |
| @@ -15370,20 +15370,20 @@ extension Sendable { | ||
| 15370 | 15370 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15371 | 15371 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15372 | 15372 | |
| 15373 | -// MARK: - SerialDescriptor | |
| 15374 | -struct SerialDescriptor: Codable, Equatable { | |
| 15375 | - let serialDescriptor: Int | |
| 15373 | +// MARK: - Sel | |
| 15374 | +struct Sel: Codable, Equatable { | |
| 15375 | + let sel: Int | |
| 15376 | 15376 | |
| 15377 | 15377 | enum CodingKeys: String, CodingKey { |
| 15378 | - case serialDescriptor = "SerialDescriptor" | |
| 15378 | + case sel = "SEL" | |
| 15379 | 15379 | } |
| 15380 | 15380 | } |
| 15381 | 15381 | |
| 15382 | -// MARK: SerialDescriptor convenience initializers and mutators | |
| 15382 | +// MARK: Sel convenience initializers and mutators | |
| 15383 | 15383 | |
| 15384 | -extension SerialDescriptor { | |
| 15384 | +extension Sel { | |
| 15385 | 15385 | init(data: Data) throws { |
| 15386 | - self = try newJSONDecoder().decode(SerialDescriptor.self, from: data) | |
| 15386 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 15387 | 15387 | } |
| 15388 | 15388 | |
| 15389 | 15389 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15398,10 +15398,10 @@ extension SerialDescriptor { | ||
| 15398 | 15398 | } |
| 15399 | 15399 | |
| 15400 | 15400 | func with( |
| 15401 | - serialDescriptor: Int? = nil | |
| 15402 | - ) -> SerialDescriptor { | |
| 15403 | - return SerialDescriptor( | |
| 15404 | - serialDescriptor: serialDescriptor ?? self.serialDescriptor | |
| 15401 | + sel: Int? = nil | |
| 15402 | + ) -> Sel { | |
| 15403 | + return Sel( | |
| 15404 | + sel: sel ?? self.sel | |
| 15405 | 15405 | ) |
| 15406 | 15406 | } |
| 15407 | 15407 | |
| @@ -15420,20 +15420,20 @@ extension SerialDescriptor { | ||
| 15420 | 15420 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15421 | 15421 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15422 | 15422 | |
| 15423 | -// MARK: - SerialName | |
| 15424 | -struct SerialName: Codable, Equatable { | |
| 15425 | - let serialName: Int | |
| 15423 | +// MARK: - Select | |
| 15424 | +struct Select: Codable, Equatable { | |
| 15425 | + let select: Int | |
| 15426 | 15426 | |
| 15427 | 15427 | enum CodingKeys: String, CodingKey { |
| 15428 | - case serialName = "SerialName" | |
| 15428 | + case select = "select" | |
| 15429 | 15429 | } |
| 15430 | 15430 | } |
| 15431 | 15431 | |
| 15432 | -// MARK: SerialName convenience initializers and mutators | |
| 15432 | +// MARK: Select convenience initializers and mutators | |
| 15433 | 15433 | |
| 15434 | -extension SerialName { | |
| 15434 | +extension Select { | |
| 15435 | 15435 | init(data: Data) throws { |
| 15436 | - self = try newJSONDecoder().decode(SerialName.self, from: data) | |
| 15436 | + self = try newJSONDecoder().decode(Select.self, from: data) | |
| 15437 | 15437 | } |
| 15438 | 15438 | |
| 15439 | 15439 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15448,10 +15448,10 @@ extension SerialName { | ||
| 15448 | 15448 | } |
| 15449 | 15449 | |
| 15450 | 15450 | func with( |
| 15451 | - serialName: Int? = nil | |
| 15452 | - ) -> SerialName { | |
| 15453 | - return SerialName( | |
| 15454 | - serialName: serialName ?? self.serialName | |
| 15451 | + select: Int? = nil | |
| 15452 | + ) -> Select { | |
| 15453 | + return Select( | |
| 15454 | + select: select ?? self.select | |
| 15455 | 15455 | ) |
| 15456 | 15456 | } |
| 15457 | 15457 | |
| @@ -15470,20 +15470,20 @@ extension SerialName { | ||
| 15470 | 15470 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15471 | 15471 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15472 | 15472 | |
| 15473 | -// MARK: - Serializable | |
| 15474 | -struct Serializable: Codable, Equatable { | |
| 15475 | - let serializable: Int | |
| 15473 | +// MARK: - Sendable | |
| 15474 | +struct Sendable: Codable, Equatable { | |
| 15475 | + let sendable: Int | |
| 15476 | 15476 | |
| 15477 | 15477 | enum CodingKeys: String, CodingKey { |
| 15478 | - case serializable = "Serializable" | |
| 15478 | + case sendable = "Sendable" | |
| 15479 | 15479 | } |
| 15480 | 15480 | } |
| 15481 | 15481 | |
| 15482 | -// MARK: Serializable convenience initializers and mutators | |
| 15482 | +// MARK: Sendable convenience initializers and mutators | |
| 15483 | 15483 | |
| 15484 | -extension Serializable { | |
| 15484 | +extension Sendable { | |
| 15485 | 15485 | init(data: Data) throws { |
| 15486 | - self = try newJSONDecoder().decode(Serializable.self, from: data) | |
| 15486 | + self = try newJSONDecoder().decode(Sendable.self, from: data) | |
| 15487 | 15487 | } |
| 15488 | 15488 | |
| 15489 | 15489 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15498,10 +15498,10 @@ extension Serializable { | ||
| 15498 | 15498 | } |
| 15499 | 15499 | |
| 15500 | 15500 | func with( |
| 15501 | - serializable: Int? = nil | |
| 15502 | - ) -> Serializable { | |
| 15503 | - return Serializable( | |
| 15504 | - serializable: serializable ?? self.serializable | |
| 15501 | + sendable: Int? = nil | |
| 15502 | + ) -> Sendable { | |
| 15503 | + return Sendable( | |
| 15504 | + sendable: sendable ?? self.sendable | |
| 15505 | 15505 | ) |
| 15506 | 15506 | } |
| 15507 | 15507 | |
| @@ -15520,20 +15520,20 @@ extension Serializable { | ||
| 15520 | 15520 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 15521 | 15521 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 15522 | 15522 | |
| 15523 | -// MARK: - Serialize | |
| 15524 | -struct Serialize: Codable, Equatable { | |
| 15525 | - let serialize: Int | |
| 15523 | +// MARK: - SerialDescriptor | |
| 15524 | +struct SerialDescriptor: Codable, Equatable { | |
| 15525 | + let serialDescriptor: Int | |
| 15526 | 15526 | |
| 15527 | 15527 | enum CodingKeys: String, CodingKey { |
| 15528 | - case serialize = "serialize" | |
| 15528 | + case serialDescriptor = "SerialDescriptor" | |
| 15529 | 15529 | } |
| 15530 | 15530 | } |
| 15531 | 15531 | |
| 15532 | -// MARK: Serialize convenience initializers and mutators | |
| 15532 | +// MARK: SerialDescriptor convenience initializers and mutators | |
| 15533 | 15533 | |
| 15534 | -extension Serialize { | |
| 15534 | +extension SerialDescriptor { | |
| 15535 | 15535 | init(data: Data) throws { |
| 15536 | - self = try newJSONDecoder().decode(Serialize.self, from: data) | |
| 15536 | + self = try newJSONDecoder().decode(SerialDescriptor.self, from: data) | |
| 15537 | 15537 | } |
| 15538 | 15538 | |
| 15539 | 15539 | init(_ json: String, using encoding: String.Encoding = .utf8) throws { |
| @@ -15548,7 +15548,157 @@ extension Serialize { | ||
| 15548 | 15548 | } |
| 15549 | 15549 | |
| 15550 | 15550 | func with( |
| 15551 | - serialize: Int? = nil | |
| 15551 | + serialDescriptor: Int? = nil | |
| 15552 | + ) -> SerialDescriptor { | |
| 15553 | + return SerialDescriptor( | |
| 15554 | + serialDescriptor: serialDescriptor ?? self.serialDescriptor | |
| 15555 | + ) | |
| 15556 | + } | |
| 15557 | + | |
| 15558 | + func jsonData() throws -> Data { | |
| 15559 | + return try newJSONEncoder().encode(self) | |
| 15560 | + } | |
| 15561 | + | |
| 15562 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15563 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 15564 | + } | |
| 15565 | +} | |
| 15566 | + | |
| 15567 | +// | |
| 15568 | +// Hashable or Equatable: | |
| 15569 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15570 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15571 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15572 | + | |
| 15573 | +// MARK: - SerialName | |
| 15574 | +struct SerialName: Codable, Equatable { | |
| 15575 | + let serialName: Int | |
| 15576 | + | |
| 15577 | + enum CodingKeys: String, CodingKey { | |
| 15578 | + case serialName = "SerialName" | |
| 15579 | + } | |
| 15580 | +} | |
| 15581 | + | |
| 15582 | +// MARK: SerialName convenience initializers and mutators | |
| 15583 | + | |
| 15584 | +extension SerialName { | |
| 15585 | + init(data: Data) throws { | |
| 15586 | + self = try newJSONDecoder().decode(SerialName.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 | + serialName: Int? = nil | |
| 15602 | + ) -> SerialName { | |
| 15603 | + return SerialName( | |
| 15604 | + serialName: serialName ?? self.serialName | |
| 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 | +// | |
| 15618 | +// Hashable or Equatable: | |
| 15619 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15620 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15621 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15622 | + | |
| 15623 | +// MARK: - Serializable | |
| 15624 | +struct Serializable: Codable, Equatable { | |
| 15625 | + let serializable: Int | |
| 15626 | + | |
| 15627 | + enum CodingKeys: String, CodingKey { | |
| 15628 | + case serializable = "Serializable" | |
| 15629 | + } | |
| 15630 | +} | |
| 15631 | + | |
| 15632 | +// MARK: Serializable convenience initializers and mutators | |
| 15633 | + | |
| 15634 | +extension Serializable { | |
| 15635 | + init(data: Data) throws { | |
| 15636 | + self = try newJSONDecoder().decode(Serializable.self, from: data) | |
| 15637 | + } | |
| 15638 | + | |
| 15639 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15640 | + guard let data = json.data(using: encoding) else { | |
| 15641 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15642 | + } | |
| 15643 | + try self.init(data: data) | |
| 15644 | + } | |
| 15645 | + | |
| 15646 | + init(fromURL url: URL) throws { | |
| 15647 | + try self.init(data: try Data(contentsOf: url)) | |
| 15648 | + } | |
| 15649 | + | |
| 15650 | + func with( | |
| 15651 | + serializable: Int? = nil | |
| 15652 | + ) -> Serializable { | |
| 15653 | + return Serializable( | |
| 15654 | + serializable: serializable ?? self.serializable | |
| 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 | + | |
| 15667 | +// | |
| 15668 | +// Hashable or Equatable: | |
| 15669 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 15670 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 15671 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 15672 | + | |
| 15673 | +// MARK: - Serialize | |
| 15674 | +struct Serialize: Codable, Equatable { | |
| 15675 | + let serialize: Int | |
| 15676 | + | |
| 15677 | + enum CodingKeys: String, CodingKey { | |
| 15678 | + case serialize = "serialize" | |
| 15679 | + } | |
| 15680 | +} | |
| 15681 | + | |
| 15682 | +// MARK: Serialize convenience initializers and mutators | |
| 15683 | + | |
| 15684 | +extension Serialize { | |
| 15685 | + init(data: Data) throws { | |
| 15686 | + self = try newJSONDecoder().decode(Serialize.self, from: data) | |
| 15687 | + } | |
| 15688 | + | |
| 15689 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15690 | + guard let data = json.data(using: encoding) else { | |
| 15691 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15692 | + } | |
| 15693 | + try self.init(data: data) | |
| 15694 | + } | |
| 15695 | + | |
| 15696 | + init(fromURL url: URL) throws { | |
| 15697 | + try self.init(data: try Data(contentsOf: url)) | |
| 15698 | + } | |
| 15699 | + | |
| 15700 | + func with( | |
| 15701 | + serialize: Int? = nil | |
| 15552 | 15702 | ) -> Serialize { |
| 15553 | 15703 | return Serialize( |
| 15554 | 15704 | serialize: serialize ?? self.serialize |
| @@ -17420,106 +17570,6 @@ extension Union { | ||
| 17420 | 17570 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17421 | 17571 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17422 | 17572 | |
| 17423 | -// MARK: - Unsafe | |
| 17424 | -struct Unsafe: Codable, Equatable { | |
| 17425 | - let unsafe: Int | |
| 17426 | - | |
| 17427 | - enum CodingKeys: String, CodingKey { | |
| 17428 | - case unsafe = "unsafe" | |
| 17429 | - } | |
| 17430 | -} | |
| 17431 | - | |
| 17432 | -// MARK: Unsafe convenience initializers and mutators | |
| 17433 | - | |
| 17434 | -extension Unsafe { | |
| 17435 | - init(data: Data) throws { | |
| 17436 | - self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 17437 | - } | |
| 17438 | - | |
| 17439 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17440 | - guard let data = json.data(using: encoding) else { | |
| 17441 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17442 | - } | |
| 17443 | - try self.init(data: data) | |
| 17444 | - } | |
| 17445 | - | |
| 17446 | - init(fromURL url: URL) throws { | |
| 17447 | - try self.init(data: try Data(contentsOf: url)) | |
| 17448 | - } | |
| 17449 | - | |
| 17450 | - func with( | |
| 17451 | - unsafe: Int? = nil | |
| 17452 | - ) -> Unsafe { | |
| 17453 | - return Unsafe( | |
| 17454 | - unsafe: unsafe ?? self.unsafe | |
| 17455 | - ) | |
| 17456 | - } | |
| 17457 | - | |
| 17458 | - func jsonData() throws -> Data { | |
| 17459 | - return try newJSONEncoder().encode(self) | |
| 17460 | - } | |
| 17461 | - | |
| 17462 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17463 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17464 | - } | |
| 17465 | -} | |
| 17466 | - | |
| 17467 | -// | |
| 17468 | -// Hashable or Equatable: | |
| 17469 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17470 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17471 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17472 | - | |
| 17473 | -// MARK: - Unsigned | |
| 17474 | -struct Unsigned: Codable, Equatable { | |
| 17475 | - let unsigned: Int | |
| 17476 | - | |
| 17477 | - enum CodingKeys: String, CodingKey { | |
| 17478 | - case unsigned = "unsigned" | |
| 17479 | - } | |
| 17480 | -} | |
| 17481 | - | |
| 17482 | -// MARK: Unsigned convenience initializers and mutators | |
| 17483 | - | |
| 17484 | -extension Unsigned { | |
| 17485 | - init(data: Data) throws { | |
| 17486 | - self = try newJSONDecoder().decode(Unsigned.self, from: data) | |
| 17487 | - } | |
| 17488 | - | |
| 17489 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17490 | - guard let data = json.data(using: encoding) else { | |
| 17491 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17492 | - } | |
| 17493 | - try self.init(data: data) | |
| 17494 | - } | |
| 17495 | - | |
| 17496 | - init(fromURL url: URL) throws { | |
| 17497 | - try self.init(data: try Data(contentsOf: url)) | |
| 17498 | - } | |
| 17499 | - | |
| 17500 | - func with( | |
| 17501 | - unsigned: Int? = nil | |
| 17502 | - ) -> Unsigned { | |
| 17503 | - return Unsigned( | |
| 17504 | - unsigned: unsigned ?? self.unsigned | |
| 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 | |
| 17521 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17522 | - | |
| 17523 | 17573 | // MARK: - UseSerializers |
| 17524 | 17574 | struct UseSerializers: Codable, Equatable { |
| 17525 | 17575 | let useSerializers: Int |
| @@ -17570,56 +17620,6 @@ extension UseSerializers { | ||
| 17570 | 17620 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17571 | 17621 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17572 | 17622 | |
| 17573 | -// MARK: - Ushort | |
| 17574 | -struct Ushort: Codable, Equatable { | |
| 17575 | - let ushort: Int | |
| 17576 | - | |
| 17577 | - enum CodingKeys: String, CodingKey { | |
| 17578 | - case ushort = "ushort" | |
| 17579 | - } | |
| 17580 | -} | |
| 17581 | - | |
| 17582 | -// MARK: Ushort convenience initializers and mutators | |
| 17583 | - | |
| 17584 | -extension Ushort { | |
| 17585 | - init(data: Data) throws { | |
| 17586 | - self = try newJSONDecoder().decode(Ushort.self, from: data) | |
| 17587 | - } | |
| 17588 | - | |
| 17589 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 17590 | - guard let data = json.data(using: encoding) else { | |
| 17591 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 17592 | - } | |
| 17593 | - try self.init(data: data) | |
| 17594 | - } | |
| 17595 | - | |
| 17596 | - init(fromURL url: URL) throws { | |
| 17597 | - try self.init(data: try Data(contentsOf: url)) | |
| 17598 | - } | |
| 17599 | - | |
| 17600 | - func with( | |
| 17601 | - ushort: Int? = nil | |
| 17602 | - ) -> Ushort { | |
| 17603 | - return Ushort( | |
| 17604 | - ushort: ushort ?? self.ushort | |
| 17605 | - ) | |
| 17606 | - } | |
| 17607 | - | |
| 17608 | - func jsonData() throws -> Data { | |
| 17609 | - return try newJSONEncoder().encode(self) | |
| 17610 | - } | |
| 17611 | - | |
| 17612 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 17613 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 17614 | - } | |
| 17615 | -} | |
| 17616 | - | |
| 17617 | -// | |
| 17618 | -// Hashable or Equatable: | |
| 17619 | -// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 17620 | -// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 17621 | -// synthesized for types that have collections (such as arrays or dictionaries). | |
| 17622 | - | |
| 17623 | 17623 | // MARK: - Obj6 |
| 17624 | 17624 | struct Obj6: Codable, Equatable { |
| 17625 | 17625 | let dummy: Int |
| @@ -17628,6 +17628,9 @@ struct Obj6: Codable, Equatable { | ||
| 17628 | 17628 | let obj6Where: Where |
| 17629 | 17629 | let obj6While: While |
| 17630 | 17630 | let obj6WillSet: WillSet |
| 17631 | + let unsafe: Unsafe | |
| 17632 | + let unsigned: Unsigned | |
| 17633 | + let ushort: Ushort | |
| 17631 | 17634 | let using: Using |
| 17632 | 17635 | let utf8JSONReader: Utf8JSONReader |
| 17633 | 17636 | let utf8JSONWriter: Utf8JSONWriter |
| @@ -17649,6 +17652,9 @@ struct Obj6: Codable, Equatable { | ||
| 17649 | 17652 | case obj6Where = "where" |
| 17650 | 17653 | case obj6While = "while" |
| 17651 | 17654 | case obj6WillSet = "willSet" |
| 17655 | + case unsafe = "unsafe" | |
| 17656 | + case unsigned = "unsigned" | |
| 17657 | + case ushort = "ushort" | |
| 17652 | 17658 | case using = "using" |
| 17653 | 17659 | case utf8JSONReader = "Utf8JsonReader" |
| 17654 | 17660 | case utf8JSONWriter = "Utf8JsonWriter" |
| @@ -17690,6 +17696,9 @@ extension Obj6 { | ||
| 17690 | 17696 | obj6Where: Where? = nil, |
| 17691 | 17697 | obj6While: While? = nil, |
| 17692 | 17698 | obj6WillSet: WillSet? = nil, |
| 17699 | + unsafe: Unsafe? = nil, | |
| 17700 | + unsigned: Unsigned? = nil, | |
| 17701 | + ushort: Ushort? = nil, | |
| 17693 | 17702 | using: Using? = nil, |
| 17694 | 17703 | utf8JSONReader: Utf8JSONReader? = nil, |
| 17695 | 17704 | utf8JSONWriter: Utf8JSONWriter? = nil, |
| @@ -17711,6 +17720,9 @@ extension Obj6 { | ||
| 17711 | 17720 | obj6Where: obj6Where ?? self.obj6Where, |
| 17712 | 17721 | obj6While: obj6While ?? self.obj6While, |
| 17713 | 17722 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 17723 | + unsafe: unsafe ?? self.unsafe, | |
| 17724 | + unsigned: unsigned ?? self.unsigned, | |
| 17725 | + ushort: ushort ?? self.ushort, | |
| 17714 | 17726 | using: using ?? self.using, |
| 17715 | 17727 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| 17716 | 17728 | utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, |
| @@ -17992,6 +18004,156 @@ extension WillSet { | ||
| 17992 | 18004 | // for types that require the use of JSONAny, nor will the implementation of Hashable be |
| 17993 | 18005 | // synthesized for types that have collections (such as arrays or dictionaries). |
| 17994 | 18006 | |
| 18007 | +// MARK: - Unsafe | |
| 18008 | +struct Unsafe: Codable, Equatable { | |
| 18009 | + let unsafe: Int | |
| 18010 | + | |
| 18011 | + enum CodingKeys: String, CodingKey { | |
| 18012 | + case unsafe = "unsafe" | |
| 18013 | + } | |
| 18014 | +} | |
| 18015 | + | |
| 18016 | +// MARK: Unsafe convenience initializers and mutators | |
| 18017 | + | |
| 18018 | +extension Unsafe { | |
| 18019 | + init(data: Data) throws { | |
| 18020 | + self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 18021 | + } | |
| 18022 | + | |
| 18023 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18024 | + guard let data = json.data(using: encoding) else { | |
| 18025 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18026 | + } | |
| 18027 | + try self.init(data: data) | |
| 18028 | + } | |
| 18029 | + | |
| 18030 | + init(fromURL url: URL) throws { | |
| 18031 | + try self.init(data: try Data(contentsOf: url)) | |
| 18032 | + } | |
| 18033 | + | |
| 18034 | + func with( | |
| 18035 | + unsafe: Int? = nil | |
| 18036 | + ) -> Unsafe { | |
| 18037 | + return Unsafe( | |
| 18038 | + unsafe: unsafe ?? self.unsafe | |
| 18039 | + ) | |
| 18040 | + } | |
| 18041 | + | |
| 18042 | + func jsonData() throws -> Data { | |
| 18043 | + return try newJSONEncoder().encode(self) | |
| 18044 | + } | |
| 18045 | + | |
| 18046 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18047 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18048 | + } | |
| 18049 | +} | |
| 18050 | + | |
| 18051 | +// | |
| 18052 | +// Hashable or Equatable: | |
| 18053 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18054 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18055 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18056 | + | |
| 18057 | +// MARK: - Unsigned | |
| 18058 | +struct Unsigned: Codable, Equatable { | |
| 18059 | + let unsigned: Int | |
| 18060 | + | |
| 18061 | + enum CodingKeys: String, CodingKey { | |
| 18062 | + case unsigned = "unsigned" | |
| 18063 | + } | |
| 18064 | +} | |
| 18065 | + | |
| 18066 | +// MARK: Unsigned convenience initializers and mutators | |
| 18067 | + | |
| 18068 | +extension Unsigned { | |
| 18069 | + init(data: Data) throws { | |
| 18070 | + self = try newJSONDecoder().decode(Unsigned.self, from: data) | |
| 18071 | + } | |
| 18072 | + | |
| 18073 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18074 | + guard let data = json.data(using: encoding) else { | |
| 18075 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18076 | + } | |
| 18077 | + try self.init(data: data) | |
| 18078 | + } | |
| 18079 | + | |
| 18080 | + init(fromURL url: URL) throws { | |
| 18081 | + try self.init(data: try Data(contentsOf: url)) | |
| 18082 | + } | |
| 18083 | + | |
| 18084 | + func with( | |
| 18085 | + unsigned: Int? = nil | |
| 18086 | + ) -> Unsigned { | |
| 18087 | + return Unsigned( | |
| 18088 | + unsigned: unsigned ?? self.unsigned | |
| 18089 | + ) | |
| 18090 | + } | |
| 18091 | + | |
| 18092 | + func jsonData() throws -> Data { | |
| 18093 | + return try newJSONEncoder().encode(self) | |
| 18094 | + } | |
| 18095 | + | |
| 18096 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18097 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18098 | + } | |
| 18099 | +} | |
| 18100 | + | |
| 18101 | +// | |
| 18102 | +// Hashable or Equatable: | |
| 18103 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18104 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18105 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18106 | + | |
| 18107 | +// MARK: - Ushort | |
| 18108 | +struct Ushort: Codable, Equatable { | |
| 18109 | + let ushort: Int | |
| 18110 | + | |
| 18111 | + enum CodingKeys: String, CodingKey { | |
| 18112 | + case ushort = "ushort" | |
| 18113 | + } | |
| 18114 | +} | |
| 18115 | + | |
| 18116 | +// MARK: Ushort convenience initializers and mutators | |
| 18117 | + | |
| 18118 | +extension Ushort { | |
| 18119 | + init(data: Data) throws { | |
| 18120 | + self = try newJSONDecoder().decode(Ushort.self, from: data) | |
| 18121 | + } | |
| 18122 | + | |
| 18123 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 18124 | + guard let data = json.data(using: encoding) else { | |
| 18125 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 18126 | + } | |
| 18127 | + try self.init(data: data) | |
| 18128 | + } | |
| 18129 | + | |
| 18130 | + init(fromURL url: URL) throws { | |
| 18131 | + try self.init(data: try Data(contentsOf: url)) | |
| 18132 | + } | |
| 18133 | + | |
| 18134 | + func with( | |
| 18135 | + ushort: Int? = nil | |
| 18136 | + ) -> Ushort { | |
| 18137 | + return Ushort( | |
| 18138 | + ushort: ushort ?? self.ushort | |
| 18139 | + ) | |
| 18140 | + } | |
| 18141 | + | |
| 18142 | + func jsonData() throws -> Data { | |
| 18143 | + return try newJSONEncoder().encode(self) | |
| 18144 | + } | |
| 18145 | + | |
| 18146 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 18147 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 18148 | + } | |
| 18149 | +} | |
| 18150 | + | |
| 18151 | +// | |
| 18152 | +// Hashable or Equatable: | |
| 18153 | +// The compiler will not be able to synthesize the implementation of Hashable or Equatable | |
| 18154 | +// for types that require the use of JSONAny, nor will the implementation of Hashable be | |
| 18155 | +// synthesized for types that have collections (such as arrays or dictionaries). | |
| 18156 | + | |
| 17995 | 18157 | // MARK: - Using |
| 17996 | 18158 | struct Using: Codable, Equatable { |
| 17997 | 18159 | let using: Int |
Mswiftsendable-true--1c3982c78639 / quicktype.swift+484 −340
| @@ -6347,6 +6347,7 @@ struct Obj3: Codable, Sendable { | ||
| 6347 | 6347 | let jsonWriter: JSONWriter |
| 6348 | 6348 | let lambda: Lambda |
| 6349 | 6349 | let list: List |
| 6350 | + let localDate: LocalDate | |
| 6350 | 6351 | let locale: LocaleClass |
| 6351 | 6352 | let lock: Lock |
| 6352 | 6353 | let long: Long |
| @@ -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 |
| @@ -6414,6 +6414,7 @@ struct Obj3: Codable, Sendable { | ||
| 6414 | 6414 | case jsonWriter = "json_writer" |
| 6415 | 6415 | case lambda = "lambda" |
| 6416 | 6416 | case list = "list" |
| 6417 | + case localDate = "LocalDate" | |
| 6417 | 6418 | case locale = "Locale" |
| 6418 | 6419 | case lock = "lock" |
| 6419 | 6420 | case long = "long" |
| @@ -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" |
| @@ -6501,6 +6501,7 @@ extension Obj3 { | ||
| 6501 | 6501 | jsonWriter: JSONWriter? = nil, |
| 6502 | 6502 | lambda: Lambda? = nil, |
| 6503 | 6503 | list: List? = nil, |
| 6504 | + localDate: LocalDate? = nil, | |
| 6504 | 6505 | locale: LocaleClass? = nil, |
| 6505 | 6506 | lock: Lock? = nil, |
| 6506 | 6507 | long: Long? = 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, |
| @@ -6568,6 +6568,7 @@ extension Obj3 { | ||
| 6568 | 6568 | jsonWriter: jsonWriter ?? self.jsonWriter, |
| 6569 | 6569 | lambda: lambda ?? self.lambda, |
| 6570 | 6570 | list: list ?? self.list, |
| 6571 | + localDate: localDate ?? self.localDate, | |
| 6571 | 6572 | locale: locale ?? self.locale, |
| 6572 | 6573 | lock: lock ?? self.lock, |
| 6573 | 6574 | long: long ?? self.long, |
| @@ -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, |
| @@ -8106,6 +8106,50 @@ extension List { | ||
| 8106 | 8106 | } |
| 8107 | 8107 | } |
| 8108 | 8108 | |
| 8109 | +// MARK: - LocalDate | |
| 8110 | +struct LocalDate: Codable, Sendable { | |
| 8111 | + let localDate: Int | |
| 8112 | + | |
| 8113 | + enum CodingKeys: String, CodingKey { | |
| 8114 | + case localDate = "LocalDate" | |
| 8115 | + } | |
| 8116 | +} | |
| 8117 | + | |
| 8118 | +// MARK: LocalDate convenience initializers and mutators | |
| 8119 | + | |
| 8120 | +extension LocalDate { | |
| 8121 | + init(data: Data) throws { | |
| 8122 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 8123 | + } | |
| 8124 | + | |
| 8125 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 8126 | + guard let data = json.data(using: encoding) else { | |
| 8127 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 8128 | + } | |
| 8129 | + try self.init(data: data) | |
| 8130 | + } | |
| 8131 | + | |
| 8132 | + init(fromURL url: URL) throws { | |
| 8133 | + try self.init(data: try Data(contentsOf: url)) | |
| 8134 | + } | |
| 8135 | + | |
| 8136 | + func with( | |
| 8137 | + localDate: Int? = nil | |
| 8138 | + ) -> LocalDate { | |
| 8139 | + return LocalDate( | |
| 8140 | + localDate: localDate ?? self.localDate | |
| 8141 | + ) | |
| 8142 | + } | |
| 8143 | + | |
| 8144 | + func jsonData() throws -> Data { | |
| 8145 | + return try newJSONEncoder().encode(self) | |
| 8146 | + } | |
| 8147 | + | |
| 8148 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 8149 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 8150 | + } | |
| 8151 | +} | |
| 8152 | + | |
| 8109 | 8153 | // MARK: - LocaleClass |
| 8110 | 8154 | struct LocaleClass: Codable, Sendable { |
| 8111 | 8155 | let locale: 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 |
| @@ -9462,6 +9463,8 @@ struct Obj4: Codable, Sendable { | ||
| 9462 | 9463 | let object: Object |
| 9463 | 9464 | let objectMapper: ObjectMapper |
| 9464 | 9465 | let of: Of |
| 9466 | + let offsetDateTime: OffsetDateTime | |
| 9467 | + let offsetTime: OffsetTime | |
| 9465 | 9468 | let oneway: Oneway |
| 9466 | 9469 | let or: Or |
| 9467 | 9470 | let orEq: OrEq |
| @@ -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" |
| @@ -9529,6 +9530,8 @@ struct Obj4: Codable, Sendable { | ||
| 9529 | 9530 | case object = "object" |
| 9530 | 9531 | case objectMapper = "ObjectMapper" |
| 9531 | 9532 | case of = "of" |
| 9533 | + case offsetDateTime = "OffsetDateTime" | |
| 9534 | + case offsetTime = "OffsetTime" | |
| 9532 | 9535 | case oneway = "oneway" |
| 9533 | 9536 | case or = "or" |
| 9534 | 9537 | case orEq = "or_eq" |
| @@ -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, |
| @@ -9616,6 +9617,8 @@ extension Obj4 { | ||
| 9616 | 9617 | object: Object? = nil, |
| 9617 | 9618 | objectMapper: ObjectMapper? = nil, |
| 9618 | 9619 | of: Of? = nil, |
| 9620 | + offsetDateTime: OffsetDateTime? = nil, | |
| 9621 | + offsetTime: OffsetTime? = nil, | |
| 9619 | 9622 | oneway: Oneway? = nil, |
| 9620 | 9623 | or: Or? = nil, |
| 9621 | 9624 | orEq: OrEq? = 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, |
| @@ -9683,6 +9684,8 @@ extension Obj4 { | ||
| 9683 | 9684 | object: object ?? self.object, |
| 9684 | 9685 | objectMapper: objectMapper ?? self.objectMapper, |
| 9685 | 9686 | of: of ?? self.of, |
| 9687 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 9688 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 9686 | 9689 | oneway: oneway ?? self.oneway, |
| 9687 | 9690 | or: or ?? self.or, |
| 9688 | 9691 | orEq: orEq ?? self.orEq, |
| @@ -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 |
| @@ -11178,6 +11222,94 @@ extension Of { | ||
| 11178 | 11222 | } |
| 11179 | 11223 | } |
| 11180 | 11224 | |
| 11225 | +// MARK: - OffsetDateTime | |
| 11226 | +struct OffsetDateTime: Codable, Sendable { | |
| 11227 | + let offsetDateTime: Int | |
| 11228 | + | |
| 11229 | + enum CodingKeys: String, CodingKey { | |
| 11230 | + case offsetDateTime = "OffsetDateTime" | |
| 11231 | + } | |
| 11232 | +} | |
| 11233 | + | |
| 11234 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 11235 | + | |
| 11236 | +extension OffsetDateTime { | |
| 11237 | + init(data: Data) throws { | |
| 11238 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 11239 | + } | |
| 11240 | + | |
| 11241 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 11242 | + guard let data = json.data(using: encoding) else { | |
| 11243 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 11244 | + } | |
| 11245 | + try self.init(data: data) | |
| 11246 | + } | |
| 11247 | + | |
| 11248 | + init(fromURL url: URL) throws { | |
| 11249 | + try self.init(data: try Data(contentsOf: url)) | |
| 11250 | + } | |
| 11251 | + | |
| 11252 | + func with( | |
| 11253 | + offsetDateTime: Int? = nil | |
| 11254 | + ) -> OffsetDateTime { | |
| 11255 | + return OffsetDateTime( | |
| 11256 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime | |
| 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: - OffsetTime | |
| 11270 | +struct OffsetTime: Codable, Sendable { | |
| 11271 | + let offsetTime: Int | |
| 11272 | + | |
| 11273 | + enum CodingKeys: String, CodingKey { | |
| 11274 | + case offsetTime = "OffsetTime" | |
| 11275 | + } | |
| 11276 | +} | |
| 11277 | + | |
| 11278 | +// MARK: OffsetTime convenience initializers and mutators | |
| 11279 | + | |
| 11280 | +extension OffsetTime { | |
| 11281 | + init(data: Data) throws { | |
| 11282 | + self = try newJSONDecoder().decode(OffsetTime.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 | + offsetTime: Int? = nil | |
| 11298 | + ) -> OffsetTime { | |
| 11299 | + return OffsetTime( | |
| 11300 | + offsetTime: offsetTime ?? self.offsetTime | |
| 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 | + | |
| 11181 | 11313 | // MARK: - Oneway |
| 11182 | 11314 | struct Oneway: Codable, Sendable { |
| 11183 | 11315 | let oneway: Int |
| @@ -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 |
| @@ -12563,6 +12563,9 @@ struct Obj5: Codable, Sendable { | ||
| 12563 | 12563 | let primitiveKind: PrimitiveKind |
| 12564 | 12564 | let purpleSelf: Obj5Self |
| 12565 | 12565 | let purpleTrue: TrueClass |
| 12566 | + let sealed: Sealed | |
| 12567 | + let sel: Sel | |
| 12568 | + let select: Select | |
| 12566 | 12569 | let sendable: SendableClass |
| 12567 | 12570 | let serialDescriptor: SerialDescriptor |
| 12568 | 12571 | let serialName: SerialName |
| @@ -12605,10 +12608,7 @@ struct Obj5: Codable, Sendable { | ||
| 12605 | 12608 | let unchecked: Unchecked |
| 12606 | 12609 | let undefined: Undefined |
| 12607 | 12610 | let union: Union |
| 12608 | - let unsafe: Unsafe | |
| 12609 | - let unsigned: Unsigned | |
| 12610 | 12611 | let useSerializers: UseSerializers |
| 12611 | - let ushort: Ushort | |
| 12612 | 12612 | |
| 12613 | 12613 | enum CodingKeys: String, CodingKey { |
| 12614 | 12614 | case dummy = "dummy" |
| @@ -12630,6 +12630,9 @@ struct Obj5: Codable, Sendable { | ||
| 12630 | 12630 | case primitiveKind = "PrimitiveKind" |
| 12631 | 12631 | case purpleSelf = "self" |
| 12632 | 12632 | case purpleTrue = "true" |
| 12633 | + case sealed = "sealed" | |
| 12634 | + case sel = "SEL" | |
| 12635 | + case select = "select" | |
| 12633 | 12636 | case sendable = "Sendable" |
| 12634 | 12637 | case serialDescriptor = "SerialDescriptor" |
| 12635 | 12638 | case serialName = "SerialName" |
| @@ -12672,10 +12675,7 @@ struct Obj5: Codable, Sendable { | ||
| 12672 | 12675 | case unchecked = "unchecked" |
| 12673 | 12676 | case undefined = "undefined" |
| 12674 | 12677 | case union = "union" |
| 12675 | - case unsafe = "unsafe" | |
| 12676 | - case unsigned = "unsigned" | |
| 12677 | 12678 | case useSerializers = "UseSerializers" |
| 12678 | - case ushort = "ushort" | |
| 12679 | 12679 | } |
| 12680 | 12680 | } |
| 12681 | 12681 | |
| @@ -12717,6 +12717,9 @@ extension Obj5 { | ||
| 12717 | 12717 | primitiveKind: PrimitiveKind? = nil, |
| 12718 | 12718 | purpleSelf: Obj5Self? = nil, |
| 12719 | 12719 | purpleTrue: TrueClass? = nil, |
| 12720 | + sealed: Sealed? = nil, | |
| 12721 | + sel: Sel? = nil, | |
| 12722 | + select: Select? = nil, | |
| 12720 | 12723 | sendable: SendableClass? = nil, |
| 12721 | 12724 | serialDescriptor: SerialDescriptor? = nil, |
| 12722 | 12725 | serialName: SerialName? = nil, |
| @@ -12759,10 +12762,7 @@ extension Obj5 { | ||
| 12759 | 12762 | unchecked: Unchecked? = nil, |
| 12760 | 12763 | undefined: Undefined? = nil, |
| 12761 | 12764 | union: Union? = nil, |
| 12762 | - unsafe: Unsafe? = nil, | |
| 12763 | - unsigned: Unsigned? = nil, | |
| 12764 | - useSerializers: UseSerializers? = nil, | |
| 12765 | - ushort: Ushort? = nil | |
| 12765 | + useSerializers: UseSerializers? = nil | |
| 12766 | 12766 | ) -> Obj5 { |
| 12767 | 12767 | return Obj5( |
| 12768 | 12768 | dummy: dummy ?? self.dummy, |
| @@ -12784,6 +12784,9 @@ extension Obj5 { | ||
| 12784 | 12784 | primitiveKind: primitiveKind ?? self.primitiveKind, |
| 12785 | 12785 | purpleSelf: purpleSelf ?? self.purpleSelf, |
| 12786 | 12786 | purpleTrue: purpleTrue ?? self.purpleTrue, |
| 12787 | + sealed: sealed ?? self.sealed, | |
| 12788 | + sel: sel ?? self.sel, | |
| 12789 | + select: select ?? self.select, | |
| 12787 | 12790 | sendable: sendable ?? self.sendable, |
| 12788 | 12791 | serialDescriptor: serialDescriptor ?? self.serialDescriptor, |
| 12789 | 12792 | serialName: serialName ?? self.serialName, |
| @@ -12826,10 +12829,7 @@ extension Obj5 { | ||
| 12826 | 12829 | unchecked: unchecked ?? self.unchecked, |
| 12827 | 12830 | undefined: undefined ?? self.undefined, |
| 12828 | 12831 | union: union ?? self.union, |
| 12829 | - unsafe: unsafe ?? self.unsafe, | |
| 12830 | - unsigned: unsigned ?? self.unsigned, | |
| 12831 | - useSerializers: useSerializers ?? self.useSerializers, | |
| 12832 | - ushort: ushort ?? self.ushort | |
| 12832 | + useSerializers: useSerializers ?? self.useSerializers | |
| 12833 | 12833 | ) |
| 12834 | 12834 | } |
| 12835 | 12835 | |
| @@ -13634,6 +13634,138 @@ extension TrueClass { | ||
| 13634 | 13634 | } |
| 13635 | 13635 | } |
| 13636 | 13636 | |
| 13637 | +// MARK: - Sealed | |
| 13638 | +struct Sealed: Codable, Sendable { | |
| 13639 | + let sealed: Int | |
| 13640 | + | |
| 13641 | + enum CodingKeys: String, CodingKey { | |
| 13642 | + case sealed = "sealed" | |
| 13643 | + } | |
| 13644 | +} | |
| 13645 | + | |
| 13646 | +// MARK: Sealed convenience initializers and mutators | |
| 13647 | + | |
| 13648 | +extension Sealed { | |
| 13649 | + init(data: Data) throws { | |
| 13650 | + self = try newJSONDecoder().decode(Sealed.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 | + sealed: Int? = nil | |
| 13666 | + ) -> Sealed { | |
| 13667 | + return Sealed( | |
| 13668 | + sealed: sealed ?? self.sealed | |
| 13669 | + ) | |
| 13670 | + } | |
| 13671 | + | |
| 13672 | + func jsonData() throws -> Data { | |
| 13673 | + return try newJSONEncoder().encode(self) | |
| 13674 | + } | |
| 13675 | + | |
| 13676 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13677 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13678 | + } | |
| 13679 | +} | |
| 13680 | + | |
| 13681 | +// MARK: - Sel | |
| 13682 | +struct Sel: Codable, Sendable { | |
| 13683 | + let sel: Int | |
| 13684 | + | |
| 13685 | + enum CodingKeys: String, CodingKey { | |
| 13686 | + case sel = "SEL" | |
| 13687 | + } | |
| 13688 | +} | |
| 13689 | + | |
| 13690 | +// MARK: Sel convenience initializers and mutators | |
| 13691 | + | |
| 13692 | +extension Sel { | |
| 13693 | + init(data: Data) throws { | |
| 13694 | + self = try newJSONDecoder().decode(Sel.self, from: data) | |
| 13695 | + } | |
| 13696 | + | |
| 13697 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13698 | + guard let data = json.data(using: encoding) else { | |
| 13699 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13700 | + } | |
| 13701 | + try self.init(data: data) | |
| 13702 | + } | |
| 13703 | + | |
| 13704 | + init(fromURL url: URL) throws { | |
| 13705 | + try self.init(data: try Data(contentsOf: url)) | |
| 13706 | + } | |
| 13707 | + | |
| 13708 | + func with( | |
| 13709 | + sel: Int? = nil | |
| 13710 | + ) -> Sel { | |
| 13711 | + return Sel( | |
| 13712 | + sel: sel ?? self.sel | |
| 13713 | + ) | |
| 13714 | + } | |
| 13715 | + | |
| 13716 | + func jsonData() throws -> Data { | |
| 13717 | + return try newJSONEncoder().encode(self) | |
| 13718 | + } | |
| 13719 | + | |
| 13720 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13721 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13722 | + } | |
| 13723 | +} | |
| 13724 | + | |
| 13725 | +// MARK: - Select | |
| 13726 | +struct Select: Codable, Sendable { | |
| 13727 | + let select: Int | |
| 13728 | + | |
| 13729 | + enum CodingKeys: String, CodingKey { | |
| 13730 | + case select = "select" | |
| 13731 | + } | |
| 13732 | +} | |
| 13733 | + | |
| 13734 | +// MARK: Select convenience initializers and mutators | |
| 13735 | + | |
| 13736 | +extension Select { | |
| 13737 | + init(data: Data) throws { | |
| 13738 | + self = try newJSONDecoder().decode(Select.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 | + select: Int? = nil | |
| 13754 | + ) -> Select { | |
| 13755 | + return Select( | |
| 13756 | + select: select ?? self.select | |
| 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: - SendableClass |
| 13638 | 13770 | struct SendableClass: Codable, Sendable { |
| 13639 | 13771 | let sendable: Int |
| @@ -15482,94 +15614,6 @@ extension Union { | ||
| 15482 | 15614 | } |
| 15483 | 15615 | } |
| 15484 | 15616 | |
| 15485 | -// MARK: - Unsafe | |
| 15486 | -struct Unsafe: Codable, Sendable { | |
| 15487 | - let unsafe: Int | |
| 15488 | - | |
| 15489 | - enum CodingKeys: String, CodingKey { | |
| 15490 | - case unsafe = "unsafe" | |
| 15491 | - } | |
| 15492 | -} | |
| 15493 | - | |
| 15494 | -// MARK: Unsafe convenience initializers and mutators | |
| 15495 | - | |
| 15496 | -extension Unsafe { | |
| 15497 | - init(data: Data) throws { | |
| 15498 | - self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 15499 | - } | |
| 15500 | - | |
| 15501 | - init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 15502 | - guard let data = json.data(using: encoding) else { | |
| 15503 | - throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 15504 | - } | |
| 15505 | - try self.init(data: data) | |
| 15506 | - } | |
| 15507 | - | |
| 15508 | - init(fromURL url: URL) throws { | |
| 15509 | - try self.init(data: try Data(contentsOf: url)) | |
| 15510 | - } | |
| 15511 | - | |
| 15512 | - func with( | |
| 15513 | - unsafe: Int? = nil | |
| 15514 | - ) -> Unsafe { | |
| 15515 | - return Unsafe( | |
| 15516 | - unsafe: unsafe ?? self.unsafe | |
| 15517 | - ) | |
| 15518 | - } | |
| 15519 | - | |
| 15520 | - func jsonData() throws -> Data { | |
| 15521 | - return try newJSONEncoder().encode(self) | |
| 15522 | - } | |
| 15523 | - | |
| 15524 | - func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 15525 | - return String(data: try self.jsonData(), encoding: encoding) | |
| 15526 | - } | |
| 15527 | -} | |
| 15528 | - | |
| 15529 | -// MARK: - Unsigned | |
| 15530 | -struct Unsigned: Codable, Sendable { | |
| 15531 | - let unsigned: Int | |
| 15532 | - | |
| 15533 | - enum CodingKeys: String, CodingKey { | |
| 15534 | - case unsigned = "unsigned" | |
| 15535 | - } | |
| 15536 | -} | |
| 15537 | - | |
| 15538 | -// MARK: Unsigned convenience initializers and mutators | |
| 15539 | - | |
| 15540 | -extension Unsigned { | |
| 15541 | - init(data: Data) throws { | |
| 15542 | - self = try newJSONDecoder().decode(Unsigned.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 | - unsigned: Int? = nil | |
| 15558 | - ) -> Unsigned { | |
| 15559 | - return Unsigned( | |
| 15560 | - unsigned: unsigned ?? self.unsigned | |
| 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 | 15617 | // MARK: - UseSerializers |
| 15574 | 15618 | struct UseSerializers: Codable, Sendable { |
| 15575 | 15619 | let useSerializers: Int |
| @@ -15614,50 +15658,6 @@ extension UseSerializers { | ||
| 15614 | 15658 | } |
| 15615 | 15659 | } |
| 15616 | 15660 | |
| 15617 | -// MARK: - Ushort | |
| 15618 | -struct Ushort: Codable, Sendable { | |
| 15619 | - let ushort: Int | |
| 15620 | - | |
| 15621 | - enum CodingKeys: String, CodingKey { | |
| 15622 | - case ushort = "ushort" | |
| 15623 | - } | |
| 15624 | -} | |
| 15625 | - | |
| 15626 | -// MARK: Ushort convenience initializers and mutators | |
| 15627 | - | |
| 15628 | -extension Ushort { | |
| 15629 | - init(data: Data) throws { | |
| 15630 | - self = try newJSONDecoder().decode(Ushort.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 | - ushort: Int? = nil | |
| 15646 | - ) -> Ushort { | |
| 15647 | - return Ushort( | |
| 15648 | - ushort: ushort ?? self.ushort | |
| 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 |
| @@ -15666,6 +15666,9 @@ struct Obj6: Codable, Sendable { | ||
| 15666 | 15666 | let obj6Where: Where |
| 15667 | 15667 | let obj6While: While |
| 15668 | 15668 | let obj6WillSet: WillSet |
| 15669 | + let unsafe: Unsafe | |
| 15670 | + let unsigned: Unsigned | |
| 15671 | + let ushort: Ushort | |
| 15669 | 15672 | let using: Using |
| 15670 | 15673 | let utf8JSONReader: Utf8JSONReader |
| 15671 | 15674 | let utf8JSONWriter: Utf8JSONWriter |
| @@ -15687,6 +15690,9 @@ struct Obj6: Codable, Sendable { | ||
| 15687 | 15690 | case obj6Where = "where" |
| 15688 | 15691 | case obj6While = "while" |
| 15689 | 15692 | case obj6WillSet = "willSet" |
| 15693 | + case unsafe = "unsafe" | |
| 15694 | + case unsigned = "unsigned" | |
| 15695 | + case ushort = "ushort" | |
| 15690 | 15696 | case using = "using" |
| 15691 | 15697 | case utf8JSONReader = "Utf8JsonReader" |
| 15692 | 15698 | case utf8JSONWriter = "Utf8JsonWriter" |
| @@ -15728,6 +15734,9 @@ extension Obj6 { | ||
| 15728 | 15734 | obj6Where: Where? = nil, |
| 15729 | 15735 | obj6While: While? = nil, |
| 15730 | 15736 | obj6WillSet: WillSet? = nil, |
| 15737 | + unsafe: Unsafe? = nil, | |
| 15738 | + unsigned: Unsigned? = nil, | |
| 15739 | + ushort: Ushort? = nil, | |
| 15731 | 15740 | using: Using? = nil, |
| 15732 | 15741 | utf8JSONReader: Utf8JSONReader? = nil, |
| 15733 | 15742 | utf8JSONWriter: Utf8JSONWriter? = nil, |
| @@ -15749,6 +15758,9 @@ extension Obj6 { | ||
| 15749 | 15758 | obj6Where: obj6Where ?? self.obj6Where, |
| 15750 | 15759 | obj6While: obj6While ?? self.obj6While, |
| 15751 | 15760 | obj6WillSet: obj6WillSet ?? self.obj6WillSet, |
| 15761 | + unsafe: unsafe ?? self.unsafe, | |
| 15762 | + unsigned: unsigned ?? self.unsigned, | |
| 15763 | + ushort: ushort ?? self.ushort, | |
| 15752 | 15764 | using: using ?? self.using, |
| 15753 | 15765 | utf8JSONReader: utf8JSONReader ?? self.utf8JSONReader, |
| 15754 | 15766 | utf8JSONWriter: utf8JSONWriter ?? self.utf8JSONWriter, |
| @@ -15994,6 +16006,138 @@ extension WillSet { | ||
| 15994 | 16006 | } |
| 15995 | 16007 | } |
| 15996 | 16008 | |
| 16009 | +// MARK: - Unsafe | |
| 16010 | +struct Unsafe: Codable, Sendable { | |
| 16011 | + let unsafe: Int | |
| 16012 | + | |
| 16013 | + enum CodingKeys: String, CodingKey { | |
| 16014 | + case unsafe = "unsafe" | |
| 16015 | + } | |
| 16016 | +} | |
| 16017 | + | |
| 16018 | +// MARK: Unsafe convenience initializers and mutators | |
| 16019 | + | |
| 16020 | +extension Unsafe { | |
| 16021 | + init(data: Data) throws { | |
| 16022 | + self = try newJSONDecoder().decode(Unsafe.self, from: data) | |
| 16023 | + } | |
| 16024 | + | |
| 16025 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16026 | + guard let data = json.data(using: encoding) else { | |
| 16027 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16028 | + } | |
| 16029 | + try self.init(data: data) | |
| 16030 | + } | |
| 16031 | + | |
| 16032 | + init(fromURL url: URL) throws { | |
| 16033 | + try self.init(data: try Data(contentsOf: url)) | |
| 16034 | + } | |
| 16035 | + | |
| 16036 | + func with( | |
| 16037 | + unsafe: Int? = nil | |
| 16038 | + ) -> Unsafe { | |
| 16039 | + return Unsafe( | |
| 16040 | + unsafe: unsafe ?? self.unsafe | |
| 16041 | + ) | |
| 16042 | + } | |
| 16043 | + | |
| 16044 | + func jsonData() throws -> Data { | |
| 16045 | + return try newJSONEncoder().encode(self) | |
| 16046 | + } | |
| 16047 | + | |
| 16048 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16049 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16050 | + } | |
| 16051 | +} | |
| 16052 | + | |
| 16053 | +// MARK: - Unsigned | |
| 16054 | +struct Unsigned: Codable, Sendable { | |
| 16055 | + let unsigned: Int | |
| 16056 | + | |
| 16057 | + enum CodingKeys: String, CodingKey { | |
| 16058 | + case unsigned = "unsigned" | |
| 16059 | + } | |
| 16060 | +} | |
| 16061 | + | |
| 16062 | +// MARK: Unsigned convenience initializers and mutators | |
| 16063 | + | |
| 16064 | +extension Unsigned { | |
| 16065 | + init(data: Data) throws { | |
| 16066 | + self = try newJSONDecoder().decode(Unsigned.self, from: data) | |
| 16067 | + } | |
| 16068 | + | |
| 16069 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16070 | + guard let data = json.data(using: encoding) else { | |
| 16071 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16072 | + } | |
| 16073 | + try self.init(data: data) | |
| 16074 | + } | |
| 16075 | + | |
| 16076 | + init(fromURL url: URL) throws { | |
| 16077 | + try self.init(data: try Data(contentsOf: url)) | |
| 16078 | + } | |
| 16079 | + | |
| 16080 | + func with( | |
| 16081 | + unsigned: Int? = nil | |
| 16082 | + ) -> Unsigned { | |
| 16083 | + return Unsigned( | |
| 16084 | + unsigned: unsigned ?? self.unsigned | |
| 16085 | + ) | |
| 16086 | + } | |
| 16087 | + | |
| 16088 | + func jsonData() throws -> Data { | |
| 16089 | + return try newJSONEncoder().encode(self) | |
| 16090 | + } | |
| 16091 | + | |
| 16092 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16093 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16094 | + } | |
| 16095 | +} | |
| 16096 | + | |
| 16097 | +// MARK: - Ushort | |
| 16098 | +struct Ushort: Codable, Sendable { | |
| 16099 | + let ushort: Int | |
| 16100 | + | |
| 16101 | + enum CodingKeys: String, CodingKey { | |
| 16102 | + case ushort = "ushort" | |
| 16103 | + } | |
| 16104 | +} | |
| 16105 | + | |
| 16106 | +// MARK: Ushort convenience initializers and mutators | |
| 16107 | + | |
| 16108 | +extension Ushort { | |
| 16109 | + init(data: Data) throws { | |
| 16110 | + self = try newJSONDecoder().decode(Ushort.self, from: data) | |
| 16111 | + } | |
| 16112 | + | |
| 16113 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 16114 | + guard let data = json.data(using: encoding) else { | |
| 16115 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 16116 | + } | |
| 16117 | + try self.init(data: data) | |
| 16118 | + } | |
| 16119 | + | |
| 16120 | + init(fromURL url: URL) throws { | |
| 16121 | + try self.init(data: try Data(contentsOf: url)) | |
| 16122 | + } | |
| 16123 | + | |
| 16124 | + func with( | |
| 16125 | + ushort: Int? = nil | |
| 16126 | + ) -> Ushort { | |
| 16127 | + return Ushort( | |
| 16128 | + ushort: ushort ?? self.ushort | |
| 16129 | + ) | |
| 16130 | + } | |
| 16131 | + | |
| 16132 | + func jsonData() throws -> Data { | |
| 16133 | + return try newJSONEncoder().encode(self) | |
| 16134 | + } | |
| 16135 | + | |
| 16136 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 16137 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 16138 | + } | |
| 16139 | +} | |
| 16140 | + | |
| 15997 | 16141 | // MARK: - Using |
| 15998 | 16142 | struct Using: Codable, Sendable { |
| 15999 | 16143 | let using: Int |
Mtypescript-effect-schemadefault / TopLevel.ts+50 −35
| @@ -79,8 +79,23 @@ export class Using extends S.Class<Using>("Using")({ | ||
| 79 | 79 | "using": S.Int, |
| 80 | 80 | }) {} |
| 81 | 81 | |
| 82 | +export class Ushort extends S.Class<Ushort>("Ushort")({ | |
| 83 | + "ushort": S.Int, | |
| 84 | +}) {} | |
| 85 | + | |
| 86 | +export class Unsigned extends S.Class<Unsigned>("Unsigned")({ | |
| 87 | + "unsigned": S.Int, | |
| 88 | +}) {} | |
| 89 | + | |
| 90 | +export class Unsafe extends S.Class<Unsafe>("Unsafe")({ | |
| 91 | + "unsafe": S.Int, | |
| 92 | +}) {} | |
| 93 | + | |
| 82 | 94 | export class Obj6 extends S.Class<Obj6>("Obj6")({ |
| 83 | 95 | "dummy": S.Int, |
| 96 | + "unsafe": Unsafe, | |
| 97 | + "unsigned": Unsigned, | |
| 98 | + "ushort": Ushort, | |
| 84 | 99 | "using": Using, |
| 85 | 100 | "Utf8JsonReader": Utf8JsonReader, |
| 86 | 101 | "Utf8JsonWriter": Utf8JsonWriter, |
| @@ -101,22 +116,10 @@ export class Obj6 extends S.Class<Obj6>("Obj6")({ | ||
| 101 | 116 | "yield": Yield, |
| 102 | 117 | }) {} |
| 103 | 118 | |
| 104 | -export class Ushort extends S.Class<Ushort>("Ushort")({ | |
| 105 | - "ushort": S.Int, | |
| 106 | -}) {} | |
| 107 | - | |
| 108 | 119 | export class UseSerializers extends S.Class<UseSerializers>("UseSerializers")({ |
| 109 | 120 | "UseSerializers": S.Int, |
| 110 | 121 | }) {} |
| 111 | 122 | |
| 112 | -export class Unsigned extends S.Class<Unsigned>("Unsigned")({ | |
| 113 | - "unsigned": S.Int, | |
| 114 | -}) {} | |
| 115 | - | |
| 116 | -export class Unsafe extends S.Class<Unsafe>("Unsafe")({ | |
| 117 | - "unsafe": S.Int, | |
| 118 | -}) {} | |
| 119 | - | |
| 120 | 123 | export class Unowned extends S.Class<Unowned>("Unowned")({ |
| 121 | 124 | "unowned": S.Int, |
| 122 | 125 | }) {} |
| @@ -338,6 +341,18 @@ export class Self extends S.Class<Self>("Self")({ | ||
| 338 | 341 | "Self": S.Int, |
| 339 | 342 | }) {} |
| 340 | 343 | |
| 344 | +export class Select extends S.Class<Select>("Select")({ | |
| 345 | + "select": S.Int, | |
| 346 | +}) {} | |
| 347 | + | |
| 348 | +export class Sel extends S.Class<Sel>("Sel")({ | |
| 349 | + "SEL": S.Int, | |
| 350 | +}) {} | |
| 351 | + | |
| 352 | +export class Sealed extends S.Class<Sealed>("Sealed")({ | |
| 353 | + "sealed": S.Int, | |
| 354 | +}) {} | |
| 355 | + | |
| 341 | 356 | export class PrimitiveKind extends S.Class<PrimitiveKind>("PrimitiveKind")({ |
| 342 | 357 | "PrimitiveKind": S.Int, |
| 343 | 358 | }) {} |
| @@ -365,6 +380,9 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({ | ||
| 365 | 380 | "true": TrueClass, |
| 366 | 381 | "type": TypeClass, |
| 367 | 382 | "PrimitiveKind": PrimitiveKind, |
| 383 | + "sealed": Sealed, | |
| 384 | + "SEL": Sel, | |
| 385 | + "select": Select, | |
| 368 | 386 | "Self": Self, |
| 369 | 387 | "Sendable": Sendable, |
| 370 | 388 | "SerialDescriptor": SerialDescriptor, |
| @@ -420,25 +438,10 @@ export class Obj5 extends S.Class<Obj5>("Obj5")({ | ||
| 420 | 438 | "undefined": Undefined, |
| 421 | 439 | "union": Union, |
| 422 | 440 | "unowned": Unowned, |
| 423 | - "unsafe": Unsafe, | |
| 424 | - "unsigned": Unsigned, | |
| 425 | 441 | "UseSerializers": UseSerializers, |
| 426 | - "ushort": Ushort, | |
| 427 | 442 | }) {} |
| 428 | 443 | Object.defineProperty(Obj5.prototype, "toString", { writable: true }); |
| 429 | 444 | |
| 430 | -export class Select extends S.Class<Select>("Select")({ | |
| 431 | - "select": S.Int, | |
| 432 | -}) {} | |
| 433 | - | |
| 434 | -export class Sel extends S.Class<Sel>("Sel")({ | |
| 435 | - "SEL": S.Int, | |
| 436 | -}) {} | |
| 437 | - | |
| 438 | -export class Sealed extends S.Class<Sealed>("Sealed")({ | |
| 439 | - "sealed": S.Int, | |
| 440 | -}) {} | |
| 441 | - | |
| 442 | 445 | export class Sbyte extends S.Class<Sbyte>("Sbyte")({ |
| 443 | 446 | "sbyte": S.Int, |
| 444 | 447 | }) {} |
| @@ -607,6 +610,14 @@ export class Oneway extends S.Class<Oneway>("Oneway")({ | ||
| 607 | 610 | "oneway": S.Int, |
| 608 | 611 | }) {} |
| 609 | 612 | |
| 613 | +export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")({ | |
| 614 | + "OffsetTime": S.Int, | |
| 615 | +}) {} | |
| 616 | + | |
| 617 | +export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")({ | |
| 618 | + "OffsetDateTime": S.Int, | |
| 619 | +}) {} | |
| 620 | + | |
| 610 | 621 | export class Of extends S.Class<Of>("Of")({ |
| 611 | 622 | "of": S.Int, |
| 612 | 623 | }) {} |
| @@ -679,6 +690,10 @@ export class Nonatomic extends S.Class<Nonatomic>("Nonatomic")({ | ||
| 679 | 690 | "nonatomic": S.Int, |
| 680 | 691 | }) {} |
| 681 | 692 | |
| 693 | +export class Noexcept extends S.Class<Noexcept>("Noexcept")({ | |
| 694 | + "noexcept": S.Int, | |
| 695 | +}) {} | |
| 696 | + | |
| 682 | 697 | export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({ |
| 683 | 698 | "noSuchMethod": S.Int, |
| 684 | 699 | }) {} |
| @@ -686,6 +701,7 @@ export class NoSuchMethod extends S.Class<NoSuchMethod>("NoSuchMethod")({ | ||
| 686 | 701 | export class Obj4 extends S.Class<Obj4>("Obj4")({ |
| 687 | 702 | "dummy": S.Int, |
| 688 | 703 | "noSuchMethod": NoSuchMethod, |
| 704 | + "noexcept": Noexcept, | |
| 689 | 705 | "nonatomic": Nonatomic, |
| 690 | 706 | "None": None, |
| 691 | 707 | "nonlocal": Nonlocal, |
| @@ -704,6 +720,8 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 704 | 720 | "object": ObjectClass, |
| 705 | 721 | "ObjectMapper": ObjectMapper, |
| 706 | 722 | "of": Of, |
| 723 | + "OffsetDateTime": OffsetDateTime, | |
| 724 | + "OffsetTime": OffsetTime, | |
| 707 | 725 | "oneway": Oneway, |
| 708 | 726 | "open": Open, |
| 709 | 727 | "operator": Operator, |
| @@ -746,13 +764,6 @@ export class Obj4 extends S.Class<Obj4>("Obj4")({ | ||
| 746 | 764 | "runtimeType": RuntimeType, |
| 747 | 765 | "s": SClass, |
| 748 | 766 | "sbyte": Sbyte, |
| 749 | - "sealed": Sealed, | |
| 750 | - "SEL": Sel, | |
| 751 | - "select": Select, | |
| 752 | -}) {} | |
| 753 | - | |
| 754 | -export class Noexcept extends S.Class<Noexcept>("Noexcept")({ | |
| 755 | - "noexcept": S.Int, | |
| 756 | 767 | }) {} |
| 757 | 768 | |
| 758 | 769 | export class No extends S.Class<No>("No")({ |
| @@ -815,6 +826,10 @@ export class Locale extends S.Class<Locale>("Locale")({ | ||
| 815 | 826 | "Locale": S.Int, |
| 816 | 827 | }) {} |
| 817 | 828 | |
| 829 | +export class LocalDate extends S.Class<LocalDate>("LocalDate")({ | |
| 830 | + "LocalDate": S.Int, | |
| 831 | +}) {} | |
| 832 | + | |
| 818 | 833 | export class List extends S.Class<List>("List")({ |
| 819 | 834 | "list": S.Int, |
| 820 | 835 | }) {} |
| @@ -1057,6 +1072,7 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({ | ||
| 1057 | 1072 | "left": Left, |
| 1058 | 1073 | "let": Let, |
| 1059 | 1074 | "list": List, |
| 1075 | + "LocalDate": LocalDate, | |
| 1060 | 1076 | "Locale": Locale, |
| 1061 | 1077 | "lock": Lock, |
| 1062 | 1078 | "long": Long, |
| @@ -1072,7 +1088,6 @@ export class Obj3 extends S.Class<Obj3>("Obj3")({ | ||
| 1072 | 1088 | "newtonsoft": Newtonsoft, |
| 1073 | 1089 | "nil": Nil, |
| 1074 | 1090 | "NO": No, |
| 1075 | - "noexcept": Noexcept, | |
| 1076 | 1091 | }) {} |
| 1077 | 1092 | |
| 1078 | 1093 | export class FalseClass extends S.Class<FalseClass>("FalseClass")({ |
Mtypescript-zoddefault / TopLevel.ts+50 −32
| @@ -887,6 +887,11 @@ export const ListSchema = z.object({ | ||
| 887 | 887 | }); |
| 888 | 888 | export type List = z.infer<typeof ListSchema>; |
| 889 | 889 | |
| 890 | +export const LocalDateSchema = z.object({ | |
| 891 | + "LocalDate": z.number().int(), | |
| 892 | +}); | |
| 893 | +export type LocalDate = z.infer<typeof LocalDateSchema>; | |
| 894 | + | |
| 890 | 895 | export const LocaleSchema = z.object({ |
| 891 | 896 | "Locale": z.number().int(), |
| 892 | 897 | }); |
| @@ -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 | }); |
| @@ -1062,6 +1067,16 @@ export const OfSchema = z.object({ | ||
| 1062 | 1067 | }); |
| 1063 | 1068 | export type Of = z.infer<typeof OfSchema>; |
| 1064 | 1069 | |
| 1070 | +export const OffsetDateTimeSchema = z.object({ | |
| 1071 | + "OffsetDateTime": z.number().int(), | |
| 1072 | +}); | |
| 1073 | +export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>; | |
| 1074 | + | |
| 1075 | +export const OffsetTimeSchema = z.object({ | |
| 1076 | + "OffsetTime": z.number().int(), | |
| 1077 | +}); | |
| 1078 | +export type OffsetTime = z.infer<typeof OffsetTimeSchema>; | |
| 1079 | + | |
| 1065 | 1080 | export const OnewaySchema = z.object({ |
| 1066 | 1081 | "oneway": z.number().int(), |
| 1067 | 1082 | }); |
| @@ -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 KSerializerSchema = z.object({ |
| 1291 | 1291 | "KSerializer": z.number().int(), |
| 1292 | 1292 | }); |
| @@ -1312,6 +1312,21 @@ export const PrimitiveKindSchema = z.object({ | ||
| 1312 | 1312 | }); |
| 1313 | 1313 | export type PrimitiveKind = z.infer<typeof PrimitiveKindSchema>; |
| 1314 | 1314 | |
| 1315 | +export const SealedSchema = z.object({ | |
| 1316 | + "sealed": z.number().int(), | |
| 1317 | +}); | |
| 1318 | +export type Sealed = z.infer<typeof SealedSchema>; | |
| 1319 | + | |
| 1320 | +export const SelSchema = z.object({ | |
| 1321 | + "SEL": z.number().int(), | |
| 1322 | +}); | |
| 1323 | +export type Sel = z.infer<typeof SelSchema>; | |
| 1324 | + | |
| 1325 | +export const SelectSchema = z.object({ | |
| 1326 | + "select": z.number().int(), | |
| 1327 | +}); | |
| 1328 | +export type Select = z.infer<typeof SelectSchema>; | |
| 1329 | + | |
| 1315 | 1330 | export const SelfSchema = z.object({ |
| 1316 | 1331 | "Self": z.number().int(), |
| 1317 | 1332 | }); |
| @@ -1587,6 +1602,11 @@ export const UnownedSchema = z.object({ | ||
| 1587 | 1602 | }); |
| 1588 | 1603 | export type Unowned = z.infer<typeof UnownedSchema>; |
| 1589 | 1604 | |
| 1605 | +export const UseSerializersSchema = z.object({ | |
| 1606 | + "UseSerializers": z.number().int(), | |
| 1607 | +}); | |
| 1608 | +export type UseSerializers = z.infer<typeof UseSerializersSchema>; | |
| 1609 | + | |
| 1590 | 1610 | export const UnsafeSchema = z.object({ |
| 1591 | 1611 | "unsafe": z.number().int(), |
| 1592 | 1612 | }); |
| @@ -1597,11 +1617,6 @@ export const UnsignedSchema = z.object({ | ||
| 1597 | 1617 | }); |
| 1598 | 1618 | export type Unsigned = z.infer<typeof UnsignedSchema>; |
| 1599 | 1619 | |
| 1600 | -export const UseSerializersSchema = z.object({ | |
| 1601 | - "UseSerializers": z.number().int(), | |
| 1602 | -}); | |
| 1603 | -export type UseSerializers = z.infer<typeof UseSerializersSchema>; | |
| 1604 | - | |
| 1605 | 1620 | export const UshortSchema = z.object({ |
| 1606 | 1621 | "ushort": z.number().int(), |
| 1607 | 1622 | }); |
| @@ -1885,6 +1900,7 @@ export const Obj3Schema = z.object({ | ||
| 1885 | 1900 | "left": LeftSchema, |
| 1886 | 1901 | "let": LetSchema, |
| 1887 | 1902 | "list": ListSchema, |
| 1903 | + "LocalDate": LocalDateSchema, | |
| 1888 | 1904 | "Locale": LocaleSchema, |
| 1889 | 1905 | "lock": LockSchema, |
| 1890 | 1906 | "long": LongSchema, |
| @@ -1900,13 +1916,13 @@ export const Obj3Schema = z.object({ | ||
| 1900 | 1916 | "newtonsoft": NewtonsoftSchema, |
| 1901 | 1917 | "nil": NilSchema, |
| 1902 | 1918 | "NO": NoSchema, |
| 1903 | - "noexcept": NoexceptSchema, | |
| 1904 | 1919 | }); |
| 1905 | 1920 | export type Obj3 = z.infer<typeof Obj3Schema>; |
| 1906 | 1921 | |
| 1907 | 1922 | export const Obj4Schema = z.object({ |
| 1908 | 1923 | "dummy": z.number().int(), |
| 1909 | 1924 | "noSuchMethod": NoSuchMethodSchema, |
| 1925 | + "noexcept": NoexceptSchema, | |
| 1910 | 1926 | "nonatomic": NonatomicSchema, |
| 1911 | 1927 | "None": NoneSchema, |
| 1912 | 1928 | "nonlocal": NonlocalSchema, |
| @@ -1925,6 +1941,8 @@ export const Obj4Schema = z.object({ | ||
| 1925 | 1941 | "object": ObjectClassSchema, |
| 1926 | 1942 | "ObjectMapper": ObjectMapperSchema, |
| 1927 | 1943 | "of": OfSchema, |
| 1944 | + "OffsetDateTime": OffsetDateTimeSchema, | |
| 1945 | + "OffsetTime": OffsetTimeSchema, | |
| 1928 | 1946 | "oneway": OnewaySchema, |
| 1929 | 1947 | "open": OpenSchema, |
| 1930 | 1948 | "operator": OperatorSchema, |
| @@ -1967,9 +1985,6 @@ export const Obj4Schema = z.object({ | ||
| 1967 | 1985 | "runtimeType": RuntimeTypeSchema, |
| 1968 | 1986 | "s": SSchema, |
| 1969 | 1987 | "sbyte": SbyteSchema, |
| 1970 | - "sealed": SealedSchema, | |
| 1971 | - "SEL": SelSchema, | |
| 1972 | - "select": SelectSchema, | |
| 1973 | 1988 | }); |
| 1974 | 1989 | export type Obj4 = z.infer<typeof Obj4Schema>; |
| 1975 | 1990 | |
| @@ -1980,6 +1995,9 @@ export const Obj5Schema = z.object({ | ||
| 1980 | 1995 | "true": TrueClassSchema, |
| 1981 | 1996 | "type": TypeClassSchema, |
| 1982 | 1997 | "PrimitiveKind": PrimitiveKindSchema, |
| 1998 | + "sealed": SealedSchema, | |
| 1999 | + "SEL": SelSchema, | |
| 2000 | + "select": SelectSchema, | |
| 1983 | 2001 | "Self": SelfSchema, |
| 1984 | 2002 | "Sendable": SendableSchema, |
| 1985 | 2003 | "SerialDescriptor": SerialDescriptorSchema, |
| @@ -2035,15 +2053,15 @@ export const Obj5Schema = z.object({ | ||
| 2035 | 2053 | "undefined": UndefinedSchema, |
| 2036 | 2054 | "union": UnionSchema, |
| 2037 | 2055 | "unowned": UnownedSchema, |
| 2038 | - "unsafe": UnsafeSchema, | |
| 2039 | - "unsigned": UnsignedSchema, | |
| 2040 | 2056 | "UseSerializers": UseSerializersSchema, |
| 2041 | - "ushort": UshortSchema, | |
| 2042 | 2057 | }); |
| 2043 | 2058 | export type Obj5 = z.infer<typeof Obj5Schema>; |
| 2044 | 2059 | |
| 2045 | 2060 | export const Obj6Schema = z.object({ |
| 2046 | 2061 | "dummy": z.number().int(), |
| 2062 | + "unsafe": UnsafeSchema, | |
| 2063 | + "unsigned": UnsignedSchema, | |
| 2064 | + "ushort": UshortSchema, | |
| 2047 | 2065 | "using": UsingSchema, |
| 2048 | 2066 | "Utf8JsonReader": Utf8JsonReaderSchema, |
| 2049 | 2067 | "Utf8JsonWriter": Utf8JsonWriterSchema, |
Mtypescriptdefault / TopLevel.ts+90 −63
| @@ -683,6 +683,7 @@ export interface Obj3 { | ||
| 683 | 683 | JsonParser: JSONParser; |
| 684 | 684 | JsonReader: JSONReader; |
| 685 | 685 | JsonTokenType: JSONTokenType; |
| 686 | + LocalDate: LocalDate; | |
| 686 | 687 | Locale: Locale; |
| 687 | 688 | MapEntry: MapEntry; |
| 688 | 689 | NO: No; |
| @@ -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 { |
| @@ -795,6 +795,10 @@ export interface JSONTokenType { | ||
| 795 | 795 | JsonTokenType: number; |
| 796 | 796 | } |
| 797 | 797 | |
| 798 | +export interface LocalDate { | |
| 799 | + LocalDate: number; | |
| 800 | +} | |
| 801 | + | |
| 798 | 802 | export interface Locale { |
| 799 | 803 | Locale: number; |
| 800 | 804 | } |
| @@ -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 | + OffsetDateTime: OffsetDateTime; | |
| 1002 | + OffsetTime: OffsetTime; | |
| 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 OffsetDateTime { | |
| 1087 | + OffsetDateTime: number; | |
| 1088 | +} | |
| 1089 | + | |
| 1090 | +export interface OffsetTime { | |
| 1091 | + OffsetTime: 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,17 +1315,10 @@ 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; | |
| 1316 | -} | |
| 1317 | - | |
| 1318 | 1318 | export interface Obj5 { |
| 1319 | 1319 | KSerializer: KSerializer; |
| 1320 | 1320 | PrimitiveKind: PrimitiveKind; |
| 1321 | + SEL: Sel; | |
| 1321 | 1322 | Self: Self; |
| 1322 | 1323 | Sendable: Sendable; |
| 1323 | 1324 | SerialDescriptor: SerialDescriptor; |
| @@ -1335,6 +1336,8 @@ export interface Obj5 { | ||
| 1335 | 1336 | Type: Type; |
| 1336 | 1337 | UseSerializers: UseSerializers; |
| 1337 | 1338 | dummy: number; |
| 1339 | + sealed: Sealed; | |
| 1340 | + select: Select; | |
| 1338 | 1341 | self: SelfClass; |
| 1339 | 1342 | serialize: Serialize; |
| 1340 | 1343 | set: Set; |
| @@ -1378,9 +1381,6 @@ export interface Obj5 { | ||
| 1378 | 1381 | undefined: Undefined; |
| 1379 | 1382 | union: Union; |
| 1380 | 1383 | unowned: Unowned; |
| 1381 | - unsafe: Unsafe; | |
| 1382 | - unsigned: Unsigned; | |
| 1383 | - ushort: Ushort; | |
| 1384 | 1384 | } |
| 1385 | 1385 | |
| 1386 | 1386 | export interface KSerializer { |
| @@ -1391,6 +1391,10 @@ export interface PrimitiveKind { | ||
| 1391 | 1391 | PrimitiveKind: number; |
| 1392 | 1392 | } |
| 1393 | 1393 | |
| 1394 | +export interface Sel { | |
| 1395 | + SEL: number; | |
| 1396 | +} | |
| 1397 | + | |
| 1394 | 1398 | export interface Self { |
| 1395 | 1399 | Self: number; |
| 1396 | 1400 | } |
| @@ -1455,6 +1459,14 @@ export interface UseSerializers { | ||
| 1455 | 1459 | UseSerializers: number; |
| 1456 | 1460 | } |
| 1457 | 1461 | |
| 1462 | +export interface Sealed { | |
| 1463 | + sealed: number; | |
| 1464 | +} | |
| 1465 | + | |
| 1466 | +export interface Select { | |
| 1467 | + select: number; | |
| 1468 | +} | |
| 1469 | + | |
| 1458 | 1470 | export interface SelfClass { |
| 1459 | 1471 | self: number; |
| 1460 | 1472 | } |
| @@ -1627,24 +1639,15 @@ export interface Unowned { | ||
| 1627 | 1639 | unowned: number; |
| 1628 | 1640 | } |
| 1629 | 1641 | |
| 1630 | -export interface Unsafe { | |
| 1631 | - unsafe: number; | |
| 1632 | -} | |
| 1633 | - | |
| 1634 | -export interface Unsigned { | |
| 1635 | - unsigned: number; | |
| 1636 | -} | |
| 1637 | - | |
| 1638 | -export interface Ushort { | |
| 1639 | - ushort: number; | |
| 1640 | -} | |
| 1641 | - | |
| 1642 | 1642 | export interface Obj6 { |
| 1643 | 1643 | UUID: UUID; |
| 1644 | 1644 | Utf8JsonReader: Utf8JSONReader; |
| 1645 | 1645 | Utf8JsonWriter: Utf8JSONWriter; |
| 1646 | 1646 | YES: Yes; |
| 1647 | 1647 | dummy: number; |
| 1648 | + unsafe: Unsafe; | |
| 1649 | + unsigned: Unsigned; | |
| 1650 | + ushort: Ushort; | |
| 1648 | 1651 | using: Using; |
| 1649 | 1652 | var: Var; |
| 1650 | 1653 | virtual: Virtual; |
| @@ -1677,6 +1680,18 @@ export interface Yes { | ||
| 1677 | 1680 | YES: number; |
| 1678 | 1681 | } |
| 1679 | 1682 | |
| 1683 | +export interface Unsafe { | |
| 1684 | + unsafe: number; | |
| 1685 | +} | |
| 1686 | + | |
| 1687 | +export interface Unsigned { | |
| 1688 | + unsigned: number; | |
| 1689 | +} | |
| 1690 | + | |
| 1691 | +export interface Ushort { | |
| 1692 | + ushort: number; | |
| 1693 | +} | |
| 1694 | + | |
| 1680 | 1695 | export interface Using { |
| 1681 | 1696 | using: number; |
| 1682 | 1697 | } |
| @@ -2464,6 +2479,7 @@ const typeMap: any = { | ||
| 2464 | 2479 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 2465 | 2480 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 2466 | 2481 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 2482 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 2467 | 2483 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 2468 | 2484 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2469 | 2485 | { json: "NO", js: "NO", typ: r("No") }, |
| @@ -2513,7 +2529,6 @@ const typeMap: any = { | ||
| 2513 | 2529 | { json: "new", js: "new", typ: r("New") }, |
| 2514 | 2530 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2515 | 2531 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 2516 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2517 | 2532 | ], false), |
| 2518 | 2533 | "Hashable": o([ |
| 2519 | 2534 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2560,6 +2575,9 @@ const typeMap: any = { | ||
| 2560 | 2575 | "JSONTokenType": o([ |
| 2561 | 2576 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 2562 | 2577 | ], false), |
| 2578 | + "LocalDate": o([ | |
| 2579 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 2580 | + ], false), | |
| 2563 | 2581 | "Locale": o([ |
| 2564 | 2582 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 2565 | 2583 | ], false), |
| @@ -2704,9 +2722,6 @@ const typeMap: any = { | ||
| 2704 | 2722 | "Nil": o([ |
| 2705 | 2723 | { json: "nil", js: "nil", typ: i(0) }, |
| 2706 | 2724 | ], false), |
| 2707 | - "Noexcept": o([ | |
| 2708 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2709 | - ], false), | |
| 2710 | 2725 | "Obj4": o([ |
| 2711 | 2726 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2712 | 2727 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -2714,11 +2729,13 @@ const typeMap: any = { | ||
| 2714 | 2729 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2715 | 2730 | { json: "None", js: "None", typ: r("None") }, |
| 2716 | 2731 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2732 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 2733 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 2717 | 2734 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2718 | 2735 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 2719 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2720 | 2736 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2721 | 2737 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2738 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2722 | 2739 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 2723 | 2740 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 2724 | 2741 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -2771,8 +2788,6 @@ const typeMap: any = { | ||
| 2771 | 2788 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2772 | 2789 | { json: "s", js: "s", typ: r("S") }, |
| 2773 | 2790 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2774 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2775 | - { json: "select", js: "select", typ: r("Select") }, | |
| 2776 | 2791 | ], false), |
| 2777 | 2792 | "NSError": o([ |
| 2778 | 2793 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2792,18 +2807,24 @@ const typeMap: any = { | ||
| 2792 | 2807 | "ObjectMapper": o([ |
| 2793 | 2808 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2794 | 2809 | ], false), |
| 2810 | + "OffsetDateTime": o([ | |
| 2811 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 2812 | + ], false), | |
| 2813 | + "OffsetTime": o([ | |
| 2814 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 2815 | + ], false), | |
| 2795 | 2816 | "Protocol": o([ |
| 2796 | 2817 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2797 | 2818 | ], false), |
| 2798 | 2819 | "RegExp": o([ |
| 2799 | 2820 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2800 | 2821 | ], false), |
| 2801 | - "Sel": o([ | |
| 2802 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2803 | - ], false), | |
| 2804 | 2822 | "NoSuchMethod": o([ |
| 2805 | 2823 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 2806 | 2824 | ], false), |
| 2825 | + "Noexcept": o([ | |
| 2826 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2827 | + ], false), | |
| 2807 | 2828 | "Nonatomic": o([ |
| 2808 | 2829 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 2809 | 2830 | ], false), |
| @@ -2960,15 +2981,10 @@ const typeMap: any = { | ||
| 2960 | 2981 | "Sbyte": o([ |
| 2961 | 2982 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2962 | 2983 | ], false), |
| 2963 | - "Sealed": o([ | |
| 2964 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2965 | - ], false), | |
| 2966 | - "Select": o([ | |
| 2967 | - { json: "select", js: "select", typ: i(0) }, | |
| 2968 | - ], false), | |
| 2969 | 2984 | "Obj5": o([ |
| 2970 | 2985 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 2971 | 2986 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 2987 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2972 | 2988 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2973 | 2989 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2974 | 2990 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -2986,6 +3002,8 @@ const typeMap: any = { | ||
| 2986 | 3002 | { json: "Type", js: "Type", typ: r("Type") }, |
| 2987 | 3003 | { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, |
| 2988 | 3004 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3005 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 3006 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2989 | 3007 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 2990 | 3008 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 2991 | 3009 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -3029,9 +3047,6 @@ const typeMap: any = { | ||
| 3029 | 3047 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 3030 | 3048 | { json: "union", js: "union", typ: r("Union") }, |
| 3031 | 3049 | { json: "unowned", js: "unowned", typ: r("Unowned") }, |
| 3032 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3033 | - { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 3034 | - { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 3035 | 3050 | ], false), |
| 3036 | 3051 | "KSerializer": o([ |
| 3037 | 3052 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -3039,6 +3054,9 @@ const typeMap: any = { | ||
| 3039 | 3054 | "PrimitiveKind": o([ |
| 3040 | 3055 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 3041 | 3056 | ], false), |
| 3057 | + "Sel": o([ | |
| 3058 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3059 | + ], false), | |
| 3042 | 3060 | "Self": o([ |
| 3043 | 3061 | { json: "Self", js: "Self", typ: i(0) }, |
| 3044 | 3062 | ], false), |
| @@ -3087,6 +3105,12 @@ const typeMap: any = { | ||
| 3087 | 3105 | "UseSerializers": o([ |
| 3088 | 3106 | { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, |
| 3089 | 3107 | ], false), |
| 3108 | + "Sealed": o([ | |
| 3109 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3110 | + ], false), | |
| 3111 | + "Select": o([ | |
| 3112 | + { json: "select", js: "select", typ: i(0) }, | |
| 3113 | + ], false), | |
| 3090 | 3114 | "SelfClass": o([ |
| 3091 | 3115 | { json: "self", js: "self", typ: i(0) }, |
| 3092 | 3116 | ], false), |
| @@ -3216,21 +3240,15 @@ const typeMap: any = { | ||
| 3216 | 3240 | "Unowned": o([ |
| 3217 | 3241 | { json: "unowned", js: "unowned", typ: i(0) }, |
| 3218 | 3242 | ], false), |
| 3219 | - "Unsafe": o([ | |
| 3220 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3221 | - ], false), | |
| 3222 | - "Unsigned": o([ | |
| 3223 | - { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 3224 | - ], false), | |
| 3225 | - "Ushort": o([ | |
| 3226 | - { json: "ushort", js: "ushort", typ: i(0) }, | |
| 3227 | - ], false), | |
| 3228 | 3243 | "Obj6": o([ |
| 3229 | 3244 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 3230 | 3245 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 3231 | 3246 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 3232 | 3247 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3233 | 3248 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3249 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3250 | + { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 3251 | + { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 3234 | 3252 | { json: "using", js: "using", typ: r("Using") }, |
| 3235 | 3253 | { json: "var", js: "var", typ: r("Var") }, |
| 3236 | 3254 | { json: "virtual", js: "virtual", typ: r("Virtual") }, |
| @@ -3258,6 +3276,15 @@ const typeMap: any = { | ||
| 3258 | 3276 | "Yes": o([ |
| 3259 | 3277 | { json: "YES", js: "YES", typ: i(0) }, |
| 3260 | 3278 | ], false), |
| 3279 | + "Unsafe": o([ | |
| 3280 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3281 | + ], false), | |
| 3282 | + "Unsigned": o([ | |
| 3283 | + { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 3284 | + ], false), | |
| 3285 | + "Ushort": o([ | |
| 3286 | + { json: "ushort", js: "ushort", typ: i(0) }, | |
| 3287 | + ], false), | |
| 3261 | 3288 | "Using": o([ |
| 3262 | 3289 | { json: "using", js: "using", typ: i(0) }, |
| 3263 | 3290 | ], false), |
Mtypescriptprefer-types-true--df33e18681f9 / TopLevel.ts+90 −63
| @@ -683,6 +683,7 @@ export type Obj3 = { | ||
| 683 | 683 | JsonParser: JSONParser; |
| 684 | 684 | JsonReader: JSONReader; |
| 685 | 685 | JsonTokenType: JSONTokenType; |
| 686 | + LocalDate: LocalDate; | |
| 686 | 687 | Locale: Locale; |
| 687 | 688 | MapEntry: MapEntry; |
| 688 | 689 | NO: No; |
| @@ -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 = { |
| @@ -795,6 +795,10 @@ export type JSONTokenType = { | ||
| 795 | 795 | JsonTokenType: number; |
| 796 | 796 | } |
| 797 | 797 | |
| 798 | +export type LocalDate = { | |
| 799 | + LocalDate: number; | |
| 800 | +} | |
| 801 | + | |
| 798 | 802 | export type Locale = { |
| 799 | 803 | Locale: number; |
| 800 | 804 | } |
| @@ -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 | + OffsetDateTime: OffsetDateTime; | |
| 1002 | + OffsetTime: OffsetTime; | |
| 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 OffsetDateTime = { | |
| 1087 | + OffsetDateTime: number; | |
| 1088 | +} | |
| 1089 | + | |
| 1090 | +export type OffsetTime = { | |
| 1091 | + OffsetTime: 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,17 +1315,10 @@ 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; | |
| 1316 | -} | |
| 1317 | - | |
| 1318 | 1318 | export type Obj5 = { |
| 1319 | 1319 | KSerializer: KSerializer; |
| 1320 | 1320 | PrimitiveKind: PrimitiveKind; |
| 1321 | + SEL: Sel; | |
| 1321 | 1322 | Self: Self; |
| 1322 | 1323 | Sendable: Sendable; |
| 1323 | 1324 | SerialDescriptor: SerialDescriptor; |
| @@ -1335,6 +1336,8 @@ export type Obj5 = { | ||
| 1335 | 1336 | Type: Type; |
| 1336 | 1337 | UseSerializers: UseSerializers; |
| 1337 | 1338 | dummy: number; |
| 1339 | + sealed: Sealed; | |
| 1340 | + select: Select; | |
| 1338 | 1341 | self: SelfClass; |
| 1339 | 1342 | serialize: Serialize; |
| 1340 | 1343 | set: Set; |
| @@ -1378,9 +1381,6 @@ export type Obj5 = { | ||
| 1378 | 1381 | undefined: Undefined; |
| 1379 | 1382 | union: Union; |
| 1380 | 1383 | unowned: Unowned; |
| 1381 | - unsafe: Unsafe; | |
| 1382 | - unsigned: Unsigned; | |
| 1383 | - ushort: Ushort; | |
| 1384 | 1384 | } |
| 1385 | 1385 | |
| 1386 | 1386 | export type KSerializer = { |
| @@ -1391,6 +1391,10 @@ export type PrimitiveKind = { | ||
| 1391 | 1391 | PrimitiveKind: number; |
| 1392 | 1392 | } |
| 1393 | 1393 | |
| 1394 | +export type Sel = { | |
| 1395 | + SEL: number; | |
| 1396 | +} | |
| 1397 | + | |
| 1394 | 1398 | export type Self = { |
| 1395 | 1399 | Self: number; |
| 1396 | 1400 | } |
| @@ -1455,6 +1459,14 @@ export type UseSerializers = { | ||
| 1455 | 1459 | UseSerializers: number; |
| 1456 | 1460 | } |
| 1457 | 1461 | |
| 1462 | +export type Sealed = { | |
| 1463 | + sealed: number; | |
| 1464 | +} | |
| 1465 | + | |
| 1466 | +export type Select = { | |
| 1467 | + select: number; | |
| 1468 | +} | |
| 1469 | + | |
| 1458 | 1470 | export type SelfClass = { |
| 1459 | 1471 | self: number; |
| 1460 | 1472 | } |
| @@ -1627,24 +1639,15 @@ export type Unowned = { | ||
| 1627 | 1639 | unowned: number; |
| 1628 | 1640 | } |
| 1629 | 1641 | |
| 1630 | -export type Unsafe = { | |
| 1631 | - unsafe: number; | |
| 1632 | -} | |
| 1633 | - | |
| 1634 | -export type Unsigned = { | |
| 1635 | - unsigned: number; | |
| 1636 | -} | |
| 1637 | - | |
| 1638 | -export type Ushort = { | |
| 1639 | - ushort: number; | |
| 1640 | -} | |
| 1641 | - | |
| 1642 | 1642 | export type Obj6 = { |
| 1643 | 1643 | UUID: UUID; |
| 1644 | 1644 | Utf8JsonReader: Utf8JSONReader; |
| 1645 | 1645 | Utf8JsonWriter: Utf8JSONWriter; |
| 1646 | 1646 | YES: Yes; |
| 1647 | 1647 | dummy: number; |
| 1648 | + unsafe: Unsafe; | |
| 1649 | + unsigned: Unsigned; | |
| 1650 | + ushort: Ushort; | |
| 1648 | 1651 | using: Using; |
| 1649 | 1652 | var: Var; |
| 1650 | 1653 | virtual: Virtual; |
| @@ -1677,6 +1680,18 @@ export type Yes = { | ||
| 1677 | 1680 | YES: number; |
| 1678 | 1681 | } |
| 1679 | 1682 | |
| 1683 | +export type Unsafe = { | |
| 1684 | + unsafe: number; | |
| 1685 | +} | |
| 1686 | + | |
| 1687 | +export type Unsigned = { | |
| 1688 | + unsigned: number; | |
| 1689 | +} | |
| 1690 | + | |
| 1691 | +export type Ushort = { | |
| 1692 | + ushort: number; | |
| 1693 | +} | |
| 1694 | + | |
| 1680 | 1695 | export type Using = { |
| 1681 | 1696 | using: number; |
| 1682 | 1697 | } |
| @@ -2464,6 +2479,7 @@ const typeMap: any = { | ||
| 2464 | 2479 | { json: "JsonParser", js: "JsonParser", typ: r("JSONParser") }, |
| 2465 | 2480 | { json: "JsonReader", js: "JsonReader", typ: r("JSONReader") }, |
| 2466 | 2481 | { json: "JsonTokenType", js: "JsonTokenType", typ: r("JSONTokenType") }, |
| 2482 | + { json: "LocalDate", js: "LocalDate", typ: r("LocalDate") }, | |
| 2467 | 2483 | { json: "Locale", js: "Locale", typ: r("Locale") }, |
| 2468 | 2484 | { json: "MapEntry", js: "MapEntry", typ: r("MapEntry") }, |
| 2469 | 2485 | { json: "NO", js: "NO", typ: r("No") }, |
| @@ -2513,7 +2529,6 @@ const typeMap: any = { | ||
| 2513 | 2529 | { json: "new", js: "new", typ: r("New") }, |
| 2514 | 2530 | { json: "newtonsoft", js: "newtonsoft", typ: r("Newtonsoft") }, |
| 2515 | 2531 | { json: "nil", js: "nil", typ: r("Nil") }, |
| 2516 | - { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2517 | 2532 | ], false), |
| 2518 | 2533 | "Hashable": o([ |
| 2519 | 2534 | { json: "Hashable", js: "Hashable", typ: i(0) }, |
| @@ -2560,6 +2575,9 @@ const typeMap: any = { | ||
| 2560 | 2575 | "JSONTokenType": o([ |
| 2561 | 2576 | { json: "JsonTokenType", js: "JsonTokenType", typ: i(0) }, |
| 2562 | 2577 | ], false), |
| 2578 | + "LocalDate": o([ | |
| 2579 | + { json: "LocalDate", js: "LocalDate", typ: i(0) }, | |
| 2580 | + ], false), | |
| 2563 | 2581 | "Locale": o([ |
| 2564 | 2582 | { json: "Locale", js: "Locale", typ: i(0) }, |
| 2565 | 2583 | ], false), |
| @@ -2704,9 +2722,6 @@ const typeMap: any = { | ||
| 2704 | 2722 | "Nil": o([ |
| 2705 | 2723 | { json: "nil", js: "nil", typ: i(0) }, |
| 2706 | 2724 | ], false), |
| 2707 | - "Noexcept": o([ | |
| 2708 | - { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2709 | - ], false), | |
| 2710 | 2725 | "Obj4": o([ |
| 2711 | 2726 | { json: "NSError", js: "NSError", typ: r("NSError") }, |
| 2712 | 2727 | { json: "NSObject", js: "NSObject", typ: r("NSObject") }, |
| @@ -2714,11 +2729,13 @@ const typeMap: any = { | ||
| 2714 | 2729 | { json: "NULL", js: "NULL", typ: r("Null") }, |
| 2715 | 2730 | { json: "None", js: "None", typ: r("None") }, |
| 2716 | 2731 | { json: "ObjectMapper", js: "ObjectMapper", typ: r("ObjectMapper") }, |
| 2732 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: r("OffsetDateTime") }, | |
| 2733 | + { json: "OffsetTime", js: "OffsetTime", typ: r("OffsetTime") }, | |
| 2717 | 2734 | { json: "Protocol", js: "Protocol", typ: r("Protocol") }, |
| 2718 | 2735 | { json: "RegExp", js: "RegExp", typ: r("RegExp") }, |
| 2719 | - { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2720 | 2736 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 2721 | 2737 | { json: "noSuchMethod", js: "noSuchMethod", typ: r("NoSuchMethod") }, |
| 2738 | + { json: "noexcept", js: "noexcept", typ: r("Noexcept") }, | |
| 2722 | 2739 | { json: "nonatomic", js: "nonatomic", typ: r("Nonatomic") }, |
| 2723 | 2740 | { json: "none", js: "none", typ: r("NoneClass") }, |
| 2724 | 2741 | { json: "nonlocal", js: "nonlocal", typ: r("Nonlocal") }, |
| @@ -2771,8 +2788,6 @@ const typeMap: any = { | ||
| 2771 | 2788 | { json: "runtimeType", js: "runtimeType", typ: r("RuntimeType") }, |
| 2772 | 2789 | { json: "s", js: "s", typ: r("S") }, |
| 2773 | 2790 | { json: "sbyte", js: "sbyte", typ: r("Sbyte") }, |
| 2774 | - { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 2775 | - { json: "select", js: "select", typ: r("Select") }, | |
| 2776 | 2791 | ], false), |
| 2777 | 2792 | "NSError": o([ |
| 2778 | 2793 | { json: "NSError", js: "NSError", typ: i(0) }, |
| @@ -2792,18 +2807,24 @@ const typeMap: any = { | ||
| 2792 | 2807 | "ObjectMapper": o([ |
| 2793 | 2808 | { json: "ObjectMapper", js: "ObjectMapper", typ: i(0) }, |
| 2794 | 2809 | ], false), |
| 2810 | + "OffsetDateTime": o([ | |
| 2811 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: i(0) }, | |
| 2812 | + ], false), | |
| 2813 | + "OffsetTime": o([ | |
| 2814 | + { json: "OffsetTime", js: "OffsetTime", typ: i(0) }, | |
| 2815 | + ], false), | |
| 2795 | 2816 | "Protocol": o([ |
| 2796 | 2817 | { json: "Protocol", js: "Protocol", typ: i(0) }, |
| 2797 | 2818 | ], false), |
| 2798 | 2819 | "RegExp": o([ |
| 2799 | 2820 | { json: "RegExp", js: "RegExp", typ: { uuid: "" } }, |
| 2800 | 2821 | ], false), |
| 2801 | - "Sel": o([ | |
| 2802 | - { json: "SEL", js: "SEL", typ: i(0) }, | |
| 2803 | - ], false), | |
| 2804 | 2822 | "NoSuchMethod": o([ |
| 2805 | 2823 | { json: "noSuchMethod", js: "noSuchMethod", typ: i(0) }, |
| 2806 | 2824 | ], false), |
| 2825 | + "Noexcept": o([ | |
| 2826 | + { json: "noexcept", js: "noexcept", typ: i(0) }, | |
| 2827 | + ], false), | |
| 2807 | 2828 | "Nonatomic": o([ |
| 2808 | 2829 | { json: "nonatomic", js: "nonatomic", typ: i(0) }, |
| 2809 | 2830 | ], false), |
| @@ -2960,15 +2981,10 @@ const typeMap: any = { | ||
| 2960 | 2981 | "Sbyte": o([ |
| 2961 | 2982 | { json: "sbyte", js: "sbyte", typ: i(0) }, |
| 2962 | 2983 | ], false), |
| 2963 | - "Sealed": o([ | |
| 2964 | - { json: "sealed", js: "sealed", typ: i(0) }, | |
| 2965 | - ], false), | |
| 2966 | - "Select": o([ | |
| 2967 | - { json: "select", js: "select", typ: i(0) }, | |
| 2968 | - ], false), | |
| 2969 | 2984 | "Obj5": o([ |
| 2970 | 2985 | { json: "KSerializer", js: "KSerializer", typ: r("KSerializer") }, |
| 2971 | 2986 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: r("PrimitiveKind") }, |
| 2987 | + { json: "SEL", js: "SEL", typ: r("Sel") }, | |
| 2972 | 2988 | { json: "Self", js: "Self", typ: r("Self") }, |
| 2973 | 2989 | { json: "Sendable", js: "Sendable", typ: r("Sendable") }, |
| 2974 | 2990 | { json: "SerialDescriptor", js: "SerialDescriptor", typ: r("SerialDescriptor") }, |
| @@ -2986,6 +3002,8 @@ const typeMap: any = { | ||
| 2986 | 3002 | { json: "Type", js: "Type", typ: r("Type") }, |
| 2987 | 3003 | { json: "UseSerializers", js: "UseSerializers", typ: r("UseSerializers") }, |
| 2988 | 3004 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3005 | + { json: "sealed", js: "sealed", typ: r("Sealed") }, | |
| 3006 | + { json: "select", js: "select", typ: r("Select") }, | |
| 2989 | 3007 | { json: "self", js: "self", typ: r("SelfClass") }, |
| 2990 | 3008 | { json: "serialize", js: "serialize", typ: r("Serialize") }, |
| 2991 | 3009 | { json: "set", js: "set", typ: r("Set") }, |
| @@ -3029,9 +3047,6 @@ const typeMap: any = { | ||
| 3029 | 3047 | { json: "undefined", js: "undefined", typ: r("Undefined") }, |
| 3030 | 3048 | { json: "union", js: "union", typ: r("Union") }, |
| 3031 | 3049 | { json: "unowned", js: "unowned", typ: r("Unowned") }, |
| 3032 | - { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3033 | - { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 3034 | - { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 3035 | 3050 | ], false), |
| 3036 | 3051 | "KSerializer": o([ |
| 3037 | 3052 | { json: "KSerializer", js: "KSerializer", typ: i(0) }, |
| @@ -3039,6 +3054,9 @@ const typeMap: any = { | ||
| 3039 | 3054 | "PrimitiveKind": o([ |
| 3040 | 3055 | { json: "PrimitiveKind", js: "PrimitiveKind", typ: i(0) }, |
| 3041 | 3056 | ], false), |
| 3057 | + "Sel": o([ | |
| 3058 | + { json: "SEL", js: "SEL", typ: i(0) }, | |
| 3059 | + ], false), | |
| 3042 | 3060 | "Self": o([ |
| 3043 | 3061 | { json: "Self", js: "Self", typ: i(0) }, |
| 3044 | 3062 | ], false), |
| @@ -3087,6 +3105,12 @@ const typeMap: any = { | ||
| 3087 | 3105 | "UseSerializers": o([ |
| 3088 | 3106 | { json: "UseSerializers", js: "UseSerializers", typ: i(0) }, |
| 3089 | 3107 | ], false), |
| 3108 | + "Sealed": o([ | |
| 3109 | + { json: "sealed", js: "sealed", typ: i(0) }, | |
| 3110 | + ], false), | |
| 3111 | + "Select": o([ | |
| 3112 | + { json: "select", js: "select", typ: i(0) }, | |
| 3113 | + ], false), | |
| 3090 | 3114 | "SelfClass": o([ |
| 3091 | 3115 | { json: "self", js: "self", typ: i(0) }, |
| 3092 | 3116 | ], false), |
| @@ -3216,21 +3240,15 @@ const typeMap: any = { | ||
| 3216 | 3240 | "Unowned": o([ |
| 3217 | 3241 | { json: "unowned", js: "unowned", typ: i(0) }, |
| 3218 | 3242 | ], false), |
| 3219 | - "Unsafe": o([ | |
| 3220 | - { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3221 | - ], false), | |
| 3222 | - "Unsigned": o([ | |
| 3223 | - { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 3224 | - ], false), | |
| 3225 | - "Ushort": o([ | |
| 3226 | - { json: "ushort", js: "ushort", typ: i(0) }, | |
| 3227 | - ], false), | |
| 3228 | 3243 | "Obj6": o([ |
| 3229 | 3244 | { json: "UUID", js: "UUID", typ: r("UUID") }, |
| 3230 | 3245 | { json: "Utf8JsonReader", js: "Utf8JsonReader", typ: r("Utf8JSONReader") }, |
| 3231 | 3246 | { json: "Utf8JsonWriter", js: "Utf8JsonWriter", typ: r("Utf8JSONWriter") }, |
| 3232 | 3247 | { json: "YES", js: "YES", typ: r("Yes") }, |
| 3233 | 3248 | { json: "dummy", js: "dummy", typ: i(0) }, |
| 3249 | + { json: "unsafe", js: "unsafe", typ: r("Unsafe") }, | |
| 3250 | + { json: "unsigned", js: "unsigned", typ: r("Unsigned") }, | |
| 3251 | + { json: "ushort", js: "ushort", typ: r("Ushort") }, | |
| 3234 | 3252 | { json: "using", js: "using", typ: r("Using") }, |
| 3235 | 3253 | { json: "var", js: "var", typ: r("Var") }, |
| 3236 | 3254 | { json: "virtual", js: "virtual", typ: r("Virtual") }, |
| @@ -3258,6 +3276,15 @@ const typeMap: any = { | ||
| 3258 | 3276 | "Yes": o([ |
| 3259 | 3277 | { json: "YES", js: "YES", typ: i(0) }, |
| 3260 | 3278 | ], false), |
| 3279 | + "Unsafe": o([ | |
| 3280 | + { json: "unsafe", js: "unsafe", typ: i(0) }, | |
| 3281 | + ], false), | |
| 3282 | + "Unsigned": o([ | |
| 3283 | + { json: "unsigned", js: "unsigned", typ: i(0) }, | |
| 3284 | + ], false), | |
| 3285 | + "Ushort": o([ | |
| 3286 | + { json: "ushort", js: "ushort", typ: i(0) }, | |
| 3287 | + ], false), | |
| 3261 | 3288 | "Using": o([ |
| 3262 | 3289 | { json: "using", js: "using", typ: i(0) }, |
| 3263 | 3290 | ], false), |
Test case
45 generated files · +1,814 −57test/inputs/schema/date-time.schema
Mschema-cjsondefault / TopLevel.c+180 −0
| @@ -48,6 +48,153 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x) { | ||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | +struct LocalDate * cJSON_ParseLocalDate(const char * s) { | |
| 52 | + struct LocalDate * x = NULL; | |
| 53 | + if (NULL != s) { | |
| 54 | + cJSON * j = cJSON_Parse(s); | |
| 55 | + if (NULL != j) { | |
| 56 | + x = cJSON_GetLocalDateValue(j); | |
| 57 | + cJSON_Delete(j); | |
| 58 | + } | |
| 59 | + } | |
| 60 | + return x; | |
| 61 | +} | |
| 62 | + | |
| 63 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) { | |
| 64 | + struct LocalDate * x = NULL; | |
| 65 | + if (NULL != j) { | |
| 66 | + if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) { | |
| 67 | + memset(x, 0, sizeof(struct LocalDate)); | |
| 68 | + } | |
| 69 | + } | |
| 70 | + return x; | |
| 71 | +} | |
| 72 | + | |
| 73 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) { | |
| 74 | + cJSON * j = NULL; | |
| 75 | + if (NULL != x) { | |
| 76 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 77 | + } | |
| 78 | + } | |
| 79 | + return j; | |
| 80 | +} | |
| 81 | + | |
| 82 | +char * cJSON_PrintLocalDate(const struct LocalDate * x) { | |
| 83 | + char * s = NULL; | |
| 84 | + if (NULL != x) { | |
| 85 | + cJSON * j = cJSON_CreateLocalDate(x); | |
| 86 | + if (NULL != j) { | |
| 87 | + s = cJSON_Print(j); | |
| 88 | + cJSON_Delete(j); | |
| 89 | + } | |
| 90 | + } | |
| 91 | + return s; | |
| 92 | +} | |
| 93 | + | |
| 94 | +void cJSON_DeleteLocalDate(struct LocalDate * x) { | |
| 95 | + if (NULL != x) { | |
| 96 | + cJSON_free(x); | |
| 97 | + } | |
| 98 | +} | |
| 99 | + | |
| 100 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) { | |
| 101 | + struct OffsetDateTime * x = NULL; | |
| 102 | + if (NULL != s) { | |
| 103 | + cJSON * j = cJSON_Parse(s); | |
| 104 | + if (NULL != j) { | |
| 105 | + x = cJSON_GetOffsetDateTimeValue(j); | |
| 106 | + cJSON_Delete(j); | |
| 107 | + } | |
| 108 | + } | |
| 109 | + return x; | |
| 110 | +} | |
| 111 | + | |
| 112 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) { | |
| 113 | + struct OffsetDateTime * x = NULL; | |
| 114 | + if (NULL != j) { | |
| 115 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) { | |
| 116 | + memset(x, 0, sizeof(struct OffsetDateTime)); | |
| 117 | + } | |
| 118 | + } | |
| 119 | + return x; | |
| 120 | +} | |
| 121 | + | |
| 122 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) { | |
| 123 | + cJSON * j = NULL; | |
| 124 | + if (NULL != x) { | |
| 125 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 126 | + } | |
| 127 | + } | |
| 128 | + return j; | |
| 129 | +} | |
| 130 | + | |
| 131 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) { | |
| 132 | + char * s = NULL; | |
| 133 | + if (NULL != x) { | |
| 134 | + cJSON * j = cJSON_CreateOffsetDateTime(x); | |
| 135 | + if (NULL != j) { | |
| 136 | + s = cJSON_Print(j); | |
| 137 | + cJSON_Delete(j); | |
| 138 | + } | |
| 139 | + } | |
| 140 | + return s; | |
| 141 | +} | |
| 142 | + | |
| 143 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) { | |
| 144 | + if (NULL != x) { | |
| 145 | + cJSON_free(x); | |
| 146 | + } | |
| 147 | +} | |
| 148 | + | |
| 149 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s) { | |
| 150 | + struct OffsetTime * x = NULL; | |
| 151 | + if (NULL != s) { | |
| 152 | + cJSON * j = cJSON_Parse(s); | |
| 153 | + if (NULL != j) { | |
| 154 | + x = cJSON_GetOffsetTimeValue(j); | |
| 155 | + cJSON_Delete(j); | |
| 156 | + } | |
| 157 | + } | |
| 158 | + return x; | |
| 159 | +} | |
| 160 | + | |
| 161 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) { | |
| 162 | + struct OffsetTime * x = NULL; | |
| 163 | + if (NULL != j) { | |
| 164 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) { | |
| 165 | + memset(x, 0, sizeof(struct OffsetTime)); | |
| 166 | + } | |
| 167 | + } | |
| 168 | + return x; | |
| 169 | +} | |
| 170 | + | |
| 171 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) { | |
| 172 | + cJSON * j = NULL; | |
| 173 | + if (NULL != x) { | |
| 174 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 175 | + } | |
| 176 | + } | |
| 177 | + return j; | |
| 178 | +} | |
| 179 | + | |
| 180 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x) { | |
| 181 | + char * s = NULL; | |
| 182 | + if (NULL != x) { | |
| 183 | + cJSON * j = cJSON_CreateOffsetTime(x); | |
| 184 | + if (NULL != j) { | |
| 185 | + s = cJSON_Print(j); | |
| 186 | + cJSON_Delete(j); | |
| 187 | + } | |
| 188 | + } | |
| 189 | + return s; | |
| 190 | +} | |
| 191 | + | |
| 192 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x) { | |
| 193 | + if (NULL != x) { | |
| 194 | + cJSON_free(x); | |
| 195 | + } | |
| 196 | +} | |
| 197 | + | |
| 51 | 198 | struct TopLevel * cJSON_ParseTopLevel(const char * s) { |
| 52 | 199 | struct TopLevel * x = NULL; |
| 53 | 200 | if (NULL != s) { |
| @@ -103,6 +250,21 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 103 | 250 | x->date_time[0] = '\0'; |
| 104 | 251 | } |
| 105 | 252 | } |
| 253 | + if (cJSON_HasObjectItem(j, "local-date-class")) { | |
| 254 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "local-date-class"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 255 | + x->local_date_class = cJSON_GetLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "local-date-class")); | |
| 256 | + if (NULL == x->local_date_class) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 257 | + } | |
| 258 | + if (cJSON_HasObjectItem(j, "offset-date-time-class")) { | |
| 259 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 260 | + x->offset_date_time_class = cJSON_GetOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-date-time-class")); | |
| 261 | + if (NULL == x->offset_date_time_class) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 262 | + } | |
| 263 | + if (cJSON_HasObjectItem(j, "offset-time-class")) { | |
| 264 | + if (!cJSON_IsObject(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 265 | + x->offset_time_class = cJSON_GetOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "offset-time-class")); | |
| 266 | + if (NULL == x->offset_time_class) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 267 | + } | |
| 106 | 268 | if (!cJSON_HasObjectItem(j, "time")) { cJSON_DeleteTopLevel(x); return NULL; } |
| 107 | 269 | if (cJSON_HasObjectItem(j, "time")) { |
| 108 | 270 | if (!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(j, "time"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| @@ -160,6 +322,15 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 160 | 322 | else { |
| 161 | 323 | cJSON_AddStringToObject(j, "date-time", ""); |
| 162 | 324 | } |
| 325 | + if (NULL != x->local_date_class) { | |
| 326 | + cJSON_AddItemToObject(j, "local-date-class", cJSON_CreateLocalDate(x->local_date_class)); | |
| 327 | + } | |
| 328 | + if (NULL != x->offset_date_time_class) { | |
| 329 | + cJSON_AddItemToObject(j, "offset-date-time-class", cJSON_CreateOffsetDateTime(x->offset_date_time_class)); | |
| 330 | + } | |
| 331 | + if (NULL != x->offset_time_class) { | |
| 332 | + cJSON_AddItemToObject(j, "offset-time-class", cJSON_CreateOffsetTime(x->offset_time_class)); | |
| 333 | + } | |
| 163 | 334 | if (NULL != x->time) { |
| 164 | 335 | cJSON_AddStringToObject(j, "time", x->time); |
| 165 | 336 | } |
| @@ -209,6 +380,15 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 209 | 380 | if (NULL != x->date_time) { |
| 210 | 381 | cJSON_free(x->date_time); |
| 211 | 382 | } |
| 383 | + if (NULL != x->local_date_class) { | |
| 384 | + cJSON_DeleteLocalDate(x->local_date_class); | |
| 385 | + } | |
| 386 | + if (NULL != x->offset_date_time_class) { | |
| 387 | + cJSON_DeleteOffsetDateTime(x->offset_date_time_class); | |
| 388 | + } | |
| 389 | + if (NULL != x->offset_time_class) { | |
| 390 | + cJSON_DeleteOffsetTime(x->offset_time_class); | |
| 391 | + } | |
| 212 | 392 | if (NULL != x->time) { |
| 213 | 393 | cJSON_free(x->time); |
| 214 | 394 | } |
Mschema-cjsondefault / TopLevel.h+30 −0
| @@ -56,10 +56,22 @@ struct ComplexUnionArray { | ||
| 56 | 56 | } value; |
| 57 | 57 | }; |
| 58 | 58 | |
| 59 | +struct LocalDate { | |
| 60 | +}; | |
| 61 | + | |
| 62 | +struct OffsetDateTime { | |
| 63 | +}; | |
| 64 | + | |
| 65 | +struct OffsetTime { | |
| 66 | +}; | |
| 67 | + | |
| 59 | 68 | struct TopLevel { |
| 60 | 69 | list_t * complex_union_array; |
| 61 | 70 | char * date; |
| 62 | 71 | char * date_time; |
| 72 | + struct LocalDate * local_date_class; | |
| 73 | + struct OffsetDateTime * offset_date_time_class; | |
| 74 | + struct OffsetTime * offset_time_class; | |
| 63 | 75 | char * time; |
| 64 | 76 | list_t * union_array; |
| 65 | 77 | }; |
| @@ -71,6 +83,24 @@ void cJSON_DeleteComplexUnionArray(struct ComplexUnionArray * x); | ||
| 71 | 83 | struct ComplexUnionArray * cJSON_ParseComplexUnionArray(const char * s); |
| 72 | 84 | char * cJSON_PrintComplexUnionArray(const struct ComplexUnionArray * x); |
| 73 | 85 | |
| 86 | +struct LocalDate * cJSON_ParseLocalDate(const char * s); | |
| 87 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j); | |
| 88 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x); | |
| 89 | +char * cJSON_PrintLocalDate(const struct LocalDate * x); | |
| 90 | +void cJSON_DeleteLocalDate(struct LocalDate * x); | |
| 91 | + | |
| 92 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s); | |
| 93 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j); | |
| 94 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x); | |
| 95 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x); | |
| 96 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x); | |
| 97 | + | |
| 98 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s); | |
| 99 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j); | |
| 100 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x); | |
| 101 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x); | |
| 102 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x); | |
| 103 | + | |
| 74 | 104 | struct TopLevel * cJSON_ParseTopLevel(const char * s); |
| 75 | 105 | struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j); |
| 76 | 106 | cJSON * cJSON_CreateTopLevel(const struct TopLevel * x); |
Mschema-cplusplusdefault / quicktype.hpp+97 −0
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | |
| 9 | 9 | #pragma once |
| 10 | 10 | |
| 11 | +#include <optional> | |
| 11 | 12 | #include <variant> |
| 12 | 13 | #include "json.hpp" |
| 13 | 14 | |
| @@ -92,6 +93,36 @@ namespace quicktype { | ||
| 92 | 93 | |
| 93 | 94 | using ComplexUnionArrayElement = std::variant<std::string, ComplexUnionArrayEnum, int64_t>; |
| 94 | 95 | |
| 96 | + class LocalDate { | |
| 97 | + public: | |
| 98 | + LocalDate() = default; | |
| 99 | + virtual ~LocalDate() = default; | |
| 100 | + | |
| 101 | + private: | |
| 102 | + | |
| 103 | + public: | |
| 104 | + }; | |
| 105 | + | |
| 106 | + class OffsetDateTime { | |
| 107 | + public: | |
| 108 | + OffsetDateTime() = default; | |
| 109 | + virtual ~OffsetDateTime() = default; | |
| 110 | + | |
| 111 | + private: | |
| 112 | + | |
| 113 | + public: | |
| 114 | + }; | |
| 115 | + | |
| 116 | + class OffsetTime { | |
| 117 | + public: | |
| 118 | + OffsetTime() = default; | |
| 119 | + virtual ~OffsetTime() = default; | |
| 120 | + | |
| 121 | + private: | |
| 122 | + | |
| 123 | + public: | |
| 124 | + }; | |
| 125 | + | |
| 95 | 126 | class TopLevel { |
| 96 | 127 | public: |
| 97 | 128 | TopLevel() = default; |
| @@ -101,6 +132,9 @@ namespace quicktype { | ||
| 101 | 132 | std::vector<ComplexUnionArrayElement> complex_union_array; |
| 102 | 133 | std::string date; |
| 103 | 134 | std::string date_time; |
| 135 | + std::optional<LocalDate> local_date_class; | |
| 136 | + std::optional<OffsetDateTime> offset_date_time_class; | |
| 137 | + std::optional<OffsetTime> offset_time_class; | |
| 104 | 138 | std::string time; |
| 105 | 139 | std::vector<std::string> union_array; |
| 106 | 140 | |
| @@ -117,6 +151,18 @@ namespace quicktype { | ||
| 117 | 151 | std::string & get_mutable_date_time() { return date_time; } |
| 118 | 152 | void set_date_time(const std::string & value) { this->date_time = value; } |
| 119 | 153 | |
| 154 | + const std::optional<LocalDate> & get_local_date_class() const { return local_date_class; } | |
| 155 | + std::optional<LocalDate> & get_mutable_local_date_class() { return local_date_class; } | |
| 156 | + void set_local_date_class(const std::optional<LocalDate> & value) { this->local_date_class = value; } | |
| 157 | + | |
| 158 | + const std::optional<OffsetDateTime> & get_offset_date_time_class() const { return offset_date_time_class; } | |
| 159 | + std::optional<OffsetDateTime> & get_mutable_offset_date_time_class() { return offset_date_time_class; } | |
| 160 | + void set_offset_date_time_class(const std::optional<OffsetDateTime> & value) { this->offset_date_time_class = value; } | |
| 161 | + | |
| 162 | + const std::optional<OffsetTime> & get_offset_time_class() const { return offset_time_class; } | |
| 163 | + std::optional<OffsetTime> & get_mutable_offset_time_class() { return offset_time_class; } | |
| 164 | + void set_offset_time_class(const std::optional<OffsetTime> & value) { this->offset_time_class = value; } | |
| 165 | + | |
| 120 | 166 | const std::string & get_time() const { return time; } |
| 121 | 167 | std::string & get_mutable_time() { return time; } |
| 122 | 168 | void set_time(const std::string & value) { this->time = value; } |
| @@ -128,6 +174,15 @@ namespace quicktype { | ||
| 128 | 174 | } |
| 129 | 175 | |
| 130 | 176 | namespace quicktype { |
| 177 | +void from_json(const json & j, LocalDate & x); | |
| 178 | +void to_json(json & j, const LocalDate & x); | |
| 179 | + | |
| 180 | +void from_json(const json & j, OffsetDateTime & x); | |
| 181 | +void to_json(json & j, const OffsetDateTime & x); | |
| 182 | + | |
| 183 | +void from_json(const json & j, OffsetTime & x); | |
| 184 | +void to_json(json & j, const OffsetTime & x); | |
| 185 | + | |
| 131 | 186 | void from_json(const json & j, TopLevel & x); |
| 132 | 187 | void to_json(json & j, const TopLevel & x); |
| 133 | 188 | |
| @@ -142,12 +197,51 @@ struct adl_serializer<std::variant<std::string, quicktype::ComplexUnionArrayEnum | ||
| 142 | 197 | }; |
| 143 | 198 | } |
| 144 | 199 | namespace quicktype { |
| 200 | + inline void from_json(const json & j, LocalDate& x) { | |
| 201 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 202 | + (void)j; | |
| 203 | + (void)x; | |
| 204 | + } | |
| 205 | + | |
| 206 | + inline void to_json(json & j, const LocalDate & x) { | |
| 207 | + j = json::object(); | |
| 208 | + (void)x; | |
| 209 | + } | |
| 210 | + | |
| 211 | + inline void from_json(const json & j, OffsetDateTime& x) { | |
| 212 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 213 | + (void)j; | |
| 214 | + (void)x; | |
| 215 | + } | |
| 216 | + | |
| 217 | + inline void to_json(json & j, const OffsetDateTime & x) { | |
| 218 | + j = json::object(); | |
| 219 | + (void)x; | |
| 220 | + } | |
| 221 | + | |
| 222 | + inline void from_json(const json & j, OffsetTime& x) { | |
| 223 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 224 | + (void)j; | |
| 225 | + (void)x; | |
| 226 | + } | |
| 227 | + | |
| 228 | + inline void to_json(json & j, const OffsetTime & x) { | |
| 229 | + j = json::object(); | |
| 230 | + (void)x; | |
| 231 | + } | |
| 232 | + | |
| 145 | 233 | inline void from_json(const json & j, TopLevel& x) { |
| 146 | 234 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 147 | 235 | x.set_complex_union_array(j.at("complex-union-array").get<std::vector<ComplexUnionArrayElement>>()); |
| 148 | 236 | x.set_date(j.at("date").get<std::string>()); |
| 149 | 237 | if (j.find("date-time") != j.end() && !std::regex_match(j.at("date-time").get<std::string>(), std::regex("^[0-9]{4}-[0-9]{2}-[0-9]{2}T.*$"))) throw std::runtime_error("Expected date-time"); |
| 150 | 238 | x.set_date_time(j.at("date-time").get<std::string>()); |
| 239 | + if (j.find("local-date-class") != j.end() && j.at("local-date-class").is_null()) throw std::runtime_error("Unexpected null"); | |
| 240 | + x.set_local_date_class(get_stack_optional<LocalDate>(j, "local-date-class")); | |
| 241 | + if (j.find("offset-date-time-class") != j.end() && j.at("offset-date-time-class").is_null()) throw std::runtime_error("Unexpected null"); | |
| 242 | + x.set_offset_date_time_class(get_stack_optional<OffsetDateTime>(j, "offset-date-time-class")); | |
| 243 | + if (j.find("offset-time-class") != j.end() && j.at("offset-time-class").is_null()) throw std::runtime_error("Unexpected null"); | |
| 244 | + x.set_offset_time_class(get_stack_optional<OffsetTime>(j, "offset-time-class")); | |
| 151 | 245 | x.set_time(j.at("time").get<std::string>()); |
| 152 | 246 | x.set_union_array(j.at("union-array").get<std::vector<std::string>>()); |
| 153 | 247 | } |
| @@ -157,6 +251,9 @@ namespace quicktype { | ||
| 157 | 251 | j["complex-union-array"] = x.get_complex_union_array(); |
| 158 | 252 | j["date"] = x.get_date(); |
| 159 | 253 | j["date-time"] = x.get_date_time(); |
| 254 | + j["local-date-class"] = x.get_local_date_class(); | |
| 255 | + j["offset-date-time-class"] = x.get_offset_date_time_class(); | |
| 256 | + j["offset-time-class"] = x.get_offset_time_class(); | |
| 160 | 257 | j["time"] = x.get_time(); |
| 161 | 258 | j["union-array"] = x.get_union_array(); |
| 162 | 259 | } |
Mschema-crystaldefault / TopLevel.cr+24 −0
| @@ -11,10 +11,34 @@ class TopLevel | ||
| 11 | 11 | @[JSON::Field(key: "date-time")] |
| 12 | 12 | property date_time : String |
| 13 | 13 | |
| 14 | + @[JSON::Field(key: "local-date-class")] | |
| 15 | + property local_date_class : LocalDate? | |
| 16 | + | |
| 17 | + @[JSON::Field(key: "offset-date-time-class")] | |
| 18 | + property offset_date_time_class : OffsetDateTime? | |
| 19 | + | |
| 20 | + @[JSON::Field(key: "offset-time-class")] | |
| 21 | + property offset_time_class : OffsetTime? | |
| 22 | + | |
| 14 | 23 | property time : String |
| 15 | 24 | |
| 16 | 25 | @[JSON::Field(key: "union-array")] |
| 17 | 26 | property union_array : Array(String) |
| 18 | 27 | end |
| 19 | 28 | |
| 29 | +class LocalDate | |
| 30 | + include JSON::Serializable | |
| 31 | + | |
| 32 | +end | |
| 33 | + | |
| 34 | +class OffsetDateTime | |
| 35 | + include JSON::Serializable | |
| 36 | + | |
| 37 | +end | |
| 38 | + | |
| 39 | +class OffsetTime | |
| 40 | + include JSON::Serializable | |
| 41 | + | |
| 42 | +end | |
| 43 | + | |
| 20 | 44 | alias ComplexUnionArray = Int64 | String |
Mschema-csharp-recordsdefault / QuickType.cs+21 −0
| @@ -34,6 +34,15 @@ namespace QuickType | ||
| 34 | 34 | [JsonProperty("date-time", Required = Required.Always)] |
| 35 | 35 | public DateTimeOffset DateTime { get; set; } |
| 36 | 36 | |
| 37 | + [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 38 | + public LocalDate? LocalDateClass { get; set; } | |
| 39 | + | |
| 40 | + [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 41 | + public OffsetDateTime? OffsetDateTimeClass { get; set; } | |
| 42 | + | |
| 43 | + [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 44 | + public OffsetTime? OffsetTimeClass { get; set; } | |
| 45 | + | |
| 37 | 46 | [JsonProperty("time", Required = Required.Always)] |
| 38 | 47 | public DateTimeOffset Time { get; set; } |
| 39 | 48 | |
| @@ -41,6 +50,18 @@ namespace QuickType | ||
| 41 | 50 | public DateTimeOffset[] UnionArray { get; set; } |
| 42 | 51 | } |
| 43 | 52 | |
| 53 | + public partial record LocalDate | |
| 54 | + { | |
| 55 | + } | |
| 56 | + | |
| 57 | + public partial record OffsetDateTime | |
| 58 | + { | |
| 59 | + } | |
| 60 | + | |
| 61 | + public partial record OffsetTime | |
| 62 | + { | |
| 63 | + } | |
| 64 | + | |
| 44 | 65 | public enum ComplexUnionArrayEnum { Foo, Bar }; |
| 45 | 66 | |
| 46 | 67 | public partial struct ComplexUnionArrayElement |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+24 −0
| @@ -34,6 +34,18 @@ namespace QuickType | ||
| 34 | 34 | [JsonPropertyName("date-time")] |
| 35 | 35 | public DateTimeOffset DateTime { get; set; } |
| 36 | 36 | |
| 37 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 38 | + [JsonPropertyName("local-date-class")] | |
| 39 | + public LocalDate? LocalDateClass { get; set; } | |
| 40 | + | |
| 41 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 42 | + [JsonPropertyName("offset-date-time-class")] | |
| 43 | + public OffsetDateTime? OffsetDateTimeClass { get; set; } | |
| 44 | + | |
| 45 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 46 | + [JsonPropertyName("offset-time-class")] | |
| 47 | + public OffsetTime? OffsetTimeClass { get; set; } | |
| 48 | + | |
| 37 | 49 | [JsonRequired] |
| 38 | 50 | [JsonPropertyName("time")] |
| 39 | 51 | public DateTimeOffset Time { get; set; } |
| @@ -43,6 +55,18 @@ namespace QuickType | ||
| 43 | 55 | public DateTimeOffset[] UnionArray { get; set; } |
| 44 | 56 | } |
| 45 | 57 | |
| 58 | + public partial class LocalDate | |
| 59 | + { | |
| 60 | + } | |
| 61 | + | |
| 62 | + public partial class OffsetDateTime | |
| 63 | + { | |
| 64 | + } | |
| 65 | + | |
| 66 | + public partial class OffsetTime | |
| 67 | + { | |
| 68 | + } | |
| 69 | + | |
| 46 | 70 | public enum ComplexUnionArrayEnum { Foo, Bar }; |
| 47 | 71 | |
| 48 | 72 | public partial struct ComplexUnionArrayElement |
Mschema-csharpdefault / QuickType.cs+21 −0
| @@ -34,6 +34,15 @@ namespace QuickType | ||
| 34 | 34 | [JsonProperty("date-time", Required = Required.Always)] |
| 35 | 35 | public DateTimeOffset DateTime { get; set; } |
| 36 | 36 | |
| 37 | + [JsonProperty("local-date-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 38 | + public LocalDate? LocalDateClass { get; set; } | |
| 39 | + | |
| 40 | + [JsonProperty("offset-date-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 41 | + public OffsetDateTime? OffsetDateTimeClass { get; set; } | |
| 42 | + | |
| 43 | + [JsonProperty("offset-time-class", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 44 | + public OffsetTime? OffsetTimeClass { get; set; } | |
| 45 | + | |
| 37 | 46 | [JsonProperty("time", Required = Required.Always)] |
| 38 | 47 | public DateTimeOffset Time { get; set; } |
| 39 | 48 | |
| @@ -41,6 +50,18 @@ namespace QuickType | ||
| 41 | 50 | public DateTimeOffset[] UnionArray { get; set; } |
| 42 | 51 | } |
| 43 | 52 | |
| 53 | + public partial class LocalDate | |
| 54 | + { | |
| 55 | + } | |
| 56 | + | |
| 57 | + public partial class OffsetDateTime | |
| 58 | + { | |
| 59 | + } | |
| 60 | + | |
| 61 | + public partial class OffsetTime | |
| 62 | + { | |
| 63 | + } | |
| 64 | + | |
| 44 | 65 | public enum ComplexUnionArrayEnum { Foo, Bar }; |
| 45 | 66 | |
| 46 | 67 | public partial struct ComplexUnionArrayElement |
Mschema-dartdefault / TopLevel.dart+42 −0
| @@ -12,6 +12,9 @@ class TopLevel { | ||
| 12 | 12 | final List<dynamic> complexUnionArray; |
| 13 | 13 | final DateTime date; |
| 14 | 14 | final DateTime dateTime; |
| 15 | + final LocalDate? localDateClass; | |
| 16 | + final OffsetDateTime? offsetDateTimeClass; | |
| 17 | + final OffsetTime? offsetTimeClass; | |
| 15 | 18 | final String time; |
| 16 | 19 | final List<String> unionArray; |
| 17 | 20 | |
| @@ -19,6 +22,9 @@ class TopLevel { | ||
| 19 | 22 | required this.complexUnionArray, |
| 20 | 23 | required this.date, |
| 21 | 24 | required this.dateTime, |
| 25 | + this.localDateClass, | |
| 26 | + this.offsetDateTimeClass, | |
| 27 | + this.offsetTimeClass, | |
| 22 | 28 | required this.time, |
| 23 | 29 | required this.unionArray, |
| 24 | 30 | }); |
| @@ -27,6 +33,9 @@ class TopLevel { | ||
| 27 | 33 | complexUnionArray: List<dynamic>.from(json["complex-union-array"].map((x) => x)), |
| 28 | 34 | date: DateTime.parse(json["date"]), |
| 29 | 35 | dateTime: DateTime.parse(json["date-time"]), |
| 36 | + localDateClass: json["local-date-class"] == null ? null : LocalDate.fromJson(json["local-date-class"]), | |
| 37 | + offsetDateTimeClass: json["offset-date-time-class"] == null ? null : OffsetDateTime.fromJson(json["offset-date-time-class"]), | |
| 38 | + offsetTimeClass: json["offset-time-class"] == null ? null : OffsetTime.fromJson(json["offset-time-class"]), | |
| 30 | 39 | time: json["time"], |
| 31 | 40 | unionArray: List<String>.from(json["union-array"].map((x) => x)), |
| 32 | 41 | ); |
| @@ -35,6 +44,9 @@ class TopLevel { | ||
| 35 | 44 | "complex-union-array": List<dynamic>.from(complexUnionArray.map((x) => x)), |
| 36 | 45 | "date": "${date.year.toString().padLeft(4, '0')}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}", |
| 37 | 46 | "date-time": dateTime.toIso8601String(), |
| 47 | + "local-date-class": localDateClass?.toJson(), | |
| 48 | + "offset-date-time-class": offsetDateTimeClass?.toJson(), | |
| 49 | + "offset-time-class": offsetTimeClass?.toJson(), | |
| 38 | 50 | "time": time, |
| 39 | 51 | "union-array": List<dynamic>.from(unionArray.map((x) => x)), |
| 40 | 52 | }; |
| @@ -50,6 +62,36 @@ final complexUnionArrayEnumValues = EnumValues({ | ||
| 50 | 62 | "bar": ComplexUnionArrayEnum.BAR |
| 51 | 63 | }); |
| 52 | 64 | |
| 65 | +class LocalDate { | |
| 66 | + LocalDate(); | |
| 67 | + | |
| 68 | + factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate( | |
| 69 | + ); | |
| 70 | + | |
| 71 | + Map<String, dynamic> toJson() => { | |
| 72 | + }; | |
| 73 | +} | |
| 74 | + | |
| 75 | +class OffsetDateTime { | |
| 76 | + OffsetDateTime(); | |
| 77 | + | |
| 78 | + factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime( | |
| 79 | + ); | |
| 80 | + | |
| 81 | + Map<String, dynamic> toJson() => { | |
| 82 | + }; | |
| 83 | +} | |
| 84 | + | |
| 85 | +class OffsetTime { | |
| 86 | + OffsetTime(); | |
| 87 | + | |
| 88 | + factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime( | |
| 89 | + ); | |
| 90 | + | |
| 91 | + Map<String, dynamic> toJson() => { | |
| 92 | + }; | |
| 93 | +} | |
| 94 | + | |
| 53 | 95 | class EnumValues<T> { |
| 54 | 96 | Map<String, T> map; |
| 55 | 97 | late Map<T, String> reverseMap; |
Mschema-elixirdefault / QuickType.ex+97 −1
| @@ -5,14 +5,104 @@ | ||
| 5 | 5 | # Decode a JSON string: TopLevel.from_json(data) |
| 6 | 6 | # Encode into a JSON string: TopLevel.to_json(struct) |
| 7 | 7 | |
| 8 | +defmodule LocalDate do | |
| 9 | + defstruct [] | |
| 10 | + | |
| 11 | + @type t :: %__MODULE__{ | |
| 12 | + } | |
| 13 | + | |
| 14 | + def from_map(m) when is_map(m) do | |
| 15 | + %LocalDate{ | |
| 16 | + } | |
| 17 | + end | |
| 18 | + | |
| 19 | + def from_json(json) do | |
| 20 | + json | |
| 21 | + |> Jason.decode!() | |
| 22 | + |> from_map() | |
| 23 | + end | |
| 24 | + | |
| 25 | + def to_map(_struct) do | |
| 26 | + %{ | |
| 27 | + } | |
| 28 | + end | |
| 29 | + | |
| 30 | + def to_json(struct) do | |
| 31 | + struct | |
| 32 | + |> to_map() | |
| 33 | + |> Jason.encode!() | |
| 34 | + end | |
| 35 | +end | |
| 36 | + | |
| 37 | +defmodule OffsetDateTime do | |
| 38 | + defstruct [] | |
| 39 | + | |
| 40 | + @type t :: %__MODULE__{ | |
| 41 | + } | |
| 42 | + | |
| 43 | + def from_map(m) when is_map(m) do | |
| 44 | + %OffsetDateTime{ | |
| 45 | + } | |
| 46 | + end | |
| 47 | + | |
| 48 | + def from_json(json) do | |
| 49 | + json | |
| 50 | + |> Jason.decode!() | |
| 51 | + |> from_map() | |
| 52 | + end | |
| 53 | + | |
| 54 | + def to_map(_struct) do | |
| 55 | + %{ | |
| 56 | + } | |
| 57 | + end | |
| 58 | + | |
| 59 | + def to_json(struct) do | |
| 60 | + struct | |
| 61 | + |> to_map() | |
| 62 | + |> Jason.encode!() | |
| 63 | + end | |
| 64 | +end | |
| 65 | + | |
| 66 | +defmodule OffsetTime do | |
| 67 | + defstruct [] | |
| 68 | + | |
| 69 | + @type t :: %__MODULE__{ | |
| 70 | + } | |
| 71 | + | |
| 72 | + def from_map(m) when is_map(m) do | |
| 73 | + %OffsetTime{ | |
| 74 | + } | |
| 75 | + end | |
| 76 | + | |
| 77 | + def from_json(json) do | |
| 78 | + json | |
| 79 | + |> Jason.decode!() | |
| 80 | + |> from_map() | |
| 81 | + end | |
| 82 | + | |
| 83 | + def to_map(_struct) do | |
| 84 | + %{ | |
| 85 | + } | |
| 86 | + end | |
| 87 | + | |
| 88 | + def to_json(struct) do | |
| 89 | + struct | |
| 90 | + |> to_map() | |
| 91 | + |> Jason.encode!() | |
| 92 | + end | |
| 93 | +end | |
| 94 | + | |
| 8 | 95 | defmodule TopLevel do |
| 9 | 96 | @enforce_keys [:complex_union_array, :date, :date_time, :time, :union_array] |
| 10 | - defstruct [:complex_union_array, :date, :date_time, :time, :union_array] | |
| 97 | + defstruct [:complex_union_array, :date, :date_time, :local_date_class, :offset_date_time_class, :offset_time_class, :time, :union_array] | |
| 11 | 98 | |
| 12 | 99 | @type t :: %__MODULE__{ |
| 13 | 100 | complex_union_array: [integer() | String.t()], |
| 14 | 101 | date: String.t(), |
| 15 | 102 | date_time: String.t(), |
| 103 | + local_date_class: LocalDate.t() | nil, | |
| 104 | + offset_date_time_class: OffsetDateTime.t() | nil, | |
| 105 | + offset_time_class: OffsetTime.t() | nil, | |
| 16 | 106 | time: String.t(), |
| 17 | 107 | union_array: [String.t()] |
| 18 | 108 | } |
| @@ -60,6 +150,9 @@ defmodule TopLevel do | ||
| 60 | 150 | complex_union_array: Enum.map(m["complex-union-array"], &decode_complex_union_array_element/1), |
| 61 | 151 | date: decode_date(m["date"]), |
| 62 | 152 | date_time: decode_date_time(m["date-time"]), |
| 153 | + local_date_class: m["local-date-class"] && LocalDate.from_map(m["local-date-class"]), | |
| 154 | + offset_date_time_class: m["offset-date-time-class"] && OffsetDateTime.from_map(m["offset-date-time-class"]), | |
| 155 | + offset_time_class: m["offset-time-class"] && OffsetTime.from_map(m["offset-time-class"]), | |
| 63 | 156 | time: decode_time(m["time"]), |
| 64 | 157 | union_array: decode_union_array(m["union-array"]), |
| 65 | 158 | } |
| @@ -76,6 +169,9 @@ defmodule TopLevel do | ||
| 76 | 169 | "complex-union-array" => struct.complex_union_array && Enum.map(struct.complex_union_array, &encode_complex_union_array_element/1), |
| 77 | 170 | "date" => struct.date, |
| 78 | 171 | "date-time" => struct.date_time, |
| 172 | + "local-date-class" => struct.local_date_class && LocalDate.to_map(struct.local_date_class), | |
| 173 | + "offset-date-time-class" => struct.offset_date_time_class && OffsetDateTime.to_map(struct.offset_date_time_class), | |
| 174 | + "offset-time-class" => struct.offset_time_class && OffsetTime.to_map(struct.offset_time_class), | |
| 79 | 175 | "time" => struct.time, |
| 80 | 176 | "union-array" => struct.union_array, |
| 81 | 177 | } |
Mschema-elmdefault / QuickType.elm+54 −0
| @@ -15,6 +15,9 @@ module QuickType exposing | ||
| 15 | 15 | ( QuickType |
| 16 | 16 | , quickTypeToString |
| 17 | 17 | , quickType |
| 18 | + , LocalDate | |
| 19 | + , OffsetDateTime | |
| 20 | + , OffsetTime | |
| 18 | 21 | , ComplexUnionArray(..) |
| 19 | 22 | ) |
| 20 | 23 | |
| @@ -27,6 +30,9 @@ type alias QuickType = | ||
| 27 | 30 | { complexUnionArray : List ComplexUnionArray |
| 28 | 31 | , date : String |
| 29 | 32 | , dateTime : String |
| 33 | + , localDateClass : Maybe LocalDate | |
| 34 | + , offsetDateTimeClass : Maybe OffsetDateTime | |
| 35 | + , offsetTimeClass : Maybe OffsetTime | |
| 30 | 36 | , time : String |
| 31 | 37 | , unionArray : List String |
| 32 | 38 | } |
| @@ -35,6 +41,18 @@ type ComplexUnionArray | ||
| 35 | 41 | = IntegerInComplexUnionArray Int |
| 36 | 42 | | StringInComplexUnionArray String |
| 37 | 43 | |
| 44 | +type alias LocalDate = | |
| 45 | + { | |
| 46 | + } | |
| 47 | + | |
| 48 | +type alias OffsetDateTime = | |
| 49 | + { | |
| 50 | + } | |
| 51 | + | |
| 52 | +type alias OffsetTime = | |
| 53 | + { | |
| 54 | + } | |
| 55 | + | |
| 38 | 56 | -- decoders and encoders |
| 39 | 57 | optionalField key decoder fallback = |
| 40 | 58 | Jdec.dict Jdec.value |
| @@ -52,6 +70,9 @@ quickType = | ||
| 52 | 70 | |> Jpipe.required "complex-union-array" (Jdec.list complexUnionArray ) |
| 53 | 71 | |> Jpipe.required "date" Jdec.string |
| 54 | 72 | |> Jpipe.required "date-time" Jdec.string |
| 73 | + |> Jpipe.custom (optionalField "local-date-class" (Jdec.map Just localDate) Nothing) | |
| 74 | + |> Jpipe.custom (optionalField "offset-date-time-class" (Jdec.map Just offsetDateTime) Nothing) | |
| 75 | + |> Jpipe.custom (optionalField "offset-time-class" (Jdec.map Just offsetTime) Nothing) | |
| 55 | 76 | |> Jpipe.required "time" Jdec.string |
| 56 | 77 | |> Jpipe.required "union-array" (Jdec.list Jdec.string ) |
| 57 | 78 | |
| @@ -61,6 +82,9 @@ encodeQuickType x = | ||
| 61 | 82 | [ ("complex-union-array", Jenc.list encodeComplexUnionArray x.complexUnionArray) |
| 62 | 83 | , ("date", Jenc.string x.date) |
| 63 | 84 | , ("date-time", Jenc.string x.dateTime) |
| 85 | + , ("local-date-class", makeNullableEncoder encodeLocalDate x.localDateClass) | |
| 86 | + , ("offset-date-time-class", makeNullableEncoder encodeOffsetDateTime x.offsetDateTimeClass) | |
| 87 | + , ("offset-time-class", makeNullableEncoder encodeOffsetTime x.offsetTimeClass) | |
| 64 | 88 | , ("time", Jenc.string x.time) |
| 65 | 89 | , ("union-array", Jenc.list Jenc.string x.unionArray) |
| 66 | 90 | ] |
| @@ -77,6 +101,36 @@ encodeComplexUnionArray x = case x of | ||
| 77 | 101 | IntegerInComplexUnionArray y -> Jenc.int y |
| 78 | 102 | StringInComplexUnionArray y -> Jenc.string y |
| 79 | 103 | |
| 104 | +localDate : Jdec.Decoder LocalDate | |
| 105 | +localDate = | |
| 106 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate) | |
| 107 | + | |
| 108 | +encodeLocalDate : LocalDate -> Jenc.Value | |
| 109 | +encodeLocalDate x = | |
| 110 | + Jenc.object | |
| 111 | + [ | |
| 112 | + ] | |
| 113 | + | |
| 114 | +offsetDateTime : Jdec.Decoder OffsetDateTime | |
| 115 | +offsetDateTime = | |
| 116 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime) | |
| 117 | + | |
| 118 | +encodeOffsetDateTime : OffsetDateTime -> Jenc.Value | |
| 119 | +encodeOffsetDateTime x = | |
| 120 | + Jenc.object | |
| 121 | + [ | |
| 122 | + ] | |
| 123 | + | |
| 124 | +offsetTime : Jdec.Decoder OffsetTime | |
| 125 | +offsetTime = | |
| 126 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime) | |
| 127 | + | |
| 128 | +encodeOffsetTime : OffsetTime -> Jenc.Value | |
| 129 | +encodeOffsetTime x = | |
| 130 | + Jenc.object | |
| 131 | + [ | |
| 132 | + ] | |
| 133 | + | |
| 80 | 134 | --- encoder helpers |
| 81 | 135 | |
| 82 | 136 | makeNullableEncoder : (a -> Jenc.Value) -> Maybe a -> Jenc.Value |
Mschema-flowdefault / TopLevel.js+26 −5
| @@ -10,11 +10,14 @@ | ||
| 10 | 10 | // match the expected interface, even if the JSON is valid. |
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | - "complex-union-array": ComplexUnionArrayElement[]; | |
| 14 | - date: Date; | |
| 15 | - "date-time": Date; | |
| 16 | - time: string; | |
| 17 | - "union-array": string[]; | |
| 13 | + "complex-union-array": ComplexUnionArrayElement[]; | |
| 14 | + date: Date; | |
| 15 | + "date-time": Date; | |
| 16 | + "local-date-class"?: LocalDate; | |
| 17 | + "offset-date-time-class"?: OffsetDateTime; | |
| 18 | + "offset-time-class"?: OffsetTime; | |
| 19 | + time: string; | |
| 20 | + "union-array": string[]; | |
| 18 | 21 | }; |
| 19 | 22 | |
| 20 | 23 | export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number; |
| @@ -23,6 +26,15 @@ export type ComplexUnionArrayEnum = | ||
| 23 | 26 | "foo" |
| 24 | 27 | | "bar"; |
| 25 | 28 | |
| 29 | +export type LocalDate = { | |
| 30 | +}; | |
| 31 | + | |
| 32 | +export type OffsetDateTime = { | |
| 33 | +}; | |
| 34 | + | |
| 35 | +export type OffsetTime = { | |
| 36 | +}; | |
| 37 | + | |
| 26 | 38 | // Converts JSON strings to/from your types |
| 27 | 39 | // and asserts the results of JSON.parse at runtime |
| 28 | 40 | function toTopLevel(json: string): TopLevel { |
| @@ -212,9 +224,18 @@ const typeMap: any = { | ||
| 212 | 224 | { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) }, |
| 213 | 225 | { json: "date", js: "date", typ: Date }, |
| 214 | 226 | { json: "date-time", js: "date-time", typ: Date }, |
| 227 | + { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) }, | |
| 228 | + { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) }, | |
| 229 | + { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) }, | |
| 215 | 230 | { json: "time", js: "time", typ: "" }, |
| 216 | 231 | { json: "union-array", js: "union-array", typ: a("") }, |
| 217 | 232 | ], false), |
| 233 | + "LocalDate": o([ | |
| 234 | + ], false), | |
| 235 | + "OffsetDateTime": o([ | |
| 236 | + ], false), | |
| 237 | + "OffsetTime": o([ | |
| 238 | + ], false), | |
| 218 | 239 | "ComplexUnionArrayEnum": [ |
| 219 | 240 | "foo", |
| 220 | 241 | "bar", |
Aschema-golang-leading-commentsdefault / multi / LocalDate.go+4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +type LocalDate struct { | |
| 4 | +} |
Aschema-golang-leading-commentsdefault / multi / OffsetDateTime.go+4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +type OffsetDateTime struct { | |
| 4 | +} |
Aschema-golang-leading-commentsdefault / multi / OffsetTime.go+4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +type OffsetTime struct { | |
| 4 | +} |
Mschema-golang-leading-commentsdefault / multi / TopLevel.go+8 −5
| @@ -14,9 +14,12 @@ func (r *TopLevel) Marshal() ([]byte, error) { | ||
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | type TopLevel struct { |
| 17 | - ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 18 | - Date string `json:"date"` | |
| 19 | - DateTime time.Time `json:"date-time"` | |
| 20 | - Time string `json:"time"` | |
| 21 | - UnionArray []string `json:"union-array"` | |
| 17 | + ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 18 | + Date string `json:"date"` | |
| 19 | + DateTime time.Time `json:"date-time"` | |
| 20 | + LocalDateClass *LocalDate `json:"local-date-class,omitempty"` | |
| 21 | + OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"` | |
| 22 | + OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"` | |
| 23 | + Time string `json:"time"` | |
| 24 | + UnionArray []string `json:"union-array"` | |
| 22 | 25 | } |
Mschema-golang-leading-commentsdefault / quicktype.go+17 −5
| @@ -17,11 +17,23 @@ func (r *TopLevel) Marshal() ([]byte, error) { | ||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | type TopLevel struct { |
| 20 | - ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 21 | - Date string `json:"date"` | |
| 22 | - DateTime time.Time `json:"date-time"` | |
| 23 | - Time string `json:"time"` | |
| 24 | - UnionArray []string `json:"union-array"` | |
| 20 | + ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 21 | + Date string `json:"date"` | |
| 22 | + DateTime time.Time `json:"date-time"` | |
| 23 | + LocalDateClass *LocalDate `json:"local-date-class,omitempty"` | |
| 24 | + OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"` | |
| 25 | + OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"` | |
| 26 | + Time string `json:"time"` | |
| 27 | + UnionArray []string `json:"union-array"` | |
| 28 | +} | |
| 29 | + | |
| 30 | +type LocalDate struct { | |
| 31 | +} | |
| 32 | + | |
| 33 | +type OffsetDateTime struct { | |
| 34 | +} | |
| 35 | + | |
| 36 | +type OffsetTime struct { | |
| 25 | 37 | } |
| 26 | 38 | |
| 27 | 39 | type ComplexUnionArrayEnum string |
Mschema-golangdefault / quicktype.go+17 −5
| @@ -23,11 +23,23 @@ func (r *TopLevel) Marshal() ([]byte, error) { | ||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | type TopLevel struct { |
| 26 | - ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 27 | - Date string `json:"date"` | |
| 28 | - DateTime time.Time `json:"date-time"` | |
| 29 | - Time string `json:"time"` | |
| 30 | - UnionArray []string `json:"union-array"` | |
| 26 | + ComplexUnionArray []ComplexUnionArrayElement `json:"complex-union-array"` | |
| 27 | + Date string `json:"date"` | |
| 28 | + DateTime time.Time `json:"date-time"` | |
| 29 | + LocalDateClass *LocalDate `json:"local-date-class,omitempty"` | |
| 30 | + OffsetDateTimeClass *OffsetDateTime `json:"offset-date-time-class,omitempty"` | |
| 31 | + OffsetTimeClass *OffsetTime `json:"offset-time-class,omitempty"` | |
| 32 | + Time string `json:"time"` | |
| 33 | + UnionArray []string `json:"union-array"` | |
| 34 | +} | |
| 35 | + | |
| 36 | +type LocalDate struct { | |
| 37 | +} | |
| 38 | + | |
| 39 | +type OffsetDateTime struct { | |
| 40 | +} | |
| 41 | + | |
| 42 | +type OffsetTime struct { | |
| 31 | 43 | } |
| 32 | 44 | |
| 33 | 45 | type ComplexUnionArrayEnum string |
Mschema-haskelldefault / QuickType.hs+43 −1
| @@ -3,6 +3,9 @@ | ||
| 3 | 3 | |
| 4 | 4 | module QuickType |
| 5 | 5 | ( QuickType (..) |
| 6 | + , LocalDate (..) | |
| 7 | + , OffsetDateTime (..) | |
| 8 | + , OffsetTime (..) | |
| 6 | 9 | , ComplexUnionArray (..) |
| 7 | 10 | , decodeTopLevel |
| 8 | 11 | ) where |
| @@ -17,6 +20,9 @@ data QuickType = QuickType | ||
| 17 | 20 | { complexUnionArrayQuickType :: [ComplexUnionArray] |
| 18 | 21 | , dateQuickType :: Text |
| 19 | 22 | , dateTimeQuickType :: Text |
| 23 | + , localDateClassQuickType :: Maybe LocalDate | |
| 24 | + , offsetDateTimeClassQuickType :: Maybe OffsetDateTime | |
| 25 | + , offsetTimeClassQuickType :: Maybe OffsetTime | |
| 20 | 26 | , timeQuickType :: Text |
| 21 | 27 | , unionArrayQuickType :: [Text] |
| 22 | 28 | } deriving (Show) |
| @@ -26,15 +32,30 @@ data ComplexUnionArray | ||
| 26 | 32 | | StringInComplexUnionArray Text |
| 27 | 33 | deriving (Show) |
| 28 | 34 | |
| 35 | +data LocalDate = LocalDate | |
| 36 | + { | |
| 37 | + } deriving (Show) | |
| 38 | + | |
| 39 | +data OffsetDateTime = OffsetDateTime | |
| 40 | + { | |
| 41 | + } deriving (Show) | |
| 42 | + | |
| 43 | +data OffsetTime = OffsetTime | |
| 44 | + { | |
| 45 | + } deriving (Show) | |
| 46 | + | |
| 29 | 47 | decodeTopLevel :: ByteString -> Maybe QuickType |
| 30 | 48 | decodeTopLevel = decode |
| 31 | 49 | |
| 32 | 50 | instance ToJSON QuickType where |
| 33 | - toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType timeQuickType unionArrayQuickType) = | |
| 51 | + toJSON (QuickType complexUnionArrayQuickType dateQuickType dateTimeQuickType localDateClassQuickType offsetDateTimeClassQuickType offsetTimeClassQuickType timeQuickType unionArrayQuickType) = | |
| 34 | 52 | object $ foldMap (maybe [] pure) |
| 35 | 53 | [ Just $ "complex-union-array" .= complexUnionArrayQuickType |
| 36 | 54 | , Just $ "date" .= dateQuickType |
| 37 | 55 | , Just $ "date-time" .= dateTimeQuickType |
| 56 | + , ("local-date-class" .=) <$> localDateClassQuickType | |
| 57 | + , ("offset-date-time-class" .=) <$> offsetDateTimeClassQuickType | |
| 58 | + , ("offset-time-class" .=) <$> offsetTimeClassQuickType | |
| 38 | 59 | , Just $ "time" .= timeQuickType |
| 39 | 60 | , Just $ "union-array" .= unionArrayQuickType |
| 40 | 61 | ] |
| @@ -44,6 +65,9 @@ instance FromJSON QuickType where | ||
| 44 | 65 | <$> v .: "complex-union-array" |
| 45 | 66 | <*> v .: "date" |
| 46 | 67 | <*> v .: "date-time" |
| 68 | + <*> v .:! "local-date-class" | |
| 69 | + <*> v .:! "offset-date-time-class" | |
| 70 | + <*> v .:! "offset-time-class" | |
| 47 | 71 | <*> v .: "time" |
| 48 | 72 | <*> v .: "union-array" |
| 49 | 73 | |
| @@ -54,3 +78,21 @@ instance ToJSON ComplexUnionArray where | ||
| 54 | 78 | instance FromJSON ComplexUnionArray where |
| 55 | 79 | parseJSON xs@(Number _) = (fmap IntegerInComplexUnionArray . parseJSON) xs |
| 56 | 80 | parseJSON xs@(String _) = (fmap StringInComplexUnionArray . parseJSON) xs |
| 81 | + | |
| 82 | +instance ToJSON LocalDate where | |
| 83 | + toJSON = \_ -> emptyObject | |
| 84 | + | |
| 85 | +instance FromJSON LocalDate where | |
| 86 | + parseJSON (Object _) = return LocalDate | |
| 87 | + | |
| 88 | +instance ToJSON OffsetDateTime where | |
| 89 | + toJSON = \_ -> emptyObject | |
| 90 | + | |
| 91 | +instance FromJSON OffsetDateTime where | |
| 92 | + parseJSON (Object _) = return OffsetDateTime | |
| 93 | + | |
| 94 | +instance ToJSON OffsetTime where | |
| 95 | + toJSON = \_ -> emptyObject | |
| 96 | + | |
| 97 | +instance FromJSON OffsetTime where | |
| 98 | + parseJSON (Object _) = return OffsetTime |
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClassClass.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 LocalDateClassClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.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 OffsetDateTimeClassClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClassClass.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 OffsetTimeClassClass { | |
| 7 | +} |
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -10,6 +10,9 @@ public class TopLevel { | ||
| 10 | 10 | private List<ComplexUnionArrayElement> complexUnionArray; |
| 11 | 11 | private LocalDate date; |
| 12 | 12 | private OffsetDateTime dateTime; |
| 13 | + private LocalDateClassClass localDateClass; | |
| 14 | + private OffsetDateTimeClassClass offsetDateTimeClass; | |
| 15 | + private OffsetTimeClassClass offsetTimeClass; | |
| 13 | 16 | private OffsetTime time; |
| 14 | 17 | private List<UnionArray> unionArray; |
| 15 | 18 | |
| @@ -29,6 +32,21 @@ public class TopLevel { | ||
| 29 | 32 | @JsonSetter(nulls = Nulls.FAIL) |
| 30 | 33 | public void setDateTime(OffsetDateTime value) { this.dateTime = value; } |
| 31 | 34 | |
| 35 | + @JsonProperty("local-date-class") | |
| 36 | + public LocalDateClassClass getLocalDateClass() { return localDateClass; } | |
| 37 | + @JsonProperty("local-date-class") | |
| 38 | + public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; } | |
| 39 | + | |
| 40 | + @JsonProperty("offset-date-time-class") | |
| 41 | + public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; } | |
| 42 | + @JsonProperty("offset-date-time-class") | |
| 43 | + public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; } | |
| 44 | + | |
| 45 | + @JsonProperty("offset-time-class") | |
| 46 | + public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; } | |
| 47 | + @JsonProperty("offset-time-class") | |
| 48 | + public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; } | |
| 49 | + | |
| 32 | 50 | @JsonProperty("time") |
| 33 | 51 | public OffsetTime getTime() { return time; } |
| 34 | 52 | @JsonProperty("time") |
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClassClass.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 LocalDateClassClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClassClass.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 OffsetDateTimeClassClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClassClass.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 OffsetTimeClassClass { | |
| 7 | +} |
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -10,6 +10,9 @@ public class TopLevel { | ||
| 10 | 10 | private List<ComplexUnionArrayElement> complexUnionArray; |
| 11 | 11 | private LocalDate date; |
| 12 | 12 | private OffsetDateTime dateTime; |
| 13 | + private LocalDateClassClass localDateClass; | |
| 14 | + private OffsetDateTimeClassClass offsetDateTimeClass; | |
| 15 | + private OffsetTimeClassClass offsetTimeClass; | |
| 13 | 16 | private OffsetTime time; |
| 14 | 17 | private List<UnionArray> unionArray; |
| 15 | 18 | |
| @@ -29,6 +32,21 @@ public class TopLevel { | ||
| 29 | 32 | @JsonSetter(nulls = Nulls.FAIL) |
| 30 | 33 | public void setDateTime(OffsetDateTime value) { this.dateTime = value; } |
| 31 | 34 | |
| 35 | + @JsonProperty("local-date-class") | |
| 36 | + public LocalDateClassClass getLocalDateClass() { return localDateClass; } | |
| 37 | + @JsonProperty("local-date-class") | |
| 38 | + public void setLocalDateClass(LocalDateClassClass value) { this.localDateClass = value; } | |
| 39 | + | |
| 40 | + @JsonProperty("offset-date-time-class") | |
| 41 | + public OffsetDateTimeClassClass getOffsetDateTimeClass() { return offsetDateTimeClass; } | |
| 42 | + @JsonProperty("offset-date-time-class") | |
| 43 | + public void setOffsetDateTimeClass(OffsetDateTimeClassClass value) { this.offsetDateTimeClass = value; } | |
| 44 | + | |
| 45 | + @JsonProperty("offset-time-class") | |
| 46 | + public OffsetTimeClassClass getOffsetTimeClass() { return offsetTimeClass; } | |
| 47 | + @JsonProperty("offset-time-class") | |
| 48 | + public void setOffsetTimeClass(OffsetTimeClassClass value) { this.offsetTimeClass = value; } | |
| 49 | + | |
| 32 | 50 | @JsonProperty("time") |
| 33 | 51 | public OffsetTime getTime() { return time; } |
| 34 | 52 | @JsonProperty("time") |
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
| @@ -14,11 +14,23 @@ import PropTypes from "prop-types"; | ||
| 14 | 14 | const Integer = (props, name) => props[name] == null || Number.isInteger(props[name]) ? null : new Error("Expected integer"); |
| 15 | 15 | |
| 16 | 16 | let _TopLevel; |
| 17 | +let _LocalDate; | |
| 18 | +let _OffsetDateTime; | |
| 19 | +let _OffsetTime; | |
| 17 | 20 | const _ComplexUnionArrayEnum = PropTypes.oneOf(['foo', 'bar']); |
| 21 | +_LocalDate = PropTypes.shape({ | |
| 22 | +}); | |
| 23 | +_OffsetDateTime = PropTypes.shape({ | |
| 24 | +}); | |
| 25 | +_OffsetTime = PropTypes.shape({ | |
| 26 | +}); | |
| 18 | 27 | _TopLevel = PropTypes.shape({ |
| 19 | 28 | "complex-union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time"), _ComplexUnionArrayEnum, Integer]))]).isRequired, |
| 20 | 29 | "date": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired, |
| 21 | 30 | "date-time": PropTypes.oneOfType([(props, name) => props[name] == null || typeof props[name] === "string" && !Number.isNaN(Date.parse(props[name])) ? null : new Error("Expected date-time")]).isRequired, |
| 31 | + "local-date-class": PropTypes.oneOfType([_LocalDate, PropTypes.oneOf([null])]), | |
| 32 | + "offset-date-time-class": PropTypes.oneOfType([_OffsetDateTime, PropTypes.oneOf([null])]), | |
| 33 | + "offset-time-class": PropTypes.oneOfType([_OffsetTime, PropTypes.oneOf([null])]), | |
| 22 | 34 | "time": PropTypes.oneOfType([PropTypes.string]).isRequired, |
| 23 | 35 | "union-array": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string)]).isRequired, |
| 24 | 36 | }); |
Mschema-javascriptdefault / TopLevel.js+9 −0
| @@ -196,9 +196,18 @@ const typeMap = { | ||
| 196 | 196 | { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) }, |
| 197 | 197 | { json: "date", js: "date", typ: Date }, |
| 198 | 198 | { json: "date-time", js: "date-time", typ: Date }, |
| 199 | + { json: "local-date-class", js: "local-date-class", typ: u(undefined, r("LocalDate")) }, | |
| 200 | + { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, r("OffsetDateTime")) }, | |
| 201 | + { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, r("OffsetTime")) }, | |
| 199 | 202 | { json: "time", js: "time", typ: "" }, |
| 200 | 203 | { json: "union-array", js: "union-array", typ: a("") }, |
| 201 | 204 | ], false), |
| 205 | + "LocalDate": o([ | |
| 206 | + ], false), | |
| 207 | + "OffsetDateTime": o([ | |
| 208 | + ], false), | |
| 209 | + "OffsetTime": o([ | |
| 210 | + ], false), | |
| 202 | 211 | "ComplexUnionArrayEnum": [ |
| 203 | 212 | "foo", |
| 204 | 213 | "bar", |
Mschema-kotlin-jacksondefault / TopLevel.kt+15 −0
| @@ -50,6 +50,15 @@ data class TopLevel ( | ||
| 50 | 50 | @get:JsonProperty("date-time", required=true)@field:JsonProperty("date-time", required=true) |
| 51 | 51 | val dateTime: OffsetDateTime, |
| 52 | 52 | |
| 53 | + @get:JsonProperty("local-date-class")@field:JsonProperty("local-date-class") | |
| 54 | + val localDateClass: LocalDateClassClass? = null, | |
| 55 | + | |
| 56 | + @get:JsonProperty("offset-date-time-class")@field:JsonProperty("offset-date-time-class") | |
| 57 | + val offsetDateTimeClass: OffsetDateTimeClassClass? = null, | |
| 58 | + | |
| 59 | + @get:JsonProperty("offset-time-class")@field:JsonProperty("offset-time-class") | |
| 60 | + val offsetTimeClass: OffsetTimeClassClass? = null, | |
| 61 | + | |
| 53 | 62 | @get:JsonProperty(required=true)@field:JsonProperty(required=true) |
| 54 | 63 | val time: OffsetTime, |
| 55 | 64 | |
| @@ -96,6 +105,12 @@ enum class ComplexUnionArrayEnum(val value: String) { | ||
| 96 | 105 | } |
| 97 | 106 | } |
| 98 | 107 | |
| 108 | +typealias LocalDateClassClass = ObjectNode | |
| 109 | + | |
| 110 | +typealias OffsetDateTimeClassClass = ObjectNode | |
| 111 | + | |
| 112 | +typealias OffsetTimeClassClass = ObjectNode | |
| 113 | + | |
| 99 | 114 | sealed class UnionArray { |
| 100 | 115 | class DateTimeValue(val value: OffsetDateTime) : UnionArray() |
| 101 | 116 | class DateValue(val value: LocalDate) : UnionArray() |
Mschema-kotlindefault / TopLevel.kt+16 −0
| @@ -22,6 +22,7 @@ private val klaxon = Klaxon() | ||
| 22 | 22 | .convert(OffsetDateTime::class, { OffsetDateTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(it)}\"" }) |
| 23 | 23 | .convert(LocalDate::class, { LocalDate.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_LOCAL_DATE.format(it)}\"" }) |
| 24 | 24 | .convert(OffsetTime::class, { OffsetTime.parse(it.string!!) }, { "\"${java.time.format.DateTimeFormatter.ISO_OFFSET_TIME.format(it)}\"" }) |
| 25 | + .convert(JsonObject::class, { it.obj!! }, { it.toJsonString() }) | |
| 25 | 26 | .convert(ComplexUnionArrayEnum::class, { ComplexUnionArrayEnum.fromValue(it.string!!) }, { Klaxon().toJsonString(it.value) }) |
| 26 | 27 | .convert(ComplexUnionArrayElement::class, { ComplexUnionArrayElement.fromJson(it) }, { it.toJson() }, true) |
| 27 | 28 | .convert(UnionArray::class, { UnionArray.fromJson(it) }, { it.toJson() }, true) |
| @@ -35,6 +36,15 @@ data class TopLevel ( | ||
| 35 | 36 | @Json(name = "date-time") |
| 36 | 37 | val dateTime: OffsetDateTime, |
| 37 | 38 | |
| 39 | + @Json(name = "local-date-class") | |
| 40 | + val localDateClass: LocalDateClassClass? = null, | |
| 41 | + | |
| 42 | + @Json(name = "offset-date-time-class") | |
| 43 | + val offsetDateTimeClass: OffsetDateTimeClassClass? = null, | |
| 44 | + | |
| 45 | + @Json(name = "offset-time-class") | |
| 46 | + val offsetTimeClass: OffsetTimeClassClass? = null, | |
| 47 | + | |
| 38 | 48 | val time: OffsetTime, |
| 39 | 49 | |
| 40 | 50 | @Json(name = "union-array") |
| @@ -80,6 +90,12 @@ enum class ComplexUnionArrayEnum(val value: String) { | ||
| 80 | 90 | } |
| 81 | 91 | } |
| 82 | 92 | |
| 93 | +typealias LocalDateClassClass = JsonObject | |
| 94 | + | |
| 95 | +typealias OffsetDateTimeClassClass = JsonObject | |
| 96 | + | |
| 97 | +typealias OffsetTimeClassClass = JsonObject | |
| 98 | + | |
| 83 | 99 | sealed class UnionArray { |
| 84 | 100 | class DateTimeValue(val value: OffsetDateTime) : UnionArray() |
| 85 | 101 | class DateValue(val value: LocalDate) : UnionArray() |
Mschema-kotlinxdefault / TopLevel.kt+18 −0
| @@ -26,6 +26,15 @@ data class TopLevel ( | ||
| 26 | 26 | @SerialName("date-time") |
| 27 | 27 | val dateTime: OffsetDateTime, |
| 28 | 28 | |
| 29 | + @SerialName("local-date-class") | |
| 30 | + val localDateClass: LocalDateClassClass? = null, | |
| 31 | + | |
| 32 | + @SerialName("offset-date-time-class") | |
| 33 | + val offsetDateTimeClass: OffsetDateTimeClassClass? = null, | |
| 34 | + | |
| 35 | + @SerialName("offset-time-class") | |
| 36 | + val offsetTimeClass: OffsetTimeClassClass? = null, | |
| 37 | + | |
| 29 | 38 | val time: OffsetTime, |
| 30 | 39 | |
| 31 | 40 | @SerialName("union-array") |
| @@ -40,6 +49,15 @@ enum class ComplexUnionArrayEnum(val value: String) { | ||
| 40 | 49 | @SerialName("bar") Bar("bar"); |
| 41 | 50 | } |
| 42 | 51 | |
| 52 | +@Serializable | |
| 53 | +class LocalDateClassClass() | |
| 54 | + | |
| 55 | +@Serializable | |
| 56 | +class OffsetDateTimeClassClass() | |
| 57 | + | |
| 58 | +@Serializable | |
| 59 | +class OffsetTimeClassClass() | |
| 60 | + | |
| 43 | 61 | typealias UnionArray = JsonElement |
| 44 | 62 | |
| 45 | 63 | object OffsetDateTimeSerializer : KSerializer<OffsetDateTime> { |
Mschema-objective-cdefault / QTTopLevel.h+20 −5
| @@ -7,6 +7,9 @@ | ||
| 7 | 7 | |
| 8 | 8 | @class QTTopLevel; |
| 9 | 9 | @class QTComplexUnionArrayEnum; |
| 10 | +@class QTLocalDate; | |
| 11 | +@class QTOffsetDateTime; | |
| 12 | +@class QTOffsetTime; | |
| 10 | 13 | |
| 11 | 14 | NS_ASSUME_NONNULL_BEGIN |
| 12 | 15 | |
| @@ -29,11 +32,14 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 29 | 32 | #pragma mark - Object interfaces |
| 30 | 33 | |
| 31 | 34 | @interface QTTopLevel : NSObject |
| 32 | -@property (nonatomic, copy) NSArray<id> *complexUnionArray; | |
| 33 | -@property (nonatomic, copy) NSString *date; | |
| 34 | -@property (nonatomic, copy) NSString *dateTime; | |
| 35 | -@property (nonatomic, copy) NSString *time; | |
| 36 | -@property (nonatomic, copy) NSArray<NSString *> *unionArray; | |
| 35 | +@property (nonatomic, copy) NSArray<id> *complexUnionArray; | |
| 36 | +@property (nonatomic, copy) NSString *date; | |
| 37 | +@property (nonatomic, copy) NSString *dateTime; | |
| 38 | +@property (nonatomic, nullable, strong) QTLocalDate *localDateClass; | |
| 39 | +@property (nonatomic, nullable, strong) QTOffsetDateTime *offsetDateTimeClass; | |
| 40 | +@property (nonatomic, nullable, strong) QTOffsetTime *offsetTimeClass; | |
| 41 | +@property (nonatomic, copy) NSString *time; | |
| 42 | +@property (nonatomic, copy) NSArray<NSString *> *unionArray; | |
| 37 | 43 | |
| 38 | 44 | + (_Nullable instancetype)fromJSON:(NSString *)json encoding:(NSStringEncoding)encoding error:(NSError *_Nullable *)error; |
| 39 | 45 | + (_Nullable instancetype)fromData:(NSData *)data error:(NSError *_Nullable *)error; |
| @@ -41,4 +47,13 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 41 | 47 | - (NSData *_Nullable)toData:(NSError *_Nullable *)error; |
| 42 | 48 | @end |
| 43 | 49 | |
| 50 | +@interface QTLocalDate : NSObject | |
| 51 | +@end | |
| 52 | + | |
| 53 | +@interface QTOffsetDateTime : NSObject | |
| 54 | +@end | |
| 55 | + | |
| 56 | +@interface QTOffsetTime : NSObject | |
| 57 | +@end | |
| 58 | + | |
| 44 | 59 | NS_ASSUME_NONNULL_END |
Mschema-objective-cdefault / QTTopLevel.m+147 −0
| @@ -13,6 +13,21 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 13 | 13 | - (NSDictionary *)JSONDictionary; |
| 14 | 14 | @end |
| 15 | 15 | |
| 16 | +@interface QTLocalDate (JSONConversion) | |
| 17 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 18 | +- (NSDictionary *)JSONDictionary; | |
| 19 | +@end | |
| 20 | + | |
| 21 | +@interface QTOffsetDateTime (JSONConversion) | |
| 22 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 23 | +- (NSDictionary *)JSONDictionary; | |
| 24 | +@end | |
| 25 | + | |
| 26 | +@interface QTOffsetTime (JSONConversion) | |
| 27 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 28 | +- (NSDictionary *)JSONDictionary; | |
| 29 | +@end | |
| 30 | + | |
| 16 | 31 | @implementation QTComplexUnionArrayEnum |
| 17 | 32 | + (NSDictionary<NSString *, QTComplexUnionArrayEnum *> *)values |
| 18 | 33 | { |
| @@ -96,6 +111,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 96 | 111 | @"complex-union-array": @"complexUnionArray", |
| 97 | 112 | @"date": @"date", |
| 98 | 113 | @"date-time": @"dateTime", |
| 114 | + @"local-date-class": @"localDateClass", | |
| 115 | + @"offset-date-time-class": @"offsetDateTimeClass", | |
| 116 | + @"offset-time-class": @"offsetTimeClass", | |
| 99 | 117 | @"time": @"time", |
| 100 | 118 | @"union-array": @"unionArray", |
| 101 | 119 | }; |
| @@ -126,6 +144,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 126 | 144 | if (![dict[@"time"] isKindOfClass:NSString.class]) return nil; |
| 127 | 145 | if (![dict[@"union-array"] isKindOfClass:NSArray.class]) return nil; |
| 128 | 146 | [self setValuesForKeysWithDictionary:dict]; |
| 147 | + _localDateClass = [QTLocalDate fromJSONDictionary:(id)_localDateClass]; | |
| 148 | + if (!_localDateClass && dict[@"local-date-class"] && ![dict[@"local-date-class"] isKindOfClass:NSNull.class]) return nil; | |
| 149 | + _offsetDateTimeClass = [QTOffsetDateTime fromJSONDictionary:(id)_offsetDateTimeClass]; | |
| 150 | + if (!_offsetDateTimeClass && dict[@"offset-date-time-class"] && ![dict[@"offset-date-time-class"] isKindOfClass:NSNull.class]) return nil; | |
| 151 | + _offsetTimeClass = [QTOffsetTime fromJSONDictionary:(id)_offsetTimeClass]; | |
| 152 | + if (!_offsetTimeClass && dict[@"offset-time-class"] && ![dict[@"offset-time-class"] isKindOfClass:NSNull.class]) return nil; | |
| 129 | 153 | } |
| 130 | 154 | return self; |
| 131 | 155 | } |
| @@ -154,6 +178,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 154 | 178 | } |
| 155 | 179 | } |
| 156 | 180 | |
| 181 | + [dict addEntriesFromDictionary:@{ | |
| 182 | + @"local-date-class": NSNullify([_localDateClass isKindOfClass:NSNull.class] ? nil : [_localDateClass JSONDictionary]), | |
| 183 | + @"offset-date-time-class": NSNullify([_offsetDateTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetDateTimeClass JSONDictionary]), | |
| 184 | + @"offset-time-class": NSNullify([_offsetTimeClass isKindOfClass:NSNull.class] ? nil : [_offsetTimeClass JSONDictionary]), | |
| 185 | + }]; | |
| 186 | + | |
| 157 | 187 | return dict; |
| 158 | 188 | } |
| 159 | 189 | |
| @@ -168,4 +198,121 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 168 | 198 | } |
| 169 | 199 | @end |
| 170 | 200 | |
| 201 | +@implementation QTLocalDate | |
| 202 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 203 | +{ | |
| 204 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 205 | + return properties = properties ? properties : @{ | |
| 206 | + }; | |
| 207 | +} | |
| 208 | + | |
| 209 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 210 | +{ | |
| 211 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil; | |
| 212 | +} | |
| 213 | + | |
| 214 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 215 | +{ | |
| 216 | + if (self = [super init]) { | |
| 217 | + [self setValuesForKeysWithDictionary:dict]; | |
| 218 | + } | |
| 219 | + return self; | |
| 220 | +} | |
| 221 | + | |
| 222 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 223 | +{ | |
| 224 | + id resolved = QTLocalDate.properties[key]; | |
| 225 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 226 | +} | |
| 227 | + | |
| 228 | +- (void)setNilValueForKey:(NSString *)key | |
| 229 | +{ | |
| 230 | + id resolved = QTLocalDate.properties[key]; | |
| 231 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 232 | +} | |
| 233 | + | |
| 234 | +- (NSDictionary *)JSONDictionary | |
| 235 | +{ | |
| 236 | + return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues]; | |
| 237 | +} | |
| 238 | +@end | |
| 239 | + | |
| 240 | +@implementation QTOffsetDateTime | |
| 241 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 242 | +{ | |
| 243 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 244 | + return properties = properties ? properties : @{ | |
| 245 | + }; | |
| 246 | +} | |
| 247 | + | |
| 248 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 249 | +{ | |
| 250 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil; | |
| 251 | +} | |
| 252 | + | |
| 253 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 254 | +{ | |
| 255 | + if (self = [super init]) { | |
| 256 | + [self setValuesForKeysWithDictionary:dict]; | |
| 257 | + } | |
| 258 | + return self; | |
| 259 | +} | |
| 260 | + | |
| 261 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 262 | +{ | |
| 263 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 264 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 265 | +} | |
| 266 | + | |
| 267 | +- (void)setNilValueForKey:(NSString *)key | |
| 268 | +{ | |
| 269 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 270 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 271 | +} | |
| 272 | + | |
| 273 | +- (NSDictionary *)JSONDictionary | |
| 274 | +{ | |
| 275 | + return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues]; | |
| 276 | +} | |
| 277 | +@end | |
| 278 | + | |
| 279 | +@implementation QTOffsetTime | |
| 280 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 281 | +{ | |
| 282 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 283 | + return properties = properties ? properties : @{ | |
| 284 | + }; | |
| 285 | +} | |
| 286 | + | |
| 287 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 288 | +{ | |
| 289 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil; | |
| 290 | +} | |
| 291 | + | |
| 292 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 293 | +{ | |
| 294 | + if (self = [super init]) { | |
| 295 | + [self setValuesForKeysWithDictionary:dict]; | |
| 296 | + } | |
| 297 | + return self; | |
| 298 | +} | |
| 299 | + | |
| 300 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 301 | +{ | |
| 302 | + id resolved = QTOffsetTime.properties[key]; | |
| 303 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 304 | +} | |
| 305 | + | |
| 306 | +- (void)setNilValueForKey:(NSString *)key | |
| 307 | +{ | |
| 308 | + id resolved = QTOffsetTime.properties[key]; | |
| 309 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 310 | +} | |
| 311 | + | |
| 312 | +- (NSDictionary *)JSONDictionary | |
| 313 | +{ | |
| 314 | + return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues]; | |
| 315 | +} | |
| 316 | +@end | |
| 317 | + | |
| 171 | 318 | NS_ASSUME_NONNULL_END |
Mschema-phpdefault / TopLevel.php+334 −4
| @@ -7,6 +7,9 @@ class TopLevel { | ||
| 7 | 7 | private array $complexUnionArray; // json:complex-union-array Required |
| 8 | 8 | private string $date; // json:date Required |
| 9 | 9 | private DateTime $dateTime; // json:date-time Required |
| 10 | + private ?LocalDate $localDateClass; // json:local-date-class Optional | |
| 11 | + private ?OffsetDateTime $offsetDateTimeClass; // json:offset-date-time-class Optional | |
| 12 | + private ?OffsetTime $offsetTimeClass; // json:offset-time-class Optional | |
| 10 | 13 | private string $time; // json:time Required |
| 11 | 14 | private array $unionArray; // json:union-array Required |
| 12 | 15 | |
| @@ -14,13 +17,19 @@ class TopLevel { | ||
| 14 | 17 | * @param array $complexUnionArray |
| 15 | 18 | * @param string $date |
| 16 | 19 | * @param DateTime $dateTime |
| 20 | + * @param LocalDate|null $localDateClass | |
| 21 | + * @param OffsetDateTime|null $offsetDateTimeClass | |
| 22 | + * @param OffsetTime|null $offsetTimeClass | |
| 17 | 23 | * @param string $time |
| 18 | 24 | * @param array $unionArray |
| 19 | 25 | */ |
| 20 | - public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, string $time, array $unionArray) { | |
| 26 | + public function __construct(array $complexUnionArray, string $date, DateTime $dateTime, ?LocalDate $localDateClass, ?OffsetDateTime $offsetDateTimeClass, ?OffsetTime $offsetTimeClass, string $time, array $unionArray) { | |
| 21 | 27 | $this->complexUnionArray = $complexUnionArray; |
| 22 | 28 | $this->date = $date; |
| 23 | 29 | $this->dateTime = $dateTime; |
| 30 | + $this->localDateClass = $localDateClass; | |
| 31 | + $this->offsetDateTimeClass = $offsetDateTimeClass; | |
| 32 | + $this->offsetTimeClass = $offsetTimeClass; | |
| 24 | 33 | $this->time = $time; |
| 25 | 34 | $this->unionArray = $unionArray; |
| 26 | 35 | } |
| @@ -217,6 +226,180 @@ class TopLevel { | ||
| 217 | 226 | return DateTime::createFromFormat(DateTimeInterface::ISO8601, '2020-12-30T12:30:30+00:00'); |
| 218 | 227 | } |
| 219 | 228 | |
| 229 | + /** | |
| 230 | + * @param ?stdClass $value | |
| 231 | + * @throws Exception | |
| 232 | + * @return ?LocalDate | |
| 233 | + */ | |
| 234 | + public static function fromLocalDateClass(?stdClass $value): ?LocalDate { | |
| 235 | + if (!is_null($value)) { | |
| 236 | + return LocalDate::from($value); /*class*/ | |
| 237 | + } else { | |
| 238 | + return null; | |
| 239 | + } | |
| 240 | + } | |
| 241 | + | |
| 242 | + /** | |
| 243 | + * @throws Exception | |
| 244 | + * @return ?stdClass | |
| 245 | + */ | |
| 246 | + public function toLocalDateClass(): ?stdClass { | |
| 247 | + if (TopLevel::validateLocalDateClass($this->localDateClass)) { | |
| 248 | + if (!is_null($this->localDateClass)) { | |
| 249 | + return $this->localDateClass->to(); /*class*/ | |
| 250 | + } else { | |
| 251 | + return null; | |
| 252 | + } | |
| 253 | + } | |
| 254 | + throw new Exception('never get to this TopLevel::localDateClass'); | |
| 255 | + } | |
| 256 | + | |
| 257 | + /** | |
| 258 | + * @param LocalDate|null | |
| 259 | + * @return bool | |
| 260 | + * @throws Exception | |
| 261 | + */ | |
| 262 | + public static function validateLocalDateClass(?LocalDate $value): bool { | |
| 263 | + if (!is_null($value)) { | |
| 264 | + $value->validate(); | |
| 265 | + } | |
| 266 | + return true; | |
| 267 | + } | |
| 268 | + | |
| 269 | + /** | |
| 270 | + * @throws Exception | |
| 271 | + * @return ?LocalDate | |
| 272 | + */ | |
| 273 | + public function getLocalDateClass(): ?LocalDate { | |
| 274 | + if (TopLevel::validateLocalDateClass($this->localDateClass)) { | |
| 275 | + return $this->localDateClass; | |
| 276 | + } | |
| 277 | + throw new Exception('never get to getLocalDateClass TopLevel::localDateClass'); | |
| 278 | + } | |
| 279 | + | |
| 280 | + /** | |
| 281 | + * @return ?LocalDate | |
| 282 | + */ | |
| 283 | + public static function sampleLocalDateClass(): ?LocalDate { | |
| 284 | + return LocalDate::sample(); /*34:localDateClass*/ | |
| 285 | + } | |
| 286 | + | |
| 287 | + /** | |
| 288 | + * @param ?stdClass $value | |
| 289 | + * @throws Exception | |
| 290 | + * @return ?OffsetDateTime | |
| 291 | + */ | |
| 292 | + public static function fromOffsetDateTimeClass(?stdClass $value): ?OffsetDateTime { | |
| 293 | + if (!is_null($value)) { | |
| 294 | + return OffsetDateTime::from($value); /*class*/ | |
| 295 | + } else { | |
| 296 | + return null; | |
| 297 | + } | |
| 298 | + } | |
| 299 | + | |
| 300 | + /** | |
| 301 | + * @throws Exception | |
| 302 | + * @return ?stdClass | |
| 303 | + */ | |
| 304 | + public function toOffsetDateTimeClass(): ?stdClass { | |
| 305 | + if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) { | |
| 306 | + if (!is_null($this->offsetDateTimeClass)) { | |
| 307 | + return $this->offsetDateTimeClass->to(); /*class*/ | |
| 308 | + } else { | |
| 309 | + return null; | |
| 310 | + } | |
| 311 | + } | |
| 312 | + throw new Exception('never get to this TopLevel::offsetDateTimeClass'); | |
| 313 | + } | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * @param OffsetDateTime|null | |
| 317 | + * @return bool | |
| 318 | + * @throws Exception | |
| 319 | + */ | |
| 320 | + public static function validateOffsetDateTimeClass(?OffsetDateTime $value): bool { | |
| 321 | + if (!is_null($value)) { | |
| 322 | + $value->validate(); | |
| 323 | + } | |
| 324 | + return true; | |
| 325 | + } | |
| 326 | + | |
| 327 | + /** | |
| 328 | + * @throws Exception | |
| 329 | + * @return ?OffsetDateTime | |
| 330 | + */ | |
| 331 | + public function getOffsetDateTimeClass(): ?OffsetDateTime { | |
| 332 | + if (TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass)) { | |
| 333 | + return $this->offsetDateTimeClass; | |
| 334 | + } | |
| 335 | + throw new Exception('never get to getOffsetDateTimeClass TopLevel::offsetDateTimeClass'); | |
| 336 | + } | |
| 337 | + | |
| 338 | + /** | |
| 339 | + * @return ?OffsetDateTime | |
| 340 | + */ | |
| 341 | + public static function sampleOffsetDateTimeClass(): ?OffsetDateTime { | |
| 342 | + return OffsetDateTime::sample(); /*35:offsetDateTimeClass*/ | |
| 343 | + } | |
| 344 | + | |
| 345 | + /** | |
| 346 | + * @param ?stdClass $value | |
| 347 | + * @throws Exception | |
| 348 | + * @return ?OffsetTime | |
| 349 | + */ | |
| 350 | + public static function fromOffsetTimeClass(?stdClass $value): ?OffsetTime { | |
| 351 | + if (!is_null($value)) { | |
| 352 | + return OffsetTime::from($value); /*class*/ | |
| 353 | + } else { | |
| 354 | + return null; | |
| 355 | + } | |
| 356 | + } | |
| 357 | + | |
| 358 | + /** | |
| 359 | + * @throws Exception | |
| 360 | + * @return ?stdClass | |
| 361 | + */ | |
| 362 | + public function toOffsetTimeClass(): ?stdClass { | |
| 363 | + if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) { | |
| 364 | + if (!is_null($this->offsetTimeClass)) { | |
| 365 | + return $this->offsetTimeClass->to(); /*class*/ | |
| 366 | + } else { | |
| 367 | + return null; | |
| 368 | + } | |
| 369 | + } | |
| 370 | + throw new Exception('never get to this TopLevel::offsetTimeClass'); | |
| 371 | + } | |
| 372 | + | |
| 373 | + /** | |
| 374 | + * @param OffsetTime|null | |
| 375 | + * @return bool | |
| 376 | + * @throws Exception | |
| 377 | + */ | |
| 378 | + public static function validateOffsetTimeClass(?OffsetTime $value): bool { | |
| 379 | + if (!is_null($value)) { | |
| 380 | + $value->validate(); | |
| 381 | + } | |
| 382 | + return true; | |
| 383 | + } | |
| 384 | + | |
| 385 | + /** | |
| 386 | + * @throws Exception | |
| 387 | + * @return ?OffsetTime | |
| 388 | + */ | |
| 389 | + public function getOffsetTimeClass(): ?OffsetTime { | |
| 390 | + if (TopLevel::validateOffsetTimeClass($this->offsetTimeClass)) { | |
| 391 | + return $this->offsetTimeClass; | |
| 392 | + } | |
| 393 | + throw new Exception('never get to getOffsetTimeClass TopLevel::offsetTimeClass'); | |
| 394 | + } | |
| 395 | + | |
| 396 | + /** | |
| 397 | + * @return ?OffsetTime | |
| 398 | + */ | |
| 399 | + public static function sampleOffsetTimeClass(): ?OffsetTime { | |
| 400 | + return OffsetTime::sample(); /*36:offsetTimeClass*/ | |
| 401 | + } | |
| 402 | + | |
| 220 | 403 | /** |
| 221 | 404 | * @param string $value |
| 222 | 405 | * @throws Exception |
| @@ -261,7 +444,7 @@ class TopLevel { | ||
| 261 | 444 | * @return string |
| 262 | 445 | */ |
| 263 | 446 | public static function sampleTime(): string { |
| 264 | - return 'TopLevel::time::34'; /*34:time*/ | |
| 447 | + return 'TopLevel::time::37'; /*37:time*/ | |
| 265 | 448 | } |
| 266 | 449 | |
| 267 | 450 | /** |
| @@ -321,8 +504,8 @@ class TopLevel { | ||
| 321 | 504 | */ |
| 322 | 505 | public static function sampleUnionArray(): array { |
| 323 | 506 | return array( |
| 324 | - 'TopLevel::::35' /*35:*/ | |
| 325 | - ); /* 35:unionArray*/ | |
| 507 | + 'TopLevel::::38' /*38:*/ | |
| 508 | + ); /* 38:unionArray*/ | |
| 326 | 509 | } |
| 327 | 510 | |
| 328 | 511 | /** |
| @@ -333,6 +516,9 @@ class TopLevel { | ||
| 333 | 516 | return TopLevel::validateComplexUnionArray($this->complexUnionArray) |
| 334 | 517 | || TopLevel::validateDate($this->date) |
| 335 | 518 | || TopLevel::validateDateTime($this->dateTime) |
| 519 | + || TopLevel::validateLocalDateClass($this->localDateClass) | |
| 520 | + || TopLevel::validateOffsetDateTimeClass($this->offsetDateTimeClass) | |
| 521 | + || TopLevel::validateOffsetTimeClass($this->offsetTimeClass) | |
| 336 | 522 | || TopLevel::validateTime($this->time) |
| 337 | 523 | || TopLevel::validateUnionArray($this->unionArray); |
| 338 | 524 | } |
| @@ -346,6 +532,9 @@ class TopLevel { | ||
| 346 | 532 | $out->{'complex-union-array'} = $this->toComplexUnionArray(); |
| 347 | 533 | $out->{'date'} = $this->toDate(); |
| 348 | 534 | $out->{'date-time'} = $this->toDateTime(); |
| 535 | + $out->{'local-date-class'} = $this->toLocalDateClass(); | |
| 536 | + $out->{'offset-date-time-class'} = $this->toOffsetDateTimeClass(); | |
| 537 | + $out->{'offset-time-class'} = $this->toOffsetTimeClass(); | |
| 349 | 538 | $out->{'time'} = $this->toTime(); |
| 350 | 539 | $out->{'union-array'} = $this->toUnionArray(); |
| 351 | 540 | return $out; |
| @@ -376,6 +565,9 @@ class TopLevel { | ||
| 376 | 565 | TopLevel::fromComplexUnionArray($obj->{'complex-union-array'}) |
| 377 | 566 | ,TopLevel::fromDate($obj->{'date'}) |
| 378 | 567 | ,TopLevel::fromDateTime($obj->{'date-time'}) |
| 568 | + ,TopLevel::fromLocalDateClass($obj->{'local-date-class'}) | |
| 569 | + ,TopLevel::fromOffsetDateTimeClass($obj->{'offset-date-time-class'}) | |
| 570 | + ,TopLevel::fromOffsetTimeClass($obj->{'offset-time-class'}) | |
| 379 | 571 | ,TopLevel::fromTime($obj->{'time'}) |
| 380 | 572 | ,TopLevel::fromUnionArray($obj->{'union-array'}) |
| 381 | 573 | ); |
| @@ -389,6 +581,9 @@ class TopLevel { | ||
| 389 | 581 | TopLevel::sampleComplexUnionArray() |
| 390 | 582 | ,TopLevel::sampleDate() |
| 391 | 583 | ,TopLevel::sampleDateTime() |
| 584 | + ,TopLevel::sampleLocalDateClass() | |
| 585 | + ,TopLevel::sampleOffsetDateTimeClass() | |
| 586 | + ,TopLevel::sampleOffsetTimeClass() | |
| 392 | 587 | ,TopLevel::sampleTime() |
| 393 | 588 | ,TopLevel::sampleUnionArray() |
| 394 | 589 | ); |
| @@ -443,3 +638,138 @@ class ComplexUnionArray { | ||
| 443 | 638 | } |
| 444 | 639 | } |
| 445 | 640 | ComplexUnionArray::init(); |
| 641 | + | |
| 642 | +// This is an autogenerated file:LocalDate | |
| 643 | + | |
| 644 | +class LocalDate { | |
| 645 | + | |
| 646 | + /** | |
| 647 | + */ | |
| 648 | + public function __construct() { | |
| 649 | + } | |
| 650 | + | |
| 651 | + /** | |
| 652 | + * @throws Exception | |
| 653 | + * @return bool | |
| 654 | + */ | |
| 655 | + public function validate(): bool { | |
| 656 | + return true; | |
| 657 | + } | |
| 658 | + | |
| 659 | + /** | |
| 660 | + * @return stdClass | |
| 661 | + * @throws Exception | |
| 662 | + */ | |
| 663 | + public function to(): stdClass { | |
| 664 | + $out = new stdClass(); | |
| 665 | + return $out; | |
| 666 | + } | |
| 667 | + | |
| 668 | + /** | |
| 669 | + * @param stdClass $obj | |
| 670 | + * @return LocalDate | |
| 671 | + * @throws Exception | |
| 672 | + */ | |
| 673 | + public static function from(stdClass $obj): LocalDate { | |
| 674 | + return new LocalDate( | |
| 675 | + ); | |
| 676 | + } | |
| 677 | + | |
| 678 | + /** | |
| 679 | + * @return LocalDate | |
| 680 | + */ | |
| 681 | + public static function sample(): LocalDate { | |
| 682 | + return new LocalDate( | |
| 683 | + ); | |
| 684 | + } | |
| 685 | +} | |
| 686 | + | |
| 687 | +// This is an autogenerated file:OffsetDateTime | |
| 688 | + | |
| 689 | +class OffsetDateTime { | |
| 690 | + | |
| 691 | + /** | |
| 692 | + */ | |
| 693 | + public function __construct() { | |
| 694 | + } | |
| 695 | + | |
| 696 | + /** | |
| 697 | + * @throws Exception | |
| 698 | + * @return bool | |
| 699 | + */ | |
| 700 | + public function validate(): bool { | |
| 701 | + return true; | |
| 702 | + } | |
| 703 | + | |
| 704 | + /** | |
| 705 | + * @return stdClass | |
| 706 | + * @throws Exception | |
| 707 | + */ | |
| 708 | + public function to(): stdClass { | |
| 709 | + $out = new stdClass(); | |
| 710 | + return $out; | |
| 711 | + } | |
| 712 | + | |
| 713 | + /** | |
| 714 | + * @param stdClass $obj | |
| 715 | + * @return OffsetDateTime | |
| 716 | + * @throws Exception | |
| 717 | + */ | |
| 718 | + public static function from(stdClass $obj): OffsetDateTime { | |
| 719 | + return new OffsetDateTime( | |
| 720 | + ); | |
| 721 | + } | |
| 722 | + | |
| 723 | + /** | |
| 724 | + * @return OffsetDateTime | |
| 725 | + */ | |
| 726 | + public static function sample(): OffsetDateTime { | |
| 727 | + return new OffsetDateTime( | |
| 728 | + ); | |
| 729 | + } | |
| 730 | +} | |
| 731 | + | |
| 732 | +// This is an autogenerated file:OffsetTime | |
| 733 | + | |
| 734 | +class OffsetTime { | |
| 735 | + | |
| 736 | + /** | |
| 737 | + */ | |
| 738 | + public function __construct() { | |
| 739 | + } | |
| 740 | + | |
| 741 | + /** | |
| 742 | + * @throws Exception | |
| 743 | + * @return bool | |
| 744 | + */ | |
| 745 | + public function validate(): bool { | |
| 746 | + return true; | |
| 747 | + } | |
| 748 | + | |
| 749 | + /** | |
| 750 | + * @return stdClass | |
| 751 | + * @throws Exception | |
| 752 | + */ | |
| 753 | + public function to(): stdClass { | |
| 754 | + $out = new stdClass(); | |
| 755 | + return $out; | |
| 756 | + } | |
| 757 | + | |
| 758 | + /** | |
| 759 | + * @param stdClass $obj | |
| 760 | + * @return OffsetTime | |
| 761 | + * @throws Exception | |
| 762 | + */ | |
| 763 | + public static function from(stdClass $obj): OffsetTime { | |
| 764 | + return new OffsetTime( | |
| 765 | + ); | |
| 766 | + } | |
| 767 | + | |
| 768 | + /** | |
| 769 | + * @return OffsetTime | |
| 770 | + */ | |
| 771 | + public static function sample(): OffsetTime { | |
| 772 | + return new OffsetTime( | |
| 773 | + ); | |
| 774 | + } | |
| 775 | +} |
Mschema-pikedefault / TopLevel.pmod+62 −5
| @@ -13,17 +13,23 @@ | ||
| 13 | 13 | // match the expected interface, even if the JSON itself is valid. |
| 14 | 14 | |
| 15 | 15 | class TopLevel { |
| 16 | - array(ComplexUnionArray) complex_union_array; // json: "complex-union-array" | |
| 17 | - string date; // json: "date" | |
| 18 | - string date_time; // json: "date-time" | |
| 19 | - string time; // json: "time" | |
| 20 | - array(string) union_array; // json: "union-array" | |
| 16 | + array(ComplexUnionArray) complex_union_array; // json: "complex-union-array" | |
| 17 | + string date; // json: "date" | |
| 18 | + string date_time; // json: "date-time" | |
| 19 | + LocalDate|mixed local_date_class; // json: "local-date-class" | |
| 20 | + OffsetDateTime|mixed offset_date_time_class; // json: "offset-date-time-class" | |
| 21 | + OffsetTime|mixed offset_time_class; // json: "offset-time-class" | |
| 22 | + string time; // json: "time" | |
| 23 | + array(string) union_array; // json: "union-array" | |
| 21 | 24 | |
| 22 | 25 | string encode_json() { |
| 23 | 26 | mapping(string:mixed) json = ([ |
| 24 | 27 | "complex-union-array" : complex_union_array, |
| 25 | 28 | "date" : date, |
| 26 | 29 | "date-time" : date_time, |
| 30 | + "local-date-class" : local_date_class, | |
| 31 | + "offset-date-time-class" : offset_date_time_class, | |
| 32 | + "offset-time-class" : offset_time_class, | |
| 27 | 33 | "time" : time, |
| 28 | 34 | "union-array" : union_array, |
| 29 | 35 | ]); |
| @@ -38,6 +44,9 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 38 | 44 | retval.complex_union_array = json["complex-union-array"]; |
| 39 | 45 | retval.date = json["date"]; |
| 40 | 46 | retval.date_time = json["date-time"]; |
| 47 | + retval.local_date_class = json["local-date-class"]; | |
| 48 | + retval.offset_date_time_class = json["offset-date-time-class"]; | |
| 49 | + retval.offset_time_class = json["offset-time-class"]; | |
| 41 | 50 | retval.time = json["time"]; |
| 42 | 51 | retval.union_array = json["union-array"]; |
| 43 | 52 | |
| @@ -49,3 +58,51 @@ typedef int|string ComplexUnionArray; | ||
| 49 | 58 | ComplexUnionArray ComplexUnionArray_from_JSON(mixed json) { |
| 50 | 59 | return json; |
| 51 | 60 | } |
| 61 | + | |
| 62 | +class LocalDate { | |
| 63 | + | |
| 64 | + string encode_json() { | |
| 65 | + mapping(string:mixed) json = ([ | |
| 66 | + ]); | |
| 67 | + | |
| 68 | + return Standards.JSON.encode(json); | |
| 69 | + } | |
| 70 | +} | |
| 71 | + | |
| 72 | +LocalDate LocalDate_from_JSON(mixed json) { | |
| 73 | + LocalDate retval = LocalDate(); | |
| 74 | + | |
| 75 | + return retval; | |
| 76 | +} | |
| 77 | + | |
| 78 | +class OffsetDateTime { | |
| 79 | + | |
| 80 | + string encode_json() { | |
| 81 | + mapping(string:mixed) json = ([ | |
| 82 | + ]); | |
| 83 | + | |
| 84 | + return Standards.JSON.encode(json); | |
| 85 | + } | |
| 86 | +} | |
| 87 | + | |
| 88 | +OffsetDateTime OffsetDateTime_from_JSON(mixed json) { | |
| 89 | + OffsetDateTime retval = OffsetDateTime(); | |
| 90 | + | |
| 91 | + return retval; | |
| 92 | +} | |
| 93 | + | |
| 94 | +class OffsetTime { | |
| 95 | + | |
| 96 | + string encode_json() { | |
| 97 | + mapping(string:mixed) json = ([ | |
| 98 | + ]); | |
| 99 | + | |
| 100 | + return Standards.JSON.encode(json); | |
| 101 | + } | |
| 102 | +} | |
| 103 | + | |
| 104 | +OffsetTime OffsetTime_from_JSON(mixed json) { | |
| 105 | + OffsetTime retval = OffsetTime(); | |
| 106 | + | |
| 107 | + return retval; | |
| 108 | +} |
Mschema-pythondefault / quicktype.py+60 −1
| @@ -43,6 +43,11 @@ def from_time(x: Any) -> datetime.time: | ||
| 43 | 43 | return dateutil.parser.parse(x).timetz() |
| 44 | 44 | |
| 45 | 45 | |
| 46 | +def from_none(x: Any) -> Any: | |
| 47 | + assert x is None | |
| 48 | + return x | |
| 49 | + | |
| 50 | + | |
| 46 | 51 | def to_enum(c: Type[EnumT], x: Any) -> EnumT: |
| 47 | 52 | assert isinstance(x, c) |
| 48 | 53 | return x.value |
| @@ -58,6 +63,48 @@ class ComplexUnionArrayEnum(Enum): | ||
| 58 | 63 | BAR = "bar" |
| 59 | 64 | |
| 60 | 65 | |
| 66 | +@dataclass | |
| 67 | +class LocalDate: | |
| 68 | + pass | |
| 69 | + | |
| 70 | + @staticmethod | |
| 71 | + def from_dict(obj: Any) -> 'LocalDate': | |
| 72 | + assert isinstance(obj, dict) | |
| 73 | + return LocalDate() | |
| 74 | + | |
| 75 | + def to_dict(self) -> dict: | |
| 76 | + result: dict = {} | |
| 77 | + return result | |
| 78 | + | |
| 79 | + | |
| 80 | +@dataclass | |
| 81 | +class OffsetDateTime: | |
| 82 | + pass | |
| 83 | + | |
| 84 | + @staticmethod | |
| 85 | + def from_dict(obj: Any) -> 'OffsetDateTime': | |
| 86 | + assert isinstance(obj, dict) | |
| 87 | + return OffsetDateTime() | |
| 88 | + | |
| 89 | + def to_dict(self) -> dict: | |
| 90 | + result: dict = {} | |
| 91 | + return result | |
| 92 | + | |
| 93 | + | |
| 94 | +@dataclass | |
| 95 | +class OffsetTime: | |
| 96 | + pass | |
| 97 | + | |
| 98 | + @staticmethod | |
| 99 | + def from_dict(obj: Any) -> 'OffsetTime': | |
| 100 | + assert isinstance(obj, dict) | |
| 101 | + return OffsetTime() | |
| 102 | + | |
| 103 | + def to_dict(self) -> dict: | |
| 104 | + result: dict = {} | |
| 105 | + return result | |
| 106 | + | |
| 107 | + | |
| 61 | 108 | @dataclass |
| 62 | 109 | class TopLevel: |
| 63 | 110 | complex_union_array: list[int | ComplexUnionArrayEnum | datetime.datetime] |
| @@ -65,6 +112,9 @@ class TopLevel: | ||
| 65 | 112 | date_time: datetime.datetime |
| 66 | 113 | time: datetime.time |
| 67 | 114 | union_array: list[datetime.date | datetime.time | datetime.datetime] |
| 115 | + local_date_class: LocalDate | None = None | |
| 116 | + offset_date_time_class: OffsetDateTime | None = None | |
| 117 | + offset_time_class: OffsetTime | None = None | |
| 68 | 118 | |
| 69 | 119 | @staticmethod |
| 70 | 120 | def from_dict(obj: Any) -> 'TopLevel': |
| @@ -74,7 +124,10 @@ class TopLevel: | ||
| 74 | 124 | date_time = from_datetime(obj["date-time"]) |
| 75 | 125 | time = from_time(obj["time"]) |
| 76 | 126 | union_array = from_list(lambda x: from_union([from_date, from_time, from_datetime], x), obj["union-array"]) |
| 77 | - return TopLevel(complex_union_array, date, date_time, time, union_array) | |
| 127 | + local_date_class = from_union([LocalDate.from_dict, from_none], obj.get("local-date-class")) | |
| 128 | + offset_date_time_class = from_union([OffsetDateTime.from_dict, from_none], obj.get("offset-date-time-class")) | |
| 129 | + offset_time_class = from_union([OffsetTime.from_dict, from_none], obj.get("offset-time-class")) | |
| 130 | + return TopLevel(complex_union_array, date, date_time, time, union_array, local_date_class, offset_date_time_class, offset_time_class) | |
| 78 | 131 | |
| 79 | 132 | def to_dict(self) -> dict: |
| 80 | 133 | result: dict = {} |
| @@ -83,6 +136,12 @@ class TopLevel: | ||
| 83 | 136 | result["date-time"] = self.date_time.isoformat() |
| 84 | 137 | result["time"] = self.time.isoformat() |
| 85 | 138 | result["union-array"] = from_list(lambda x: from_union([lambda x: x.isoformat(), lambda x: x.isoformat(), lambda x: x.isoformat()], x), self.union_array) |
| 139 | + if self.local_date_class is not None: | |
| 140 | + result["local-date-class"] = from_union([lambda x: to_class(LocalDate, x), from_none], self.local_date_class) | |
| 141 | + if self.offset_date_time_class is not None: | |
| 142 | + result["offset-date-time-class"] = from_union([lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time_class) | |
| 143 | + if self.offset_time_class is not None: | |
| 144 | + result["offset-time-class"] = from_union([lambda x: to_class(OffsetTime, x), from_none], self.offset_time_class) | |
| 86 | 145 | return result |
Mschema-rubydefault / TopLevel.rb+90 −15
| @@ -63,21 +63,93 @@ class ComplexUnionArrayElement < Dry::Struct | ||
| 63 | 63 | end |
| 64 | 64 | end |
| 65 | 65 | |
| 66 | +class LocalDate < Dry::Struct | |
| 67 | + | |
| 68 | + def self.from_dynamic!(d) | |
| 69 | + d = Types::Hash[d] | |
| 70 | + new( | |
| 71 | + ) | |
| 72 | + end | |
| 73 | + | |
| 74 | + def self.from_json!(json) | |
| 75 | + from_dynamic!(JSON.parse(json)) | |
| 76 | + end | |
| 77 | + | |
| 78 | + def to_dynamic | |
| 79 | + { | |
| 80 | + } | |
| 81 | + end | |
| 82 | + | |
| 83 | + def to_json(options = nil) | |
| 84 | + JSON.generate(to_dynamic, options) | |
| 85 | + end | |
| 86 | +end | |
| 87 | + | |
| 88 | +class OffsetDateTime < Dry::Struct | |
| 89 | + | |
| 90 | + def self.from_dynamic!(d) | |
| 91 | + d = Types::Hash[d] | |
| 92 | + new( | |
| 93 | + ) | |
| 94 | + end | |
| 95 | + | |
| 96 | + def self.from_json!(json) | |
| 97 | + from_dynamic!(JSON.parse(json)) | |
| 98 | + end | |
| 99 | + | |
| 100 | + def to_dynamic | |
| 101 | + { | |
| 102 | + } | |
| 103 | + end | |
| 104 | + | |
| 105 | + def to_json(options = nil) | |
| 106 | + JSON.generate(to_dynamic, options) | |
| 107 | + end | |
| 108 | +end | |
| 109 | + | |
| 110 | +class OffsetTime < Dry::Struct | |
| 111 | + | |
| 112 | + def self.from_dynamic!(d) | |
| 113 | + d = Types::Hash[d] | |
| 114 | + new( | |
| 115 | + ) | |
| 116 | + end | |
| 117 | + | |
| 118 | + def self.from_json!(json) | |
| 119 | + from_dynamic!(JSON.parse(json)) | |
| 120 | + end | |
| 121 | + | |
| 122 | + def to_dynamic | |
| 123 | + { | |
| 124 | + } | |
| 125 | + end | |
| 126 | + | |
| 127 | + def to_json(options = nil) | |
| 128 | + JSON.generate(to_dynamic, options) | |
| 129 | + end | |
| 130 | +end | |
| 131 | + | |
| 66 | 132 | class TopLevel < Dry::Struct |
| 67 | - attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement)) | |
| 68 | - attribute :date, Types::String | |
| 69 | - attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i) | |
| 70 | - attribute :time, Types::String | |
| 71 | - attribute :union_array, Types.Array(Types::String) | |
| 133 | + attribute :complex_union_array, Types.Array(Types.Instance(ComplexUnionArrayElement)) | |
| 134 | + attribute :date, Types::String | |
| 135 | + attribute :date_time, Types::String.constrained(format: /\A\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|[+-]\d\d:\d\d)\z/i) | |
| 136 | + attribute :local_date_class, LocalDate.optional | |
| 137 | + attribute :offset_date_time_class, OffsetDateTime.optional | |
| 138 | + attribute :offset_time_class, OffsetTime.optional | |
| 139 | + attribute :time, Types::String | |
| 140 | + attribute :union_array, Types.Array(Types::String) | |
| 72 | 141 | |
| 73 | 142 | def self.from_dynamic!(d) |
| 74 | 143 | d = Types::Hash[d] |
| 75 | 144 | new( |
| 76 | - complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) }, | |
| 77 | - date: d.fetch("date"), | |
| 78 | - date_time: d.fetch("date-time"), | |
| 79 | - time: d.fetch("time"), | |
| 80 | - union_array: d.fetch("union-array"), | |
| 145 | + complex_union_array: d.fetch("complex-union-array").map { |x| ComplexUnionArrayElement.from_dynamic!(x) }, | |
| 146 | + date: d.fetch("date"), | |
| 147 | + date_time: d.fetch("date-time"), | |
| 148 | + local_date_class: d.key?("local-date-class") ? LocalDate.from_dynamic!(d["local-date-class"]) : nil, | |
| 149 | + offset_date_time_class: d.key?("offset-date-time-class") ? OffsetDateTime.from_dynamic!(d["offset-date-time-class"]) : nil, | |
| 150 | + offset_time_class: d.key?("offset-time-class") ? OffsetTime.from_dynamic!(d["offset-time-class"]) : nil, | |
| 151 | + time: d.fetch("time"), | |
| 152 | + union_array: d.fetch("union-array"), | |
| 81 | 153 | ) |
| 82 | 154 | end |
| 83 | 155 | |
| @@ -87,11 +159,14 @@ class TopLevel < Dry::Struct | ||
| 87 | 159 | |
| 88 | 160 | def to_dynamic |
| 89 | 161 | { |
| 90 | - "complex-union-array" => complex_union_array.map { |x| x.to_dynamic }, | |
| 91 | - "date" => date, | |
| 92 | - "date-time" => date_time, | |
| 93 | - "time" => time, | |
| 94 | - "union-array" => union_array, | |
| 162 | + "complex-union-array" => complex_union_array.map { |x| x.to_dynamic }, | |
| 163 | + "date" => date, | |
| 164 | + "date-time" => date_time, | |
| 165 | + "local-date-class" => local_date_class&.to_dynamic, | |
| 166 | + "offset-date-time-class" => offset_date_time_class&.to_dynamic, | |
| 167 | + "offset-time-class" => offset_time_class&.to_dynamic, | |
| 168 | + "time" => time, | |
| 169 | + "union-array" => union_array, | |
| 95 | 170 | } |
| 96 | 171 | end |
Mschema-rustdefault / module_under_test.rs+18 −0
| @@ -22,6 +22,12 @@ pub struct TopLevel { | ||
| 22 | 22 | |
| 23 | 23 | pub date_time: String, |
| 24 | 24 | |
| 25 | + pub local_date_class: Option<LocalDate>, | |
| 26 | + | |
| 27 | + pub offset_date_time_class: Option<OffsetDateTime>, | |
| 28 | + | |
| 29 | + pub offset_time_class: Option<OffsetTime>, | |
| 30 | + | |
| 25 | 31 | pub time: String, |
| 26 | 32 | |
| 27 | 33 | pub union_array: Vec<String>, |
| @@ -34,3 +40,15 @@ pub enum ComplexUnionArray { | ||
| 34 | 40 | |
| 35 | 41 | PurpleString(String), |
| 36 | 42 | } |
| 43 | + | |
| 44 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 45 | +pub struct LocalDate { | |
| 46 | +} | |
| 47 | + | |
| 48 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 49 | +pub struct OffsetDateTime { | |
| 50 | +} | |
| 51 | + | |
| 52 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 53 | +pub struct OffsetTime { | |
| 54 | +} |
Mschema-scala3-upickledefault / TopLevel.scala+10 −0
| @@ -82,6 +82,9 @@ case class TopLevel ( | ||
| 82 | 82 | val `complex-union-array` : Seq[ComplexUnionArrayElement], |
| 83 | 83 | val date : String, |
| 84 | 84 | val `date-time` : java.time.Instant, |
| 85 | + val `local-date-class` : Option[LocalDate] = None, | |
| 86 | + val `offset-date-time-class` : Option[OffsetDateTime] = None, | |
| 87 | + val `offset-time-class` : Option[OffsetTime] = None, | |
| 85 | 88 | val time : String, |
| 86 | 89 | val `union-array` : Seq[String] |
| 87 | 90 | ) derives OptionPickler.ReadWriter |
| @@ -115,3 +118,10 @@ given OptionPickler.ReadWriter[ComplexUnionArrayEnum] = OptionPickler.readwriter | ||
| 115 | 118 | case other => throw new upickle.core.Abort("invalid ComplexUnionArrayEnum: " + other) |
| 116 | 119 | } |
| 117 | 120 | ) |
| 121 | + | |
| 122 | +case class LocalDate() | |
| 123 | + derives OptionPickler.ReadWriter | |
| 124 | +case class OffsetDateTime() | |
| 125 | + derives OptionPickler.ReadWriter | |
| 126 | +case class OffsetTime() | |
| 127 | + derives OptionPickler.ReadWriter | |
| \ No newline at end of file |
Mschema-scala3default / TopLevel.scala+9 −0
| @@ -11,6 +11,9 @@ case class TopLevel ( | ||
| 11 | 11 | val `complex-union-array` : Seq[ComplexUnionArrayElement], |
| 12 | 12 | val date : String, |
| 13 | 13 | val `date-time` : java.time.Instant, |
| 14 | + val `local-date-class` : Option[LocalDate] = None, | |
| 15 | + val `offset-date-time-class` : Option[OffsetDateTime] = None, | |
| 16 | + val `offset-time-class` : Option[OffsetTime] = None, | |
| 14 | 17 | val time : String, |
| 15 | 18 | val `union-array` : Seq[String] |
| 16 | 19 | ) derives Encoder.AsObject, Decoder |
| @@ -43,3 +46,9 @@ given Encoder[ComplexUnionArrayEnum] = Encoder.encodeString.contramap { | ||
| 43 | 46 | case ComplexUnionArrayEnum.Foo => "foo" |
| 44 | 47 | case ComplexUnionArrayEnum.Bar => "bar" |
| 45 | 48 | } |
| 49 | + | |
| 50 | +case class LocalDate() derives Encoder.AsObject, Decoder | |
| 51 | + | |
| 52 | +case class OffsetDateTime() derives Encoder.AsObject, Decoder | |
| 53 | + | |
| 54 | +case class OffsetTime() derives Encoder.AsObject, Decoder |
Mschema-schemadefault / TopLevel.schema+24 −0
| @@ -20,6 +20,15 @@ | ||
| 20 | 20 | "type": "string", |
| 21 | 21 | "format": "date-time" |
| 22 | 22 | }, |
| 23 | + "local-date-class": { | |
| 24 | + "$ref": "#/definitions/LocalDate" | |
| 25 | + }, | |
| 26 | + "offset-date-time-class": { | |
| 27 | + "$ref": "#/definitions/OffsetDateTime" | |
| 28 | + }, | |
| 29 | + "offset-time-class": { | |
| 30 | + "$ref": "#/definitions/OffsetTime" | |
| 31 | + }, | |
| 23 | 32 | "time": { |
| 24 | 33 | "type": "string", |
| 25 | 34 | "format": "time" |
| @@ -40,6 +49,21 @@ | ||
| 40 | 49 | ], |
| 41 | 50 | "title": "TopLevel" |
| 42 | 51 | }, |
| 52 | + "LocalDate": { | |
| 53 | + "type": "object", | |
| 54 | + "additionalProperties": false, | |
| 55 | + "title": "LocalDate" | |
| 56 | + }, | |
| 57 | + "OffsetDateTime": { | |
| 58 | + "type": "object", | |
| 59 | + "additionalProperties": false, | |
| 60 | + "title": "OffsetDateTime" | |
| 61 | + }, | |
| 62 | + "OffsetTime": { | |
| 63 | + "type": "object", | |
| 64 | + "additionalProperties": false, | |
| 65 | + "title": "OffsetTime" | |
| 66 | + }, | |
| 43 | 67 | "ComplexUnionArrayElement": { |
| 44 | 68 | "anyOf": [ |
| 45 | 69 | { |
Mschema-swiftdefault / quicktype.swift+141 −0
| @@ -10,6 +10,9 @@ struct TopLevel: Codable { | ||
| 10 | 10 | let complexUnionArray: [ComplexUnionArrayElement] |
| 11 | 11 | let date: String |
| 12 | 12 | let dateTime: Date |
| 13 | + let localDateClass: LocalDate? | |
| 14 | + let offsetDateTimeClass: OffsetDateTime? | |
| 15 | + let offsetTimeClass: OffsetTime? | |
| 13 | 16 | let time: String |
| 14 | 17 | let unionArray: [String] |
| 15 | 18 | |
| @@ -17,6 +20,9 @@ struct TopLevel: Codable { | ||
| 17 | 20 | case complexUnionArray = "complex-union-array" |
| 18 | 21 | case date = "date" |
| 19 | 22 | case dateTime = "date-time" |
| 23 | + case localDateClass = "local-date-class" | |
| 24 | + case offsetDateTimeClass = "offset-date-time-class" | |
| 25 | + case offsetTimeClass = "offset-time-class" | |
| 20 | 26 | case time = "time" |
| 21 | 27 | case unionArray = "union-array" |
| 22 | 28 | } |
| @@ -44,6 +50,9 @@ extension TopLevel { | ||
| 44 | 50 | complexUnionArray: [ComplexUnionArrayElement]? = nil, |
| 45 | 51 | date: String? = nil, |
| 46 | 52 | dateTime: Date? = nil, |
| 53 | + localDateClass: LocalDate?? = nil, | |
| 54 | + offsetDateTimeClass: OffsetDateTime?? = nil, | |
| 55 | + offsetTimeClass: OffsetTime?? = nil, | |
| 47 | 56 | time: String? = nil, |
| 48 | 57 | unionArray: [String]? = nil |
| 49 | 58 | ) -> TopLevel { |
| @@ -51,6 +60,9 @@ extension TopLevel { | ||
| 51 | 60 | complexUnionArray: complexUnionArray ?? self.complexUnionArray, |
| 52 | 61 | date: date ?? self.date, |
| 53 | 62 | dateTime: dateTime ?? self.dateTime, |
| 63 | + localDateClass: localDateClass ?? self.localDateClass, | |
| 64 | + offsetDateTimeClass: offsetDateTimeClass ?? self.offsetDateTimeClass, | |
| 65 | + offsetTimeClass: offsetTimeClass ?? self.offsetTimeClass, | |
| 54 | 66 | time: time ?? self.time, |
| 55 | 67 | unionArray: unionArray ?? self.unionArray |
| 56 | 68 | ) |
| @@ -105,6 +117,135 @@ enum ComplexUnionArrayEnum: String, Codable { | ||
| 105 | 117 | case bar = "bar" |
| 106 | 118 | } |
| 107 | 119 | |
| 120 | +// MARK: - LocalDate | |
| 121 | +struct LocalDate: Codable { | |
| 122 | + private enum K: String, CodingKey { case unused } | |
| 123 | + init(from decoder: Decoder) throws { | |
| 124 | + _ = try decoder.container(keyedBy: K.self) | |
| 125 | + } | |
| 126 | + init() { | |
| 127 | + } | |
| 128 | +} | |
| 129 | + | |
| 130 | +// MARK: LocalDate convenience initializers and mutators | |
| 131 | + | |
| 132 | +extension LocalDate { | |
| 133 | + init(data: Data) throws { | |
| 134 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 135 | + } | |
| 136 | + | |
| 137 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 138 | + guard let data = json.data(using: encoding) else { | |
| 139 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 140 | + } | |
| 141 | + try self.init(data: data) | |
| 142 | + } | |
| 143 | + | |
| 144 | + init(fromURL url: URL) throws { | |
| 145 | + try self.init(data: try Data(contentsOf: url)) | |
| 146 | + } | |
| 147 | + | |
| 148 | + func with( | |
| 149 | + ) -> LocalDate { | |
| 150 | + return LocalDate( | |
| 151 | + ) | |
| 152 | + } | |
| 153 | + | |
| 154 | + func jsonData() throws -> Data { | |
| 155 | + return try newJSONEncoder().encode(self) | |
| 156 | + } | |
| 157 | + | |
| 158 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 159 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 160 | + } | |
| 161 | +} | |
| 162 | + | |
| 163 | +// MARK: - OffsetDateTime | |
| 164 | +struct OffsetDateTime: Codable { | |
| 165 | + private enum K: String, CodingKey { case unused } | |
| 166 | + init(from decoder: Decoder) throws { | |
| 167 | + _ = try decoder.container(keyedBy: K.self) | |
| 168 | + } | |
| 169 | + init() { | |
| 170 | + } | |
| 171 | +} | |
| 172 | + | |
| 173 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 174 | + | |
| 175 | +extension OffsetDateTime { | |
| 176 | + init(data: Data) throws { | |
| 177 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 178 | + } | |
| 179 | + | |
| 180 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 181 | + guard let data = json.data(using: encoding) else { | |
| 182 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 183 | + } | |
| 184 | + try self.init(data: data) | |
| 185 | + } | |
| 186 | + | |
| 187 | + init(fromURL url: URL) throws { | |
| 188 | + try self.init(data: try Data(contentsOf: url)) | |
| 189 | + } | |
| 190 | + | |
| 191 | + func with( | |
| 192 | + ) -> OffsetDateTime { | |
| 193 | + return OffsetDateTime( | |
| 194 | + ) | |
| 195 | + } | |
| 196 | + | |
| 197 | + func jsonData() throws -> Data { | |
| 198 | + return try newJSONEncoder().encode(self) | |
| 199 | + } | |
| 200 | + | |
| 201 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 202 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 203 | + } | |
| 204 | +} | |
| 205 | + | |
| 206 | +// MARK: - OffsetTime | |
| 207 | +struct OffsetTime: Codable { | |
| 208 | + private enum K: String, CodingKey { case unused } | |
| 209 | + init(from decoder: Decoder) throws { | |
| 210 | + _ = try decoder.container(keyedBy: K.self) | |
| 211 | + } | |
| 212 | + init() { | |
| 213 | + } | |
| 214 | +} | |
| 215 | + | |
| 216 | +// MARK: OffsetTime convenience initializers and mutators | |
| 217 | + | |
| 218 | +extension OffsetTime { | |
| 219 | + init(data: Data) throws { | |
| 220 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 221 | + } | |
| 222 | + | |
| 223 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 224 | + guard let data = json.data(using: encoding) else { | |
| 225 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 226 | + } | |
| 227 | + try self.init(data: data) | |
| 228 | + } | |
| 229 | + | |
| 230 | + init(fromURL url: URL) throws { | |
| 231 | + try self.init(data: try Data(contentsOf: url)) | |
| 232 | + } | |
| 233 | + | |
| 234 | + func with( | |
| 235 | + ) -> OffsetTime { | |
| 236 | + return OffsetTime( | |
| 237 | + ) | |
| 238 | + } | |
| 239 | + | |
| 240 | + func jsonData() throws -> Data { | |
| 241 | + return try newJSONEncoder().encode(self) | |
| 242 | + } | |
| 243 | + | |
| 244 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 245 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 246 | + } | |
| 247 | +} | |
| 248 | + | |
| 108 | 249 | // MARK: - Helper functions for creating encoders and decoders |
| 109 | 250 | |
| 110 | 251 | func newJSONDecoder() -> JSONDecoder { |
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
| @@ -7,10 +7,22 @@ export const ComplexUnionArrayEnum = S.Literal( | ||
| 7 | 7 | ); |
| 8 | 8 | export type ComplexUnionArrayEnum = S.Schema.Type<typeof ComplexUnionArrayEnum>; |
| 9 | 9 | |
| 10 | +export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 11 | +) {} | |
| 12 | + | |
| 13 | +export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 14 | +) {} | |
| 15 | + | |
| 16 | +export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 17 | +) {} | |
| 18 | + | |
| 10 | 19 | export class TopLevel extends S.Class<TopLevel>("TopLevel")({ |
| 11 | 20 | "complex-union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), ComplexUnionArrayEnum, S.Int)), |
| 12 | 21 | "date": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)), |
| 13 | 22 | "date-time": S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), |
| 23 | + "local-date-class": S.optional(LocalDate), | |
| 24 | + "offset-date-time-class": S.optional(OffsetDateTime), | |
| 25 | + "offset-time-class": S.optional(OffsetTime), | |
| 14 | 26 | "time": S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), |
| 15 | 27 | "union-array": S.Array(S.Union(S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}$/)), S.String.pipe(S.pattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)), S.String.pipe(S.pattern(/^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/)))), |
| 16 | 28 | }) {} |
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
| @@ -7,10 +7,25 @@ export const ComplexUnionArrayEnumSchema = z.enum([ | ||
| 7 | 7 | ]); |
| 8 | 8 | export type ComplexUnionArrayEnum = z.infer<typeof ComplexUnionArrayEnumSchema>; |
| 9 | 9 | |
| 10 | +export const LocalDateSchema = z.object({ | |
| 11 | +}); | |
| 12 | +export type LocalDate = z.infer<typeof LocalDateSchema>; | |
| 13 | + | |
| 14 | +export const OffsetDateTimeSchema = z.object({ | |
| 15 | +}); | |
| 16 | +export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>; | |
| 17 | + | |
| 18 | +export const OffsetTimeSchema = z.object({ | |
| 19 | +}); | |
| 20 | +export type OffsetTime = z.infer<typeof OffsetTimeSchema>; | |
| 21 | + | |
| 10 | 22 | export const TopLevelSchema = z.object({ |
| 11 | 23 | "complex-union-array": z.array(z.union([ComplexUnionArrayEnumSchema, z.number().int(), z.string().pipe(z.coerce.date())])), |
| 12 | 24 | "date": z.string(), |
| 13 | 25 | "date-time": z.string().pipe(z.coerce.date()), |
| 26 | + "local-date-class": LocalDateSchema.optional(), | |
| 27 | + "offset-date-time-class": OffsetDateTimeSchema.optional(), | |
| 28 | + "offset-time-class": OffsetTimeSchema.optional(), | |
| 14 | 29 | "time": z.string(), |
| 15 | 30 | "union-array": z.array(z.string()), |
| 16 | 31 | }); |
Mschema-typescriptdefault / TopLevel.ts+11 −5
| @@ -8,11 +8,14 @@ | ||
| 8 | 8 | // match the expected interface, even if the JSON is valid. |
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | - "complex-union-array": ComplexUnionArrayElement[]; | |
| 12 | - date: Date; | |
| 13 | - "date-time": Date; | |
| 14 | - time: string; | |
| 15 | - "union-array": string[]; | |
| 11 | + "complex-union-array": ComplexUnionArrayElement[]; | |
| 12 | + date: Date; | |
| 13 | + "date-time": Date; | |
| 14 | + "local-date-class"?: object; | |
| 15 | + "offset-date-time-class"?: object; | |
| 16 | + "offset-time-class"?: object; | |
| 17 | + time: string; | |
| 18 | + "union-array": string[]; | |
| 16 | 19 | } |
| 17 | 20 | |
| 18 | 21 | export type ComplexUnionArrayElement = Date | ComplexUnionArrayEnum | number; |
| @@ -210,6 +213,9 @@ const typeMap: any = { | ||
| 210 | 213 | { json: "complex-union-array", js: "complex-union-array", typ: a(u(Date, r("ComplexUnionArrayEnum"), i(0))) }, |
| 211 | 214 | { json: "date", js: "date", typ: Date }, |
| 212 | 215 | { json: "date-time", js: "date-time", typ: Date }, |
| 216 | + { json: "local-date-class", js: "local-date-class", typ: u(undefined, m("any")) }, | |
| 217 | + { json: "offset-date-time-class", js: "offset-date-time-class", typ: u(undefined, m("any")) }, | |
| 218 | + { json: "offset-time-class", js: "offset-time-class", typ: u(undefined, m("any")) }, | |
| 213 | 219 | { json: "time", js: "time", typ: "" }, |
| 214 | 220 | { json: "union-array", js: "union-array", typ: a("") }, |
| 215 | 221 | ], false), |
Test case
34 generated files · +216 −12test/inputs/schema/keyword-enum.schema
Mschema-cjsondefault / TopLevel.c+6 −0
| @@ -184,6 +184,7 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 184 | 184 | else if (!strcmp(cJSON_GetStringValue(j), "left")) x = ENUM_LEFT; |
| 185 | 185 | else if (!strcmp(cJSON_GetStringValue(j), "let")) x = ENUM_LET; |
| 186 | 186 | else if (!strcmp(cJSON_GetStringValue(j), "list")) x = ENUM_LIST; |
| 187 | + else if (!strcmp(cJSON_GetStringValue(j), "LocalDate")) x = ENUM_LOCAL_DATE; | |
| 187 | 188 | else if (!strcmp(cJSON_GetStringValue(j), "Locale")) x = ENUM_LOCALE; |
| 188 | 189 | else if (!strcmp(cJSON_GetStringValue(j), "lock")) x = ENUM_LOCK; |
| 189 | 190 | else if (!strcmp(cJSON_GetStringValue(j), "long")) x = ENUM_LONG; |
| @@ -216,6 +217,8 @@ enum Enum cJSON_GetEnumValue(const cJSON * j) { | ||
| 216 | 217 | else if (!strcmp(cJSON_GetStringValue(j), "nullptr")) x = ENUM_NULLPTR; |
| 217 | 218 | else if (!strcmp(cJSON_GetStringValue(j), "number")) x = ENUM_NUMBER; |
| 218 | 219 | else if (!strcmp(cJSON_GetStringValue(j), "object")) x = ENUM_OBJECT; |
| 220 | + else if (!strcmp(cJSON_GetStringValue(j), "OffsetDateTime")) x = ENUM_OFFSET_DATE_TIME; | |
| 221 | + else if (!strcmp(cJSON_GetStringValue(j), "OffsetTime")) x = ENUM_OFFSET_TIME; | |
| 219 | 222 | else if (!strcmp(cJSON_GetStringValue(j), "ObjectMapper")) x = ENUM_OBJECT_MAPPER; |
| 220 | 223 | else if (!strcmp(cJSON_GetStringValue(j), "of")) x = ENUM_OF; |
| 221 | 224 | else if (!strcmp(cJSON_GetStringValue(j), "oneway")) x = ENUM_ONEWAY; |
| @@ -530,6 +533,7 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 530 | 533 | case ENUM_LEFT: j = cJSON_CreateString("left"); break; |
| 531 | 534 | case ENUM_LET: j = cJSON_CreateString("let"); break; |
| 532 | 535 | case ENUM_LIST: j = cJSON_CreateString("list"); break; |
| 536 | + case ENUM_LOCAL_DATE: j = cJSON_CreateString("LocalDate"); break; | |
| 533 | 537 | case ENUM_LOCALE: j = cJSON_CreateString("Locale"); break; |
| 534 | 538 | case ENUM_LOCK: j = cJSON_CreateString("lock"); break; |
| 535 | 539 | case ENUM_LONG: j = cJSON_CreateString("long"); break; |
| @@ -562,6 +566,8 @@ cJSON * cJSON_CreateEnum(const enum Enum x) { | ||
| 562 | 566 | case ENUM_NULLPTR: j = cJSON_CreateString("nullptr"); break; |
| 563 | 567 | case ENUM_NUMBER: j = cJSON_CreateString("number"); break; |
| 564 | 568 | case ENUM_OBJECT: j = cJSON_CreateString("object"); break; |
| 569 | + case ENUM_OFFSET_DATE_TIME: j = cJSON_CreateString("OffsetDateTime"); break; | |
| 570 | + case ENUM_OFFSET_TIME: j = cJSON_CreateString("OffsetTime"); break; | |
| 565 | 571 | case ENUM_OBJECT_MAPPER: j = cJSON_CreateString("ObjectMapper"); break; |
| 566 | 572 | case ENUM_OF: j = cJSON_CreateString("of"); break; |
| 567 | 573 | case ENUM_ONEWAY: j = cJSON_CreateString("oneway"); break; |
Mschema-cjsondefault / TopLevel.h+3 −0
| @@ -225,6 +225,7 @@ enum Enum { | ||
| 225 | 225 | ENUM_LEFT, |
| 226 | 226 | ENUM_LET, |
| 227 | 227 | ENUM_LIST, |
| 228 | + ENUM_LOCAL_DATE, | |
| 228 | 229 | ENUM_LOCALE, |
| 229 | 230 | ENUM_LOCK, |
| 230 | 231 | ENUM_LONG, |
| @@ -257,6 +258,8 @@ enum Enum { | ||
| 257 | 258 | ENUM_NULLPTR, |
| 258 | 259 | ENUM_NUMBER, |
| 259 | 260 | ENUM_OBJECT, |
| 261 | + ENUM_OFFSET_DATE_TIME, | |
| 262 | + ENUM_OFFSET_TIME, | |
| 260 | 263 | ENUM_OBJECT_MAPPER, |
| 261 | 264 | ENUM_OF, |
| 262 | 265 | ENUM_ONEWAY, |
Mschema-cplusplusdefault / quicktype.hpp+7 −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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, 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, LOCAL_DATE, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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: |
| @@ -302,6 +302,7 @@ namespace quicktype { | ||
| 302 | 302 | {"left", Enum::LEFT}, |
| 303 | 303 | {"let", Enum::LET}, |
| 304 | 304 | {"list", Enum::LIST}, |
| 305 | + {"LocalDate", Enum::LOCAL_DATE}, | |
| 305 | 306 | {"Locale", Enum::LOCALE}, |
| 306 | 307 | {"lock", Enum::LOCK}, |
| 307 | 308 | {"long", Enum::LONG}, |
| @@ -334,6 +335,8 @@ namespace quicktype { | ||
| 334 | 335 | {"nullptr", Enum::NULLPTR}, |
| 335 | 336 | {"number", Enum::NUMBER}, |
| 336 | 337 | {"object", Enum::OBJECT}, |
| 338 | + {"OffsetDateTime", Enum::OFFSET_DATE_TIME}, | |
| 339 | + {"OffsetTime", Enum::OFFSET_TIME}, | |
| 337 | 340 | {"ObjectMapper", Enum::OBJECT_MAPPER}, |
| 338 | 341 | {"of", Enum::OF}, |
| 339 | 342 | {"oneway", Enum::ONEWAY}, |
| @@ -651,6 +654,7 @@ namespace quicktype { | ||
| 651 | 654 | case Enum::LEFT: j = "left"; break; |
| 652 | 655 | case Enum::LET: j = "let"; break; |
| 653 | 656 | case Enum::LIST: j = "list"; break; |
| 657 | + case Enum::LOCAL_DATE: j = "LocalDate"; break; | |
| 654 | 658 | case Enum::LOCALE: j = "Locale"; break; |
| 655 | 659 | case Enum::LOCK: j = "lock"; break; |
| 656 | 660 | case Enum::LONG: j = "long"; break; |
| @@ -683,6 +687,8 @@ namespace quicktype { | ||
| 683 | 687 | case Enum::NULLPTR: j = "nullptr"; break; |
| 684 | 688 | case Enum::NUMBER: j = "number"; break; |
| 685 | 689 | case Enum::OBJECT: j = "object"; break; |
| 690 | + case Enum::OFFSET_DATE_TIME: j = "OffsetDateTime"; break; | |
| 691 | + case Enum::OFFSET_TIME: j = "OffsetTime"; break; | |
| 686 | 692 | case Enum::OBJECT_MAPPER: j = "ObjectMapper"; break; |
| 687 | 693 | case Enum::OF: j = "of"; break; |
| 688 | 694 | case Enum::ONEWAY: j = "oneway"; break; |
Mschema-csharp-recordsdefault / QuickType.cs+16 −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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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, 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, LocalDate, 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, OffsetDateTime, OffsetTime, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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 | { |
| @@ -417,6 +417,8 @@ namespace QuickType | ||
| 417 | 417 | return Enum.Let; |
| 418 | 418 | case "list": |
| 419 | 419 | return Enum.List; |
| 420 | + case "LocalDate": | |
| 421 | + return Enum.LocalDate; | |
| 420 | 422 | case "Locale": |
| 421 | 423 | return Enum.Locale; |
| 422 | 424 | case "lock": |
| @@ -481,6 +483,10 @@ namespace QuickType | ||
| 481 | 483 | return Enum.Number; |
| 482 | 484 | case "object": |
| 483 | 485 | return Enum.Object; |
| 486 | + case "OffsetDateTime": | |
| 487 | + return Enum.OffsetDateTime; | |
| 488 | + case "OffsetTime": | |
| 489 | + return Enum.OffsetTime; | |
| 484 | 490 | case "ObjectMapper": |
| 485 | 491 | return Enum.ObjectMapper; |
| 486 | 492 | case "of": |
| @@ -1285,6 +1291,9 @@ namespace QuickType | ||
| 1285 | 1291 | case Enum.List: |
| 1286 | 1292 | serializer.Serialize(writer, "list"); |
| 1287 | 1293 | return; |
| 1294 | + case Enum.LocalDate: | |
| 1295 | + serializer.Serialize(writer, "LocalDate"); | |
| 1296 | + return; | |
| 1288 | 1297 | case Enum.Locale: |
| 1289 | 1298 | serializer.Serialize(writer, "Locale"); |
| 1290 | 1299 | return; |
| @@ -1381,6 +1390,12 @@ namespace QuickType | ||
| 1381 | 1390 | case Enum.Object: |
| 1382 | 1391 | serializer.Serialize(writer, "object"); |
| 1383 | 1392 | return; |
| 1393 | + case Enum.OffsetDateTime: | |
| 1394 | + serializer.Serialize(writer, "OffsetDateTime"); | |
| 1395 | + return; | |
| 1396 | + case Enum.OffsetTime: | |
| 1397 | + serializer.Serialize(writer, "OffsetTime"); | |
| 1398 | + return; | |
| 1384 | 1399 | case Enum.ObjectMapper: |
| 1385 | 1400 | serializer.Serialize(writer, "ObjectMapper"); |
| 1386 | 1401 | return; |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+16 −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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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, 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, LocalDate, 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, OffsetDateTime, OffsetTime, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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 | { |
| @@ -414,6 +414,8 @@ namespace QuickType | ||
| 414 | 414 | return Enum.Let; |
| 415 | 415 | case "list": |
| 416 | 416 | return Enum.List; |
| 417 | + case "LocalDate": | |
| 418 | + return Enum.LocalDate; | |
| 417 | 419 | case "Locale": |
| 418 | 420 | return Enum.Locale; |
| 419 | 421 | case "lock": |
| @@ -478,6 +480,10 @@ namespace QuickType | ||
| 478 | 480 | return Enum.Number; |
| 479 | 481 | case "object": |
| 480 | 482 | return Enum.Object; |
| 483 | + case "OffsetDateTime": | |
| 484 | + return Enum.OffsetDateTime; | |
| 485 | + case "OffsetTime": | |
| 486 | + return Enum.OffsetTime; | |
| 481 | 487 | case "ObjectMapper": |
| 482 | 488 | return Enum.ObjectMapper; |
| 483 | 489 | case "of": |
| @@ -1276,6 +1282,9 @@ namespace QuickType | ||
| 1276 | 1282 | case Enum.List: |
| 1277 | 1283 | JsonSerializer.Serialize(writer, "list", options); |
| 1278 | 1284 | return; |
| 1285 | + case Enum.LocalDate: | |
| 1286 | + JsonSerializer.Serialize(writer, "LocalDate", options); | |
| 1287 | + return; | |
| 1279 | 1288 | case Enum.Locale: |
| 1280 | 1289 | JsonSerializer.Serialize(writer, "Locale", options); |
| 1281 | 1290 | return; |
| @@ -1372,6 +1381,12 @@ namespace QuickType | ||
| 1372 | 1381 | case Enum.Object: |
| 1373 | 1382 | JsonSerializer.Serialize(writer, "object", options); |
| 1374 | 1383 | return; |
| 1384 | + case Enum.OffsetDateTime: | |
| 1385 | + JsonSerializer.Serialize(writer, "OffsetDateTime", options); | |
| 1386 | + return; | |
| 1387 | + case Enum.OffsetTime: | |
| 1388 | + JsonSerializer.Serialize(writer, "OffsetTime", options); | |
| 1389 | + return; | |
| 1375 | 1390 | case Enum.ObjectMapper: |
| 1376 | 1391 | JsonSerializer.Serialize(writer, "ObjectMapper", options); |
| 1377 | 1392 | return; |
Mschema-csharpdefault / QuickType.cs+16 −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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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, 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, LocalDate, 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, OffsetDateTime, OffsetTime, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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 | { |
| @@ -417,6 +417,8 @@ namespace QuickType | ||
| 417 | 417 | return Enum.Let; |
| 418 | 418 | case "list": |
| 419 | 419 | return Enum.List; |
| 420 | + case "LocalDate": | |
| 421 | + return Enum.LocalDate; | |
| 420 | 422 | case "Locale": |
| 421 | 423 | return Enum.Locale; |
| 422 | 424 | case "lock": |
| @@ -481,6 +483,10 @@ namespace QuickType | ||
| 481 | 483 | return Enum.Number; |
| 482 | 484 | case "object": |
| 483 | 485 | return Enum.Object; |
| 486 | + case "OffsetDateTime": | |
| 487 | + return Enum.OffsetDateTime; | |
| 488 | + case "OffsetTime": | |
| 489 | + return Enum.OffsetTime; | |
| 484 | 490 | case "ObjectMapper": |
| 485 | 491 | return Enum.ObjectMapper; |
| 486 | 492 | case "of": |
| @@ -1285,6 +1291,9 @@ namespace QuickType | ||
| 1285 | 1291 | case Enum.List: |
| 1286 | 1292 | serializer.Serialize(writer, "list"); |
| 1287 | 1293 | return; |
| 1294 | + case Enum.LocalDate: | |
| 1295 | + serializer.Serialize(writer, "LocalDate"); | |
| 1296 | + return; | |
| 1288 | 1297 | case Enum.Locale: |
| 1289 | 1298 | serializer.Serialize(writer, "Locale"); |
| 1290 | 1299 | return; |
| @@ -1381,6 +1390,12 @@ namespace QuickType | ||
| 1381 | 1390 | case Enum.Object: |
| 1382 | 1391 | serializer.Serialize(writer, "object"); |
| 1383 | 1392 | return; |
| 1393 | + case Enum.OffsetDateTime: | |
| 1394 | + serializer.Serialize(writer, "OffsetDateTime"); | |
| 1395 | + return; | |
| 1396 | + case Enum.OffsetTime: | |
| 1397 | + serializer.Serialize(writer, "OffsetTime"); | |
| 1398 | + return; | |
| 1384 | 1399 | case Enum.ObjectMapper: |
| 1385 | 1400 | serializer.Serialize(writer, "ObjectMapper"); |
| 1386 | 1401 | return; |
Mschema-dartdefault / TopLevel.dart+6 −0
| @@ -201,6 +201,7 @@ enum Enum { | ||
| 201 | 201 | LEFT, |
| 202 | 202 | LET, |
| 203 | 203 | LIST, |
| 204 | + LOCAL_DATE, | |
| 204 | 205 | LOCALE, |
| 205 | 206 | LOCK, |
| 206 | 207 | LONG, |
| @@ -233,6 +234,8 @@ enum Enum { | ||
| 233 | 234 | NULLPTR, |
| 234 | 235 | NUMBER, |
| 235 | 236 | OBJECT, |
| 237 | + OFFSET_DATE_TIME, | |
| 238 | + OFFSET_TIME, | |
| 236 | 239 | OBJECT_MAPPER, |
| 237 | 240 | OF, |
| 238 | 241 | ONEWAY, |
| @@ -543,6 +546,7 @@ final enumValues = EnumValues({ | ||
| 543 | 546 | "left": Enum.LEFT, |
| 544 | 547 | "let": Enum.LET, |
| 545 | 548 | "list": Enum.LIST, |
| 549 | + "LocalDate": Enum.LOCAL_DATE, | |
| 546 | 550 | "Locale": Enum.LOCALE, |
| 547 | 551 | "lock": Enum.LOCK, |
| 548 | 552 | "long": Enum.LONG, |
| @@ -575,6 +579,8 @@ final enumValues = EnumValues({ | ||
| 575 | 579 | "nullptr": Enum.NULLPTR, |
| 576 | 580 | "number": Enum.NUMBER, |
| 577 | 581 | "object": Enum.OBJECT, |
| 582 | + "OffsetDateTime": Enum.OFFSET_DATE_TIME, | |
| 583 | + "OffsetTime": Enum.OFFSET_TIME, | |
| 578 | 584 | "ObjectMapper": Enum.OBJECT_MAPPER, |
| 579 | 585 | "of": Enum.OF, |
| 580 | 586 | "oneway": Enum.ONEWAY, |
Mschema-elixirdefault / QuickType.ex+3 −0
| @@ -183,6 +183,7 @@ defmodule EnumEnum do | ||
| 183 | 183 | :left, |
| 184 | 184 | :let, |
| 185 | 185 | :list, |
| 186 | + :LocalDate, | |
| 186 | 187 | :Locale, |
| 187 | 188 | :lock, |
| 188 | 189 | :long, |
| @@ -215,6 +216,8 @@ defmodule EnumEnum do | ||
| 215 | 216 | :nullptr, |
| 216 | 217 | :number, |
| 217 | 218 | :object, |
| 219 | + :OffsetDateTime, | |
| 220 | + :OffsetTime, | |
| 218 | 221 | :ObjectMapper, |
| 219 | 222 | :of, |
| 220 | 223 | :oneway, |
Mschema-elmdefault / QuickType.elm+9 −0
| @@ -204,6 +204,7 @@ type EnumEnum | ||
| 204 | 204 | | Left |
| 205 | 205 | | Let |
| 206 | 206 | | EnumList |
| 207 | + | LocalDate | |
| 207 | 208 | | Locale |
| 208 | 209 | | Lock |
| 209 | 210 | | Long |
| @@ -236,6 +237,8 @@ type EnumEnum | ||
| 236 | 237 | | Nullptr |
| 237 | 238 | | Number |
| 238 | 239 | | Object |
| 240 | + | OffsetDateTime | |
| 241 | + | OffsetTime | |
| 239 | 242 | | ObjectMapper |
| 240 | 243 | | Of |
| 241 | 244 | | Oneway |
| @@ -571,6 +574,7 @@ enumEnum = | ||
| 571 | 574 | "left" -> Jdec.succeed Left |
| 572 | 575 | "let" -> Jdec.succeed Let |
| 573 | 576 | "list" -> Jdec.succeed EnumList |
| 577 | + "LocalDate" -> Jdec.succeed LocalDate | |
| 574 | 578 | "Locale" -> Jdec.succeed Locale |
| 575 | 579 | "lock" -> Jdec.succeed Lock |
| 576 | 580 | "long" -> Jdec.succeed Long |
| @@ -603,6 +607,8 @@ enumEnum = | ||
| 603 | 607 | "nullptr" -> Jdec.succeed Nullptr |
| 604 | 608 | "number" -> Jdec.succeed Number |
| 605 | 609 | "object" -> Jdec.succeed Object |
| 610 | + "OffsetDateTime" -> Jdec.succeed OffsetDateTime | |
| 611 | + "OffsetTime" -> Jdec.succeed OffsetTime | |
| 606 | 612 | "ObjectMapper" -> Jdec.succeed ObjectMapper |
| 607 | 613 | "of" -> Jdec.succeed Of |
| 608 | 614 | "oneway" -> Jdec.succeed Oneway |
| @@ -915,6 +921,7 @@ encodeEnumEnum x = case x of | ||
| 915 | 921 | Left -> Jenc.string "left" |
| 916 | 922 | Let -> Jenc.string "let" |
| 917 | 923 | EnumList -> Jenc.string "list" |
| 924 | + LocalDate -> Jenc.string "LocalDate" | |
| 918 | 925 | Locale -> Jenc.string "Locale" |
| 919 | 926 | Lock -> Jenc.string "lock" |
| 920 | 927 | Long -> Jenc.string "long" |
| @@ -947,6 +954,8 @@ encodeEnumEnum x = case x of | ||
| 947 | 954 | Nullptr -> Jenc.string "nullptr" |
| 948 | 955 | Number -> Jenc.string "number" |
| 949 | 956 | Object -> Jenc.string "object" |
| 957 | + OffsetDateTime -> Jenc.string "OffsetDateTime" | |
| 958 | + OffsetTime -> Jenc.string "OffsetTime" | |
| 950 | 959 | ObjectMapper -> Jenc.string "ObjectMapper" |
| 951 | 960 | Of -> Jenc.string "of" |
| 952 | 961 | Oneway -> Jenc.string "oneway" |
Mschema-flowdefault / TopLevel.js+6 −0
| @@ -191,6 +191,7 @@ export type Enum = | ||
| 191 | 191 | | "left" |
| 192 | 192 | | "let" |
| 193 | 193 | | "list" |
| 194 | + | "LocalDate" | |
| 194 | 195 | | "Locale" |
| 195 | 196 | | "lock" |
| 196 | 197 | | "long" |
| @@ -223,6 +224,8 @@ export type Enum = | ||
| 223 | 224 | | "nullptr" |
| 224 | 225 | | "number" |
| 225 | 226 | | "object" |
| 227 | + | "OffsetDateTime" | |
| 228 | + | "OffsetTime" | |
| 226 | 229 | | "ObjectMapper" |
| 227 | 230 | | "of" |
| 228 | 231 | | "oneway" |
| @@ -720,6 +723,7 @@ const typeMap: any = { | ||
| 720 | 723 | "left", |
| 721 | 724 | "let", |
| 722 | 725 | "list", |
| 726 | + "LocalDate", | |
| 723 | 727 | "Locale", |
| 724 | 728 | "lock", |
| 725 | 729 | "long", |
| @@ -752,6 +756,8 @@ const typeMap: any = { | ||
| 752 | 756 | "nullptr", |
| 753 | 757 | "number", |
| 754 | 758 | "object", |
| 759 | + "OffsetDateTime", | |
| 760 | + "OffsetTime", | |
| 755 | 761 | "ObjectMapper", |
| 756 | 762 | "of", |
| 757 | 763 | "oneway", |
Mschema-golangdefault / quicktype.go+4 −1
| @@ -201,6 +201,7 @@ const ( | ||
| 201 | 201 | Left EnumEnum = "left" |
| 202 | 202 | Let EnumEnum = "let" |
| 203 | 203 | List EnumEnum = "list" |
| 204 | + LocalDate EnumEnum = "LocalDate" | |
| 204 | 205 | Locale EnumEnum = "Locale" |
| 205 | 206 | Lock EnumEnum = "lock" |
| 206 | 207 | Long EnumEnum = "long" |
| @@ -233,6 +234,8 @@ const ( | ||
| 233 | 234 | Nullptr EnumEnum = "nullptr" |
| 234 | 235 | Number EnumEnum = "number" |
| 235 | 236 | Object EnumEnum = "object" |
| 237 | + OffsetDateTime EnumEnum = "OffsetDateTime" | |
| 238 | + OffsetTime EnumEnum = "OffsetTime" | |
| 236 | 239 | ObjectMapper EnumEnum = "ObjectMapper" |
| 237 | 240 | Of EnumEnum = "of" |
| 238 | 241 | Oneway EnumEnum = "oneway" |
| @@ -373,7 +376,7 @@ func (x *EnumEnum) UnmarshalJSON(data []byte) error { | ||
| 373 | 376 | var value string |
| 374 | 377 | if err := json.Unmarshal(data, &value); err != nil { return err } |
| 375 | 378 | switch EnumEnum(value) { |
| 376 | - 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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 | |
| 379 | + 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, LocalDate, 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, OffsetDateTime, OffsetTime, 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, Serializable, EnumSelf, Sendable, Serialize, SerialName, KSerializer, PrimitiveKind, SerialDescriptor, 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, UseSerializers, 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 | |
| 377 | 380 | } |
| 378 | 381 | return invalidEnumEnum(value) |
| 379 | 382 | } |
Mschema-haskelldefault / QuickType.hs+9 −0
| @@ -194,6 +194,7 @@ data EnumEnum | ||
| 194 | 194 | | LeftEnumEnum |
| 195 | 195 | | LetEnumEnum |
| 196 | 196 | | ListEnumEnum |
| 197 | + | LocalDateEnumEnum | |
| 197 | 198 | | LocaleEnumEnum |
| 198 | 199 | | LockEnumEnum |
| 199 | 200 | | LongEnumEnum |
| @@ -226,6 +227,8 @@ data EnumEnum | ||
| 226 | 227 | | NullptrEnumEnum |
| 227 | 228 | | NumberEnumEnum |
| 228 | 229 | | ObjectEnumEnum |
| 230 | + | OffsetDateTimeEnumEnum | |
| 231 | + | OffsetTimeEnumEnum | |
| 229 | 232 | | ObjectMapperEnumEnum |
| 230 | 233 | | OfEnumEnum |
| 231 | 234 | | OnewayEnumEnum |
| @@ -549,6 +552,7 @@ instance ToJSON EnumEnum where | ||
| 549 | 552 | toJSON LeftEnumEnum = "left" |
| 550 | 553 | toJSON LetEnumEnum = "let" |
| 551 | 554 | toJSON ListEnumEnum = "list" |
| 555 | + toJSON LocalDateEnumEnum = "LocalDate" | |
| 552 | 556 | toJSON LocaleEnumEnum = "Locale" |
| 553 | 557 | toJSON LockEnumEnum = "lock" |
| 554 | 558 | toJSON LongEnumEnum = "long" |
| @@ -581,6 +585,8 @@ instance ToJSON EnumEnum where | ||
| 581 | 585 | toJSON NullptrEnumEnum = "nullptr" |
| 582 | 586 | toJSON NumberEnumEnum = "number" |
| 583 | 587 | toJSON ObjectEnumEnum = "object" |
| 588 | + toJSON OffsetDateTimeEnumEnum = "OffsetDateTime" | |
| 589 | + toJSON OffsetTimeEnumEnum = "OffsetTime" | |
| 584 | 590 | toJSON ObjectMapperEnumEnum = "ObjectMapper" |
| 585 | 591 | toJSON OfEnumEnum = "of" |
| 586 | 592 | toJSON OnewayEnumEnum = "oneway" |
| @@ -892,6 +898,7 @@ instance FromJSON EnumEnum where | ||
| 892 | 898 | parseText "left" = return LeftEnumEnum |
| 893 | 899 | parseText "let" = return LetEnumEnum |
| 894 | 900 | parseText "list" = return ListEnumEnum |
| 901 | + parseText "LocalDate" = return LocalDateEnumEnum | |
| 895 | 902 | parseText "Locale" = return LocaleEnumEnum |
| 896 | 903 | parseText "lock" = return LockEnumEnum |
| 897 | 904 | parseText "long" = return LongEnumEnum |
| @@ -924,6 +931,8 @@ instance FromJSON EnumEnum where | ||
| 924 | 931 | parseText "nullptr" = return NullptrEnumEnum |
| 925 | 932 | parseText "number" = return NumberEnumEnum |
| 926 | 933 | parseText "object" = return ObjectEnumEnum |
| 934 | + parseText "OffsetDateTime" = return OffsetDateTimeEnumEnum | |
| 935 | + parseText "OffsetTime" = return OffsetTimeEnumEnum | |
| 927 | 936 | parseText "ObjectMapper" = return ObjectMapperEnumEnum |
| 928 | 937 | parseText "of" = return OfEnumEnum |
| 929 | 938 | parseText "oneway" = return OnewayEnumEnum |
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / Enum.java+7 −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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, 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, LOCAL_DATE, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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() { |
| @@ -185,6 +185,7 @@ public enum Enum { | ||
| 185 | 185 | case LEFT: return "left"; |
| 186 | 186 | case LET: return "let"; |
| 187 | 187 | case LIST: return "list"; |
| 188 | + case LOCAL_DATE: return "LocalDate"; | |
| 188 | 189 | case LOCALE: return "Locale"; |
| 189 | 190 | case LOCK: return "lock"; |
| 190 | 191 | case LONG: return "long"; |
| @@ -217,6 +218,8 @@ public enum Enum { | ||
| 217 | 218 | case NULLPTR: return "nullptr"; |
| 218 | 219 | case NUMBER: return "number"; |
| 219 | 220 | case OBJECT: return "object"; |
| 221 | + case OFFSET_DATE_TIME: return "OffsetDateTime"; | |
| 222 | + case OFFSET_TIME: return "OffsetTime"; | |
| 220 | 223 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 221 | 224 | case OF: return "of"; |
| 222 | 225 | case ONEWAY: return "oneway"; |
| @@ -530,6 +533,7 @@ public enum Enum { | ||
| 530 | 533 | if (value.equals("left")) return LEFT; |
| 531 | 534 | if (value.equals("let")) return LET; |
| 532 | 535 | if (value.equals("list")) return LIST; |
| 536 | + if (value.equals("LocalDate")) return LOCAL_DATE; | |
| 533 | 537 | if (value.equals("Locale")) return LOCALE; |
| 534 | 538 | if (value.equals("lock")) return LOCK; |
| 535 | 539 | if (value.equals("long")) return LONG; |
| @@ -562,6 +566,8 @@ public enum Enum { | ||
| 562 | 566 | if (value.equals("nullptr")) return NULLPTR; |
| 563 | 567 | if (value.equals("number")) return NUMBER; |
| 564 | 568 | if (value.equals("object")) return OBJECT; |
| 569 | + if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME; | |
| 570 | + if (value.equals("OffsetTime")) return OFFSET_TIME; | |
| 565 | 571 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 566 | 572 | if (value.equals("of")) return OF; |
| 567 | 573 | if (value.equals("oneway")) return ONEWAY; |
Mschema-java-lombokdefault / src / main / java / io / quicktype / Enum.java+7 −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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, 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, LOCAL_DATE, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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() { |
| @@ -185,6 +185,7 @@ public enum Enum { | ||
| 185 | 185 | case LEFT: return "left"; |
| 186 | 186 | case LET: return "let"; |
| 187 | 187 | case LIST: return "list"; |
| 188 | + case LOCAL_DATE: return "LocalDate"; | |
| 188 | 189 | case LOCALE: return "Locale"; |
| 189 | 190 | case LOCK: return "lock"; |
| 190 | 191 | case LONG: return "long"; |
| @@ -217,6 +218,8 @@ public enum Enum { | ||
| 217 | 218 | case NULLPTR: return "nullptr"; |
| 218 | 219 | case NUMBER: return "number"; |
| 219 | 220 | case OBJECT: return "object"; |
| 221 | + case OFFSET_DATE_TIME: return "OffsetDateTime"; | |
| 222 | + case OFFSET_TIME: return "OffsetTime"; | |
| 220 | 223 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 221 | 224 | case OF: return "of"; |
| 222 | 225 | case ONEWAY: return "oneway"; |
| @@ -530,6 +533,7 @@ public enum Enum { | ||
| 530 | 533 | if (value.equals("left")) return LEFT; |
| 531 | 534 | if (value.equals("let")) return LET; |
| 532 | 535 | if (value.equals("list")) return LIST; |
| 536 | + if (value.equals("LocalDate")) return LOCAL_DATE; | |
| 533 | 537 | if (value.equals("Locale")) return LOCALE; |
| 534 | 538 | if (value.equals("lock")) return LOCK; |
| 535 | 539 | if (value.equals("long")) return LONG; |
| @@ -562,6 +566,8 @@ public enum Enum { | ||
| 562 | 566 | if (value.equals("nullptr")) return NULLPTR; |
| 563 | 567 | if (value.equals("number")) return NUMBER; |
| 564 | 568 | if (value.equals("object")) return OBJECT; |
| 569 | + if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME; | |
| 570 | + if (value.equals("OffsetTime")) return OFFSET_TIME; | |
| 565 | 571 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 566 | 572 | if (value.equals("of")) return OF; |
| 567 | 573 | if (value.equals("oneway")) return ONEWAY; |
Mschema-javadefault / src / main / java / io / quicktype / Enum.java+7 −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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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, 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, LOCAL_DATE, 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, OFFSET_DATE_TIME, OFFSET_TIME, 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, SERIALIZABLE, ENUM_SELF, SENDABLE, SERIALIZE, SERIAL_NAME, K_SERIALIZER, PRIMITIVE_KIND, SERIAL_DESCRIPTOR, 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, USE_SERIALIZERS, 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() { |
| @@ -185,6 +185,7 @@ public enum Enum { | ||
| 185 | 185 | case LEFT: return "left"; |
| 186 | 186 | case LET: return "let"; |
| 187 | 187 | case LIST: return "list"; |
| 188 | + case LOCAL_DATE: return "LocalDate"; | |
| 188 | 189 | case LOCALE: return "Locale"; |
| 189 | 190 | case LOCK: return "lock"; |
| 190 | 191 | case LONG: return "long"; |
| @@ -217,6 +218,8 @@ public enum Enum { | ||
| 217 | 218 | case NULLPTR: return "nullptr"; |
| 218 | 219 | case NUMBER: return "number"; |
| 219 | 220 | case OBJECT: return "object"; |
| 221 | + case OFFSET_DATE_TIME: return "OffsetDateTime"; | |
| 222 | + case OFFSET_TIME: return "OffsetTime"; | |
| 220 | 223 | case OBJECT_MAPPER: return "ObjectMapper"; |
| 221 | 224 | case OF: return "of"; |
| 222 | 225 | case ONEWAY: return "oneway"; |
| @@ -530,6 +533,7 @@ public enum Enum { | ||
| 530 | 533 | if (value.equals("left")) return LEFT; |
| 531 | 534 | if (value.equals("let")) return LET; |
| 532 | 535 | if (value.equals("list")) return LIST; |
| 536 | + if (value.equals("LocalDate")) return LOCAL_DATE; | |
| 533 | 537 | if (value.equals("Locale")) return LOCALE; |
| 534 | 538 | if (value.equals("lock")) return LOCK; |
| 535 | 539 | if (value.equals("long")) return LONG; |
| @@ -562,6 +566,8 @@ public enum Enum { | ||
| 562 | 566 | if (value.equals("nullptr")) return NULLPTR; |
| 563 | 567 | if (value.equals("number")) return NUMBER; |
| 564 | 568 | if (value.equals("object")) return OBJECT; |
| 569 | + if (value.equals("OffsetDateTime")) return OFFSET_DATE_TIME; | |
| 570 | + if (value.equals("OffsetTime")) return OFFSET_TIME; | |
| 565 | 571 | if (value.equals("ObjectMapper")) return OBJECT_MAPPER; |
| 566 | 572 | if (value.equals("of")) return OF; |
| 567 | 573 | if (value.equals("oneway")) return ONEWAY; |
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', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', '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', 'UseSerializers', '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', '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', 'LocalDate', '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', 'OffsetDateTime', 'OffsetTime', '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', 'Serializable', 'self', 'Sendable', 'serialize', 'SerialName', 'KSerializer', 'PrimitiveKind', 'SerialDescriptor', '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', 'UseSerializers', '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+3 −0
| @@ -372,6 +372,7 @@ const typeMap = { | ||
| 372 | 372 | "left", |
| 373 | 373 | "let", |
| 374 | 374 | "list", |
| 375 | + "LocalDate", | |
| 375 | 376 | "Locale", |
| 376 | 377 | "lock", |
| 377 | 378 | "long", |
| @@ -404,6 +405,8 @@ const typeMap = { | ||
| 404 | 405 | "nullptr", |
| 405 | 406 | "number", |
| 406 | 407 | "object", |
| 408 | + "OffsetDateTime", | |
| 409 | + "OffsetTime", | |
| 407 | 410 | "ObjectMapper", |
| 408 | 411 | "of", |
| 409 | 412 | "oneway", |
Mschema-kotlin-jacksondefault / TopLevel.kt+6 −0
| @@ -217,6 +217,7 @@ enum class EnumEnum(val value: String) { | ||
| 217 | 217 | Left("left"), |
| 218 | 218 | Let("let"), |
| 219 | 219 | EnumList("list"), |
| 220 | + LocalDate("LocalDate"), | |
| 220 | 221 | Locale("Locale"), |
| 221 | 222 | Lock("lock"), |
| 222 | 223 | EnumLong("long"), |
| @@ -249,6 +250,8 @@ enum class EnumEnum(val value: String) { | ||
| 249 | 250 | Nullptr("nullptr"), |
| 250 | 251 | Number("number"), |
| 251 | 252 | Object("object"), |
| 253 | + OffsetDateTime("OffsetDateTime"), | |
| 254 | + OffsetTime("OffsetTime"), | |
| 252 | 255 | EnumObjectMapper("ObjectMapper"), |
| 253 | 256 | Of("of"), |
| 254 | 257 | Oneway("oneway"), |
| @@ -559,6 +562,7 @@ enum class EnumEnum(val value: String) { | ||
| 559 | 562 | "left" -> Left |
| 560 | 563 | "let" -> Let |
| 561 | 564 | "list" -> EnumList |
| 565 | + "LocalDate" -> LocalDate | |
| 562 | 566 | "Locale" -> Locale |
| 563 | 567 | "lock" -> Lock |
| 564 | 568 | "long" -> EnumLong |
| @@ -591,6 +595,8 @@ enum class EnumEnum(val value: String) { | ||
| 591 | 595 | "nullptr" -> Nullptr |
| 592 | 596 | "number" -> Number |
| 593 | 597 | "object" -> Object |
| 598 | + "OffsetDateTime" -> OffsetDateTime | |
| 599 | + "OffsetTime" -> OffsetTime | |
| 594 | 600 | "ObjectMapper" -> EnumObjectMapper |
| 595 | 601 | "of" -> Of |
| 596 | 602 | "oneway" -> Oneway |
Mschema-kotlindefault / TopLevel.kt+6 −0
| @@ -204,6 +204,7 @@ enum class EnumEnum(val value: String) { | ||
| 204 | 204 | Left("left"), |
| 205 | 205 | Let("let"), |
| 206 | 206 | EnumList("list"), |
| 207 | + LocalDate("LocalDate"), | |
| 207 | 208 | Locale("Locale"), |
| 208 | 209 | Lock("lock"), |
| 209 | 210 | EnumLong("long"), |
| @@ -236,6 +237,8 @@ enum class EnumEnum(val value: String) { | ||
| 236 | 237 | Nullptr("nullptr"), |
| 237 | 238 | Number("number"), |
| 238 | 239 | Object("object"), |
| 240 | + OffsetDateTime("OffsetDateTime"), | |
| 241 | + OffsetTime("OffsetTime"), | |
| 239 | 242 | ObjectMapper("ObjectMapper"), |
| 240 | 243 | Of("of"), |
| 241 | 244 | Oneway("oneway"), |
| @@ -546,6 +549,7 @@ enum class EnumEnum(val value: String) { | ||
| 546 | 549 | "left" -> Left |
| 547 | 550 | "let" -> Let |
| 548 | 551 | "list" -> EnumList |
| 552 | + "LocalDate" -> LocalDate | |
| 549 | 553 | "Locale" -> Locale |
| 550 | 554 | "lock" -> Lock |
| 551 | 555 | "long" -> EnumLong |
| @@ -578,6 +582,8 @@ enum class EnumEnum(val value: String) { | ||
| 578 | 582 | "nullptr" -> Nullptr |
| 579 | 583 | "number" -> Number |
| 580 | 584 | "object" -> Object |
| 585 | + "OffsetDateTime" -> OffsetDateTime | |
| 586 | + "OffsetTime" -> OffsetTime | |
| 581 | 587 | "ObjectMapper" -> ObjectMapper |
| 582 | 588 | "of" -> Of |
| 583 | 589 | "oneway" -> Oneway |
Mschema-kotlinxdefault / TopLevel.kt+3 −0
| @@ -193,6 +193,7 @@ enum class EnumEnum(val value: String) { | ||
| 193 | 193 | @SerialName("left") Left("left"), |
| 194 | 194 | @SerialName("let") Let("let"), |
| 195 | 195 | @SerialName("list") EnumList("list"), |
| 196 | + @SerialName("LocalDate") LocalDate("LocalDate"), | |
| 196 | 197 | @SerialName("Locale") Locale("Locale"), |
| 197 | 198 | @SerialName("lock") Lock("lock"), |
| 198 | 199 | @SerialName("long") EnumLong("long"), |
| @@ -225,6 +226,8 @@ enum class EnumEnum(val value: String) { | ||
| 225 | 226 | @SerialName("nullptr") Nullptr("nullptr"), |
| 226 | 227 | @SerialName("number") Number("number"), |
| 227 | 228 | @SerialName("object") Object("object"), |
| 229 | + @SerialName("OffsetDateTime") OffsetDateTime("OffsetDateTime"), | |
| 230 | + @SerialName("OffsetTime") OffsetTime("OffsetTime"), | |
| 228 | 231 | @SerialName("ObjectMapper") ObjectMapper("ObjectMapper"), |
| 229 | 232 | @SerialName("of") Of("of"), |
| 230 | 233 | @SerialName("oneway") Oneway("oneway"), |
Mschema-objective-cdefault / QTTopLevel.h+3 −0
| @@ -191,6 +191,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 191 | 191 | + (QTEnum *)left; |
| 192 | 192 | + (QTEnum *)let; |
| 193 | 193 | + (QTEnum *)list; |
| 194 | ++ (QTEnum *)localDate; | |
| 194 | 195 | + (QTEnum *)locale; |
| 195 | 196 | + (QTEnum *)lock; |
| 196 | 197 | + (QTEnum *)enumLong; |
| @@ -223,6 +224,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 223 | 224 | + (QTEnum *)nullptr; |
| 224 | 225 | + (QTEnum *)number; |
| 225 | 226 | + (QTEnum *)object; |
| 227 | ++ (QTEnum *)offsetDateTime; | |
| 228 | ++ (QTEnum *)offsetTime; | |
| 226 | 229 | + (QTEnum *)objectMapper; |
| 227 | 230 | + (QTEnum *)of; |
| 228 | 231 | + (QTEnum *)oneway; |
Mschema-objective-cdefault / QTTopLevel.m+6 −0
| @@ -194,6 +194,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 194 | 194 | @"left": [[QTEnum alloc] initWithValue:@"left"], |
| 195 | 195 | @"let": [[QTEnum alloc] initWithValue:@"let"], |
| 196 | 196 | @"list": [[QTEnum alloc] initWithValue:@"list"], |
| 197 | + @"LocalDate": [[QTEnum alloc] initWithValue:@"LocalDate"], | |
| 197 | 198 | @"Locale": [[QTEnum alloc] initWithValue:@"Locale"], |
| 198 | 199 | @"lock": [[QTEnum alloc] initWithValue:@"lock"], |
| 199 | 200 | @"long": [[QTEnum alloc] initWithValue:@"long"], |
| @@ -226,6 +227,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 226 | 227 | @"nullptr": [[QTEnum alloc] initWithValue:@"nullptr"], |
| 227 | 228 | @"number": [[QTEnum alloc] initWithValue:@"number"], |
| 228 | 229 | @"object": [[QTEnum alloc] initWithValue:@"object"], |
| 230 | + @"OffsetDateTime": [[QTEnum alloc] initWithValue:@"OffsetDateTime"], | |
| 231 | + @"OffsetTime": [[QTEnum alloc] initWithValue:@"OffsetTime"], | |
| 229 | 232 | @"ObjectMapper": [[QTEnum alloc] initWithValue:@"ObjectMapper"], |
| 230 | 233 | @"of": [[QTEnum alloc] initWithValue:@"of"], |
| 231 | 234 | @"oneway": [[QTEnum alloc] initWithValue:@"oneway"], |
| @@ -536,6 +539,7 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 536 | 539 | + (QTEnum *)left { return QTEnum.values[@"left"]; } |
| 537 | 540 | + (QTEnum *)let { return QTEnum.values[@"let"]; } |
| 538 | 541 | + (QTEnum *)list { return QTEnum.values[@"list"]; } |
| 542 | ++ (QTEnum *)localDate { return QTEnum.values[@"LocalDate"]; } | |
| 539 | 543 | + (QTEnum *)locale { return QTEnum.values[@"Locale"]; } |
| 540 | 544 | + (QTEnum *)lock { return QTEnum.values[@"lock"]; } |
| 541 | 545 | + (QTEnum *)enumLong { return QTEnum.values[@"long"]; } |
| @@ -568,6 +572,8 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 568 | 572 | + (QTEnum *)nullptr { return QTEnum.values[@"nullptr"]; } |
| 569 | 573 | + (QTEnum *)number { return QTEnum.values[@"number"]; } |
| 570 | 574 | + (QTEnum *)object { return QTEnum.values[@"object"]; } |
| 575 | ++ (QTEnum *)offsetDateTime { return QTEnum.values[@"OffsetDateTime"]; } | |
| 576 | ++ (QTEnum *)offsetTime { return QTEnum.values[@"OffsetTime"]; } | |
| 571 | 577 | + (QTEnum *)objectMapper { return QTEnum.values[@"ObjectMapper"]; } |
| 572 | 578 | + (QTEnum *)of { return QTEnum.values[@"of"]; } |
| 573 | 579 | + (QTEnum *)oneway { return QTEnum.values[@"oneway"]; } |
Mschema-phpdefault / TopLevel.php+12 −0
| @@ -289,6 +289,7 @@ class EnumEnum { | ||
| 289 | 289 | public static EnumEnum $LEFT; |
| 290 | 290 | public static EnumEnum $LET; |
| 291 | 291 | public static EnumEnum $LIST; |
| 292 | + public static EnumEnum $LOCAL_DATE; | |
| 292 | 293 | public static EnumEnum $LOCALE; |
| 293 | 294 | public static EnumEnum $LOCK; |
| 294 | 295 | public static EnumEnum $LONG; |
| @@ -321,6 +322,8 @@ class EnumEnum { | ||
| 321 | 322 | public static EnumEnum $NULLPTR; |
| 322 | 323 | public static EnumEnum $NUMBER; |
| 323 | 324 | public static EnumEnum $OBJECT; |
| 325 | + public static EnumEnum $OFFSET_DATE_TIME; | |
| 326 | + public static EnumEnum $OFFSET_TIME; | |
| 324 | 327 | public static EnumEnum $OBJECT_MAPPER; |
| 325 | 328 | public static EnumEnum $OF; |
| 326 | 329 | public static EnumEnum $ONEWAY; |
| @@ -629,6 +632,7 @@ class EnumEnum { | ||
| 629 | 632 | EnumEnum::$LEFT = new EnumEnum('left'); |
| 630 | 633 | EnumEnum::$LET = new EnumEnum('let'); |
| 631 | 634 | EnumEnum::$LIST = new EnumEnum('list'); |
| 635 | + EnumEnum::$LOCAL_DATE = new EnumEnum('LocalDate'); | |
| 632 | 636 | EnumEnum::$LOCALE = new EnumEnum('Locale'); |
| 633 | 637 | EnumEnum::$LOCK = new EnumEnum('lock'); |
| 634 | 638 | EnumEnum::$LONG = new EnumEnum('long'); |
| @@ -661,6 +665,8 @@ class EnumEnum { | ||
| 661 | 665 | EnumEnum::$NULLPTR = new EnumEnum('nullptr'); |
| 662 | 666 | EnumEnum::$NUMBER = new EnumEnum('number'); |
| 663 | 667 | EnumEnum::$OBJECT = new EnumEnum('object'); |
| 668 | + EnumEnum::$OFFSET_DATE_TIME = new EnumEnum('OffsetDateTime'); | |
| 669 | + EnumEnum::$OFFSET_TIME = new EnumEnum('OffsetTime'); | |
| 664 | 670 | EnumEnum::$OBJECT_MAPPER = new EnumEnum('ObjectMapper'); |
| 665 | 671 | EnumEnum::$OF = new EnumEnum('of'); |
| 666 | 672 | EnumEnum::$ONEWAY = new EnumEnum('oneway'); |
| @@ -981,6 +987,7 @@ class EnumEnum { | ||
| 981 | 987 | case EnumEnum::$LEFT->enum: return 'left'; |
| 982 | 988 | case EnumEnum::$LET->enum: return 'let'; |
| 983 | 989 | case EnumEnum::$LIST->enum: return 'list'; |
| 990 | + case EnumEnum::$LOCAL_DATE->enum: return 'LocalDate'; | |
| 984 | 991 | case EnumEnum::$LOCALE->enum: return 'Locale'; |
| 985 | 992 | case EnumEnum::$LOCK->enum: return 'lock'; |
| 986 | 993 | case EnumEnum::$LONG->enum: return 'long'; |
| @@ -1013,6 +1020,8 @@ class EnumEnum { | ||
| 1013 | 1020 | case EnumEnum::$NULLPTR->enum: return 'nullptr'; |
| 1014 | 1021 | case EnumEnum::$NUMBER->enum: return 'number'; |
| 1015 | 1022 | case EnumEnum::$OBJECT->enum: return 'object'; |
| 1023 | + case EnumEnum::$OFFSET_DATE_TIME->enum: return 'OffsetDateTime'; | |
| 1024 | + case EnumEnum::$OFFSET_TIME->enum: return 'OffsetTime'; | |
| 1016 | 1025 | case EnumEnum::$OBJECT_MAPPER->enum: return 'ObjectMapper'; |
| 1017 | 1026 | case EnumEnum::$OF->enum: return 'of'; |
| 1018 | 1027 | case EnumEnum::$ONEWAY->enum: return 'oneway'; |
| @@ -1331,6 +1340,7 @@ class EnumEnum { | ||
| 1331 | 1340 | case 'left': return EnumEnum::$LEFT; |
| 1332 | 1341 | case 'let': return EnumEnum::$LET; |
| 1333 | 1342 | case 'list': return EnumEnum::$LIST; |
| 1343 | + case 'LocalDate': return EnumEnum::$LOCAL_DATE; | |
| 1334 | 1344 | case 'Locale': return EnumEnum::$LOCALE; |
| 1335 | 1345 | case 'lock': return EnumEnum::$LOCK; |
| 1336 | 1346 | case 'long': return EnumEnum::$LONG; |
| @@ -1363,6 +1373,8 @@ class EnumEnum { | ||
| 1363 | 1373 | case 'nullptr': return EnumEnum::$NULLPTR; |
| 1364 | 1374 | case 'number': return EnumEnum::$NUMBER; |
| 1365 | 1375 | case 'object': return EnumEnum::$OBJECT; |
| 1376 | + case 'OffsetDateTime': return EnumEnum::$OFFSET_DATE_TIME; | |
| 1377 | + case 'OffsetTime': return EnumEnum::$OFFSET_TIME; | |
| 1366 | 1378 | case 'ObjectMapper': return EnumEnum::$OBJECT_MAPPER; |
| 1367 | 1379 | case 'of': return EnumEnum::$OF; |
| 1368 | 1380 | case 'oneway': return EnumEnum::$ONEWAY; |
Mschema-pikedefault / TopLevel.pmod+4 −1
| @@ -209,6 +209,7 @@ enum Enum { | ||
| 209 | 209 | LEFT = "left", // json: "left" |
| 210 | 210 | LET = "let", // json: "let" |
| 211 | 211 | LIST = "list", // json: "list" |
| 212 | + LOCAL_DATE = "LocalDate", // json: "LocalDate" | |
| 212 | 213 | LOCALE = "Locale", // json: "Locale" |
| 213 | 214 | LOCK = "lock", // json: "lock" |
| 214 | 215 | LONG = "long", // json: "long" |
| @@ -241,6 +242,8 @@ enum Enum { | ||
| 241 | 242 | NULLPTR = "nullptr", // json: "nullptr" |
| 242 | 243 | NUMBER = "number", // json: "number" |
| 243 | 244 | OBJECT = "object", // json: "object" |
| 245 | + OFFSET_DATE_TIME = "OffsetDateTime", // json: "OffsetDateTime" | |
| 246 | + OFFSET_TIME = "OffsetTime", // json: "OffsetTime" | |
| 244 | 247 | OBJECT_MAPPER = "ObjectMapper", // json: "ObjectMapper" |
| 245 | 248 | OF = "of", // json: "of" |
| 246 | 249 | ONEWAY = "oneway", // json: "oneway" |
| @@ -375,5 +378,5 @@ enum Enum { | ||
| 375 | 378 | } |
| 376 | 379 | |
| 377 | 380 | Enum Enum_from_JSON(mixed json) { |
| 378 | - 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 != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&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 != "UseSerializers"&&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; | |
| 381 | + 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 != "LocalDate"&&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 != "OffsetDateTime"&&json != "OffsetTime"&&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 != "Serializable"&&json != "self"&&json != "Sendable"&&json != "serialize"&&json != "SerialName"&&json != "KSerializer"&&json != "PrimitiveKind"&&json != "SerialDescriptor"&&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 != "UseSerializers"&&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; | |
| 379 | 382 | } |
Mschema-pythondefault / quicktype.py+3 −0
| @@ -208,6 +208,7 @@ class EnumEnum(Enum): | ||
| 208 | 208 | LEFT = "left" |
| 209 | 209 | LET = "let" |
| 210 | 210 | LIST = "list" |
| 211 | + LOCAL_DATE = "LocalDate" | |
| 211 | 212 | LOCALE = "Locale" |
| 212 | 213 | LOCK = "lock" |
| 213 | 214 | LONG = "long" |
| @@ -240,6 +241,8 @@ class EnumEnum(Enum): | ||
| 240 | 241 | NULLPTR = "nullptr" |
| 241 | 242 | NUMBER = "number" |
| 242 | 243 | OBJECT = "object" |
| 244 | + OFFSET_DATE_TIME = "OffsetDateTime" | |
| 245 | + OFFSET_TIME = "OffsetTime" | |
| 243 | 246 | OBJECT_MAPPER = "ObjectMapper" |
| 244 | 247 | OF = "of" |
| 245 | 248 | ONEWAY = "oneway" |
Mschema-rubydefault / TopLevel.rb+4 −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", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "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", "UseSerializers", "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", "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", "LocalDate", "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", "OffsetDateTime", "OffsetTime", "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", "Serializable", "self", "Sendable", "serialize", "SerialName", "KSerializer", "PrimitiveKind", "SerialDescriptor", "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", "UseSerializers", "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 |
| @@ -197,6 +197,7 @@ module Enum | ||
| 197 | 197 | Left = "left" |
| 198 | 198 | Let = "let" |
| 199 | 199 | List = "list" |
| 200 | + LocalDate = "LocalDate" | |
| 200 | 201 | Locale = "Locale" |
| 201 | 202 | Lock = "lock" |
| 202 | 203 | Long = "long" |
| @@ -229,6 +230,8 @@ module Enum | ||
| 229 | 230 | Nullptr = "nullptr" |
| 230 | 231 | Number = "number" |
| 231 | 232 | Object = "object" |
| 233 | + OffsetDateTime = "OffsetDateTime" | |
| 234 | + OffsetTime = "OffsetTime" | |
| 232 | 235 | ObjectMapper = "ObjectMapper" |
| 233 | 236 | Of = "of" |
| 234 | 237 | Oneway = "oneway" |
Mschema-rustdefault / module_under_test.rs+9 −0
| @@ -437,6 +437,9 @@ pub enum Enum { | ||
| 437 | 437 | |
| 438 | 438 | List, |
| 439 | 439 | |
| 440 | + #[serde(rename = "LocalDate")] | |
| 441 | + LocalDate, | |
| 442 | + | |
| 440 | 443 | #[serde(rename = "Locale")] |
| 441 | 444 | Locale, |
| 442 | 445 | |
| @@ -514,6 +517,12 @@ pub enum Enum { | ||
| 514 | 517 | |
| 515 | 518 | Object, |
| 516 | 519 | |
| 520 | + #[serde(rename = "OffsetDateTime")] | |
| 521 | + OffsetDateTime, | |
| 522 | + | |
| 523 | + #[serde(rename = "OffsetTime")] | |
| 524 | + OffsetTime, | |
| 525 | + | |
| 517 | 526 | #[serde(rename = "ObjectMapper")] |
| 518 | 527 | ObjectMapper, |
Mschema-scala3-upickledefault / TopLevel.scala+9 −0
| @@ -259,6 +259,7 @@ enum EnumEnum : | ||
| 259 | 259 | case Left |
| 260 | 260 | case Let |
| 261 | 261 | case EnumList |
| 262 | + case LocalDate | |
| 262 | 263 | case Locale |
| 263 | 264 | case Lock |
| 264 | 265 | case EnumLong |
| @@ -291,6 +292,8 @@ enum EnumEnum : | ||
| 291 | 292 | case Nullptr |
| 292 | 293 | case Number |
| 293 | 294 | case Object |
| 295 | + case OffsetDateTime | |
| 296 | + case OffsetTime | |
| 294 | 297 | case ObjectMapper |
| 295 | 298 | case Of |
| 296 | 299 | case Oneway |
| @@ -601,6 +604,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 601 | 604 | case EnumEnum.Left => "left" |
| 602 | 605 | case EnumEnum.Let => "let" |
| 603 | 606 | case EnumEnum.EnumList => "list" |
| 607 | + case EnumEnum.LocalDate => "LocalDate" | |
| 604 | 608 | case EnumEnum.Locale => "Locale" |
| 605 | 609 | case EnumEnum.Lock => "lock" |
| 606 | 610 | case EnumEnum.EnumLong => "long" |
| @@ -633,6 +637,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 633 | 637 | case EnumEnum.Nullptr => "nullptr" |
| 634 | 638 | case EnumEnum.Number => "number" |
| 635 | 639 | case EnumEnum.Object => "object" |
| 640 | + case EnumEnum.OffsetDateTime => "OffsetDateTime" | |
| 641 | + case EnumEnum.OffsetTime => "OffsetTime" | |
| 636 | 642 | case EnumEnum.ObjectMapper => "ObjectMapper" |
| 637 | 643 | case EnumEnum.Of => "of" |
| 638 | 644 | case EnumEnum.Oneway => "oneway" |
| @@ -942,6 +948,7 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 942 | 948 | case "left" => EnumEnum.Left |
| 943 | 949 | case "let" => EnumEnum.Let |
| 944 | 950 | case "list" => EnumEnum.EnumList |
| 951 | + case "LocalDate" => EnumEnum.LocalDate | |
| 945 | 952 | case "Locale" => EnumEnum.Locale |
| 946 | 953 | case "lock" => EnumEnum.Lock |
| 947 | 954 | case "long" => EnumEnum.EnumLong |
| @@ -974,6 +981,8 @@ given OptionPickler.ReadWriter[EnumEnum] = OptionPickler.readwriter[String].bima | ||
| 974 | 981 | case "nullptr" => EnumEnum.Nullptr |
| 975 | 982 | case "number" => EnumEnum.Number |
| 976 | 983 | case "object" => EnumEnum.Object |
| 984 | + case "OffsetDateTime" => EnumEnum.OffsetDateTime | |
| 985 | + case "OffsetTime" => EnumEnum.OffsetTime | |
| 977 | 986 | case "ObjectMapper" => EnumEnum.ObjectMapper |
| 978 | 987 | case "of" => EnumEnum.Of |
| 979 | 988 | case "oneway" => EnumEnum.Oneway |
Mschema-scala3default / TopLevel.scala+9 −0
| @@ -188,6 +188,7 @@ enum EnumEnum : | ||
| 188 | 188 | case Left |
| 189 | 189 | case Let |
| 190 | 190 | case EnumList |
| 191 | + case LocalDate | |
| 191 | 192 | case Locale |
| 192 | 193 | case Lock |
| 193 | 194 | case EnumLong |
| @@ -220,6 +221,8 @@ enum EnumEnum : | ||
| 220 | 221 | case Nullptr |
| 221 | 222 | case Number |
| 222 | 223 | case Object |
| 224 | + case OffsetDateTime | |
| 225 | + case OffsetTime | |
| 223 | 226 | case ObjectMapper |
| 224 | 227 | case Of |
| 225 | 228 | case Oneway |
| @@ -529,6 +532,7 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 529 | 532 | case "left" => scala.Right(EnumEnum.Left) |
| 530 | 533 | case "let" => scala.Right(EnumEnum.Let) |
| 531 | 534 | case "list" => scala.Right(EnumEnum.EnumList) |
| 535 | + case "LocalDate" => scala.Right(EnumEnum.LocalDate) | |
| 532 | 536 | case "Locale" => scala.Right(EnumEnum.Locale) |
| 533 | 537 | case "lock" => scala.Right(EnumEnum.Lock) |
| 534 | 538 | case "long" => scala.Right(EnumEnum.EnumLong) |
| @@ -561,6 +565,8 @@ given Decoder[EnumEnum] = Decoder.decodeString.emap { | ||
| 561 | 565 | case "nullptr" => scala.Right(EnumEnum.Nullptr) |
| 562 | 566 | case "number" => scala.Right(EnumEnum.Number) |
| 563 | 567 | case "object" => scala.Right(EnumEnum.Object) |
| 568 | + case "OffsetDateTime" => scala.Right(EnumEnum.OffsetDateTime) | |
| 569 | + case "OffsetTime" => scala.Right(EnumEnum.OffsetTime) | |
| 564 | 570 | case "ObjectMapper" => scala.Right(EnumEnum.ObjectMapper) |
| 565 | 571 | case "of" => scala.Right(EnumEnum.Of) |
| 566 | 572 | case "oneway" => scala.Right(EnumEnum.Oneway) |
| @@ -871,6 +877,7 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 871 | 877 | case EnumEnum.Left => "left" |
| 872 | 878 | case EnumEnum.Let => "let" |
| 873 | 879 | case EnumEnum.EnumList => "list" |
| 880 | + case EnumEnum.LocalDate => "LocalDate" | |
| 874 | 881 | case EnumEnum.Locale => "Locale" |
| 875 | 882 | case EnumEnum.Lock => "lock" |
| 876 | 883 | case EnumEnum.EnumLong => "long" |
| @@ -903,6 +910,8 @@ given Encoder[EnumEnum] = Encoder.encodeString.contramap { | ||
| 903 | 910 | case EnumEnum.Nullptr => "nullptr" |
| 904 | 911 | case EnumEnum.Number => "number" |
| 905 | 912 | case EnumEnum.Object => "object" |
| 913 | + case EnumEnum.OffsetDateTime => "OffsetDateTime" | |
| 914 | + case EnumEnum.OffsetTime => "OffsetTime" | |
| 906 | 915 | case EnumEnum.ObjectMapper => "ObjectMapper" |
| 907 | 916 | case EnumEnum.Of => "of" |
| 908 | 917 | case EnumEnum.Oneway => "oneway" |
Mschema-schemadefault / TopLevel.schema+3 −0
| @@ -192,6 +192,7 @@ | ||
| 192 | 192 | "left", |
| 193 | 193 | "let", |
| 194 | 194 | "list", |
| 195 | + "LocalDate", | |
| 195 | 196 | "Locale", |
| 196 | 197 | "lock", |
| 197 | 198 | "long", |
| @@ -224,6 +225,8 @@ | ||
| 224 | 225 | "nullptr", |
| 225 | 226 | "number", |
| 226 | 227 | "object", |
| 228 | + "OffsetDateTime", | |
| 229 | + "OffsetTime", | |
| 227 | 230 | "ObjectMapper", |
| 228 | 231 | "of", |
| 229 | 232 | "oneway", |
Mschema-swiftdefault / quicktype.swift+3 −0
| @@ -226,6 +226,7 @@ enum Enum: String, Codable { | ||
| 226 | 226 | case enumLeft = "left" |
| 227 | 227 | case enumLet = "let" |
| 228 | 228 | case list = "list" |
| 229 | + case localDate = "LocalDate" | |
| 229 | 230 | case locale = "Locale" |
| 230 | 231 | case lock = "lock" |
| 231 | 232 | case long = "long" |
| @@ -258,6 +259,8 @@ enum Enum: String, Codable { | ||
| 258 | 259 | case nullptr = "nullptr" |
| 259 | 260 | case number = "number" |
| 260 | 261 | case object = "object" |
| 262 | + case offsetDateTime = "OffsetDateTime" | |
| 263 | + case offsetTime = "OffsetTime" | |
| 261 | 264 | case objectMapper = "ObjectMapper" |
| 262 | 265 | case of = "of" |
| 263 | 266 | case oneway = "oneway" |
Mschema-typescript-effect-schemadefault / TopLevel.ts+3 −0
| @@ -178,6 +178,7 @@ export const Enum = S.Literal( | ||
| 178 | 178 | "left", |
| 179 | 179 | "let", |
| 180 | 180 | "list", |
| 181 | + "LocalDate", | |
| 181 | 182 | "Locale", |
| 182 | 183 | "lock", |
| 183 | 184 | "long", |
| @@ -210,6 +211,8 @@ export const Enum = S.Literal( | ||
| 210 | 211 | "nullptr", |
| 211 | 212 | "number", |
| 212 | 213 | "object", |
| 214 | + "OffsetDateTime", | |
| 215 | + "OffsetTime", | |
| 213 | 216 | "ObjectMapper", |
| 214 | 217 | "of", |
| 215 | 218 | "oneway", |
Mschema-typescript-zoddefault / TopLevel.ts+3 −0
| @@ -178,6 +178,7 @@ export const EnumSchema = z.enum([ | ||
| 178 | 178 | "left", |
| 179 | 179 | "let", |
| 180 | 180 | "list", |
| 181 | + "LocalDate", | |
| 181 | 182 | "Locale", |
| 182 | 183 | "lock", |
| 183 | 184 | "long", |
| @@ -210,6 +211,8 @@ export const EnumSchema = z.enum([ | ||
| 210 | 211 | "nullptr", |
| 211 | 212 | "number", |
| 212 | 213 | "object", |
| 214 | + "OffsetDateTime", | |
| 215 | + "OffsetTime", | |
| 213 | 216 | "ObjectMapper", |
| 214 | 217 | "of", |
| 215 | 218 | "oneway", |
Mschema-typescriptdefault / TopLevel.ts+4 −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" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "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" | "UseSerializers" | "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" | "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" | "LocalDate" | "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" | "OffsetDateTime" | "OffsetTime" | "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" | "Serializable" | "self" | "Sendable" | "serialize" | "SerialName" | "KSerializer" | "PrimitiveKind" | "SerialDescriptor" | "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" | "UseSerializers" | "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 |
| @@ -381,6 +381,7 @@ const typeMap: any = { | ||
| 381 | 381 | "left", |
| 382 | 382 | "let", |
| 383 | 383 | "list", |
| 384 | + "LocalDate", | |
| 384 | 385 | "Locale", |
| 385 | 386 | "lock", |
| 386 | 387 | "long", |
| @@ -413,6 +414,8 @@ const typeMap: any = { | ||
| 413 | 414 | "nullptr", |
| 414 | 415 | "number", |
| 415 | 416 | "object", |
| 417 | + "OffsetDateTime", | |
| 418 | + "OffsetTime", | |
| 416 | 419 | "ObjectMapper", |
| 417 | 420 | "of", |
| 418 | 421 | "oneway", |
Test case
49 generated files · +3,702 −165test/inputs/schema/keyword-unions.schema
Mschema-cjsondefault / TopLevel.c+312 −0
| @@ -5461,6 +5461,50 @@ void cJSON_DeleteUnionList(struct UnionList * x) { | ||
| 5461 | 5461 | } |
| 5462 | 5462 | } |
| 5463 | 5463 | |
| 5464 | +struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j) { | |
| 5465 | + struct UnionLocalDate * x = cJSON_malloc(sizeof(struct UnionLocalDate)); | |
| 5466 | + if (NULL != x) { | |
| 5467 | + memset(x, 0, sizeof(struct UnionLocalDate)); | |
| 5468 | + if (cJSON_IsNumber(j)) { | |
| 5469 | + x->type = cJSON_Number; | |
| 5470 | + x->value.number = cJSON_GetNumberValue(j); | |
| 5471 | + } | |
| 5472 | + else if (cJSON_IsObject(j)) { | |
| 5473 | + x->type = cJSON_Object; | |
| 5474 | + x->value.local_date = cJSON_GetLocalDateValue(j); | |
| 5475 | + if (NULL == x->value.local_date) x->type = 0; | |
| 5476 | + } | |
| 5477 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 5478 | + } | |
| 5479 | + return x; | |
| 5480 | +} | |
| 5481 | +struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionLocalDate * x = j ? cJSON_GetUnionLocalDateValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 5482 | +char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x) { cJSON * j = cJSON_CreateUnionLocalDate(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 5483 | + | |
| 5484 | +cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x) { | |
| 5485 | + cJSON * j = NULL; | |
| 5486 | + if (NULL != x) { | |
| 5487 | + if (cJSON_Number == x->type) { | |
| 5488 | + j = cJSON_CreateNumber(x->value.number); | |
| 5489 | + } | |
| 5490 | + else if (cJSON_Object == x->type) { | |
| 5491 | + j = cJSON_CreateLocalDate(x->value.local_date); | |
| 5492 | + } | |
| 5493 | + } | |
| 5494 | + return j; | |
| 5495 | +} | |
| 5496 | + | |
| 5497 | +void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x) { | |
| 5498 | + if (NULL != x) { | |
| 5499 | + if (cJSON_Number == x->type) { | |
| 5500 | + } | |
| 5501 | + else if (cJSON_Object == x->type) { | |
| 5502 | + cJSON_DeleteLocalDate(x->value.local_date); | |
| 5503 | + } | |
| 5504 | + cJSON_free(x); | |
| 5505 | + } | |
| 5506 | +} | |
| 5507 | + | |
| 5464 | 5508 | struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j) { |
| 5465 | 5509 | struct UnionLocale * x = cJSON_malloc(sizeof(struct UnionLocale)); |
| 5466 | 5510 | if (NULL != x) { |
| @@ -6473,6 +6517,94 @@ void cJSON_DeleteUnionOf(struct UnionOf * x) { | ||
| 6473 | 6517 | } |
| 6474 | 6518 | } |
| 6475 | 6519 | |
| 6520 | +struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j) { | |
| 6521 | + struct UnionOffsetDateTime * x = cJSON_malloc(sizeof(struct UnionOffsetDateTime)); | |
| 6522 | + if (NULL != x) { | |
| 6523 | + memset(x, 0, sizeof(struct UnionOffsetDateTime)); | |
| 6524 | + if (cJSON_IsNumber(j)) { | |
| 6525 | + x->type = cJSON_Number; | |
| 6526 | + x->value.number = cJSON_GetNumberValue(j); | |
| 6527 | + } | |
| 6528 | + else if (cJSON_IsObject(j)) { | |
| 6529 | + x->type = cJSON_Object; | |
| 6530 | + x->value.offset_date_time = cJSON_GetOffsetDateTimeValue(j); | |
| 6531 | + if (NULL == x->value.offset_date_time) x->type = 0; | |
| 6532 | + } | |
| 6533 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 6534 | + } | |
| 6535 | + return x; | |
| 6536 | +} | |
| 6537 | +struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetDateTime * x = j ? cJSON_GetUnionOffsetDateTimeValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 6538 | +char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { cJSON * j = cJSON_CreateUnionOffsetDateTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 6539 | + | |
| 6540 | +cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x) { | |
| 6541 | + cJSON * j = NULL; | |
| 6542 | + if (NULL != x) { | |
| 6543 | + if (cJSON_Number == x->type) { | |
| 6544 | + j = cJSON_CreateNumber(x->value.number); | |
| 6545 | + } | |
| 6546 | + else if (cJSON_Object == x->type) { | |
| 6547 | + j = cJSON_CreateOffsetDateTime(x->value.offset_date_time); | |
| 6548 | + } | |
| 6549 | + } | |
| 6550 | + return j; | |
| 6551 | +} | |
| 6552 | + | |
| 6553 | +void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x) { | |
| 6554 | + if (NULL != x) { | |
| 6555 | + if (cJSON_Number == x->type) { | |
| 6556 | + } | |
| 6557 | + else if (cJSON_Object == x->type) { | |
| 6558 | + cJSON_DeleteOffsetDateTime(x->value.offset_date_time); | |
| 6559 | + } | |
| 6560 | + cJSON_free(x); | |
| 6561 | + } | |
| 6562 | +} | |
| 6563 | + | |
| 6564 | +struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j) { | |
| 6565 | + struct UnionOffsetTime * x = cJSON_malloc(sizeof(struct UnionOffsetTime)); | |
| 6566 | + if (NULL != x) { | |
| 6567 | + memset(x, 0, sizeof(struct UnionOffsetTime)); | |
| 6568 | + if (cJSON_IsNumber(j)) { | |
| 6569 | + x->type = cJSON_Number; | |
| 6570 | + x->value.number = cJSON_GetNumberValue(j); | |
| 6571 | + } | |
| 6572 | + else if (cJSON_IsObject(j)) { | |
| 6573 | + x->type = cJSON_Object; | |
| 6574 | + x->value.offset_time = cJSON_GetOffsetTimeValue(j); | |
| 6575 | + if (NULL == x->value.offset_time) x->type = 0; | |
| 6576 | + } | |
| 6577 | + if (0 == x->type) { cJSON_free(x); return NULL; } | |
| 6578 | + } | |
| 6579 | + return x; | |
| 6580 | +} | |
| 6581 | +struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s) { cJSON * j = cJSON_Parse(s); struct UnionOffsetTime * x = j ? cJSON_GetUnionOffsetTimeValue(j) : NULL; cJSON_Delete(j); return x; } | |
| 6582 | +char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x) { cJSON * j = cJSON_CreateUnionOffsetTime(x); char * s = j ? cJSON_Print(j) : NULL; cJSON_Delete(j); return s; } | |
| 6583 | + | |
| 6584 | +cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x) { | |
| 6585 | + cJSON * j = NULL; | |
| 6586 | + if (NULL != x) { | |
| 6587 | + if (cJSON_Number == x->type) { | |
| 6588 | + j = cJSON_CreateNumber(x->value.number); | |
| 6589 | + } | |
| 6590 | + else if (cJSON_Object == x->type) { | |
| 6591 | + j = cJSON_CreateOffsetTime(x->value.offset_time); | |
| 6592 | + } | |
| 6593 | + } | |
| 6594 | + return j; | |
| 6595 | +} | |
| 6596 | + | |
| 6597 | +void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x) { | |
| 6598 | + if (NULL != x) { | |
| 6599 | + if (cJSON_Number == x->type) { | |
| 6600 | + } | |
| 6601 | + else if (cJSON_Object == x->type) { | |
| 6602 | + cJSON_DeleteOffsetTime(x->value.offset_time); | |
| 6603 | + } | |
| 6604 | + cJSON_free(x); | |
| 6605 | + } | |
| 6606 | +} | |
| 6607 | + | |
| 6476 | 6608 | struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j) { |
| 6477 | 6609 | struct UnionOneway * x = cJSON_malloc(sizeof(struct UnionOneway)); |
| 6478 | 6610 | if (NULL != x) { |
| @@ -20953,6 +21085,55 @@ void cJSON_DeleteList(struct List * x) { | ||
| 20953 | 21085 | } |
| 20954 | 21086 | } |
| 20955 | 21087 | |
| 21088 | +struct LocalDate * cJSON_ParseLocalDate(const char * s) { | |
| 21089 | + struct LocalDate * x = NULL; | |
| 21090 | + if (NULL != s) { | |
| 21091 | + cJSON * j = cJSON_Parse(s); | |
| 21092 | + if (NULL != j) { | |
| 21093 | + x = cJSON_GetLocalDateValue(j); | |
| 21094 | + cJSON_Delete(j); | |
| 21095 | + } | |
| 21096 | + } | |
| 21097 | + return x; | |
| 21098 | +} | |
| 21099 | + | |
| 21100 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j) { | |
| 21101 | + struct LocalDate * x = NULL; | |
| 21102 | + if (NULL != j) { | |
| 21103 | + if (NULL != (x = cJSON_malloc(sizeof(struct LocalDate)))) { | |
| 21104 | + memset(x, 0, sizeof(struct LocalDate)); | |
| 21105 | + } | |
| 21106 | + } | |
| 21107 | + return x; | |
| 21108 | +} | |
| 21109 | + | |
| 21110 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x) { | |
| 21111 | + cJSON * j = NULL; | |
| 21112 | + if (NULL != x) { | |
| 21113 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 21114 | + } | |
| 21115 | + } | |
| 21116 | + return j; | |
| 21117 | +} | |
| 21118 | + | |
| 21119 | +char * cJSON_PrintLocalDate(const struct LocalDate * x) { | |
| 21120 | + char * s = NULL; | |
| 21121 | + if (NULL != x) { | |
| 21122 | + cJSON * j = cJSON_CreateLocalDate(x); | |
| 21123 | + if (NULL != j) { | |
| 21124 | + s = cJSON_Print(j); | |
| 21125 | + cJSON_Delete(j); | |
| 21126 | + } | |
| 21127 | + } | |
| 21128 | + return s; | |
| 21129 | +} | |
| 21130 | + | |
| 21131 | +void cJSON_DeleteLocalDate(struct LocalDate * x) { | |
| 21132 | + if (NULL != x) { | |
| 21133 | + cJSON_free(x); | |
| 21134 | + } | |
| 21135 | +} | |
| 21136 | + | |
| 20956 | 21137 | struct Locale * cJSON_ParseLocale(const char * s) { |
| 20957 | 21138 | struct Locale * x = NULL; |
| 20958 | 21139 | if (NULL != s) { |
| @@ -22080,6 +22261,104 @@ void cJSON_DeleteOf(struct Of * x) { | ||
| 22080 | 22261 | } |
| 22081 | 22262 | } |
| 22082 | 22263 | |
| 22264 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s) { | |
| 22265 | + struct OffsetDateTime * x = NULL; | |
| 22266 | + if (NULL != s) { | |
| 22267 | + cJSON * j = cJSON_Parse(s); | |
| 22268 | + if (NULL != j) { | |
| 22269 | + x = cJSON_GetOffsetDateTimeValue(j); | |
| 22270 | + cJSON_Delete(j); | |
| 22271 | + } | |
| 22272 | + } | |
| 22273 | + return x; | |
| 22274 | +} | |
| 22275 | + | |
| 22276 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j) { | |
| 22277 | + struct OffsetDateTime * x = NULL; | |
| 22278 | + if (NULL != j) { | |
| 22279 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetDateTime)))) { | |
| 22280 | + memset(x, 0, sizeof(struct OffsetDateTime)); | |
| 22281 | + } | |
| 22282 | + } | |
| 22283 | + return x; | |
| 22284 | +} | |
| 22285 | + | |
| 22286 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x) { | |
| 22287 | + cJSON * j = NULL; | |
| 22288 | + if (NULL != x) { | |
| 22289 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 22290 | + } | |
| 22291 | + } | |
| 22292 | + return j; | |
| 22293 | +} | |
| 22294 | + | |
| 22295 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x) { | |
| 22296 | + char * s = NULL; | |
| 22297 | + if (NULL != x) { | |
| 22298 | + cJSON * j = cJSON_CreateOffsetDateTime(x); | |
| 22299 | + if (NULL != j) { | |
| 22300 | + s = cJSON_Print(j); | |
| 22301 | + cJSON_Delete(j); | |
| 22302 | + } | |
| 22303 | + } | |
| 22304 | + return s; | |
| 22305 | +} | |
| 22306 | + | |
| 22307 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x) { | |
| 22308 | + if (NULL != x) { | |
| 22309 | + cJSON_free(x); | |
| 22310 | + } | |
| 22311 | +} | |
| 22312 | + | |
| 22313 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s) { | |
| 22314 | + struct OffsetTime * x = NULL; | |
| 22315 | + if (NULL != s) { | |
| 22316 | + cJSON * j = cJSON_Parse(s); | |
| 22317 | + if (NULL != j) { | |
| 22318 | + x = cJSON_GetOffsetTimeValue(j); | |
| 22319 | + cJSON_Delete(j); | |
| 22320 | + } | |
| 22321 | + } | |
| 22322 | + return x; | |
| 22323 | +} | |
| 22324 | + | |
| 22325 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j) { | |
| 22326 | + struct OffsetTime * x = NULL; | |
| 22327 | + if (NULL != j) { | |
| 22328 | + if (NULL != (x = cJSON_malloc(sizeof(struct OffsetTime)))) { | |
| 22329 | + memset(x, 0, sizeof(struct OffsetTime)); | |
| 22330 | + } | |
| 22331 | + } | |
| 22332 | + return x; | |
| 22333 | +} | |
| 22334 | + | |
| 22335 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x) { | |
| 22336 | + cJSON * j = NULL; | |
| 22337 | + if (NULL != x) { | |
| 22338 | + if (NULL != (j = cJSON_CreateObject())) { | |
| 22339 | + } | |
| 22340 | + } | |
| 22341 | + return j; | |
| 22342 | +} | |
| 22343 | + | |
| 22344 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x) { | |
| 22345 | + char * s = NULL; | |
| 22346 | + if (NULL != x) { | |
| 22347 | + cJSON * j = cJSON_CreateOffsetTime(x); | |
| 22348 | + if (NULL != j) { | |
| 22349 | + s = cJSON_Print(j); | |
| 22350 | + cJSON_Delete(j); | |
| 22351 | + } | |
| 22352 | + } | |
| 22353 | + return s; | |
| 22354 | +} | |
| 22355 | + | |
| 22356 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x) { | |
| 22357 | + if (NULL != x) { | |
| 22358 | + cJSON_free(x); | |
| 22359 | + } | |
| 22360 | +} | |
| 22361 | + | |
| 22083 | 22362 | struct Oneway * cJSON_ParseOneway(const char * s) { |
| 22084 | 22363 | struct Oneway * x = NULL; |
| 22085 | 22364 | if (NULL != s) { |
| @@ -32347,6 +32626,11 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 32347 | 32626 | x->list = cJSON_GetUnionListValue(cJSON_GetObjectItemCaseSensitive(j, "list")); |
| 32348 | 32627 | if (NULL == x->list) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32349 | 32628 | } |
| 32629 | + if (cJSON_HasObjectItem(j, "LocalDate")) { | |
| 32630 | + if (!cJSON_IsUnionLocalDate(cJSON_GetObjectItemCaseSensitive(j, "LocalDate"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32631 | + x->local_date = cJSON_GetUnionLocalDateValue(cJSON_GetObjectItemCaseSensitive(j, "LocalDate")); | |
| 32632 | + if (NULL == x->local_date) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32633 | + } | |
| 32350 | 32634 | if (cJSON_HasObjectItem(j, "Locale")) { |
| 32351 | 32635 | if (!cJSON_IsUnionLocale(cJSON_GetObjectItemCaseSensitive(j, "Locale"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32352 | 32636 | x->locale = cJSON_GetUnionLocaleValue(cJSON_GetObjectItemCaseSensitive(j, "Locale")); |
| @@ -32517,6 +32801,16 @@ struct TopLevel * cJSON_GetTopLevelValue(const cJSON * j) { | ||
| 32517 | 32801 | x->of = cJSON_GetUnionOfValue(cJSON_GetObjectItemCaseSensitive(j, "of")); |
| 32518 | 32802 | if (NULL == x->of) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32519 | 32803 | } |
| 32804 | + if (cJSON_HasObjectItem(j, "OffsetDateTime")) { | |
| 32805 | + if (!cJSON_IsUnionOffsetDateTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32806 | + x->offset_date_time = cJSON_GetUnionOffsetDateTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetDateTime")); | |
| 32807 | + if (NULL == x->offset_date_time) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32808 | + } | |
| 32809 | + if (cJSON_HasObjectItem(j, "OffsetTime")) { | |
| 32810 | + if (!cJSON_IsUnionOffsetTime(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime"))) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32811 | + x->offset_time = cJSON_GetUnionOffsetTimeValue(cJSON_GetObjectItemCaseSensitive(j, "OffsetTime")); | |
| 32812 | + if (NULL == x->offset_time) { cJSON_DeleteTopLevel(x); return NULL; } | |
| 32813 | + } | |
| 32520 | 32814 | if (cJSON_HasObjectItem(j, "oneway")) { |
| 32521 | 32815 | if (!cJSON_IsUnionOneway(cJSON_GetObjectItemCaseSensitive(j, "oneway"))) { cJSON_DeleteTopLevel(x); return NULL; } |
| 32522 | 32816 | x->oneway = cJSON_GetUnionOnewayValue(cJSON_GetObjectItemCaseSensitive(j, "oneway")); |
| @@ -33695,6 +33989,9 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 33695 | 33989 | if (NULL != x->list) { |
| 33696 | 33990 | cJSON_AddItemToObject(j, "list", cJSON_CreateUnionList(x->list)); |
| 33697 | 33991 | } |
| 33992 | + if (NULL != x->local_date) { | |
| 33993 | + cJSON_AddItemToObject(j, "LocalDate", cJSON_CreateUnionLocalDate(x->local_date)); | |
| 33994 | + } | |
| 33698 | 33995 | if (NULL != x->locale) { |
| 33699 | 33996 | cJSON_AddItemToObject(j, "Locale", cJSON_CreateUnionLocale(x->locale)); |
| 33700 | 33997 | } |
| @@ -33797,6 +34094,12 @@ cJSON * cJSON_CreateTopLevel(const struct TopLevel * x) { | ||
| 33797 | 34094 | if (NULL != x->of) { |
| 33798 | 34095 | cJSON_AddItemToObject(j, "of", cJSON_CreateUnionOf(x->of)); |
| 33799 | 34096 | } |
| 34097 | + if (NULL != x->offset_date_time) { | |
| 34098 | + cJSON_AddItemToObject(j, "OffsetDateTime", cJSON_CreateUnionOffsetDateTime(x->offset_date_time)); | |
| 34099 | + } | |
| 34100 | + if (NULL != x->offset_time) { | |
| 34101 | + cJSON_AddItemToObject(j, "OffsetTime", cJSON_CreateUnionOffsetTime(x->offset_time)); | |
| 34102 | + } | |
| 33800 | 34103 | if (NULL != x->oneway) { |
| 33801 | 34104 | cJSON_AddItemToObject(j, "oneway", cJSON_CreateUnionOneway(x->oneway)); |
| 33802 | 34105 | } |
| @@ -34731,6 +35034,9 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 34731 | 35034 | if (NULL != x->list) { |
| 34732 | 35035 | cJSON_DeleteUnionList(x->list); |
| 34733 | 35036 | } |
| 35037 | + if (NULL != x->local_date) { | |
| 35038 | + cJSON_DeleteUnionLocalDate(x->local_date); | |
| 35039 | + } | |
| 34734 | 35040 | if (NULL != x->locale) { |
| 34735 | 35041 | cJSON_DeleteUnionLocale(x->locale); |
| 34736 | 35042 | } |
| @@ -34833,6 +35139,12 @@ void cJSON_DeleteTopLevel(struct TopLevel * x) { | ||
| 34833 | 35139 | if (NULL != x->of) { |
| 34834 | 35140 | cJSON_DeleteUnionOf(x->of); |
| 34835 | 35141 | } |
| 35142 | + if (NULL != x->offset_date_time) { | |
| 35143 | + cJSON_DeleteUnionOffsetDateTime(x->offset_date_time); | |
| 35144 | + } | |
| 35145 | + if (NULL != x->offset_time) { | |
| 35146 | + cJSON_DeleteUnionOffsetTime(x->offset_time); | |
| 35147 | + } | |
| 34836 | 35148 | if (NULL != x->oneway) { |
| 34837 | 35149 | cJSON_DeleteUnionOneway(x->oneway); |
| 34838 | 35150 | } |
Mschema-cjsondefault / TopLevel.h+75 −0
| @@ -1412,6 +1412,17 @@ struct UnionList { | ||
| 1412 | 1412 | } value; |
| 1413 | 1413 | }; |
| 1414 | 1414 | |
| 1415 | +struct LocalDate { | |
| 1416 | +}; | |
| 1417 | + | |
| 1418 | +struct UnionLocalDate { | |
| 1419 | + int type; | |
| 1420 | + union { | |
| 1421 | + double number; | |
| 1422 | + struct LocalDate * local_date; | |
| 1423 | + } value; | |
| 1424 | +}; | |
| 1425 | + | |
| 1415 | 1426 | struct Locale { |
| 1416 | 1427 | }; |
| 1417 | 1428 | |
| @@ -1665,6 +1676,28 @@ struct UnionOf { | ||
| 1665 | 1676 | } value; |
| 1666 | 1677 | }; |
| 1667 | 1678 | |
| 1679 | +struct OffsetDateTime { | |
| 1680 | +}; | |
| 1681 | + | |
| 1682 | +struct UnionOffsetDateTime { | |
| 1683 | + int type; | |
| 1684 | + union { | |
| 1685 | + double number; | |
| 1686 | + struct OffsetDateTime * offset_date_time; | |
| 1687 | + } value; | |
| 1688 | +}; | |
| 1689 | + | |
| 1690 | +struct OffsetTime { | |
| 1691 | +}; | |
| 1692 | + | |
| 1693 | +struct UnionOffsetTime { | |
| 1694 | + int type; | |
| 1695 | + union { | |
| 1696 | + double number; | |
| 1697 | + struct OffsetTime * offset_time; | |
| 1698 | + } value; | |
| 1699 | +}; | |
| 1700 | + | |
| 1668 | 1701 | struct Oneway { |
| 1669 | 1702 | }; |
| 1670 | 1703 | |
| @@ -3945,6 +3978,7 @@ struct TopLevel { | ||
| 3945 | 3978 | struct UnionLeft * left; |
| 3946 | 3979 | struct UnionLet * let; |
| 3947 | 3980 | struct UnionList * list; |
| 3981 | + struct UnionLocalDate * local_date; | |
| 3948 | 3982 | struct UnionLocale * locale; |
| 3949 | 3983 | struct UnionLock * lock; |
| 3950 | 3984 | struct UnionLong * top_level_long; |
| @@ -3979,6 +4013,8 @@ struct TopLevel { | ||
| 3979 | 4013 | struct UnionObject * object; |
| 3980 | 4014 | struct UnionObjectMapper * object_mapper; |
| 3981 | 4015 | struct UnionOf * of; |
| 4016 | + struct UnionOffsetDateTime * offset_date_time; | |
| 4017 | + struct UnionOffsetTime * offset_time; | |
| 3982 | 4018 | struct UnionOneway * oneway; |
| 3983 | 4019 | struct UnionOpen * open; |
| 3984 | 4020 | struct UnionOperator * top_level_operator; |
| @@ -4976,6 +5012,13 @@ void cJSON_DeleteUnionList(struct UnionList * x); | ||
| 4976 | 5012 | struct UnionList * cJSON_ParseUnionList(const char * s); |
| 4977 | 5013 | char * cJSON_PrintUnionList(const struct UnionList * x); |
| 4978 | 5014 | |
| 5015 | +#define cJSON_IsUnionLocalDate(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5016 | +struct UnionLocalDate * cJSON_GetUnionLocalDateValue(const cJSON * j); | |
| 5017 | +cJSON * cJSON_CreateUnionLocalDate(const struct UnionLocalDate * x); | |
| 5018 | +void cJSON_DeleteUnionLocalDate(struct UnionLocalDate * x); | |
| 5019 | +struct UnionLocalDate * cJSON_ParseUnionLocalDate(const char * s); | |
| 5020 | +char * cJSON_PrintUnionLocalDate(const struct UnionLocalDate * x); | |
| 5021 | + | |
| 4979 | 5022 | #define cJSON_IsUnionLocale(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 4980 | 5023 | struct UnionLocale * cJSON_GetUnionLocaleValue(const cJSON * j); |
| 4981 | 5024 | cJSON * cJSON_CreateUnionLocale(const struct UnionLocale * x); |
| @@ -5137,6 +5180,20 @@ void cJSON_DeleteUnionOf(struct UnionOf * x); | ||
| 5137 | 5180 | struct UnionOf * cJSON_ParseUnionOf(const char * s); |
| 5138 | 5181 | char * cJSON_PrintUnionOf(const struct UnionOf * x); |
| 5139 | 5182 | |
| 5183 | +#define cJSON_IsUnionOffsetDateTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5184 | +struct UnionOffsetDateTime * cJSON_GetUnionOffsetDateTimeValue(const cJSON * j); | |
| 5185 | +cJSON * cJSON_CreateUnionOffsetDateTime(const struct UnionOffsetDateTime * x); | |
| 5186 | +void cJSON_DeleteUnionOffsetDateTime(struct UnionOffsetDateTime * x); | |
| 5187 | +struct UnionOffsetDateTime * cJSON_ParseUnionOffsetDateTime(const char * s); | |
| 5188 | +char * cJSON_PrintUnionOffsetDateTime(const struct UnionOffsetDateTime * x); | |
| 5189 | + | |
| 5190 | +#define cJSON_IsUnionOffsetTime(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) | |
| 5191 | +struct UnionOffsetTime * cJSON_GetUnionOffsetTimeValue(const cJSON * j); | |
| 5192 | +cJSON * cJSON_CreateUnionOffsetTime(const struct UnionOffsetTime * x); | |
| 5193 | +void cJSON_DeleteUnionOffsetTime(struct UnionOffsetTime * x); | |
| 5194 | +struct UnionOffsetTime * cJSON_ParseUnionOffsetTime(const char * s); | |
| 5195 | +char * cJSON_PrintUnionOffsetTime(const struct UnionOffsetTime * x); | |
| 5196 | + | |
| 5140 | 5197 | #define cJSON_IsUnionOneway(j) (cJSON_IsNumber(j) || cJSON_IsObject(j)) |
| 5141 | 5198 | struct UnionOneway * cJSON_GetUnionOnewayValue(const cJSON * j); |
| 5142 | 5199 | cJSON * cJSON_CreateUnionOneway(const struct UnionOneway * x); |
| @@ -7218,6 +7275,12 @@ cJSON * cJSON_CreateList(const struct List * x); | ||
| 7218 | 7275 | char * cJSON_PrintList(const struct List * x); |
| 7219 | 7276 | void cJSON_DeleteList(struct List * x); |
| 7220 | 7277 | |
| 7278 | +struct LocalDate * cJSON_ParseLocalDate(const char * s); | |
| 7279 | +struct LocalDate * cJSON_GetLocalDateValue(const cJSON * j); | |
| 7280 | +cJSON * cJSON_CreateLocalDate(const struct LocalDate * x); | |
| 7281 | +char * cJSON_PrintLocalDate(const struct LocalDate * x); | |
| 7282 | +void cJSON_DeleteLocalDate(struct LocalDate * x); | |
| 7283 | + | |
| 7221 | 7284 | struct Locale * cJSON_ParseLocale(const char * s); |
| 7222 | 7285 | struct Locale * cJSON_GetLocaleValue(const cJSON * j); |
| 7223 | 7286 | cJSON * cJSON_CreateLocale(const struct Locale * x); |
| @@ -7356,6 +7419,18 @@ cJSON * cJSON_CreateOf(const struct Of * x); | ||
| 7356 | 7419 | char * cJSON_PrintOf(const struct Of * x); |
| 7357 | 7420 | void cJSON_DeleteOf(struct Of * x); |
| 7358 | 7421 | |
| 7422 | +struct OffsetDateTime * cJSON_ParseOffsetDateTime(const char * s); | |
| 7423 | +struct OffsetDateTime * cJSON_GetOffsetDateTimeValue(const cJSON * j); | |
| 7424 | +cJSON * cJSON_CreateOffsetDateTime(const struct OffsetDateTime * x); | |
| 7425 | +char * cJSON_PrintOffsetDateTime(const struct OffsetDateTime * x); | |
| 7426 | +void cJSON_DeleteOffsetDateTime(struct OffsetDateTime * x); | |
| 7427 | + | |
| 7428 | +struct OffsetTime * cJSON_ParseOffsetTime(const char * s); | |
| 7429 | +struct OffsetTime * cJSON_GetOffsetTimeValue(const cJSON * j); | |
| 7430 | +cJSON * cJSON_CreateOffsetTime(const struct OffsetTime * x); | |
| 7431 | +char * cJSON_PrintOffsetTime(const struct OffsetTime * x); | |
| 7432 | +void cJSON_DeleteOffsetTime(struct OffsetTime * x); | |
| 7433 | + | |
| 7359 | 7434 | struct Oneway * cJSON_ParseOneway(const char * s); |
| 7360 | 7435 | struct Oneway * cJSON_GetOnewayValue(const cJSON * j); |
| 7361 | 7436 | cJSON * cJSON_CreateOneway(const struct Oneway * x); |
Mschema-cplusplusdefault / quicktype.hpp+180 −0
| @@ -1577,6 +1577,18 @@ namespace quicktype { | ||
| 1577 | 1577 | |
| 1578 | 1578 | using UnionList = std::variant<List, double>; |
| 1579 | 1579 | |
| 1580 | + class LocalDate { | |
| 1581 | + public: | |
| 1582 | + LocalDate() = default; | |
| 1583 | + virtual ~LocalDate() = default; | |
| 1584 | + | |
| 1585 | + private: | |
| 1586 | + | |
| 1587 | + public: | |
| 1588 | + }; | |
| 1589 | + | |
| 1590 | + using UnionLocalDate = std::variant<LocalDate, double>; | |
| 1591 | + | |
| 1580 | 1592 | class Locale { |
| 1581 | 1593 | public: |
| 1582 | 1594 | Locale() = default; |
| @@ -1853,6 +1865,30 @@ namespace quicktype { | ||
| 1853 | 1865 | |
| 1854 | 1866 | using UnionOf = std::variant<Of, double>; |
| 1855 | 1867 | |
| 1868 | + class OffsetDateTime { | |
| 1869 | + public: | |
| 1870 | + OffsetDateTime() = default; | |
| 1871 | + virtual ~OffsetDateTime() = default; | |
| 1872 | + | |
| 1873 | + private: | |
| 1874 | + | |
| 1875 | + public: | |
| 1876 | + }; | |
| 1877 | + | |
| 1878 | + using UnionOffsetDateTime = std::variant<OffsetDateTime, double>; | |
| 1879 | + | |
| 1880 | + class OffsetTime { | |
| 1881 | + public: | |
| 1882 | + OffsetTime() = default; | |
| 1883 | + virtual ~OffsetTime() = default; | |
| 1884 | + | |
| 1885 | + private: | |
| 1886 | + | |
| 1887 | + public: | |
| 1888 | + }; | |
| 1889 | + | |
| 1890 | + using UnionOffsetTime = std::variant<OffsetTime, double>; | |
| 1891 | + | |
| 1856 | 1892 | class Oneway { |
| 1857 | 1893 | public: |
| 1858 | 1894 | Oneway() = default; |
| @@ -4329,6 +4365,7 @@ namespace quicktype { | ||
| 4329 | 4365 | std::optional<UnionLeft> left; |
| 4330 | 4366 | std::optional<UnionLet> let; |
| 4331 | 4367 | std::optional<UnionList> list; |
| 4368 | + std::optional<UnionLocalDate> local_date; | |
| 4332 | 4369 | std::optional<UnionLocale> locale; |
| 4333 | 4370 | std::optional<UnionLock> lock; |
| 4334 | 4371 | std::optional<UnionLong> top_level_long; |
| @@ -4363,6 +4400,8 @@ namespace quicktype { | ||
| 4363 | 4400 | std::optional<UnionObject> object; |
| 4364 | 4401 | std::optional<UnionObjectMapper> object_mapper; |
| 4365 | 4402 | std::optional<UnionOf> of; |
| 4403 | + std::optional<UnionOffsetDateTime> offset_date_time; | |
| 4404 | + std::optional<UnionOffsetTime> offset_time; | |
| 4366 | 4405 | std::optional<UnionOneway> oneway; |
| 4367 | 4406 | std::optional<UnionOpen> open; |
| 4368 | 4407 | std::optional<UnionOperator> top_level_operator; |
| @@ -5204,6 +5243,10 @@ namespace quicktype { | ||
| 5204 | 5243 | std::optional<UnionList> & get_mutable_list() { return list; } |
| 5205 | 5244 | void set_list(const std::optional<UnionList> & value) { this->list = value; } |
| 5206 | 5245 | |
| 5246 | + const std::optional<UnionLocalDate> & get_local_date() const { return local_date; } | |
| 5247 | + std::optional<UnionLocalDate> & get_mutable_local_date() { return local_date; } | |
| 5248 | + void set_local_date(const std::optional<UnionLocalDate> & value) { this->local_date = value; } | |
| 5249 | + | |
| 5207 | 5250 | const std::optional<UnionLocale> & get_locale() const { return locale; } |
| 5208 | 5251 | std::optional<UnionLocale> & get_mutable_locale() { return locale; } |
| 5209 | 5252 | void set_locale(const std::optional<UnionLocale> & value) { this->locale = value; } |
| @@ -5340,6 +5383,14 @@ namespace quicktype { | ||
| 5340 | 5383 | std::optional<UnionOf> & get_mutable_of() { return of; } |
| 5341 | 5384 | void set_of(const std::optional<UnionOf> & value) { this->of = value; } |
| 5342 | 5385 | |
| 5386 | + const std::optional<UnionOffsetDateTime> & get_offset_date_time() const { return offset_date_time; } | |
| 5387 | + std::optional<UnionOffsetDateTime> & get_mutable_offset_date_time() { return offset_date_time; } | |
| 5388 | + void set_offset_date_time(const std::optional<UnionOffsetDateTime> & value) { this->offset_date_time = value; } | |
| 5389 | + | |
| 5390 | + const std::optional<UnionOffsetTime> & get_offset_time() const { return offset_time; } | |
| 5391 | + std::optional<UnionOffsetTime> & get_mutable_offset_time() { return offset_time; } | |
| 5392 | + void set_offset_time(const std::optional<UnionOffsetTime> & value) { this->offset_time = value; } | |
| 5393 | + | |
| 5343 | 5394 | const std::optional<UnionOneway> & get_oneway() const { return oneway; } |
| 5344 | 5395 | std::optional<UnionOneway> & get_mutable_oneway() { return oneway; } |
| 5345 | 5396 | void set_oneway(const std::optional<UnionOneway> & value) { this->oneway = value; } |
| @@ -6223,6 +6274,9 @@ void to_json(json & j, const Let & x); | ||
| 6223 | 6274 | void from_json(const json & j, List & x); |
| 6224 | 6275 | void to_json(json & j, const List & x); |
| 6225 | 6276 | |
| 6277 | +void from_json(const json & j, LocalDate & x); | |
| 6278 | +void to_json(json & j, const LocalDate & x); | |
| 6279 | + | |
| 6226 | 6280 | void from_json(const json & j, Locale & x); |
| 6227 | 6281 | void to_json(json & j, const Locale & x); |
| 6228 | 6282 | |
| @@ -6292,6 +6346,12 @@ void to_json(json & j, const ObjectMapper & x); | ||
| 6292 | 6346 | void from_json(const json & j, Of & x); |
| 6293 | 6347 | void to_json(json & j, const Of & x); |
| 6294 | 6348 | |
| 6349 | +void from_json(const json & j, OffsetDateTime & x); | |
| 6350 | +void to_json(json & j, const OffsetDateTime & x); | |
| 6351 | + | |
| 6352 | +void from_json(const json & j, OffsetTime & x); | |
| 6353 | +void to_json(json & j, const OffsetTime & x); | |
| 6354 | + | |
| 6295 | 6355 | void from_json(const json & j, Oneway & x); |
| 6296 | 6356 | void to_json(json & j, const Oneway & x); |
| 6297 | 6357 | |
| @@ -7613,6 +7673,12 @@ struct adl_serializer<std::variant<quicktype::List, double>> { | ||
| 7613 | 7673 | static void to_json(json & j, const std::variant<quicktype::List, double> & x); |
| 7614 | 7674 | }; |
| 7615 | 7675 | |
| 7676 | +template <> | |
| 7677 | +struct adl_serializer<std::variant<quicktype::LocalDate, double>> { | |
| 7678 | + static void from_json(const json & j, std::variant<quicktype::LocalDate, double> & x); | |
| 7679 | + static void to_json(json & j, const std::variant<quicktype::LocalDate, double> & x); | |
| 7680 | +}; | |
| 7681 | + | |
| 7616 | 7682 | template <> |
| 7617 | 7683 | struct adl_serializer<std::variant<quicktype::Locale, double>> { |
| 7618 | 7684 | static void from_json(const json & j, std::variant<quicktype::Locale, double> & x); |
| @@ -7751,6 +7817,18 @@ struct adl_serializer<std::variant<quicktype::Of, double>> { | ||
| 7751 | 7817 | static void to_json(json & j, const std::variant<quicktype::Of, double> & x); |
| 7752 | 7818 | }; |
| 7753 | 7819 | |
| 7820 | +template <> | |
| 7821 | +struct adl_serializer<std::variant<quicktype::OffsetDateTime, double>> { | |
| 7822 | + static void from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x); | |
| 7823 | + static void to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x); | |
| 7824 | +}; | |
| 7825 | + | |
| 7826 | +template <> | |
| 7827 | +struct adl_serializer<std::variant<quicktype::OffsetTime, double>> { | |
| 7828 | + static void from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x); | |
| 7829 | + static void to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x); | |
| 7830 | +}; | |
| 7831 | + | |
| 7754 | 7832 | template <> |
| 7755 | 7833 | struct adl_serializer<std::variant<quicktype::Oneway, double>> { |
| 7756 | 7834 | static void from_json(const json & j, std::variant<quicktype::Oneway, double> & x); |
| @@ -10262,6 +10340,17 @@ namespace quicktype { | ||
| 10262 | 10340 | (void)x; |
| 10263 | 10341 | } |
| 10264 | 10342 | |
| 10343 | + inline void from_json(const json & j, LocalDate& x) { | |
| 10344 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10345 | + (void)j; | |
| 10346 | + (void)x; | |
| 10347 | + } | |
| 10348 | + | |
| 10349 | + inline void to_json(json & j, const LocalDate & x) { | |
| 10350 | + j = json::object(); | |
| 10351 | + (void)x; | |
| 10352 | + } | |
| 10353 | + | |
| 10265 | 10354 | inline void from_json(const json & j, Locale& x) { |
| 10266 | 10355 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10267 | 10356 | (void)j; |
| @@ -10515,6 +10604,28 @@ namespace quicktype { | ||
| 10515 | 10604 | (void)x; |
| 10516 | 10605 | } |
| 10517 | 10606 | |
| 10607 | + inline void from_json(const json & j, OffsetDateTime& x) { | |
| 10608 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10609 | + (void)j; | |
| 10610 | + (void)x; | |
| 10611 | + } | |
| 10612 | + | |
| 10613 | + inline void to_json(json & j, const OffsetDateTime & x) { | |
| 10614 | + j = json::object(); | |
| 10615 | + (void)x; | |
| 10616 | + } | |
| 10617 | + | |
| 10618 | + inline void from_json(const json & j, OffsetTime& x) { | |
| 10619 | + if (!j.is_object()) throw std::runtime_error("Expected object"); | |
| 10620 | + (void)j; | |
| 10621 | + (void)x; | |
| 10622 | + } | |
| 10623 | + | |
| 10624 | + inline void to_json(json & j, const OffsetTime & x) { | |
| 10625 | + j = json::object(); | |
| 10626 | + (void)x; | |
| 10627 | + } | |
| 10628 | + | |
| 10518 | 10629 | inline void from_json(const json & j, Oneway& x) { |
| 10519 | 10630 | if (!j.is_object()) throw std::runtime_error("Expected object"); |
| 10520 | 10631 | (void)j; |
| @@ -12974,6 +13085,8 @@ namespace quicktype { | ||
| 12974 | 13085 | x.set_let(get_stack_optional<std::variant<Let, double>>(j, "let")); |
| 12975 | 13086 | if (j.find("list") != j.end() && j.at("list").is_null()) throw std::runtime_error("Unexpected null"); |
| 12976 | 13087 | x.set_list(get_stack_optional<std::variant<List, double>>(j, "list")); |
| 13088 | + if (j.find("LocalDate") != j.end() && j.at("LocalDate").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13089 | + x.set_local_date(get_stack_optional<std::variant<LocalDate, double>>(j, "LocalDate")); | |
| 12977 | 13090 | if (j.find("Locale") != j.end() && j.at("Locale").is_null()) throw std::runtime_error("Unexpected null"); |
| 12978 | 13091 | x.set_locale(get_stack_optional<std::variant<Locale, double>>(j, "Locale")); |
| 12979 | 13092 | if (j.find("lock") != j.end() && j.at("lock").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -13042,6 +13155,10 @@ namespace quicktype { | ||
| 13042 | 13155 | x.set_object_mapper(get_stack_optional<std::variant<ObjectMapper, double>>(j, "ObjectMapper")); |
| 13043 | 13156 | if (j.find("of") != j.end() && j.at("of").is_null()) throw std::runtime_error("Unexpected null"); |
| 13044 | 13157 | x.set_of(get_stack_optional<std::variant<Of, double>>(j, "of")); |
| 13158 | + if (j.find("OffsetDateTime") != j.end() && j.at("OffsetDateTime").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13159 | + x.set_offset_date_time(get_stack_optional<std::variant<OffsetDateTime, double>>(j, "OffsetDateTime")); | |
| 13160 | + if (j.find("OffsetTime") != j.end() && j.at("OffsetTime").is_null()) throw std::runtime_error("Unexpected null"); | |
| 13161 | + x.set_offset_time(get_stack_optional<std::variant<OffsetTime, double>>(j, "OffsetTime")); | |
| 13045 | 13162 | if (j.find("oneway") != j.end() && j.at("oneway").is_null()) throw std::runtime_error("Unexpected null"); |
| 13046 | 13163 | x.set_oneway(get_stack_optional<std::variant<Oneway, double>>(j, "oneway")); |
| 13047 | 13164 | if (j.find("open") != j.end() && j.at("open").is_null()) throw std::runtime_error("Unexpected null"); |
| @@ -13478,6 +13595,7 @@ namespace quicktype { | ||
| 13478 | 13595 | j["left"] = x.get_left(); |
| 13479 | 13596 | j["let"] = x.get_let(); |
| 13480 | 13597 | j["list"] = x.get_list(); |
| 13598 | + j["LocalDate"] = x.get_local_date(); | |
| 13481 | 13599 | j["Locale"] = x.get_locale(); |
| 13482 | 13600 | j["lock"] = x.get_lock(); |
| 13483 | 13601 | j["long"] = x.get_top_level_long(); |
| @@ -13512,6 +13630,8 @@ namespace quicktype { | ||
| 13512 | 13630 | j["object"] = x.get_object(); |
| 13513 | 13631 | j["ObjectMapper"] = x.get_object_mapper(); |
| 13514 | 13632 | j["of"] = x.get_of(); |
| 13633 | + j["OffsetDateTime"] = x.get_offset_date_time(); | |
| 13634 | + j["OffsetTime"] = x.get_offset_time(); | |
| 13515 | 13635 | j["oneway"] = x.get_oneway(); |
| 13516 | 13636 | j["open"] = x.get_open(); |
| 13517 | 13637 | j["operator"] = x.get_top_level_operator(); |
| @@ -16122,6 +16242,26 @@ namespace nlohmann { | ||
| 16122 | 16242 | } |
| 16123 | 16243 | } |
| 16124 | 16244 | |
| 16245 | + inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::from_json(const json & j, std::variant<quicktype::LocalDate, double> & x) { | |
| 16246 | + if (j.is_number()) | |
| 16247 | + x = j.get<double>(); | |
| 16248 | + else if (j.is_object()) | |
| 16249 | + x = j.get<quicktype::LocalDate>(); | |
| 16250 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16251 | + } | |
| 16252 | + | |
| 16253 | + inline void adl_serializer<std::variant<quicktype::LocalDate, double>>::to_json(json & j, const std::variant<quicktype::LocalDate, double> & x) { | |
| 16254 | + switch (x.index()) { | |
| 16255 | + case 0: | |
| 16256 | + j = std::get<quicktype::LocalDate>(x); | |
| 16257 | + break; | |
| 16258 | + case 1: | |
| 16259 | + j = std::get<double>(x); | |
| 16260 | + break; | |
| 16261 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16262 | + } | |
| 16263 | + } | |
| 16264 | + | |
| 16125 | 16265 | inline void adl_serializer<std::variant<quicktype::Locale, double>>::from_json(const json & j, std::variant<quicktype::Locale, double> & x) { |
| 16126 | 16266 | if (j.is_number()) |
| 16127 | 16267 | x = j.get<double>(); |
| @@ -16582,6 +16722,46 @@ namespace nlohmann { | ||
| 16582 | 16722 | } |
| 16583 | 16723 | } |
| 16584 | 16724 | |
| 16725 | + inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetDateTime, double> & x) { | |
| 16726 | + if (j.is_number()) | |
| 16727 | + x = j.get<double>(); | |
| 16728 | + else if (j.is_object()) | |
| 16729 | + x = j.get<quicktype::OffsetDateTime>(); | |
| 16730 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16731 | + } | |
| 16732 | + | |
| 16733 | + inline void adl_serializer<std::variant<quicktype::OffsetDateTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetDateTime, double> & x) { | |
| 16734 | + switch (x.index()) { | |
| 16735 | + case 0: | |
| 16736 | + j = std::get<quicktype::OffsetDateTime>(x); | |
| 16737 | + break; | |
| 16738 | + case 1: | |
| 16739 | + j = std::get<double>(x); | |
| 16740 | + break; | |
| 16741 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16742 | + } | |
| 16743 | + } | |
| 16744 | + | |
| 16745 | + inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::from_json(const json & j, std::variant<quicktype::OffsetTime, double> & x) { | |
| 16746 | + if (j.is_number()) | |
| 16747 | + x = j.get<double>(); | |
| 16748 | + else if (j.is_object()) | |
| 16749 | + x = j.get<quicktype::OffsetTime>(); | |
| 16750 | + else throw std::runtime_error("Could not deserialise!"); | |
| 16751 | + } | |
| 16752 | + | |
| 16753 | + inline void adl_serializer<std::variant<quicktype::OffsetTime, double>>::to_json(json & j, const std::variant<quicktype::OffsetTime, double> & x) { | |
| 16754 | + switch (x.index()) { | |
| 16755 | + case 0: | |
| 16756 | + j = std::get<quicktype::OffsetTime>(x); | |
| 16757 | + break; | |
| 16758 | + case 1: | |
| 16759 | + j = std::get<double>(x); | |
| 16760 | + break; | |
| 16761 | + default: throw std::runtime_error("Input JSON does not conform to schema!"); | |
| 16762 | + } | |
| 16763 | + } | |
| 16764 | + | |
| 16585 | 16765 | inline void adl_serializer<std::variant<quicktype::Oneway, double>>::from_json(const json & j, std::variant<quicktype::Oneway, double> & x) { |
| 16586 | 16766 | if (j.is_number()) |
| 16587 | 16767 | x = j.get<double>(); |
Mschema-crystaldefault / TopLevel.cr+30 −0
| @@ -419,6 +419,9 @@ class TopLevel | ||
| 419 | 419 | |
| 420 | 420 | property list : UnionList? |
| 421 | 421 | |
| 422 | + @[JSON::Field(key: "LocalDate")] | |
| 423 | + property local_date : UnionLocalDate? | |
| 424 | + | |
| 422 | 425 | @[JSON::Field(key: "Locale")] |
| 423 | 426 | property locale : UnionLocale? |
| 424 | 427 | |
| @@ -502,6 +505,12 @@ class TopLevel | ||
| 502 | 505 | @[JSON::Field(key: "of")] |
| 503 | 506 | property top_level_of : UnionOf? |
| 504 | 507 | |
| 508 | + @[JSON::Field(key: "OffsetDateTime")] | |
| 509 | + property offset_date_time : UnionOffsetDateTime? | |
| 510 | + | |
| 511 | + @[JSON::Field(key: "OffsetTime")] | |
| 512 | + property offset_time : UnionOffsetTime? | |
| 513 | + | |
| 505 | 514 | property oneway : UnionOneway? |
| 506 | 515 | |
| 507 | 516 | property open : UnionOpen? |
| @@ -1595,6 +1604,11 @@ class List | ||
| 1595 | 1604 | |
| 1596 | 1605 | end |
| 1597 | 1606 | |
| 1607 | +class LocalDate | |
| 1608 | + include JSON::Serializable | |
| 1609 | + | |
| 1610 | +end | |
| 1611 | + | |
| 1598 | 1612 | class Locale |
| 1599 | 1613 | include JSON::Serializable |
| 1600 | 1614 | |
| @@ -1740,6 +1754,16 @@ class ObjectMapper | ||
| 1740 | 1754 | |
| 1741 | 1755 | end |
| 1742 | 1756 | |
| 1757 | +class OffsetDateTime | |
| 1758 | + include JSON::Serializable | |
| 1759 | + | |
| 1760 | +end | |
| 1761 | + | |
| 1762 | +class OffsetTime | |
| 1763 | + include JSON::Serializable | |
| 1764 | + | |
| 1765 | +end | |
| 1766 | + | |
| 1743 | 1767 | class Oneway |
| 1744 | 1768 | include JSON::Serializable |
| 1745 | 1769 | |
| @@ -2811,6 +2835,8 @@ alias UnionLet = Float64 | Let | ||
| 2811 | 2835 | |
| 2812 | 2836 | alias UnionList = Float64 | List |
| 2813 | 2837 | |
| 2838 | +alias UnionLocalDate = Float64 | LocalDate | |
| 2839 | + | |
| 2814 | 2840 | alias UnionLocale = Float64 | Locale |
| 2815 | 2841 | |
| 2816 | 2842 | alias UnionLock = Float64 | Lock |
| @@ -2869,6 +2895,10 @@ alias UnionObject = Float64 | ObjectClass | ||
| 2869 | 2895 | |
| 2870 | 2896 | alias UnionObjectMapper = Float64 | ObjectMapper |
| 2871 | 2897 | |
| 2898 | +alias UnionOffsetDateTime = Float64 | OffsetDateTime | |
| 2899 | + | |
| 2900 | +alias UnionOffsetTime = Float64 | OffsetTime | |
| 2901 | + | |
| 2872 | 2902 | alias UnionOneway = Float64 | Oneway |
| 2873 | 2903 | |
| 2874 | 2904 | alias UnionOpen = Float64 | Open |
Mschema-csharp-recordsdefault / QuickType.cs+165 −0
| @@ -559,6 +559,9 @@ namespace QuickType | ||
| 559 | 559 | [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 560 | 560 | public UnionList? List { get; set; } |
| 561 | 561 | |
| 562 | + [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 563 | + public UnionLocalDate? LocalDate { get; set; } | |
| 564 | + | |
| 562 | 565 | [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 563 | 566 | public UnionLocale? Locale { get; set; } |
| 564 | 567 | |
| @@ -661,6 +664,12 @@ namespace QuickType | ||
| 661 | 664 | [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 662 | 665 | public UnionOf? Of { get; set; } |
| 663 | 666 | |
| 667 | + [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 668 | + public UnionOffsetDateTime? OffsetDateTime { get; set; } | |
| 669 | + | |
| 670 | + [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 671 | + public UnionOffsetTime? OffsetTime { get; set; } | |
| 672 | + | |
| 664 | 673 | [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 665 | 674 | public UnionOneway? Oneway { get; set; } |
| 666 | 675 | |
| @@ -1719,6 +1728,10 @@ namespace QuickType | ||
| 1719 | 1728 | { |
| 1720 | 1729 | } |
| 1721 | 1730 | |
| 1731 | + public partial record LocalDate | |
| 1732 | + { | |
| 1733 | + } | |
| 1734 | + | |
| 1722 | 1735 | public partial record Locale |
| 1723 | 1736 | { |
| 1724 | 1737 | } |
| @@ -1847,6 +1860,14 @@ namespace QuickType | ||
| 1847 | 1860 | { |
| 1848 | 1861 | } |
| 1849 | 1862 | |
| 1863 | + public partial record OffsetDateTime | |
| 1864 | + { | |
| 1865 | + } | |
| 1866 | + | |
| 1867 | + public partial record OffsetTime | |
| 1868 | + { | |
| 1869 | + } | |
| 1870 | + | |
| 1850 | 1871 | public partial record Oneway |
| 1851 | 1872 | { |
| 1852 | 1873 | } |
| @@ -3916,6 +3937,15 @@ namespace QuickType | ||
| 3916 | 3937 | public static implicit operator UnionList(List List) => new UnionList { List = List }; |
| 3917 | 3938 | } |
| 3918 | 3939 | |
| 3940 | + public partial struct UnionLocalDate | |
| 3941 | + { | |
| 3942 | + public double? Double; | |
| 3943 | + public LocalDate? LocalDate; | |
| 3944 | + | |
| 3945 | + public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double }; | |
| 3946 | + public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate }; | |
| 3947 | + } | |
| 3948 | + | |
| 3919 | 3949 | public partial struct UnionLocale |
| 3920 | 3950 | { |
| 3921 | 3951 | public double? Double; |
| @@ -4204,6 +4234,24 @@ namespace QuickType | ||
| 4204 | 4234 | public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of }; |
| 4205 | 4235 | } |
| 4206 | 4236 | |
| 4237 | + public partial struct UnionOffsetDateTime | |
| 4238 | + { | |
| 4239 | + public double? Double; | |
| 4240 | + public OffsetDateTime? OffsetDateTime; | |
| 4241 | + | |
| 4242 | + public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double }; | |
| 4243 | + public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime }; | |
| 4244 | + } | |
| 4245 | + | |
| 4246 | + public partial struct UnionOffsetTime | |
| 4247 | + { | |
| 4248 | + public double? Double; | |
| 4249 | + public OffsetTime? OffsetTime; | |
| 4250 | + | |
| 4251 | + public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double }; | |
| 4252 | + public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime }; | |
| 4253 | + } | |
| 4254 | + | |
| 4207 | 4255 | public partial struct UnionOneway |
| 4208 | 4256 | { |
| 4209 | 4257 | public double? Double; |
| @@ -5491,6 +5539,7 @@ namespace QuickType | ||
| 5491 | 5539 | UnionJsonReaderConverter.Singleton, |
| 5492 | 5540 | UnionJsonTokenTypeConverter.Singleton, |
| 5493 | 5541 | UnionKSerializerConverter.Singleton, |
| 5542 | + UnionLocalDateConverter.Singleton, | |
| 5494 | 5543 | UnionLocaleConverter.Singleton, |
| 5495 | 5544 | UnionMapEntryConverter.Singleton, |
| 5496 | 5545 | UnionNoConverter.Singleton, |
| @@ -5500,6 +5549,8 @@ namespace QuickType | ||
| 5500 | 5549 | UnionNullConverter.Singleton, |
| 5501 | 5550 | UnionNoneConverter.Singleton, |
| 5502 | 5551 | UnionObjectMapperConverter.Singleton, |
| 5552 | + UnionOffsetDateTimeConverter.Singleton, | |
| 5553 | + UnionOffsetTimeConverter.Singleton, | |
| 5503 | 5554 | UnionPrimitiveKindConverter.Singleton, |
| 5504 | 5555 | UnionProtocolConverter.Singleton, |
| 5505 | 5556 | UnionRegExpConverter.Singleton, |
| @@ -7166,6 +7217,44 @@ namespace QuickType | ||
| 7166 | 7217 | public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter(); |
| 7167 | 7218 | } |
| 7168 | 7219 | |
| 7220 | + internal class UnionLocalDateConverter : JsonConverter | |
| 7221 | + { | |
| 7222 | + public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?); | |
| 7223 | + | |
| 7224 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7225 | + { | |
| 7226 | + switch (reader.TokenType) | |
| 7227 | + { | |
| 7228 | + case JsonToken.Integer: | |
| 7229 | + case JsonToken.Float: | |
| 7230 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7231 | + return new UnionLocalDate { Double = doubleValue }; | |
| 7232 | + case JsonToken.StartObject: | |
| 7233 | + var objectValue = serializer.Deserialize<LocalDate>(reader); | |
| 7234 | + return new UnionLocalDate { LocalDate = objectValue }; | |
| 7235 | + } | |
| 7236 | + throw new Exception("Cannot unmarshal type UnionLocalDate"); | |
| 7237 | + } | |
| 7238 | + | |
| 7239 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7240 | + { | |
| 7241 | + var value = (UnionLocalDate)untypedValue; | |
| 7242 | + if (value.Double != null) | |
| 7243 | + { | |
| 7244 | + serializer.Serialize(writer, value.Double.Value); | |
| 7245 | + return; | |
| 7246 | + } | |
| 7247 | + if (value.LocalDate != null) | |
| 7248 | + { | |
| 7249 | + serializer.Serialize(writer, value.LocalDate); | |
| 7250 | + return; | |
| 7251 | + } | |
| 7252 | + throw new Exception("Cannot marshal type UnionLocalDate"); | |
| 7253 | + } | |
| 7254 | + | |
| 7255 | + public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter(); | |
| 7256 | + } | |
| 7257 | + | |
| 7169 | 7258 | internal class UnionLocaleConverter : JsonConverter |
| 7170 | 7259 | { |
| 7171 | 7260 | public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?); |
| @@ -7508,6 +7597,82 @@ namespace QuickType | ||
| 7508 | 7597 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7509 | 7598 | } |
| 7510 | 7599 | |
| 7600 | + internal class UnionOffsetDateTimeConverter : JsonConverter | |
| 7601 | + { | |
| 7602 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?); | |
| 7603 | + | |
| 7604 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7605 | + { | |
| 7606 | + switch (reader.TokenType) | |
| 7607 | + { | |
| 7608 | + case JsonToken.Integer: | |
| 7609 | + case JsonToken.Float: | |
| 7610 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7611 | + return new UnionOffsetDateTime { Double = doubleValue }; | |
| 7612 | + case JsonToken.StartObject: | |
| 7613 | + var objectValue = serializer.Deserialize<OffsetDateTime>(reader); | |
| 7614 | + return new UnionOffsetDateTime { OffsetDateTime = objectValue }; | |
| 7615 | + } | |
| 7616 | + throw new Exception("Cannot unmarshal type UnionOffsetDateTime"); | |
| 7617 | + } | |
| 7618 | + | |
| 7619 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7620 | + { | |
| 7621 | + var value = (UnionOffsetDateTime)untypedValue; | |
| 7622 | + if (value.Double != null) | |
| 7623 | + { | |
| 7624 | + serializer.Serialize(writer, value.Double.Value); | |
| 7625 | + return; | |
| 7626 | + } | |
| 7627 | + if (value.OffsetDateTime != null) | |
| 7628 | + { | |
| 7629 | + serializer.Serialize(writer, value.OffsetDateTime); | |
| 7630 | + return; | |
| 7631 | + } | |
| 7632 | + throw new Exception("Cannot marshal type UnionOffsetDateTime"); | |
| 7633 | + } | |
| 7634 | + | |
| 7635 | + public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter(); | |
| 7636 | + } | |
| 7637 | + | |
| 7638 | + internal class UnionOffsetTimeConverter : JsonConverter | |
| 7639 | + { | |
| 7640 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?); | |
| 7641 | + | |
| 7642 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7643 | + { | |
| 7644 | + switch (reader.TokenType) | |
| 7645 | + { | |
| 7646 | + case JsonToken.Integer: | |
| 7647 | + case JsonToken.Float: | |
| 7648 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7649 | + return new UnionOffsetTime { Double = doubleValue }; | |
| 7650 | + case JsonToken.StartObject: | |
| 7651 | + var objectValue = serializer.Deserialize<OffsetTime>(reader); | |
| 7652 | + return new UnionOffsetTime { OffsetTime = objectValue }; | |
| 7653 | + } | |
| 7654 | + throw new Exception("Cannot unmarshal type UnionOffsetTime"); | |
| 7655 | + } | |
| 7656 | + | |
| 7657 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7658 | + { | |
| 7659 | + var value = (UnionOffsetTime)untypedValue; | |
| 7660 | + if (value.Double != null) | |
| 7661 | + { | |
| 7662 | + serializer.Serialize(writer, value.Double.Value); | |
| 7663 | + return; | |
| 7664 | + } | |
| 7665 | + if (value.OffsetTime != null) | |
| 7666 | + { | |
| 7667 | + serializer.Serialize(writer, value.OffsetTime); | |
| 7668 | + return; | |
| 7669 | + } | |
| 7670 | + throw new Exception("Cannot marshal type UnionOffsetTime"); | |
| 7671 | + } | |
| 7672 | + | |
| 7673 | + public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter(); | |
| 7674 | + } | |
| 7675 | + | |
| 7511 | 7676 | internal class UnionPrimitiveKindConverter : JsonConverter |
| 7512 | 7677 | { |
| 7513 | 7678 | public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?); |
Mschema-csharp-SystemTextJsondefault / QuickType.cs+162 −0
| @@ -734,6 +734,10 @@ namespace QuickType | ||
| 734 | 734 | [JsonPropertyName("list")] |
| 735 | 735 | public UnionList? List { get; set; } |
| 736 | 736 | |
| 737 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 738 | + [JsonPropertyName("LocalDate")] | |
| 739 | + public UnionLocalDate? LocalDate { get; set; } | |
| 740 | + | |
| 737 | 741 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 738 | 742 | [JsonPropertyName("Locale")] |
| 739 | 743 | public UnionLocale? Locale { get; set; } |
| @@ -870,6 +874,14 @@ namespace QuickType | ||
| 870 | 874 | [JsonPropertyName("of")] |
| 871 | 875 | public UnionOf? Of { get; set; } |
| 872 | 876 | |
| 877 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 878 | + [JsonPropertyName("OffsetDateTime")] | |
| 879 | + public UnionOffsetDateTime? OffsetDateTime { get; set; } | |
| 880 | + | |
| 881 | + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | |
| 882 | + [JsonPropertyName("OffsetTime")] | |
| 883 | + public UnionOffsetTime? OffsetTime { get; set; } | |
| 884 | + | |
| 873 | 885 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
| 874 | 886 | [JsonPropertyName("oneway")] |
| 875 | 887 | public UnionOneway? Oneway { get; set; } |
| @@ -2063,6 +2075,10 @@ namespace QuickType | ||
| 2063 | 2075 | { |
| 2064 | 2076 | } |
| 2065 | 2077 | |
| 2078 | + public partial class LocalDate | |
| 2079 | + { | |
| 2080 | + } | |
| 2081 | + | |
| 2066 | 2082 | public partial class Locale |
| 2067 | 2083 | { |
| 2068 | 2084 | } |
| @@ -2191,6 +2207,14 @@ namespace QuickType | ||
| 2191 | 2207 | { |
| 2192 | 2208 | } |
| 2193 | 2209 | |
| 2210 | + public partial class OffsetDateTime | |
| 2211 | + { | |
| 2212 | + } | |
| 2213 | + | |
| 2214 | + public partial class OffsetTime | |
| 2215 | + { | |
| 2216 | + } | |
| 2217 | + | |
| 2194 | 2218 | public partial class Oneway |
| 2195 | 2219 | { |
| 2196 | 2220 | } |
| @@ -4270,6 +4294,15 @@ namespace QuickType | ||
| 4270 | 4294 | public static implicit operator UnionList(List List) => new UnionList { List = List }; |
| 4271 | 4295 | } |
| 4272 | 4296 | |
| 4297 | + public partial struct UnionLocalDate | |
| 4298 | + { | |
| 4299 | + public double? Double; | |
| 4300 | + public LocalDate? LocalDate; | |
| 4301 | + | |
| 4302 | + public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double }; | |
| 4303 | + public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate }; | |
| 4304 | + } | |
| 4305 | + | |
| 4273 | 4306 | public partial struct UnionLocale |
| 4274 | 4307 | { |
| 4275 | 4308 | public double? Double; |
| @@ -4558,6 +4591,24 @@ namespace QuickType | ||
| 4558 | 4591 | public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of }; |
| 4559 | 4592 | } |
| 4560 | 4593 | |
| 4594 | + public partial struct UnionOffsetDateTime | |
| 4595 | + { | |
| 4596 | + public double? Double; | |
| 4597 | + public OffsetDateTime? OffsetDateTime; | |
| 4598 | + | |
| 4599 | + public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double }; | |
| 4600 | + public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime }; | |
| 4601 | + } | |
| 4602 | + | |
| 4603 | + public partial struct UnionOffsetTime | |
| 4604 | + { | |
| 4605 | + public double? Double; | |
| 4606 | + public OffsetTime? OffsetTime; | |
| 4607 | + | |
| 4608 | + public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double }; | |
| 4609 | + public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime }; | |
| 4610 | + } | |
| 4611 | + | |
| 4561 | 4612 | public partial struct UnionOneway |
| 4562 | 4613 | { |
| 4563 | 4614 | public double? Double; |
| @@ -5825,6 +5876,7 @@ namespace QuickType | ||
| 5825 | 5876 | UnionJsonReaderConverter.Singleton, |
| 5826 | 5877 | UnionJsonTokenTypeConverter.Singleton, |
| 5827 | 5878 | UnionKSerializerConverter.Singleton, |
| 5879 | + UnionLocalDateConverter.Singleton, | |
| 5828 | 5880 | UnionLocaleConverter.Singleton, |
| 5829 | 5881 | UnionMapEntryConverter.Singleton, |
| 5830 | 5882 | UnionNoConverter.Singleton, |
| @@ -5834,6 +5886,8 @@ namespace QuickType | ||
| 5834 | 5886 | UnionNullConverter.Singleton, |
| 5835 | 5887 | UnionNoneConverter.Singleton, |
| 5836 | 5888 | UnionObjectMapperConverter.Singleton, |
| 5889 | + UnionOffsetDateTimeConverter.Singleton, | |
| 5890 | + UnionOffsetTimeConverter.Singleton, | |
| 5837 | 5891 | UnionPrimitiveKindConverter.Singleton, |
| 5838 | 5892 | UnionProtocolConverter.Singleton, |
| 5839 | 5893 | UnionRegExpConverter.Singleton, |
| @@ -7430,6 +7484,42 @@ namespace QuickType | ||
| 7430 | 7484 | public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter(); |
| 7431 | 7485 | } |
| 7432 | 7486 | |
| 7487 | + internal class UnionLocalDateConverter : JsonConverter<UnionLocalDate> | |
| 7488 | + { | |
| 7489 | + public override bool CanConvert(Type t) => t == typeof(UnionLocalDate); | |
| 7490 | + | |
| 7491 | + public override UnionLocalDate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7492 | + { | |
| 7493 | + switch (reader.TokenType) | |
| 7494 | + { | |
| 7495 | + case JsonTokenType.Number: | |
| 7496 | + var doubleValue1 = reader.GetDouble(); | |
| 7497 | + return new UnionLocalDate { Double = doubleValue1 }; | |
| 7498 | + case JsonTokenType.StartObject: | |
| 7499 | + var objectValue = JsonSerializer.Deserialize<LocalDate>(ref reader, options); | |
| 7500 | + return new UnionLocalDate { LocalDate = objectValue }; | |
| 7501 | + } | |
| 7502 | + throw new JsonException("Cannot unmarshal type UnionLocalDate"); | |
| 7503 | + } | |
| 7504 | + | |
| 7505 | + public override void Write(Utf8JsonWriter writer, UnionLocalDate value, JsonSerializerOptions options) | |
| 7506 | + { | |
| 7507 | + if (value.Double != null) | |
| 7508 | + { | |
| 7509 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7510 | + return; | |
| 7511 | + } | |
| 7512 | + if (value.LocalDate != null) | |
| 7513 | + { | |
| 7514 | + JsonSerializer.Serialize(writer, value.LocalDate, options); | |
| 7515 | + return; | |
| 7516 | + } | |
| 7517 | + throw new NotSupportedException("Cannot marshal type UnionLocalDate"); | |
| 7518 | + } | |
| 7519 | + | |
| 7520 | + public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter(); | |
| 7521 | + } | |
| 7522 | + | |
| 7433 | 7523 | internal class UnionLocaleConverter : JsonConverter<UnionLocale> |
| 7434 | 7524 | { |
| 7435 | 7525 | public override bool CanConvert(Type t) => t == typeof(UnionLocale); |
| @@ -7754,6 +7844,78 @@ namespace QuickType | ||
| 7754 | 7844 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7755 | 7845 | } |
| 7756 | 7846 | |
| 7847 | + internal class UnionOffsetDateTimeConverter : JsonConverter<UnionOffsetDateTime> | |
| 7848 | + { | |
| 7849 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime); | |
| 7850 | + | |
| 7851 | + public override UnionOffsetDateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7852 | + { | |
| 7853 | + switch (reader.TokenType) | |
| 7854 | + { | |
| 7855 | + case JsonTokenType.Number: | |
| 7856 | + var doubleValue1 = reader.GetDouble(); | |
| 7857 | + return new UnionOffsetDateTime { Double = doubleValue1 }; | |
| 7858 | + case JsonTokenType.StartObject: | |
| 7859 | + var objectValue = JsonSerializer.Deserialize<OffsetDateTime>(ref reader, options); | |
| 7860 | + return new UnionOffsetDateTime { OffsetDateTime = objectValue }; | |
| 7861 | + } | |
| 7862 | + throw new JsonException("Cannot unmarshal type UnionOffsetDateTime"); | |
| 7863 | + } | |
| 7864 | + | |
| 7865 | + public override void Write(Utf8JsonWriter writer, UnionOffsetDateTime value, JsonSerializerOptions options) | |
| 7866 | + { | |
| 7867 | + if (value.Double != null) | |
| 7868 | + { | |
| 7869 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7870 | + return; | |
| 7871 | + } | |
| 7872 | + if (value.OffsetDateTime != null) | |
| 7873 | + { | |
| 7874 | + JsonSerializer.Serialize(writer, value.OffsetDateTime, options); | |
| 7875 | + return; | |
| 7876 | + } | |
| 7877 | + throw new NotSupportedException("Cannot marshal type UnionOffsetDateTime"); | |
| 7878 | + } | |
| 7879 | + | |
| 7880 | + public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter(); | |
| 7881 | + } | |
| 7882 | + | |
| 7883 | + internal class UnionOffsetTimeConverter : JsonConverter<UnionOffsetTime> | |
| 7884 | + { | |
| 7885 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime); | |
| 7886 | + | |
| 7887 | + public override UnionOffsetTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
| 7888 | + { | |
| 7889 | + switch (reader.TokenType) | |
| 7890 | + { | |
| 7891 | + case JsonTokenType.Number: | |
| 7892 | + var doubleValue1 = reader.GetDouble(); | |
| 7893 | + return new UnionOffsetTime { Double = doubleValue1 }; | |
| 7894 | + case JsonTokenType.StartObject: | |
| 7895 | + var objectValue = JsonSerializer.Deserialize<OffsetTime>(ref reader, options); | |
| 7896 | + return new UnionOffsetTime { OffsetTime = objectValue }; | |
| 7897 | + } | |
| 7898 | + throw new JsonException("Cannot unmarshal type UnionOffsetTime"); | |
| 7899 | + } | |
| 7900 | + | |
| 7901 | + public override void Write(Utf8JsonWriter writer, UnionOffsetTime value, JsonSerializerOptions options) | |
| 7902 | + { | |
| 7903 | + if (value.Double != null) | |
| 7904 | + { | |
| 7905 | + JsonSerializer.Serialize(writer, value.Double.Value, options); | |
| 7906 | + return; | |
| 7907 | + } | |
| 7908 | + if (value.OffsetTime != null) | |
| 7909 | + { | |
| 7910 | + JsonSerializer.Serialize(writer, value.OffsetTime, options); | |
| 7911 | + return; | |
| 7912 | + } | |
| 7913 | + throw new NotSupportedException("Cannot marshal type UnionOffsetTime"); | |
| 7914 | + } | |
| 7915 | + | |
| 7916 | + public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter(); | |
| 7917 | + } | |
| 7918 | + | |
| 7757 | 7919 | internal class UnionPrimitiveKindConverter : JsonConverter<UnionPrimitiveKind> |
| 7758 | 7920 | { |
| 7759 | 7921 | public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind); |
Mschema-csharpdefault / QuickType.cs+165 −0
| @@ -559,6 +559,9 @@ namespace QuickType | ||
| 559 | 559 | [JsonProperty("list", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 560 | 560 | public UnionList? List { get; set; } |
| 561 | 561 | |
| 562 | + [JsonProperty("LocalDate", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 563 | + public UnionLocalDate? LocalDate { get; set; } | |
| 564 | + | |
| 562 | 565 | [JsonProperty("Locale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 563 | 566 | public UnionLocale? Locale { get; set; } |
| 564 | 567 | |
| @@ -661,6 +664,12 @@ namespace QuickType | ||
| 661 | 664 | [JsonProperty("of", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 662 | 665 | public UnionOf? Of { get; set; } |
| 663 | 666 | |
| 667 | + [JsonProperty("OffsetDateTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 668 | + public UnionOffsetDateTime? OffsetDateTime { get; set; } | |
| 669 | + | |
| 670 | + [JsonProperty("OffsetTime", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] | |
| 671 | + public UnionOffsetTime? OffsetTime { get; set; } | |
| 672 | + | |
| 664 | 673 | [JsonProperty("oneway", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 665 | 674 | public UnionOneway? Oneway { get; set; } |
| 666 | 675 | |
| @@ -1727,6 +1736,10 @@ namespace QuickType | ||
| 1727 | 1736 | { |
| 1728 | 1737 | } |
| 1729 | 1738 | |
| 1739 | + public partial class LocalDate | |
| 1740 | + { | |
| 1741 | + } | |
| 1742 | + | |
| 1730 | 1743 | public partial class Locale |
| 1731 | 1744 | { |
| 1732 | 1745 | } |
| @@ -1855,6 +1868,14 @@ namespace QuickType | ||
| 1855 | 1868 | { |
| 1856 | 1869 | } |
| 1857 | 1870 | |
| 1871 | + public partial class OffsetDateTime | |
| 1872 | + { | |
| 1873 | + } | |
| 1874 | + | |
| 1875 | + public partial class OffsetTime | |
| 1876 | + { | |
| 1877 | + } | |
| 1878 | + | |
| 1858 | 1879 | public partial class Oneway |
| 1859 | 1880 | { |
| 1860 | 1881 | } |
| @@ -3934,6 +3955,15 @@ namespace QuickType | ||
| 3934 | 3955 | public static implicit operator UnionList(List List) => new UnionList { List = List }; |
| 3935 | 3956 | } |
| 3936 | 3957 | |
| 3958 | + public partial struct UnionLocalDate | |
| 3959 | + { | |
| 3960 | + public double? Double; | |
| 3961 | + public LocalDate? LocalDate; | |
| 3962 | + | |
| 3963 | + public static implicit operator UnionLocalDate(double Double) => new UnionLocalDate { Double = Double }; | |
| 3964 | + public static implicit operator UnionLocalDate(LocalDate LocalDate) => new UnionLocalDate { LocalDate = LocalDate }; | |
| 3965 | + } | |
| 3966 | + | |
| 3937 | 3967 | public partial struct UnionLocale |
| 3938 | 3968 | { |
| 3939 | 3969 | public double? Double; |
| @@ -4222,6 +4252,24 @@ namespace QuickType | ||
| 4222 | 4252 | public static implicit operator UnionOf(Of Of) => new UnionOf { Of = Of }; |
| 4223 | 4253 | } |
| 4224 | 4254 | |
| 4255 | + public partial struct UnionOffsetDateTime | |
| 4256 | + { | |
| 4257 | + public double? Double; | |
| 4258 | + public OffsetDateTime? OffsetDateTime; | |
| 4259 | + | |
| 4260 | + public static implicit operator UnionOffsetDateTime(double Double) => new UnionOffsetDateTime { Double = Double }; | |
| 4261 | + public static implicit operator UnionOffsetDateTime(OffsetDateTime OffsetDateTime) => new UnionOffsetDateTime { OffsetDateTime = OffsetDateTime }; | |
| 4262 | + } | |
| 4263 | + | |
| 4264 | + public partial struct UnionOffsetTime | |
| 4265 | + { | |
| 4266 | + public double? Double; | |
| 4267 | + public OffsetTime? OffsetTime; | |
| 4268 | + | |
| 4269 | + public static implicit operator UnionOffsetTime(double Double) => new UnionOffsetTime { Double = Double }; | |
| 4270 | + public static implicit operator UnionOffsetTime(OffsetTime OffsetTime) => new UnionOffsetTime { OffsetTime = OffsetTime }; | |
| 4271 | + } | |
| 4272 | + | |
| 4225 | 4273 | public partial struct UnionOneway |
| 4226 | 4274 | { |
| 4227 | 4275 | public double? Double; |
| @@ -5491,6 +5539,7 @@ namespace QuickType | ||
| 5491 | 5539 | UnionJsonReaderConverter.Singleton, |
| 5492 | 5540 | UnionJsonTokenTypeConverter.Singleton, |
| 5493 | 5541 | UnionKSerializerConverter.Singleton, |
| 5542 | + UnionLocalDateConverter.Singleton, | |
| 5494 | 5543 | UnionLocaleConverter.Singleton, |
| 5495 | 5544 | UnionMapEntryConverter.Singleton, |
| 5496 | 5545 | UnionNoConverter.Singleton, |
| @@ -5500,6 +5549,8 @@ namespace QuickType | ||
| 5500 | 5549 | UnionNullConverter.Singleton, |
| 5501 | 5550 | UnionNoneConverter.Singleton, |
| 5502 | 5551 | UnionObjectMapperConverter.Singleton, |
| 5552 | + UnionOffsetDateTimeConverter.Singleton, | |
| 5553 | + UnionOffsetTimeConverter.Singleton, | |
| 5503 | 5554 | UnionPrimitiveKindConverter.Singleton, |
| 5504 | 5555 | UnionProtocolConverter.Singleton, |
| 5505 | 5556 | UnionRegExpConverter.Singleton, |
| @@ -7166,6 +7217,44 @@ namespace QuickType | ||
| 7166 | 7217 | public static readonly UnionKSerializerConverter Singleton = new UnionKSerializerConverter(); |
| 7167 | 7218 | } |
| 7168 | 7219 | |
| 7220 | + internal class UnionLocalDateConverter : JsonConverter | |
| 7221 | + { | |
| 7222 | + public override bool CanConvert(Type t) => t == typeof(UnionLocalDate) || t == typeof(UnionLocalDate?); | |
| 7223 | + | |
| 7224 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7225 | + { | |
| 7226 | + switch (reader.TokenType) | |
| 7227 | + { | |
| 7228 | + case JsonToken.Integer: | |
| 7229 | + case JsonToken.Float: | |
| 7230 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7231 | + return new UnionLocalDate { Double = doubleValue }; | |
| 7232 | + case JsonToken.StartObject: | |
| 7233 | + var objectValue = serializer.Deserialize<LocalDate>(reader); | |
| 7234 | + return new UnionLocalDate { LocalDate = objectValue }; | |
| 7235 | + } | |
| 7236 | + throw new Exception("Cannot unmarshal type UnionLocalDate"); | |
| 7237 | + } | |
| 7238 | + | |
| 7239 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7240 | + { | |
| 7241 | + var value = (UnionLocalDate)untypedValue; | |
| 7242 | + if (value.Double != null) | |
| 7243 | + { | |
| 7244 | + serializer.Serialize(writer, value.Double.Value); | |
| 7245 | + return; | |
| 7246 | + } | |
| 7247 | + if (value.LocalDate != null) | |
| 7248 | + { | |
| 7249 | + serializer.Serialize(writer, value.LocalDate); | |
| 7250 | + return; | |
| 7251 | + } | |
| 7252 | + throw new Exception("Cannot marshal type UnionLocalDate"); | |
| 7253 | + } | |
| 7254 | + | |
| 7255 | + public static readonly UnionLocalDateConverter Singleton = new UnionLocalDateConverter(); | |
| 7256 | + } | |
| 7257 | + | |
| 7169 | 7258 | internal class UnionLocaleConverter : JsonConverter |
| 7170 | 7259 | { |
| 7171 | 7260 | public override bool CanConvert(Type t) => t == typeof(UnionLocale) || t == typeof(UnionLocale?); |
| @@ -7508,6 +7597,82 @@ namespace QuickType | ||
| 7508 | 7597 | public static readonly UnionObjectMapperConverter Singleton = new UnionObjectMapperConverter(); |
| 7509 | 7598 | } |
| 7510 | 7599 | |
| 7600 | + internal class UnionOffsetDateTimeConverter : JsonConverter | |
| 7601 | + { | |
| 7602 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetDateTime) || t == typeof(UnionOffsetDateTime?); | |
| 7603 | + | |
| 7604 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7605 | + { | |
| 7606 | + switch (reader.TokenType) | |
| 7607 | + { | |
| 7608 | + case JsonToken.Integer: | |
| 7609 | + case JsonToken.Float: | |
| 7610 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7611 | + return new UnionOffsetDateTime { Double = doubleValue }; | |
| 7612 | + case JsonToken.StartObject: | |
| 7613 | + var objectValue = serializer.Deserialize<OffsetDateTime>(reader); | |
| 7614 | + return new UnionOffsetDateTime { OffsetDateTime = objectValue }; | |
| 7615 | + } | |
| 7616 | + throw new Exception("Cannot unmarshal type UnionOffsetDateTime"); | |
| 7617 | + } | |
| 7618 | + | |
| 7619 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7620 | + { | |
| 7621 | + var value = (UnionOffsetDateTime)untypedValue; | |
| 7622 | + if (value.Double != null) | |
| 7623 | + { | |
| 7624 | + serializer.Serialize(writer, value.Double.Value); | |
| 7625 | + return; | |
| 7626 | + } | |
| 7627 | + if (value.OffsetDateTime != null) | |
| 7628 | + { | |
| 7629 | + serializer.Serialize(writer, value.OffsetDateTime); | |
| 7630 | + return; | |
| 7631 | + } | |
| 7632 | + throw new Exception("Cannot marshal type UnionOffsetDateTime"); | |
| 7633 | + } | |
| 7634 | + | |
| 7635 | + public static readonly UnionOffsetDateTimeConverter Singleton = new UnionOffsetDateTimeConverter(); | |
| 7636 | + } | |
| 7637 | + | |
| 7638 | + internal class UnionOffsetTimeConverter : JsonConverter | |
| 7639 | + { | |
| 7640 | + public override bool CanConvert(Type t) => t == typeof(UnionOffsetTime) || t == typeof(UnionOffsetTime?); | |
| 7641 | + | |
| 7642 | + public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer) | |
| 7643 | + { | |
| 7644 | + switch (reader.TokenType) | |
| 7645 | + { | |
| 7646 | + case JsonToken.Integer: | |
| 7647 | + case JsonToken.Float: | |
| 7648 | + var doubleValue = serializer.Deserialize<double>(reader); | |
| 7649 | + return new UnionOffsetTime { Double = doubleValue }; | |
| 7650 | + case JsonToken.StartObject: | |
| 7651 | + var objectValue = serializer.Deserialize<OffsetTime>(reader); | |
| 7652 | + return new UnionOffsetTime { OffsetTime = objectValue }; | |
| 7653 | + } | |
| 7654 | + throw new Exception("Cannot unmarshal type UnionOffsetTime"); | |
| 7655 | + } | |
| 7656 | + | |
| 7657 | + public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer) | |
| 7658 | + { | |
| 7659 | + var value = (UnionOffsetTime)untypedValue; | |
| 7660 | + if (value.Double != null) | |
| 7661 | + { | |
| 7662 | + serializer.Serialize(writer, value.Double.Value); | |
| 7663 | + return; | |
| 7664 | + } | |
| 7665 | + if (value.OffsetTime != null) | |
| 7666 | + { | |
| 7667 | + serializer.Serialize(writer, value.OffsetTime); | |
| 7668 | + return; | |
| 7669 | + } | |
| 7670 | + throw new Exception("Cannot marshal type UnionOffsetTime"); | |
| 7671 | + } | |
| 7672 | + | |
| 7673 | + public static readonly UnionOffsetTimeConverter Singleton = new UnionOffsetTimeConverter(); | |
| 7674 | + } | |
| 7675 | + | |
| 7511 | 7676 | internal class UnionPrimitiveKindConverter : JsonConverter |
| 7512 | 7677 | { |
| 7513 | 7678 | public override bool CanConvert(Type t) => t == typeof(UnionPrimitiveKind) || t == typeof(UnionPrimitiveKind?); |
Mschema-dartdefault / TopLevel.dart+42 −0
| @@ -187,6 +187,7 @@ class TopLevel { | ||
| 187 | 187 | final dynamic left; |
| 188 | 188 | final dynamic let; |
| 189 | 189 | final dynamic list; |
| 190 | + final dynamic localDate; | |
| 190 | 191 | final dynamic locale; |
| 191 | 192 | final dynamic lock; |
| 192 | 193 | final dynamic long; |
| @@ -221,6 +222,8 @@ class TopLevel { | ||
| 221 | 222 | final dynamic object; |
| 222 | 223 | final dynamic objectMapper; |
| 223 | 224 | final dynamic of; |
| 225 | + final dynamic offsetDateTime; | |
| 226 | + final dynamic offsetTime; | |
| 224 | 227 | final dynamic oneway; |
| 225 | 228 | final dynamic open; |
| 226 | 229 | final dynamic topLevelOperator; |
| @@ -528,6 +531,7 @@ class TopLevel { | ||
| 528 | 531 | this.left, |
| 529 | 532 | this.let, |
| 530 | 533 | this.list, |
| 534 | + this.localDate, | |
| 531 | 535 | this.locale, |
| 532 | 536 | this.lock, |
| 533 | 537 | this.long, |
| @@ -562,6 +566,8 @@ class TopLevel { | ||
| 562 | 566 | this.object, |
| 563 | 567 | this.objectMapper, |
| 564 | 568 | this.of, |
| 569 | + this.offsetDateTime, | |
| 570 | + this.offsetTime, | |
| 565 | 571 | this.oneway, |
| 566 | 572 | this.open, |
| 567 | 573 | this.topLevelOperator, |
| @@ -870,6 +876,7 @@ class TopLevel { | ||
| 870 | 876 | left: json["left"], |
| 871 | 877 | let: json["let"], |
| 872 | 878 | list: json["list"], |
| 879 | + localDate: json["LocalDate"], | |
| 873 | 880 | locale: json["Locale"], |
| 874 | 881 | lock: json["lock"], |
| 875 | 882 | long: json["long"], |
| @@ -904,6 +911,8 @@ class TopLevel { | ||
| 904 | 911 | object: json["object"], |
| 905 | 912 | objectMapper: json["ObjectMapper"], |
| 906 | 913 | of: json["of"], |
| 914 | + offsetDateTime: json["OffsetDateTime"], | |
| 915 | + offsetTime: json["OffsetTime"], | |
| 907 | 916 | oneway: json["oneway"], |
| 908 | 917 | open: json["open"], |
| 909 | 918 | topLevelOperator: json["operator"], |
| @@ -1212,6 +1221,7 @@ class TopLevel { | ||
| 1212 | 1221 | "left": left, |
| 1213 | 1222 | "let": let, |
| 1214 | 1223 | "list": list, |
| 1224 | + "LocalDate": localDate, | |
| 1215 | 1225 | "Locale": locale, |
| 1216 | 1226 | "lock": lock, |
| 1217 | 1227 | "long": long, |
| @@ -1246,6 +1256,8 @@ class TopLevel { | ||
| 1246 | 1256 | "object": object, |
| 1247 | 1257 | "ObjectMapper": objectMapper, |
| 1248 | 1258 | "of": of, |
| 1259 | + "OffsetDateTime": offsetDateTime, | |
| 1260 | + "OffsetTime": offsetTime, | |
| 1249 | 1261 | "oneway": oneway, |
| 1250 | 1262 | "open": open, |
| 1251 | 1263 | "operator": topLevelOperator, |
| @@ -2766,6 +2778,16 @@ class ListClass { | ||
| 2766 | 2778 | }; |
| 2767 | 2779 | } |
| 2768 | 2780 | |
| 2781 | +class LocalDate { | |
| 2782 | + LocalDate(); | |
| 2783 | + | |
| 2784 | + factory LocalDate.fromJson(Map<String, dynamic> json) => LocalDate( | |
| 2785 | + ); | |
| 2786 | + | |
| 2787 | + Map<String, dynamic> toJson() => { | |
| 2788 | + }; | |
| 2789 | +} | |
| 2790 | + | |
| 2769 | 2791 | class Locale { |
| 2770 | 2792 | Locale(); |
| 2771 | 2793 | |
| @@ -3056,6 +3078,26 @@ class Of { | ||
| 3056 | 3078 | }; |
| 3057 | 3079 | } |
| 3058 | 3080 | |
| 3081 | +class OffsetDateTime { | |
| 3082 | + OffsetDateTime(); | |
| 3083 | + | |
| 3084 | + factory OffsetDateTime.fromJson(Map<String, dynamic> json) => OffsetDateTime( | |
| 3085 | + ); | |
| 3086 | + | |
| 3087 | + Map<String, dynamic> toJson() => { | |
| 3088 | + }; | |
| 3089 | +} | |
| 3090 | + | |
| 3091 | +class OffsetTime { | |
| 3092 | + OffsetTime(); | |
| 3093 | + | |
| 3094 | + factory OffsetTime.fromJson(Map<String, dynamic> json) => OffsetTime( | |
| 3095 | + ); | |
| 3096 | + | |
| 3097 | + Map<String, dynamic> toJson() => { | |
| 3098 | + }; | |
| 3099 | +} | |
| 3100 | + | |
| 3059 | 3101 | class Oneway { |
| 3060 | 3102 | Oneway(); |
Mschema-elixirdefault / QuickType.ex+133 −1
| @@ -4819,6 +4819,35 @@ defmodule ListClass do | ||
| 4819 | 4819 | end |
| 4820 | 4820 | end |
| 4821 | 4821 | |
| 4822 | +defmodule LocalDate do | |
| 4823 | + defstruct [] | |
| 4824 | + | |
| 4825 | + @type t :: %__MODULE__{ | |
| 4826 | + } | |
| 4827 | + | |
| 4828 | + def from_map(m) when is_map(m) do | |
| 4829 | + %LocalDate{ | |
| 4830 | + } | |
| 4831 | + end | |
| 4832 | + | |
| 4833 | + def from_json(json) do | |
| 4834 | + json | |
| 4835 | + |> Jason.decode!() | |
| 4836 | + |> from_map() | |
| 4837 | + end | |
| 4838 | + | |
| 4839 | + def to_map(_struct) do | |
| 4840 | + %{ | |
| 4841 | + } | |
| 4842 | + end | |
| 4843 | + | |
| 4844 | + def to_json(struct) do | |
| 4845 | + struct | |
| 4846 | + |> to_map() | |
| 4847 | + |> Jason.encode!() | |
| 4848 | + end | |
| 4849 | +end | |
| 4850 | + | |
| 4822 | 4851 | defmodule Locale do |
| 4823 | 4852 | defstruct [] |
| 4824 | 4853 | |
| @@ -5689,6 +5718,64 @@ defmodule Of do | ||
| 5689 | 5718 | end |
| 5690 | 5719 | end |
| 5691 | 5720 | |
| 5721 | +defmodule OffsetDateTime do | |
| 5722 | + defstruct [] | |
| 5723 | + | |
| 5724 | + @type t :: %__MODULE__{ | |
| 5725 | + } | |
| 5726 | + | |
| 5727 | + def from_map(m) when is_map(m) do | |
| 5728 | + %OffsetDateTime{ | |
| 5729 | + } | |
| 5730 | + end | |
| 5731 | + | |
| 5732 | + def from_json(json) do | |
| 5733 | + json | |
| 5734 | + |> Jason.decode!() | |
| 5735 | + |> from_map() | |
| 5736 | + end | |
| 5737 | + | |
| 5738 | + def to_map(_struct) do | |
| 5739 | + %{ | |
| 5740 | + } | |
| 5741 | + end | |
| 5742 | + | |
| 5743 | + def to_json(struct) do | |
| 5744 | + struct | |
| 5745 | + |> to_map() | |
| 5746 | + |> Jason.encode!() | |
| 5747 | + end | |
| 5748 | +end | |
| 5749 | + | |
| 5750 | +defmodule OffsetTime do | |
| 5751 | + defstruct [] | |
| 5752 | + | |
| 5753 | + @type t :: %__MODULE__{ | |
| 5754 | + } | |
| 5755 | + | |
| 5756 | + def from_map(m) when is_map(m) do | |
| 5757 | + %OffsetTime{ | |
| 5758 | + } | |
| 5759 | + end | |
| 5760 | + | |
| 5761 | + def from_json(json) do | |
| 5762 | + json | |
| 5763 | + |> Jason.decode!() | |
| 5764 | + |> from_map() | |
| 5765 | + end | |
| 5766 | + | |
| 5767 | + def to_map(_struct) do | |
| 5768 | + %{ | |
| 5769 | + } | |
| 5770 | + end | |
| 5771 | + | |
| 5772 | + def to_json(struct) do | |
| 5773 | + struct | |
| 5774 | + |> to_map() | |
| 5775 | + |> Jason.encode!() | |
| 5776 | + end | |
| 5777 | +end | |
| 5778 | + | |
| 5692 | 5779 | defmodule Oneway do |
| 5693 | 5780 | defstruct [] |
| 5694 | 5781 | |
| @@ -9808,7 +9895,7 @@ defmodule Yield do | ||
| 9808 | 9895 | end |
| 9809 | 9896 | |
| 9810 | 9897 | defmodule TopLevel do |
| 9811 | - 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, :k_serializer, :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, :primitive_kind, :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, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :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, :use_serializers, :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] | |
| 9898 | + 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, :k_serializer, :lambda, :lazy, :left, :let, :list, :local_date, :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, :offset_date_time, :offset_time, :oneway, :open, :operator, :optional, :top_level_or, :or_eq, :out, :override, :package, :params, :pass, :port, :postfix, :precedence, :prefix, :primitive_kind, :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, :serial_descriptor, :serializable, :serialize, :serializer_provider, :serial_name, :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, :use_serializers, :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] | |
| 9812 | 9899 | |
| 9813 | 9900 | @type t :: %__MODULE__{ |
| 9814 | 9901 | empty: Empty.t() | float() | nil, |
| @@ -9989,6 +10076,7 @@ defmodule TopLevel do | ||
| 9989 | 10076 | left: Left.t() | float() | nil, |
| 9990 | 10077 | let: Let.t() | float() | nil, |
| 9991 | 10078 | list: ListClass.t() | float() | nil, |
| 10079 | + local_date: LocalDate.t() | float() | nil, | |
| 9992 | 10080 | locale: Locale.t() | float() | nil, |
| 9993 | 10081 | lock: Lock.t() | float() | nil, |
| 9994 | 10082 | long: Long.t() | float() | nil, |
| @@ -10023,6 +10111,8 @@ defmodule TopLevel do | ||
| 10023 | 10111 | object: Object.t() | float() | nil, |
| 10024 | 10112 | object_mapper: ObjectMapper.t() | float() | nil, |
| 10025 | 10113 | of: Of.t() | float() | nil, |
| 10114 | + offset_date_time: OffsetDateTime.t() | float() | nil, | |
| 10115 | + offset_time: OffsetTime.t() | float() | nil, | |
| 10026 | 10116 | oneway: Oneway.t() | float() | nil, |
| 10027 | 10117 | open: Open.t() | float() | nil, |
| 10028 | 10118 | operator: Operator.t() | float() | nil, |
| @@ -12284,6 +12374,18 @@ defmodule TopLevel do | ||
| 12284 | 12374 | def encode_list(value) when is_nil(value), do: value |
| 12285 | 12375 | def encode_list(_), do: {:error, "Unexpected type when encoding TopLevel.list"} |
| 12286 | 12376 | |
| 12377 | + def decode_local_date(%{} = value), do: LocalDate.from_map(value) | |
| 12378 | + def decode_local_date(value) when is_float(value), do: value | |
| 12379 | + def decode_local_date(value) when is_integer(value), do: value | |
| 12380 | + def decode_local_date(value) when is_nil(value), do: value | |
| 12381 | + def decode_local_date(_), do: {:error, "Unexpected type when decoding TopLevel.local_date"} | |
| 12382 | + | |
| 12383 | + def encode_local_date(%LocalDate{} = value), do: LocalDate.to_map(value) | |
| 12384 | + def encode_local_date(value) when is_float(value), do: value | |
| 12385 | + def encode_local_date(value) when is_integer(value), do: value | |
| 12386 | + def encode_local_date(value) when is_nil(value), do: value | |
| 12387 | + def encode_local_date(_), do: {:error, "Unexpected type when encoding TopLevel.local_date"} | |
| 12388 | + | |
| 12287 | 12389 | def decode_locale(%{} = value), do: Locale.from_map(value) |
| 12288 | 12390 | def decode_locale(value) when is_float(value), do: value |
| 12289 | 12391 | def decode_locale(value) when is_integer(value), do: value |
| @@ -12692,6 +12794,30 @@ defmodule TopLevel do | ||
| 12692 | 12794 | def encode_of(value) when is_nil(value), do: value |
| 12693 | 12795 | def encode_of(_), do: {:error, "Unexpected type when encoding TopLevel.of"} |
| 12694 | 12796 | |
| 12797 | + def decode_offset_date_time(%{} = value), do: OffsetDateTime.from_map(value) | |
| 12798 | + def decode_offset_date_time(value) when is_float(value), do: value | |
| 12799 | + def decode_offset_date_time(value) when is_integer(value), do: value | |
| 12800 | + def decode_offset_date_time(value) when is_nil(value), do: value | |
| 12801 | + def decode_offset_date_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_date_time"} | |
| 12802 | + | |
| 12803 | + def encode_offset_date_time(%OffsetDateTime{} = value), do: OffsetDateTime.to_map(value) | |
| 12804 | + def encode_offset_date_time(value) when is_float(value), do: value | |
| 12805 | + def encode_offset_date_time(value) when is_integer(value), do: value | |
| 12806 | + def encode_offset_date_time(value) when is_nil(value), do: value | |
| 12807 | + def encode_offset_date_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_date_time"} | |
| 12808 | + | |
| 12809 | + def decode_offset_time(%{} = value), do: OffsetTime.from_map(value) | |
| 12810 | + def decode_offset_time(value) when is_float(value), do: value | |
| 12811 | + def decode_offset_time(value) when is_integer(value), do: value | |
| 12812 | + def decode_offset_time(value) when is_nil(value), do: value | |
| 12813 | + def decode_offset_time(_), do: {:error, "Unexpected type when decoding TopLevel.offset_time"} | |
| 12814 | + | |
| 12815 | + def encode_offset_time(%OffsetTime{} = value), do: OffsetTime.to_map(value) | |
| 12816 | + def encode_offset_time(value) when is_float(value), do: value | |
| 12817 | + def encode_offset_time(value) when is_integer(value), do: value | |
| 12818 | + def encode_offset_time(value) when is_nil(value), do: value | |
| 12819 | + def encode_offset_time(_), do: {:error, "Unexpected type when encoding TopLevel.offset_time"} | |
| 12820 | + | |
| 12695 | 12821 | def decode_oneway(%{} = value), do: Oneway.from_map(value) |
| 12696 | 12822 | def decode_oneway(value) when is_float(value), do: value |
| 12697 | 12823 | def decode_oneway(value) when is_integer(value), do: value |
| @@ -14396,6 +14522,7 @@ defmodule TopLevel do | ||
| 14396 | 14522 | left: decode_left(m["left"]), |
| 14397 | 14523 | let: decode_let(m["let"]), |
| 14398 | 14524 | list: decode_list(m["list"]), |
| 14525 | + local_date: decode_local_date(m["LocalDate"]), | |
| 14399 | 14526 | locale: decode_locale(m["Locale"]), |
| 14400 | 14527 | lock: decode_lock(m["lock"]), |
| 14401 | 14528 | long: decode_long(m["long"]), |
| @@ -14430,6 +14557,8 @@ defmodule TopLevel do | ||
| 14430 | 14557 | object: decode_object(m["object"]), |
| 14431 | 14558 | object_mapper: decode_object_mapper(m["ObjectMapper"]), |
| 14432 | 14559 | of: decode_of(m["of"]), |
| 14560 | + offset_date_time: decode_offset_date_time(m["OffsetDateTime"]), | |
| 14561 | + offset_time: decode_offset_time(m["OffsetTime"]), | |
| 14433 | 14562 | oneway: decode_oneway(m["oneway"]), |
| 14434 | 14563 | open: decode_open(m["open"]), |
| 14435 | 14564 | operator: decode_operator(m["operator"]), |
| @@ -14746,6 +14875,7 @@ defmodule TopLevel do | ||
| 14746 | 14875 | "left" => encode_left(struct.left), |
| 14747 | 14876 | "let" => encode_let(struct.let), |
| 14748 | 14877 | "list" => encode_list(struct.list), |
| 14878 | + "LocalDate" => encode_local_date(struct.local_date), | |
| 14749 | 14879 | "Locale" => encode_locale(struct.locale), |
| 14750 | 14880 | "lock" => encode_lock(struct.lock), |
| 14751 | 14881 | "long" => encode_long(struct.long), |
| @@ -14780,6 +14910,8 @@ defmodule TopLevel do | ||
| 14780 | 14910 | "object" => encode_object(struct.object), |
| 14781 | 14911 | "ObjectMapper" => encode_object_mapper(struct.object_mapper), |
| 14782 | 14912 | "of" => encode_of(struct.of), |
| 14913 | + "OffsetDateTime" => encode_offset_date_time(struct.offset_date_time), | |
| 14914 | + "OffsetTime" => encode_offset_time(struct.offset_time), | |
| 14783 | 14915 | "oneway" => encode_oneway(struct.oneway), |
| 14784 | 14916 | "open" => encode_open(struct.open), |
| 14785 | 14917 | "operator" => encode_operator(struct.operator), |
Mschema-elmdefault / QuickType.elm+105 −0
| @@ -174,6 +174,7 @@ module QuickType exposing | ||
| 174 | 174 | , Lazy |
| 175 | 175 | , Left |
| 176 | 176 | , ListClass |
| 177 | + , LocalDate | |
| 177 | 178 | , Locale |
| 178 | 179 | , Lock |
| 179 | 180 | , Long |
| @@ -204,6 +205,8 @@ module QuickType exposing | ||
| 204 | 205 | , Number |
| 205 | 206 | , Object |
| 206 | 207 | , ObjectMapper |
| 208 | + , OffsetDateTime | |
| 209 | + , OffsetTime | |
| 207 | 210 | , Oneway |
| 208 | 211 | , Open |
| 209 | 212 | , Operator |
| @@ -512,6 +515,7 @@ module QuickType exposing | ||
| 512 | 515 | , UnionLazy(..) |
| 513 | 516 | , UnionLeft(..) |
| 514 | 517 | , UnionList(..) |
| 518 | + , UnionLocalDate(..) | |
| 515 | 519 | , UnionLocale(..) |
| 516 | 520 | , UnionLock(..) |
| 517 | 521 | , UnionLong(..) |
| @@ -542,6 +546,8 @@ module QuickType exposing | ||
| 542 | 546 | , UnionNumber(..) |
| 543 | 547 | , UnionObject(..) |
| 544 | 548 | , UnionObjectMapper(..) |
| 549 | + , UnionOffsetDateTime(..) | |
| 550 | + , UnionOffsetTime(..) | |
| 545 | 551 | , UnionOneway(..) |
| 546 | 552 | , UnionOpen(..) |
| 547 | 553 | , UnionOperator(..) |
| @@ -877,6 +883,7 @@ type alias QuickType = | ||
| 877 | 883 | , left : Maybe UnionLeft |
| 878 | 884 | , quickTypeLet : Maybe UnionLet |
| 879 | 885 | , list : Maybe UnionList |
| 886 | + , localDate : Maybe UnionLocalDate | |
| 880 | 887 | , locale : Maybe UnionLocale |
| 881 | 888 | , lock : Maybe UnionLock |
| 882 | 889 | , long : Maybe UnionLong |
| @@ -911,6 +918,8 @@ type alias QuickType = | ||
| 911 | 918 | , object : Maybe UnionObject |
| 912 | 919 | , objectMapper : Maybe UnionObjectMapper |
| 913 | 920 | , quickTypeOf : Maybe UnionOf |
| 921 | + , offsetDateTime : Maybe UnionOffsetDateTime | |
| 922 | + , offsetTime : Maybe UnionOffsetTime | |
| 914 | 923 | , oneway : Maybe UnionOneway |
| 915 | 924 | , open : Maybe UnionOpen |
| 916 | 925 | , operator : Maybe UnionOperator |
| @@ -2312,6 +2321,14 @@ type alias ListClass = | ||
| 2312 | 2321 | { |
| 2313 | 2322 | } |
| 2314 | 2323 | |
| 2324 | +type UnionLocalDate | |
| 2325 | + = DoubleInUnionLocalDate Float | |
| 2326 | + | LocalDateInUnionLocalDate LocalDate | |
| 2327 | + | |
| 2328 | +type alias LocalDate = | |
| 2329 | + { | |
| 2330 | + } | |
| 2331 | + | |
| 2315 | 2332 | type UnionLocale |
| 2316 | 2333 | = DoubleInUnionLocale Float |
| 2317 | 2334 | | LocaleInUnionLocale Locale |
| @@ -2552,6 +2569,22 @@ type alias ObjectMapper = | ||
| 2552 | 2569 | { |
| 2553 | 2570 | } |
| 2554 | 2571 | |
| 2572 | +type UnionOffsetDateTime | |
| 2573 | + = DoubleInUnionOffsetDateTime Float | |
| 2574 | + | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime | |
| 2575 | + | |
| 2576 | +type alias OffsetDateTime = | |
| 2577 | + { | |
| 2578 | + } | |
| 2579 | + | |
| 2580 | +type UnionOffsetTime | |
| 2581 | + = DoubleInUnionOffsetTime Float | |
| 2582 | + | OffsetTimeInUnionOffsetTime OffsetTime | |
| 2583 | + | |
| 2584 | +type alias OffsetTime = | |
| 2585 | + { | |
| 2586 | + } | |
| 2587 | + | |
| 2555 | 2588 | type UnionOneway |
| 2556 | 2589 | = DoubleInUnionOneway Float |
| 2557 | 2590 | | OnewayInUnionOneway Oneway |
| @@ -3936,6 +3969,7 @@ quickType = | ||
| 3936 | 3969 | |> Jpipe.custom (optionalField "left" (Jdec.map Just unionLeft) Nothing) |
| 3937 | 3970 | |> Jpipe.custom (optionalField "let" (Jdec.map Just unionLet) Nothing) |
| 3938 | 3971 | |> Jpipe.custom (optionalField "list" (Jdec.map Just unionList) Nothing) |
| 3972 | + |> Jpipe.custom (optionalField "LocalDate" (Jdec.map Just unionLocalDate) Nothing) | |
| 3939 | 3973 | |> Jpipe.custom (optionalField "Locale" (Jdec.map Just unionLocale) Nothing) |
| 3940 | 3974 | |> Jpipe.custom (optionalField "lock" (Jdec.map Just unionLock) Nothing) |
| 3941 | 3975 | |> Jpipe.custom (optionalField "long" (Jdec.map Just unionLong) Nothing) |
| @@ -3970,6 +4004,8 @@ quickType = | ||
| 3970 | 4004 | |> Jpipe.custom (optionalField "object" (Jdec.map Just unionObject) Nothing) |
| 3971 | 4005 | |> Jpipe.custom (optionalField "ObjectMapper" (Jdec.map Just unionObjectMapper) Nothing) |
| 3972 | 4006 | |> Jpipe.custom (optionalField "of" (Jdec.map Just unionOf) Nothing) |
| 4007 | + |> Jpipe.custom (optionalField "OffsetDateTime" (Jdec.map Just unionOffsetDateTime) Nothing) | |
| 4008 | + |> Jpipe.custom (optionalField "OffsetTime" (Jdec.map Just unionOffsetTime) Nothing) | |
| 3973 | 4009 | |> Jpipe.custom (optionalField "oneway" (Jdec.map Just unionOneway) Nothing) |
| 3974 | 4010 | |> Jpipe.custom (optionalField "open" (Jdec.map Just unionOpen) Nothing) |
| 3975 | 4011 | |> Jpipe.custom (optionalField "operator" (Jdec.map Just unionOperator) Nothing) |
| @@ -4279,6 +4315,7 @@ encodeQuickType x = | ||
| 4279 | 4315 | , ("left", makeNullableEncoder encodeUnionLeft x.left) |
| 4280 | 4316 | , ("let", makeNullableEncoder encodeUnionLet x.quickTypeLet) |
| 4281 | 4317 | , ("list", makeNullableEncoder encodeUnionList x.list) |
| 4318 | + , ("LocalDate", makeNullableEncoder encodeUnionLocalDate x.localDate) | |
| 4282 | 4319 | , ("Locale", makeNullableEncoder encodeUnionLocale x.locale) |
| 4283 | 4320 | , ("lock", makeNullableEncoder encodeUnionLock x.lock) |
| 4284 | 4321 | , ("long", makeNullableEncoder encodeUnionLong x.long) |
| @@ -4313,6 +4350,8 @@ encodeQuickType x = | ||
| 4313 | 4350 | , ("object", makeNullableEncoder encodeUnionObject x.object) |
| 4314 | 4351 | , ("ObjectMapper", makeNullableEncoder encodeUnionObjectMapper x.objectMapper) |
| 4315 | 4352 | , ("of", makeNullableEncoder encodeUnionOf x.quickTypeOf) |
| 4353 | + , ("OffsetDateTime", makeNullableEncoder encodeUnionOffsetDateTime x.offsetDateTime) | |
| 4354 | + , ("OffsetTime", makeNullableEncoder encodeUnionOffsetTime x.offsetTime) | |
| 4316 | 4355 | , ("oneway", makeNullableEncoder encodeUnionOneway x.oneway) |
| 4317 | 4356 | , ("open", makeNullableEncoder encodeUnionOpen x.open) |
| 4318 | 4357 | , ("operator", makeNullableEncoder encodeUnionOperator x.operator) |
| @@ -7940,6 +7979,28 @@ encodeListClass x = | ||
| 7940 | 7979 | [ |
| 7941 | 7980 | ] |
| 7942 | 7981 | |
| 7982 | +unionLocalDate : Jdec.Decoder UnionLocalDate | |
| 7983 | +unionLocalDate = | |
| 7984 | + Jdec.oneOf | |
| 7985 | + [ Jdec.map DoubleInUnionLocalDate Jdec.float | |
| 7986 | + , Jdec.map LocalDateInUnionLocalDate localDate | |
| 7987 | + ] | |
| 7988 | + | |
| 7989 | +encodeUnionLocalDate : UnionLocalDate -> Jenc.Value | |
| 7990 | +encodeUnionLocalDate x = case x of | |
| 7991 | + DoubleInUnionLocalDate y -> Jenc.float y | |
| 7992 | + LocalDateInUnionLocalDate y -> encodeLocalDate y | |
| 7993 | + | |
| 7994 | +localDate : Jdec.Decoder LocalDate | |
| 7995 | +localDate = | |
| 7996 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> LocalDate) | |
| 7997 | + | |
| 7998 | +encodeLocalDate : LocalDate -> Jenc.Value | |
| 7999 | +encodeLocalDate x = | |
| 8000 | + Jenc.object | |
| 8001 | + [ | |
| 8002 | + ] | |
| 8003 | + | |
| 7943 | 8004 | unionLocale : Jdec.Decoder UnionLocale |
| 7944 | 8005 | unionLocale = |
| 7945 | 8006 | Jdec.oneOf |
| @@ -8600,6 +8661,50 @@ encodeObjectMapper x = | ||
| 8600 | 8661 | [ |
| 8601 | 8662 | ] |
| 8602 | 8663 | |
| 8664 | +unionOffsetDateTime : Jdec.Decoder UnionOffsetDateTime | |
| 8665 | +unionOffsetDateTime = | |
| 8666 | + Jdec.oneOf | |
| 8667 | + [ Jdec.map DoubleInUnionOffsetDateTime Jdec.float | |
| 8668 | + , Jdec.map OffsetDateTimeInUnionOffsetDateTime offsetDateTime | |
| 8669 | + ] | |
| 8670 | + | |
| 8671 | +encodeUnionOffsetDateTime : UnionOffsetDateTime -> Jenc.Value | |
| 8672 | +encodeUnionOffsetDateTime x = case x of | |
| 8673 | + DoubleInUnionOffsetDateTime y -> Jenc.float y | |
| 8674 | + OffsetDateTimeInUnionOffsetDateTime y -> encodeOffsetDateTime y | |
| 8675 | + | |
| 8676 | +offsetDateTime : Jdec.Decoder OffsetDateTime | |
| 8677 | +offsetDateTime = | |
| 8678 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetDateTime) | |
| 8679 | + | |
| 8680 | +encodeOffsetDateTime : OffsetDateTime -> Jenc.Value | |
| 8681 | +encodeOffsetDateTime x = | |
| 8682 | + Jenc.object | |
| 8683 | + [ | |
| 8684 | + ] | |
| 8685 | + | |
| 8686 | +unionOffsetTime : Jdec.Decoder UnionOffsetTime | |
| 8687 | +unionOffsetTime = | |
| 8688 | + Jdec.oneOf | |
| 8689 | + [ Jdec.map DoubleInUnionOffsetTime Jdec.float | |
| 8690 | + , Jdec.map OffsetTimeInUnionOffsetTime offsetTime | |
| 8691 | + ] | |
| 8692 | + | |
| 8693 | +encodeUnionOffsetTime : UnionOffsetTime -> Jenc.Value | |
| 8694 | +encodeUnionOffsetTime x = case x of | |
| 8695 | + DoubleInUnionOffsetTime y -> Jenc.float y | |
| 8696 | + OffsetTimeInUnionOffsetTime y -> encodeOffsetTime y | |
| 8697 | + | |
| 8698 | +offsetTime : Jdec.Decoder OffsetTime | |
| 8699 | +offsetTime = | |
| 8700 | + Jdec.dict Jdec.value |> Jdec.map (\_ -> OffsetTime) | |
| 8701 | + | |
| 8702 | +encodeOffsetTime : OffsetTime -> Jenc.Value | |
| 8703 | +encodeOffsetTime x = | |
| 8704 | + Jenc.object | |
| 8705 | + [ | |
| 8706 | + ] | |
| 8707 | + | |
| 8603 | 8708 | unionOneway : Jdec.Decoder UnionOneway |
| 8604 | 8709 | unionOneway = |
| 8605 | 8710 | Jdec.oneOf |
Mschema-flowdefault / TopLevel.js+27 −0
| @@ -188,6 +188,7 @@ export type TopLevel = { | ||
| 188 | 188 | left?: UnionLeft; |
| 189 | 189 | let?: UnionLet; |
| 190 | 190 | list?: UnionList; |
| 191 | + LocalDate?: UnionLocalDate; | |
| 191 | 192 | Locale?: UnionLocale; |
| 192 | 193 | lock?: UnionLock; |
| 193 | 194 | long?: UnionLong; |
| @@ -222,6 +223,8 @@ export type TopLevel = { | ||
| 222 | 223 | object?: UnionObject; |
| 223 | 224 | ObjectMapper?: UnionObjectMapper; |
| 224 | 225 | of?: UnionOf; |
| 226 | + OffsetDateTime?: UnionOffsetDateTime; | |
| 227 | + OffsetTime?: UnionOffsetTime; | |
| 225 | 228 | oneway?: UnionOneway; |
| 226 | 229 | open?: UnionOpen; |
| 227 | 230 | operator?: UnionOperator; |
| @@ -532,6 +535,11 @@ export type UnionKSerializer = KSerializer | number; | ||
| 532 | 535 | export type KSerializer = { |
| 533 | 536 | }; |
| 534 | 537 | |
| 538 | +export type UnionLocalDate = LocalDate | number; | |
| 539 | + | |
| 540 | +export type LocalDate = { | |
| 541 | +}; | |
| 542 | + | |
| 535 | 543 | export type UnionLocale = Locale | number; |
| 536 | 544 | |
| 537 | 545 | export type Locale = { |
| @@ -577,6 +585,16 @@ export type UnionObjectMapper = ObjectMapper | number; | ||
| 577 | 585 | export type ObjectMapper = { |
| 578 | 586 | }; |
| 579 | 587 | |
| 588 | +export type UnionOffsetDateTime = OffsetDateTime | number; | |
| 589 | + | |
| 590 | +export type OffsetDateTime = { | |
| 591 | +}; | |
| 592 | + | |
| 593 | +export type UnionOffsetTime = OffsetTime | number; | |
| 594 | + | |
| 595 | +export type OffsetTime = { | |
| 596 | +}; | |
| 597 | + | |
| 580 | 598 | export type UnionPrimitiveKind = PrimitiveKind | number; |
| 581 | 599 | |
| 582 | 600 | export type PrimitiveKind = { |
| @@ -2406,6 +2424,7 @@ const typeMap: any = { | ||
| 2406 | 2424 | { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) }, |
| 2407 | 2425 | { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) }, |
| 2408 | 2426 | { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) }, |
| 2427 | + { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) }, | |
| 2409 | 2428 | { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) }, |
| 2410 | 2429 | { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) }, |
| 2411 | 2430 | { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) }, |
| @@ -2440,6 +2459,8 @@ const typeMap: any = { | ||
| 2440 | 2459 | { json: "object", js: "object", typ: u(undefined, u(r("ObjectClass"), 3.14)) }, |
| 2441 | 2460 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) }, |
| 2442 | 2461 | { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) }, |
| 2462 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) }, | |
| 2463 | + { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) }, | |
| 2443 | 2464 | { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) }, |
| 2444 | 2465 | { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) }, |
| 2445 | 2466 | { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) }, |
| @@ -2640,6 +2661,8 @@ const typeMap: any = { | ||
| 2640 | 2661 | ], false), |
| 2641 | 2662 | "KSerializer": o([ |
| 2642 | 2663 | ], false), |
| 2664 | + "LocalDate": o([ | |
| 2665 | + ], false), | |
| 2643 | 2666 | "Locale": o([ |
| 2644 | 2667 | ], false), |
| 2645 | 2668 | "MapEntry": o([ |
| @@ -2658,6 +2681,10 @@ const typeMap: any = { | ||
| 2658 | 2681 | ], false), |
| 2659 | 2682 | "ObjectMapper": o([ |
| 2660 | 2683 | ], false), |
| 2684 | + "OffsetDateTime": o([ | |
| 2685 | + ], false), | |
| 2686 | + "OffsetTime": o([ | |
| 2687 | + ], false), | |
| 2661 | 2688 | "PrimitiveKind": o([ |
| 2662 | 2689 | ], false), |
| 2663 | 2690 | "Protocol": o([ |
Mschema-golangdefault / quicktype.go+78 −0
| @@ -200,6 +200,7 @@ type TopLevel struct { | ||
| 200 | 200 | Left *UnionLeft `json:"left"` |
| 201 | 201 | Let *UnionLet `json:"let"` |
| 202 | 202 | List *UnionList `json:"list"` |
| 203 | + LocalDate *UnionLocalDate `json:"LocalDate"` | |
| 203 | 204 | Locale *UnionLocale `json:"Locale"` |
| 204 | 205 | Lock *UnionLock `json:"lock"` |
| 205 | 206 | Long *UnionLong `json:"long"` |
| @@ -234,6 +235,8 @@ type TopLevel struct { | ||
| 234 | 235 | Object *UnionObject `json:"object"` |
| 235 | 236 | ObjectMapper *UnionObjectMapper `json:"ObjectMapper"` |
| 236 | 237 | Of *UnionOf `json:"of"` |
| 238 | + OffsetDateTime *UnionOffsetDateTime `json:"OffsetDateTime"` | |
| 239 | + OffsetTime *UnionOffsetTime `json:"OffsetTime"` | |
| 237 | 240 | Oneway *UnionOneway `json:"oneway"` |
| 238 | 241 | Open *UnionOpen `json:"open"` |
| 239 | 242 | Operator *UnionOperator `json:"operator"` |
| @@ -879,6 +882,9 @@ type Let struct { | ||
| 879 | 882 | type List struct { |
| 880 | 883 | } |
| 881 | 884 | |
| 885 | +type LocalDate struct { | |
| 886 | +} | |
| 887 | + | |
| 882 | 888 | type Locale struct { |
| 883 | 889 | } |
| 884 | 890 | |
| @@ -975,6 +981,12 @@ type ObjectMapper struct { | ||
| 975 | 981 | type Of struct { |
| 976 | 982 | } |
| 977 | 983 | |
| 984 | +type OffsetDateTime struct { | |
| 985 | +} | |
| 986 | + | |
| 987 | +type OffsetTime struct { | |
| 988 | +} | |
| 989 | + | |
| 978 | 990 | type Oneway struct { |
| 979 | 991 | } |
| 980 | 992 | |
| @@ -5161,6 +5173,28 @@ func (x *UnionList) MarshalJSON() ([]byte, error) { | ||
| 5161 | 5173 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.List != nil, x.List, false, nil, false, nil, false) |
| 5162 | 5174 | } |
| 5163 | 5175 | |
| 5176 | +type UnionLocalDate struct { | |
| 5177 | + Double *float64 | |
| 5178 | + LocalDate *LocalDate | |
| 5179 | +} | |
| 5180 | + | |
| 5181 | +func (x *UnionLocalDate) UnmarshalJSON(data []byte) error { | |
| 5182 | + x.LocalDate = nil | |
| 5183 | + var c LocalDate | |
| 5184 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5185 | + if err != nil { | |
| 5186 | + return err | |
| 5187 | + } | |
| 5188 | + if object { | |
| 5189 | + x.LocalDate = &c | |
| 5190 | + } | |
| 5191 | + return nil | |
| 5192 | +} | |
| 5193 | + | |
| 5194 | +func (x *UnionLocalDate) MarshalJSON() ([]byte, error) { | |
| 5195 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.LocalDate != nil, x.LocalDate, false, nil, false, nil, false) | |
| 5196 | +} | |
| 5197 | + | |
| 5164 | 5198 | type UnionLocale struct { |
| 5165 | 5199 | Double *float64 |
| 5166 | 5200 | Locale *Locale |
| @@ -5865,6 +5899,50 @@ func (x *UnionOf) MarshalJSON() ([]byte, error) { | ||
| 5865 | 5899 | return marshalUnion(nil, x.Double, nil, nil, false, nil, x.Of != nil, x.Of, false, nil, false, nil, false) |
| 5866 | 5900 | } |
| 5867 | 5901 | |
| 5902 | +type UnionOffsetDateTime struct { | |
| 5903 | + Double *float64 | |
| 5904 | + OffsetDateTime *OffsetDateTime | |
| 5905 | +} | |
| 5906 | + | |
| 5907 | +func (x *UnionOffsetDateTime) UnmarshalJSON(data []byte) error { | |
| 5908 | + x.OffsetDateTime = nil | |
| 5909 | + var c OffsetDateTime | |
| 5910 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5911 | + if err != nil { | |
| 5912 | + return err | |
| 5913 | + } | |
| 5914 | + if object { | |
| 5915 | + x.OffsetDateTime = &c | |
| 5916 | + } | |
| 5917 | + return nil | |
| 5918 | +} | |
| 5919 | + | |
| 5920 | +func (x *UnionOffsetDateTime) MarshalJSON() ([]byte, error) { | |
| 5921 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetDateTime != nil, x.OffsetDateTime, false, nil, false, nil, false) | |
| 5922 | +} | |
| 5923 | + | |
| 5924 | +type UnionOffsetTime struct { | |
| 5925 | + Double *float64 | |
| 5926 | + OffsetTime *OffsetTime | |
| 5927 | +} | |
| 5928 | + | |
| 5929 | +func (x *UnionOffsetTime) UnmarshalJSON(data []byte) error { | |
| 5930 | + x.OffsetTime = nil | |
| 5931 | + var c OffsetTime | |
| 5932 | + object, err := unmarshalUnion(data, nil, &x.Double, nil, nil, false, nil, true, &c, false, nil, false, nil, false) | |
| 5933 | + if err != nil { | |
| 5934 | + return err | |
| 5935 | + } | |
| 5936 | + if object { | |
| 5937 | + x.OffsetTime = &c | |
| 5938 | + } | |
| 5939 | + return nil | |
| 5940 | +} | |
| 5941 | + | |
| 5942 | +func (x *UnionOffsetTime) MarshalJSON() ([]byte, error) { | |
| 5943 | + return marshalUnion(nil, x.Double, nil, nil, false, nil, x.OffsetTime != nil, x.OffsetTime, false, nil, false, nil, false) | |
| 5944 | +} | |
| 5945 | + | |
| 5868 | 5946 | type UnionOneway struct { |
| 5869 | 5947 | Double *float64 |
| 5870 | 5948 | Oneway *Oneway |
Mschema-haskelldefault / QuickType.hs+85 −1
| @@ -163,6 +163,7 @@ module QuickType | ||
| 163 | 163 | , Lazy (..) |
| 164 | 164 | , LeftClass (..) |
| 165 | 165 | , List (..) |
| 166 | + , LocalDate (..) | |
| 166 | 167 | , Locale (..) |
| 167 | 168 | , Lock (..) |
| 168 | 169 | , Long (..) |
| @@ -193,6 +194,8 @@ module QuickType | ||
| 193 | 194 | , NumberClass (..) |
| 194 | 195 | , ObjectClass (..) |
| 195 | 196 | , ObjectMapper (..) |
| 197 | + , OffsetDateTime (..) | |
| 198 | + , OffsetTime (..) | |
| 196 | 199 | , Oneway (..) |
| 197 | 200 | , Open (..) |
| 198 | 201 | , Operator (..) |
| @@ -501,6 +504,7 @@ module QuickType | ||
| 501 | 504 | , UnionLazy (..) |
| 502 | 505 | , UnionLeft (..) |
| 503 | 506 | , UnionList (..) |
| 507 | + , UnionLocalDate (..) | |
| 504 | 508 | , UnionLocale (..) |
| 505 | 509 | , UnionLock (..) |
| 506 | 510 | , UnionLong (..) |
| @@ -531,6 +535,8 @@ module QuickType | ||
| 531 | 535 | , UnionNumber (..) |
| 532 | 536 | , UnionObject (..) |
| 533 | 537 | , UnionObjectMapper (..) |
| 538 | + , UnionOffsetDateTime (..) | |
| 539 | + , UnionOffsetTime (..) | |
| 534 | 540 | , UnionOneway (..) |
| 535 | 541 | , UnionOpen (..) |
| 536 | 542 | , UnionOperator (..) |
| @@ -867,6 +873,7 @@ data QuickType = QuickType | ||
| 867 | 873 | , leftQuickType :: Maybe UnionLeft |
| 868 | 874 | , quickTypeLetQuickType :: Maybe UnionLet |
| 869 | 875 | , listQuickType :: Maybe UnionList |
| 876 | + , localDateQuickType :: Maybe UnionLocalDate | |
| 870 | 877 | , localeQuickType :: Maybe UnionLocale |
| 871 | 878 | , lockQuickType :: Maybe UnionLock |
| 872 | 879 | , longQuickType :: Maybe UnionLong |
| @@ -901,6 +908,8 @@ data QuickType = QuickType | ||
| 901 | 908 | , objectQuickType :: Maybe UnionObject |
| 902 | 909 | , objectMapperQuickType :: Maybe UnionObjectMapper |
| 903 | 910 | , quickTypeOfQuickType :: Maybe UnionOf |
| 911 | + , offsetDateTimeQuickType :: Maybe UnionOffsetDateTime | |
| 912 | + , offsetTimeQuickType :: Maybe UnionOffsetTime | |
| 904 | 913 | , onewayQuickType :: Maybe UnionOneway |
| 905 | 914 | , openQuickType :: Maybe UnionOpen |
| 906 | 915 | , operatorQuickType :: Maybe UnionOperator |
| @@ -2470,6 +2479,15 @@ data List = List | ||
| 2470 | 2479 | { |
| 2471 | 2480 | } deriving (Show) |
| 2472 | 2481 | |
| 2482 | +data UnionLocalDate | |
| 2483 | + = DoubleInUnionLocalDate Double | |
| 2484 | + | LocalDateInUnionLocalDate LocalDate | |
| 2485 | + deriving (Show) | |
| 2486 | + | |
| 2487 | +data LocalDate = LocalDate | |
| 2488 | + { | |
| 2489 | + } deriving (Show) | |
| 2490 | + | |
| 2473 | 2491 | data UnionLocale |
| 2474 | 2492 | = DoubleInUnionLocale Double |
| 2475 | 2493 | | LocaleInUnionLocale Locale |
| @@ -2740,6 +2758,24 @@ data ObjectMapper = ObjectMapper | ||
| 2740 | 2758 | { |
| 2741 | 2759 | } deriving (Show) |
| 2742 | 2760 | |
| 2761 | +data UnionOffsetDateTime | |
| 2762 | + = DoubleInUnionOffsetDateTime Double | |
| 2763 | + | OffsetDateTimeInUnionOffsetDateTime OffsetDateTime | |
| 2764 | + deriving (Show) | |
| 2765 | + | |
| 2766 | +data OffsetDateTime = OffsetDateTime | |
| 2767 | + { | |
| 2768 | + } deriving (Show) | |
| 2769 | + | |
| 2770 | +data UnionOffsetTime | |
| 2771 | + = DoubleInUnionOffsetTime Double | |
| 2772 | + | OffsetTimeInUnionOffsetTime OffsetTime | |
| 2773 | + deriving (Show) | |
| 2774 | + | |
| 2775 | +data OffsetTime = OffsetTime | |
| 2776 | + { | |
| 2777 | + } deriving (Show) | |
| 2778 | + | |
| 2743 | 2779 | data UnionOneway |
| 2744 | 2780 | = DoubleInUnionOneway Double |
| 2745 | 2781 | | OnewayInUnionOneway Oneway |
| @@ -4076,7 +4112,7 @@ decodeTopLevel :: ByteString -> Maybe QuickType | ||
| 4076 | 4112 | decodeTopLevel = decode |
| 4077 | 4113 | |
| 4078 | 4114 | instance ToJSON QuickType where |
| 4079 | - 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 kSerializerQuickType 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 primitiveKindQuickType 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 serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType 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 useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) = | |
| 4115 | + 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 kSerializerQuickType lambdaQuickType lazyQuickType leftQuickType quickTypeLetQuickType listQuickType localDateQuickType 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 offsetDateTimeQuickType offsetTimeQuickType onewayQuickType openQuickType operatorQuickType optionalQuickType orQuickType orEqQuickType outQuickType overrideQuickType packageQuickType paramsQuickType passQuickType portQuickType postfixQuickType precedenceQuickType prefixQuickType primitiveKindQuickType 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 serialDescriptorQuickType serializableQuickType serializeQuickType serializerProviderQuickType serialNameQuickType 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 useSerializersQuickType ushortQuickType usingQuickType utf8JSONReaderQuickType utf8JSONWriterQuickType uuidQuickType varQuickType virtualQuickType voidQuickType volatileQuickType wcharTQuickType weakQuickType quickTypeWhereQuickType whileQuickType willSetQuickType withQuickType xorQuickType xorEqQuickType yesQuickType yieldQuickType) = | |
| 4080 | 4116 | object $ foldMap (maybe [] pure) |
| 4081 | 4117 | [ ("_" .=) <$> emptyQuickType |
| 4082 | 4118 | , ("_Bool" .=) <$> quickTypeBoolQuickType |
| @@ -4256,6 +4292,7 @@ instance ToJSON QuickType where | ||
| 4256 | 4292 | , ("left" .=) <$> leftQuickType |
| 4257 | 4293 | , ("let" .=) <$> quickTypeLetQuickType |
| 4258 | 4294 | , ("list" .=) <$> listQuickType |
| 4295 | + , ("LocalDate" .=) <$> localDateQuickType | |
| 4259 | 4296 | , ("Locale" .=) <$> localeQuickType |
| 4260 | 4297 | , ("lock" .=) <$> lockQuickType |
| 4261 | 4298 | , ("long" .=) <$> longQuickType |
| @@ -4290,6 +4327,8 @@ instance ToJSON QuickType where | ||
| 4290 | 4327 | , ("object" .=) <$> objectQuickType |
| 4291 | 4328 | , ("ObjectMapper" .=) <$> objectMapperQuickType |
| 4292 | 4329 | , ("of" .=) <$> quickTypeOfQuickType |
| 4330 | + , ("OffsetDateTime" .=) <$> offsetDateTimeQuickType | |
| 4331 | + , ("OffsetTime" .=) <$> offsetTimeQuickType | |
| 4293 | 4332 | , ("oneway" .=) <$> onewayQuickType |
| 4294 | 4333 | , ("open" .=) <$> openQuickType |
| 4295 | 4334 | , ("operator" .=) <$> operatorQuickType |
| @@ -4599,6 +4638,7 @@ instance FromJSON QuickType where | ||
| 4599 | 4638 | <*> v .:! "left" |
| 4600 | 4639 | <*> v .:! "let" |
| 4601 | 4640 | <*> v .:! "list" |
| 4641 | + <*> v .:! "LocalDate" | |
| 4602 | 4642 | <*> v .:! "Locale" |
| 4603 | 4643 | <*> v .:! "lock" |
| 4604 | 4644 | <*> v .:! "long" |
| @@ -4633,6 +4673,8 @@ instance FromJSON QuickType where | ||
| 4633 | 4673 | <*> v .:! "object" |
| 4634 | 4674 | <*> v .:! "ObjectMapper" |
| 4635 | 4675 | <*> v .:! "of" |
| 4676 | + <*> v .:! "OffsetDateTime" | |
| 4677 | + <*> v .:! "OffsetTime" | |
| 4636 | 4678 | <*> v .:! "oneway" |
| 4637 | 4679 | <*> v .:! "open" |
| 4638 | 4680 | <*> v .:! "operator" |
| @@ -7001,6 +7043,20 @@ instance ToJSON List where | ||
| 7001 | 7043 | instance FromJSON List where |
| 7002 | 7044 | parseJSON (Object _) = return List |
| 7003 | 7045 | |
| 7046 | +instance ToJSON UnionLocalDate where | |
| 7047 | + toJSON (DoubleInUnionLocalDate x) = toJSON x | |
| 7048 | + toJSON (LocalDateInUnionLocalDate x) = toJSON x | |
| 7049 | + | |
| 7050 | +instance FromJSON UnionLocalDate where | |
| 7051 | + parseJSON xs@(Number _) = (fmap DoubleInUnionLocalDate . parseJSON) xs | |
| 7052 | + parseJSON xs@(Object _) = (fmap LocalDateInUnionLocalDate . parseJSON) xs | |
| 7053 | + | |
| 7054 | +instance ToJSON LocalDate where | |
| 7055 | + toJSON = \_ -> emptyObject | |
| 7056 | + | |
| 7057 | +instance FromJSON LocalDate where | |
| 7058 | + parseJSON (Object _) = return LocalDate | |
| 7059 | + | |
| 7004 | 7060 | instance ToJSON UnionLocale where |
| 7005 | 7061 | toJSON (DoubleInUnionLocale x) = toJSON x |
| 7006 | 7062 | toJSON (LocaleInUnionLocale x) = toJSON x |
| @@ -7421,6 +7477,34 @@ instance ToJSON ObjectMapper where | ||
| 7421 | 7477 | instance FromJSON ObjectMapper where |
| 7422 | 7478 | parseJSON (Object _) = return ObjectMapper |
| 7423 | 7479 | |
| 7480 | +instance ToJSON UnionOffsetDateTime where | |
| 7481 | + toJSON (DoubleInUnionOffsetDateTime x) = toJSON x | |
| 7482 | + toJSON (OffsetDateTimeInUnionOffsetDateTime x) = toJSON x | |
| 7483 | + | |
| 7484 | +instance FromJSON UnionOffsetDateTime where | |
| 7485 | + parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetDateTime . parseJSON) xs | |
| 7486 | + parseJSON xs@(Object _) = (fmap OffsetDateTimeInUnionOffsetDateTime . parseJSON) xs | |
| 7487 | + | |
| 7488 | +instance ToJSON OffsetDateTime where | |
| 7489 | + toJSON = \_ -> emptyObject | |
| 7490 | + | |
| 7491 | +instance FromJSON OffsetDateTime where | |
| 7492 | + parseJSON (Object _) = return OffsetDateTime | |
| 7493 | + | |
| 7494 | +instance ToJSON UnionOffsetTime where | |
| 7495 | + toJSON (DoubleInUnionOffsetTime x) = toJSON x | |
| 7496 | + toJSON (OffsetTimeInUnionOffsetTime x) = toJSON x | |
| 7497 | + | |
| 7498 | +instance FromJSON UnionOffsetTime where | |
| 7499 | + parseJSON xs@(Number _) = (fmap DoubleInUnionOffsetTime . parseJSON) xs | |
| 7500 | + parseJSON xs@(Object _) = (fmap OffsetTimeInUnionOffsetTime . parseJSON) xs | |
| 7501 | + | |
| 7502 | +instance ToJSON OffsetTime where | |
| 7503 | + toJSON = \_ -> emptyObject | |
| 7504 | + | |
| 7505 | +instance FromJSON OffsetTime where | |
| 7506 | + parseJSON (Object _) = return OffsetTime | |
| 7507 | + | |
| 7424 | 7508 | instance ToJSON UnionOneway where |
| 7425 | 7509 | toJSON (DoubleInUnionOneway x) = toJSON x |
| 7426 | 7510 | toJSON (OnewayInUnionOneway x) = toJSON x |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / LocalDate.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 LocalDate { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetDateTime.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 OffsetDateTime { | |
| 7 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / OffsetTime.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 OffsetTime { | |
| 7 | +} |
Mschema-java-datetime-legacydefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -181,6 +181,7 @@ public class TopLevel { | ||
| 181 | 181 | private UnionLeft left; |
| 182 | 182 | private UnionLet let; |
| 183 | 183 | private UnionList list; |
| 184 | + private UnionLocalDate localDate; | |
| 184 | 185 | private UnionLocale locale; |
| 185 | 186 | private UnionLock lock; |
| 186 | 187 | private UnionLong topLevelLong; |
| @@ -215,6 +216,8 @@ public class TopLevel { | ||
| 215 | 216 | private UnionObject object; |
| 216 | 217 | private UnionObjectMapper objectMapper; |
| 217 | 218 | private UnionOf of; |
| 219 | + private UnionOffsetDateTime offsetDateTime; | |
| 220 | + private UnionOffsetTime offsetTime; | |
| 218 | 221 | private UnionOneway oneway; |
| 219 | 222 | private UnionOpen open; |
| 220 | 223 | private UnionOperator operator; |
| @@ -1233,6 +1236,11 @@ public class TopLevel { | ||
| 1233 | 1236 | @JsonProperty("list") |
| 1234 | 1237 | public void setList(UnionList value) { this.list = value; } |
| 1235 | 1238 | |
| 1239 | + @JsonProperty("LocalDate") | |
| 1240 | + public UnionLocalDate getLocalDate() { return localDate; } | |
| 1241 | + @JsonProperty("LocalDate") | |
| 1242 | + public void setLocalDate(UnionLocalDate value) { this.localDate = value; } | |
| 1243 | + | |
| 1236 | 1244 | @JsonProperty("Locale") |
| 1237 | 1245 | public UnionLocale getLocale() { return locale; } |
| 1238 | 1246 | @JsonProperty("Locale") |
| @@ -1403,6 +1411,16 @@ public class TopLevel { | ||
| 1403 | 1411 | @JsonProperty("of") |
| 1404 | 1412 | public void setOf(UnionOf value) { this.of = value; } |
| 1405 | 1413 | |
| 1414 | + @JsonProperty("OffsetDateTime") | |
| 1415 | + public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 1416 | + @JsonProperty("OffsetDateTime") | |
| 1417 | + public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; } | |
| 1418 | + | |
| 1419 | + @JsonProperty("OffsetTime") | |
| 1420 | + public UnionOffsetTime getOffsetTime() { return offsetTime; } | |
| 1421 | + @JsonProperty("OffsetTime") | |
| 1422 | + public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; } | |
| 1423 | + | |
| 1406 | 1424 | @JsonProperty("oneway") |
| 1407 | 1425 | public UnionOneway getOneway() { return oneway; } |
| 1408 | 1426 | @JsonProperty("oneway") |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionLocalDate.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 = UnionLocalDate.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionLocalDate.Serializer.class) | |
| 12 | +public class UnionLocalDate { | |
| 13 | + public Double doubleValue; | |
| 14 | + public LocalDate localDateValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionLocalDate> { | |
| 17 | + @Override | |
| 18 | + public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionLocalDate value = new UnionLocalDate(); | |
| 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.localDateValue = jsonParser.readValueAs(LocalDate.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionLocalDate"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionLocalDate> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.localDateValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.localDateValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetDateTime.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 = UnionOffsetDateTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetDateTime.Serializer.class) | |
| 12 | +public class UnionOffsetDateTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetDateTime offsetDateTimeValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetDateTime value = new UnionOffsetDateTime(); | |
| 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.offsetDateTimeValue = jsonParser.readValueAs(OffsetDateTime.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetDateTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetDateTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetDateTimeValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetDateTimeValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-datetime-legacydefault / src / main / java / io / quicktype / UnionOffsetTime.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 = UnionOffsetTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetTime.Serializer.class) | |
| 12 | +public class UnionOffsetTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetTime offsetTimeValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetTime value = new UnionOffsetTime(); | |
| 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.offsetTimeValue = jsonParser.readValueAs(OffsetTime.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetTimeValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetTimeValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / LocalDateClass.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 LocalDateClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetDateTimeClass.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 OffsetDateTimeClass { | |
| 7 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / OffsetTimeClass.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 OffsetTimeClass { | |
| 7 | +} |
Mschema-java-lombokdefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -181,6 +181,7 @@ public class TopLevel { | ||
| 181 | 181 | private UnionLeft left; |
| 182 | 182 | private UnionLet let; |
| 183 | 183 | private UnionList list; |
| 184 | + private UnionLocalDate localDate; | |
| 184 | 185 | private UnionLocale locale; |
| 185 | 186 | private UnionLock lock; |
| 186 | 187 | private UnionLong topLevelLong; |
| @@ -215,6 +216,8 @@ public class TopLevel { | ||
| 215 | 216 | private UnionObject object; |
| 216 | 217 | private UnionObjectMapper objectMapper; |
| 217 | 218 | private UnionOf of; |
| 219 | + private UnionOffsetDateTime offsetDateTime; | |
| 220 | + private UnionOffsetTime offsetTime; | |
| 218 | 221 | private UnionOneway oneway; |
| 219 | 222 | private UnionOpen open; |
| 220 | 223 | private UnionOperator operator; |
| @@ -1233,6 +1236,11 @@ public class TopLevel { | ||
| 1233 | 1236 | @JsonProperty("list") |
| 1234 | 1237 | public void setList(UnionList value) { this.list = value; } |
| 1235 | 1238 | |
| 1239 | + @JsonProperty("LocalDate") | |
| 1240 | + public UnionLocalDate getLocalDate() { return localDate; } | |
| 1241 | + @JsonProperty("LocalDate") | |
| 1242 | + public void setLocalDate(UnionLocalDate value) { this.localDate = value; } | |
| 1243 | + | |
| 1236 | 1244 | @JsonProperty("Locale") |
| 1237 | 1245 | public UnionLocale getLocale() { return locale; } |
| 1238 | 1246 | @JsonProperty("Locale") |
| @@ -1403,6 +1411,16 @@ public class TopLevel { | ||
| 1403 | 1411 | @JsonProperty("of") |
| 1404 | 1412 | public void setOf(UnionOf value) { this.of = value; } |
| 1405 | 1413 | |
| 1414 | + @JsonProperty("OffsetDateTime") | |
| 1415 | + public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 1416 | + @JsonProperty("OffsetDateTime") | |
| 1417 | + public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; } | |
| 1418 | + | |
| 1419 | + @JsonProperty("OffsetTime") | |
| 1420 | + public UnionOffsetTime getOffsetTime() { return offsetTime; } | |
| 1421 | + @JsonProperty("OffsetTime") | |
| 1422 | + public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; } | |
| 1423 | + | |
| 1406 | 1424 | @JsonProperty("oneway") |
| 1407 | 1425 | public UnionOneway getOneway() { return oneway; } |
| 1408 | 1426 | @JsonProperty("oneway") |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionLocalDate.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 = UnionLocalDate.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionLocalDate.Serializer.class) | |
| 12 | +public class UnionLocalDate { | |
| 13 | + public Double doubleValue; | |
| 14 | + public LocalDateClass localDateClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionLocalDate> { | |
| 17 | + @Override | |
| 18 | + public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionLocalDate value = new UnionLocalDate(); | |
| 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.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionLocalDate"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionLocalDate> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.localDateClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.localDateClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetDateTime.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 = UnionOffsetDateTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetDateTime.Serializer.class) | |
| 12 | +public class UnionOffsetDateTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetDateTimeClass offsetDateTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetDateTime value = new UnionOffsetDateTime(); | |
| 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.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetDateTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetDateTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetDateTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetDateTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-java-lombokdefault / src / main / java / io / quicktype / UnionOffsetTime.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 = UnionOffsetTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetTime.Serializer.class) | |
| 12 | +public class UnionOffsetTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetTimeClass offsetTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetTime value = new UnionOffsetTime(); | |
| 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.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / LocalDateClass.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 LocalDateClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetDateTimeClass.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 OffsetDateTimeClass { | |
| 7 | +} |
Aschema-javadefault / src / main / java / io / quicktype / OffsetTimeClass.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 OffsetTimeClass { | |
| 7 | +} |
Mschema-javadefault / src / main / java / io / quicktype / TopLevel.java+18 −0
| @@ -181,6 +181,7 @@ public class TopLevel { | ||
| 181 | 181 | private UnionLeft left; |
| 182 | 182 | private UnionLet let; |
| 183 | 183 | private UnionList list; |
| 184 | + private UnionLocalDate localDate; | |
| 184 | 185 | private UnionLocale locale; |
| 185 | 186 | private UnionLock lock; |
| 186 | 187 | private UnionLong topLevelLong; |
| @@ -215,6 +216,8 @@ public class TopLevel { | ||
| 215 | 216 | private UnionObject object; |
| 216 | 217 | private UnionObjectMapper objectMapper; |
| 217 | 218 | private UnionOf of; |
| 219 | + private UnionOffsetDateTime offsetDateTime; | |
| 220 | + private UnionOffsetTime offsetTime; | |
| 218 | 221 | private UnionOneway oneway; |
| 219 | 222 | private UnionOpen open; |
| 220 | 223 | private UnionOperator operator; |
| @@ -1233,6 +1236,11 @@ public class TopLevel { | ||
| 1233 | 1236 | @JsonProperty("list") |
| 1234 | 1237 | public void setList(UnionList value) { this.list = value; } |
| 1235 | 1238 | |
| 1239 | + @JsonProperty("LocalDate") | |
| 1240 | + public UnionLocalDate getLocalDate() { return localDate; } | |
| 1241 | + @JsonProperty("LocalDate") | |
| 1242 | + public void setLocalDate(UnionLocalDate value) { this.localDate = value; } | |
| 1243 | + | |
| 1236 | 1244 | @JsonProperty("Locale") |
| 1237 | 1245 | public UnionLocale getLocale() { return locale; } |
| 1238 | 1246 | @JsonProperty("Locale") |
| @@ -1403,6 +1411,16 @@ public class TopLevel { | ||
| 1403 | 1411 | @JsonProperty("of") |
| 1404 | 1412 | public void setOf(UnionOf value) { this.of = value; } |
| 1405 | 1413 | |
| 1414 | + @JsonProperty("OffsetDateTime") | |
| 1415 | + public UnionOffsetDateTime getOffsetDateTime() { return offsetDateTime; } | |
| 1416 | + @JsonProperty("OffsetDateTime") | |
| 1417 | + public void setOffsetDateTime(UnionOffsetDateTime value) { this.offsetDateTime = value; } | |
| 1418 | + | |
| 1419 | + @JsonProperty("OffsetTime") | |
| 1420 | + public UnionOffsetTime getOffsetTime() { return offsetTime; } | |
| 1421 | + @JsonProperty("OffsetTime") | |
| 1422 | + public void setOffsetTime(UnionOffsetTime value) { this.offsetTime = value; } | |
| 1423 | + | |
| 1406 | 1424 | @JsonProperty("oneway") |
| 1407 | 1425 | public UnionOneway getOneway() { return oneway; } |
| 1408 | 1426 | @JsonProperty("oneway") |
Aschema-javadefault / src / main / java / io / quicktype / UnionLocalDate.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 = UnionLocalDate.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionLocalDate.Serializer.class) | |
| 12 | +public class UnionLocalDate { | |
| 13 | + public Double doubleValue; | |
| 14 | + public LocalDateClass localDateClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionLocalDate> { | |
| 17 | + @Override | |
| 18 | + public UnionLocalDate deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionLocalDate value = new UnionLocalDate(); | |
| 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.localDateClassValue = jsonParser.readValueAs(LocalDateClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionLocalDate"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionLocalDate> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionLocalDate obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.localDateClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.localDateClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetDateTime.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 = UnionOffsetDateTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetDateTime.Serializer.class) | |
| 12 | +public class UnionOffsetDateTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetDateTimeClass offsetDateTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetDateTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetDateTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetDateTime value = new UnionOffsetDateTime(); | |
| 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.offsetDateTimeClassValue = jsonParser.readValueAs(OffsetDateTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetDateTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetDateTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetDateTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetDateTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetDateTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Aschema-javadefault / src / main / java / io / quicktype / UnionOffsetTime.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 = UnionOffsetTime.Deserializer.class) | |
| 11 | +@JsonSerialize(using = UnionOffsetTime.Serializer.class) | |
| 12 | +public class UnionOffsetTime { | |
| 13 | + public Double doubleValue; | |
| 14 | + public OffsetTimeClass offsetTimeClassValue; | |
| 15 | + | |
| 16 | + static class Deserializer extends JsonDeserializer<UnionOffsetTime> { | |
| 17 | + @Override | |
| 18 | + public UnionOffsetTime deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException { | |
| 19 | + UnionOffsetTime value = new UnionOffsetTime(); | |
| 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.offsetTimeClassValue = jsonParser.readValueAs(OffsetTimeClass.class); | |
| 29 | + break; | |
| 30 | + default: throw new IOException("Cannot deserialize UnionOffsetTime"); | |
| 31 | + } | |
| 32 | + return value; | |
| 33 | + } | |
| 34 | + } | |
| 35 | + | |
| 36 | + static class Serializer extends JsonSerializer<UnionOffsetTime> { | |
| 37 | + @Override | |
| 38 | + public void serialize(UnionOffsetTime obj, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
| 39 | + if (obj.doubleValue != null) { | |
| 40 | + jsonGenerator.writeObject(obj.doubleValue); | |
| 41 | + return; | |
| 42 | + } | |
| 43 | + if (obj.offsetTimeClassValue != null) { | |
| 44 | + jsonGenerator.writeObject(obj.offsetTimeClassValue); | |
| 45 | + return; | |
| 46 | + } | |
| 47 | + jsonGenerator.writeNull(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | +} |
Mschema-javascript-prop-typesdefault / toplevel.js+12 −0
| @@ -49,6 +49,7 @@ let _JSONParser; | ||
| 49 | 49 | let _JSONReader; |
| 50 | 50 | let _JSONTokenType; |
| 51 | 51 | let _KSerializer; |
| 52 | +let _LocalDate; | |
| 52 | 53 | let _Locale; |
| 53 | 54 | let _MapEntry; |
| 54 | 55 | let _No; |
| @@ -58,6 +59,8 @@ let _NSString; | ||
| 58 | 59 | let _Null; |
| 59 | 60 | let _None; |
| 60 | 61 | let _ObjectMapper; |
| 62 | +let _OffsetDateTime; | |
| 63 | +let _OffsetTime; | |
| 61 | 64 | let _PrimitiveKind; |
| 62 | 65 | let _Protocol; |
| 63 | 66 | let _RegExp; |
| @@ -423,6 +426,8 @@ _JSONTokenType = PropTypes.shape({ | ||
| 423 | 426 | }); |
| 424 | 427 | _KSerializer = PropTypes.shape({ |
| 425 | 428 | }); |
| 429 | +_LocalDate = PropTypes.shape({ | |
| 430 | +}); | |
| 426 | 431 | _Locale = PropTypes.shape({ |
| 427 | 432 | }); |
| 428 | 433 | _MapEntry = PropTypes.shape({ |
| @@ -441,6 +446,10 @@ _None = PropTypes.shape({ | ||
| 441 | 446 | }); |
| 442 | 447 | _ObjectMapper = PropTypes.shape({ |
| 443 | 448 | }); |
| 449 | +_OffsetDateTime = PropTypes.shape({ | |
| 450 | +}); | |
| 451 | +_OffsetTime = PropTypes.shape({ | |
| 452 | +}); | |
| 444 | 453 | _PrimitiveKind = PropTypes.shape({ |
| 445 | 454 | }); |
| 446 | 455 | _Protocol = PropTypes.shape({ |
| @@ -1206,6 +1215,7 @@ _TopLevel = PropTypes.shape({ | ||
| 1206 | 1215 | "left": PropTypes.oneOfType([_Left, PropTypes.number, PropTypes.oneOf([null])]), |
| 1207 | 1216 | "let": PropTypes.oneOfType([_Let, PropTypes.number, PropTypes.oneOf([null])]), |
| 1208 | 1217 | "list": PropTypes.oneOfType([_List, PropTypes.number, PropTypes.oneOf([null])]), |
| 1218 | + "LocalDate": PropTypes.oneOfType([_LocalDate, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1209 | 1219 | "Locale": PropTypes.oneOfType([_Locale, PropTypes.number, PropTypes.oneOf([null])]), |
| 1210 | 1220 | "lock": PropTypes.oneOfType([_Lock, PropTypes.number, PropTypes.oneOf([null])]), |
| 1211 | 1221 | "long": PropTypes.oneOfType([_Long, PropTypes.number, PropTypes.oneOf([null])]), |
| @@ -1240,6 +1250,8 @@ _TopLevel = PropTypes.shape({ | ||
| 1240 | 1250 | "object": PropTypes.oneOfType([_Object, PropTypes.number, PropTypes.oneOf([null])]), |
| 1241 | 1251 | "ObjectMapper": PropTypes.oneOfType([_ObjectMapper, PropTypes.number, PropTypes.oneOf([null])]), |
| 1242 | 1252 | "of": PropTypes.oneOfType([_Of, PropTypes.number, PropTypes.oneOf([null])]), |
| 1253 | + "OffsetDateTime": PropTypes.oneOfType([_OffsetDateTime, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1254 | + "OffsetTime": PropTypes.oneOfType([_OffsetTime, PropTypes.number, PropTypes.oneOf([null])]), | |
| 1243 | 1255 | "oneway": PropTypes.oneOfType([_Oneway, PropTypes.number, PropTypes.oneOf([null])]), |
| 1244 | 1256 | "open": PropTypes.oneOfType([_Open, PropTypes.number, PropTypes.oneOf([null])]), |
| 1245 | 1257 | "operator": PropTypes.oneOfType([_Operator, PropTypes.number, PropTypes.oneOf([null])]), |
Mschema-javascriptdefault / TopLevel.js+9 −0
| @@ -371,6 +371,7 @@ const typeMap = { | ||
| 371 | 371 | { json: "left", js: "left", typ: u(undefined, u(r("Left"), 3.14)) }, |
| 372 | 372 | { json: "let", js: "let", typ: u(undefined, u(r("Let"), 3.14)) }, |
| 373 | 373 | { json: "list", js: "list", typ: u(undefined, u(r("List"), 3.14)) }, |
| 374 | + { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(r("LocalDate"), 3.14)) }, | |
| 374 | 375 | { json: "Locale", js: "Locale", typ: u(undefined, u(r("Locale"), 3.14)) }, |
| 375 | 376 | { json: "lock", js: "lock", typ: u(undefined, u(r("Lock"), 3.14)) }, |
| 376 | 377 | { json: "long", js: "long", typ: u(undefined, u(r("Long"), 3.14)) }, |
| @@ -405,6 +406,8 @@ const typeMap = { | ||
| 405 | 406 | { json: "object", js: "object", typ: u(undefined, u(r("Object"), 3.14)) }, |
| 406 | 407 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(r("ObjectMapper"), 3.14)) }, |
| 407 | 408 | { json: "of", js: "of", typ: u(undefined, u(r("Of"), 3.14)) }, |
| 409 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(r("OffsetDateTime"), 3.14)) }, | |
| 410 | + { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(r("OffsetTime"), 3.14)) }, | |
| 408 | 411 | { json: "oneway", js: "oneway", typ: u(undefined, u(r("Oneway"), 3.14)) }, |
| 409 | 412 | { json: "open", js: "open", typ: u(undefined, u(r("Open"), 3.14)) }, |
| 410 | 413 | { json: "operator", js: "operator", typ: u(undefined, u(r("Operator"), 3.14)) }, |
| @@ -605,6 +608,8 @@ const typeMap = { | ||
| 605 | 608 | ], false), |
| 606 | 609 | "KSerializer": o([ |
| 607 | 610 | ], false), |
| 611 | + "LocalDate": o([ | |
| 612 | + ], false), | |
| 608 | 613 | "Locale": o([ |
| 609 | 614 | ], false), |
| 610 | 615 | "MapEntry": o([ |
| @@ -623,6 +628,10 @@ const typeMap = { | ||
| 623 | 628 | ], false), |
| 624 | 629 | "ObjectMapper": o([ |
| 625 | 630 | ], false), |
| 631 | + "OffsetDateTime": o([ | |
| 632 | + ], false), | |
| 633 | + "OffsetTime": o([ | |
| 634 | + ], false), | |
| 626 | 635 | "PrimitiveKind": o([ |
| 627 | 636 | ], false), |
| 628 | 637 | "Protocol": o([ |
Mschema-objective-cdefault / QTTopLevel.h+15 −0
| @@ -154,6 +154,7 @@ | ||
| 154 | 154 | @class QTLeft; |
| 155 | 155 | @class QTLet; |
| 156 | 156 | @class QTList; |
| 157 | +@class QTLocalDate; | |
| 157 | 158 | @class QTLocale; |
| 158 | 159 | @class QTLock; |
| 159 | 160 | @class QTMap; |
| @@ -182,6 +183,8 @@ | ||
| 182 | 183 | @class QTObject; |
| 183 | 184 | @class QTObjectMapper; |
| 184 | 185 | @class QTOf; |
| 186 | +@class QTOffsetDateTime; | |
| 187 | +@class QTOffsetTime; | |
| 185 | 188 | @class QTOneway; |
| 186 | 189 | @class QTOpen; |
| 187 | 190 | @class QTOperator; |
| @@ -535,6 +538,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 535 | 538 | @property (nonatomic, nullable, copy) id left; |
| 536 | 539 | @property (nonatomic, nullable, copy) id let; |
| 537 | 540 | @property (nonatomic, nullable, copy) id list; |
| 541 | +@property (nonatomic, nullable, copy) id localDate; | |
| 538 | 542 | @property (nonatomic, nullable, copy) id locale; |
| 539 | 543 | @property (nonatomic, nullable, copy) id lock; |
| 540 | 544 | @property (nonatomic, nullable, copy) id qtTopLevelLong; |
| @@ -569,6 +573,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 569 | 573 | @property (nonatomic, nullable, copy) id object; |
| 570 | 574 | @property (nonatomic, nullable, copy) id objectMapper; |
| 571 | 575 | @property (nonatomic, nullable, copy) id of; |
| 576 | +@property (nonatomic, nullable, copy) id offsetDateTime; | |
| 577 | +@property (nonatomic, nullable, copy) id offsetTime; | |
| 572 | 578 | @property (nonatomic, nullable, copy) id oneway; |
| 573 | 579 | @property (nonatomic, nullable, copy) id open; |
| 574 | 580 | @property (nonatomic, nullable, copy) id operator; |
| @@ -1147,6 +1153,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1147 | 1153 | @interface QTList : NSObject |
| 1148 | 1154 | @end |
| 1149 | 1155 | |
| 1156 | +@interface QTLocalDate : NSObject | |
| 1157 | +@end | |
| 1158 | + | |
| 1150 | 1159 | @interface QTLocale : NSObject |
| 1151 | 1160 | @end |
| 1152 | 1161 | |
| @@ -1231,6 +1240,12 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding en | ||
| 1231 | 1240 | @interface QTOf : NSObject |
| 1232 | 1241 | @end |
| 1233 | 1242 | |
| 1243 | +@interface QTOffsetDateTime : NSObject | |
| 1244 | +@end | |
| 1245 | + | |
| 1246 | +@interface QTOffsetTime : NSObject | |
| 1247 | +@end | |
| 1248 | + | |
| 1234 | 1249 | @interface QTOneway : NSObject |
| 1235 | 1250 | @end |
Mschema-objective-cdefault / QTTopLevel.m+135 −0
| @@ -753,6 +753,11 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 753 | 753 | - (NSDictionary *)JSONDictionary; |
| 754 | 754 | @end |
| 755 | 755 | |
| 756 | +@interface QTLocalDate (JSONConversion) | |
| 757 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 758 | +- (NSDictionary *)JSONDictionary; | |
| 759 | +@end | |
| 760 | + | |
| 756 | 761 | @interface QTLocale (JSONConversion) |
| 757 | 762 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 758 | 763 | - (NSDictionary *)JSONDictionary; |
| @@ -893,6 +898,16 @@ NS_ASSUME_NONNULL_BEGIN | ||
| 893 | 898 | - (NSDictionary *)JSONDictionary; |
| 894 | 899 | @end |
| 895 | 900 | |
| 901 | +@interface QTOffsetDateTime (JSONConversion) | |
| 902 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 903 | +- (NSDictionary *)JSONDictionary; | |
| 904 | +@end | |
| 905 | + | |
| 906 | +@interface QTOffsetTime (JSONConversion) | |
| 907 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict; | |
| 908 | +- (NSDictionary *)JSONDictionary; | |
| 909 | +@end | |
| 910 | + | |
| 896 | 911 | @interface QTOneway (JSONConversion) |
| 897 | 912 | + (instancetype)fromJSONDictionary:(NSDictionary *)dict; |
| 898 | 913 | - (NSDictionary *)JSONDictionary; |
| @@ -1922,6 +1937,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1922 | 1937 | @"left": @"left", |
| 1923 | 1938 | @"let": @"let", |
| 1924 | 1939 | @"list": @"list", |
| 1940 | + @"LocalDate": @"localDate", | |
| 1925 | 1941 | @"Locale": @"locale", |
| 1926 | 1942 | @"lock": @"lock", |
| 1927 | 1943 | @"long": @"qtTopLevelLong", |
| @@ -1956,6 +1972,8 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 1956 | 1972 | @"object": @"object", |
| 1957 | 1973 | @"ObjectMapper": @"objectMapper", |
| 1958 | 1974 | @"of": @"of", |
| 1975 | + @"OffsetDateTime": @"offsetDateTime", | |
| 1976 | + @"OffsetTime": @"offsetTime", | |
| 1959 | 1977 | @"oneway": @"oneway", |
| 1960 | 1978 | @"open": @"open", |
| 1961 | 1979 | @"operator": @"operator", |
| @@ -7919,6 +7937,45 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 7919 | 7937 | } |
| 7920 | 7938 | @end |
| 7921 | 7939 | |
| 7940 | +@implementation QTLocalDate | |
| 7941 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 7942 | +{ | |
| 7943 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 7944 | + return properties = properties ? properties : @{ | |
| 7945 | + }; | |
| 7946 | +} | |
| 7947 | + | |
| 7948 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 7949 | +{ | |
| 7950 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTLocalDate alloc] initWithJSONDictionary:dict] : nil; | |
| 7951 | +} | |
| 7952 | + | |
| 7953 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 7954 | +{ | |
| 7955 | + if (self = [super init]) { | |
| 7956 | + [self setValuesForKeysWithDictionary:dict]; | |
| 7957 | + } | |
| 7958 | + return self; | |
| 7959 | +} | |
| 7960 | + | |
| 7961 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 7962 | +{ | |
| 7963 | + id resolved = QTLocalDate.properties[key]; | |
| 7964 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 7965 | +} | |
| 7966 | + | |
| 7967 | +- (void)setNilValueForKey:(NSString *)key | |
| 7968 | +{ | |
| 7969 | + id resolved = QTLocalDate.properties[key]; | |
| 7970 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 7971 | +} | |
| 7972 | + | |
| 7973 | +- (NSDictionary *)JSONDictionary | |
| 7974 | +{ | |
| 7975 | + return [self dictionaryWithValuesForKeys:QTLocalDate.properties.allValues]; | |
| 7976 | +} | |
| 7977 | +@end | |
| 7978 | + | |
| 7922 | 7979 | @implementation QTLocale |
| 7923 | 7980 | + (NSDictionary<NSString *, NSString *> *)properties |
| 7924 | 7981 | { |
| @@ -9011,6 +9068,84 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco | ||
| 9011 | 9068 | } |
| 9012 | 9069 | @end |
| 9013 | 9070 | |
| 9071 | +@implementation QTOffsetDateTime | |
| 9072 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 9073 | +{ | |
| 9074 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 9075 | + return properties = properties ? properties : @{ | |
| 9076 | + }; | |
| 9077 | +} | |
| 9078 | + | |
| 9079 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 9080 | +{ | |
| 9081 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetDateTime alloc] initWithJSONDictionary:dict] : nil; | |
| 9082 | +} | |
| 9083 | + | |
| 9084 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 9085 | +{ | |
| 9086 | + if (self = [super init]) { | |
| 9087 | + [self setValuesForKeysWithDictionary:dict]; | |
| 9088 | + } | |
| 9089 | + return self; | |
| 9090 | +} | |
| 9091 | + | |
| 9092 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 9093 | +{ | |
| 9094 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 9095 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 9096 | +} | |
| 9097 | + | |
| 9098 | +- (void)setNilValueForKey:(NSString *)key | |
| 9099 | +{ | |
| 9100 | + id resolved = QTOffsetDateTime.properties[key]; | |
| 9101 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 9102 | +} | |
| 9103 | + | |
| 9104 | +- (NSDictionary *)JSONDictionary | |
| 9105 | +{ | |
| 9106 | + return [self dictionaryWithValuesForKeys:QTOffsetDateTime.properties.allValues]; | |
| 9107 | +} | |
| 9108 | +@end | |
| 9109 | + | |
| 9110 | +@implementation QTOffsetTime | |
| 9111 | ++ (NSDictionary<NSString *, NSString *> *)properties | |
| 9112 | +{ | |
| 9113 | + static NSDictionary<NSString *, NSString *> *properties; | |
| 9114 | + return properties = properties ? properties : @{ | |
| 9115 | + }; | |
| 9116 | +} | |
| 9117 | + | |
| 9118 | ++ (instancetype)fromJSONDictionary:(NSDictionary *)dict | |
| 9119 | +{ | |
| 9120 | + return [dict isKindOfClass:NSDictionary.class] ? [[QTOffsetTime alloc] initWithJSONDictionary:dict] : nil; | |
| 9121 | +} | |
| 9122 | + | |
| 9123 | +- (instancetype)initWithJSONDictionary:(NSDictionary *)dict | |
| 9124 | +{ | |
| 9125 | + if (self = [super init]) { | |
| 9126 | + [self setValuesForKeysWithDictionary:dict]; | |
| 9127 | + } | |
| 9128 | + return self; | |
| 9129 | +} | |
| 9130 | + | |
| 9131 | +- (void)setValue:(nullable id)value forKey:(NSString *)key | |
| 9132 | +{ | |
| 9133 | + id resolved = QTOffsetTime.properties[key]; | |
| 9134 | + if (resolved) [super setValue:value forKey:resolved]; | |
| 9135 | +} | |
| 9136 | + | |
| 9137 | +- (void)setNilValueForKey:(NSString *)key | |
| 9138 | +{ | |
| 9139 | + id resolved = QTOffsetTime.properties[key]; | |
| 9140 | + if (resolved) [super setValue:@(0) forKey:resolved]; | |
| 9141 | +} | |
| 9142 | + | |
| 9143 | +- (NSDictionary *)JSONDictionary | |
| 9144 | +{ | |
| 9145 | + return [self dictionaryWithValuesForKeys:QTOffsetTime.properties.allValues]; | |
| 9146 | +} | |
| 9147 | +@end | |
| 9148 | + | |
| 9014 | 9149 | @implementation QTOneway |
| 9015 | 9150 | + (NSDictionary<NSString *, NSString *> *)properties |
| 9016 | 9151 | { |
Mschema-phpdefault / TopLevel.php+546 −162
| @@ -182,6 +182,7 @@ class TopLevel { | ||
| 182 | 182 | private Left|float|null $left; // json:left Optional |
| 183 | 183 | private Let|float|null $let; // json:let Optional |
| 184 | 184 | private ListClass|float|null $list; // json:list Optional |
| 185 | + private LocalDate|float|null $localDate; // json:LocalDate Optional | |
| 185 | 186 | private LocaleClass|float|null $locale; // json:Locale Optional |
| 186 | 187 | private Lock|float|null $lock; // json:lock Optional |
| 187 | 188 | private Long|float|null $long; // json:long Optional |
| @@ -216,6 +217,8 @@ class TopLevel { | ||
| 216 | 217 | private ObjectClass|float|null $object; // json:object Optional |
| 217 | 218 | private ObjectMapper|float|null $objectMapper; // json:ObjectMapper Optional |
| 218 | 219 | private Of|float|null $of; // json:of Optional |
| 220 | + private OffsetDateTime|float|null $offsetDateTime; // json:OffsetDateTime Optional | |
| 221 | + private OffsetTime|float|null $offsetTime; // json:OffsetTime Optional | |
| 219 | 222 | private Oneway|float|null $oneway; // json:oneway Optional |
| 220 | 223 | private Open|float|null $open; // json:open Optional |
| 221 | 224 | private Operator|float|null $operator; // json:operator Optional |
| @@ -523,6 +526,7 @@ class TopLevel { | ||
| 523 | 526 | * @param Left|float|null $left |
| 524 | 527 | * @param Let|float|null $let |
| 525 | 528 | * @param ListClass|float|null $list |
| 529 | + * @param LocalDate|float|null $localDate | |
| 526 | 530 | * @param LocaleClass|float|null $locale |
| 527 | 531 | * @param Lock|float|null $lock |
| 528 | 532 | * @param Long|float|null $long |
| @@ -557,6 +561,8 @@ class TopLevel { | ||
| 557 | 561 | * @param ObjectClass|float|null $object |
| 558 | 562 | * @param ObjectMapper|float|null $objectMapper |
| 559 | 563 | * @param Of|float|null $of |
| 564 | + * @param OffsetDateTime|float|null $offsetDateTime | |
| 565 | + * @param OffsetTime|float|null $offsetTime | |
| 560 | 566 | * @param Oneway|float|null $oneway |
| 561 | 567 | * @param Open|float|null $open |
| 562 | 568 | * @param Operator|float|null $operator |
| @@ -685,7 +691,7 @@ class TopLevel { | ||
| 685 | 691 | * @param Yes|float|null $yes |
| 686 | 692 | * @param YieldClass|float|null $yield |
| 687 | 693 | */ |
| 688 | - 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, KSerializer|float|null $kSerializer, 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, PrimitiveKind|float|null $primitiveKind, 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, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, 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, UseSerializers|float|null $useSerializers, 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) { | |
| 694 | + 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, KSerializer|float|null $kSerializer, Lambda|float|null $lambda, Lazy|float|null $lazy, Left|float|null $left, Let|float|null $let, ListClass|float|null $list, LocalDate|float|null $localDate, 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, OffsetDateTime|float|null $offsetDateTime, OffsetTime|float|null $offsetTime, 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, PrimitiveKind|float|null $primitiveKind, 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, SerialDescriptor|float|null $serialDescriptor, SerializableClass|float|null $serializable, Serialize|float|null $serialize, SerializerProvider|float|null $serializerProvider, SerialName|float|null $serialName, 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, UseSerializers|float|null $useSerializers, 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) { | |
| 689 | 695 | $this->empty = $empty; |
| 690 | 696 | $this->topLevelBool = $topLevelBool; |
| 691 | 697 | $this->complex = $complex; |
| @@ -864,6 +870,7 @@ class TopLevel { | ||
| 864 | 870 | $this->left = $left; |
| 865 | 871 | $this->let = $let; |
| 866 | 872 | $this->list = $list; |
| 873 | + $this->localDate = $localDate; | |
| 867 | 874 | $this->locale = $locale; |
| 868 | 875 | $this->lock = $lock; |
| 869 | 876 | $this->long = $long; |
| @@ -898,6 +905,8 @@ class TopLevel { | ||
| 898 | 905 | $this->object = $object; |
| 899 | 906 | $this->objectMapper = $objectMapper; |
| 900 | 907 | $this->of = $of; |
| 908 | + $this->offsetDateTime = $offsetDateTime; | |
| 909 | + $this->offsetTime = $offsetTime; | |
| 901 | 910 | $this->oneway = $oneway; |
| 902 | 911 | $this->open = $open; |
| 903 | 912 | $this->operator = $operator; |
| @@ -14536,6 +14545,82 @@ class TopLevel { | ||
| 14536 | 14545 | return ListClass::sample(); /*208:list*/ |
| 14537 | 14546 | } |
| 14538 | 14547 | |
| 14548 | + /** | |
| 14549 | + * @param stdClass|float|null $value | |
| 14550 | + * @throws Exception | |
| 14551 | + * @return LocalDate|float|null | |
| 14552 | + */ | |
| 14553 | + public static function fromLocalDate(stdClass|float|null $value): LocalDate|float|null { | |
| 14554 | + if (is_null($value)) { | |
| 14555 | + return $value; /*null*/ | |
| 14556 | + } elseif (is_object($value)) { | |
| 14557 | + return LocalDate::from($value); /*class*/ | |
| 14558 | + } elseif (is_float($value) || is_int($value)) { | |
| 14559 | + return $value; /*float*/ | |
| 14560 | + } else { | |
| 14561 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 14562 | + } | |
| 14563 | + } | |
| 14564 | + | |
| 14565 | + /** | |
| 14566 | + * @throws Exception | |
| 14567 | + * @return stdClass|float|null | |
| 14568 | + */ | |
| 14569 | + public function toLocalDate(): stdClass|float|null { | |
| 14570 | + if (TopLevel::validateLocalDate($this->localDate)) { | |
| 14571 | + if (is_null($this->localDate)) { | |
| 14572 | + return $this->localDate; /*null*/ | |
| 14573 | + } elseif ($this->localDate instanceof LocalDate) { | |
| 14574 | + return $this->localDate->to(); /*class*/ | |
| 14575 | + } elseif (is_float($this->localDate) || is_int($this->localDate)) { | |
| 14576 | + return $this->localDate; /*float*/ | |
| 14577 | + } else { | |
| 14578 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 14579 | + } | |
| 14580 | + } | |
| 14581 | + throw new Exception('never get to this TopLevel::localDate'); | |
| 14582 | + } | |
| 14583 | + | |
| 14584 | + /** | |
| 14585 | + * @param LocalDate|float|null | |
| 14586 | + * @return bool | |
| 14587 | + * @throws Exception | |
| 14588 | + */ | |
| 14589 | + public static function validateLocalDate(LocalDate|float|null $value): bool { | |
| 14590 | + if (is_null($value)) { | |
| 14591 | + if (!is_null($value)) { | |
| 14592 | + throw new Exception("Attribute Error:TopLevel::localDate"); | |
| 14593 | + } | |
| 14594 | + } elseif ($value instanceof LocalDate) { | |
| 14595 | + $value->validate(); | |
| 14596 | + } elseif (is_float($value) || is_int($value)) { | |
| 14597 | + if (!is_float($value) && !is_int($value)) { | |
| 14598 | + throw new Exception("Attribute Error:TopLevel::localDate"); | |
| 14599 | + } | |
| 14600 | + } else { | |
| 14601 | + throw new Exception("Attribute Error:TopLevel::localDate"); | |
| 14602 | + } | |
| 14603 | + return true; | |
| 14604 | + } | |
| 14605 | + | |
| 14606 | + /** | |
| 14607 | + * @throws Exception | |
| 14608 | + * @return LocalDate|float|null | |
| 14609 | + */ | |
| 14610 | + public function getLocalDate(): LocalDate|float|null { | |
| 14611 | + if (TopLevel::validateLocalDate($this->localDate)) { | |
| 14612 | + return $this->localDate; | |
| 14613 | + } | |
| 14614 | + throw new Exception('never get to getLocalDate TopLevel::localDate'); | |
| 14615 | + } | |
| 14616 | + | |
| 14617 | + /** | |
| 14618 | + * @return LocalDate|float|null | |
| 14619 | + */ | |
| 14620 | + public static function sampleLocalDate(): LocalDate|float|null { | |
| 14621 | + return LocalDate::sample(); /*209:localDate*/ | |
| 14622 | + } | |
| 14623 | + | |
| 14539 | 14624 | /** |
| 14540 | 14625 | * @param stdClass|float|null $value |
| 14541 | 14626 | * @throws Exception |
| @@ -14609,7 +14694,7 @@ class TopLevel { | ||
| 14609 | 14694 | * @return LocaleClass|float|null |
| 14610 | 14695 | */ |
| 14611 | 14696 | public static function sampleLocale(): LocaleClass|float|null { |
| 14612 | - return LocaleClass::sample(); /*209:locale*/ | |
| 14697 | + return LocaleClass::sample(); /*210:locale*/ | |
| 14613 | 14698 | } |
| 14614 | 14699 | |
| 14615 | 14700 | /** |
| @@ -14685,7 +14770,7 @@ class TopLevel { | ||
| 14685 | 14770 | * @return Lock|float|null |
| 14686 | 14771 | */ |
| 14687 | 14772 | public static function sampleLock(): Lock|float|null { |
| 14688 | - return Lock::sample(); /*210:lock*/ | |
| 14773 | + return Lock::sample(); /*211:lock*/ | |
| 14689 | 14774 | } |
| 14690 | 14775 | |
| 14691 | 14776 | /** |
| @@ -14761,7 +14846,7 @@ class TopLevel { | ||
| 14761 | 14846 | * @return Long|float|null |
| 14762 | 14847 | */ |
| 14763 | 14848 | public static function sampleLong(): Long|float|null { |
| 14764 | - return Long::sample(); /*211:long*/ | |
| 14849 | + return Long::sample(); /*212:long*/ | |
| 14765 | 14850 | } |
| 14766 | 14851 | |
| 14767 | 14852 | /** |
| @@ -14837,7 +14922,7 @@ class TopLevel { | ||
| 14837 | 14922 | * @return Map|float|null |
| 14838 | 14923 | */ |
| 14839 | 14924 | public static function sampleMap(): Map|float|null { |
| 14840 | - return Map::sample(); /*212:map*/ | |
| 14925 | + return Map::sample(); /*213:map*/ | |
| 14841 | 14926 | } |
| 14842 | 14927 | |
| 14843 | 14928 | /** |
| @@ -14913,7 +14998,7 @@ class TopLevel { | ||
| 14913 | 14998 | * @return MapEntry|float|null |
| 14914 | 14999 | */ |
| 14915 | 15000 | public static function sampleMapEntry(): MapEntry|float|null { |
| 14916 | - return MapEntry::sample(); /*213:mapEntry*/ | |
| 15001 | + return MapEntry::sample(); /*214:mapEntry*/ | |
| 14917 | 15002 | } |
| 14918 | 15003 | |
| 14919 | 15004 | /** |
| @@ -14989,7 +15074,7 @@ class TopLevel { | ||
| 14989 | 15074 | * @return MetadataPropertyHandling|float|null |
| 14990 | 15075 | */ |
| 14991 | 15076 | public static function sampleMetadataPropertyHandling(): MetadataPropertyHandling|float|null { |
| 14992 | - return MetadataPropertyHandling::sample(); /*214:metadataPropertyHandling*/ | |
| 15077 | + return MetadataPropertyHandling::sample(); /*215:metadataPropertyHandling*/ | |
| 14993 | 15078 | } |
| 14994 | 15079 | |
| 14995 | 15080 | /** |
| @@ -15065,7 +15150,7 @@ class TopLevel { | ||
| 15065 | 15150 | * @return Module|float|null |
| 15066 | 15151 | */ |
| 15067 | 15152 | public static function sampleModule(): Module|float|null { |
| 15068 | - return Module::sample(); /*215:module*/ | |
| 15153 | + return Module::sample(); /*216:module*/ | |
| 15069 | 15154 | } |
| 15070 | 15155 | |
| 15071 | 15156 | /** |
| @@ -15141,7 +15226,7 @@ class TopLevel { | ||
| 15141 | 15226 | * @return Mutable|float|null |
| 15142 | 15227 | */ |
| 15143 | 15228 | public static function sampleMutable(): Mutable|float|null { |
| 15144 | - return Mutable::sample(); /*216:mutable*/ | |
| 15229 | + return Mutable::sample(); /*217:mutable*/ | |
| 15145 | 15230 | } |
| 15146 | 15231 | |
| 15147 | 15232 | /** |
| @@ -15217,7 +15302,7 @@ class TopLevel { | ||
| 15217 | 15302 | * @return Mutating|float|null |
| 15218 | 15303 | */ |
| 15219 | 15304 | public static function sampleMutating(): Mutating|float|null { |
| 15220 | - return Mutating::sample(); /*217:mutating*/ | |
| 15305 | + return Mutating::sample(); /*218:mutating*/ | |
| 15221 | 15306 | } |
| 15222 | 15307 | |
| 15223 | 15308 | /** |
| @@ -15293,7 +15378,7 @@ class TopLevel { | ||
| 15293 | 15378 | * @return NamespaceClass|float|null |
| 15294 | 15379 | */ |
| 15295 | 15380 | public static function sampleNamespace(): NamespaceClass|float|null { |
| 15296 | - return NamespaceClass::sample(); /*218:namespace*/ | |
| 15381 | + return NamespaceClass::sample(); /*219:namespace*/ | |
| 15297 | 15382 | } |
| 15298 | 15383 | |
| 15299 | 15384 | /** |
| @@ -15369,7 +15454,7 @@ class TopLevel { | ||
| 15369 | 15454 | * @return Native|float|null |
| 15370 | 15455 | */ |
| 15371 | 15456 | public static function sampleNative(): Native|float|null { |
| 15372 | - return Native::sample(); /*219:native*/ | |
| 15457 | + return Native::sample(); /*220:native*/ | |
| 15373 | 15458 | } |
| 15374 | 15459 | |
| 15375 | 15460 | /** |
| @@ -15445,7 +15530,7 @@ class TopLevel { | ||
| 15445 | 15530 | * @return NewClass|float|null |
| 15446 | 15531 | */ |
| 15447 | 15532 | public static function sampleNew(): NewClass|float|null { |
| 15448 | - return NewClass::sample(); /*220:new*/ | |
| 15533 | + return NewClass::sample(); /*221:new*/ | |
| 15449 | 15534 | } |
| 15450 | 15535 | |
| 15451 | 15536 | /** |
| @@ -15521,7 +15606,7 @@ class TopLevel { | ||
| 15521 | 15606 | * @return Newtonsoft|float|null |
| 15522 | 15607 | */ |
| 15523 | 15608 | public static function sampleNewtonsoft(): Newtonsoft|float|null { |
| 15524 | - return Newtonsoft::sample(); /*221:newtonsoft*/ | |
| 15609 | + return Newtonsoft::sample(); /*222:newtonsoft*/ | |
| 15525 | 15610 | } |
| 15526 | 15611 | |
| 15527 | 15612 | /** |
| @@ -15597,7 +15682,7 @@ class TopLevel { | ||
| 15597 | 15682 | * @return Nil|float|null |
| 15598 | 15683 | */ |
| 15599 | 15684 | public static function sampleNil(): Nil|float|null { |
| 15600 | - return Nil::sample(); /*222:nil*/ | |
| 15685 | + return Nil::sample(); /*223:nil*/ | |
| 15601 | 15686 | } |
| 15602 | 15687 | |
| 15603 | 15688 | /** |
| @@ -15673,7 +15758,7 @@ class TopLevel { | ||
| 15673 | 15758 | * @return No|float|null |
| 15674 | 15759 | */ |
| 15675 | 15760 | public static function sampleNo(): No|float|null { |
| 15676 | - return No::sample(); /*223:no*/ | |
| 15761 | + return No::sample(); /*224:no*/ | |
| 15677 | 15762 | } |
| 15678 | 15763 | |
| 15679 | 15764 | /** |
| @@ -15749,7 +15834,7 @@ class TopLevel { | ||
| 15749 | 15834 | * @return Noexcept|float|null |
| 15750 | 15835 | */ |
| 15751 | 15836 | public static function sampleNoexcept(): Noexcept|float|null { |
| 15752 | - return Noexcept::sample(); /*224:noexcept*/ | |
| 15837 | + return Noexcept::sample(); /*225:noexcept*/ | |
| 15753 | 15838 | } |
| 15754 | 15839 | |
| 15755 | 15840 | /** |
| @@ -15825,7 +15910,7 @@ class TopLevel { | ||
| 15825 | 15910 | * @return Nonatomic|float|null |
| 15826 | 15911 | */ |
| 15827 | 15912 | public static function sampleNonatomic(): Nonatomic|float|null { |
| 15828 | - return Nonatomic::sample(); /*225:nonatomic*/ | |
| 15913 | + return Nonatomic::sample(); /*226:nonatomic*/ | |
| 15829 | 15914 | } |
| 15830 | 15915 | |
| 15831 | 15916 | /** |
| @@ -15901,7 +15986,7 @@ class TopLevel { | ||
| 15901 | 15986 | * @return NoneClass|float|null |
| 15902 | 15987 | */ |
| 15903 | 15988 | public static function sampleTopLevelNone(): NoneClass|float|null { |
| 15904 | - return NoneClass::sample(); /*226:topLevelNone*/ | |
| 15989 | + return NoneClass::sample(); /*227:topLevelNone*/ | |
| 15905 | 15990 | } |
| 15906 | 15991 | |
| 15907 | 15992 | /** |
| @@ -15977,7 +16062,7 @@ class TopLevel { | ||
| 15977 | 16062 | * @return None|float|null |
| 15978 | 16063 | */ |
| 15979 | 16064 | public static function sampleNone(): None|float|null { |
| 15980 | - return None::sample(); /*227:none*/ | |
| 16065 | + return None::sample(); /*228:none*/ | |
| 15981 | 16066 | } |
| 15982 | 16067 | |
| 15983 | 16068 | /** |
| @@ -16053,7 +16138,7 @@ class TopLevel { | ||
| 16053 | 16138 | * @return Nonlocal|float|null |
| 16054 | 16139 | */ |
| 16055 | 16140 | public static function sampleNonlocal(): Nonlocal|float|null { |
| 16056 | - return Nonlocal::sample(); /*228:nonlocal*/ | |
| 16141 | + return Nonlocal::sample(); /*229:nonlocal*/ | |
| 16057 | 16142 | } |
| 16058 | 16143 | |
| 16059 | 16144 | /** |
| @@ -16129,7 +16214,7 @@ class TopLevel { | ||
| 16129 | 16214 | * @return Nonmutating|float|null |
| 16130 | 16215 | */ |
| 16131 | 16216 | public static function sampleNonmutating(): Nonmutating|float|null { |
| 16132 | - return Nonmutating::sample(); /*229:nonmutating*/ | |
| 16217 | + return Nonmutating::sample(); /*230:nonmutating*/ | |
| 16133 | 16218 | } |
| 16134 | 16219 | |
| 16135 | 16220 | /** |
| @@ -16205,7 +16290,7 @@ class TopLevel { | ||
| 16205 | 16290 | * @return NoSuchMethod|float|null |
| 16206 | 16291 | */ |
| 16207 | 16292 | public static function sampleNoSuchMethod(): NoSuchMethod|float|null { |
| 16208 | - return NoSuchMethod::sample(); /*230:noSuchMethod*/ | |
| 16293 | + return NoSuchMethod::sample(); /*231:noSuchMethod*/ | |
| 16209 | 16294 | } |
| 16210 | 16295 | |
| 16211 | 16296 | /** |
| @@ -16281,7 +16366,7 @@ class TopLevel { | ||
| 16281 | 16366 | * @return Not|float|null |
| 16282 | 16367 | */ |
| 16283 | 16368 | public static function sampleNot(): Not|float|null { |
| 16284 | - return Not::sample(); /*231:not*/ | |
| 16369 | + return Not::sample(); /*232:not*/ | |
| 16285 | 16370 | } |
| 16286 | 16371 | |
| 16287 | 16372 | /** |
| @@ -16357,7 +16442,7 @@ class TopLevel { | ||
| 16357 | 16442 | * @return NotEq|float|null |
| 16358 | 16443 | */ |
| 16359 | 16444 | public static function sampleNotEq(): NotEq|float|null { |
| 16360 | - return NotEq::sample(); /*232:notEq*/ | |
| 16445 | + return NotEq::sample(); /*233:notEq*/ | |
| 16361 | 16446 | } |
| 16362 | 16447 | |
| 16363 | 16448 | /** |
| @@ -16433,7 +16518,7 @@ class TopLevel { | ||
| 16433 | 16518 | * @return NSError|float|null |
| 16434 | 16519 | */ |
| 16435 | 16520 | public static function sampleNSError(): NSError|float|null { |
| 16436 | - return NSError::sample(); /*233:nsError*/ | |
| 16521 | + return NSError::sample(); /*234:nsError*/ | |
| 16437 | 16522 | } |
| 16438 | 16523 | |
| 16439 | 16524 | /** |
| @@ -16509,7 +16594,7 @@ class TopLevel { | ||
| 16509 | 16594 | * @return NSObject|float|null |
| 16510 | 16595 | */ |
| 16511 | 16596 | public static function sampleNSObject(): NSObject|float|null { |
| 16512 | - return NSObject::sample(); /*234:nsObject*/ | |
| 16597 | + return NSObject::sample(); /*235:nsObject*/ | |
| 16513 | 16598 | } |
| 16514 | 16599 | |
| 16515 | 16600 | /** |
| @@ -16585,7 +16670,7 @@ class TopLevel { | ||
| 16585 | 16670 | * @return NSString|float|null |
| 16586 | 16671 | */ |
| 16587 | 16672 | public static function sampleNSString(): NSString|float|null { |
| 16588 | - return NSString::sample(); /*235:nsString*/ | |
| 16673 | + return NSString::sample(); /*236:nsString*/ | |
| 16589 | 16674 | } |
| 16590 | 16675 | |
| 16591 | 16676 | /** |
| @@ -16661,7 +16746,7 @@ class TopLevel { | ||
| 16661 | 16746 | * @return NULLClass|float|null |
| 16662 | 16747 | */ |
| 16663 | 16748 | public static function sampleNull(): NULLClass|float|null { |
| 16664 | - return NULLClass::sample(); /*236:null*/ | |
| 16749 | + return NULLClass::sample(); /*237:null*/ | |
| 16665 | 16750 | } |
| 16666 | 16751 | |
| 16667 | 16752 | /** |
| @@ -16737,7 +16822,7 @@ class TopLevel { | ||
| 16737 | 16822 | * @return UnionNullNull|float|null |
| 16738 | 16823 | */ |
| 16739 | 16824 | public static function sampleTopLevelNull(): UnionNullNull|float|null { |
| 16740 | - return UnionNullNull::sample(); /*237:topLevelNull*/ | |
| 16825 | + return UnionNullNull::sample(); /*238:topLevelNull*/ | |
| 16741 | 16826 | } |
| 16742 | 16827 | |
| 16743 | 16828 | /** |
| @@ -16813,7 +16898,7 @@ class TopLevel { | ||
| 16813 | 16898 | * @return Nullptr|float|null |
| 16814 | 16899 | */ |
| 16815 | 16900 | public static function sampleNullptr(): Nullptr|float|null { |
| 16816 | - return Nullptr::sample(); /*238:nullptr*/ | |
| 16901 | + return Nullptr::sample(); /*239:nullptr*/ | |
| 16817 | 16902 | } |
| 16818 | 16903 | |
| 16819 | 16904 | /** |
| @@ -16889,7 +16974,7 @@ class TopLevel { | ||
| 16889 | 16974 | * @return Number|float|null |
| 16890 | 16975 | */ |
| 16891 | 16976 | public static function sampleNumber(): Number|float|null { |
| 16892 | - return Number::sample(); /*239:number*/ | |
| 16977 | + return Number::sample(); /*240:number*/ | |
| 16893 | 16978 | } |
| 16894 | 16979 | |
| 16895 | 16980 | /** |
| @@ -16965,7 +17050,7 @@ class TopLevel { | ||
| 16965 | 17050 | * @return ObjectClass|float|null |
| 16966 | 17051 | */ |
| 16967 | 17052 | public static function sampleObject(): ObjectClass|float|null { |
| 16968 | - return ObjectClass::sample(); /*240:object*/ | |
| 17053 | + return ObjectClass::sample(); /*241:object*/ | |
| 16969 | 17054 | } |
| 16970 | 17055 | |
| 16971 | 17056 | /** |
| @@ -17041,7 +17126,7 @@ class TopLevel { | ||
| 17041 | 17126 | * @return ObjectMapper|float|null |
| 17042 | 17127 | */ |
| 17043 | 17128 | public static function sampleObjectMapper(): ObjectMapper|float|null { |
| 17044 | - return ObjectMapper::sample(); /*241:objectMapper*/ | |
| 17129 | + return ObjectMapper::sample(); /*242:objectMapper*/ | |
| 17045 | 17130 | } |
| 17046 | 17131 | |
| 17047 | 17132 | /** |
| @@ -17117,7 +17202,159 @@ class TopLevel { | ||
| 17117 | 17202 | * @return Of|float|null |
| 17118 | 17203 | */ |
| 17119 | 17204 | public static function sampleOf(): Of|float|null { |
| 17120 | - return Of::sample(); /*242:of*/ | |
| 17205 | + return Of::sample(); /*243:of*/ | |
| 17206 | + } | |
| 17207 | + | |
| 17208 | + /** | |
| 17209 | + * @param stdClass|float|null $value | |
| 17210 | + * @throws Exception | |
| 17211 | + * @return OffsetDateTime|float|null | |
| 17212 | + */ | |
| 17213 | + public static function fromOffsetDateTime(stdClass|float|null $value): OffsetDateTime|float|null { | |
| 17214 | + if (is_null($value)) { | |
| 17215 | + return $value; /*null*/ | |
| 17216 | + } elseif (is_object($value)) { | |
| 17217 | + return OffsetDateTime::from($value); /*class*/ | |
| 17218 | + } elseif (is_float($value) || is_int($value)) { | |
| 17219 | + return $value; /*float*/ | |
| 17220 | + } else { | |
| 17221 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 17222 | + } | |
| 17223 | + } | |
| 17224 | + | |
| 17225 | + /** | |
| 17226 | + * @throws Exception | |
| 17227 | + * @return stdClass|float|null | |
| 17228 | + */ | |
| 17229 | + public function toOffsetDateTime(): stdClass|float|null { | |
| 17230 | + if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) { | |
| 17231 | + if (is_null($this->offsetDateTime)) { | |
| 17232 | + return $this->offsetDateTime; /*null*/ | |
| 17233 | + } elseif ($this->offsetDateTime instanceof OffsetDateTime) { | |
| 17234 | + return $this->offsetDateTime->to(); /*class*/ | |
| 17235 | + } elseif (is_float($this->offsetDateTime) || is_int($this->offsetDateTime)) { | |
| 17236 | + return $this->offsetDateTime; /*float*/ | |
| 17237 | + } else { | |
| 17238 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 17239 | + } | |
| 17240 | + } | |
| 17241 | + throw new Exception('never get to this TopLevel::offsetDateTime'); | |
| 17242 | + } | |
| 17243 | + | |
| 17244 | + /** | |
| 17245 | + * @param OffsetDateTime|float|null | |
| 17246 | + * @return bool | |
| 17247 | + * @throws Exception | |
| 17248 | + */ | |
| 17249 | + public static function validateOffsetDateTime(OffsetDateTime|float|null $value): bool { | |
| 17250 | + if (is_null($value)) { | |
| 17251 | + if (!is_null($value)) { | |
| 17252 | + throw new Exception("Attribute Error:TopLevel::offsetDateTime"); | |
| 17253 | + } | |
| 17254 | + } elseif ($value instanceof OffsetDateTime) { | |
| 17255 | + $value->validate(); | |
| 17256 | + } elseif (is_float($value) || is_int($value)) { | |
| 17257 | + if (!is_float($value) && !is_int($value)) { | |
| 17258 | + throw new Exception("Attribute Error:TopLevel::offsetDateTime"); | |
| 17259 | + } | |
| 17260 | + } else { | |
| 17261 | + throw new Exception("Attribute Error:TopLevel::offsetDateTime"); | |
| 17262 | + } | |
| 17263 | + return true; | |
| 17264 | + } | |
| 17265 | + | |
| 17266 | + /** | |
| 17267 | + * @throws Exception | |
| 17268 | + * @return OffsetDateTime|float|null | |
| 17269 | + */ | |
| 17270 | + public function getOffsetDateTime(): OffsetDateTime|float|null { | |
| 17271 | + if (TopLevel::validateOffsetDateTime($this->offsetDateTime)) { | |
| 17272 | + return $this->offsetDateTime; | |
| 17273 | + } | |
| 17274 | + throw new Exception('never get to getOffsetDateTime TopLevel::offsetDateTime'); | |
| 17275 | + } | |
| 17276 | + | |
| 17277 | + /** | |
| 17278 | + * @return OffsetDateTime|float|null | |
| 17279 | + */ | |
| 17280 | + public static function sampleOffsetDateTime(): OffsetDateTime|float|null { | |
| 17281 | + return OffsetDateTime::sample(); /*244:offsetDateTime*/ | |
| 17282 | + } | |
| 17283 | + | |
| 17284 | + /** | |
| 17285 | + * @param stdClass|float|null $value | |
| 17286 | + * @throws Exception | |
| 17287 | + * @return OffsetTime|float|null | |
| 17288 | + */ | |
| 17289 | + public static function fromOffsetTime(stdClass|float|null $value): OffsetTime|float|null { | |
| 17290 | + if (is_null($value)) { | |
| 17291 | + return $value; /*null*/ | |
| 17292 | + } elseif (is_object($value)) { | |
| 17293 | + return OffsetTime::from($value); /*class*/ | |
| 17294 | + } elseif (is_float($value) || is_int($value)) { | |
| 17295 | + return $value; /*float*/ | |
| 17296 | + } else { | |
| 17297 | + throw new Exception('Cannot deserialize union value in TopLevel'); | |
| 17298 | + } | |
| 17299 | + } | |
| 17300 | + | |
| 17301 | + /** | |
| 17302 | + * @throws Exception | |
| 17303 | + * @return stdClass|float|null | |
| 17304 | + */ | |
| 17305 | + public function toOffsetTime(): stdClass|float|null { | |
| 17306 | + if (TopLevel::validateOffsetTime($this->offsetTime)) { | |
| 17307 | + if (is_null($this->offsetTime)) { | |
| 17308 | + return $this->offsetTime; /*null*/ | |
| 17309 | + } elseif ($this->offsetTime instanceof OffsetTime) { | |
| 17310 | + return $this->offsetTime->to(); /*class*/ | |
| 17311 | + } elseif (is_float($this->offsetTime) || is_int($this->offsetTime)) { | |
| 17312 | + return $this->offsetTime; /*float*/ | |
| 17313 | + } else { | |
| 17314 | + throw new Exception('Union value has no matching member in TopLevel'); | |
| 17315 | + } | |
| 17316 | + } | |
| 17317 | + throw new Exception('never get to this TopLevel::offsetTime'); | |
| 17318 | + } | |
| 17319 | + | |
| 17320 | + /** | |
| 17321 | + * @param OffsetTime|float|null | |
| 17322 | + * @return bool | |
| 17323 | + * @throws Exception | |
| 17324 | + */ | |
| 17325 | + public static function validateOffsetTime(OffsetTime|float|null $value): bool { | |
| 17326 | + if (is_null($value)) { | |
| 17327 | + if (!is_null($value)) { | |
| 17328 | + throw new Exception("Attribute Error:TopLevel::offsetTime"); | |
| 17329 | + } | |
| 17330 | + } elseif ($value instanceof OffsetTime) { | |
| 17331 | + $value->validate(); | |
| 17332 | + } elseif (is_float($value) || is_int($value)) { | |
| 17333 | + if (!is_float($value) && !is_int($value)) { | |
| 17334 | + throw new Exception("Attribute Error:TopLevel::offsetTime"); | |
| 17335 | + } | |
| 17336 | + } else { | |
| 17337 | + throw new Exception("Attribute Error:TopLevel::offsetTime"); | |
| 17338 | + } | |
| 17339 | + return true; | |
| 17340 | + } | |
| 17341 | + | |
| 17342 | + /** | |
| 17343 | + * @throws Exception | |
| 17344 | + * @return OffsetTime|float|null | |
| 17345 | + */ | |
| 17346 | + public function getOffsetTime(): OffsetTime|float|null { | |
| 17347 | + if (TopLevel::validateOffsetTime($this->offsetTime)) { | |
| 17348 | + return $this->offsetTime; | |
| 17349 | + } | |
| 17350 | + throw new Exception('never get to getOffsetTime TopLevel::offsetTime'); | |
| 17351 | + } | |
| 17352 | + | |
| 17353 | + /** | |
| 17354 | + * @return OffsetTime|float|null | |
| 17355 | + */ | |
| 17356 | + public static function sampleOffsetTime(): OffsetTime|float|null { | |
| 17357 | + return OffsetTime::sample(); /*245:offsetTime*/ | |
| 17121 | 17358 | } |
| 17122 | 17359 | |
| 17123 | 17360 | /** |
| @@ -17193,7 +17430,7 @@ class TopLevel { | ||
| 17193 | 17430 | * @return Oneway|float|null |
| 17194 | 17431 | */ |
| 17195 | 17432 | public static function sampleOneway(): Oneway|float|null { |
| 17196 | - return Oneway::sample(); /*243:oneway*/ | |
| 17433 | + return Oneway::sample(); /*246:oneway*/ | |
| 17197 | 17434 | } |
| 17198 | 17435 | |
| 17199 | 17436 | /** |
| @@ -17269,7 +17506,7 @@ class TopLevel { | ||
| 17269 | 17506 | * @return Open|float|null |
| 17270 | 17507 | */ |
| 17271 | 17508 | public static function sampleOpen(): Open|float|null { |
| 17272 | - return Open::sample(); /*244:open*/ | |
| 17509 | + return Open::sample(); /*247:open*/ | |
| 17273 | 17510 | } |
| 17274 | 17511 | |
| 17275 | 17512 | /** |
| @@ -17345,7 +17582,7 @@ class TopLevel { | ||
| 17345 | 17582 | * @return Operator|float|null |
| 17346 | 17583 | */ |
| 17347 | 17584 | public static function sampleOperator(): Operator|float|null { |
| 17348 | - return Operator::sample(); /*245:operator*/ | |
| 17585 | + return Operator::sample(); /*248:operator*/ | |
| 17349 | 17586 | } |
| 17350 | 17587 | |
| 17351 | 17588 | /** |
| @@ -17421,7 +17658,7 @@ class TopLevel { | ||
| 17421 | 17658 | * @return Optional|float|null |
| 17422 | 17659 | */ |
| 17423 | 17660 | public static function sampleOptional(): Optional|float|null { |
| 17424 | - return Optional::sample(); /*246:optional*/ | |
| 17661 | + return Optional::sample(); /*249:optional*/ | |
| 17425 | 17662 | } |
| 17426 | 17663 | |
| 17427 | 17664 | /** |
| @@ -17497,7 +17734,7 @@ class TopLevel { | ||
| 17497 | 17734 | * @return OrClass|float|null |
| 17498 | 17735 | */ |
| 17499 | 17736 | public static function sampleOr(): OrClass|float|null { |
| 17500 | - return OrClass::sample(); /*247:or*/ | |
| 17737 | + return OrClass::sample(); /*250:or*/ | |
| 17501 | 17738 | } |
| 17502 | 17739 | |
| 17503 | 17740 | /** |
| @@ -17573,7 +17810,7 @@ class TopLevel { | ||
| 17573 | 17810 | * @return OrEq|float|null |
| 17574 | 17811 | */ |
| 17575 | 17812 | public static function sampleOrEq(): OrEq|float|null { |
| 17576 | - return OrEq::sample(); /*248:orEq*/ | |
| 17813 | + return OrEq::sample(); /*251:orEq*/ | |
| 17577 | 17814 | } |
| 17578 | 17815 | |
| 17579 | 17816 | /** |
| @@ -17649,7 +17886,7 @@ class TopLevel { | ||
| 17649 | 17886 | * @return Out|float|null |
| 17650 | 17887 | */ |
| 17651 | 17888 | public static function sampleOut(): Out|float|null { |
| 17652 | - return Out::sample(); /*249:out*/ | |
| 17889 | + return Out::sample(); /*252:out*/ | |
| 17653 | 17890 | } |
| 17654 | 17891 | |
| 17655 | 17892 | /** |
| @@ -17725,7 +17962,7 @@ class TopLevel { | ||
| 17725 | 17962 | * @return OverrideClass|float|null |
| 17726 | 17963 | */ |
| 17727 | 17964 | public static function sampleOverride(): OverrideClass|float|null { |
| 17728 | - return OverrideClass::sample(); /*250:override*/ | |
| 17965 | + return OverrideClass::sample(); /*253:override*/ | |
| 17729 | 17966 | } |
| 17730 | 17967 | |
| 17731 | 17968 | /** |
| @@ -17801,7 +18038,7 @@ class TopLevel { | ||
| 17801 | 18038 | * @return Package|float|null |
| 17802 | 18039 | */ |
| 17803 | 18040 | public static function samplePackage(): Package|float|null { |
| 17804 | - return Package::sample(); /*251:package*/ | |
| 18041 | + return Package::sample(); /*254:package*/ | |
| 17805 | 18042 | } |
| 17806 | 18043 | |
| 17807 | 18044 | /** |
| @@ -17877,7 +18114,7 @@ class TopLevel { | ||
| 17877 | 18114 | * @return Params|float|null |
| 17878 | 18115 | */ |
| 17879 | 18116 | public static function sampleParams(): Params|float|null { |
| 17880 | - return Params::sample(); /*252:params*/ | |
| 18117 | + return Params::sample(); /*255:params*/ | |
| 17881 | 18118 | } |
| 17882 | 18119 | |
| 17883 | 18120 | /** |
| @@ -17953,7 +18190,7 @@ class TopLevel { | ||
| 17953 | 18190 | * @return Pass|float|null |
| 17954 | 18191 | */ |
| 17955 | 18192 | public static function samplePass(): Pass|float|null { |
| 17956 | - return Pass::sample(); /*253:pass*/ | |
| 18193 | + return Pass::sample(); /*256:pass*/ | |
| 17957 | 18194 | } |
| 17958 | 18195 | |
| 17959 | 18196 | /** |
| @@ -18029,7 +18266,7 @@ class TopLevel { | ||
| 18029 | 18266 | * @return Port|float|null |
| 18030 | 18267 | */ |
| 18031 | 18268 | public static function samplePort(): Port|float|null { |
| 18032 | - return Port::sample(); /*254:port*/ | |
| 18269 | + return Port::sample(); /*257:port*/ | |
| 18033 | 18270 | } |
| 18034 | 18271 | |
| 18035 | 18272 | /** |
| @@ -18105,7 +18342,7 @@ class TopLevel { | ||
| 18105 | 18342 | * @return Postfix|float|null |
| 18106 | 18343 | */ |
| 18107 | 18344 | public static function samplePostfix(): Postfix|float|null { |
| 18108 | - return Postfix::sample(); /*255:postfix*/ | |
| 18345 | + return Postfix::sample(); /*258:postfix*/ | |
| 18109 | 18346 | } |
| 18110 | 18347 | |
| 18111 | 18348 | /** |
| @@ -18181,7 +18418,7 @@ class TopLevel { | ||
| 18181 | 18418 | * @return Precedence|float|null |
| 18182 | 18419 | */ |
| 18183 | 18420 | public static function samplePrecedence(): Precedence|float|null { |
| 18184 | - return Precedence::sample(); /*256:precedence*/ | |
| 18421 | + return Precedence::sample(); /*259:precedence*/ | |
| 18185 | 18422 | } |
| 18186 | 18423 | |
| 18187 | 18424 | /** |
| @@ -18257,7 +18494,7 @@ class TopLevel { | ||
| 18257 | 18494 | * @return Prefix|float|null |
| 18258 | 18495 | */ |
| 18259 | 18496 | public static function samplePrefix(): Prefix|float|null { |
| 18260 | - return Prefix::sample(); /*257:prefix*/ | |
| 18497 | + return Prefix::sample(); /*260:prefix*/ | |
| 18261 | 18498 | } |
| 18262 | 18499 | |
| 18263 | 18500 | /** |
| @@ -18333,7 +18570,7 @@ class TopLevel { | ||
| 18333 | 18570 | * @return PrimitiveKind|float|null |
| 18334 | 18571 | */ |
| 18335 | 18572 | public static function samplePrimitiveKind(): PrimitiveKind|float|null { |
| 18336 | - return PrimitiveKind::sample(); /*258:primitiveKind*/ | |
| 18573 | + return PrimitiveKind::sample(); /*261:primitiveKind*/ | |
| 18337 | 18574 | } |
| 18338 | 18575 | |
| 18339 | 18576 | /** |
| @@ -18409,7 +18646,7 @@ class TopLevel { | ||
| 18409 | 18646 | * @return PrintClass|float|null |
| 18410 | 18647 | */ |
| 18411 | 18648 | public static function samplePrint(): PrintClass|float|null { |
| 18412 | - return PrintClass::sample(); /*259:print*/ | |
| 18649 | + return PrintClass::sample(); /*262:print*/ | |
| 18413 | 18650 | } |
| 18414 | 18651 | |
| 18415 | 18652 | /** |
| @@ -18485,7 +18722,7 @@ class TopLevel { | ||
| 18485 | 18722 | * @return Printf|float|null |
| 18486 | 18723 | */ |
| 18487 | 18724 | public static function samplePrintf(): Printf|float|null { |
| 18488 | - return Printf::sample(); /*260:printf*/ | |
| 18725 | + return Printf::sample(); /*263:printf*/ | |
| 18489 | 18726 | } |
| 18490 | 18727 | |
| 18491 | 18728 | /** |
| @@ -18561,7 +18798,7 @@ class TopLevel { | ||
| 18561 | 18798 | * @return PrintMembers|float|null |
| 18562 | 18799 | */ |
| 18563 | 18800 | public static function samplePrintMembers(): PrintMembers|float|null { |
| 18564 | - return PrintMembers::sample(); /*261:printMembers*/ | |
| 18801 | + return PrintMembers::sample(); /*264:printMembers*/ | |
| 18565 | 18802 | } |
| 18566 | 18803 | |
| 18567 | 18804 | /** |
| @@ -18637,7 +18874,7 @@ class TopLevel { | ||
| 18637 | 18874 | * @return PrivateClass|float|null |
| 18638 | 18875 | */ |
| 18639 | 18876 | public static function samplePrivate(): PrivateClass|float|null { |
| 18640 | - return PrivateClass::sample(); /*262:private*/ | |
| 18877 | + return PrivateClass::sample(); /*265:private*/ | |
| 18641 | 18878 | } |
| 18642 | 18879 | |
| 18643 | 18880 | /** |
| @@ -18713,7 +18950,7 @@ class TopLevel { | ||
| 18713 | 18950 | * @return ProtectedClass|float|null |
| 18714 | 18951 | */ |
| 18715 | 18952 | public static function sampleProtected(): ProtectedClass|float|null { |
| 18716 | - return ProtectedClass::sample(); /*263:protected*/ | |
| 18953 | + return ProtectedClass::sample(); /*266:protected*/ | |
| 18717 | 18954 | } |
| 18718 | 18955 | |
| 18719 | 18956 | /** |
| @@ -18789,7 +19026,7 @@ class TopLevel { | ||
| 18789 | 19026 | * @return Protocol|float|null |
| 18790 | 19027 | */ |
| 18791 | 19028 | public static function sampleProtocol(): Protocol|float|null { |
| 18792 | - return Protocol::sample(); /*264:protocol*/ | |
| 19029 | + return Protocol::sample(); /*267:protocol*/ | |
| 18793 | 19030 | } |
| 18794 | 19031 | |
| 18795 | 19032 | /** |
| @@ -18865,7 +19102,7 @@ class TopLevel { | ||
| 18865 | 19102 | * @return ProtocolClass|float|null |
| 18866 | 19103 | */ |
| 18867 | 19104 | public static function sampleTopLevelProtocol(): ProtocolClass|float|null { |
| 18868 | - return ProtocolClass::sample(); /*265:topLevelProtocol*/ | |
| 19105 | + return ProtocolClass::sample(); /*268:topLevelProtocol*/ | |
| 18869 | 19106 | } |
| 18870 | 19107 | |
| 18871 | 19108 | /** |
| @@ -18941,7 +19178,7 @@ class TopLevel { | ||
| 18941 | 19178 | * @return PublicClass|float|null |
| 18942 | 19179 | */ |
| 18943 | 19180 | public static function samplePublic(): PublicClass|float|null { |
| 18944 | - return PublicClass::sample(); /*266:public*/ | |
| 19181 | + return PublicClass::sample(); /*269:public*/ | |
| 18945 | 19182 | } |
| 18946 | 19183 | |
| 18947 | 19184 | /** |
| @@ -19017,7 +19254,7 @@ class TopLevel { | ||
| 19017 | 19254 | * @return Quicktype|float|null |
| 19018 | 19255 | */ |
| 19019 | 19256 | public static function sampleQuicktype(): Quicktype|float|null { |
| 19020 | - return Quicktype::sample(); /*267:quicktype*/ | |
| 19257 | + return Quicktype::sample(); /*270:quicktype*/ | |
| 19021 | 19258 | } |
| 19022 | 19259 | |
| 19023 | 19260 | /** |
| @@ -19093,7 +19330,7 @@ class TopLevel { | ||
| 19093 | 19330 | * @return Raise|float|null |
| 19094 | 19331 | */ |
| 19095 | 19332 | public static function sampleRaise(): Raise|float|null { |
| 19096 | - return Raise::sample(); /*268:raise*/ | |
| 19333 | + return Raise::sample(); /*271:raise*/ | |
| 19097 | 19334 | } |
| 19098 | 19335 | |
| 19099 | 19336 | /** |
| @@ -19169,7 +19406,7 @@ class TopLevel { | ||
| 19169 | 19406 | * @return Range|float|null |
| 19170 | 19407 | */ |
| 19171 | 19408 | public static function sampleRange(): Range|float|null { |
| 19172 | - return Range::sample(); /*269:range*/ | |
| 19409 | + return Range::sample(); /*272:range*/ | |
| 19173 | 19410 | } |
| 19174 | 19411 | |
| 19175 | 19412 | /** |
| @@ -19245,7 +19482,7 @@ class TopLevel { | ||
| 19245 | 19482 | * @return ReadonlyClass|float|null |
| 19246 | 19483 | */ |
| 19247 | 19484 | public static function sampleReadonly(): ReadonlyClass|float|null { |
| 19248 | - return ReadonlyClass::sample(); /*270:readonly*/ | |
| 19485 | + return ReadonlyClass::sample(); /*273:readonly*/ | |
| 19249 | 19486 | } |
| 19250 | 19487 | |
| 19251 | 19488 | /** |
| @@ -19321,7 +19558,7 @@ class TopLevel { | ||
| 19321 | 19558 | * @return Ref|float|null |
| 19322 | 19559 | */ |
| 19323 | 19560 | public static function sampleRef(): Ref|float|null { |
| 19324 | - return Ref::sample(); /*271:ref*/ | |
| 19561 | + return Ref::sample(); /*274:ref*/ | |
| 19325 | 19562 | } |
| 19326 | 19563 | |
| 19327 | 19564 | /** |
| @@ -19397,7 +19634,7 @@ class TopLevel { | ||
| 19397 | 19634 | * @return RegExp|float|null |
| 19398 | 19635 | */ |
| 19399 | 19636 | public static function sampleRegExp(): RegExp|float|null { |
| 19400 | - return RegExp::sample(); /*272:regExp*/ | |
| 19637 | + return RegExp::sample(); /*275:regExp*/ | |
| 19401 | 19638 | } |
| 19402 | 19639 | |
| 19403 | 19640 | /** |
| @@ -19473,7 +19710,7 @@ class TopLevel { | ||
| 19473 | 19710 | * @return Register|float|null |
| 19474 | 19711 | */ |
| 19475 | 19712 | public static function sampleRegister(): Register|float|null { |
| 19476 | - return Register::sample(); /*273:register*/ | |
| 19713 | + return Register::sample(); /*276:register*/ | |
| 19477 | 19714 | } |
| 19478 | 19715 | |
| 19479 | 19716 | /** |
| @@ -19549,7 +19786,7 @@ class TopLevel { | ||
| 19549 | 19786 | * @return ReinterpretCast|float|null |
| 19550 | 19787 | */ |
| 19551 | 19788 | public static function sampleReinterpretCast(): ReinterpretCast|float|null { |
| 19552 | - return ReinterpretCast::sample(); /*274:reinterpretCast*/ | |
| 19789 | + return ReinterpretCast::sample(); /*277:reinterpretCast*/ | |
| 19553 | 19790 | } |
| 19554 | 19791 | |
| 19555 | 19792 | /** |
| @@ -19625,7 +19862,7 @@ class TopLevel { | ||
| 19625 | 19862 | * @return Repeat|float|null |
| 19626 | 19863 | */ |
| 19627 | 19864 | public static function sampleRepeat(): Repeat|float|null { |
| 19628 | - return Repeat::sample(); /*275:repeat*/ | |
| 19865 | + return Repeat::sample(); /*278:repeat*/ | |
| 19629 | 19866 | } |
| 19630 | 19867 | |
| 19631 | 19868 | /** |
| @@ -19701,7 +19938,7 @@ class TopLevel { | ||
| 19701 | 19938 | * @return RequireClass|float|null |
| 19702 | 19939 | */ |
| 19703 | 19940 | public static function sampleRequire(): RequireClass|float|null { |
| 19704 | - return RequireClass::sample(); /*276:require*/ | |
| 19941 | + return RequireClass::sample(); /*279:require*/ | |
| 19705 | 19942 | } |
| 19706 | 19943 | |
| 19707 | 19944 | /** |
| @@ -19777,7 +20014,7 @@ class TopLevel { | ||
| 19777 | 20014 | * @return Required|float|null |
| 19778 | 20015 | */ |
| 19779 | 20016 | public static function sampleRequired(): Required|float|null { |
| 19780 | - return Required::sample(); /*277:required*/ | |
| 20017 | + return Required::sample(); /*280:required*/ | |
| 19781 | 20018 | } |
| 19782 | 20019 | |
| 19783 | 20020 | /** |
| @@ -19853,7 +20090,7 @@ class TopLevel { | ||
| 19853 | 20090 | * @return Requires|float|null |
| 19854 | 20091 | */ |
| 19855 | 20092 | public static function sampleRequires(): Requires|float|null { |
| 19856 | - return Requires::sample(); /*278:requires*/ | |
| 20093 | + return Requires::sample(); /*281:requires*/ | |
| 19857 | 20094 | } |
| 19858 | 20095 | |
| 19859 | 20096 | /** |
| @@ -19929,7 +20166,7 @@ class TopLevel { | ||
| 19929 | 20166 | * @return Restrict|float|null |
| 19930 | 20167 | */ |
| 19931 | 20168 | public static function sampleRestrict(): Restrict|float|null { |
| 19932 | - return Restrict::sample(); /*279:restrict*/ | |
| 20169 | + return Restrict::sample(); /*282:restrict*/ | |
| 19933 | 20170 | } |
| 19934 | 20171 | |
| 19935 | 20172 | /** |
| @@ -20005,7 +20242,7 @@ class TopLevel { | ||
| 20005 | 20242 | * @return Retain|float|null |
| 20006 | 20243 | */ |
| 20007 | 20244 | public static function sampleRetain(): Retain|float|null { |
| 20008 | - return Retain::sample(); /*280:retain*/ | |
| 20245 | + return Retain::sample(); /*283:retain*/ | |
| 20009 | 20246 | } |
| 20010 | 20247 | |
| 20011 | 20248 | /** |
| @@ -20081,7 +20318,7 @@ class TopLevel { | ||
| 20081 | 20318 | * @return Rethrows|float|null |
| 20082 | 20319 | */ |
| 20083 | 20320 | public static function sampleRethrows(): Rethrows|float|null { |
| 20084 | - return Rethrows::sample(); /*281:rethrows*/ | |
| 20321 | + return Rethrows::sample(); /*284:rethrows*/ | |
| 20085 | 20322 | } |
| 20086 | 20323 | |
| 20087 | 20324 | /** |
| @@ -20157,7 +20394,7 @@ class TopLevel { | ||
| 20157 | 20394 | * @return ReturnClass|float|null |
| 20158 | 20395 | */ |
| 20159 | 20396 | public static function sampleReturn(): ReturnClass|float|null { |
| 20160 | - return ReturnClass::sample(); /*282:return*/ | |
| 20397 | + return ReturnClass::sample(); /*285:return*/ | |
| 20161 | 20398 | } |
| 20162 | 20399 | |
| 20163 | 20400 | /** |
| @@ -20233,7 +20470,7 @@ class TopLevel { | ||
| 20233 | 20470 | * @return Right|float|null |
| 20234 | 20471 | */ |
| 20235 | 20472 | public static function sampleRight(): Right|float|null { |
| 20236 | - return Right::sample(); /*283:right*/ | |
| 20473 | + return Right::sample(); /*286:right*/ | |
| 20237 | 20474 | } |
| 20238 | 20475 | |
| 20239 | 20476 | /** |
| @@ -20309,7 +20546,7 @@ class TopLevel { | ||
| 20309 | 20546 | * @return RuntimeType|float|null |
| 20310 | 20547 | */ |
| 20311 | 20548 | public static function sampleRuntimeType(): RuntimeType|float|null { |
| 20312 | - return RuntimeType::sample(); /*284:runtimeType*/ | |
| 20549 | + return RuntimeType::sample(); /*287:runtimeType*/ | |
| 20313 | 20550 | } |
| 20314 | 20551 | |
| 20315 | 20552 | /** |
| @@ -20385,7 +20622,7 @@ class TopLevel { | ||
| 20385 | 20622 | * @return S|float|null |
| 20386 | 20623 | */ |
| 20387 | 20624 | public static function sampleS(): S|float|null { |
| 20388 | - return S::sample(); /*285:s*/ | |
| 20625 | + return S::sample(); /*288:s*/ | |
| 20389 | 20626 | } |
| 20390 | 20627 | |
| 20391 | 20628 | /** |
| @@ -20461,7 +20698,7 @@ class TopLevel { | ||
| 20461 | 20698 | * @return Sbyte|float|null |
| 20462 | 20699 | */ |
| 20463 | 20700 | public static function sampleSbyte(): Sbyte|float|null { |
| 20464 | - return Sbyte::sample(); /*286:sbyte*/ | |
| 20701 | + return Sbyte::sample(); /*289:sbyte*/ | |
| 20465 | 20702 | } |
| 20466 | 20703 | |
| 20467 | 20704 | /** |
| @@ -20537,7 +20774,7 @@ class TopLevel { | ||
| 20537 | 20774 | * @return Sealed|float|null |
| 20538 | 20775 | */ |
| 20539 | 20776 | public static function sampleSealed(): Sealed|float|null { |
| 20540 | - return Sealed::sample(); /*287:sealed*/ | |
| 20777 | + return Sealed::sample(); /*290:sealed*/ | |
| 20541 | 20778 | } |
| 20542 | 20779 | |
| 20543 | 20780 | /** |
| @@ -20613,7 +20850,7 @@ class TopLevel { | ||
| 20613 | 20850 | * @return Sel|float|null |
| 20614 | 20851 | */ |
| 20615 | 20852 | public static function sampleSel(): Sel|float|null { |
| 20616 | - return Sel::sample(); /*288:sel*/ | |
| 20853 | + return Sel::sample(); /*291:sel*/ | |
| 20617 | 20854 | } |
| 20618 | 20855 | |
| 20619 | 20856 | /** |
| @@ -20689,7 +20926,7 @@ class TopLevel { | ||
| 20689 | 20926 | * @return Select|float|null |
| 20690 | 20927 | */ |
| 20691 | 20928 | public static function sampleSelect(): Select|float|null { |
| 20692 | - return Select::sample(); /*289:select*/ | |
| 20929 | + return Select::sample(); /*292:select*/ | |
| 20693 | 20930 | } |
| 20694 | 20931 | |
| 20695 | 20932 | /** |
| @@ -20765,7 +21002,7 @@ class TopLevel { | ||
| 20765 | 21002 | * @return SelfClass|float|null |
| 20766 | 21003 | */ |
| 20767 | 21004 | public static function sampleSelf(): SelfClass|float|null { |
| 20768 | - return SelfClass::sample(); /*290:self*/ | |
| 21005 | + return SelfClass::sample(); /*293:self*/ | |
| 20769 | 21006 | } |
| 20770 | 21007 | |
| 20771 | 21008 | /** |
| @@ -20841,7 +21078,7 @@ class TopLevel { | ||
| 20841 | 21078 | * @return UnionSelfSelf|float|null |
| 20842 | 21079 | */ |
| 20843 | 21080 | public static function sampleTopLevelSelf(): UnionSelfSelf|float|null { |
| 20844 | - return UnionSelfSelf::sample(); /*291:topLevelSelf*/ | |
| 21081 | + return UnionSelfSelf::sample(); /*294:topLevelSelf*/ | |
| 20845 | 21082 | } |
| 20846 | 21083 | |
| 20847 | 21084 | /** |
| @@ -20917,7 +21154,7 @@ class TopLevel { | ||
| 20917 | 21154 | * @return Sendable|float|null |
| 20918 | 21155 | */ |
| 20919 | 21156 | public static function sampleSendable(): Sendable|float|null { |
| 20920 | - return Sendable::sample(); /*292:sendable*/ | |
| 21157 | + return Sendable::sample(); /*295:sendable*/ | |
| 20921 | 21158 | } |
| 20922 | 21159 | |
| 20923 | 21160 | /** |
| @@ -20993,7 +21230,7 @@ class TopLevel { | ||
| 20993 | 21230 | * @return SerialDescriptor|float|null |
| 20994 | 21231 | */ |
| 20995 | 21232 | public static function sampleSerialDescriptor(): SerialDescriptor|float|null { |
| 20996 | - return SerialDescriptor::sample(); /*293:serialDescriptor*/ | |
| 21233 | + return SerialDescriptor::sample(); /*296:serialDescriptor*/ | |
| 20997 | 21234 | } |
| 20998 | 21235 | |
| 20999 | 21236 | /** |
| @@ -21069,7 +21306,7 @@ class TopLevel { | ||
| 21069 | 21306 | * @return SerializableClass|float|null |
| 21070 | 21307 | */ |
| 21071 | 21308 | public static function sampleSerializable(): SerializableClass|float|null { |
| 21072 | - return SerializableClass::sample(); /*294:serializable*/ | |
| 21309 | + return SerializableClass::sample(); /*297:serializable*/ | |
| 21073 | 21310 | } |
| 21074 | 21311 | |
| 21075 | 21312 | /** |
| @@ -21145,7 +21382,7 @@ class TopLevel { | ||
| 21145 | 21382 | * @return Serialize|float|null |
| 21146 | 21383 | */ |
| 21147 | 21384 | public static function sampleSerialize(): Serialize|float|null { |
| 21148 | - return Serialize::sample(); /*295:serialize*/ | |
| 21385 | + return Serialize::sample(); /*298:serialize*/ | |
| 21149 | 21386 | } |
| 21150 | 21387 | |
| 21151 | 21388 | /** |
| @@ -21221,7 +21458,7 @@ class TopLevel { | ||
| 21221 | 21458 | * @return SerializerProvider|float|null |
| 21222 | 21459 | */ |
| 21223 | 21460 | public static function sampleSerializerProvider(): SerializerProvider|float|null { |
| 21224 | - return SerializerProvider::sample(); /*296:serializerProvider*/ | |
| 21461 | + return SerializerProvider::sample(); /*299:serializerProvider*/ | |
| 21225 | 21462 | } |
| 21226 | 21463 | |
| 21227 | 21464 | /** |
| @@ -21297,7 +21534,7 @@ class TopLevel { | ||
| 21297 | 21534 | * @return SerialName|float|null |
| 21298 | 21535 | */ |
| 21299 | 21536 | public static function sampleSerialName(): SerialName|float|null { |
| 21300 | - return SerialName::sample(); /*297:serialName*/ | |
| 21537 | + return SerialName::sample(); /*300:serialName*/ | |
| 21301 | 21538 | } |
| 21302 | 21539 | |
| 21303 | 21540 | /** |
| @@ -21373,7 +21610,7 @@ class TopLevel { | ||
| 21373 | 21610 | * @return Set|float|null |
| 21374 | 21611 | */ |
| 21375 | 21612 | public static function sampleSet(): Set|float|null { |
| 21376 | - return Set::sample(); /*298:set*/ | |
| 21613 | + return Set::sample(); /*301:set*/ | |
| 21377 | 21614 | } |
| 21378 | 21615 | |
| 21379 | 21616 | /** |
| @@ -21449,7 +21686,7 @@ class TopLevel { | ||
| 21449 | 21686 | * @return Short|float|null |
| 21450 | 21687 | */ |
| 21451 | 21688 | public static function sampleShort(): Short|float|null { |
| 21452 | - return Short::sample(); /*299:short*/ | |
| 21689 | + return Short::sample(); /*302:short*/ | |
| 21453 | 21690 | } |
| 21454 | 21691 | |
| 21455 | 21692 | /** |
| @@ -21525,7 +21762,7 @@ class TopLevel { | ||
| 21525 | 21762 | * @return Signed|float|null |
| 21526 | 21763 | */ |
| 21527 | 21764 | public static function sampleSigned(): Signed|float|null { |
| 21528 | - return Signed::sample(); /*300:signed*/ | |
| 21765 | + return Signed::sample(); /*303:signed*/ | |
| 21529 | 21766 | } |
| 21530 | 21767 | |
| 21531 | 21768 | /** |
| @@ -21601,7 +21838,7 @@ class TopLevel { | ||
| 21601 | 21838 | * @return SimpleModule|float|null |
| 21602 | 21839 | */ |
| 21603 | 21840 | public static function sampleSimpleModule(): SimpleModule|float|null { |
| 21604 | - return SimpleModule::sample(); /*301:simpleModule*/ | |
| 21841 | + return SimpleModule::sample(); /*304:simpleModule*/ | |
| 21605 | 21842 | } |
| 21606 | 21843 | |
| 21607 | 21844 | /** |
| @@ -21677,7 +21914,7 @@ class TopLevel { | ||
| 21677 | 21914 | * @return Sizeof|float|null |
| 21678 | 21915 | */ |
| 21679 | 21916 | public static function sampleSizeof(): Sizeof|float|null { |
| 21680 | - return Sizeof::sample(); /*302:sizeof*/ | |
| 21917 | + return Sizeof::sample(); /*305:sizeof*/ | |
| 21681 | 21918 | } |
| 21682 | 21919 | |
| 21683 | 21920 | /** |
| @@ -21753,7 +21990,7 @@ class TopLevel { | ||
| 21753 | 21990 | * @return Stackalloc|float|null |
| 21754 | 21991 | */ |
| 21755 | 21992 | public static function sampleStackalloc(): Stackalloc|float|null { |
| 21756 | - return Stackalloc::sample(); /*303:stackalloc*/ | |
| 21993 | + return Stackalloc::sample(); /*306:stackalloc*/ | |
| 21757 | 21994 | } |
| 21758 | 21995 | |
| 21759 | 21996 | /** |
| @@ -21829,7 +22066,7 @@ class TopLevel { | ||
| 21829 | 22066 | * @return Standards|float|null |
| 21830 | 22067 | */ |
| 21831 | 22068 | public static function sampleStandards(): Standards|float|null { |
| 21832 | - return Standards::sample(); /*304:standards*/ | |
| 22069 | + return Standards::sample(); /*307:standards*/ | |
| 21833 | 22070 | } |
| 21834 | 22071 | |
| 21835 | 22072 | /** |
| @@ -21905,7 +22142,7 @@ class TopLevel { | ||
| 21905 | 22142 | * @return StaticClass|float|null |
| 21906 | 22143 | */ |
| 21907 | 22144 | public static function sampleStatic(): StaticClass|float|null { |
| 21908 | - return StaticClass::sample(); /*305:static*/ | |
| 22145 | + return StaticClass::sample(); /*308:static*/ | |
| 21909 | 22146 | } |
| 21910 | 22147 | |
| 21911 | 22148 | /** |
| @@ -21981,7 +22218,7 @@ class TopLevel { | ||
| 21981 | 22218 | * @return StaticAssert|float|null |
| 21982 | 22219 | */ |
| 21983 | 22220 | public static function sampleStaticAssert(): StaticAssert|float|null { |
| 21984 | - return StaticAssert::sample(); /*306:staticAssert*/ | |
| 22221 | + return StaticAssert::sample(); /*309:staticAssert*/ | |
| 21985 | 22222 | } |
| 21986 | 22223 | |
| 21987 | 22224 | /** |
| @@ -22057,7 +22294,7 @@ class TopLevel { | ||
| 22057 | 22294 | * @return StaticCast|float|null |
| 22058 | 22295 | */ |
| 22059 | 22296 | public static function sampleStaticCast(): StaticCast|float|null { |
| 22060 | - return StaticCast::sample(); /*307:staticCast*/ | |
| 22297 | + return StaticCast::sample(); /*310:staticCast*/ | |
| 22061 | 22298 | } |
| 22062 | 22299 | |
| 22063 | 22300 | /** |
| @@ -22133,7 +22370,7 @@ class TopLevel { | ||
| 22133 | 22370 | * @return StdDeserializer|float|null |
| 22134 | 22371 | */ |
| 22135 | 22372 | public static function sampleStdDeserializer(): StdDeserializer|float|null { |
| 22136 | - return StdDeserializer::sample(); /*308:stdDeserializer*/ | |
| 22373 | + return StdDeserializer::sample(); /*311:stdDeserializer*/ | |
| 22137 | 22374 | } |
| 22138 | 22375 | |
| 22139 | 22376 | /** |
| @@ -22209,7 +22446,7 @@ class TopLevel { | ||
| 22209 | 22446 | * @return StdSerializer|float|null |
| 22210 | 22447 | */ |
| 22211 | 22448 | public static function sampleStdSerializer(): StdSerializer|float|null { |
| 22212 | - return StdSerializer::sample(); /*309:stdSerializer*/ | |
| 22449 | + return StdSerializer::sample(); /*312:stdSerializer*/ | |
| 22213 | 22450 | } |
| 22214 | 22451 | |
| 22215 | 22452 | /** |
| @@ -22285,7 +22522,7 @@ class TopLevel { | ||
| 22285 | 22522 | * @return Strictfp|float|null |
| 22286 | 22523 | */ |
| 22287 | 22524 | public static function sampleStrictfp(): Strictfp|float|null { |
| 22288 | - return Strictfp::sample(); /*310:strictfp*/ | |
| 22525 | + return Strictfp::sample(); /*313:strictfp*/ | |
| 22289 | 22526 | } |
| 22290 | 22527 | |
| 22291 | 22528 | /** |
| @@ -22361,7 +22598,7 @@ class TopLevel { | ||
| 22361 | 22598 | * @return StringClass|float|null |
| 22362 | 22599 | */ |
| 22363 | 22600 | public static function sampleString(): StringClass|float|null { |
| 22364 | - return StringClass::sample(); /*311:string*/ | |
| 22601 | + return StringClass::sample(); /*314:string*/ | |
| 22365 | 22602 | } |
| 22366 | 22603 | |
| 22367 | 22604 | /** |
| @@ -22437,7 +22674,7 @@ class TopLevel { | ||
| 22437 | 22674 | * @return Struct|float|null |
| 22438 | 22675 | */ |
| 22439 | 22676 | public static function sampleStruct(): Struct|float|null { |
| 22440 | - return Struct::sample(); /*312:struct*/ | |
| 22677 | + return Struct::sample(); /*315:struct*/ | |
| 22441 | 22678 | } |
| 22442 | 22679 | |
| 22443 | 22680 | /** |
| @@ -22513,7 +22750,7 @@ class TopLevel { | ||
| 22513 | 22750 | * @return Subscript|float|null |
| 22514 | 22751 | */ |
| 22515 | 22752 | public static function sampleSubscript(): Subscript|float|null { |
| 22516 | - return Subscript::sample(); /*313:subscript*/ | |
| 22753 | + return Subscript::sample(); /*316:subscript*/ | |
| 22517 | 22754 | } |
| 22518 | 22755 | |
| 22519 | 22756 | /** |
| @@ -22589,7 +22826,7 @@ class TopLevel { | ||
| 22589 | 22826 | * @return Super|float|null |
| 22590 | 22827 | */ |
| 22591 | 22828 | public static function sampleSuper(): Super|float|null { |
| 22592 | - return Super::sample(); /*314:super*/ | |
| 22829 | + return Super::sample(); /*317:super*/ | |
| 22593 | 22830 | } |
| 22594 | 22831 | |
| 22595 | 22832 | /** |
| @@ -22665,7 +22902,7 @@ class TopLevel { | ||
| 22665 | 22902 | * @return SwitchClass|float|null |
| 22666 | 22903 | */ |
| 22667 | 22904 | public static function sampleSwitch(): SwitchClass|float|null { |
| 22668 | - return SwitchClass::sample(); /*315:switch*/ | |
| 22905 | + return SwitchClass::sample(); /*318:switch*/ | |
| 22669 | 22906 | } |
| 22670 | 22907 | |
| 22671 | 22908 | /** |
| @@ -22741,7 +22978,7 @@ class TopLevel { | ||
| 22741 | 22978 | * @return Symbol|float|null |
| 22742 | 22979 | */ |
| 22743 | 22980 | public static function sampleSymbol(): Symbol|float|null { |
| 22744 | - return Symbol::sample(); /*316:symbol*/ | |
| 22981 | + return Symbol::sample(); /*319:symbol*/ | |
| 22745 | 22982 | } |
| 22746 | 22983 | |
| 22747 | 22984 | /** |
| @@ -22817,7 +23054,7 @@ class TopLevel { | ||
| 22817 | 23054 | * @return Synchronized|float|null |
| 22818 | 23055 | */ |
| 22819 | 23056 | public static function sampleSynchronized(): Synchronized|float|null { |
| 22820 | - return Synchronized::sample(); /*317:synchronized*/ | |
| 23057 | + return Synchronized::sample(); /*320:synchronized*/ | |
| 22821 | 23058 | } |
| 22822 | 23059 | |
| 22823 | 23060 | /** |
| @@ -22893,7 +23130,7 @@ class TopLevel { | ||
| 22893 | 23130 | * @return System|float|null |
| 22894 | 23131 | */ |
| 22895 | 23132 | public static function sampleSystem(): System|float|null { |
| 22896 | - return System::sample(); /*318:system*/ | |
| 23133 | + return System::sample(); /*321:system*/ | |
| 22897 | 23134 | } |
| 22898 | 23135 | |
| 22899 | 23136 | /** |
| @@ -22969,7 +23206,7 @@ class TopLevel { | ||
| 22969 | 23206 | * @return Template|float|null |
| 22970 | 23207 | */ |
| 22971 | 23208 | public static function sampleTemplate(): Template|float|null { |
| 22972 | - return Template::sample(); /*319:template*/ | |
| 23209 | + return Template::sample(); /*322:template*/ | |
| 22973 | 23210 | } |
| 22974 | 23211 | |
| 22975 | 23212 | /** |
| @@ -23045,7 +23282,7 @@ class TopLevel { | ||
| 23045 | 23282 | * @return Then|float|null |
| 23046 | 23283 | */ |
| 23047 | 23284 | public static function sampleThen(): Then|float|null { |
| 23048 | - return Then::sample(); /*320:then*/ | |
| 23285 | + return Then::sample(); /*323:then*/ | |
| 23049 | 23286 | } |
| 23050 | 23287 | |
| 23051 | 23288 | /** |
| @@ -23121,7 +23358,7 @@ class TopLevel { | ||
| 23121 | 23358 | * @return This|float|null |
| 23122 | 23359 | */ |
| 23123 | 23360 | public static function sampleTopLevelThis(): This|float|null { |
| 23124 | - return This::sample(); /*321:topLevelThis*/ | |
| 23361 | + return This::sample(); /*324:topLevelThis*/ | |
| 23125 | 23362 | } |
| 23126 | 23363 | |
| 23127 | 23364 | /** |
| @@ -23197,7 +23434,7 @@ class TopLevel { | ||
| 23197 | 23434 | * @return ThreadLocal|float|null |
| 23198 | 23435 | */ |
| 23199 | 23436 | public static function sampleThreadLocal(): ThreadLocal|float|null { |
| 23200 | - return ThreadLocal::sample(); /*322:threadLocal*/ | |
| 23437 | + return ThreadLocal::sample(); /*325:threadLocal*/ | |
| 23201 | 23438 | } |
| 23202 | 23439 | |
| 23203 | 23440 | /** |
| @@ -23273,7 +23510,7 @@ class TopLevel { | ||
| 23273 | 23510 | * @return ThrowClass|float|null |
| 23274 | 23511 | */ |
| 23275 | 23512 | public static function sampleThrow(): ThrowClass|float|null { |
| 23276 | - return ThrowClass::sample(); /*323:throw*/ | |
| 23513 | + return ThrowClass::sample(); /*326:throw*/ | |
| 23277 | 23514 | } |
| 23278 | 23515 | |
| 23279 | 23516 | /** |
| @@ -23349,7 +23586,7 @@ class TopLevel { | ||
| 23349 | 23586 | * @return Throws|float|null |
| 23350 | 23587 | */ |
| 23351 | 23588 | public static function sampleThrows(): Throws|float|null { |
| 23352 | - return Throws::sample(); /*324:throws*/ | |
| 23589 | + return Throws::sample(); /*327:throws*/ | |
| 23353 | 23590 | } |
| 23354 | 23591 | |
| 23355 | 23592 | /** |
| @@ -23425,7 +23662,7 @@ class TopLevel { | ||
| 23425 | 23662 | * @return TimeOnly|float|null |
| 23426 | 23663 | */ |
| 23427 | 23664 | public static function sampleTimeOnly(): TimeOnly|float|null { |
| 23428 | - return TimeOnly::sample(); /*325:timeOnly*/ | |
| 23665 | + return TimeOnly::sample(); /*328:timeOnly*/ | |
| 23429 | 23666 | } |
| 23430 | 23667 | |
| 23431 | 23668 | /** |
| @@ -23501,7 +23738,7 @@ class TopLevel { | ||
| 23501 | 23738 | * @return TimeOnlyConverter|float|null |
| 23502 | 23739 | */ |
| 23503 | 23740 | public static function sampleTimeOnlyConverter(): TimeOnlyConverter|float|null { |
| 23504 | - return TimeOnlyConverter::sample(); /*326:timeOnlyConverter*/ | |
| 23741 | + return TimeOnlyConverter::sample(); /*329:timeOnlyConverter*/ | |
| 23505 | 23742 | } |
| 23506 | 23743 | |
| 23507 | 23744 | /** |
| @@ -23577,7 +23814,7 @@ class TopLevel { | ||
| 23577 | 23814 | * @return TimeZone|float|null |
| 23578 | 23815 | */ |
| 23579 | 23816 | public static function sampleTimeZone(): TimeZone|float|null { |
| 23580 | - return TimeZone::sample(); /*327:timeZone*/ | |
| 23817 | + return TimeZone::sample(); /*330:timeZone*/ | |
| 23581 | 23818 | } |
| 23582 | 23819 | |
| 23583 | 23820 | /** |
| @@ -23653,7 +23890,7 @@ class TopLevel { | ||
| 23653 | 23890 | * @return ToJSON|float|null |
| 23654 | 23891 | */ |
| 23655 | 23892 | public static function sampleToJSON(): ToJSON|float|null { |
| 23656 | - return ToJSON::sample(); /*328:toJSON*/ | |
| 23893 | + return ToJSON::sample(); /*331:toJSON*/ | |
| 23657 | 23894 | } |
| 23658 | 23895 | |
| 23659 | 23896 | /** |
| @@ -23729,7 +23966,7 @@ class TopLevel { | ||
| 23729 | 23966 | * @return TopLevelClass|float|null |
| 23730 | 23967 | */ |
| 23731 | 23968 | public static function sampleTopLevel(): TopLevelClass|float|null { |
| 23732 | - return TopLevelClass::sample(); /*329:topLevel*/ | |
| 23969 | + return TopLevelClass::sample(); /*332:topLevel*/ | |
| 23733 | 23970 | } |
| 23734 | 23971 | |
| 23735 | 23972 | /** |
| @@ -23805,7 +24042,7 @@ class TopLevel { | ||
| 23805 | 24042 | * @return ToString|float|null |
| 23806 | 24043 | */ |
| 23807 | 24044 | public static function sampleToString(): ToString|float|null { |
| 23808 | - return ToString::sample(); /*330:toString*/ | |
| 24045 | + return ToString::sample(); /*333:toString*/ | |
| 23809 | 24046 | } |
| 23810 | 24047 | |
| 23811 | 24048 | /** |
| @@ -23881,7 +24118,7 @@ class TopLevel { | ||
| 23881 | 24118 | * @return Transient|float|null |
| 23882 | 24119 | */ |
| 23883 | 24120 | public static function sampleTransient(): Transient|float|null { |
| 23884 | - return Transient::sample(); /*331:transient*/ | |
| 24121 | + return Transient::sample(); /*334:transient*/ | |
| 23885 | 24122 | } |
| 23886 | 24123 | |
| 23887 | 24124 | /** |
| @@ -23957,7 +24194,7 @@ class TopLevel { | ||
| 23957 | 24194 | * @return TrueClass|float|null |
| 23958 | 24195 | */ |
| 23959 | 24196 | public static function sampleTrue(): TrueClass|float|null { |
| 23960 | - return TrueClass::sample(); /*332:true*/ | |
| 24197 | + return TrueClass::sample(); /*335:true*/ | |
| 23961 | 24198 | } |
| 23962 | 24199 | |
| 23963 | 24200 | /** |
| @@ -24033,7 +24270,7 @@ class TopLevel { | ||
| 24033 | 24270 | * @return UnionTrueTrue|float|null |
| 24034 | 24271 | */ |
| 24035 | 24272 | public static function sampleTopLevelTrue(): UnionTrueTrue|float|null { |
| 24036 | - return UnionTrueTrue::sample(); /*333:topLevelTrue*/ | |
| 24273 | + return UnionTrueTrue::sample(); /*336:topLevelTrue*/ | |
| 24037 | 24274 | } |
| 24038 | 24275 | |
| 24039 | 24276 | /** |
| @@ -24109,7 +24346,7 @@ class TopLevel { | ||
| 24109 | 24346 | * @return TryClass|float|null |
| 24110 | 24347 | */ |
| 24111 | 24348 | public static function sampleTry(): TryClass|float|null { |
| 24112 | - return TryClass::sample(); /*334:try*/ | |
| 24349 | + return TryClass::sample(); /*337:try*/ | |
| 24113 | 24350 | } |
| 24114 | 24351 | |
| 24115 | 24352 | /** |
| @@ -24185,7 +24422,7 @@ class TopLevel { | ||
| 24185 | 24422 | * @return Type|float|null |
| 24186 | 24423 | */ |
| 24187 | 24424 | public static function sampleType(): Type|float|null { |
| 24188 | - return Type::sample(); /*335:type*/ | |
| 24425 | + return Type::sample(); /*338:type*/ | |
| 24189 | 24426 | } |
| 24190 | 24427 | |
| 24191 | 24428 | /** |
| @@ -24261,7 +24498,7 @@ class TopLevel { | ||
| 24261 | 24498 | * @return TypeClass|float|null |
| 24262 | 24499 | */ |
| 24263 | 24500 | public static function sampleTopLevelType(): TypeClass|float|null { |
| 24264 | - return TypeClass::sample(); /*336:topLevelType*/ | |
| 24501 | + return TypeClass::sample(); /*339:topLevelType*/ | |
| 24265 | 24502 | } |
| 24266 | 24503 | |
| 24267 | 24504 | /** |
| @@ -24337,7 +24574,7 @@ class TopLevel { | ||
| 24337 | 24574 | * @return Typealias|float|null |
| 24338 | 24575 | */ |
| 24339 | 24576 | public static function sampleTypealias(): Typealias|float|null { |
| 24340 | - return Typealias::sample(); /*337:typealias*/ | |
| 24577 | + return Typealias::sample(); /*340:typealias*/ | |
| 24341 | 24578 | } |
| 24342 | 24579 | |
| 24343 | 24580 | /** |
| @@ -24413,7 +24650,7 @@ class TopLevel { | ||
| 24413 | 24650 | * @return Typedef|float|null |
| 24414 | 24651 | */ |
| 24415 | 24652 | public static function sampleTypedef(): Typedef|float|null { |
| 24416 | - return Typedef::sample(); /*338:typedef*/ | |
| 24653 | + return Typedef::sample(); /*341:typedef*/ | |
| 24417 | 24654 | } |
| 24418 | 24655 | |
| 24419 | 24656 | /** |
| @@ -24489,7 +24726,7 @@ class TopLevel { | ||
| 24489 | 24726 | * @return Typeid|float|null |
| 24490 | 24727 | */ |
| 24491 | 24728 | public static function sampleTypeid(): Typeid|float|null { |
| 24492 | - return Typeid::sample(); /*339:typeid*/ | |
| 24729 | + return Typeid::sample(); /*342:typeid*/ | |
| 24493 | 24730 | } |
| 24494 | 24731 | |
| 24495 | 24732 | /** |
| @@ -24565,7 +24802,7 @@ class TopLevel { | ||
| 24565 | 24802 | * @return Typename|float|null |
| 24566 | 24803 | */ |
| 24567 | 24804 | public static function sampleTypename(): Typename|float|null { |
| 24568 | - return Typename::sample(); /*340:typename*/ | |
| 24805 | + return Typename::sample(); /*343:typename*/ | |
| 24569 | 24806 | } |
| 24570 | 24807 | |
| 24571 | 24808 | /** |
| @@ -24641,7 +24878,7 @@ class TopLevel { | ||
| 24641 | 24878 | * @return Typeof|float|null |
| 24642 | 24879 | */ |
| 24643 | 24880 | public static function sampleTypeof(): Typeof|float|null { |
| 24644 | - return Typeof::sample(); /*341:typeof*/ | |
| 24881 | + return Typeof::sample(); /*344:typeof*/ | |
| 24645 | 24882 | } |
| 24646 | 24883 | |
| 24647 | 24884 | /** |
| @@ -24717,7 +24954,7 @@ class TopLevel { | ||
| 24717 | 24954 | * @return Uint|float|null |
| 24718 | 24955 | */ |
| 24719 | 24956 | public static function sampleUint(): Uint|float|null { |
| 24720 | - return Uint::sample(); /*342:uint*/ | |
| 24957 | + return Uint::sample(); /*345:uint*/ | |
| 24721 | 24958 | } |
| 24722 | 24959 | |
| 24723 | 24960 | /** |
| @@ -24793,7 +25030,7 @@ class TopLevel { | ||
| 24793 | 25030 | * @return Ulong|float|null |
| 24794 | 25031 | */ |
| 24795 | 25032 | public static function sampleUlong(): Ulong|float|null { |
| 24796 | - return Ulong::sample(); /*343:ulong*/ | |
| 25033 | + return Ulong::sample(); /*346:ulong*/ | |
| 24797 | 25034 | } |
| 24798 | 25035 | |
| 24799 | 25036 | /** |
| @@ -24869,7 +25106,7 @@ class TopLevel { | ||
| 24869 | 25106 | * @return Unchecked|float|null |
| 24870 | 25107 | */ |
| 24871 | 25108 | public static function sampleUnchecked(): Unchecked|float|null { |
| 24872 | - return Unchecked::sample(); /*344:unchecked*/ | |
| 25109 | + return Unchecked::sample(); /*347:unchecked*/ | |
| 24873 | 25110 | } |
| 24874 | 25111 | |
| 24875 | 25112 | /** |
| @@ -24945,7 +25182,7 @@ class TopLevel { | ||
| 24945 | 25182 | * @return Undefined|float|null |
| 24946 | 25183 | */ |
| 24947 | 25184 | public static function sampleUndefined(): Undefined|float|null { |
| 24948 | - return Undefined::sample(); /*345:undefined*/ | |
| 25185 | + return Undefined::sample(); /*348:undefined*/ | |
| 24949 | 25186 | } |
| 24950 | 25187 | |
| 24951 | 25188 | /** |
| @@ -25021,7 +25258,7 @@ class TopLevel { | ||
| 25021 | 25258 | * @return UnionClass|float|null |
| 25022 | 25259 | */ |
| 25023 | 25260 | public static function sampleUnion(): UnionClass|float|null { |
| 25024 | - return UnionClass::sample(); /*346:union*/ | |
| 25261 | + return UnionClass::sample(); /*349:union*/ | |
| 25025 | 25262 | } |
| 25026 | 25263 | |
| 25027 | 25264 | /** |
| @@ -25097,7 +25334,7 @@ class TopLevel { | ||
| 25097 | 25334 | * @return Unowned|float|null |
| 25098 | 25335 | */ |
| 25099 | 25336 | public static function sampleUnowned(): Unowned|float|null { |
| 25100 | - return Unowned::sample(); /*347:unowned*/ | |
| 25337 | + return Unowned::sample(); /*350:unowned*/ | |
| 25101 | 25338 | } |
| 25102 | 25339 | |
| 25103 | 25340 | /** |
| @@ -25173,7 +25410,7 @@ class TopLevel { | ||
| 25173 | 25410 | * @return Unsafe|float|null |
| 25174 | 25411 | */ |
| 25175 | 25412 | public static function sampleUnsafe(): Unsafe|float|null { |
| 25176 | - return Unsafe::sample(); /*348:unsafe*/ | |
| 25413 | + return Unsafe::sample(); /*351:unsafe*/ | |
| 25177 | 25414 | } |
| 25178 | 25415 | |
| 25179 | 25416 | /** |
| @@ -25249,7 +25486,7 @@ class TopLevel { | ||
| 25249 | 25486 | * @return Unsigned|float|null |
| 25250 | 25487 | */ |
| 25251 | 25488 | public static function sampleUnsigned(): Unsigned|float|null { |
| 25252 | - return Unsigned::sample(); /*349:unsigned*/ | |
| 25489 | + return Unsigned::sample(); /*352:unsigned*/ | |
| 25253 | 25490 | } |
| 25254 | 25491 | |
| 25255 | 25492 | /** |
| @@ -25325,7 +25562,7 @@ class TopLevel { | ||
| 25325 | 25562 | * @return UseSerializers|float|null |
| 25326 | 25563 | */ |
| 25327 | 25564 | public static function sampleUseSerializers(): UseSerializers|float|null { |
| 25328 | - return UseSerializers::sample(); /*350:useSerializers*/ | |
| 25565 | + return UseSerializers::sample(); /*353:useSerializers*/ | |
| 25329 | 25566 | } |
| 25330 | 25567 | |
| 25331 | 25568 | /** |
| @@ -25401,7 +25638,7 @@ class TopLevel { | ||
| 25401 | 25638 | * @return Ushort|float|null |
| 25402 | 25639 | */ |
| 25403 | 25640 | public static function sampleUshort(): Ushort|float|null { |
| 25404 | - return Ushort::sample(); /*351:ushort*/ | |
| 25641 | + return Ushort::sample(); /*354:ushort*/ | |
| 25405 | 25642 | } |
| 25406 | 25643 | |
| 25407 | 25644 | /** |
| @@ -25477,7 +25714,7 @@ class TopLevel { | ||
| 25477 | 25714 | * @return Using|float|null |
| 25478 | 25715 | */ |
| 25479 | 25716 | public static function sampleUsing(): Using|float|null { |
| 25480 | - return Using::sample(); /*352:using*/ | |
| 25717 | + return Using::sample(); /*355:using*/ | |
| 25481 | 25718 | } |
| 25482 | 25719 | |
| 25483 | 25720 | /** |
| @@ -25553,7 +25790,7 @@ class TopLevel { | ||
| 25553 | 25790 | * @return Utf8JSONReader|float|null |
| 25554 | 25791 | */ |
| 25555 | 25792 | public static function sampleUtf8JSONReader(): Utf8JSONReader|float|null { |
| 25556 | - return Utf8JSONReader::sample(); /*353:utf8JSONReader*/ | |
| 25793 | + return Utf8JSONReader::sample(); /*356:utf8JSONReader*/ | |
| 25557 | 25794 | } |
| 25558 | 25795 | |
| 25559 | 25796 | /** |
| @@ -25629,7 +25866,7 @@ class TopLevel { | ||
| 25629 | 25866 | * @return Utf8JSONWriter|float|null |
| 25630 | 25867 | */ |
| 25631 | 25868 | public static function sampleUtf8JSONWriter(): Utf8JSONWriter|float|null { |
| 25632 | - return Utf8JSONWriter::sample(); /*354:utf8JSONWriter*/ | |
| 25869 | + return Utf8JSONWriter::sample(); /*357:utf8JSONWriter*/ | |
| 25633 | 25870 | } |
| 25634 | 25871 | |
| 25635 | 25872 | /** |
| @@ -25705,7 +25942,7 @@ class TopLevel { | ||
| 25705 | 25942 | * @return UUID|float|null |
| 25706 | 25943 | */ |
| 25707 | 25944 | public static function sampleUUID(): UUID|float|null { |
| 25708 | - return UUID::sample(); /*355:uuid*/ | |
| 25945 | + return UUID::sample(); /*358:uuid*/ | |
| 25709 | 25946 | } |
| 25710 | 25947 | |
| 25711 | 25948 | /** |
| @@ -25781,7 +26018,7 @@ class TopLevel { | ||
| 25781 | 26018 | * @return VarClass|float|null |
| 25782 | 26019 | */ |
| 25783 | 26020 | public static function sampleVar(): VarClass|float|null { |
| 25784 | - return VarClass::sample(); /*356:var*/ | |
| 26021 | + return VarClass::sample(); /*359:var*/ | |
| 25785 | 26022 | } |
| 25786 | 26023 | |
| 25787 | 26024 | /** |
| @@ -25857,7 +26094,7 @@ class TopLevel { | ||
| 25857 | 26094 | * @return Virtual|float|null |
| 25858 | 26095 | */ |
| 25859 | 26096 | public static function sampleVirtual(): Virtual|float|null { |
| 25860 | - return Virtual::sample(); /*357:virtual*/ | |
| 26097 | + return Virtual::sample(); /*360:virtual*/ | |
| 25861 | 26098 | } |
| 25862 | 26099 | |
| 25863 | 26100 | /** |
| @@ -25933,7 +26170,7 @@ class TopLevel { | ||
| 25933 | 26170 | * @return VoidClass|float|null |
| 25934 | 26171 | */ |
| 25935 | 26172 | public static function sampleVoid(): VoidClass|float|null { |
| 25936 | - return VoidClass::sample(); /*358:void*/ | |
| 26173 | + return VoidClass::sample(); /*361:void*/ | |
| 25937 | 26174 | } |
| 25938 | 26175 | |
| 25939 | 26176 | /** |
| @@ -26009,7 +26246,7 @@ class TopLevel { | ||
| 26009 | 26246 | * @return Volatile|float|null |
| 26010 | 26247 | */ |
| 26011 | 26248 | public static function sampleVolatile(): Volatile|float|null { |
| 26012 | - return Volatile::sample(); /*359:volatile*/ | |
| 26249 | + return Volatile::sample(); /*362:volatile*/ | |
| 26013 | 26250 | } |
| 26014 | 26251 | |
| 26015 | 26252 | /** |
| @@ -26085,7 +26322,7 @@ class TopLevel { | ||
| 26085 | 26322 | * @return WcharT|float|null |
| 26086 | 26323 | */ |
| 26087 | 26324 | public static function sampleWcharT(): WcharT|float|null { |
| 26088 | - return WcharT::sample(); /*360:wcharT*/ | |
| 26325 | + return WcharT::sample(); /*363:wcharT*/ | |
| 26089 | 26326 | } |
| 26090 | 26327 | |
| 26091 | 26328 | /** |
| @@ -26161,7 +26398,7 @@ class TopLevel { | ||
| 26161 | 26398 | * @return Weak|float|null |
| 26162 | 26399 | */ |
| 26163 | 26400 | public static function sampleWeak(): Weak|float|null { |
| 26164 | - return Weak::sample(); /*361:weak*/ | |
| 26401 | + return Weak::sample(); /*364:weak*/ | |
| 26165 | 26402 | } |
| 26166 | 26403 | |
| 26167 | 26404 | /** |
| @@ -26237,7 +26474,7 @@ class TopLevel { | ||
| 26237 | 26474 | * @return Where|float|null |
| 26238 | 26475 | */ |
| 26239 | 26476 | public static function sampleWhere(): Where|float|null { |
| 26240 | - return Where::sample(); /*362:where*/ | |
| 26477 | + return Where::sample(); /*365:where*/ | |
| 26241 | 26478 | } |
| 26242 | 26479 | |
| 26243 | 26480 | /** |
| @@ -26313,7 +26550,7 @@ class TopLevel { | ||
| 26313 | 26550 | * @return WhileClass|float|null |
| 26314 | 26551 | */ |
| 26315 | 26552 | public static function sampleWhile(): WhileClass|float|null { |
| 26316 | - return WhileClass::sample(); /*363:while*/ | |
| 26553 | + return WhileClass::sample(); /*366:while*/ | |
| 26317 | 26554 | } |
| 26318 | 26555 | |
| 26319 | 26556 | /** |
| @@ -26389,7 +26626,7 @@ class TopLevel { | ||
| 26389 | 26626 | * @return WillSet|float|null |
| 26390 | 26627 | */ |
| 26391 | 26628 | public static function sampleWillSet(): WillSet|float|null { |
| 26392 | - return WillSet::sample(); /*364:willSet*/ | |
| 26629 | + return WillSet::sample(); /*367:willSet*/ | |
| 26393 | 26630 | } |
| 26394 | 26631 | |
| 26395 | 26632 | /** |
| @@ -26465,7 +26702,7 @@ class TopLevel { | ||
| 26465 | 26702 | * @return With|float|null |
| 26466 | 26703 | */ |
| 26467 | 26704 | public static function sampleWith(): With|float|null { |
| 26468 | - return With::sample(); /*365:with*/ | |
| 26705 | + return With::sample(); /*368:with*/ | |
| 26469 | 26706 | } |
| 26470 | 26707 | |
| 26471 | 26708 | /** |
| @@ -26541,7 +26778,7 @@ class TopLevel { | ||
| 26541 | 26778 | * @return XorClass|float|null |
| 26542 | 26779 | */ |
| 26543 | 26780 | public static function sampleXor(): XorClass|float|null { |
| 26544 | - return XorClass::sample(); /*366:xor*/ | |
| 26781 | + return XorClass::sample(); /*369:xor*/ | |
| 26545 | 26782 | } |
| 26546 | 26783 | |
| 26547 | 26784 | /** |
| @@ -26617,7 +26854,7 @@ class TopLevel { | ||
| 26617 | 26854 | * @return XorEq|float|null |
| 26618 | 26855 | */ |
| 26619 | 26856 | public static function sampleXorEq(): XorEq|float|null { |
| 26620 | - return XorEq::sample(); /*367:xorEq*/ | |
| 26857 | + return XorEq::sample(); /*370:xorEq*/ | |
| 26621 | 26858 | } |
| 26622 | 26859 | |
| 26623 | 26860 | /** |
| @@ -26693,7 +26930,7 @@ class TopLevel { | ||
| 26693 | 26930 | * @return Yes|float|null |
| 26694 | 26931 | */ |
| 26695 | 26932 | public static function sampleYes(): Yes|float|null { |
| 26696 | - return Yes::sample(); /*368:yes*/ | |
| 26933 | + return Yes::sample(); /*371:yes*/ | |
| 26697 | 26934 | } |
| 26698 | 26935 | |
| 26699 | 26936 | /** |
| @@ -26769,7 +27006,7 @@ class TopLevel { | ||
| 26769 | 27006 | * @return YieldClass|float|null |
| 26770 | 27007 | */ |
| 26771 | 27008 | public static function sampleYield(): YieldClass|float|null { |
| 26772 | - return YieldClass::sample(); /*369:yield*/ | |
| 27009 | + return YieldClass::sample(); /*372:yield*/ | |
| 26773 | 27010 | } |
| 26774 | 27011 | |
| 26775 | 27012 | /** |
| @@ -26955,6 +27192,7 @@ class TopLevel { | ||
| 26955 | 27192 | || TopLevel::validateLeft($this->left) |
| 26956 | 27193 | || TopLevel::validateLet($this->let) |
| 26957 | 27194 | || TopLevel::validateList($this->list) |
| 27195 | + || TopLevel::validateLocalDate($this->localDate) | |
| 26958 | 27196 | || TopLevel::validateLocale($this->locale) |
| 26959 | 27197 | || TopLevel::validateLock($this->lock) |
| 26960 | 27198 | || TopLevel::validateLong($this->long) |
| @@ -26989,6 +27227,8 @@ class TopLevel { | ||
| 26989 | 27227 | || TopLevel::validateObject($this->object) |
| 26990 | 27228 | || TopLevel::validateObjectMapper($this->objectMapper) |
| 26991 | 27229 | || TopLevel::validateOf($this->of) |
| 27230 | + || TopLevel::validateOffsetDateTime($this->offsetDateTime) | |
| 27231 | + || TopLevel::validateOffsetTime($this->offsetTime) | |
| 26992 | 27232 | || TopLevel::validateOneway($this->oneway) |
| 26993 | 27233 | || TopLevel::validateOpen($this->open) |
| 26994 | 27234 | || TopLevel::validateOperator($this->operator) |
| @@ -27302,6 +27542,7 @@ class TopLevel { | ||
| 27302 | 27542 | $out->{'left'} = $this->toLeft(); |
| 27303 | 27543 | $out->{'let'} = $this->toLet(); |
| 27304 | 27544 | $out->{'list'} = $this->toList(); |
| 27545 | + $out->{'LocalDate'} = $this->toLocalDate(); | |
| 27305 | 27546 | $out->{'Locale'} = $this->toLocale(); |
| 27306 | 27547 | $out->{'lock'} = $this->toLock(); |
| 27307 | 27548 | $out->{'long'} = $this->toLong(); |
| @@ -27336,6 +27577,8 @@ class TopLevel { | ||
| 27336 | 27577 | $out->{'object'} = $this->toObject(); |
| 27337 | 27578 | $out->{'ObjectMapper'} = $this->toObjectMapper(); |
| 27338 | 27579 | $out->{'of'} = $this->toOf(); |
| 27580 | + $out->{'OffsetDateTime'} = $this->toOffsetDateTime(); | |
| 27581 | + $out->{'OffsetTime'} = $this->toOffsetTime(); | |
| 27339 | 27582 | $out->{'oneway'} = $this->toOneway(); |
| 27340 | 27583 | $out->{'open'} = $this->toOpen(); |
| 27341 | 27584 | $out->{'operator'} = $this->toOperator(); |
| @@ -27651,6 +27894,7 @@ class TopLevel { | ||
| 27651 | 27894 | ,TopLevel::fromLeft($obj->{'left'}) |
| 27652 | 27895 | ,TopLevel::fromLet($obj->{'let'}) |
| 27653 | 27896 | ,TopLevel::fromList($obj->{'list'}) |
| 27897 | + ,TopLevel::fromLocalDate($obj->{'LocalDate'}) | |
| 27654 | 27898 | ,TopLevel::fromLocale($obj->{'Locale'}) |
| 27655 | 27899 | ,TopLevel::fromLock($obj->{'lock'}) |
| 27656 | 27900 | ,TopLevel::fromLong($obj->{'long'}) |
| @@ -27685,6 +27929,8 @@ class TopLevel { | ||
| 27685 | 27929 | ,TopLevel::fromObject($obj->{'object'}) |
| 27686 | 27930 | ,TopLevel::fromObjectMapper($obj->{'ObjectMapper'}) |
| 27687 | 27931 | ,TopLevel::fromOf($obj->{'of'}) |
| 27932 | + ,TopLevel::fromOffsetDateTime($obj->{'OffsetDateTime'}) | |
| 27933 | + ,TopLevel::fromOffsetTime($obj->{'OffsetTime'}) | |
| 27688 | 27934 | ,TopLevel::fromOneway($obj->{'oneway'}) |
| 27689 | 27935 | ,TopLevel::fromOpen($obj->{'open'}) |
| 27690 | 27936 | ,TopLevel::fromOperator($obj->{'operator'}) |
| @@ -27998,6 +28244,7 @@ class TopLevel { | ||
| 27998 | 28244 | ,TopLevel::sampleLeft() |
| 27999 | 28245 | ,TopLevel::sampleLet() |
| 28000 | 28246 | ,TopLevel::sampleList() |
| 28247 | + ,TopLevel::sampleLocalDate() | |
| 28001 | 28248 | ,TopLevel::sampleLocale() |
| 28002 | 28249 | ,TopLevel::sampleLock() |
| 28003 | 28250 | ,TopLevel::sampleLong() |
| @@ -28032,6 +28279,8 @@ class TopLevel { | ||
| 28032 | 28279 | ,TopLevel::sampleObject() |
| 28033 | 28280 | ,TopLevel::sampleObjectMapper() |
| 28034 | 28281 | ,TopLevel::sampleOf() |
| 28282 | + ,TopLevel::sampleOffsetDateTime() | |
| 28283 | + ,TopLevel::sampleOffsetTime() | |
| 28035 | 28284 | ,TopLevel::sampleOneway() |
| 28036 | 28285 | ,TopLevel::sampleOpen() |
| 28037 | 28286 | ,TopLevel::sampleOperator() |
| @@ -35903,6 +36152,51 @@ class ListClass { | ||
| 35903 | 36152 | } |
| 35904 | 36153 | } |
| 35905 | 36154 | |
| 36155 | +// This is an autogenerated file:LocalDate | |
| 36156 | + | |
| 36157 | +class LocalDate { | |
| 36158 | + | |
| 36159 | + /** | |
| 36160 | + */ | |
| 36161 | + public function __construct() { | |
| 36162 | + } | |
| 36163 | + | |
| 36164 | + /** | |
| 36165 | + * @throws Exception | |
| 36166 | + * @return bool | |
| 36167 | + */ | |
| 36168 | + public function validate(): bool { | |
| 36169 | + return true; | |
| 36170 | + } | |
| 36171 | + | |
| 36172 | + /** | |
| 36173 | + * @return stdClass | |
| 36174 | + * @throws Exception | |
| 36175 | + */ | |
| 36176 | + public function to(): stdClass { | |
| 36177 | + $out = new stdClass(); | |
| 36178 | + return $out; | |
| 36179 | + } | |
| 36180 | + | |
| 36181 | + /** | |
| 36182 | + * @param stdClass $obj | |
| 36183 | + * @return LocalDate | |
| 36184 | + * @throws Exception | |
| 36185 | + */ | |
| 36186 | + public static function from(stdClass $obj): LocalDate { | |
| 36187 | + return new LocalDate( | |
| 36188 | + ); | |
| 36189 | + } | |
| 36190 | + | |
| 36191 | + /** | |
| 36192 | + * @return LocalDate | |
| 36193 | + */ | |
| 36194 | + public static function sample(): LocalDate { | |
| 36195 | + return new LocalDate( | |
| 36196 | + ); | |
| 36197 | + } | |
| 36198 | +} | |
| 36199 | + | |
| 35906 | 36200 | // This is an autogenerated file:LocaleClass |
| 35907 | 36201 | |
| 35908 | 36202 | class LocaleClass { |
| @@ -37343,6 +37637,96 @@ class Of { | ||
| 37343 | 37637 | } |
| 37344 | 37638 | } |
| 37345 | 37639 | |
| 37640 | +// This is an autogenerated file:OffsetDateTime | |
| 37641 | + | |
| 37642 | +class OffsetDateTime { | |
| 37643 | + | |
| 37644 | + /** | |
| 37645 | + */ | |
| 37646 | + public function __construct() { | |
| 37647 | + } | |
| 37648 | + | |
| 37649 | + /** | |
| 37650 | + * @throws Exception | |
| 37651 | + * @return bool | |
| 37652 | + */ | |
| 37653 | + public function validate(): bool { | |
| 37654 | + return true; | |
| 37655 | + } | |
| 37656 | + | |
| 37657 | + /** | |
| 37658 | + * @return stdClass | |
| 37659 | + * @throws Exception | |
| 37660 | + */ | |
| 37661 | + public function to(): stdClass { | |
| 37662 | + $out = new stdClass(); | |
| 37663 | + return $out; | |
| 37664 | + } | |
| 37665 | + | |
| 37666 | + /** | |
| 37667 | + * @param stdClass $obj | |
| 37668 | + * @return OffsetDateTime | |
| 37669 | + * @throws Exception | |
| 37670 | + */ | |
| 37671 | + public static function from(stdClass $obj): OffsetDateTime { | |
| 37672 | + return new OffsetDateTime( | |
| 37673 | + ); | |
| 37674 | + } | |
| 37675 | + | |
| 37676 | + /** | |
| 37677 | + * @return OffsetDateTime | |
| 37678 | + */ | |
| 37679 | + public static function sample(): OffsetDateTime { | |
| 37680 | + return new OffsetDateTime( | |
| 37681 | + ); | |
| 37682 | + } | |
| 37683 | +} | |
| 37684 | + | |
| 37685 | +// This is an autogenerated file:OffsetTime | |
| 37686 | + | |
| 37687 | +class OffsetTime { | |
| 37688 | + | |
| 37689 | + /** | |
| 37690 | + */ | |
| 37691 | + public function __construct() { | |
| 37692 | + } | |
| 37693 | + | |
| 37694 | + /** | |
| 37695 | + * @throws Exception | |
| 37696 | + * @return bool | |
| 37697 | + */ | |
| 37698 | + public function validate(): bool { | |
| 37699 | + return true; | |
| 37700 | + } | |
| 37701 | + | |
| 37702 | + /** | |
| 37703 | + * @return stdClass | |
| 37704 | + * @throws Exception | |
| 37705 | + */ | |
| 37706 | + public function to(): stdClass { | |
| 37707 | + $out = new stdClass(); | |
| 37708 | + return $out; | |
| 37709 | + } | |
| 37710 | + | |
| 37711 | + /** | |
| 37712 | + * @param stdClass $obj | |
| 37713 | + * @return OffsetTime | |
| 37714 | + * @throws Exception | |
| 37715 | + */ | |
| 37716 | + public static function from(stdClass $obj): OffsetTime { | |
| 37717 | + return new OffsetTime( | |
| 37718 | + ); | |
| 37719 | + } | |
| 37720 | + | |
| 37721 | + /** | |
| 37722 | + * @return OffsetTime | |
| 37723 | + */ | |
| 37724 | + public static function sample(): OffsetTime { | |
| 37725 | + return new OffsetTime( | |
| 37726 | + ); | |
| 37727 | + } | |
| 37728 | +} | |
| 37729 | + | |
| 37346 | 37730 | // This is an autogenerated file:Oneway |
| 37347 | 37731 | |
| 37348 | 37732 | class Oneway { |
Mschema-pikedefault / TopLevel.pmod+78 −0
| @@ -191,6 +191,7 @@ class TopLevel { | ||
| 191 | 191 | UnionLeft left; // json: "left" |
| 192 | 192 | UnionLet let; // json: "let" |
| 193 | 193 | UnionList list; // json: "list" |
| 194 | + UnionLocalDate local_date; // json: "LocalDate" | |
| 194 | 195 | UnionLocale locale; // json: "Locale" |
| 195 | 196 | UnionLock lock; // json: "lock" |
| 196 | 197 | UnionLong long; // json: "long" |
| @@ -225,6 +226,8 @@ class TopLevel { | ||
| 225 | 226 | UnionObject top_level_object; // json: "object" |
| 226 | 227 | UnionObjectMapper object_mapper; // json: "ObjectMapper" |
| 227 | 228 | UnionOf of; // json: "of" |
| 229 | + UnionOffsetDateTime offset_date_time; // json: "OffsetDateTime" | |
| 230 | + UnionOffsetTime offset_time; // json: "OffsetTime" | |
| 228 | 231 | UnionOneway oneway; // json: "oneway" |
| 229 | 232 | UnionOpen open; // json: "open" |
| 230 | 233 | UnionOperator operator; // json: "operator" |
| @@ -533,6 +536,7 @@ class TopLevel { | ||
| 533 | 536 | "left" : left, |
| 534 | 537 | "let" : let, |
| 535 | 538 | "list" : list, |
| 539 | + "LocalDate" : local_date, | |
| 536 | 540 | "Locale" : locale, |
| 537 | 541 | "lock" : lock, |
| 538 | 542 | "long" : long, |
| @@ -567,6 +571,8 @@ class TopLevel { | ||
| 567 | 571 | "object" : top_level_object, |
| 568 | 572 | "ObjectMapper" : object_mapper, |
| 569 | 573 | "of" : of, |
| 574 | + "OffsetDateTime" : offset_date_time, | |
| 575 | + "OffsetTime" : offset_time, | |
| 570 | 576 | "oneway" : oneway, |
| 571 | 577 | "open" : open, |
| 572 | 578 | "operator" : operator, |
| @@ -1058,6 +1064,8 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 1058 | 1064 | retval.let = json["let"]; |
| 1059 | 1065 | if (arrayp(json["list"])) error("Unexpected array"); |
| 1060 | 1066 | retval.list = json["list"]; |
| 1067 | + if (arrayp(json["LocalDate"])) error("Unexpected array"); | |
| 1068 | + retval.local_date = json["LocalDate"]; | |
| 1061 | 1069 | if (arrayp(json["Locale"])) error("Unexpected array"); |
| 1062 | 1070 | retval.locale = json["Locale"]; |
| 1063 | 1071 | if (arrayp(json["lock"])) error("Unexpected array"); |
| @@ -1126,6 +1134,10 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 1126 | 1134 | retval.object_mapper = json["ObjectMapper"]; |
| 1127 | 1135 | if (arrayp(json["of"])) error("Unexpected array"); |
| 1128 | 1136 | retval.of = json["of"]; |
| 1137 | + if (arrayp(json["OffsetDateTime"])) error("Unexpected array"); | |
| 1138 | + retval.offset_date_time = json["OffsetDateTime"]; | |
| 1139 | + if (arrayp(json["OffsetTime"])) error("Unexpected array"); | |
| 1140 | + retval.offset_time = json["OffsetTime"]; | |
| 1129 | 1141 | if (arrayp(json["oneway"])) error("Unexpected array"); |
| 1130 | 1142 | retval.oneway = json["oneway"]; |
| 1131 | 1143 | if (arrayp(json["open"])) error("Unexpected array"); |
| @@ -4640,6 +4652,28 @@ List List_from_JSON(mixed json) { | ||
| 4640 | 4652 | return retval; |
| 4641 | 4653 | } |
| 4642 | 4654 | |
| 4655 | +typedef float|LocalDate UnionLocalDate; | |
| 4656 | + | |
| 4657 | +UnionLocalDate UnionLocalDate_from_JSON(mixed json) { | |
| 4658 | + return json; | |
| 4659 | +} | |
| 4660 | + | |
| 4661 | +class LocalDate { | |
| 4662 | + | |
| 4663 | + string encode_json() { | |
| 4664 | + mapping(string:mixed) json = ([ | |
| 4665 | + ]); | |
| 4666 | + | |
| 4667 | + return Standards.JSON.encode(json); | |
| 4668 | + } | |
| 4669 | +} | |
| 4670 | + | |
| 4671 | +LocalDate LocalDate_from_JSON(mixed json) { | |
| 4672 | + LocalDate retval = LocalDate(); | |
| 4673 | + | |
| 4674 | + return retval; | |
| 4675 | +} | |
| 4676 | + | |
| 4643 | 4677 | typedef float|Locale UnionLocale; |
| 4644 | 4678 | |
| 4645 | 4679 | UnionLocale UnionLocale_from_JSON(mixed json) { |
| @@ -5322,6 +5356,50 @@ Of Of_from_JSON(mixed json) { | ||
| 5322 | 5356 | return retval; |
| 5323 | 5357 | } |
| 5324 | 5358 | |
| 5359 | +typedef float|OffsetDateTime UnionOffsetDateTime; | |
| 5360 | + | |
| 5361 | +UnionOffsetDateTime UnionOffsetDateTime_from_JSON(mixed json) { | |
| 5362 | + return json; | |
| 5363 | +} | |
| 5364 | + | |
| 5365 | +class OffsetDateTime { | |
| 5366 | + | |
| 5367 | + string encode_json() { | |
| 5368 | + mapping(string:mixed) json = ([ | |
| 5369 | + ]); | |
| 5370 | + | |
| 5371 | + return Standards.JSON.encode(json); | |
| 5372 | + } | |
| 5373 | +} | |
| 5374 | + | |
| 5375 | +OffsetDateTime OffsetDateTime_from_JSON(mixed json) { | |
| 5376 | + OffsetDateTime retval = OffsetDateTime(); | |
| 5377 | + | |
| 5378 | + return retval; | |
| 5379 | +} | |
| 5380 | + | |
| 5381 | +typedef float|OffsetTime UnionOffsetTime; | |
| 5382 | + | |
| 5383 | +UnionOffsetTime UnionOffsetTime_from_JSON(mixed json) { | |
| 5384 | + return json; | |
| 5385 | +} | |
| 5386 | + | |
| 5387 | +class OffsetTime { | |
| 5388 | + | |
| 5389 | + string encode_json() { | |
| 5390 | + mapping(string:mixed) json = ([ | |
| 5391 | + ]); | |
| 5392 | + | |
| 5393 | + return Standards.JSON.encode(json); | |
| 5394 | + } | |
| 5395 | +} | |
| 5396 | + | |
| 5397 | +OffsetTime OffsetTime_from_JSON(mixed json) { | |
| 5398 | + OffsetTime retval = OffsetTime(); | |
| 5399 | + | |
| 5400 | + return retval; | |
| 5401 | +} | |
| 5402 | + | |
| 5325 | 5403 | typedef float|Oneway UnionOneway; |
| 5326 | 5404 | |
| 5327 | 5405 | UnionOneway UnionOneway_from_JSON(mixed json) { |
Mschema-pythondefault / quicktype.py+55 −1
| @@ -2092,6 +2092,20 @@ class ListClass: | ||
| 2092 | 2092 | return result |
| 2093 | 2093 | |
| 2094 | 2094 | |
| 2095 | +@dataclass | |
| 2096 | +class LocalDate: | |
| 2097 | + pass | |
| 2098 | + | |
| 2099 | + @staticmethod | |
| 2100 | + def from_dict(obj: Any) -> 'LocalDate': | |
| 2101 | + assert isinstance(obj, dict) | |
| 2102 | + return LocalDate() | |
| 2103 | + | |
| 2104 | + def to_dict(self) -> dict: | |
| 2105 | + result: dict = {} | |
| 2106 | + return result | |
| 2107 | + | |
| 2108 | + | |
| 2095 | 2109 | @dataclass |
| 2096 | 2110 | class Locale: |
| 2097 | 2111 | pass |
| @@ -2512,6 +2526,34 @@ class Of: | ||
| 2512 | 2526 | return result |
| 2513 | 2527 | |
| 2514 | 2528 | |
| 2529 | +@dataclass | |
| 2530 | +class OffsetDateTime: | |
| 2531 | + pass | |
| 2532 | + | |
| 2533 | + @staticmethod | |
| 2534 | + def from_dict(obj: Any) -> 'OffsetDateTime': | |
| 2535 | + assert isinstance(obj, dict) | |
| 2536 | + return OffsetDateTime() | |
| 2537 | + | |
| 2538 | + def to_dict(self) -> dict: | |
| 2539 | + result: dict = {} | |
| 2540 | + return result | |
| 2541 | + | |
| 2542 | + | |
| 2543 | +@dataclass | |
| 2544 | +class OffsetTime: | |
| 2545 | + pass | |
| 2546 | + | |
| 2547 | + @staticmethod | |
| 2548 | + def from_dict(obj: Any) -> 'OffsetTime': | |
| 2549 | + assert isinstance(obj, dict) | |
| 2550 | + return OffsetTime() | |
| 2551 | + | |
| 2552 | + def to_dict(self) -> dict: | |
| 2553 | + result: dict = {} | |
| 2554 | + return result | |
| 2555 | + | |
| 2556 | + | |
| 2515 | 2557 | @dataclass |
| 2516 | 2558 | class Oneway: |
| 2517 | 2559 | pass |
| @@ -4946,6 +4988,7 @@ class TopLevel: | ||
| 4946 | 4988 | left: float | Left | None = None |
| 4947 | 4989 | let: float | Let | None = None |
| 4948 | 4990 | list: float | ListClass | None = None |
| 4991 | + local_date: float | LocalDate | None = None | |
| 4949 | 4992 | locale: float | Locale | None = None |
| 4950 | 4993 | lock: float | Lock | None = None |
| 4951 | 4994 | long: float | Long | None = None |
| @@ -4980,6 +5023,8 @@ class TopLevel: | ||
| 4980 | 5023 | object: float | Object | None = None |
| 4981 | 5024 | object_mapper: float | ObjectMapper | None = None |
| 4982 | 5025 | of: float | Of | None = None |
| 5026 | + offset_date_time: float | OffsetDateTime | None = None | |
| 5027 | + offset_time: float | OffsetTime | None = None | |
| 4983 | 5028 | oneway: float | Oneway | None = None |
| 4984 | 5029 | open: float | Open | None = None |
| 4985 | 5030 | operator: float | Operator | None = None |
| @@ -5289,6 +5334,7 @@ class TopLevel: | ||
| 5289 | 5334 | left = from_union([from_float, Left.from_dict, from_none], obj.get("left")) |
| 5290 | 5335 | let = from_union([from_float, Let.from_dict, from_none], obj.get("let")) |
| 5291 | 5336 | list = from_union([from_float, ListClass.from_dict, from_none], obj.get("list")) |
| 5337 | + local_date = from_union([from_float, LocalDate.from_dict, from_none], obj.get("LocalDate")) | |
| 5292 | 5338 | locale = from_union([from_float, Locale.from_dict, from_none], obj.get("Locale")) |
| 5293 | 5339 | lock = from_union([from_float, Lock.from_dict, from_none], obj.get("lock")) |
| 5294 | 5340 | long = from_union([from_float, Long.from_dict, from_none], obj.get("long")) |
| @@ -5323,6 +5369,8 @@ class TopLevel: | ||
| 5323 | 5369 | object = from_union([from_float, Object.from_dict, from_none], obj.get("object")) |
| 5324 | 5370 | object_mapper = from_union([from_float, ObjectMapper.from_dict, from_none], obj.get("ObjectMapper")) |
| 5325 | 5371 | of = from_union([from_float, Of.from_dict, from_none], obj.get("of")) |
| 5372 | + offset_date_time = from_union([from_float, OffsetDateTime.from_dict, from_none], obj.get("OffsetDateTime")) | |
| 5373 | + offset_time = from_union([from_float, OffsetTime.from_dict, from_none], obj.get("OffsetTime")) | |
| 5326 | 5374 | oneway = from_union([from_float, Oneway.from_dict, from_none], obj.get("oneway")) |
| 5327 | 5375 | open = from_union([from_float, Open.from_dict, from_none], obj.get("open")) |
| 5328 | 5376 | operator = from_union([from_float, Operator.from_dict, from_none], obj.get("operator")) |
| @@ -5450,7 +5498,7 @@ class TopLevel: | ||
| 5450 | 5498 | xor_eq = from_union([from_float, XorEq.from_dict, from_none], obj.get("xor_eq")) |
| 5451 | 5499 | yes = from_union([from_float, Yes.from_dict, from_none], obj.get("YES")) |
| 5452 | 5500 | top_level_yield = from_union([from_float, Yield.from_dict, from_none], obj.get("yield")) |
| 5453 | - 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, k_serializer, 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, primitive_kind, 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, serial_descriptor, serializable, serialize, serializer_provider, serial_name, 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, use_serializers, 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) | |
| 5501 | + 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, k_serializer, top_level_lambda, lazy, left, let, list, local_date, 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, offset_date_time, offset_time, oneway, open, operator, optional, top_level_or, or_eq, out, override, package, params, top_level_pass, port, postfix, precedence, prefix, primitive_kind, 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, serial_descriptor, serializable, serialize, serializer_provider, serial_name, 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, use_serializers, 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) | |
| 5454 | 5502 | |
| 5455 | 5503 | def to_dict(self) -> dict: |
| 5456 | 5504 | result: dict = {} |
| @@ -5810,6 +5858,8 @@ class TopLevel: | ||
| 5810 | 5858 | result["let"] = from_union([to_float, lambda x: to_class(Let, x), from_none], self.let) |
| 5811 | 5859 | if self.list is not None: |
| 5812 | 5860 | result["list"] = from_union([to_float, lambda x: to_class(ListClass, x), from_none], self.list) |
| 5861 | + if self.local_date is not None: | |
| 5862 | + result["LocalDate"] = from_union([to_float, lambda x: to_class(LocalDate, x), from_none], self.local_date) | |
| 5813 | 5863 | if self.locale is not None: |
| 5814 | 5864 | result["Locale"] = from_union([to_float, lambda x: to_class(Locale, x), from_none], self.locale) |
| 5815 | 5865 | if self.lock is not None: |
| @@ -5878,6 +5928,10 @@ class TopLevel: | ||
| 5878 | 5928 | result["ObjectMapper"] = from_union([to_float, lambda x: to_class(ObjectMapper, x), from_none], self.object_mapper) |
| 5879 | 5929 | if self.of is not None: |
| 5880 | 5930 | result["of"] = from_union([to_float, lambda x: to_class(Of, x), from_none], self.of) |
| 5931 | + if self.offset_date_time is not None: | |
| 5932 | + result["OffsetDateTime"] = from_union([to_float, lambda x: to_class(OffsetDateTime, x), from_none], self.offset_date_time) | |
| 5933 | + if self.offset_time is not None: | |
| 5934 | + result["OffsetTime"] = from_union([to_float, lambda x: to_class(OffsetTime, x), from_none], self.offset_time) | |
| 5881 | 5935 | if self.oneway is not None: |
| 5882 | 5936 | result["oneway"] = from_union([to_float, lambda x: to_class(Oneway, x), from_none], self.oneway) |
| 5883 | 5937 | if self.open is not None: |
Mschema-ruby-syntaxdefault / TopLevel.rb+180 −0
| @@ -9025,6 +9025,63 @@ class UnionList < Dry::Struct | ||
| 9025 | 9025 | end |
| 9026 | 9026 | end |
| 9027 | 9027 | |
| 9028 | +class LocalDate < Dry::Struct | |
| 9029 | + | |
| 9030 | + def self.from_dynamic!(d) | |
| 9031 | + d = Types::Hash[d] | |
| 9032 | + new( | |
| 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 | + } | |
| 9043 | + end | |
| 9044 | + | |
| 9045 | + def to_json(options = nil) | |
| 9046 | + JSON.generate(to_dynamic, options) | |
| 9047 | + end | |
| 9048 | +end | |
| 9049 | + | |
| 9050 | +class UnionLocalDate < Dry::Struct | |
| 9051 | + attribute :double, Types::Double.optional | |
| 9052 | + attribute :local_date, LocalDate.optional | |
| 9053 | + | |
| 9054 | + def self.from_dynamic!(d) | |
| 9055 | + if schema.key(:double).type.right.valid? d | |
| 9056 | + return new(double: d, local_date: nil) | |
| 9057 | + end | |
| 9058 | + begin | |
| 9059 | + value = LocalDate.from_dynamic!(d) | |
| 9060 | + if schema.key(:local_date).type.right.valid? value | |
| 9061 | + return new(local_date: value, double: nil) | |
| 9062 | + end | |
| 9063 | + rescue | |
| 9064 | + end | |
| 9065 | + raise "Invalid union" | |
| 9066 | + end | |
| 9067 | + | |
| 9068 | + def self.from_json!(json) | |
| 9069 | + from_dynamic!(JSON.parse(json)) | |
| 9070 | + end | |
| 9071 | + | |
| 9072 | + def to_dynamic | |
| 9073 | + if double != nil | |
| 9074 | + double | |
| 9075 | + elsif local_date != nil | |
| 9076 | + local_date.to_dynamic | |
| 9077 | + end | |
| 9078 | + end | |
| 9079 | + | |
| 9080 | + def to_json(options = nil) | |
| 9081 | + JSON.generate(to_dynamic, options) | |
| 9082 | + end | |
| 9083 | +end | |
| 9084 | + | |
| 9028 | 9085 | class Locale < Dry::Struct |
| 9029 | 9086 | |
| 9030 | 9087 | def self.from_dynamic!(d) |
| @@ -10621,6 +10678,120 @@ class UnionOf < Dry::Struct | ||
| 10621 | 10678 | end |
| 10622 | 10679 | end |
| 10623 | 10680 | |
| 10681 | +class OffsetDateTime < Dry::Struct | |
| 10682 | + | |
| 10683 | + def self.from_dynamic!(d) | |
| 10684 | + d = Types::Hash[d] | |
| 10685 | + new( | |
| 10686 | + ) | |
| 10687 | + end | |
| 10688 | + | |
| 10689 | + def self.from_json!(json) | |
| 10690 | + from_dynamic!(JSON.parse(json)) | |
| 10691 | + end | |
| 10692 | + | |
| 10693 | + def to_dynamic | |
| 10694 | + { | |
| 10695 | + } | |
| 10696 | + end | |
| 10697 | + | |
| 10698 | + def to_json(options = nil) | |
| 10699 | + JSON.generate(to_dynamic, options) | |
| 10700 | + end | |
| 10701 | +end | |
| 10702 | + | |
| 10703 | +class UnionOffsetDateTime < Dry::Struct | |
| 10704 | + attribute :double, Types::Double.optional | |
| 10705 | + attribute :offset_date_time, OffsetDateTime.optional | |
| 10706 | + | |
| 10707 | + def self.from_dynamic!(d) | |
| 10708 | + if schema.key(:double).type.right.valid? d | |
| 10709 | + return new(double: d, offset_date_time: nil) | |
| 10710 | + end | |
| 10711 | + begin | |
| 10712 | + value = OffsetDateTime.from_dynamic!(d) | |
| 10713 | + if schema.key(:offset_date_time).type.right.valid? value | |
| 10714 | + return new(offset_date_time: value, double: nil) | |
| 10715 | + end | |
| 10716 | + rescue | |
| 10717 | + end | |
| 10718 | + raise "Invalid union" | |
| 10719 | + end | |
| 10720 | + | |
| 10721 | + def self.from_json!(json) | |
| 10722 | + from_dynamic!(JSON.parse(json)) | |
| 10723 | + end | |
| 10724 | + | |
| 10725 | + def to_dynamic | |
| 10726 | + if double != nil | |
| 10727 | + double | |
| 10728 | + elsif offset_date_time != nil | |
| 10729 | + offset_date_time.to_dynamic | |
| 10730 | + end | |
| 10731 | + end | |
| 10732 | + | |
| 10733 | + def to_json(options = nil) | |
| 10734 | + JSON.generate(to_dynamic, options) | |
| 10735 | + end | |
| 10736 | +end | |
| 10737 | + | |
| 10738 | +class OffsetTime < Dry::Struct | |
| 10739 | + | |
| 10740 | + def self.from_dynamic!(d) | |
| 10741 | + d = Types::Hash[d] | |
| 10742 | + new( | |
| 10743 | + ) | |
| 10744 | + end | |
| 10745 | + | |
| 10746 | + def self.from_json!(json) | |
| 10747 | + from_dynamic!(JSON.parse(json)) | |
| 10748 | + end | |
| 10749 | + | |
| 10750 | + def to_dynamic | |
| 10751 | + { | |
| 10752 | + } | |
| 10753 | + end | |
| 10754 | + | |
| 10755 | + def to_json(options = nil) | |
| 10756 | + JSON.generate(to_dynamic, options) | |
| 10757 | + end | |
| 10758 | +end | |
| 10759 | + | |
| 10760 | +class UnionOffsetTime < Dry::Struct | |
| 10761 | + attribute :double, Types::Double.optional | |
| 10762 | + attribute :offset_time, OffsetTime.optional | |
| 10763 | + | |
| 10764 | + def self.from_dynamic!(d) | |
| 10765 | + if schema.key(:double).type.right.valid? d | |
| 10766 | + return new(double: d, offset_time: nil) | |
| 10767 | + end | |
| 10768 | + begin | |
| 10769 | + value = OffsetTime.from_dynamic!(d) | |
| 10770 | + if schema.key(:offset_time).type.right.valid? value | |
| 10771 | + return new(offset_time: value, double: nil) | |
| 10772 | + end | |
| 10773 | + rescue | |
| 10774 | + end | |
| 10775 | + raise "Invalid union" | |
| 10776 | + end | |
| 10777 | + | |
| 10778 | + def self.from_json!(json) | |
| 10779 | + from_dynamic!(JSON.parse(json)) | |
| 10780 | + end | |
| 10781 | + | |
| 10782 | + def to_dynamic | |
| 10783 | + if double != nil | |
| 10784 | + double | |
| 10785 | + elsif offset_time != nil | |
| 10786 | + offset_time.to_dynamic | |
| 10787 | + end | |
| 10788 | + end | |
| 10789 | + | |
| 10790 | + def to_json(options = nil) | |
| 10791 | + JSON.generate(to_dynamic, options) | |
| 10792 | + end | |
| 10793 | +end | |
| 10794 | + | |
| 10624 | 10795 | class Oneway < Dry::Struct |
| 10625 | 10796 | |
| 10626 | 10797 | def self.from_dynamic!(d) |
| @@ -19464,6 +19635,7 @@ class TopLevel < Dry::Struct | ||
| 19464 | 19635 | attribute :left, Types.Instance(UnionLeft).optional |
| 19465 | 19636 | attribute :let, Types.Instance(UnionLet).optional |
| 19466 | 19637 | attribute :list, Types.Instance(UnionList).optional |
| 19638 | + attribute :local_date, Types.Instance(UnionLocalDate).optional | |
| 19467 | 19639 | attribute :locale, Types.Instance(UnionLocale).optional |
| 19468 | 19640 | attribute :lock, Types.Instance(UnionLock).optional |
| 19469 | 19641 | attribute :long, Types.Instance(UnionLong).optional |
| @@ -19498,6 +19670,8 @@ class TopLevel < Dry::Struct | ||
| 19498 | 19670 | attribute :object, Types.Instance(UnionObject).optional |
| 19499 | 19671 | attribute :object_mapper, Types.Instance(UnionObjectMapper).optional |
| 19500 | 19672 | attribute :of, Types.Instance(UnionOf).optional |
| 19673 | + attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional | |
| 19674 | + attribute :offset_time, Types.Instance(UnionOffsetTime).optional | |
| 19501 | 19675 | attribute :oneway, Types.Instance(UnionOneway).optional |
| 19502 | 19676 | attribute :top_level_open, Types.Instance(UnionOpen).optional |
| 19503 | 19677 | attribute :operator, Types.Instance(UnionOperator).optional |
| @@ -19807,6 +19981,7 @@ class TopLevel < Dry::Struct | ||
| 19807 | 19981 | left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil, |
| 19808 | 19982 | let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil, |
| 19809 | 19983 | list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil, |
| 19984 | + local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil, | |
| 19810 | 19985 | locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil, |
| 19811 | 19986 | lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil, |
| 19812 | 19987 | long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil, |
| @@ -19841,6 +20016,8 @@ class TopLevel < Dry::Struct | ||
| 19841 | 20016 | object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil, |
| 19842 | 20017 | object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil, |
| 19843 | 20018 | of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil, |
| 20019 | + offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil, | |
| 20020 | + offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil, | |
| 19844 | 20021 | oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil, |
| 19845 | 20022 | top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil, |
| 19846 | 20023 | operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil, |
| @@ -20155,6 +20332,7 @@ class TopLevel < Dry::Struct | ||
| 20155 | 20332 | "left" => left&.to_dynamic, |
| 20156 | 20333 | "let" => let&.to_dynamic, |
| 20157 | 20334 | "list" => list&.to_dynamic, |
| 20335 | + "LocalDate" => local_date&.to_dynamic, | |
| 20158 | 20336 | "Locale" => locale&.to_dynamic, |
| 20159 | 20337 | "lock" => lock&.to_dynamic, |
| 20160 | 20338 | "long" => long&.to_dynamic, |
| @@ -20189,6 +20367,8 @@ class TopLevel < Dry::Struct | ||
| 20189 | 20367 | "object" => object&.to_dynamic, |
| 20190 | 20368 | "ObjectMapper" => object_mapper&.to_dynamic, |
| 20191 | 20369 | "of" => of&.to_dynamic, |
| 20370 | + "OffsetDateTime" => offset_date_time&.to_dynamic, | |
| 20371 | + "OffsetTime" => offset_time&.to_dynamic, | |
| 20192 | 20372 | "oneway" => oneway&.to_dynamic, |
| 20193 | 20373 | "open" => top_level_open&.to_dynamic, |
| 20194 | 20374 | "operator" => operator&.to_dynamic, |
Mschema-rubydefault / TopLevel.rb+180 −0
| @@ -9025,6 +9025,63 @@ class UnionList < Dry::Struct | ||
| 9025 | 9025 | end |
| 9026 | 9026 | end |
| 9027 | 9027 | |
| 9028 | +class LocalDate < Dry::Struct | |
| 9029 | + | |
| 9030 | + def self.from_dynamic!(d) | |
| 9031 | + d = Types::Hash[d] | |
| 9032 | + new( | |
| 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 | + } | |
| 9043 | + end | |
| 9044 | + | |
| 9045 | + def to_json(options = nil) | |
| 9046 | + JSON.generate(to_dynamic, options) | |
| 9047 | + end | |
| 9048 | +end | |
| 9049 | + | |
| 9050 | +class UnionLocalDate < Dry::Struct | |
| 9051 | + attribute :double, Types::Double.optional | |
| 9052 | + attribute :local_date, LocalDate.optional | |
| 9053 | + | |
| 9054 | + def self.from_dynamic!(d) | |
| 9055 | + if schema.key(:double).type.right.valid? d | |
| 9056 | + return new(double: d, local_date: nil) | |
| 9057 | + end | |
| 9058 | + begin | |
| 9059 | + value = LocalDate.from_dynamic!(d) | |
| 9060 | + if schema.key(:local_date).type.right.valid? value | |
| 9061 | + return new(local_date: value, double: nil) | |
| 9062 | + end | |
| 9063 | + rescue | |
| 9064 | + end | |
| 9065 | + raise "Invalid union" | |
| 9066 | + end | |
| 9067 | + | |
| 9068 | + def self.from_json!(json) | |
| 9069 | + from_dynamic!(JSON.parse(json)) | |
| 9070 | + end | |
| 9071 | + | |
| 9072 | + def to_dynamic | |
| 9073 | + if double != nil | |
| 9074 | + double | |
| 9075 | + elsif local_date != nil | |
| 9076 | + local_date.to_dynamic | |
| 9077 | + end | |
| 9078 | + end | |
| 9079 | + | |
| 9080 | + def to_json(options = nil) | |
| 9081 | + JSON.generate(to_dynamic, options) | |
| 9082 | + end | |
| 9083 | +end | |
| 9084 | + | |
| 9028 | 9085 | class Locale < Dry::Struct |
| 9029 | 9086 | |
| 9030 | 9087 | def self.from_dynamic!(d) |
| @@ -10621,6 +10678,120 @@ class UnionOf < Dry::Struct | ||
| 10621 | 10678 | end |
| 10622 | 10679 | end |
| 10623 | 10680 | |
| 10681 | +class OffsetDateTime < Dry::Struct | |
| 10682 | + | |
| 10683 | + def self.from_dynamic!(d) | |
| 10684 | + d = Types::Hash[d] | |
| 10685 | + new( | |
| 10686 | + ) | |
| 10687 | + end | |
| 10688 | + | |
| 10689 | + def self.from_json!(json) | |
| 10690 | + from_dynamic!(JSON.parse(json)) | |
| 10691 | + end | |
| 10692 | + | |
| 10693 | + def to_dynamic | |
| 10694 | + { | |
| 10695 | + } | |
| 10696 | + end | |
| 10697 | + | |
| 10698 | + def to_json(options = nil) | |
| 10699 | + JSON.generate(to_dynamic, options) | |
| 10700 | + end | |
| 10701 | +end | |
| 10702 | + | |
| 10703 | +class UnionOffsetDateTime < Dry::Struct | |
| 10704 | + attribute :double, Types::Double.optional | |
| 10705 | + attribute :offset_date_time, OffsetDateTime.optional | |
| 10706 | + | |
| 10707 | + def self.from_dynamic!(d) | |
| 10708 | + if schema.key(:double).type.right.valid? d | |
| 10709 | + return new(double: d, offset_date_time: nil) | |
| 10710 | + end | |
| 10711 | + begin | |
| 10712 | + value = OffsetDateTime.from_dynamic!(d) | |
| 10713 | + if schema.key(:offset_date_time).type.right.valid? value | |
| 10714 | + return new(offset_date_time: value, double: nil) | |
| 10715 | + end | |
| 10716 | + rescue | |
| 10717 | + end | |
| 10718 | + raise "Invalid union" | |
| 10719 | + end | |
| 10720 | + | |
| 10721 | + def self.from_json!(json) | |
| 10722 | + from_dynamic!(JSON.parse(json)) | |
| 10723 | + end | |
| 10724 | + | |
| 10725 | + def to_dynamic | |
| 10726 | + if double != nil | |
| 10727 | + double | |
| 10728 | + elsif offset_date_time != nil | |
| 10729 | + offset_date_time.to_dynamic | |
| 10730 | + end | |
| 10731 | + end | |
| 10732 | + | |
| 10733 | + def to_json(options = nil) | |
| 10734 | + JSON.generate(to_dynamic, options) | |
| 10735 | + end | |
| 10736 | +end | |
| 10737 | + | |
| 10738 | +class OffsetTime < Dry::Struct | |
| 10739 | + | |
| 10740 | + def self.from_dynamic!(d) | |
| 10741 | + d = Types::Hash[d] | |
| 10742 | + new( | |
| 10743 | + ) | |
| 10744 | + end | |
| 10745 | + | |
| 10746 | + def self.from_json!(json) | |
| 10747 | + from_dynamic!(JSON.parse(json)) | |
| 10748 | + end | |
| 10749 | + | |
| 10750 | + def to_dynamic | |
| 10751 | + { | |
| 10752 | + } | |
| 10753 | + end | |
| 10754 | + | |
| 10755 | + def to_json(options = nil) | |
| 10756 | + JSON.generate(to_dynamic, options) | |
| 10757 | + end | |
| 10758 | +end | |
| 10759 | + | |
| 10760 | +class UnionOffsetTime < Dry::Struct | |
| 10761 | + attribute :double, Types::Double.optional | |
| 10762 | + attribute :offset_time, OffsetTime.optional | |
| 10763 | + | |
| 10764 | + def self.from_dynamic!(d) | |
| 10765 | + if schema.key(:double).type.right.valid? d | |
| 10766 | + return new(double: d, offset_time: nil) | |
| 10767 | + end | |
| 10768 | + begin | |
| 10769 | + value = OffsetTime.from_dynamic!(d) | |
| 10770 | + if schema.key(:offset_time).type.right.valid? value | |
| 10771 | + return new(offset_time: value, double: nil) | |
| 10772 | + end | |
| 10773 | + rescue | |
| 10774 | + end | |
| 10775 | + raise "Invalid union" | |
| 10776 | + end | |
| 10777 | + | |
| 10778 | + def self.from_json!(json) | |
| 10779 | + from_dynamic!(JSON.parse(json)) | |
| 10780 | + end | |
| 10781 | + | |
| 10782 | + def to_dynamic | |
| 10783 | + if double != nil | |
| 10784 | + double | |
| 10785 | + elsif offset_time != nil | |
| 10786 | + offset_time.to_dynamic | |
| 10787 | + end | |
| 10788 | + end | |
| 10789 | + | |
| 10790 | + def to_json(options = nil) | |
| 10791 | + JSON.generate(to_dynamic, options) | |
| 10792 | + end | |
| 10793 | +end | |
| 10794 | + | |
| 10624 | 10795 | class Oneway < Dry::Struct |
| 10625 | 10796 | |
| 10626 | 10797 | def self.from_dynamic!(d) |
| @@ -19464,6 +19635,7 @@ class TopLevel < Dry::Struct | ||
| 19464 | 19635 | attribute :left, Types.Instance(UnionLeft).optional |
| 19465 | 19636 | attribute :let, Types.Instance(UnionLet).optional |
| 19466 | 19637 | attribute :list, Types.Instance(UnionList).optional |
| 19638 | + attribute :local_date, Types.Instance(UnionLocalDate).optional | |
| 19467 | 19639 | attribute :locale, Types.Instance(UnionLocale).optional |
| 19468 | 19640 | attribute :lock, Types.Instance(UnionLock).optional |
| 19469 | 19641 | attribute :long, Types.Instance(UnionLong).optional |
| @@ -19498,6 +19670,8 @@ class TopLevel < Dry::Struct | ||
| 19498 | 19670 | attribute :object, Types.Instance(UnionObject).optional |
| 19499 | 19671 | attribute :object_mapper, Types.Instance(UnionObjectMapper).optional |
| 19500 | 19672 | attribute :of, Types.Instance(UnionOf).optional |
| 19673 | + attribute :offset_date_time, Types.Instance(UnionOffsetDateTime).optional | |
| 19674 | + attribute :offset_time, Types.Instance(UnionOffsetTime).optional | |
| 19501 | 19675 | attribute :oneway, Types.Instance(UnionOneway).optional |
| 19502 | 19676 | attribute :top_level_open, Types.Instance(UnionOpen).optional |
| 19503 | 19677 | attribute :operator, Types.Instance(UnionOperator).optional |
| @@ -19807,6 +19981,7 @@ class TopLevel < Dry::Struct | ||
| 19807 | 19981 | left: d.key?("left") ? UnionLeft.from_dynamic!(d["left"]) : nil, |
| 19808 | 19982 | let: d.key?("let") ? UnionLet.from_dynamic!(d["let"]) : nil, |
| 19809 | 19983 | list: d.key?("list") ? UnionList.from_dynamic!(d["list"]) : nil, |
| 19984 | + local_date: d.key?("LocalDate") ? UnionLocalDate.from_dynamic!(d["LocalDate"]) : nil, | |
| 19810 | 19985 | locale: d.key?("Locale") ? UnionLocale.from_dynamic!(d["Locale"]) : nil, |
| 19811 | 19986 | lock: d.key?("lock") ? UnionLock.from_dynamic!(d["lock"]) : nil, |
| 19812 | 19987 | long: d.key?("long") ? UnionLong.from_dynamic!(d["long"]) : nil, |
| @@ -19841,6 +20016,8 @@ class TopLevel < Dry::Struct | ||
| 19841 | 20016 | object: d.key?("object") ? UnionObject.from_dynamic!(d["object"]) : nil, |
| 19842 | 20017 | object_mapper: d.key?("ObjectMapper") ? UnionObjectMapper.from_dynamic!(d["ObjectMapper"]) : nil, |
| 19843 | 20018 | of: d.key?("of") ? UnionOf.from_dynamic!(d["of"]) : nil, |
| 20019 | + offset_date_time: d.key?("OffsetDateTime") ? UnionOffsetDateTime.from_dynamic!(d["OffsetDateTime"]) : nil, | |
| 20020 | + offset_time: d.key?("OffsetTime") ? UnionOffsetTime.from_dynamic!(d["OffsetTime"]) : nil, | |
| 19844 | 20021 | oneway: d.key?("oneway") ? UnionOneway.from_dynamic!(d["oneway"]) : nil, |
| 19845 | 20022 | top_level_open: d.key?("open") ? UnionOpen.from_dynamic!(d["open"]) : nil, |
| 19846 | 20023 | operator: d.key?("operator") ? UnionOperator.from_dynamic!(d["operator"]) : nil, |
| @@ -20155,6 +20332,7 @@ class TopLevel < Dry::Struct | ||
| 20155 | 20332 | "left" => left&.to_dynamic, |
| 20156 | 20333 | "let" => let&.to_dynamic, |
| 20157 | 20334 | "list" => list&.to_dynamic, |
| 20335 | + "LocalDate" => local_date&.to_dynamic, | |
| 20158 | 20336 | "Locale" => locale&.to_dynamic, |
| 20159 | 20337 | "lock" => lock&.to_dynamic, |
| 20160 | 20338 | "long" => long&.to_dynamic, |
| @@ -20189,6 +20367,8 @@ class TopLevel < Dry::Struct | ||
| 20189 | 20367 | "object" => object&.to_dynamic, |
| 20190 | 20368 | "ObjectMapper" => object_mapper&.to_dynamic, |
| 20191 | 20369 | "of" => of&.to_dynamic, |
| 20370 | + "OffsetDateTime" => offset_date_time&.to_dynamic, | |
| 20371 | + "OffsetTime" => offset_time&.to_dynamic, | |
| 20192 | 20372 | "oneway" => oneway&.to_dynamic, |
| 20193 | 20373 | "open" => top_level_open&.to_dynamic, |
| 20194 | 20374 | "operator" => operator&.to_dynamic, |
Mschema-rustdefault / module_under_test.rs+45 −0
| @@ -437,6 +437,9 @@ pub struct TopLevel { | ||
| 437 | 437 | |
| 438 | 438 | pub list: Option<UnionList>, |
| 439 | 439 | |
| 440 | + #[serde(rename = "LocalDate")] | |
| 441 | + pub local_date: Option<UnionLocalDate>, | |
| 442 | + | |
| 440 | 443 | #[serde(rename = "Locale")] |
| 441 | 444 | pub locale: Option<UnionLocale>, |
| 442 | 445 | |
| @@ -517,6 +520,12 @@ pub struct TopLevel { | ||
| 517 | 520 | |
| 518 | 521 | pub of: Option<UnionOf>, |
| 519 | 522 | |
| 523 | + #[serde(rename = "OffsetDateTime")] | |
| 524 | + pub offset_date_time: Option<UnionOffsetDateTime>, | |
| 525 | + | |
| 526 | + #[serde(rename = "OffsetTime")] | |
| 527 | + pub offset_time: Option<UnionOffsetTime>, | |
| 528 | + | |
| 520 | 529 | pub oneway: Option<UnionOneway>, |
| 521 | 530 | |
| 522 | 531 | pub open: Option<UnionOpen>, |
| @@ -2654,6 +2663,18 @@ pub enum UnionList { | ||
| 2654 | 2663 | pub struct List { |
| 2655 | 2664 | } |
| 2656 | 2665 | |
| 2666 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2667 | +#[serde(untagged)] | |
| 2668 | +pub enum UnionLocalDate { | |
| 2669 | + Double(f64), | |
| 2670 | + | |
| 2671 | + LocalDate(LocalDate), | |
| 2672 | +} | |
| 2673 | + | |
| 2674 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 2675 | +pub struct LocalDate { | |
| 2676 | +} | |
| 2677 | + | |
| 2657 | 2678 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 2658 | 2679 | #[serde(untagged)] |
| 2659 | 2680 | pub enum UnionLocale { |
| @@ -3038,6 +3059,30 @@ pub enum UnionOf { | ||
| 3038 | 3059 | pub struct Of { |
| 3039 | 3060 | } |
| 3040 | 3061 | |
| 3062 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3063 | +#[serde(untagged)] | |
| 3064 | +pub enum UnionOffsetDateTime { | |
| 3065 | + Double(f64), | |
| 3066 | + | |
| 3067 | + OffsetDateTime(OffsetDateTime), | |
| 3068 | +} | |
| 3069 | + | |
| 3070 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3071 | +pub struct OffsetDateTime { | |
| 3072 | +} | |
| 3073 | + | |
| 3074 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3075 | +#[serde(untagged)] | |
| 3076 | +pub enum UnionOffsetTime { | |
| 3077 | + Double(f64), | |
| 3078 | + | |
| 3079 | + OffsetTime(OffsetTime), | |
| 3080 | +} | |
| 3081 | + | |
| 3082 | +#[derive(Debug, Clone, Serialize, Deserialize)] | |
| 3083 | +pub struct OffsetTime { | |
| 3084 | +} | |
| 3085 | + | |
| 3041 | 3086 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 3042 | 3087 | #[serde(untagged)] |
| 3043 | 3088 | pub enum UnionOneway { |
Mschema-schemadefault / TopLevel.schema+57 −0
| @@ -540,6 +540,9 @@ | ||
| 540 | 540 | "list": { |
| 541 | 541 | "$ref": "#/definitions/UnionList" |
| 542 | 542 | }, |
| 543 | + "LocalDate": { | |
| 544 | + "$ref": "#/definitions/UnionLocalDate" | |
| 545 | + }, | |
| 543 | 546 | "Locale": { |
| 544 | 547 | "$ref": "#/definitions/UnionLocale" |
| 545 | 548 | }, |
| @@ -642,6 +645,12 @@ | ||
| 642 | 645 | "of": { |
| 643 | 646 | "$ref": "#/definitions/UnionOf" |
| 644 | 647 | }, |
| 648 | + "OffsetDateTime": { | |
| 649 | + "$ref": "#/definitions/UnionOffsetDateTime" | |
| 650 | + }, | |
| 651 | + "OffsetTime": { | |
| 652 | + "$ref": "#/definitions/UnionOffsetTime" | |
| 653 | + }, | |
| 645 | 654 | "oneway": { |
| 646 | 655 | "$ref": "#/definitions/UnionOneway" |
| 647 | 656 | }, |
| @@ -1207,6 +1216,11 @@ | ||
| 1207 | 1216 | "additionalProperties": false, |
| 1208 | 1217 | "title": "KSerializer" |
| 1209 | 1218 | }, |
| 1219 | + "LocalDate": { | |
| 1220 | + "type": "object", | |
| 1221 | + "additionalProperties": false, | |
| 1222 | + "title": "LocalDate" | |
| 1223 | + }, | |
| 1210 | 1224 | "Locale": { |
| 1211 | 1225 | "type": "object", |
| 1212 | 1226 | "additionalProperties": false, |
| @@ -1252,6 +1266,16 @@ | ||
| 1252 | 1266 | "additionalProperties": false, |
| 1253 | 1267 | "title": "ObjectMapper" |
| 1254 | 1268 | }, |
| 1269 | + "OffsetDateTime": { | |
| 1270 | + "type": "object", | |
| 1271 | + "additionalProperties": false, | |
| 1272 | + "title": "OffsetDateTime" | |
| 1273 | + }, | |
| 1274 | + "OffsetTime": { | |
| 1275 | + "type": "object", | |
| 1276 | + "additionalProperties": false, | |
| 1277 | + "title": "OffsetTime" | |
| 1278 | + }, | |
| 1255 | 1279 | "PrimitiveKind": { |
| 1256 | 1280 | "type": "object", |
| 1257 | 1281 | "additionalProperties": false, |
| @@ -3113,6 +3137,17 @@ | ||
| 3113 | 3137 | ], |
| 3114 | 3138 | "title": "UnionKSerializer" |
| 3115 | 3139 | }, |
| 3140 | + "UnionLocalDate": { | |
| 3141 | + "anyOf": [ | |
| 3142 | + { | |
| 3143 | + "$ref": "#/definitions/LocalDate" | |
| 3144 | + }, | |
| 3145 | + { | |
| 3146 | + "type": "number" | |
| 3147 | + } | |
| 3148 | + ], | |
| 3149 | + "title": "UnionLocalDate" | |
| 3150 | + }, | |
| 3116 | 3151 | "UnionLocale": { |
| 3117 | 3152 | "anyOf": [ |
| 3118 | 3153 | { |
| @@ -3212,6 +3247,28 @@ | ||
| 3212 | 3247 | ], |
| 3213 | 3248 | "title": "UnionObjectMapper" |
| 3214 | 3249 | }, |
| 3250 | + "UnionOffsetDateTime": { | |
| 3251 | + "anyOf": [ | |
| 3252 | + { | |
| 3253 | + "$ref": "#/definitions/OffsetDateTime" | |
| 3254 | + }, | |
| 3255 | + { | |
| 3256 | + "type": "number" | |
| 3257 | + } | |
| 3258 | + ], | |
| 3259 | + "title": "UnionOffsetDateTime" | |
| 3260 | + }, | |
| 3261 | + "UnionOffsetTime": { | |
| 3262 | + "anyOf": [ | |
| 3263 | + { | |
| 3264 | + "$ref": "#/definitions/OffsetTime" | |
| 3265 | + }, | |
| 3266 | + { | |
| 3267 | + "type": "number" | |
| 3268 | + } | |
| 3269 | + ], | |
| 3270 | + "title": "UnionOffsetTime" | |
| 3271 | + }, | |
| 3215 | 3272 | "UnionPrimitiveKind": { |
| 3216 | 3273 | "anyOf": [ |
| 3217 | 3274 | { |
Mschema-swiftdefault / quicktype.swift+225 −0
| @@ -185,6 +185,7 @@ struct TopLevel: Codable { | ||
| 185 | 185 | let topLevelLeft: UnionLeft? |
| 186 | 186 | let topLevelLet: UnionLet? |
| 187 | 187 | let list: UnionList? |
| 188 | + let localDate: UnionLocalDate? | |
| 188 | 189 | let locale: UnionLocale? |
| 189 | 190 | let lock: UnionLock? |
| 190 | 191 | let long: UnionLong? |
| @@ -219,6 +220,8 @@ struct TopLevel: Codable { | ||
| 219 | 220 | let object: UnionObject? |
| 220 | 221 | let objectMapper: UnionObjectMapper? |
| 221 | 222 | let of: UnionOf? |
| 223 | + let offsetDateTime: UnionOffsetDateTime? | |
| 224 | + let offsetTime: UnionOffsetTime? | |
| 222 | 225 | let oneway: UnionOneway? |
| 223 | 226 | let topLevelOpen: UnionOpen? |
| 224 | 227 | let topLevelOperator: UnionOperator? |
| @@ -526,6 +529,7 @@ struct TopLevel: Codable { | ||
| 526 | 529 | case topLevelLeft = "left" |
| 527 | 530 | case topLevelLet = "let" |
| 528 | 531 | case list = "list" |
| 532 | + case localDate = "LocalDate" | |
| 529 | 533 | case locale = "Locale" |
| 530 | 534 | case lock = "lock" |
| 531 | 535 | case long = "long" |
| @@ -560,6 +564,8 @@ struct TopLevel: Codable { | ||
| 560 | 564 | case object = "object" |
| 561 | 565 | case objectMapper = "ObjectMapper" |
| 562 | 566 | case of = "of" |
| 567 | + case offsetDateTime = "OffsetDateTime" | |
| 568 | + case offsetTime = "OffsetTime" | |
| 563 | 569 | case oneway = "oneway" |
| 564 | 570 | case topLevelOpen = "open" |
| 565 | 571 | case topLevelOperator = "operator" |
| @@ -887,6 +893,7 @@ extension TopLevel { | ||
| 887 | 893 | topLevelLeft: UnionLeft?? = nil, |
| 888 | 894 | topLevelLet: UnionLet?? = nil, |
| 889 | 895 | list: UnionList?? = nil, |
| 896 | + localDate: UnionLocalDate?? = nil, | |
| 890 | 897 | locale: UnionLocale?? = nil, |
| 891 | 898 | lock: UnionLock?? = nil, |
| 892 | 899 | long: UnionLong?? = nil, |
| @@ -921,6 +928,8 @@ extension TopLevel { | ||
| 921 | 928 | object: UnionObject?? = nil, |
| 922 | 929 | objectMapper: UnionObjectMapper?? = nil, |
| 923 | 930 | of: UnionOf?? = nil, |
| 931 | + offsetDateTime: UnionOffsetDateTime?? = nil, | |
| 932 | + offsetTime: UnionOffsetTime?? = nil, | |
| 924 | 933 | oneway: UnionOneway?? = nil, |
| 925 | 934 | topLevelOpen: UnionOpen?? = nil, |
| 926 | 935 | topLevelOperator: UnionOperator?? = nil, |
| @@ -1228,6 +1237,7 @@ extension TopLevel { | ||
| 1228 | 1237 | topLevelLeft: topLevelLeft ?? self.topLevelLeft, |
| 1229 | 1238 | topLevelLet: topLevelLet ?? self.topLevelLet, |
| 1230 | 1239 | list: list ?? self.list, |
| 1240 | + localDate: localDate ?? self.localDate, | |
| 1231 | 1241 | locale: locale ?? self.locale, |
| 1232 | 1242 | lock: lock ?? self.lock, |
| 1233 | 1243 | long: long ?? self.long, |
| @@ -1262,6 +1272,8 @@ extension TopLevel { | ||
| 1262 | 1272 | object: object ?? self.object, |
| 1263 | 1273 | objectMapper: objectMapper ?? self.objectMapper, |
| 1264 | 1274 | of: of ?? self.of, |
| 1275 | + offsetDateTime: offsetDateTime ?? self.offsetDateTime, | |
| 1276 | + offsetTime: offsetTime ?? self.offsetTime, | |
| 1265 | 1277 | oneway: oneway ?? self.oneway, |
| 1266 | 1278 | topLevelOpen: topLevelOpen ?? self.topLevelOpen, |
| 1267 | 1279 | topLevelOperator: topLevelOperator ?? self.topLevelOperator, |
| @@ -10773,6 +10785,77 @@ extension List { | ||
| 10773 | 10785 | } |
| 10774 | 10786 | } |
| 10775 | 10787 | |
| 10788 | +enum UnionLocalDate: Codable { | |
| 10789 | + case double(Double) | |
| 10790 | + case localDate(LocalDate) | |
| 10791 | + | |
| 10792 | + init(from decoder: Decoder) throws { | |
| 10793 | + let container = try decoder.singleValueContainer() | |
| 10794 | + if let x = try? container.decode(Double.self) { | |
| 10795 | + self = .double(x) | |
| 10796 | + return | |
| 10797 | + } | |
| 10798 | + if let x = try? container.decode(LocalDate.self) { | |
| 10799 | + self = .localDate(x) | |
| 10800 | + return | |
| 10801 | + } | |
| 10802 | + throw DecodingError.typeMismatch(UnionLocalDate.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionLocalDate")) | |
| 10803 | + } | |
| 10804 | + | |
| 10805 | + func encode(to encoder: Encoder) throws { | |
| 10806 | + var container = encoder.singleValueContainer() | |
| 10807 | + switch self { | |
| 10808 | + case .double(let x): | |
| 10809 | + try container.encode(x) | |
| 10810 | + case .localDate(let x): | |
| 10811 | + try container.encode(x) | |
| 10812 | + } | |
| 10813 | + } | |
| 10814 | +} | |
| 10815 | + | |
| 10816 | +// MARK: - LocalDate | |
| 10817 | +struct LocalDate: Codable { | |
| 10818 | + private enum K: String, CodingKey { case unused } | |
| 10819 | + init(from decoder: Decoder) throws { | |
| 10820 | + _ = try decoder.container(keyedBy: K.self) | |
| 10821 | + } | |
| 10822 | + init() { | |
| 10823 | + } | |
| 10824 | +} | |
| 10825 | + | |
| 10826 | +// MARK: LocalDate convenience initializers and mutators | |
| 10827 | + | |
| 10828 | +extension LocalDate { | |
| 10829 | + init(data: Data) throws { | |
| 10830 | + self = try newJSONDecoder().decode(LocalDate.self, from: data) | |
| 10831 | + } | |
| 10832 | + | |
| 10833 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 10834 | + guard let data = json.data(using: encoding) else { | |
| 10835 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 10836 | + } | |
| 10837 | + try self.init(data: data) | |
| 10838 | + } | |
| 10839 | + | |
| 10840 | + init(fromURL url: URL) throws { | |
| 10841 | + try self.init(data: try Data(contentsOf: url)) | |
| 10842 | + } | |
| 10843 | + | |
| 10844 | + func with( | |
| 10845 | + ) -> LocalDate { | |
| 10846 | + return LocalDate( | |
| 10847 | + ) | |
| 10848 | + } | |
| 10849 | + | |
| 10850 | + func jsonData() throws -> Data { | |
| 10851 | + return try newJSONEncoder().encode(self) | |
| 10852 | + } | |
| 10853 | + | |
| 10854 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 10855 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 10856 | + } | |
| 10857 | +} | |
| 10858 | + | |
| 10776 | 10859 | enum UnionLocale: Codable { |
| 10777 | 10860 | case double(Double) |
| 10778 | 10861 | case localeClass(LocaleClass) |
| @@ -12832,6 +12915,148 @@ extension Of { | ||
| 12832 | 12915 | } |
| 12833 | 12916 | } |
| 12834 | 12917 | |
| 12918 | +enum UnionOffsetDateTime: Codable { | |
| 12919 | + case double(Double) | |
| 12920 | + case offsetDateTime(OffsetDateTime) | |
| 12921 | + | |
| 12922 | + init(from decoder: Decoder) throws { | |
| 12923 | + let container = try decoder.singleValueContainer() | |
| 12924 | + if let x = try? container.decode(Double.self) { | |
| 12925 | + self = .double(x) | |
| 12926 | + return | |
| 12927 | + } | |
| 12928 | + if let x = try? container.decode(OffsetDateTime.self) { | |
| 12929 | + self = .offsetDateTime(x) | |
| 12930 | + return | |
| 12931 | + } | |
| 12932 | + throw DecodingError.typeMismatch(UnionOffsetDateTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetDateTime")) | |
| 12933 | + } | |
| 12934 | + | |
| 12935 | + func encode(to encoder: Encoder) throws { | |
| 12936 | + var container = encoder.singleValueContainer() | |
| 12937 | + switch self { | |
| 12938 | + case .double(let x): | |
| 12939 | + try container.encode(x) | |
| 12940 | + case .offsetDateTime(let x): | |
| 12941 | + try container.encode(x) | |
| 12942 | + } | |
| 12943 | + } | |
| 12944 | +} | |
| 12945 | + | |
| 12946 | +// MARK: - OffsetDateTime | |
| 12947 | +struct OffsetDateTime: Codable { | |
| 12948 | + private enum K: String, CodingKey { case unused } | |
| 12949 | + init(from decoder: Decoder) throws { | |
| 12950 | + _ = try decoder.container(keyedBy: K.self) | |
| 12951 | + } | |
| 12952 | + init() { | |
| 12953 | + } | |
| 12954 | +} | |
| 12955 | + | |
| 12956 | +// MARK: OffsetDateTime convenience initializers and mutators | |
| 12957 | + | |
| 12958 | +extension OffsetDateTime { | |
| 12959 | + init(data: Data) throws { | |
| 12960 | + self = try newJSONDecoder().decode(OffsetDateTime.self, from: data) | |
| 12961 | + } | |
| 12962 | + | |
| 12963 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 12964 | + guard let data = json.data(using: encoding) else { | |
| 12965 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 12966 | + } | |
| 12967 | + try self.init(data: data) | |
| 12968 | + } | |
| 12969 | + | |
| 12970 | + init(fromURL url: URL) throws { | |
| 12971 | + try self.init(data: try Data(contentsOf: url)) | |
| 12972 | + } | |
| 12973 | + | |
| 12974 | + func with( | |
| 12975 | + ) -> OffsetDateTime { | |
| 12976 | + return OffsetDateTime( | |
| 12977 | + ) | |
| 12978 | + } | |
| 12979 | + | |
| 12980 | + func jsonData() throws -> Data { | |
| 12981 | + return try newJSONEncoder().encode(self) | |
| 12982 | + } | |
| 12983 | + | |
| 12984 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 12985 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 12986 | + } | |
| 12987 | +} | |
| 12988 | + | |
| 12989 | +enum UnionOffsetTime: Codable { | |
| 12990 | + case double(Double) | |
| 12991 | + case offsetTime(OffsetTime) | |
| 12992 | + | |
| 12993 | + init(from decoder: Decoder) throws { | |
| 12994 | + let container = try decoder.singleValueContainer() | |
| 12995 | + if let x = try? container.decode(Double.self) { | |
| 12996 | + self = .double(x) | |
| 12997 | + return | |
| 12998 | + } | |
| 12999 | + if let x = try? container.decode(OffsetTime.self) { | |
| 13000 | + self = .offsetTime(x) | |
| 13001 | + return | |
| 13002 | + } | |
| 13003 | + throw DecodingError.typeMismatch(UnionOffsetTime.self, DecodingError.Context(codingPath: decoder.codingPath, debugDescription: "Wrong type for UnionOffsetTime")) | |
| 13004 | + } | |
| 13005 | + | |
| 13006 | + func encode(to encoder: Encoder) throws { | |
| 13007 | + var container = encoder.singleValueContainer() | |
| 13008 | + switch self { | |
| 13009 | + case .double(let x): | |
| 13010 | + try container.encode(x) | |
| 13011 | + case .offsetTime(let x): | |
| 13012 | + try container.encode(x) | |
| 13013 | + } | |
| 13014 | + } | |
| 13015 | +} | |
| 13016 | + | |
| 13017 | +// MARK: - OffsetTime | |
| 13018 | +struct OffsetTime: Codable { | |
| 13019 | + private enum K: String, CodingKey { case unused } | |
| 13020 | + init(from decoder: Decoder) throws { | |
| 13021 | + _ = try decoder.container(keyedBy: K.self) | |
| 13022 | + } | |
| 13023 | + init() { | |
| 13024 | + } | |
| 13025 | +} | |
| 13026 | + | |
| 13027 | +// MARK: OffsetTime convenience initializers and mutators | |
| 13028 | + | |
| 13029 | +extension OffsetTime { | |
| 13030 | + init(data: Data) throws { | |
| 13031 | + self = try newJSONDecoder().decode(OffsetTime.self, from: data) | |
| 13032 | + } | |
| 13033 | + | |
| 13034 | + init(_ json: String, using encoding: String.Encoding = .utf8) throws { | |
| 13035 | + guard let data = json.data(using: encoding) else { | |
| 13036 | + throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) | |
| 13037 | + } | |
| 13038 | + try self.init(data: data) | |
| 13039 | + } | |
| 13040 | + | |
| 13041 | + init(fromURL url: URL) throws { | |
| 13042 | + try self.init(data: try Data(contentsOf: url)) | |
| 13043 | + } | |
| 13044 | + | |
| 13045 | + func with( | |
| 13046 | + ) -> OffsetTime { | |
| 13047 | + return OffsetTime( | |
| 13048 | + ) | |
| 13049 | + } | |
| 13050 | + | |
| 13051 | + func jsonData() throws -> Data { | |
| 13052 | + return try newJSONEncoder().encode(self) | |
| 13053 | + } | |
| 13054 | + | |
| 13055 | + func jsonString(encoding: String.Encoding = .utf8) throws -> String? { | |
| 13056 | + return String(data: try self.jsonData(), encoding: encoding) | |
| 13057 | + } | |
| 13058 | +} | |
| 13059 | + | |
| 12835 | 13060 | enum UnionOneway: Codable { |
| 12836 | 13061 | case double(Double) |
| 12837 | 13062 | case oneway(Oneway) |
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −0
| @@ -403,6 +403,12 @@ export class Open extends S.Class<Open>("Open")(S.Struct({}).pipe(S.filter(value | ||
| 403 | 403 | export class Oneway extends S.Class<Oneway>("Oneway")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 404 | 404 | ) {} |
| 405 | 405 | |
| 406 | +export class OffsetTime extends S.Class<OffsetTime>("OffsetTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 407 | +) {} | |
| 408 | + | |
| 409 | +export class OffsetDateTime extends S.Class<OffsetDateTime>("OffsetDateTime")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 410 | +) {} | |
| 411 | + | |
| 406 | 412 | export class Of extends S.Class<Of>("Of")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 407 | 413 | ) {} |
| 408 | 414 | |
| @@ -499,6 +505,9 @@ export class Lock extends S.Class<Lock>("Lock")(S.Struct({}).pipe(S.filter(value | ||
| 499 | 505 | export class Locale extends S.Class<Locale>("Locale")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 500 | 506 | ) {} |
| 501 | 507 | |
| 508 | +export class LocalDate extends S.Class<LocalDate>("LocalDate")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) | |
| 509 | +) {} | |
| 510 | + | |
| 502 | 511 | export class List extends S.Class<List>("List")(S.Struct({}).pipe(S.filter(value => typeof value === "object" && value !== null && !Array.isArray(value))) |
| 503 | 512 | ) {} |
| 504 | 513 | |
| @@ -1194,6 +1203,7 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1194 | 1203 | "left": S.optional(S.Union(S.Number, Left)), |
| 1195 | 1204 | "let": S.optional(S.Union(S.Number, Let)), |
| 1196 | 1205 | "list": S.optional(S.Union(S.Number, List)), |
| 1206 | + "LocalDate": S.optional(S.Union(S.Number, LocalDate)), | |
| 1197 | 1207 | "Locale": S.optional(S.Union(S.Number, Locale)), |
| 1198 | 1208 | "lock": S.optional(S.Union(S.Number, Lock)), |
| 1199 | 1209 | "long": S.optional(S.Union(S.Number, Long)), |
| @@ -1228,6 +1238,8 @@ export class TopLevel extends S.Class<TopLevel>("TopLevel")({ | ||
| 1228 | 1238 | "object": S.optional(S.Union(S.Number, ObjectClass)), |
| 1229 | 1239 | "ObjectMapper": S.optional(S.Union(S.Number, ObjectMapper)), |
| 1230 | 1240 | "of": S.optional(S.Union(S.Number, Of)), |
| 1241 | + "OffsetDateTime": S.optional(S.Union(S.Number, OffsetDateTime)), | |
| 1242 | + "OffsetTime": S.optional(S.Union(S.Number, OffsetTime)), | |
| 1231 | 1243 | "oneway": S.optional(S.Union(S.Number, Oneway)), |
| 1232 | 1244 | "open": S.optional(S.Union(S.Number, Open)), |
| 1233 | 1245 | "operator": S.optional(S.Union(S.Number, Operator)), |
Mschema-typescript-zoddefault / TopLevel.ts+15 −0
| @@ -689,6 +689,10 @@ export const ListSchema = z.object({ | ||
| 689 | 689 | }); |
| 690 | 690 | export type List = z.infer<typeof ListSchema>; |
| 691 | 691 | |
| 692 | +export const LocalDateSchema = z.object({ | |
| 693 | +}); | |
| 694 | +export type LocalDate = z.infer<typeof LocalDateSchema>; | |
| 695 | + | |
| 692 | 696 | export const LocaleSchema = z.object({ |
| 693 | 697 | }); |
| 694 | 698 | export type Locale = z.infer<typeof LocaleSchema>; |
| @@ -817,6 +821,14 @@ export const OfSchema = z.object({ | ||
| 817 | 821 | }); |
| 818 | 822 | export type Of = z.infer<typeof OfSchema>; |
| 819 | 823 | |
| 824 | +export const OffsetDateTimeSchema = z.object({ | |
| 825 | +}); | |
| 826 | +export type OffsetDateTime = z.infer<typeof OffsetDateTimeSchema>; | |
| 827 | + | |
| 828 | +export const OffsetTimeSchema = z.object({ | |
| 829 | +}); | |
| 830 | +export type OffsetTime = z.infer<typeof OffsetTimeSchema>; | |
| 831 | + | |
| 820 | 832 | export const OnewaySchema = z.object({ |
| 821 | 833 | }); |
| 822 | 834 | export type Oneway = z.infer<typeof OnewaySchema>; |
| @@ -1532,6 +1544,7 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1532 | 1544 | "left": z.union([LeftSchema, z.number()]).optional(), |
| 1533 | 1545 | "let": z.union([LetSchema, z.number()]).optional(), |
| 1534 | 1546 | "list": z.union([ListSchema, z.number()]).optional(), |
| 1547 | + "LocalDate": z.union([LocalDateSchema, z.number()]).optional(), | |
| 1535 | 1548 | "Locale": z.union([LocaleSchema, z.number()]).optional(), |
| 1536 | 1549 | "lock": z.union([LockSchema, z.number()]).optional(), |
| 1537 | 1550 | "long": z.union([LongSchema, z.number()]).optional(), |
| @@ -1566,6 +1579,8 @@ export const TopLevelSchema = z.preprocess(value => typeof value === "object" && | ||
| 1566 | 1579 | "object": z.union([ObjectClassSchema, z.number()]).optional(), |
| 1567 | 1580 | "ObjectMapper": z.union([ObjectMapperSchema, z.number()]).optional(), |
| 1568 | 1581 | "of": z.union([OfSchema, z.number()]).optional(), |
| 1582 | + "OffsetDateTime": z.union([OffsetDateTimeSchema, z.number()]).optional(), | |
| 1583 | + "OffsetTime": z.union([OffsetTimeSchema, z.number()]).optional(), | |
| 1569 | 1584 | "oneway": z.union([OnewaySchema, z.number()]).optional(), |
| 1570 | 1585 | "open": z.union([OpenSchema, z.number()]).optional(), |
| 1571 | 1586 | "operator": z.union([OperatorSchema, z.number()]).optional(), |
Mschema-typescriptdefault / TopLevel.ts+12 −0
| @@ -186,6 +186,7 @@ export interface TopLevel { | ||
| 186 | 186 | left?: UnionLeft; |
| 187 | 187 | let?: UnionLet; |
| 188 | 188 | list?: UnionList; |
| 189 | + LocalDate?: UnionLocalDate; | |
| 189 | 190 | Locale?: UnionLocale; |
| 190 | 191 | lock?: UnionLock; |
| 191 | 192 | long?: UnionLong; |
| @@ -220,6 +221,8 @@ export interface TopLevel { | ||
| 220 | 221 | object?: UnionObject; |
| 221 | 222 | ObjectMapper?: UnionObjectMapper; |
| 222 | 223 | of?: UnionOf; |
| 224 | + OffsetDateTime?: UnionOffsetDateTime; | |
| 225 | + OffsetTime?: UnionOffsetTime; | |
| 223 | 226 | oneway?: UnionOneway; |
| 224 | 227 | open?: UnionOpen; |
| 225 | 228 | operator?: UnionOperator; |
| @@ -422,6 +425,8 @@ export type UnionJSONTokenType = object | number; | ||
| 422 | 425 | |
| 423 | 426 | export type UnionKSerializer = object | number; |
| 424 | 427 | |
| 428 | +export type UnionLocalDate = object | number; | |
| 429 | + | |
| 425 | 430 | export type UnionLocale = object | number; |
| 426 | 431 | |
| 427 | 432 | export type UnionMapEntry = object | number; |
| @@ -440,6 +445,10 @@ export type UnionNone = object | number; | ||
| 440 | 445 | |
| 441 | 446 | export type UnionObjectMapper = object | number; |
| 442 | 447 | |
| 448 | +export type UnionOffsetDateTime = object | number; | |
| 449 | + | |
| 450 | +export type UnionOffsetTime = object | number; | |
| 451 | + | |
| 443 | 452 | export type UnionPrimitiveKind = object | number; |
| 444 | 453 | |
| 445 | 454 | export type UnionProtocol = object | number; |
| @@ -1392,6 +1401,7 @@ const typeMap: any = { | ||
| 1392 | 1401 | { json: "left", js: "left", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1393 | 1402 | { json: "let", js: "let", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1394 | 1403 | { json: "list", js: "list", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1404 | + { json: "LocalDate", js: "LocalDate", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1395 | 1405 | { json: "Locale", js: "Locale", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1396 | 1406 | { json: "lock", js: "lock", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1397 | 1407 | { json: "long", js: "long", typ: u(undefined, u(m("any"), 3.14)) }, |
| @@ -1426,6 +1436,8 @@ const typeMap: any = { | ||
| 1426 | 1436 | { json: "object", js: "object", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1427 | 1437 | { json: "ObjectMapper", js: "ObjectMapper", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1428 | 1438 | { json: "of", js: "of", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1439 | + { json: "OffsetDateTime", js: "OffsetDateTime", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1440 | + { json: "OffsetTime", js: "OffsetTime", typ: u(undefined, u(m("any"), 3.14)) }, | |
| 1429 | 1441 | { json: "oneway", js: "oneway", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1430 | 1442 | { json: "open", js: "open", typ: u(undefined, u(m("any"), 3.14)) }, |
| 1431 | 1443 | { json: "operator", js: "operator", typ: u(undefined, u(m("any"), 3.14)) }, |
No generated files match these filters.