Test case
1 generated file · +4 −0test/inputs/graphql/github3.graphql
Mgraphql-pikedefault / TopLevel.pmod+4 −0
| @@ -144,6 +144,10 @@ enum PullRequestState { | ||
| 144 | 144 | MERGED = "MERGED", // json: "MERGED" |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | +PullRequestState PullRequestState_from_JSON(mixed json) { | |
| 148 | + return json; | |
| 149 | +} | |
| 150 | + | |
| 147 | 151 | class Error { |
| 148 | 152 | string message; // json: "message" |
Test case
1 generated file · +4 −0test/inputs/graphql/github4.graphql
Mgraphql-pikedefault / TopLevel.pmod+4 −0
| @@ -147,6 +147,10 @@ enum PullRequestState { | ||
| 147 | 147 | MERGED = "MERGED", // json: "MERGED" |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | +PullRequestState PullRequestState_from_JSON(mixed json) { | |
| 151 | + return json; | |
| 152 | +} | |
| 153 | + | |
| 150 | 154 | class Error { |
| 151 | 155 | string message; // json: "message" |
Test case
1 generated file · +4 −0test/inputs/graphql/github8.graphql
Mgraphql-pikedefault / TopLevel.pmod+4 −0
| @@ -112,6 +112,10 @@ enum IssueState { | ||
| 112 | 112 | CLOSED = "CLOSED", // json: "CLOSED" |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | +IssueState IssueState_from_JSON(mixed json) { | |
| 116 | + return json; | |
| 117 | +} | |
| 118 | + | |
| 115 | 119 | class Error { |
| 116 | 120 | string message; // json: "message" |
Test case
1 generated file · +4 −0test/inputs/graphql/github9.graphql
Mgraphql-pikedefault / TopLevel.pmod+4 −0
| @@ -110,6 +110,10 @@ enum ReactionContent { | ||
| 110 | 110 | HEART = "HEART", // json: "HEART" |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | +ReactionContent ReactionContent_from_JSON(mixed json) { | |
| 114 | + return json; | |
| 115 | +} | |
| 116 | + | |
| 113 | 117 | class Reactable { |
| 114 | 118 | bool viewer_can_react; // json: "viewerCanReact" |
| 115 | 119 | array(Reaction)|mixed reaction_groups; // json: "reactionGroups" |
Test case
1 generated file · +8 −0test/inputs/json/misc/00c36.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -84,11 +84,19 @@ enum Id { | ||
| 84 | 84 | NY_GDP_MKTP_CD = "NY.GDP.MKTP.CD", // json: "NY.GDP.MKTP.CD" |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | +Id Id_from_JSON(mixed json) { | |
| 88 | + return json; | |
| 89 | +} | |
| 90 | + | |
| 87 | 91 | enum Value { |
| 88 | 92 | UNITED_STATES = "United States", // json: "United States" |
| 89 | 93 | GDP_CURRENT_US = "GDP (current US$)", // json: "GDP (current US$)" |
| 90 | 94 | } |
| 91 | 95 | |
| 96 | +Value Value_from_JSON(mixed json) { | |
| 97 | + return json; | |
| 98 | +} | |
| 99 | + | |
| 92 | 100 | class FluffyTopLevel { |
| 93 | 101 | int page; // json: "page" |
| 94 | 102 | int pages; // json: "pages" |
Test case
1 generated file · +4 −0test/inputs/json/misc/00ec5.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -120,6 +120,10 @@ enum Type { | ||
| 120 | 120 | STRING = "string", // json: "string" |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | +Type Type_from_JSON(mixed json) { | |
| 124 | + return json; | |
| 125 | +} | |
| 126 | + | |
| 123 | 127 | class Info { |
| 124 | 128 | string description; // json: "description" |
| 125 | 129 | string title; // json: "title" |
Test case
1 generated file · +4 −0test/inputs/json/misc/010b1.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +20 −0test/inputs/json/misc/050b0.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -88,6 +88,10 @@ enum Scheme { | ||
| 88 | 88 | TROVE = "Trove", // json: "Trove" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 93 | 97 | POPULAR = "popular", // json: "popular" |
| @@ -95,6 +99,10 @@ enum Keyword { | ||
| 95 | 99 | COPYLEFT = "copyleft", // json: "copyleft" |
| 96 | 100 | } |
| 97 | 101 | |
| 102 | +Keyword Keyword_from_JSON(mixed json) { | |
| 103 | + return json; | |
| 104 | +} | |
| 105 | + | |
| 98 | 106 | class Link { |
| 99 | 107 | Note note; // json: "note" |
| 100 | 108 | string url; // json: "url" |
| @@ -126,6 +134,10 @@ enum Note { | ||
| 126 | 134 | MOZILLA_PAGE = "Mozilla Page", // json: "Mozilla Page" |
| 127 | 135 | } |
| 128 | 136 | |
| 137 | +Note Note_from_JSON(mixed json) { | |
| 138 | + return json; | |
| 139 | +} | |
| 140 | + | |
| 129 | 141 | class OtherName { |
| 130 | 142 | string name; // json: "name" |
| 131 | 143 | mixed|string note; // json: "note" |
| @@ -180,7 +192,15 @@ enum MediaType { | ||
| 180 | 192 | TEXT_PLAIN = "text/plain", // json: "text/plain" |
| 181 | 193 | } |
| 182 | 194 | |
| 195 | +MediaType MediaType_from_JSON(mixed json) { | |
| 196 | + return json; | |
| 197 | +} | |
| 198 | + | |
| 183 | 199 | enum Title { |
| 184 | 200 | HTML = "HTML", // json: "HTML" |
| 185 | 201 | PLAIN_TEXT = "Plain Text", // json: "Plain Text" |
| 186 | 202 | } |
| 203 | + | |
| 204 | +Title Title_from_JSON(mixed json) { | |
| 205 | + return json; | |
| 206 | +} |
Test case
1 generated file · +20 −0test/inputs/json/misc/06bee.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -88,12 +88,20 @@ enum Scheme { | ||
| 88 | 88 | DEP5 = "DEP5", // json: "DEP5" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | DISCOURAGED = "discouraged", // json: "discouraged" |
| 93 | 97 | NON_REUSABLE = "non-reusable", // json: "non-reusable" |
| 94 | 98 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 95 | 99 | } |
| 96 | 100 | |
| 101 | +Keyword Keyword_from_JSON(mixed json) { | |
| 102 | + return json; | |
| 103 | +} | |
| 104 | + | |
| 97 | 105 | class Link { |
| 98 | 106 | Note note; // json: "note" |
| 99 | 107 | string url; // json: "url" |
| @@ -121,6 +129,10 @@ enum Note { | ||
| 121 | 129 | OSI_PAGE = "OSI Page", // json: "OSI Page" |
| 122 | 130 | } |
| 123 | 131 | |
| 132 | +Note Note_from_JSON(mixed json) { | |
| 133 | + return json; | |
| 134 | +} | |
| 135 | + | |
| 124 | 136 | class Text { |
| 125 | 137 | MediaType media_type; // json: "media_type" |
| 126 | 138 | Title title; // json: "title" |
| @@ -151,6 +163,14 @@ enum MediaType { | ||
| 151 | 163 | TEXT_HTML = "text/html", // json: "text/html" |
| 152 | 164 | } |
| 153 | 165 | |
| 166 | +MediaType MediaType_from_JSON(mixed json) { | |
| 167 | + return json; | |
| 168 | +} | |
| 169 | + | |
| 154 | 170 | enum Title { |
| 155 | 171 | HTML = "HTML", // json: "HTML" |
| 156 | 172 | } |
| 173 | + | |
| 174 | +Title Title_from_JSON(mixed json) { | |
| 175 | + return json; | |
| 176 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/0a91a.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -766,3 +766,7 @@ enum Type { | ||
| 766 | 766 | PULL_REQUEST_EVENT = "PullRequestEvent", // json: "PullRequestEvent" |
| 767 | 767 | DELETE_EVENT = "DeleteEvent", // json: "DeleteEvent" |
| 768 | 768 | } |
| 769 | + | |
| 770 | +Type Type_from_JSON(mixed json) { | |
| 771 | + return json; | |
| 772 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/0cffa.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -328,10 +328,18 @@ enum Rating { | ||
| 328 | 328 | PG = "pg", // json: "pg" |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | +Rating Rating_from_JSON(mixed json) { | |
| 332 | + return json; | |
| 333 | +} | |
| 334 | + | |
| 331 | 335 | enum Type { |
| 332 | 336 | GIF = "gif", // json: "gif" |
| 333 | 337 | } |
| 334 | 338 | |
| 339 | +Type Type_from_JSON(mixed json) { | |
| 340 | + return json; | |
| 341 | +} | |
| 342 | + | |
| 335 | 343 | class User { |
| 336 | 344 | string avatar_url; // json: "avatar_url" |
| 337 | 345 | string banner_url; // json: "banner_url" |
| @@ -374,6 +382,10 @@ enum Username { | ||
| 374 | 382 | NOWTHIS = "nowthis", // json: "nowthis" |
| 375 | 383 | } |
| 376 | 384 | |
| 385 | +Username Username_from_JSON(mixed json) { | |
| 386 | + return json; | |
| 387 | +} | |
| 388 | + | |
| 377 | 389 | class Meta { |
| 378 | 390 | string msg; // json: "msg" |
| 379 | 391 | string response_id; // json: "response_id" |
Test case
1 generated file · +12 −0test/inputs/json/misc/0e0c2.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -175,6 +175,10 @@ enum DetailLanguage { | ||
| 175 | 175 | TH = "th", // json: "th" |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | +DetailLanguage DetailLanguage_from_JSON(mixed json) { | |
| 179 | + return json; | |
| 180 | +} | |
| 181 | + | |
| 178 | 182 | class FavMovie { |
| 179 | 183 | bool follow; // json: "follow" |
| 180 | 184 | bool star; // json: "star" |
| @@ -238,11 +242,19 @@ enum Type { | ||
| 238 | 242 | BACKDROP = "Backdrop", // json: "Backdrop" |
| 239 | 243 | } |
| 240 | 244 | |
| 245 | +Type Type_from_JSON(mixed json) { | |
| 246 | + return json; | |
| 247 | +} | |
| 248 | + | |
| 241 | 249 | enum ResultLanguage { |
| 242 | 250 | FLUFFY_EN = "en", // json: "en" |
| 243 | 251 | EMPTY = "-", // json: "-" |
| 244 | 252 | } |
| 245 | 253 | |
| 254 | +ResultLanguage ResultLanguage_from_JSON(mixed json) { | |
| 255 | + return json; | |
| 256 | +} | |
| 257 | + | |
| 246 | 258 | class Video { |
| 247 | 259 | string kind; // json: "kind" |
| 248 | 260 | ResultLanguage language; // json: "language" |
Test case
1 generated file · +20 −0test/inputs/json/misc/10be4.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -88,6 +88,10 @@ enum Scheme { | ||
| 88 | 88 | DEP5 = "DEP5", // json: "DEP5" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 93 | 97 | DISCOURAGED = "discouraged", // json: "discouraged" |
| @@ -103,6 +107,10 @@ enum Keyword { | ||
| 103 | 107 | INTERNATIONAL = "international", // json: "international" |
| 104 | 108 | } |
| 105 | 109 | |
| 110 | +Keyword Keyword_from_JSON(mixed json) { | |
| 111 | + return json; | |
| 112 | +} | |
| 113 | + | |
| 106 | 114 | class Link { |
| 107 | 115 | Note note; // json: "note" |
| 108 | 116 | string url; // json: "url" |
| @@ -135,6 +143,10 @@ enum Note { | ||
| 135 | 143 | OSET_FOUNDATION_PAGE = "OSET Foundation Page", // json: "OSET Foundation Page" |
| 136 | 144 | } |
| 137 | 145 | |
| 146 | +Note Note_from_JSON(mixed json) { | |
| 147 | + return json; | |
| 148 | +} | |
| 149 | + | |
| 138 | 150 | class OtherName { |
| 139 | 151 | string name; // json: "name" |
| 140 | 152 | mixed|string note; // json: "note" |
| @@ -190,8 +202,16 @@ enum MediaType { | ||
| 190 | 202 | APPLICATION_PDF = "application/pdf", // json: "application/pdf" |
| 191 | 203 | } |
| 192 | 204 | |
| 205 | +MediaType MediaType_from_JSON(mixed json) { | |
| 206 | + return json; | |
| 207 | +} | |
| 208 | + | |
| 193 | 209 | enum Title { |
| 194 | 210 | HTML = "HTML", // json: "HTML" |
| 195 | 211 | PLAIN_TEXT = "Plain Text", // json: "Plain Text" |
| 196 | 212 | PDF = "PDF", // json: "PDF" |
| 197 | 213 | } |
| 214 | + | |
| 215 | +Title Title_from_JSON(mixed json) { | |
| 216 | + return json; | |
| 217 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/127a1.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -327,10 +327,18 @@ enum Rating { | ||
| 327 | 327 | G = "g", // json: "g" |
| 328 | 328 | } |
| 329 | 329 | |
| 330 | +Rating Rating_from_JSON(mixed json) { | |
| 331 | + return json; | |
| 332 | +} | |
| 333 | + | |
| 330 | 334 | enum Type { |
| 331 | 335 | GIF = "gif", // json: "gif" |
| 332 | 336 | } |
| 333 | 337 | |
| 338 | +Type Type_from_JSON(mixed json) { | |
| 339 | + return json; | |
| 340 | +} | |
| 341 | + | |
| 334 | 342 | class User { |
| 335 | 343 | string avatar_url; // json: "avatar_url" |
| 336 | 344 | string banner_url; // json: "banner_url" |
| @@ -373,6 +381,10 @@ enum Username { | ||
| 373 | 381 | DISNEYZOOTOPIA = "disneyzootopia", // json: "disneyzootopia" |
| 374 | 382 | } |
| 375 | 383 | |
| 384 | +Username Username_from_JSON(mixed json) { | |
| 385 | + return json; | |
| 386 | +} | |
| 387 | + | |
| 376 | 388 | class Meta { |
| 377 | 389 | string msg; // json: "msg" |
| 378 | 390 | string response_id; // json: "response_id" |
Test case
1 generated file · +4 −0test/inputs/json/misc/1a7f5.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +28 −0test/inputs/json/misc/1b409.json
Mpikedefault / TopLevel.pmod+28 −0
| @@ -178,6 +178,10 @@ enum Party { | ||
| 178 | 178 | DEMOCRAT = "Democrat", // json: "Democrat" |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | +Party Party_from_JSON(mixed json) { | |
| 182 | + return json; | |
| 183 | +} | |
| 184 | + | |
| 181 | 185 | class Person { |
| 182 | 186 | string bioguideid; // json: "bioguideid" |
| 183 | 187 | string birthday; // json: "birthday" |
| @@ -254,11 +258,19 @@ enum Gender { | ||
| 254 | 258 | FEMALE = "female", // json: "female" |
| 255 | 259 | } |
| 256 | 260 | |
| 261 | +Gender Gender_from_JSON(mixed json) { | |
| 262 | + return json; | |
| 263 | +} | |
| 264 | + | |
| 257 | 265 | enum GenderLabel { |
| 258 | 266 | GENDER_LABEL_MALE = "Male", // json: "Male" |
| 259 | 267 | GENDER_LABEL_FEMALE = "Female", // json: "Female" |
| 260 | 268 | } |
| 261 | 269 | |
| 270 | +GenderLabel GenderLabel_from_JSON(mixed json) { | |
| 271 | + return json; | |
| 272 | +} | |
| 273 | + | |
| 262 | 274 | enum Namemod { |
| 263 | 275 | EMPTY = "", // json: "" |
| 264 | 276 | JR = "Jr.", // json: "Jr." |
| @@ -267,17 +279,33 @@ enum Namemod { | ||
| 267 | 279 | IV = "IV", // json: "IV" |
| 268 | 280 | } |
| 269 | 281 | |
| 282 | +Namemod Namemod_from_JSON(mixed json) { | |
| 283 | + return json; | |
| 284 | +} | |
| 285 | + | |
| 270 | 286 | enum RoleType { |
| 271 | 287 | REPRESENTATIVE = "representative", // json: "representative" |
| 272 | 288 | } |
| 273 | 289 | |
| 290 | +RoleType RoleType_from_JSON(mixed json) { | |
| 291 | + return json; | |
| 292 | +} | |
| 293 | + | |
| 274 | 294 | enum RoleTypeLabel { |
| 275 | 295 | ROLE_TYPE_LABEL_REPRESENTATIVE = "Representative", // json: "Representative" |
| 276 | 296 | DELEGATE = "Delegate", // json: "Delegate" |
| 277 | 297 | RESIDENT_COMMISSIONER = "Resident Commissioner", // json: "Resident Commissioner" |
| 278 | 298 | } |
| 279 | 299 | |
| 300 | +RoleTypeLabel RoleTypeLabel_from_JSON(mixed json) { | |
| 301 | + return json; | |
| 302 | +} | |
| 303 | + | |
| 280 | 304 | enum Title { |
| 281 | 305 | REP = "Rep.", // json: "Rep." |
| 282 | 306 | COMMISH = "Commish.", // json: "Commish." |
| 283 | 307 | } |
| 308 | + | |
| 309 | +Title Title_from_JSON(mixed json) { | |
| 310 | + return json; | |
| 311 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/262f0.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -300,6 +300,10 @@ enum Text { | ||
| 300 | 300 | PARTLY_CLOUDY = "Partly Cloudy", // json: "Partly Cloudy" |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | +Text Text_from_JSON(mixed json) { | |
| 304 | + return json; | |
| 305 | +} | |
| 306 | + | |
| 303 | 307 | class Forecast { |
| 304 | 308 | string code; // json: "code" |
| 305 | 309 | string date; // json: "date" |
Test case
1 generated file · +8 −0test/inputs/json/misc/26b49.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -333,10 +333,18 @@ enum Rating { | ||
| 333 | 333 | Y = "y", // json: "y" |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | +Rating Rating_from_JSON(mixed json) { | |
| 337 | + return json; | |
| 338 | +} | |
| 339 | + | |
| 336 | 340 | enum Type { |
| 337 | 341 | GIF = "gif", // json: "gif" |
| 338 | 342 | } |
| 339 | 343 | |
| 344 | +Type Type_from_JSON(mixed json) { | |
| 345 | + return json; | |
| 346 | +} | |
| 347 | + | |
| 340 | 348 | class User { |
| 341 | 349 | string avatar_url; // json: "avatar_url" |
| 342 | 350 | string banner_url; // json: "banner_url" |
Test case
1 generated file · +28 −0test/inputs/json/misc/27332.json
Mpikedefault / TopLevel.pmod+28 −0
| @@ -303,6 +303,10 @@ enum Domain { | ||
| 303 | 303 | I_REDD_IT = "i.redd.it", // json: "i.redd.it" |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | +Domain Domain_from_JSON(mixed json) { | |
| 307 | + return json; | |
| 308 | +} | |
| 309 | + | |
| 306 | 310 | class Media { |
| 307 | 311 | Oembed oembed; // json: "oembed" |
| 308 | 312 | Domain type; // json: "type" |
| @@ -413,6 +417,10 @@ enum PostHint { | ||
| 413 | 417 | IMAGE = "image", // json: "image" |
| 414 | 418 | } |
| 415 | 419 | |
| 420 | +PostHint PostHint_from_JSON(mixed json) { | |
| 421 | + return json; | |
| 422 | +} | |
| 423 | + | |
| 416 | 424 | class Preview { |
| 417 | 425 | bool enabled; // json: "enabled" |
| 418 | 426 | array(Image) images; // json: "images" |
| @@ -511,18 +519,38 @@ enum Subreddit { | ||
| 511 | 519 | PICS = "pics", // json: "pics" |
| 512 | 520 | } |
| 513 | 521 | |
| 522 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 523 | + return json; | |
| 524 | +} | |
| 525 | + | |
| 514 | 526 | enum SubredditId { |
| 515 | 527 | T5_2_QH0_U = "t5_2qh0u", // json: "t5_2qh0u" |
| 516 | 528 | } |
| 517 | 529 | |
| 530 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 531 | + return json; | |
| 532 | +} | |
| 533 | + | |
| 518 | 534 | enum SubredditNamePrefixed { |
| 519 | 535 | R_PICS = "r/pics", // json: "r/pics" |
| 520 | 536 | } |
| 521 | 537 | |
| 538 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 539 | + return json; | |
| 540 | +} | |
| 541 | + | |
| 522 | 542 | enum SubredditType { |
| 523 | 543 | PUBLIC = "public", // json: "public" |
| 524 | 544 | } |
| 525 | 545 | |
| 546 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 547 | + return json; | |
| 548 | +} | |
| 549 | + | |
| 526 | 550 | enum Kind { |
| 527 | 551 | T3 = "t3", // json: "t3" |
| 528 | 552 | } |
| 553 | + | |
| 554 | +Kind Kind_from_JSON(mixed json) { | |
| 555 | + return json; | |
| 556 | +} |
Test case
1 generated file · +32 −0test/inputs/json/misc/29f47.json
Mpikedefault / TopLevel.pmod+32 −0
| @@ -300,11 +300,19 @@ enum Distinguished { | ||
| 300 | 300 | ADMIN = "admin", // json: "admin" |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | +Distinguished Distinguished_from_JSON(mixed json) { | |
| 304 | + return json; | |
| 305 | +} | |
| 306 | + | |
| 303 | 307 | enum Domain { |
| 304 | 308 | SELF_ANNOUNCEMENTS = "self.announcements", // json: "self.announcements" |
| 305 | 309 | I_REDD_IT = "i.redd.it", // json: "i.redd.it" |
| 306 | 310 | } |
| 307 | 311 | |
| 312 | +Domain Domain_from_JSON(mixed json) { | |
| 313 | + return json; | |
| 314 | +} | |
| 315 | + | |
| 308 | 316 | typedef bool|float Edited; |
| 309 | 317 | |
| 310 | 318 | Edited Edited_from_JSON(mixed json) { |
| @@ -332,6 +340,10 @@ enum PostHint { | ||
| 332 | 340 | IMAGE = "image", // json: "image" |
| 333 | 341 | } |
| 334 | 342 | |
| 343 | +PostHint PostHint_from_JSON(mixed json) { | |
| 344 | + return json; | |
| 345 | +} | |
| 346 | + | |
| 335 | 347 | class Preview { |
| 336 | 348 | bool enabled; // json: "enabled" |
| 337 | 349 | array(Image) images; // json: "images" |
| @@ -460,18 +472,38 @@ enum Subreddit { | ||
| 460 | 472 | ANNOUNCEMENTS = "announcements", // json: "announcements" |
| 461 | 473 | } |
| 462 | 474 | |
| 475 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 476 | + return json; | |
| 477 | +} | |
| 478 | + | |
| 463 | 479 | enum SubredditId { |
| 464 | 480 | T5_2_R0_IJ = "t5_2r0ij", // json: "t5_2r0ij" |
| 465 | 481 | } |
| 466 | 482 | |
| 483 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 484 | + return json; | |
| 485 | +} | |
| 486 | + | |
| 467 | 487 | enum SubredditNamePrefixed { |
| 468 | 488 | R_ANNOUNCEMENTS = "r/announcements", // json: "r/announcements" |
| 469 | 489 | } |
| 470 | 490 | |
| 491 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 492 | + return json; | |
| 493 | +} | |
| 494 | + | |
| 471 | 495 | enum SubredditType { |
| 472 | 496 | RESTRICTED = "restricted", // json: "restricted" |
| 473 | 497 | } |
| 474 | 498 | |
| 499 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 500 | + return json; | |
| 501 | +} | |
| 502 | + | |
| 475 | 503 | enum Kind { |
| 476 | 504 | T3 = "t3", // json: "t3" |
| 477 | 505 | } |
| 506 | + | |
| 507 | +Kind Kind_from_JSON(mixed json) { | |
| 508 | + return json; | |
| 509 | +} |
Test case
1 generated file · +44 −0test/inputs/json/misc/2d4e2.json
Mpikedefault / TopLevel.pmod+44 −0
| @@ -153,6 +153,10 @@ enum Party { | ||
| 153 | 153 | INDEPENDENT = "Independent", // json: "Independent" |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | +Party Party_from_JSON(mixed json) { | |
| 157 | + return json; | |
| 158 | +} | |
| 159 | + | |
| 156 | 160 | class Extra { |
| 157 | 161 | string address; // json: "address" |
| 158 | 162 | string contact_form; // json: "contact_form" |
| @@ -261,47 +265,87 @@ enum Gender { | ||
| 261 | 265 | FEMALE = "female", // json: "female" |
| 262 | 266 | } |
| 263 | 267 | |
| 268 | +Gender Gender_from_JSON(mixed json) { | |
| 269 | + return json; | |
| 270 | +} | |
| 271 | + | |
| 264 | 272 | enum GenderLabel { |
| 265 | 273 | GENDER_LABEL_MALE = "Male", // json: "Male" |
| 266 | 274 | GENDER_LABEL_FEMALE = "Female", // json: "Female" |
| 267 | 275 | } |
| 268 | 276 | |
| 277 | +GenderLabel GenderLabel_from_JSON(mixed json) { | |
| 278 | + return json; | |
| 279 | +} | |
| 280 | + | |
| 269 | 281 | enum Namemod { |
| 270 | 282 | EMPTY = "", // json: "" |
| 271 | 283 | III = "III", // json: "III" |
| 272 | 284 | JR = "Jr.", // json: "Jr." |
| 273 | 285 | } |
| 274 | 286 | |
| 287 | +Namemod Namemod_from_JSON(mixed json) { | |
| 288 | + return json; | |
| 289 | +} | |
| 290 | + | |
| 275 | 291 | enum RoleType { |
| 276 | 292 | SENATOR = "senator", // json: "senator" |
| 277 | 293 | } |
| 278 | 294 | |
| 295 | +RoleType RoleType_from_JSON(mixed json) { | |
| 296 | + return json; | |
| 297 | +} | |
| 298 | + | |
| 279 | 299 | enum RoleTypeLabel { |
| 280 | 300 | ROLE_TYPE_LABEL_SENATOR = "Senator", // json: "Senator" |
| 281 | 301 | } |
| 282 | 302 | |
| 303 | +RoleTypeLabel RoleTypeLabel_from_JSON(mixed json) { | |
| 304 | + return json; | |
| 305 | +} | |
| 306 | + | |
| 283 | 307 | enum SenatorClass { |
| 284 | 308 | CLASS2 = "class2", // json: "class2" |
| 285 | 309 | CLASS1 = "class1", // json: "class1" |
| 286 | 310 | CLASS3 = "class3", // json: "class3" |
| 287 | 311 | } |
| 288 | 312 | |
| 313 | +SenatorClass SenatorClass_from_JSON(mixed json) { | |
| 314 | + return json; | |
| 315 | +} | |
| 316 | + | |
| 289 | 317 | enum SenatorClassLabel { |
| 290 | 318 | CLASS_2 = "Class 2", // json: "Class 2" |
| 291 | 319 | CLASS_1 = "Class 1", // json: "Class 1" |
| 292 | 320 | CLASS_3 = "Class 3", // json: "Class 3" |
| 293 | 321 | } |
| 294 | 322 | |
| 323 | +SenatorClassLabel SenatorClassLabel_from_JSON(mixed json) { | |
| 324 | + return json; | |
| 325 | +} | |
| 326 | + | |
| 295 | 327 | enum SenatorRank { |
| 296 | 328 | SENIOR = "senior", // json: "senior" |
| 297 | 329 | JUNIOR = "junior", // json: "junior" |
| 298 | 330 | } |
| 299 | 331 | |
| 332 | +SenatorRank SenatorRank_from_JSON(mixed json) { | |
| 333 | + return json; | |
| 334 | +} | |
| 335 | + | |
| 300 | 336 | enum SenatorRankLabel { |
| 301 | 337 | SENATOR_RANK_LABEL_SENIOR = "Senior", // json: "Senior" |
| 302 | 338 | SENATOR_RANK_LABEL_JUNIOR = "Junior", // json: "Junior" |
| 303 | 339 | } |
| 304 | 340 | |
| 341 | +SenatorRankLabel SenatorRankLabel_from_JSON(mixed json) { | |
| 342 | + return json; | |
| 343 | +} | |
| 344 | + | |
| 305 | 345 | enum Title { |
| 306 | 346 | SEN = "Sen.", // json: "Sen." |
| 307 | 347 | } |
| 348 | + | |
| 349 | +Title Title_from_JSON(mixed json) { | |
| 350 | + return json; | |
| 351 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/2df80.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -119,6 +119,10 @@ enum Id { | ||
| 119 | 119 | NAC = "NAC", // json: "NAC" |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | +Id Id_from_JSON(mixed json) { | |
| 123 | + return json; | |
| 124 | +} | |
| 125 | + | |
| 122 | 126 | enum Value { |
| 123 | 127 | VALUE = "", // json: "" |
| 124 | 128 | SOUTH_ASIA = "South Asia", // json: "South Asia" |
| @@ -144,6 +148,10 @@ enum Value { | ||
| 144 | 148 | NORTH_AMERICA = "North America", // json: "North America" |
| 145 | 149 | } |
| 146 | 150 | |
| 151 | +Value Value_from_JSON(mixed json) { | |
| 152 | + return json; | |
| 153 | +} | |
| 154 | + | |
| 147 | 155 | class FluffyTopLevel { |
| 148 | 156 | int page; // json: "page" |
| 149 | 157 | int pages; // json: "pages" |
Test case
1 generated file · +20 −0test/inputs/json/misc/32431.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -97,6 +97,10 @@ enum GeometryType { | ||
| 97 | 97 | POINT = "Point", // json: "Point" |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | +GeometryType GeometryType_from_JSON(mixed json) { | |
| 101 | + return json; | |
| 102 | +} | |
| 103 | + | |
| 100 | 104 | class Properties { |
| 101 | 105 | mixed alert; // json: "alert" |
| 102 | 106 | mixed cdi; // json: "cdi" |
| @@ -198,19 +202,35 @@ enum MagType { | ||
| 198 | 202 | MB = "mb", // json: "mb" |
| 199 | 203 | } |
| 200 | 204 | |
| 205 | +MagType MagType_from_JSON(mixed json) { | |
| 206 | + return json; | |
| 207 | +} | |
| 208 | + | |
| 201 | 209 | enum Status { |
| 202 | 210 | AUTOMATIC = "automatic", // json: "automatic" |
| 203 | 211 | REVIEWED = "reviewed", // json: "reviewed" |
| 204 | 212 | } |
| 205 | 213 | |
| 214 | +Status Status_from_JSON(mixed json) { | |
| 215 | + return json; | |
| 216 | +} | |
| 217 | + | |
| 206 | 218 | enum PropertiesType { |
| 207 | 219 | EARTHQUAKE = "earthquake", // json: "earthquake" |
| 208 | 220 | } |
| 209 | 221 | |
| 222 | +PropertiesType PropertiesType_from_JSON(mixed json) { | |
| 223 | + return json; | |
| 224 | +} | |
| 225 | + | |
| 210 | 226 | enum FeatureType { |
| 211 | 227 | FEATURE = "Feature", // json: "Feature" |
| 212 | 228 | } |
| 213 | 229 | |
| 230 | +FeatureType FeatureType_from_JSON(mixed json) { | |
| 231 | + return json; | |
| 232 | +} | |
| 233 | + | |
| 214 | 234 | class Metadata { |
| 215 | 235 | string api; // json: "api" |
| 216 | 236 | int count; // json: "count" |
Test case
1 generated file · +12 −0test/inputs/json/misc/337ed.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -225,13 +225,25 @@ enum Status { | ||
| 225 | 225 | INACTIVE = "inactive", // json: "inactive" |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | +Status Status_from_JSON(mixed json) { | |
| 229 | + return json; | |
| 230 | +} | |
| 231 | + | |
| 228 | 232 | enum CustomIncomeType { |
| 229 | 233 | PUBLIC = "public", // json: "public" |
| 230 | 234 | OTHER = "other", // json: "other" |
| 231 | 235 | } |
| 232 | 236 | |
| 237 | +CustomIncomeType CustomIncomeType_from_JSON(mixed json) { | |
| 238 | + return json; | |
| 239 | +} | |
| 240 | + | |
| 233 | 241 | enum ResultType { |
| 234 | 242 | FINANCIAL_DATA_NGO = "FinancialDataNGO", // json: "FinancialDataNGO" |
| 235 | 243 | FINANCIAL_DATA_LAWYER = "FinancialDataLawyer", // json: "FinancialDataLawyer" |
| 236 | 244 | FINANCIAL_DATA_TRADE_ASSOCIATION = "FinancialDataTradeAssociation", // json: "FinancialDataTradeAssociation" |
| 237 | 245 | } |
| 246 | + | |
| 247 | +ResultType ResultType_from_JSON(mixed json) { | |
| 248 | + return json; | |
| 249 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/33d2e.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -94,6 +94,10 @@ enum Gender { | ||
| 94 | 94 | ORG = "org", // json: "org" |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | +Gender Gender_from_JSON(mixed json) { | |
| 98 | + return json; | |
| 99 | +} | |
| 100 | + | |
| 97 | 101 | class Prize { |
| 98 | 102 | array(AffiliationElement) affiliations; // json: "affiliations" |
| 99 | 103 | Category|mixed category; // json: "category" |
| @@ -169,3 +173,7 @@ enum Category { | ||
| 169 | 173 | LITERATURE = "literature", // json: "literature" |
| 170 | 174 | ECONOMICS = "economics", // json: "economics" |
| 171 | 175 | } |
| 176 | + | |
| 177 | +Category Category_from_JSON(mixed json) { | |
| 178 | + return json; | |
| 179 | +} |
Test case
1 generated file · +24 −0test/inputs/json/misc/34702.json
Mpikedefault / TopLevel.pmod+24 −0
| @@ -143,10 +143,18 @@ enum GeometryType { | ||
| 143 | 143 | POINT = "Point", // json: "Point" |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | +GeometryType GeometryType_from_JSON(mixed json) { | |
| 147 | + return json; | |
| 148 | +} | |
| 149 | + | |
| 146 | 150 | enum GeometryName { |
| 147 | 151 | GEOM = "geom", // json: "geom" |
| 148 | 152 | } |
| 149 | 153 | |
| 154 | +GeometryName GeometryName_from_JSON(mixed json) { | |
| 155 | + return json; | |
| 156 | +} | |
| 157 | + | |
| 150 | 158 | class FeatureProperties { |
| 151 | 159 | string division; // json: "division" |
| 152 | 160 | float fax; // json: "fax" |
| @@ -222,6 +230,10 @@ enum FireBanR { | ||
| 222 | 230 | BALLARAT = "Ballarat", // json: "Ballarat" |
| 223 | 231 | } |
| 224 | 232 | |
| 233 | +FireBanR FireBanR_from_JSON(mixed json) { | |
| 234 | + return json; | |
| 235 | +} | |
| 236 | + | |
| 225 | 237 | enum Region { |
| 226 | 238 | EASTERN = "Eastern", // json: "Eastern" |
| 227 | 239 | NORTHERN_METRO = "Northern Metro", // json: "Northern Metro" |
| @@ -229,6 +241,10 @@ enum Region { | ||
| 229 | 241 | SOUTHERN_METRO = "Southern Metro", // json: "Southern Metro" |
| 230 | 242 | } |
| 231 | 243 | |
| 244 | +Region Region_from_JSON(mixed json) { | |
| 245 | + return json; | |
| 246 | +} | |
| 247 | + | |
| 232 | 248 | enum PropertiesType { |
| 233 | 249 | STREET = "STREET", // json: "STREET" |
| 234 | 250 | AVENUE = "AVENUE", // json: "AVENUE" |
| @@ -248,6 +264,14 @@ enum PropertiesType { | ||
| 248 | 264 | RD = "RD", // json: "RD" |
| 249 | 265 | } |
| 250 | 266 | |
| 267 | +PropertiesType PropertiesType_from_JSON(mixed json) { | |
| 268 | + return json; | |
| 269 | +} | |
| 270 | + | |
| 251 | 271 | enum FeatureType { |
| 252 | 272 | FEATURE = "Feature", // json: "Feature" |
| 253 | 273 | } |
| 274 | + | |
| 275 | +FeatureType FeatureType_from_JSON(mixed json) { | |
| 276 | + return json; | |
| 277 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/3536b.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -88,12 +88,20 @@ enum Scheme { | ||
| 88 | 88 | TROVE = "Trove", // json: "Trove" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | DISCOURAGED = "discouraged", // json: "discouraged" |
| 93 | 97 | OBSOLETE = "obsolete", // json: "obsolete" |
| 94 | 98 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 95 | 99 | } |
| 96 | 100 | |
| 101 | +Keyword Keyword_from_JSON(mixed json) { | |
| 102 | + return json; | |
| 103 | +} | |
| 104 | + | |
| 97 | 105 | class Link { |
| 98 | 106 | string note; // json: "note" |
| 99 | 107 | string url; // json: "url" |
Test case
1 generated file · +4 −0test/inputs/json/misc/3f1ce.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -333,6 +333,10 @@ enum Text { | ||
| 333 | 333 | THUNDERSTORMS = "Thunderstorms", // json: "Thunderstorms" |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | +Text Text_from_JSON(mixed json) { | |
| 337 | + return json; | |
| 338 | +} | |
| 339 | + | |
| 336 | 340 | class Guid { |
| 337 | 341 | string is_perma_link; // json: "isPermaLink" |
Test case
1 generated file · +8 −0test/inputs/json/misc/437e7.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -324,10 +324,18 @@ enum Rating { | ||
| 324 | 324 | PG_13 = "pg-13", // json: "pg-13" |
| 325 | 325 | } |
| 326 | 326 | |
| 327 | +Rating Rating_from_JSON(mixed json) { | |
| 328 | + return json; | |
| 329 | +} | |
| 330 | + | |
| 327 | 331 | enum Type { |
| 328 | 332 | GIF = "gif", // json: "gif" |
| 329 | 333 | } |
| 330 | 334 | |
| 335 | +Type Type_from_JSON(mixed json) { | |
| 336 | + return json; | |
| 337 | +} | |
| 338 | + | |
| 331 | 339 | class User { |
| 332 | 340 | string avatar_url; // json: "avatar_url" |
| 333 | 341 | string banner_url; // json: "banner_url" |
Test case
1 generated file · +4 −0test/inputs/json/misc/458db.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -192,3 +192,7 @@ Component Component_from_JSON(mixed json) { | ||
| 192 | 192 | enum Name { |
| 193 | 193 | OFFICE_ON_VIOLENCE_AGAINST_WOMEN = "Office on Violence Against Women", // json: "Office on Violence Against Women" |
| 194 | 194 | } |
| 195 | + | |
| 196 | +Name Name_from_JSON(mixed json) { | |
| 197 | + return json; | |
| 198 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/4a455.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -143,10 +143,18 @@ enum GeometryType { | ||
| 143 | 143 | MULTI_POINT = "MultiPoint", // json: "MultiPoint" |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | +GeometryType GeometryType_from_JSON(mixed json) { | |
| 147 | + return json; | |
| 148 | +} | |
| 149 | + | |
| 146 | 150 | enum GeometryName { |
| 147 | 151 | GEOM = "geom", // json: "geom" |
| 148 | 152 | } |
| 149 | 153 | |
| 154 | +GeometryName GeometryName_from_JSON(mixed json) { | |
| 155 | + return json; | |
| 156 | +} | |
| 157 | + | |
| 150 | 158 | class FeatureProperties { |
| 151 | 159 | string facebookaccount; // json: "facebookaccount" |
| 152 | 160 | string frequencyfinderurl; // json: "frequencyfinderurl" |
| @@ -185,3 +193,7 @@ FeatureProperties FeatureProperties_from_JSON(mixed json) { | ||
| 185 | 193 | enum FeatureType { |
| 186 | 194 | FEATURE = "Feature", // json: "Feature" |
| 187 | 195 | } |
| 196 | + | |
| 197 | +FeatureType FeatureType_from_JSON(mixed json) { | |
| 198 | + return json; | |
| 199 | +} |
Test case
1 generated file · +24 −0test/inputs/json/misc/4d6fb.json
Mpikedefault / TopLevel.pmod+24 −0
| @@ -409,6 +409,10 @@ enum PostHint { | ||
| 409 | 409 | LINK = "link", // json: "link" |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | +PostHint PostHint_from_JSON(mixed json) { | |
| 413 | + return json; | |
| 414 | +} | |
| 415 | + | |
| 412 | 416 | class Preview { |
| 413 | 417 | bool enabled; // json: "enabled" |
| 414 | 418 | array(Image) images; // json: "images" |
| @@ -507,18 +511,38 @@ enum Subreddit { | ||
| 507 | 511 | TODAYILEARNED = "todayilearned", // json: "todayilearned" |
| 508 | 512 | } |
| 509 | 513 | |
| 514 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 515 | + return json; | |
| 516 | +} | |
| 517 | + | |
| 510 | 518 | enum SubredditId { |
| 511 | 519 | T5_2_QQJC = "t5_2qqjc", // json: "t5_2qqjc" |
| 512 | 520 | } |
| 513 | 521 | |
| 522 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 523 | + return json; | |
| 524 | +} | |
| 525 | + | |
| 514 | 526 | enum SubredditNamePrefixed { |
| 515 | 527 | R_TODAYILEARNED = "r/todayilearned", // json: "r/todayilearned" |
| 516 | 528 | } |
| 517 | 529 | |
| 530 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 531 | + return json; | |
| 532 | +} | |
| 533 | + | |
| 518 | 534 | enum SubredditType { |
| 519 | 535 | PUBLIC = "public", // json: "public" |
| 520 | 536 | } |
| 521 | 537 | |
| 538 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 539 | + return json; | |
| 540 | +} | |
| 541 | + | |
| 522 | 542 | enum Kind { |
| 523 | 543 | T3 = "t3", // json: "t3" |
| 524 | 544 | } |
| 545 | + | |
| 546 | +Kind Kind_from_JSON(mixed json) { | |
| 547 | + return json; | |
| 548 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/54d32.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -105,3 +105,7 @@ enum Status { | ||
| 105 | 105 | INACTIVE = "inactive", // json: "inactive" |
| 106 | 106 | ACTIVE = "active", // json: "active" |
| 107 | 107 | } |
| 108 | + | |
| 109 | +Status Status_from_JSON(mixed json) { | |
| 110 | + return json; | |
| 111 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/570ec.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -88,6 +88,10 @@ enum Scheme { | ||
| 88 | 88 | TROVE = "Trove", // json: "Trove" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | class Link { |
| 92 | 96 | string note; // json: "note" |
| 93 | 97 | string url; // json: "url" |
Test case
1 generated file · +4 −0test/inputs/json/misc/5f7fe.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -303,6 +303,10 @@ enum TypeName { | ||
| 303 | 303 | TEXT = "text", // json: "text" |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | +TypeName TypeName_from_JSON(mixed json) { | |
| 307 | + return json; | |
| 308 | +} | |
| 309 | + | |
| 306 | 310 | class Format { |
| 307 | 311 | mixed|string align; // json: "align" |
| 308 | 312 | mixed|string view; // json: "view" |
Test case
1 generated file · +4 −0test/inputs/json/misc/617e8.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -306,6 +306,10 @@ enum TypeName { | ||
| 306 | 306 | TEXT = "text", // json: "text" |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | +TypeName TypeName_from_JSON(mixed json) { | |
| 310 | + return json; | |
| 311 | +} | |
| 312 | + | |
| 309 | 313 | class Format { |
| 310 | 314 | mixed|string align; // json: "align" |
| 311 | 315 | mixed|string view; // json: "view" |
Test case
1 generated file · +24 −0test/inputs/json/misc/65dec.json
Mpikedefault / TopLevel.pmod+24 −0
| @@ -171,6 +171,10 @@ enum ColorIdentity { | ||
| 171 | 171 | U = "U", // json: "U" |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | +ColorIdentity ColorIdentity_from_JSON(mixed json) { | |
| 175 | + return json; | |
| 176 | +} | |
| 177 | + | |
| 174 | 178 | enum Watermark { |
| 175 | 179 | WHITE = "White", // json: "White" |
| 176 | 180 | RED = "Red", // json: "Red" |
| @@ -179,10 +183,18 @@ enum Watermark { | ||
| 179 | 183 | BLUE = "Blue", // json: "Blue" |
| 180 | 184 | } |
| 181 | 185 | |
| 186 | +Watermark Watermark_from_JSON(mixed json) { | |
| 187 | + return json; | |
| 188 | +} | |
| 189 | + | |
| 182 | 190 | enum Layout { |
| 183 | 191 | NORMAL = "normal", // json: "normal" |
| 184 | 192 | } |
| 185 | 193 | |
| 194 | +Layout Layout_from_JSON(mixed json) { | |
| 195 | + return json; | |
| 196 | +} | |
| 197 | + | |
| 186 | 198 | class LegalityElement { |
| 187 | 199 | string format; // json: "format" |
| 188 | 200 | LegalityEnum legality; // json: "legality" |
| @@ -212,6 +224,10 @@ enum LegalityEnum { | ||
| 212 | 224 | RESTRICTED = "Restricted", // json: "Restricted" |
| 213 | 225 | } |
| 214 | 226 | |
| 227 | +LegalityEnum LegalityEnum_from_JSON(mixed json) { | |
| 228 | + return json; | |
| 229 | +} | |
| 230 | + | |
| 215 | 231 | enum Rarity { |
| 216 | 232 | UNCOMMON = "Uncommon", // json: "Uncommon" |
| 217 | 233 | RARE = "Rare", // json: "Rare" |
| @@ -219,6 +235,10 @@ enum Rarity { | ||
| 219 | 235 | BASIC_LAND = "Basic Land", // json: "Basic Land" |
| 220 | 236 | } |
| 221 | 237 | |
| 238 | +Rarity Rarity_from_JSON(mixed json) { | |
| 239 | + return json; | |
| 240 | +} | |
| 241 | + | |
| 222 | 242 | class Ruling { |
| 223 | 243 | string date; // json: "date" |
| 224 | 244 | string text; // json: "text" |
| @@ -250,3 +270,7 @@ enum Type { | ||
| 250 | 270 | ENCHANTMENT = "Enchantment", // json: "Enchantment" |
| 251 | 271 | SORCERY = "Sorcery", // json: "Sorcery" |
| 252 | 272 | } |
| 273 | + | |
| 274 | +Type Type_from_JSON(mixed json) { | |
| 275 | + return json; | |
| 276 | +} |
Test case
1 generated file · +20 −0test/inputs/json/misc/66121.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -88,12 +88,20 @@ enum Scheme { | ||
| 88 | 88 | DEP5 = "DEP5", // json: "DEP5" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 93 | 97 | DISCOURAGED = "discouraged", // json: "discouraged" |
| 94 | 98 | REDUNDANT = "redundant", // json: "redundant" |
| 95 | 99 | } |
| 96 | 100 | |
| 101 | +Keyword Keyword_from_JSON(mixed json) { | |
| 102 | + return json; | |
| 103 | +} | |
| 104 | + | |
| 97 | 105 | class Link { |
| 98 | 106 | Note note; // json: "note" |
| 99 | 107 | string url; // json: "url" |
| @@ -121,6 +129,10 @@ enum Note { | ||
| 121 | 129 | OSI_PAGE = "OSI Page", // json: "OSI Page" |
| 122 | 130 | } |
| 123 | 131 | |
| 132 | +Note Note_from_JSON(mixed json) { | |
| 133 | + return json; | |
| 134 | +} | |
| 135 | + | |
| 124 | 136 | class Text { |
| 125 | 137 | MediaType media_type; // json: "media_type" |
| 126 | 138 | Title title; // json: "title" |
| @@ -151,6 +163,14 @@ enum MediaType { | ||
| 151 | 163 | TEXT_HTML = "text/html", // json: "text/html" |
| 152 | 164 | } |
| 153 | 165 | |
| 166 | +MediaType MediaType_from_JSON(mixed json) { | |
| 167 | + return json; | |
| 168 | +} | |
| 169 | + | |
| 154 | 170 | enum Title { |
| 155 | 171 | HTML = "HTML", // json: "HTML" |
| 156 | 172 | } |
| 173 | + | |
| 174 | +Title Title_from_JSON(mixed json) { | |
| 175 | + return json; | |
| 176 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/6de06.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -407,6 +407,10 @@ enum PostHint { | ||
| 407 | 407 | RICH_VIDEO = "rich:video", // json: "rich:video" |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | +PostHint PostHint_from_JSON(mixed json) { | |
| 411 | + return json; | |
| 412 | +} | |
| 413 | + | |
| 410 | 414 | class Preview { |
| 411 | 415 | bool enabled; // json: "enabled" |
| 412 | 416 | array(Image) images; // json: "images" |
| @@ -541,6 +545,14 @@ enum SubredditType { | ||
| 541 | 545 | PUBLIC = "public", // json: "public" |
| 542 | 546 | } |
| 543 | 547 | |
| 548 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 549 | + return json; | |
| 550 | +} | |
| 551 | + | |
| 544 | 552 | enum Kind { |
| 545 | 553 | T3 = "t3", // json: "t3" |
| 546 | 554 | } |
| 555 | + | |
| 556 | +Kind Kind_from_JSON(mixed json) { | |
| 557 | + return json; | |
| 558 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/6dec6.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -335,6 +335,10 @@ enum Text { | ||
| 335 | 335 | PARTLY_CLOUDY = "Partly Cloudy", // json: "Partly Cloudy" |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | +Text Text_from_JSON(mixed json) { | |
| 339 | + return json; | |
| 340 | +} | |
| 341 | + | |
| 338 | 342 | class Guid { |
| 339 | 343 | string is_perma_link; // json: "isPermaLink" |
Test case
1 generated file · +4 −0test/inputs/json/misc/734ad.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -261,3 +261,7 @@ enum Status { | ||
| 261 | 261 | ACTIVE = "active", // json: "active" |
| 262 | 262 | INACTIVE = "inactive", // json: "inactive" |
| 263 | 263 | } |
| 264 | + | |
| 265 | +Status Status_from_JSON(mixed json) { | |
| 266 | + return json; | |
| 267 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/7681c.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -329,10 +329,18 @@ enum Rating { | ||
| 329 | 329 | PG_13 = "pg-13", // json: "pg-13" |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | +Rating Rating_from_JSON(mixed json) { | |
| 333 | + return json; | |
| 334 | +} | |
| 335 | + | |
| 332 | 336 | enum Type { |
| 333 | 337 | GIF = "gif", // json: "gif" |
| 334 | 338 | } |
| 335 | 339 | |
| 340 | +Type Type_from_JSON(mixed json) { | |
| 341 | + return json; | |
| 342 | +} | |
| 343 | + | |
| 336 | 344 | class User { |
| 337 | 345 | string avatar_url; // json: "avatar_url" |
| 338 | 346 | string banner_url; // json: "banner_url" |
| @@ -375,6 +383,10 @@ enum Username { | ||
| 375 | 383 | ORIGINALS = "Originals", // json: "Originals" |
| 376 | 384 | } |
| 377 | 385 | |
| 386 | +Username Username_from_JSON(mixed json) { | |
| 387 | + return json; | |
| 388 | +} | |
| 389 | + | |
| 378 | 390 | class Meta { |
| 379 | 391 | string msg; // json: "msg" |
| 380 | 392 | string response_id; // json: "response_id" |
Test case
1 generated file · +12 −0test/inputs/json/misc/76ae1.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -156,6 +156,10 @@ enum FormatEnum { | ||
| 156 | 156 | STRING = "string", // json: "string" |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | +FormatEnum FormatEnum_from_JSON(mixed json) { | |
| 160 | + return json; | |
| 161 | +} | |
| 162 | + | |
| 159 | 163 | class DeMinimis { |
| 160 | 164 | DeMinimisProperties properties; // json: "properties" |
| 161 | 165 | |
| @@ -576,6 +580,10 @@ enum In { | ||
| 576 | 580 | QUERY = "query", // json: "query" |
| 577 | 581 | } |
| 578 | 582 | |
| 583 | +In In_from_JSON(mixed json) { | |
| 584 | + return json; | |
| 585 | +} | |
| 586 | + | |
| 579 | 587 | class PurpleResponses { |
| 580 | 588 | Purple200 the_200; // json: "200" |
| 581 | 589 | |
| @@ -760,3 +768,7 @@ PurpleSchema PurpleSchema_from_JSON(mixed json) { | ||
| 760 | 768 | enum SchemaType { |
| 761 | 769 | ARRAY = "array", // json: "array" |
| 762 | 770 | } |
| 771 | + | |
| 772 | +SchemaType SchemaType_from_JSON(mixed json) { | |
| 773 | + return json; | |
| 774 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/77392.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -77,8 +77,16 @@ enum OrbitClass { | ||
| 77 | 77 | ENCKE_TYPE_COMET = "Encke-type Comet", // json: "Encke-type Comet" |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | +OrbitClass OrbitClass_from_JSON(mixed json) { | |
| 81 | + return json; | |
| 82 | +} | |
| 83 | + | |
| 80 | 84 | enum Pha { |
| 81 | 85 | Y = "Y", // json: "Y" |
| 82 | 86 | N = "N", // json: "N" |
| 83 | 87 | N_A = "n/a", // json: "n/a" |
| 84 | 88 | } |
| 89 | + | |
| 90 | +Pha Pha_from_JSON(mixed json) { | |
| 91 | + return json; | |
| 92 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/7d397.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -120,6 +120,10 @@ enum Type { | ||
| 120 | 120 | STRING = "string", // json: "string" |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | +Type Type_from_JSON(mixed json) { | |
| 124 | + return json; | |
| 125 | +} | |
| 126 | + | |
| 123 | 127 | class Info { |
| 124 | 128 | string description; // json: "description" |
| 125 | 129 | string title; // json: "title" |
| @@ -257,6 +261,10 @@ enum In { | ||
| 257 | 261 | QUERY = "query", // json: "query" |
| 258 | 262 | } |
| 259 | 263 | |
| 264 | +In In_from_JSON(mixed json) { | |
| 265 | + return json; | |
| 266 | +} | |
| 267 | + | |
| 260 | 268 | class Responses { |
| 261 | 269 | The200 the_200; // json: "200" |
Test case
1 generated file · +8 −0test/inputs/json/misc/7f568.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -119,6 +119,14 @@ enum Language { | ||
| 119 | 119 | MARKDOWN = "Markdown", // json: "Markdown" |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | +Language Language_from_JSON(mixed json) { | |
| 123 | + return json; | |
| 124 | +} | |
| 125 | + | |
| 122 | 126 | enum Type { |
| 123 | 127 | TEXT_PLAIN = "text/plain", // json: "text/plain" |
| 124 | 128 | } |
| 129 | + | |
| 130 | +Type Type_from_JSON(mixed json) { | |
| 131 | + return json; | |
| 132 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/7fbfb.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -84,11 +84,19 @@ enum Id { | ||
| 84 | 84 | NY_GDP_MKTP_CD = "NY.GDP.MKTP.CD", // json: "NY.GDP.MKTP.CD" |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | +Id Id_from_JSON(mixed json) { | |
| 88 | + return json; | |
| 89 | +} | |
| 90 | + | |
| 87 | 91 | enum Value { |
| 88 | 92 | CHINA = "China", // json: "China" |
| 89 | 93 | GDP_CURRENT_US = "GDP (current US$)", // json: "GDP (current US$)" |
| 90 | 94 | } |
| 91 | 95 | |
| 96 | +Value Value_from_JSON(mixed json) { | |
| 97 | + return json; | |
| 98 | +} | |
| 99 | + | |
| 92 | 100 | class FluffyTopLevel { |
| 93 | 101 | int page; // json: "page" |
| 94 | 102 | int pages; // json: "pages" |
Test case
1 generated file · +28 −0test/inputs/json/misc/8592b.json
Mpikedefault / TopLevel.pmod+28 −0
| @@ -316,6 +316,10 @@ enum PostHint { | ||
| 316 | 316 | LINK = "link", // json: "link" |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | +PostHint PostHint_from_JSON(mixed json) { | |
| 320 | + return json; | |
| 321 | +} | |
| 322 | + | |
| 319 | 323 | class Preview { |
| 320 | 324 | bool enabled; // json: "enabled" |
| 321 | 325 | array(Image) images; // json: "images" |
| @@ -398,23 +402,47 @@ enum Subreddit { | ||
| 398 | 402 | SCIENCE = "science", // json: "science" |
| 399 | 403 | } |
| 400 | 404 | |
| 405 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 406 | + return json; | |
| 407 | +} | |
| 408 | + | |
| 401 | 409 | enum SubredditId { |
| 402 | 410 | T5_MOUW = "t5_mouw", // json: "t5_mouw" |
| 403 | 411 | } |
| 404 | 412 | |
| 413 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 414 | + return json; | |
| 415 | +} | |
| 416 | + | |
| 405 | 417 | enum SubredditNamePrefixed { |
| 406 | 418 | R_SCIENCE = "r/science", // json: "r/science" |
| 407 | 419 | } |
| 408 | 420 | |
| 421 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 422 | + return json; | |
| 423 | +} | |
| 424 | + | |
| 409 | 425 | enum SubredditType { |
| 410 | 426 | PUBLIC = "public", // json: "public" |
| 411 | 427 | } |
| 412 | 428 | |
| 429 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 430 | + return json; | |
| 431 | +} | |
| 432 | + | |
| 413 | 433 | enum SuggestedSort { |
| 414 | 434 | CONFIDENCE = "confidence", // json: "confidence" |
| 415 | 435 | QA = "qa", // json: "qa" |
| 416 | 436 | } |
| 417 | 437 | |
| 438 | +SuggestedSort SuggestedSort_from_JSON(mixed json) { | |
| 439 | + return json; | |
| 440 | +} | |
| 441 | + | |
| 418 | 442 | enum Kind { |
| 419 | 443 | T3 = "t3", // json: "t3" |
| 420 | 444 | } |
| 445 | + | |
| 446 | +Kind Kind_from_JSON(mixed json) { | |
| 447 | + return json; | |
| 448 | +} |
Test case
1 generated file · +16 −0test/inputs/json/misc/996bd.json
Mpikedefault / TopLevel.pmod+16 −0
| @@ -88,6 +88,10 @@ enum Scheme { | ||
| 88 | 88 | TROVE = "Trove", // json: "Trove" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 93 | 97 | POPULAR = "popular", // json: "popular" |
| @@ -95,6 +99,10 @@ enum Keyword { | ||
| 95 | 99 | INTERNATIONAL = "international", // json: "international" |
| 96 | 100 | } |
| 97 | 101 | |
| 102 | +Keyword Keyword_from_JSON(mixed json) { | |
| 103 | + return json; | |
| 104 | +} | |
| 105 | + | |
| 98 | 106 | class Link { |
| 99 | 107 | string note; // json: "note" |
| 100 | 108 | string url; // json: "url" |
| @@ -149,7 +157,15 @@ enum MediaType { | ||
| 149 | 157 | TEXT_HTML = "text/html", // json: "text/html" |
| 150 | 158 | } |
| 151 | 159 | |
| 160 | +MediaType MediaType_from_JSON(mixed json) { | |
| 161 | + return json; | |
| 162 | +} | |
| 163 | + | |
| 152 | 164 | enum Title { |
| 153 | 165 | PLAIN_TEXT = "Plain Text", // json: "Plain Text" |
| 154 | 166 | HTML = "HTML", // json: "HTML" |
| 155 | 167 | } |
| 168 | + | |
| 169 | +Title Title_from_JSON(mixed json) { | |
| 170 | + return json; | |
| 171 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/9a503.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -88,6 +88,10 @@ enum Keyword { | ||
| 88 | 88 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Keyword Keyword_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | class Link { |
| 92 | 96 | string note; // json: "note" |
| 93 | 97 | string url; // json: "url" |
Test case
1 generated file · +8 −0test/inputs/json/misc/9ac3b.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -121,7 +121,15 @@ enum Status { | ||
| 121 | 121 | ACTIVE = "active", // json: "active" |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | +Status Status_from_JSON(mixed json) { | |
| 125 | + return json; | |
| 126 | +} | |
| 127 | + | |
| 124 | 128 | enum Title { |
| 125 | 129 | MR = "Mr", // json: "Mr" |
| 126 | 130 | MS = "Ms", // json: "Ms" |
| 127 | 131 | } |
| 132 | + | |
| 133 | +Title Title_from_JSON(mixed json) { | |
| 134 | + return json; | |
| 135 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/9eed5.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -87,6 +87,10 @@ enum Keyword { | ||
| 87 | 87 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | +Keyword Keyword_from_JSON(mixed json) { | |
| 91 | + return json; | |
| 92 | +} | |
| 93 | + | |
| 90 | 94 | class Link { |
| 91 | 95 | string note; // json: "note" |
| 92 | 96 | string url; // json: "url" |
Test case
1 generated file · +4 −0test/inputs/json/misc/a3d8c.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -306,6 +306,10 @@ enum TypeName { | ||
| 306 | 306 | TEXT = "text", // json: "text" |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | +TypeName TypeName_from_JSON(mixed json) { | |
| 310 | + return json; | |
| 311 | +} | |
| 312 | + | |
| 309 | 313 | class Query { |
| 310 | 314 | |
| 311 | 315 | string encode_json() { |
Test case
1 generated file · +4 −0test/inputs/json/misc/a45b0.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/ab0d1.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +20 −0test/inputs/json/misc/ad8be.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -88,6 +88,10 @@ enum Scheme { | ||
| 88 | 88 | DEP5 = "DEP5", // json: "DEP5" |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | +Scheme Scheme_from_JSON(mixed json) { | |
| 92 | + return json; | |
| 93 | +} | |
| 94 | + | |
| 91 | 95 | enum Keyword { |
| 92 | 96 | OSI_APPROVED = "osi-approved", // json: "osi-approved" |
| 93 | 97 | DISCOURAGED = "discouraged", // json: "discouraged" |
| @@ -103,6 +107,10 @@ enum Keyword { | ||
| 103 | 107 | INTERNATIONAL = "international", // json: "international" |
| 104 | 108 | } |
| 105 | 109 | |
| 110 | +Keyword Keyword_from_JSON(mixed json) { | |
| 111 | + return json; | |
| 112 | +} | |
| 113 | + | |
| 106 | 114 | class Link { |
| 107 | 115 | Note note; // json: "note" |
| 108 | 116 | string url; // json: "url" |
| @@ -135,6 +143,10 @@ enum Note { | ||
| 135 | 143 | OSET_FOUNDATION_PAGE = "OSET Foundation Page", // json: "OSET Foundation Page" |
| 136 | 144 | } |
| 137 | 145 | |
| 146 | +Note Note_from_JSON(mixed json) { | |
| 147 | + return json; | |
| 148 | +} | |
| 149 | + | |
| 138 | 150 | class OtherName { |
| 139 | 151 | string name; // json: "name" |
| 140 | 152 | mixed|string note; // json: "note" |
| @@ -190,8 +202,16 @@ enum MediaType { | ||
| 190 | 202 | APPLICATION_PDF = "application/pdf", // json: "application/pdf" |
| 191 | 203 | } |
| 192 | 204 | |
| 205 | +MediaType MediaType_from_JSON(mixed json) { | |
| 206 | + return json; | |
| 207 | +} | |
| 208 | + | |
| 193 | 209 | enum Title { |
| 194 | 210 | HTML = "HTML", // json: "HTML" |
| 195 | 211 | PLAIN_TEXT = "Plain Text", // json: "Plain Text" |
| 196 | 212 | PDF = "PDF", // json: "PDF" |
| 197 | 213 | } |
| 214 | + | |
| 215 | +Title Title_from_JSON(mixed json) { | |
| 216 | + return json; | |
| 217 | +} |
Test case
1 generated file · +24 −0test/inputs/json/misc/ae7f0.json
Mpikedefault / TopLevel.pmod+24 −0
| @@ -288,6 +288,10 @@ enum Domain { | ||
| 288 | 288 | SELF_ASK_REDDIT = "self.AskReddit", // json: "self.AskReddit" |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | +Domain Domain_from_JSON(mixed json) { | |
| 292 | + return json; | |
| 293 | +} | |
| 294 | + | |
| 291 | 295 | class MediaEmbed { |
| 292 | 296 | |
| 293 | 297 | string encode_json() { |
| @@ -308,18 +312,38 @@ enum Subreddit { | ||
| 308 | 312 | ASK_REDDIT = "AskReddit", // json: "AskReddit" |
| 309 | 313 | } |
| 310 | 314 | |
| 315 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 316 | + return json; | |
| 317 | +} | |
| 318 | + | |
| 311 | 319 | enum SubredditId { |
| 312 | 320 | T5_2_QH1_I = "t5_2qh1i", // json: "t5_2qh1i" |
| 313 | 321 | } |
| 314 | 322 | |
| 323 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 324 | + return json; | |
| 325 | +} | |
| 326 | + | |
| 315 | 327 | enum SubredditNamePrefixed { |
| 316 | 328 | R_ASK_REDDIT = "r/AskReddit", // json: "r/AskReddit" |
| 317 | 329 | } |
| 318 | 330 | |
| 331 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 332 | + return json; | |
| 333 | +} | |
| 334 | + | |
| 319 | 335 | enum SubredditType { |
| 320 | 336 | PUBLIC = "public", // json: "public" |
| 321 | 337 | } |
| 322 | 338 | |
| 339 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 340 | + return json; | |
| 341 | +} | |
| 342 | + | |
| 323 | 343 | enum Kind { |
| 324 | 344 | T3 = "t3", // json: "t3" |
| 325 | 345 | } |
| 346 | + | |
| 347 | +Kind Kind_from_JSON(mixed json) { | |
| 348 | + return json; | |
| 349 | +} |
Test case
1 generated file · +20 −0test/inputs/json/misc/ae9ca.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -91,6 +91,10 @@ enum GeometryType { | ||
| 91 | 91 | POINT = "Point", // json: "Point" |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | +GeometryType GeometryType_from_JSON(mixed json) { | |
| 95 | + return json; | |
| 96 | +} | |
| 97 | + | |
| 94 | 98 | class Properties { |
| 95 | 99 | string area; // json: "Area" |
| 96 | 100 | string central_asset_id; // json: "Central Asset ID" |
| @@ -142,6 +146,10 @@ enum MaintainingAuthority { | ||
| 142 | 146 | CITY_OF_BALLARAT = "City of Ballarat", // json: "City of Ballarat" |
| 143 | 147 | } |
| 144 | 148 | |
| 149 | +MaintainingAuthority MaintainingAuthority_from_JSON(mixed json) { | |
| 150 | + return json; | |
| 151 | +} | |
| 152 | + | |
| 145 | 153 | enum Class { |
| 146 | 154 | NO_CODE_ALLOCATED = "No Code Allocated", // json: "No Code Allocated" |
| 147 | 155 | OS_DISTRICT = "OS-District", // json: "OS-District" |
| @@ -149,12 +157,24 @@ enum Class { | ||
| 149 | 157 | OS_REGIONAL = "OS-Regional", // json: "OS-Regional" |
| 150 | 158 | } |
| 151 | 159 | |
| 160 | +Class Class_from_JSON(mixed json) { | |
| 161 | + return json; | |
| 162 | +} | |
| 163 | + | |
| 152 | 164 | enum Ward { |
| 153 | 165 | SOUTH = "South", // json: "South" |
| 154 | 166 | NORTH = "North", // json: "North" |
| 155 | 167 | CENTRAL = "Central", // json: "Central" |
| 156 | 168 | } |
| 157 | 169 | |
| 170 | +Ward Ward_from_JSON(mixed json) { | |
| 171 | + return json; | |
| 172 | +} | |
| 173 | + | |
| 158 | 174 | enum FeatureType { |
| 159 | 175 | FEATURE = "Feature", // json: "Feature" |
| 160 | 176 | } |
| 177 | + | |
| 178 | +FeatureType FeatureType_from_JSON(mixed json) { | |
| 179 | + return json; | |
| 180 | +} |
Test case
1 generated file · +40 −0test/inputs/json/misc/af2d1.json
Mpikedefault / TopLevel.pmod+40 −0
| @@ -143,10 +143,18 @@ enum GeometryType { | ||
| 143 | 143 | MULTI_POLYGON = "MultiPolygon", // json: "MultiPolygon" |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | +GeometryType GeometryType_from_JSON(mixed json) { | |
| 147 | + return json; | |
| 148 | +} | |
| 149 | + | |
| 146 | 150 | enum GeometryName { |
| 147 | 151 | GEOM = "geom", // json: "geom" |
| 148 | 152 | } |
| 149 | 153 | |
| 154 | +GeometryName GeometryName_from_JSON(mixed json) { | |
| 155 | + return json; | |
| 156 | +} | |
| 157 | + | |
| 150 | 158 | class FeatureProperties { |
| 151 | 159 | AddImprov|mixed add_improv; // json: "add_improv" |
| 152 | 160 | float area; // json: "area_" |
| @@ -284,6 +292,10 @@ enum AddImprov { | ||
| 284 | 292 | T = "t", // json: "t" |
| 285 | 293 | } |
| 286 | 294 | |
| 295 | +AddImprov AddImprov_from_JSON(mixed json) { | |
| 296 | + return json; | |
| 297 | +} | |
| 298 | + | |
| 287 | 299 | enum FundingBa { |
| 288 | 300 | NON_GCCC = "Non GCCC", // json: "Non GCCC" |
| 289 | 301 | CAPEX = "Capex", // json: "Capex" |
| @@ -291,12 +303,20 @@ enum FundingBa { | ||
| 291 | 303 | CONTRIBUTE = "Contribute", // json: "Contribute" |
| 292 | 304 | } |
| 293 | 305 | |
| 306 | +FundingBa FundingBa_from_JSON(mixed json) { | |
| 307 | + return json; | |
| 308 | +} | |
| 309 | + | |
| 294 | 310 | enum LevelAccu { |
| 295 | 311 | GPS_CORRECTED_10_M = "GPS Corrected 1.0M", // json: "GPS Corrected 1.0M" |
| 296 | 312 | APPROX = "APPROX", // json: "APPROX" |
| 297 | 313 | GPS_C_ORRECTED_10_M = "GPS COrrected 1.0M", // json: "GPS COrrected 1.0M" |
| 298 | 314 | } |
| 299 | 315 | |
| 316 | +LevelAccu LevelAccu_from_JSON(mixed json) { | |
| 317 | + return json; | |
| 318 | +} | |
| 319 | + | |
| 300 | 320 | enum Material { |
| 301 | 321 | GRAVEL = "Gravel", // json: "Gravel" |
| 302 | 322 | CONCRETE = "Concrete", // json: "Concrete" |
| @@ -306,18 +326,38 @@ enum Material { | ||
| 306 | 326 | EARTH = "Earth", // json: "Earth" |
| 307 | 327 | } |
| 308 | 328 | |
| 329 | +Material Material_from_JSON(mixed json) { | |
| 330 | + return json; | |
| 331 | +} | |
| 332 | + | |
| 309 | 333 | enum MiSymbolo { |
| 310 | 334 | PEN_2265535_BRUSH_1016777215 = "Pen (2, 2, 65535) Brush (1, 0, 16777215)", // json: "Pen (2, 2, 65535) Brush (1, 0, 16777215)" |
| 311 | 335 | } |
| 312 | 336 | |
| 337 | +MiSymbolo MiSymbolo_from_JSON(mixed json) { | |
| 338 | + return json; | |
| 339 | +} | |
| 340 | + | |
| 313 | 341 | enum Status { |
| 314 | 342 | CURRENT = "CURRENT", // json: "CURRENT" |
| 315 | 343 | } |
| 316 | 344 | |
| 345 | +Status Status_from_JSON(mixed json) { | |
| 346 | + return json; | |
| 347 | +} | |
| 348 | + | |
| 317 | 349 | enum PropertiesType { |
| 318 | 350 | BOAT_RAMP = "Boat Ramp", // json: "Boat Ramp" |
| 319 | 351 | } |
| 320 | 352 | |
| 353 | +PropertiesType PropertiesType_from_JSON(mixed json) { | |
| 354 | + return json; | |
| 355 | +} | |
| 356 | + | |
| 321 | 357 | enum FeatureType { |
| 322 | 358 | FEATURE = "Feature", // json: "Feature" |
| 323 | 359 | } |
| 360 | + | |
| 361 | +FeatureType FeatureType_from_JSON(mixed json) { | |
| 362 | + return json; | |
| 363 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/b4865.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -76,6 +76,10 @@ enum Fall { | ||
| 76 | 76 | FOUND = "Found", // json: "Found" |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | +Fall Fall_from_JSON(mixed json) { | |
| 80 | + return json; | |
| 81 | +} | |
| 82 | + | |
| 79 | 83 | class Geolocation { |
| 80 | 84 | array(float) coordinates; // json: "coordinates" |
| 81 | 85 | Type type; // json: "type" |
| @@ -103,6 +107,14 @@ enum Type { | ||
| 103 | 107 | POINT = "Point", // json: "Point" |
| 104 | 108 | } |
| 105 | 109 | |
| 110 | +Type Type_from_JSON(mixed json) { | |
| 111 | + return json; | |
| 112 | +} | |
| 113 | + | |
| 106 | 114 | enum Nametype { |
| 107 | 115 | VALID = "Valid", // json: "Valid" |
| 108 | 116 | } |
| 117 | + | |
| 118 | +Nametype Nametype_from_JSON(mixed json) { | |
| 119 | + return json; | |
| 120 | +} |
Test case
1 generated file · +28 −0test/inputs/json/misc/be234.json
Mpikedefault / TopLevel.pmod+28 −0
| @@ -304,6 +304,10 @@ enum Domain { | ||
| 304 | 304 | IMGUR_COM = "imgur.com", // json: "imgur.com" |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | +Domain Domain_from_JSON(mixed json) { | |
| 308 | + return json; | |
| 309 | +} | |
| 310 | + | |
| 307 | 311 | class Media { |
| 308 | 312 | Oembed oembed; // json: "oembed" |
| 309 | 313 | Domain type; // json: "type" |
| @@ -415,6 +419,10 @@ enum PostHint { | ||
| 415 | 419 | RICH_VIDEO = "rich:video", // json: "rich:video" |
| 416 | 420 | } |
| 417 | 421 | |
| 422 | +PostHint PostHint_from_JSON(mixed json) { | |
| 423 | + return json; | |
| 424 | +} | |
| 425 | + | |
| 418 | 426 | class Preview { |
| 419 | 427 | bool enabled; // json: "enabled" |
| 420 | 428 | array(Image) images; // json: "images" |
| @@ -543,18 +551,38 @@ enum Subreddit { | ||
| 543 | 551 | FUNNY = "funny", // json: "funny" |
| 544 | 552 | } |
| 545 | 553 | |
| 554 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 555 | + return json; | |
| 556 | +} | |
| 557 | + | |
| 546 | 558 | enum SubredditId { |
| 547 | 559 | T5_2_QH33 = "t5_2qh33", // json: "t5_2qh33" |
| 548 | 560 | } |
| 549 | 561 | |
| 562 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 563 | + return json; | |
| 564 | +} | |
| 565 | + | |
| 550 | 566 | enum SubredditNamePrefixed { |
| 551 | 567 | R_FUNNY = "r/funny", // json: "r/funny" |
| 552 | 568 | } |
| 553 | 569 | |
| 570 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 571 | + return json; | |
| 572 | +} | |
| 573 | + | |
| 554 | 574 | enum SubredditType { |
| 555 | 575 | PUBLIC = "public", // json: "public" |
| 556 | 576 | } |
| 557 | 577 | |
| 578 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 579 | + return json; | |
| 580 | +} | |
| 581 | + | |
| 558 | 582 | enum Kind { |
| 559 | 583 | T3 = "t3", // json: "t3" |
| 560 | 584 | } |
| 585 | + | |
| 586 | +Kind Kind_from_JSON(mixed json) { | |
| 587 | + return json; | |
| 588 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/c3303.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -329,10 +329,18 @@ enum Rating { | ||
| 329 | 329 | PG_13 = "pg-13", // json: "pg-13" |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | +Rating Rating_from_JSON(mixed json) { | |
| 333 | + return json; | |
| 334 | +} | |
| 335 | + | |
| 332 | 336 | enum Type { |
| 333 | 337 | GIF = "gif", // json: "gif" |
| 334 | 338 | } |
| 335 | 339 | |
| 340 | +Type Type_from_JSON(mixed json) { | |
| 341 | + return json; | |
| 342 | +} | |
| 343 | + | |
| 336 | 344 | class User { |
| 337 | 345 | string avatar_url; // json: "avatar_url" |
| 338 | 346 | string banner_url; // json: "banner_url" |
| @@ -370,6 +378,10 @@ enum Username { | ||
| 370 | 378 | DISNEYPIXAR = "disneypixar", // json: "disneypixar" |
| 371 | 379 | } |
| 372 | 380 | |
| 381 | +Username Username_from_JSON(mixed json) { | |
| 382 | + return json; | |
| 383 | +} | |
| 384 | + | |
| 373 | 385 | class Meta { |
| 374 | 386 | string msg; // json: "msg" |
| 375 | 387 | string response_id; // json: "response_id" |
Test case
1 generated file · +8 −0test/inputs/json/misc/c8c7e.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -84,11 +84,19 @@ enum Id { | ||
| 84 | 84 | NY_GDP_MKTP_CD = "NY.GDP.MKTP.CD", // json: "NY.GDP.MKTP.CD" |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | +Id Id_from_JSON(mixed json) { | |
| 88 | + return json; | |
| 89 | +} | |
| 90 | + | |
| 87 | 91 | enum Value { |
| 88 | 92 | INDIA = "India", // json: "India" |
| 89 | 93 | GDP_CURRENT_US = "GDP (current US$)", // json: "GDP (current US$)" |
| 90 | 94 | } |
| 91 | 95 | |
| 96 | +Value Value_from_JSON(mixed json) { | |
| 97 | + return json; | |
| 98 | +} | |
| 99 | + | |
| 92 | 100 | class FluffyTopLevel { |
| 93 | 101 | int page; // json: "page" |
| 94 | 102 | int pages; // json: "pages" |
Test case
1 generated file · +4 −0test/inputs/json/misc/cb0cc.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -70,6 +70,10 @@ enum Category { | ||
| 70 | 70 | ECONOMICS = "economics", // json: "economics" |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | +Category Category_from_JSON(mixed json) { | |
| 74 | + return json; | |
| 75 | +} | |
| 76 | + | |
| 73 | 77 | class Laureate { |
| 74 | 78 | string firstname; // json: "firstname" |
| 75 | 79 | string id; // json: "id" |
Test case
1 generated file · +8 −0test/inputs/json/misc/cda6c.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -84,11 +84,19 @@ enum Id { | ||
| 84 | 84 | SP_POP_TOTL = "SP.POP.TOTL", // json: "SP.POP.TOTL" |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | +Id Id_from_JSON(mixed json) { | |
| 88 | + return json; | |
| 89 | +} | |
| 90 | + | |
| 87 | 91 | enum Value { |
| 88 | 92 | CHINA = "China", // json: "China" |
| 89 | 93 | POPULATION_TOTAL = "Population, total", // json: "Population, total" |
| 90 | 94 | } |
| 91 | 95 | |
| 96 | +Value Value_from_JSON(mixed json) { | |
| 97 | + return json; | |
| 98 | +} | |
| 99 | + | |
| 92 | 100 | class FluffyTopLevel { |
| 93 | 101 | int page; // json: "page" |
| 94 | 102 | int pages; // json: "pages" |
Test case
1 generated file · +4 −0test/inputs/json/misc/dbfb3.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -299,6 +299,10 @@ enum Text { | ||
| 299 | 299 | SUNNY = "Sunny", // json: "Sunny" |
| 300 | 300 | } |
| 301 | 301 | |
| 302 | +Text Text_from_JSON(mixed json) { | |
| 303 | + return json; | |
| 304 | +} | |
| 305 | + | |
| 302 | 306 | class Forecast { |
| 303 | 307 | string code; // json: "code" |
| 304 | 308 | string date; // json: "date" |
Test case
1 generated file · +36 −0test/inputs/json/misc/dc44f.json
Mpikedefault / TopLevel.pmod+36 −0
| @@ -68,6 +68,10 @@ enum Booster { | ||
| 68 | 68 | COMMON = "common", // json: "common" |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | +Booster Booster_from_JSON(mixed json) { | |
| 72 | + return json; | |
| 73 | +} | |
| 74 | + | |
| 71 | 75 | class Card { |
| 72 | 76 | string artist; // json: "artist" |
| 73 | 77 | int cmc; // json: "cmc" |
| @@ -174,6 +178,10 @@ enum ColorIdentity { | ||
| 174 | 178 | R = "R", // json: "R" |
| 175 | 179 | } |
| 176 | 180 | |
| 181 | +ColorIdentity ColorIdentity_from_JSON(mixed json) { | |
| 182 | + return json; | |
| 183 | +} | |
| 184 | + | |
| 177 | 185 | enum Color { |
| 178 | 186 | BLUE = "Blue", // json: "Blue" |
| 179 | 187 | BLACK = "Black", // json: "Black" |
| @@ -182,10 +190,18 @@ enum Color { | ||
| 182 | 190 | RED = "Red", // json: "Red" |
| 183 | 191 | } |
| 184 | 192 | |
| 193 | +Color Color_from_JSON(mixed json) { | |
| 194 | + return json; | |
| 195 | +} | |
| 196 | + | |
| 185 | 197 | enum Layout { |
| 186 | 198 | NORMAL = "normal", // json: "normal" |
| 187 | 199 | } |
| 188 | 200 | |
| 201 | +Layout Layout_from_JSON(mixed json) { | |
| 202 | + return json; | |
| 203 | +} | |
| 204 | + | |
| 189 | 205 | class LegalityElement { |
| 190 | 206 | Format format; // json: "format" |
| 191 | 207 | LegalityEnum legality; // json: "legality" |
| @@ -242,12 +258,20 @@ enum Format { | ||
| 242 | 258 | ZENDIKAR_BLOCK = "Zendikar Block", // json: "Zendikar Block" |
| 243 | 259 | } |
| 244 | 260 | |
| 261 | +Format Format_from_JSON(mixed json) { | |
| 262 | + return json; | |
| 263 | +} | |
| 264 | + | |
| 245 | 265 | enum LegalityEnum { |
| 246 | 266 | LEGAL = "Legal", // json: "Legal" |
| 247 | 267 | BANNED = "Banned", // json: "Banned" |
| 248 | 268 | RESTRICTED = "Restricted", // json: "Restricted" |
| 249 | 269 | } |
| 250 | 270 | |
| 271 | +LegalityEnum LegalityEnum_from_JSON(mixed json) { | |
| 272 | + return json; | |
| 273 | +} | |
| 274 | + | |
| 251 | 275 | enum Rarity { |
| 252 | 276 | RARITY_UNCOMMON = "Uncommon", // json: "Uncommon" |
| 253 | 277 | RARITY_RARE = "Rare", // json: "Rare" |
| @@ -255,6 +279,10 @@ enum Rarity { | ||
| 255 | 279 | BASIC_LAND = "Basic Land", // json: "Basic Land" |
| 256 | 280 | } |
| 257 | 281 | |
| 282 | +Rarity Rarity_from_JSON(mixed json) { | |
| 283 | + return json; | |
| 284 | +} | |
| 285 | + | |
| 258 | 286 | class Ruling { |
| 259 | 287 | string date; // json: "date" |
| 260 | 288 | string text; // json: "text" |
| @@ -282,6 +310,10 @@ enum Supertype { | ||
| 282 | 310 | BASIC = "Basic", // json: "Basic" |
| 283 | 311 | } |
| 284 | 312 | |
| 313 | +Supertype Supertype_from_JSON(mixed json) { | |
| 314 | + return json; | |
| 315 | +} | |
| 316 | + | |
| 285 | 317 | enum Type { |
| 286 | 318 | CREATURE = "Creature", // json: "Creature" |
| 287 | 319 | INSTANT = "Instant", // json: "Instant" |
| @@ -290,3 +322,7 @@ enum Type { | ||
| 290 | 322 | SORCERY = "Sorcery", // json: "Sorcery" |
| 291 | 323 | LAND = "Land", // json: "Land" |
| 292 | 324 | } |
| 325 | + | |
| 326 | +Type Type_from_JSON(mixed json) { | |
| 327 | + return json; | |
| 328 | +} |
Test case
1 generated file · +36 −0test/inputs/json/misc/dd1ce.json
Mpikedefault / TopLevel.pmod+36 −0
| @@ -68,6 +68,10 @@ enum Booster { | ||
| 68 | 68 | COMMON = "common", // json: "common" |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | +Booster Booster_from_JSON(mixed json) { | |
| 72 | + return json; | |
| 73 | +} | |
| 74 | + | |
| 71 | 75 | class Card { |
| 72 | 76 | string artist; // json: "artist" |
| 73 | 77 | int cmc; // json: "cmc" |
| @@ -174,6 +178,10 @@ enum ColorIdentity { | ||
| 174 | 178 | R = "R", // json: "R" |
| 175 | 179 | } |
| 176 | 180 | |
| 181 | +ColorIdentity ColorIdentity_from_JSON(mixed json) { | |
| 182 | + return json; | |
| 183 | +} | |
| 184 | + | |
| 177 | 185 | enum Color { |
| 178 | 186 | BLUE = "Blue", // json: "Blue" |
| 179 | 187 | BLACK = "Black", // json: "Black" |
| @@ -182,10 +190,18 @@ enum Color { | ||
| 182 | 190 | RED = "Red", // json: "Red" |
| 183 | 191 | } |
| 184 | 192 | |
| 193 | +Color Color_from_JSON(mixed json) { | |
| 194 | + return json; | |
| 195 | +} | |
| 196 | + | |
| 185 | 197 | enum Layout { |
| 186 | 198 | NORMAL = "normal", // json: "normal" |
| 187 | 199 | } |
| 188 | 200 | |
| 201 | +Layout Layout_from_JSON(mixed json) { | |
| 202 | + return json; | |
| 203 | +} | |
| 204 | + | |
| 189 | 205 | class LegalityElement { |
| 190 | 206 | Format format; // json: "format" |
| 191 | 207 | LegalityEnum legality; // json: "legality" |
| @@ -242,12 +258,20 @@ enum Format { | ||
| 242 | 258 | ZENDIKAR_BLOCK = "Zendikar Block", // json: "Zendikar Block" |
| 243 | 259 | } |
| 244 | 260 | |
| 261 | +Format Format_from_JSON(mixed json) { | |
| 262 | + return json; | |
| 263 | +} | |
| 264 | + | |
| 245 | 265 | enum LegalityEnum { |
| 246 | 266 | LEGAL = "Legal", // json: "Legal" |
| 247 | 267 | BANNED = "Banned", // json: "Banned" |
| 248 | 268 | RESTRICTED = "Restricted", // json: "Restricted" |
| 249 | 269 | } |
| 250 | 270 | |
| 271 | +LegalityEnum LegalityEnum_from_JSON(mixed json) { | |
| 272 | + return json; | |
| 273 | +} | |
| 274 | + | |
| 251 | 275 | enum Rarity { |
| 252 | 276 | RARITY_UNCOMMON = "Uncommon", // json: "Uncommon" |
| 253 | 277 | RARITY_RARE = "Rare", // json: "Rare" |
| @@ -255,6 +279,10 @@ enum Rarity { | ||
| 255 | 279 | BASIC_LAND = "Basic Land", // json: "Basic Land" |
| 256 | 280 | } |
| 257 | 281 | |
| 282 | +Rarity Rarity_from_JSON(mixed json) { | |
| 283 | + return json; | |
| 284 | +} | |
| 285 | + | |
| 258 | 286 | class Ruling { |
| 259 | 287 | string date; // json: "date" |
| 260 | 288 | string text; // json: "text" |
| @@ -282,6 +310,10 @@ enum Supertype { | ||
| 282 | 310 | BASIC = "Basic", // json: "Basic" |
| 283 | 311 | } |
| 284 | 312 | |
| 313 | +Supertype Supertype_from_JSON(mixed json) { | |
| 314 | + return json; | |
| 315 | +} | |
| 316 | + | |
| 285 | 317 | enum Type { |
| 286 | 318 | CREATURE = "Creature", // json: "Creature" |
| 287 | 319 | INSTANT = "Instant", // json: "Instant" |
| @@ -290,3 +322,7 @@ enum Type { | ||
| 290 | 322 | SORCERY = "Sorcery", // json: "Sorcery" |
| 291 | 323 | LAND = "Land", // json: "Land" |
| 292 | 324 | } |
| 325 | + | |
| 326 | +Type Type_from_JSON(mixed json) { | |
| 327 | + return json; | |
| 328 | +} |
Test case
1 generated file · +8 −0test/inputs/json/misc/e0ac7.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -329,10 +329,18 @@ enum Rating { | ||
| 329 | 329 | Y = "y", // json: "y" |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | +Rating Rating_from_JSON(mixed json) { | |
| 333 | + return json; | |
| 334 | +} | |
| 335 | + | |
| 332 | 336 | enum Type { |
| 333 | 337 | GIF = "gif", // json: "gif" |
| 334 | 338 | } |
| 335 | 339 | |
| 340 | +Type Type_from_JSON(mixed json) { | |
| 341 | + return json; | |
| 342 | +} | |
| 343 | + | |
| 336 | 344 | class User { |
| 337 | 345 | string avatar_url; // json: "avatar_url" |
| 338 | 346 | string banner_url; // json: "banner_url" |
Test case
1 generated file · +4 −0test/inputs/json/misc/e2915.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -333,6 +333,10 @@ enum Text { | ||
| 333 | 333 | SUNNY = "Sunny", // json: "Sunny" |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | +Text Text_from_JSON(mixed json) { | |
| 337 | + return json; | |
| 338 | +} | |
| 339 | + | |
| 336 | 340 | class Guid { |
| 337 | 341 | string is_perma_link; // json: "isPermaLink" |
Test case
1 generated file · +4 −0test/inputs/json/misc/e324e.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -120,6 +120,10 @@ enum Type { | ||
| 120 | 120 | STRING = "string", // json: "string" |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | +Type Type_from_JSON(mixed json) { | |
| 124 | + return json; | |
| 125 | +} | |
| 126 | + | |
| 123 | 127 | class Info { |
| 124 | 128 | string description; // json: "description" |
| 125 | 129 | string title; // json: "title" |
Test case
1 generated file · +8 −0test/inputs/json/misc/e53b5.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -84,11 +84,19 @@ enum Id { | ||
| 84 | 84 | SP_POP_TOTL = "SP.POP.TOTL", // json: "SP.POP.TOTL" |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | +Id Id_from_JSON(mixed json) { | |
| 88 | + return json; | |
| 89 | +} | |
| 90 | + | |
| 87 | 91 | enum Value { |
| 88 | 92 | INDIA = "India", // json: "India" |
| 89 | 93 | POPULATION_TOTAL = "Population, total", // json: "Population, total" |
| 90 | 94 | } |
| 91 | 95 | |
| 96 | +Value Value_from_JSON(mixed json) { | |
| 97 | + return json; | |
| 98 | +} | |
| 99 | + | |
| 92 | 100 | class FluffyTopLevel { |
| 93 | 101 | int page; // json: "page" |
| 94 | 102 | int pages; // json: "pages" |
Test case
1 generated file · +4 −0test/inputs/json/misc/e8a0b.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +72 −0test/inputs/json/misc/e8b04.json
Mpikedefault / TopLevel.pmod+72 −0
| @@ -162,12 +162,20 @@ enum DisplayType { | ||
| 162 | 162 | PAGE = "page", // json: "page" |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | +DisplayType DisplayType_from_JSON(mixed json) { | |
| 166 | + return json; | |
| 167 | +} | |
| 168 | + | |
| 165 | 169 | enum TopLevelFlag { |
| 166 | 170 | DEFAULT = "default", // json: "default" |
| 167 | 171 | RESTORABLE = "restorable", // json: "restorable" |
| 168 | 172 | RESTORE_POSSIBLE_FOR_TYPE = "restorePossibleForType", // json: "restorePossibleForType" |
| 169 | 173 | } |
| 170 | 174 | |
| 175 | +TopLevelFlag TopLevelFlag_from_JSON(mixed json) { | |
| 176 | + return json; | |
| 177 | +} | |
| 178 | + | |
| 171 | 179 | class Grant { |
| 172 | 180 | array(GrantFlag) flags; // json: "flags" |
| 173 | 181 | bool inherited; // json: "inherited" |
| @@ -198,10 +206,18 @@ enum GrantFlag { | ||
| 198 | 206 | PUBLIC = "public", // json: "public" |
| 199 | 207 | } |
| 200 | 208 | |
| 209 | +GrantFlag GrantFlag_from_JSON(mixed json) { | |
| 210 | + return json; | |
| 211 | +} | |
| 212 | + | |
| 201 | 213 | enum GrantType { |
| 202 | 214 | VIEWER = "viewer", // json: "viewer" |
| 203 | 215 | } |
| 204 | 216 | |
| 217 | +GrantType GrantType_from_JSON(mixed json) { | |
| 218 | + return json; | |
| 219 | +} | |
| 220 | + | |
| 205 | 221 | class TopLevelMetadata { |
| 206 | 222 | array(DisplayType)|mixed available_display_types; // json: "availableDisplayTypes" |
| 207 | 223 | CustomFields|mixed custom_fields; // json: "custom_fields" |
| @@ -367,6 +383,10 @@ enum OrderColumnFieldName { | ||
| 367 | 383 | IN_EFFECT_AS_OF_1_1_2012 = "in_effect_as_of_1_1_2012", // json: "in_effect_as_of_1_1_2012" |
| 368 | 384 | } |
| 369 | 385 | |
| 386 | +OrderColumnFieldName OrderColumnFieldName_from_JSON(mixed json) { | |
| 387 | + return json; | |
| 388 | +} | |
| 389 | + | |
| 370 | 390 | class Select { |
| 371 | 391 | mixed|string aggregate; // json: "aggregate" |
| 372 | 392 | string column_field_name; // json: "columnFieldName" |
| @@ -458,6 +478,10 @@ enum ChildColumnFieldName { | ||
| 458 | 478 | ISSUE = "issue", // json: "issue" |
| 459 | 479 | } |
| 460 | 480 | |
| 481 | +ChildColumnFieldName ChildColumnFieldName_from_JSON(mixed json) { | |
| 482 | + return json; | |
| 483 | +} | |
| 484 | + | |
| 461 | 485 | class ChildMetadata { |
| 462 | 486 | array(string)|mixed custom_values; // json: "customValues" |
| 463 | 487 | bool|mixed freeform; // json: "freeform" |
| @@ -498,6 +522,10 @@ enum MetadataOperator { | ||
| 498 | 522 | BLANK = "blank?", // json: "blank?" |
| 499 | 523 | } |
| 500 | 524 | |
| 525 | +MetadataOperator MetadataOperator_from_JSON(mixed json) { | |
| 526 | + return json; | |
| 527 | +} | |
| 528 | + | |
| 501 | 529 | class TableColumnId { |
| 502 | 530 | int the_2819740; // json: "2819740" |
| 503 | 531 | |
| @@ -523,11 +551,19 @@ enum ChildOperator { | ||
| 523 | 551 | IS_NOT_BLANK = "IS_NOT_BLANK", // json: "IS_NOT_BLANK" |
| 524 | 552 | } |
| 525 | 553 | |
| 554 | +ChildOperator ChildOperator_from_JSON(mixed json) { | |
| 555 | + return json; | |
| 556 | +} | |
| 557 | + | |
| 526 | 558 | enum WhereOperator { |
| 527 | 559 | TENTACLED_EQUALS = "EQUALS", // json: "EQUALS" |
| 528 | 560 | AND = "AND", // json: "AND" |
| 529 | 561 | } |
| 530 | 562 | |
| 563 | +WhereOperator WhereOperator_from_JSON(mixed json) { | |
| 564 | + return json; | |
| 565 | +} | |
| 566 | + | |
| 531 | 567 | class MetadataRenderTypeConfig { |
| 532 | 568 | PurpleVisible visible; // json: "visible" |
| 533 | 569 | |
| @@ -682,6 +718,10 @@ enum FieldType { | ||
| 682 | 718 | COLUMN_DATA = "columnData", // json: "columnData" |
| 683 | 719 | } |
| 684 | 720 | |
| 721 | +FieldType FieldType_from_JSON(mixed json) { | |
| 722 | + return json; | |
| 723 | +} | |
| 724 | + | |
| 685 | 725 | class Styles { |
| 686 | 726 | Width width; // json: "width" |
| 687 | 727 | |
| @@ -709,6 +749,10 @@ enum Width { | ||
| 709 | 749 | THE_33 = "33%", // json: "33%" |
| 710 | 750 | } |
| 711 | 751 | |
| 752 | +Width Width_from_JSON(mixed json) { | |
| 753 | + return json; | |
| 754 | +} | |
| 755 | + | |
| 712 | 756 | class V1ArchivedProperties { |
| 713 | 757 | AccessPoints access_points; // json: "accessPoints" |
| 714 | 758 | string blist_id; // json: "blist_id" |
| @@ -799,6 +843,10 @@ enum ModifyingViewUid { | ||
| 799 | 843 | S6_EW_H6_MP = "s6ew-h6mp", // json: "s6ew-h6mp" |
| 800 | 844 | } |
| 801 | 845 | |
| 846 | +ModifyingViewUid ModifyingViewUid_from_JSON(mixed json) { | |
| 847 | + return json; | |
| 848 | +} | |
| 849 | + | |
| 802 | 850 | class Owner { |
| 803 | 851 | string display_name; // json: "displayName" |
| 804 | 852 | array(string)|mixed flags; // json: "flags" |
| @@ -851,14 +899,26 @@ enum RoleName { | ||
| 851 | 899 | PUBLISHER = "publisher", // json: "publisher" |
| 852 | 900 | } |
| 853 | 901 | |
| 902 | +RoleName RoleName_from_JSON(mixed json) { | |
| 903 | + return json; | |
| 904 | +} | |
| 905 | + | |
| 854 | 906 | enum Provenance { |
| 855 | 907 | OFFICIAL = "official", // json: "official" |
| 856 | 908 | } |
| 857 | 909 | |
| 910 | +Provenance Provenance_from_JSON(mixed json) { | |
| 911 | + return json; | |
| 912 | +} | |
| 913 | + | |
| 858 | 914 | enum PublicationStage { |
| 859 | 915 | PUBLISHED = "published", // json: "published" |
| 860 | 916 | } |
| 861 | 917 | |
| 918 | +PublicationStage PublicationStage_from_JSON(mixed json) { | |
| 919 | + return json; | |
| 920 | +} | |
| 921 | + | |
| 862 | 922 | class Ratings { |
| 863 | 923 | int rating; // json: "rating" |
| 864 | 924 | |
| @@ -883,6 +943,10 @@ enum Right { | ||
| 883 | 943 | READ = "read", // json: "read" |
| 884 | 944 | } |
| 885 | 945 | |
| 946 | +Right Right_from_JSON(mixed json) { | |
| 947 | + return json; | |
| 948 | +} | |
| 949 | + | |
| 886 | 950 | enum RowsUpdatedBy { |
| 887 | 951 | PJXG_VE4_M = "pjxg-ve4m", // json: "pjxg-ve4m" |
| 888 | 952 | THE_54_A3_QYUN = "54a3-qyun", // json: "54a3-qyun" |
| @@ -890,6 +954,10 @@ enum RowsUpdatedBy { | ||
| 890 | 954 | VVCA_FR6_G = "vvca-fr6g", // json: "vvca-fr6g" |
| 891 | 955 | } |
| 892 | 956 | |
| 957 | +RowsUpdatedBy RowsUpdatedBy_from_JSON(mixed json) { | |
| 958 | + return json; | |
| 959 | +} | |
| 960 | + | |
| 893 | 961 | class TableAuthor { |
| 894 | 962 | string display_name; // json: "displayName" |
| 895 | 963 | string id; // json: "id" |
| @@ -925,3 +993,7 @@ TableAuthor TableAuthor_from_JSON(mixed json) { | ||
| 925 | 993 | enum ViewType { |
| 926 | 994 | TABULAR = "tabular", // json: "tabular" |
| 927 | 995 | } |
| 996 | + | |
| 997 | +ViewType ViewType_from_JSON(mixed json) { | |
| 998 | + return json; | |
| 999 | +} |
Test case
1 generated file · +20 −0test/inputs/json/misc/f22f5.json
Mpikedefault / TopLevel.pmod+20 −0
| @@ -304,18 +304,38 @@ enum Subreddit { | ||
| 304 | 304 | WORLDNEWS = "worldnews", // json: "worldnews" |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 308 | + return json; | |
| 309 | +} | |
| 310 | + | |
| 307 | 311 | enum SubredditId { |
| 308 | 312 | T5_2_QH13 = "t5_2qh13", // json: "t5_2qh13" |
| 309 | 313 | } |
| 310 | 314 | |
| 315 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 316 | + return json; | |
| 317 | +} | |
| 318 | + | |
| 311 | 319 | enum SubredditNamePrefixed { |
| 312 | 320 | R_WORLDNEWS = "r/worldnews", // json: "r/worldnews" |
| 313 | 321 | } |
| 314 | 322 | |
| 323 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 324 | + return json; | |
| 325 | +} | |
| 326 | + | |
| 315 | 327 | enum SubredditType { |
| 316 | 328 | PUBLIC = "public", // json: "public" |
| 317 | 329 | } |
| 318 | 330 | |
| 331 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 332 | + return json; | |
| 333 | +} | |
| 334 | + | |
| 319 | 335 | enum Kind { |
| 320 | 336 | T3 = "t3", // json: "t3" |
| 321 | 337 | } |
| 338 | + | |
| 339 | +Kind Kind_from_JSON(mixed json) { | |
| 340 | + return json; | |
| 341 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/f3edf.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +4 −0test/inputs/json/misc/f466a.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -56,3 +56,7 @@ TopLevelElement TopLevelElement_from_JSON(mixed json) { | ||
| 56 | 56 | enum Country { |
| 57 | 57 | UNITED_STATES = "United States", // json: "United States" |
| 58 | 58 | } |
| 59 | + | |
| 60 | +Country Country_from_JSON(mixed json) { | |
| 61 | + return json; | |
| 62 | +} |
Test case
1 generated file · +12 −0test/inputs/json/misc/f6a65.json
Mpikedefault / TopLevel.pmod+12 −0
| @@ -330,10 +330,18 @@ enum Rating { | ||
| 330 | 330 | PG_13 = "pg-13", // json: "pg-13" |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | +Rating Rating_from_JSON(mixed json) { | |
| 334 | + return json; | |
| 335 | +} | |
| 336 | + | |
| 333 | 337 | enum Type { |
| 334 | 338 | GIF = "gif", // json: "gif" |
| 335 | 339 | } |
| 336 | 340 | |
| 341 | +Type Type_from_JSON(mixed json) { | |
| 342 | + return json; | |
| 343 | +} | |
| 344 | + | |
| 337 | 345 | class User { |
| 338 | 346 | string avatar_url; // json: "avatar_url" |
| 339 | 347 | string banner_url; // json: "banner_url" |
| @@ -376,6 +384,10 @@ enum Username { | ||
| 376 | 384 | CHEEZBURGER = "cheezburger", // json: "cheezburger" |
| 377 | 385 | } |
| 378 | 386 | |
| 387 | +Username Username_from_JSON(mixed json) { | |
| 388 | + return json; | |
| 389 | +} | |
| 390 | + | |
| 379 | 391 | class Meta { |
| 380 | 392 | string msg; // json: "msg" |
| 381 | 393 | string response_id; // json: "response_id" |
Test case
1 generated file · +4 −0test/inputs/json/misc/f74d5.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -306,6 +306,10 @@ enum TypeName { | ||
| 306 | 306 | TEXT = "text", // json: "text" |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | +TypeName TypeName_from_JSON(mixed json) { | |
| 310 | + return json; | |
| 311 | +} | |
| 312 | + | |
| 309 | 313 | class Query { |
| 310 | 314 | |
| 311 | 315 | string encode_json() { |
Test case
1 generated file · +4 −0test/inputs/json/misc/f82d9.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -167,6 +167,10 @@ enum Type { | ||
| 167 | 167 | STRING = "string", // json: "string" |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | +Type Type_from_JSON(mixed json) { | |
| 171 | + return json; | |
| 172 | +} | |
| 173 | + | |
| 170 | 174 | class Info { |
| 171 | 175 | string description; // json: "description" |
| 172 | 176 | string title; // json: "title" |
Test case
1 generated file · +4 −0test/inputs/json/misc/fcca3.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -309,6 +309,10 @@ enum TypeName { | ||
| 309 | 309 | TEXT = "text", // json: "text" |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | +TypeName TypeName_from_JSON(mixed json) { | |
| 313 | + return json; | |
| 314 | +} | |
| 315 | + | |
| 312 | 316 | class Format { |
| 313 | 317 | mixed|string align; // json: "align" |
| 314 | 318 | mixed|string no_commas; // json: "noCommas" |
Test case
1 generated file · +32 −0test/inputs/json/priority/bug427.json
Mpikedefault / TopLevel.pmod+32 −0
| @@ -329,6 +329,10 @@ enum PurpleKindString { | ||
| 329 | 329 | PURPLE_OBJECT_LITERAL = "Object literal", // json: "Object literal" |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | +PurpleKindString PurpleKindString_from_JSON(mixed json) { | |
| 333 | + return json; | |
| 334 | +} | |
| 335 | + | |
| 332 | 336 | class PurpleSignature { |
| 333 | 337 | PurpleComment|mixed comment; // json: "comment" |
| 334 | 338 | GetSignatureFlags flags; // json: "flags" |
| @@ -391,6 +395,10 @@ enum SignatureKindString { | ||
| 391 | 395 | CONSTRUCTOR_SIGNATURE = "Constructor signature", // json: "Constructor signature" |
| 392 | 396 | } |
| 393 | 397 | |
| 398 | +SignatureKindString SignatureKindString_from_JSON(mixed json) { | |
| 399 | + return json; | |
| 400 | +} | |
| 401 | + | |
| 394 | 402 | class GetSignatureType { |
| 395 | 403 | GetSignature|mixed declaration; // json: "declaration" |
| 396 | 404 | ElementType|mixed element_type; // json: "elementType" |
| @@ -619,6 +627,10 @@ enum Name { | ||
| 619 | 627 | MY_NUMBER = "MyNumber", // json: "MyNumber" |
| 620 | 628 | } |
| 621 | 629 | |
| 630 | +Name Name_from_JSON(mixed json) { | |
| 631 | + return json; | |
| 632 | +} | |
| 633 | + | |
| 622 | 634 | enum TypeEnum { |
| 623 | 635 | INTRINSIC = "intrinsic", // json: "intrinsic" |
| 624 | 636 | REFLECTION = "reflection", // json: "reflection" |
| @@ -630,6 +642,10 @@ enum TypeEnum { | ||
| 630 | 642 | STRING_LITERAL = "stringLiteral", // json: "stringLiteral" |
| 631 | 643 | } |
| 632 | 644 | |
| 645 | +TypeEnum TypeEnum_from_JSON(mixed json) { | |
| 646 | + return json; | |
| 647 | +} | |
| 648 | + | |
| 633 | 649 | class FluffyComment { |
| 634 | 650 | string text; // json: "text" |
| 635 | 651 | |
| @@ -712,6 +728,10 @@ enum FileName { | ||
| 712 | 728 | VARIABLES_TS = "variables.ts", // json: "variables.ts" |
| 713 | 729 | } |
| 714 | 730 | |
| 731 | +FileName FileName_from_JSON(mixed json) { | |
| 732 | + return json; | |
| 733 | +} | |
| 734 | + | |
| 715 | 735 | class GetSignatureComment { |
| 716 | 736 | mixed|string returns; // json: "returns" |
| 717 | 737 | mixed|string short_text; // json: "shortText" |
| @@ -852,6 +872,10 @@ enum ParameterKindString { | ||
| 852 | 872 | PARAMETER = "Parameter", // json: "Parameter" |
| 853 | 873 | } |
| 854 | 874 | |
| 875 | +ParameterKindString ParameterKindString_from_JSON(mixed json) { | |
| 876 | + return json; | |
| 877 | +} | |
| 878 | + | |
| 855 | 879 | class FluffyType { |
| 856 | 880 | ElementType|mixed element_type; // json: "elementType" |
| 857 | 881 | Name|mixed name; // json: "name" |
| @@ -1656,6 +1680,10 @@ enum FluffyKindString { | ||
| 1656 | 1680 | TYPE_ALIAS = "Type alias", // json: "Type alias" |
| 1657 | 1681 | } |
| 1658 | 1682 | |
| 1683 | +FluffyKindString FluffyKindString_from_JSON(mixed json) { | |
| 1684 | + return json; | |
| 1685 | +} | |
| 1686 | + | |
| 1659 | 1687 | class StickySignature { |
| 1660 | 1688 | StickyComment comment; // json: "comment" |
| 1661 | 1689 | IndigoFlags flags; // json: "flags" |
| @@ -2217,3 +2245,7 @@ IndecentComment IndecentComment_from_JSON(mixed json) { | ||
| 2217 | 2245 | enum TentacledKindString { |
| 2218 | 2246 | EXTERNAL_MODULE = "External module", // json: "External module" |
| 2219 | 2247 | } |
| 2248 | + | |
| 2249 | +TentacledKindString TentacledKindString_from_JSON(mixed json) { | |
| 2250 | + return json; | |
| 2251 | +} |
Test case
1 generated file · +24 −0test/inputs/json/priority/bug863.json
Mpikedefault / TopLevel.pmod+24 −0
| @@ -99,20 +99,36 @@ enum Breed { | ||
| 99 | 99 | NANO = "Nano", // json: "Nano" |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | +Breed Breed_from_JSON(mixed json) { | |
| 103 | + return json; | |
| 104 | +} | |
| 105 | + | |
| 102 | 106 | enum Firstname { |
| 103 | 107 | FIRSTNAME = "", // json: "" |
| 104 | 108 | CHI = "Chi", // json: "Chi" |
| 105 | 109 | } |
| 106 | 110 | |
| 111 | +Firstname Firstname_from_JSON(mixed json) { | |
| 112 | + return json; | |
| 113 | +} | |
| 114 | + | |
| 107 | 115 | enum Lastname { |
| 108 | 116 | LASTNAME = "", // json: "" |
| 109 | 117 | WASHKO = "Washko", // json: "Washko" |
| 110 | 118 | } |
| 111 | 119 | |
| 120 | +Lastname Lastname_from_JSON(mixed json) { | |
| 121 | + return json; | |
| 122 | +} | |
| 123 | + | |
| 112 | 124 | enum Pvptitle { |
| 113 | 125 | FRESHMAN = "Freshman", // json: "Freshman" |
| 114 | 126 | } |
| 115 | 127 | |
| 128 | +Pvptitle Pvptitle_from_JSON(mixed json) { | |
| 129 | + return json; | |
| 130 | +} | |
| 131 | + | |
| 116 | 132 | enum RankTitle { |
| 117 | 133 | PRESIDENT = "President", // json: "President" |
| 118 | 134 | ADVISOR = "Advisor", // json: "Advisor" |
| @@ -120,12 +136,20 @@ enum RankTitle { | ||
| 120 | 136 | APPLICANT = "Applicant", // json: "Applicant" |
| 121 | 137 | } |
| 122 | 138 | |
| 139 | +RankTitle RankTitle_from_JSON(mixed json) { | |
| 140 | + return json; | |
| 141 | +} | |
| 142 | + | |
| 123 | 143 | enum Sex { |
| 124 | 144 | NEUTER = "Neuter", // json: "Neuter" |
| 125 | 145 | MALE = "Male", // json: "Male" |
| 126 | 146 | FEMALE = "Female", // json: "Female" |
| 127 | 147 | } |
| 128 | 148 | |
| 149 | +Sex Sex_from_JSON(mixed json) { | |
| 150 | + return json; | |
| 151 | +} | |
| 152 | + | |
| 129 | 153 | class FluffyTopLevel { |
| 130 | 154 | int adventurercount; // json: "ADVENTURERCOUNT" |
| 131 | 155 | int agentcount; // json: "AGENTCOUNT" |
Test case
1 generated file · +4 −0test/inputs/json/priority/combined-enum.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -60,3 +60,7 @@ enum X { | ||
| 60 | 60 | ONE = "one", // json: "one" |
| 61 | 61 | TWO = "two", // json: "two" |
| 62 | 62 | } |
| 63 | + | |
| 64 | +X X_from_JSON(mixed json) { | |
| 65 | + return json; | |
| 66 | +} |
Test case
1 generated file · +4 −0test/inputs/json/priority/kotlin-enum-class-case-collision.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -42,3 +42,7 @@ enum Category { | ||
| 42 | 42 | EMPTY = " ", // json: " " |
| 43 | 43 | CATEGORY = "", // json: "" |
| 44 | 44 | } |
| 45 | + | |
| 46 | +Category Category_from_JSON(mixed json) { | |
| 47 | + return json; | |
| 48 | +} |
Test case
1 generated file · +28 −0test/inputs/json/priority/nbl-stats.json
Mpikedefault / TopLevel.pmod+28 −0
| @@ -103,6 +103,10 @@ enum LeaddatumEnum { | ||
| 103 | 103 | P4 = "P4", // json: "P4" |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | +LeaddatumEnum LeaddatumEnum_from_JSON(mixed json) { | |
| 107 | + return json; | |
| 108 | +} | |
| 109 | + | |
| 106 | 110 | class Othermatch { |
| 107 | 111 | string clock; // json: "clock" |
| 108 | 112 | string competition_name; // json: "competitionName" |
| @@ -157,6 +161,10 @@ enum PerType { | ||
| 157 | 161 | REGULAR = "REGULAR", // json: "REGULAR" |
| 158 | 162 | } |
| 159 | 163 | |
| 164 | +PerType PerType_from_JSON(mixed json) { | |
| 165 | + return json; | |
| 166 | +} | |
| 167 | + | |
| 160 | 168 | class Team { |
| 161 | 169 | string team_code; // json: "teamCode" |
| 162 | 170 | string team_code_international; // json: "teamCodeInternational" |
| @@ -293,6 +301,10 @@ enum ActionType { | ||
| 293 | 301 | JUMPBALL = "jumpball", // json: "jumpball" |
| 294 | 302 | } |
| 295 | 303 | |
| 304 | +ActionType ActionType_from_JSON(mixed json) { | |
| 305 | + return json; | |
| 306 | +} | |
| 307 | + | |
| 296 | 308 | enum FamilyNameInitial { |
| 297 | 309 | FAMILY_NAME_INITIAL_R = "R", // json: "R" |
| 298 | 310 | M = "M", // json: "M" |
| @@ -310,6 +322,10 @@ enum FamilyNameInitial { | ||
| 310 | 322 | FAMILY_NAME_INITIAL_B = "B", // json: "B" |
| 311 | 323 | } |
| 312 | 324 | |
| 325 | +FamilyNameInitial FamilyNameInitial_from_JSON(mixed json) { | |
| 326 | + return json; | |
| 327 | +} | |
| 328 | + | |
| 313 | 329 | enum FirstNameInitial { |
| 314 | 330 | D = "D", // json: "D" |
| 315 | 331 | FIRST_NAME_INITIAL_J = "J", // json: "J" |
| @@ -325,6 +341,10 @@ enum FirstNameInitial { | ||
| 325 | 341 | N = "N", // json: "N" |
| 326 | 342 | } |
| 327 | 343 | |
| 344 | +FirstNameInitial FirstNameInitial_from_JSON(mixed json) { | |
| 345 | + return json; | |
| 346 | +} | |
| 347 | + | |
| 328 | 348 | enum ScoreboardName { |
| 329 | 349 | SCOREBOARD_NAME = "", // json: "" |
| 330 | 350 | T_S = "T. s", // json: "T. s" |
| @@ -333,6 +353,10 @@ enum ScoreboardName { | ||
| 333 | 353 | B_VALENTINE = "B. Valentine", // json: "B. Valentine" |
| 334 | 354 | } |
| 335 | 355 | |
| 356 | +ScoreboardName ScoreboardName_from_JSON(mixed json) { | |
| 357 | + return json; | |
| 358 | +} | |
| 359 | + | |
| 336 | 360 | class Scorer { |
| 337 | 361 | mixed|string family_name; // json: "familyName" |
| 338 | 362 | FamilyNameInitial|mixed family_name_initial; // json: "familyNameInitial" |
| @@ -961,6 +985,10 @@ enum SubType { | ||
| 961 | 985 | DUNK = "dunk", // json: "dunk" |
| 962 | 986 | } |
| 963 | 987 | |
| 988 | +SubType SubType_from_JSON(mixed json) { | |
| 989 | + return json; | |
| 990 | +} | |
| 991 | + | |
| 964 | 992 | class Totallds { |
| 965 | 993 | mapping(string:Scorer) s_assists; // json: "sAssists" |
| 966 | 994 | mapping(string:Scorer) s_blocks; // json: "sBlocks" |
Test case
1 generated file · +4 −0test/inputs/json/samples/github-events.json
Mpikedefault / TopLevel.pmod+4 −0
| @@ -273,6 +273,10 @@ enum Type { | ||
| 273 | 273 | ORGANIZATION = "Organization", // json: "Organization" |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | +Type Type_from_JSON(mixed json) { | |
| 277 | + return json; | |
| 278 | +} | |
| 279 | + | |
| 276 | 280 | class Commit { |
| 277 | 281 | Author author; // json: "author" |
| 278 | 282 | bool distinct; // json: "distinct" |
Test case
1 generated file · +8 −0test/inputs/json/samples/pokedex.json
Mpikedefault / TopLevel.pmod+8 −0
| @@ -108,6 +108,10 @@ enum Egg { | ||
| 108 | 108 | OMANYTE_CANDY = "Omanyte Candy", // json: "Omanyte Candy" |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | +Egg Egg_from_JSON(mixed json) { | |
| 112 | + return json; | |
| 113 | +} | |
| 114 | + | |
| 111 | 115 | class Evolution { |
| 112 | 116 | string name; // json: "name" |
| 113 | 117 | string num; // json: "num" |
| @@ -151,3 +155,7 @@ enum Type { | ||
| 151 | 155 | DRAGON = "Dragon", // json: "Dragon" |
| 152 | 156 | NORMAL = "Normal", // json: "Normal" |
| 153 | 157 | } |
| 158 | + | |
| 159 | +Type Type_from_JSON(mixed json) { | |
| 160 | + return json; | |
| 161 | +} |
Test case
1 generated file · +32 −0test/inputs/json/samples/reddit.json
Mpikedefault / TopLevel.pmod+32 −0
| @@ -309,6 +309,10 @@ enum Domain { | ||
| 309 | 309 | I_REDD_IT = "i.redd.it", // json: "i.redd.it" |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | +Domain Domain_from_JSON(mixed json) { | |
| 313 | + return json; | |
| 314 | +} | |
| 315 | + | |
| 312 | 316 | class MediaEmbed { |
| 313 | 317 | |
| 314 | 318 | string encode_json() { |
| @@ -329,11 +333,19 @@ enum WhitelistStatus { | ||
| 329 | 333 | ALL_ADS = "all_ads", // json: "all_ads" |
| 330 | 334 | } |
| 331 | 335 | |
| 336 | +WhitelistStatus WhitelistStatus_from_JSON(mixed json) { | |
| 337 | + return json; | |
| 338 | +} | |
| 339 | + | |
| 332 | 340 | enum PostHint { |
| 333 | 341 | LINK = "link", // json: "link" |
| 334 | 342 | IMAGE = "image", // json: "image" |
| 335 | 343 | } |
| 336 | 344 | |
| 345 | +PostHint PostHint_from_JSON(mixed json) { | |
| 346 | + return json; | |
| 347 | +} | |
| 348 | + | |
| 337 | 349 | class Preview { |
| 338 | 350 | bool enabled; // json: "enabled" |
| 339 | 351 | array(Image) images; // json: "images" |
| @@ -462,18 +474,38 @@ enum Subreddit { | ||
| 462 | 474 | FUNNY = "funny", // json: "funny" |
| 463 | 475 | } |
| 464 | 476 | |
| 477 | +Subreddit Subreddit_from_JSON(mixed json) { | |
| 478 | + return json; | |
| 479 | +} | |
| 480 | + | |
| 465 | 481 | enum SubredditId { |
| 466 | 482 | T5_2_QH33 = "t5_2qh33", // json: "t5_2qh33" |
| 467 | 483 | } |
| 468 | 484 | |
| 485 | +SubredditId SubredditId_from_JSON(mixed json) { | |
| 486 | + return json; | |
| 487 | +} | |
| 488 | + | |
| 469 | 489 | enum SubredditNamePrefixed { |
| 470 | 490 | R_FUNNY = "r/funny", // json: "r/funny" |
| 471 | 491 | } |
| 472 | 492 | |
| 493 | +SubredditNamePrefixed SubredditNamePrefixed_from_JSON(mixed json) { | |
| 494 | + return json; | |
| 495 | +} | |
| 496 | + | |
| 473 | 497 | enum SubredditType { |
| 474 | 498 | PUBLIC = "public", // json: "public" |
| 475 | 499 | } |
| 476 | 500 | |
| 501 | +SubredditType SubredditType_from_JSON(mixed json) { | |
| 502 | + return json; | |
| 503 | +} | |
| 504 | + | |
| 477 | 505 | enum Kind { |
| 478 | 506 | T3 = "t3", // json: "t3" |
| 479 | 507 | } |
| 508 | + | |
| 509 | +Kind Kind_from_JSON(mixed json) { | |
| 510 | + return json; | |
| 511 | +} |
Test case
1 generated file · +44 −0test/inputs/json/samples/us-senators.json
Mpikedefault / TopLevel.pmod+44 −0
| @@ -150,6 +150,10 @@ enum Party { | ||
| 150 | 150 | INDEPENDENT = "Independent", // json: "Independent" |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | +Party Party_from_JSON(mixed json) { | |
| 154 | + return json; | |
| 155 | +} | |
| 156 | + | |
| 153 | 157 | class Extra { |
| 154 | 158 | string address; // json: "address" |
| 155 | 159 | string contact_form; // json: "contact_form" |
| @@ -255,47 +259,87 @@ enum Gender { | ||
| 255 | 259 | MALE = "male", // json: "male" |
| 256 | 260 | } |
| 257 | 261 | |
| 262 | +Gender Gender_from_JSON(mixed json) { | |
| 263 | + return json; | |
| 264 | +} | |
| 265 | + | |
| 258 | 266 | enum GenderLabel { |
| 259 | 267 | GENDER_LABEL_FEMALE = "Female", // json: "Female" |
| 260 | 268 | GENDER_LABEL_MALE = "Male", // json: "Male" |
| 261 | 269 | } |
| 262 | 270 | |
| 271 | +GenderLabel GenderLabel_from_JSON(mixed json) { | |
| 272 | + return json; | |
| 273 | +} | |
| 274 | + | |
| 263 | 275 | enum Namemod { |
| 264 | 276 | EMPTY = "", // json: "" |
| 265 | 277 | JR = "Jr.", // json: "Jr." |
| 266 | 278 | III = "III", // json: "III" |
| 267 | 279 | } |
| 268 | 280 | |
| 281 | +Namemod Namemod_from_JSON(mixed json) { | |
| 282 | + return json; | |
| 283 | +} | |
| 284 | + | |
| 269 | 285 | enum RoleType { |
| 270 | 286 | SENATOR = "senator", // json: "senator" |
| 271 | 287 | } |
| 272 | 288 | |
| 289 | +RoleType RoleType_from_JSON(mixed json) { | |
| 290 | + return json; | |
| 291 | +} | |
| 292 | + | |
| 273 | 293 | enum RoleTypeLabel { |
| 274 | 294 | ROLE_TYPE_LABEL_SENATOR = "Senator", // json: "Senator" |
| 275 | 295 | } |
| 276 | 296 | |
| 297 | +RoleTypeLabel RoleTypeLabel_from_JSON(mixed json) { | |
| 298 | + return json; | |
| 299 | +} | |
| 300 | + | |
| 277 | 301 | enum SenatorClass { |
| 278 | 302 | CLASS1 = "class1", // json: "class1" |
| 279 | 303 | CLASS2 = "class2", // json: "class2" |
| 280 | 304 | CLASS3 = "class3", // json: "class3" |
| 281 | 305 | } |
| 282 | 306 | |
| 307 | +SenatorClass SenatorClass_from_JSON(mixed json) { | |
| 308 | + return json; | |
| 309 | +} | |
| 310 | + | |
| 283 | 311 | enum SenatorClassLabel { |
| 284 | 312 | CLASS_1 = "Class 1", // json: "Class 1" |
| 285 | 313 | CLASS_2 = "Class 2", // json: "Class 2" |
| 286 | 314 | CLASS_3 = "Class 3", // json: "Class 3" |
| 287 | 315 | } |
| 288 | 316 | |
| 317 | +SenatorClassLabel SenatorClassLabel_from_JSON(mixed json) { | |
| 318 | + return json; | |
| 319 | +} | |
| 320 | + | |
| 289 | 321 | enum SenatorRank { |
| 290 | 322 | JUNIOR = "junior", // json: "junior" |
| 291 | 323 | SENIOR = "senior", // json: "senior" |
| 292 | 324 | } |
| 293 | 325 | |
| 326 | +SenatorRank SenatorRank_from_JSON(mixed json) { | |
| 327 | + return json; | |
| 328 | +} | |
| 329 | + | |
| 294 | 330 | enum SenatorRankLabel { |
| 295 | 331 | SENATOR_RANK_LABEL_JUNIOR = "Junior", // json: "Junior" |
| 296 | 332 | SENATOR_RANK_LABEL_SENIOR = "Senior", // json: "Senior" |
| 297 | 333 | } |
| 298 | 334 | |
| 335 | +SenatorRankLabel SenatorRankLabel_from_JSON(mixed json) { | |
| 336 | + return json; | |
| 337 | +} | |
| 338 | + | |
| 299 | 339 | enum Title { |
| 300 | 340 | SEN = "Sen.", // json: "Sen." |
| 301 | 341 | } |
| 342 | + | |
| 343 | +Title Title_from_JSON(mixed json) { | |
| 344 | + return json; | |
| 345 | +} |
Test case
1 generated file · +4 −0test/inputs/schema/accessors.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -47,6 +47,10 @@ enum Enum { | ||
| 47 | 47 | BLUE = "blue", // json: "blue" |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | +Enum Enum_from_JSON(mixed json) { | |
| 51 | + return json; | |
| 52 | +} | |
| 53 | + | |
| 50 | 54 | typedef float|bool Union; |
| 51 | 55 | |
| 52 | 56 | Union Union_from_JSON(mixed json) { |
Test case
1 generated file · +0 −53test/inputs/schema/all-of-additional-properties-false.schema
Dschema-pikedefault / TopLevel.pmod+0 −53
| @@ -1,53 +0,0 @@ | ||
| 1 | -// This source has been automatically generated by quicktype. | |
| 2 | -// ( https://github.com/quicktype/quicktype ) | |
| 3 | -// | |
| 4 | -// To use this code, simply import it into your project as a Pike module. | |
| 5 | -// To JSON-encode your object, you can pass it to `Standards.JSON.encode` | |
| 6 | -// or call `encode_json` on it. | |
| 7 | -// | |
| 8 | -// To decode a JSON string, first pass it to `Standards.JSON.decode`, | |
| 9 | -// and then pass the result to `<YourClass>_from_JSON`. | |
| 10 | -// It will return an instance of <YourClass>. | |
| 11 | -// Bear in mind that these functions have unexpected behavior, | |
| 12 | -// and will likely throw an error, if the JSON string does not | |
| 13 | -// match the expected interface, even if the JSON itself is valid. | |
| 14 | - | |
| 15 | -class TopLevel { | |
| 16 | - float amount; // json: "amount" | |
| 17 | - Frequency frequency; // json: "frequency" | |
| 18 | - mixed|string description; // json: "description" | |
| 19 | - Type type; // json: "type" | |
| 20 | - | |
| 21 | - string encode_json() { | |
| 22 | - mapping(string:mixed) json = ([ | |
| 23 | - "amount" : amount, | |
| 24 | - "frequency" : frequency, | |
| 25 | - "description" : description, | |
| 26 | - "type" : type, | |
| 27 | - ]); | |
| 28 | - | |
| 29 | - return Standards.JSON.encode(json); | |
| 30 | - } | |
| 31 | -} | |
| 32 | - | |
| 33 | -TopLevel TopLevel_from_JSON(mixed json) { | |
| 34 | - TopLevel retval = TopLevel(); | |
| 35 | - | |
| 36 | - retval.amount = json["amount"]; | |
| 37 | - retval.frequency = json["frequency"]; | |
| 38 | - retval.description = json["description"]; | |
| 39 | - retval.type = json["type"]; | |
| 40 | - | |
| 41 | - return retval; | |
| 42 | -} | |
| 43 | - | |
| 44 | -enum Frequency { | |
| 45 | - WEEKLY = "Weekly", // json: "Weekly" | |
| 46 | - MONTHLY = "Monthly", // json: "Monthly" | |
| 47 | - ANNUALLY = "Annually", // json: "Annually" | |
| 48 | -} | |
| 49 | - | |
| 50 | -enum Type { | |
| 51 | - GROSS_SALARY_AMOUNT = "GrossSalaryAmount", // json: "GrossSalaryAmount" | |
| 52 | - OVERTIME = "Overtime", // json: "Overtime" | |
| 53 | -} |
Test case
1 generated file · +4 −0test/inputs/schema/comment-injection-enum-nested-comment.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -35,3 +35,7 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 35 | 35 | enum Kind { |
| 36 | 36 | OK = "ok", // json: "ok" |
| 37 | 37 | } |
| 38 | + | |
| 39 | +Kind Kind_from_JSON(mixed json) { | |
| 40 | + return json; | |
| 41 | +} |
Test case
1 generated file · +4 −0test/inputs/schema/comment-injection-enum.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -35,3 +35,7 @@ TopLevel TopLevel_from_JSON(mixed json) { | ||
| 35 | 35 | enum Kind { |
| 36 | 36 | OK = "ok", // json: "ok" |
| 37 | 37 | } |
| 38 | + | |
| 39 | +Kind Kind_from_JSON(mixed json) { | |
| 40 | + return json; | |
| 41 | +} |
Test case
1 generated file · +0 −49test/inputs/schema/const-non-string.schema
Dschema-pikedefault / TopLevel.pmod+0 −49
| @@ -1,49 +0,0 @@ | ||
| 1 | -// This source has been automatically generated by quicktype. | |
| 2 | -// ( https://github.com/quicktype/quicktype ) | |
| 3 | -// | |
| 4 | -// To use this code, simply import it into your project as a Pike module. | |
| 5 | -// To JSON-encode your object, you can pass it to `Standards.JSON.encode` | |
| 6 | -// or call `encode_json` on it. | |
| 7 | -// | |
| 8 | -// To decode a JSON string, first pass it to `Standards.JSON.decode`, | |
| 9 | -// and then pass the result to `<YourClass>_from_JSON`. | |
| 10 | -// It will return an instance of <YourClass>. | |
| 11 | -// Bear in mind that these functions have unexpected behavior, | |
| 12 | -// and will likely throw an error, if the JSON string does not | |
| 13 | -// match the expected interface, even if the JSON itself is valid. | |
| 14 | - | |
| 15 | -class TopLevel { | |
| 16 | - int amount; // json: "amount" | |
| 17 | - bool enabled; // json: "enabled" | |
| 18 | - Kind kind; // json: "kind" | |
| 19 | - float ratio; // json: "ratio" | |
| 20 | - float version; // json: "version" | |
| 21 | - | |
| 22 | - string encode_json() { | |
| 23 | - mapping(string:mixed) json = ([ | |
| 24 | - "amount" : amount, | |
| 25 | - "enabled" : enabled, | |
| 26 | - "kind" : kind, | |
| 27 | - "ratio" : ratio, | |
| 28 | - "version" : version, | |
| 29 | - ]); | |
| 30 | - | |
| 31 | - return Standards.JSON.encode(json); | |
| 32 | - } | |
| 33 | -} | |
| 34 | - | |
| 35 | -TopLevel TopLevel_from_JSON(mixed json) { | |
| 36 | - TopLevel retval = TopLevel(); | |
| 37 | - | |
| 38 | - retval.amount = json["amount"]; | |
| 39 | - retval.enabled = json["enabled"]; | |
| 40 | - retval.kind = json["kind"]; | |
| 41 | - retval.ratio = json["ratio"]; | |
| 42 | - retval.version = json["version"]; | |
| 43 | - | |
| 44 | - return retval; | |
| 45 | -} | |
| 46 | - | |
| 47 | -enum Kind { | |
| 48 | - WIDGET = "widget", // json: "widget" | |
| 49 | -} |
Test case
1 generated file · +4 −0test/inputs/schema/description.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -77,6 +77,10 @@ enum Enum { | ||
| 77 | 77 | BAR = "bar", // json: "bar" |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | +Enum Enum_from_JSON(mixed json) { | |
| 81 | + return json; | |
| 82 | +} | |
| 83 | + | |
| 80 | 84 | // Either a number or a string |
| 81 | 85 | typedef float|string Union; |
Test case
1 generated file · +8 −0test/inputs/schema/enum-large.schema
Mschema-pikedefault / TopLevel.pmod+8 −0
| @@ -58,8 +58,16 @@ enum Callsign { | ||
| 58 | 58 | TANGO = "tango", // json: "tango" |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | +Callsign Callsign_from_JSON(mixed json) { | |
| 62 | + return json; | |
| 63 | +} | |
| 64 | + | |
| 61 | 65 | enum Priority { |
| 62 | 66 | LOW = "low", // json: "low" |
| 63 | 67 | MEDIUM = "medium", // json: "medium" |
| 64 | 68 | HIGH = "high", // json: "high" |
| 65 | 69 | } |
| 70 | + | |
| 71 | +Priority Priority_from_JSON(mixed json) { | |
| 72 | + return json; | |
| 73 | +} |
Test case
1 generated file · +4 −0test/inputs/schema/enum-with-null.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -36,3 +36,7 @@ enum Enum { | ||
| 36 | 36 | FOO = "foo", // json: "foo" |
| 37 | 37 | BAR = "bar", // json: "bar" |
| 38 | 38 | } |
| 39 | + | |
| 40 | +Enum Enum_from_JSON(mixed json) { | |
| 41 | + return json; | |
| 42 | +} |
Test case
1 generated file · +4 −0test/inputs/schema/enum-with-values.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -41,3 +41,7 @@ enum Weekdays { | ||
| 41 | 41 | SATURDAY = "Saturday", // json: "Saturday" |
| 42 | 42 | SUNDAY = "Sunday", // json: "Sunday" |
| 43 | 43 | } |
| 44 | + | |
| 45 | +Weekdays Weekdays_from_JSON(mixed json) { | |
| 46 | + return json; | |
| 47 | +} |
Test case
1 generated file · +12 −0test/inputs/schema/enum.schema
Mschema-pikedefault / TopLevel.pmod+12 −0
| @@ -56,14 +56,26 @@ enum OtherArr { | ||
| 56 | 56 | IF = "if", // json: "if" |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | +OtherArr OtherArr_from_JSON(mixed json) { | |
| 60 | + return json; | |
| 61 | +} | |
| 62 | + | |
| 59 | 63 | enum Gve { |
| 60 | 64 | GOOD = "good", // json: "good" |
| 61 | 65 | GVE_NEUTRAL = "neutral", // json: "neutral" |
| 62 | 66 | EVIL = "evil", // json: "evil" |
| 63 | 67 | } |
| 64 | 68 | |
| 69 | +Gve Gve_from_JSON(mixed json) { | |
| 70 | + return json; | |
| 71 | +} | |
| 72 | + | |
| 65 | 73 | enum Lvc { |
| 66 | 74 | LAWFUL = "lawful", // json: "lawful" |
| 67 | 75 | LVC_NEUTRAL = "neutral", // json: "neutral" |
| 68 | 76 | CHAOTIC = "chaotic", // json: "chaotic" |
| 69 | 77 | } |
| 78 | + | |
| 79 | +Lvc Lvc_from_JSON(mixed json) { | |
| 80 | + return json; | |
| 81 | +} |
Test case
1 generated file · +4 −0test/inputs/schema/haskell-enum-forbidden.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -36,3 +36,7 @@ enum Health { | ||
| 36 | 36 | OK = "ok", // json: "ok" |
| 37 | 37 | ERROR = "error", // json: "error" |
| 38 | 38 | } |
| 39 | + | |
| 40 | +Health Health_from_JSON(mixed json) { | |
| 41 | + return json; | |
| 42 | +} |
Test case
1 generated file · +0 −19test/inputs/schema/issue2680-top-level-array.schema
Dschema-pikedefault / TopLevel.pmod+0 −19
| @@ -1,19 +0,0 @@ | ||
| 1 | -// This source has been automatically generated by quicktype. | |
| 2 | -// ( https://github.com/quicktype/quicktype ) | |
| 3 | -// | |
| 4 | -// To use this code, simply import it into your project as a Pike module. | |
| 5 | -// To JSON-encode your object, you can pass it to `Standards.JSON.encode` | |
| 6 | -// or call `encode_json` on it. | |
| 7 | -// | |
| 8 | -// To decode a JSON string, first pass it to `Standards.JSON.decode`, | |
| 9 | -// and then pass the result to `<YourClass>_from_JSON`. | |
| 10 | -// It will return an instance of <YourClass>. | |
| 11 | -// Bear in mind that these functions have unexpected behavior, | |
| 12 | -// and will likely throw an error, if the JSON string does not | |
| 13 | -// match the expected interface, even if the JSON itself is valid. | |
| 14 | - | |
| 15 | -typedef array(int) TopLevel; | |
| 16 | - | |
| 17 | -TopLevel TopLevel_from_JSON(mixed json) { | |
| 18 | - return json; | |
| 19 | -} |
Test case
1 generated file · +4 −0test/inputs/schema/keyword-enum.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -311,3 +311,7 @@ enum Enum { | ||
| 311 | 311 | YIELD = "yield", // json: "yield" |
| 312 | 312 | DUMMY = "dummy", // json: "dummy" |
| 313 | 313 | } |
| 314 | + | |
| 315 | +Enum Enum_from_JSON(mixed json) { | |
| 316 | + return json; | |
| 317 | +} |
Test case
1 generated file · +6,933 −0test/inputs/schema/keyword-unions.schema
Aschema-pikedefault / TopLevel.pmod+6,933 −0
| @@ -0,0 +1,6933 @@ | ||
| 1 | +// This source has been automatically generated by quicktype. | |
| 2 | +// ( https://github.com/quicktype/quicktype ) | |
| 3 | +// | |
| 4 | +// To use this code, simply import it into your project as a Pike module. | |
| 5 | +// To JSON-encode your object, you can pass it to `Standards.JSON.encode` | |
| 6 | +// or call `encode_json` on it. | |
| 7 | +// | |
| 8 | +// To decode a JSON string, first pass it to `Standards.JSON.decode`, | |
| 9 | +// and then pass the result to `<YourClass>_from_JSON`. | |
| 10 | +// It will return an instance of <YourClass>. | |
| 11 | +// Bear in mind that these functions have unexpected behavior, | |
| 12 | +// and will likely throw an error, if the JSON string does not | |
| 13 | +// match the expected interface, even if the JSON itself is valid. | |
| 14 | + | |
| 15 | +class TopLevel { | |
| 16 | + UnionUnion empty; // json: "_" | |
| 17 | + UnionBoolUnion top_level_bool; // json: "_Bool" | |
| 18 | + UnionComplex complex; // json: "_Complex" | |
| 19 | + UnionImaginery imaginery; // json: "_Imaginery" | |
| 20 | + UnionAbstract abstract; // json: "abstract" | |
| 21 | + UnionAlignas alignas; // json: "alignas" | |
| 22 | + UnionAlignof alignof; // json: "alignof" | |
| 23 | + UnionAnd and; // json: "and" | |
| 24 | + UnionAndEq and_eq; // json: "and_eq" | |
| 25 | + UnionAnyUnion top_level_any; // json: "any" | |
| 26 | + UnionAny any; // json: "Any" | |
| 27 | + UnionArray top_level_array; // json: "array" | |
| 28 | + UnionAs as; // json: "as" | |
| 29 | + UnionAsm asm; // json: "asm" | |
| 30 | + UnionAssert assert; // json: "assert" | |
| 31 | + UnionAssociatedtype associatedtype; // json: "associatedtype" | |
| 32 | + UnionAssociativity associativity; // json: "associativity" | |
| 33 | + UnionAsync async; // json: "async" | |
| 34 | + UnionAtomic atomic; // json: "atomic" | |
| 35 | + UnionAtomicCancel atomic_cancel; // json: "atomic_cancel" | |
| 36 | + UnionAtomicCommit atomic_commit; // json: "atomic_commit" | |
| 37 | + UnionAtomicNoexcept atomic_noexcept; // json: "atomic_noexcept" | |
| 38 | + UnionAuto top_level_auto; // json: "auto" | |
| 39 | + UnionAwait await; // json: "await" | |
| 40 | + UnionBase base; // json: "base" | |
| 41 | + UnionBitand bitand; // json: "bitand" | |
| 42 | + UnionBitor bitor; // json: "bitor" | |
| 43 | + UnionBool bool; // json: "BOOL" | |
| 44 | + TopLevelUnionBool purple_bool; // json: "bool" | |
| 45 | + UnionBoolean boolean; // json: "boolean" | |
| 46 | + UnionBreak top_level_break; // json: "break" | |
| 47 | + UnionBycopy bycopy; // json: "bycopy" | |
| 48 | + UnionByref byref; // json: "byref" | |
| 49 | + UnionByte byte; // json: "byte" | |
| 50 | + UnionCase top_level_case; // json: "case" | |
| 51 | + UnionCatch top_level_catch; // json: "catch" | |
| 52 | + UnionChan chan; // json: "chan" | |
| 53 | + UnionChar char; // json: "char" | |
| 54 | + UnionChar16T char16_t; // json: "char16_t" | |
| 55 | + UnionChar32T char32_t; // json: "char32_t" | |
| 56 | + UnionChecked checked; // json: "checked" | |
| 57 | + UnionClassUnion purple_class; // json: "class" | |
| 58 | + UnionClass top_level_class; // json: "Class" | |
| 59 | + UnionCoAwait co_await; // json: "co_await" | |
| 60 | + UnionCoReturn co_return; // json: "co_return" | |
| 61 | + UnionCoYield co_yield; // json: "co_yield" | |
| 62 | + UnionCompl compl; // json: "compl" | |
| 63 | + UnionConcept concept; // json: "concept" | |
| 64 | + UnionConsole console; // json: "console" | |
| 65 | + UnionConst top_level_const; // json: "const" | |
| 66 | + UnionConstCast const_cast; // json: "const_cast" | |
| 67 | + UnionConstexpr constexpr; // json: "constexpr" | |
| 68 | + UnionConstructor constructor; // json: "constructor" | |
| 69 | + UnionContinue top_level_continue; // json: "continue" | |
| 70 | + UnionConvenience convenience; // json: "convenience" | |
| 71 | + UnionConvert convert; // json: "convert" | |
| 72 | + UnionConverter converter; // json: "converter" | |
| 73 | + UnionDate date; // json: "date" | |
| 74 | + UnionDateParseHandling date_parse_handling; // json: "date_parse_handling" | |
| 75 | + UnionDebugger debugger; // json: "debugger" | |
| 76 | + UnionDecimal decimal; // json: "decimal" | |
| 77 | + UnionDeclare declare; // json: "declare" | |
| 78 | + UnionDecltype decltype; // json: "decltype" | |
| 79 | + UnionDecodeString decode_string; // json: "decode_string" | |
| 80 | + UnionDef def; // json: "def" | |
| 81 | + UnionDefault top_level_default; // json: "default" | |
| 82 | + UnionDefer defer; // json: "defer" | |
| 83 | + UnionDeinit deinit; // json: "deinit" | |
| 84 | + UnionDel del; // json: "del" | |
| 85 | + UnionDelegate delegate; // json: "delegate" | |
| 86 | + UnionDelete delete; // json: "delete" | |
| 87 | + UnionDict dict; // json: "dict" | |
| 88 | + UnionDictionary dictionary; // json: "dictionary" | |
| 89 | + UnionDidSet did_set; // json: "didSet" | |
| 90 | + UnionDo top_level_do; // json: "do" | |
| 91 | + UnionDouble double; // json: "double" | |
| 92 | + float|mixed dummy; // json: "dummy" | |
| 93 | + UnionDynamic dynamic; // json: "dynamic" | |
| 94 | + UnionDynamicCast dynamic_cast; // json: "dynamic_cast" | |
| 95 | + UnionElif elif; // json: "elif" | |
| 96 | + UnionElse top_level_else; // json: "else" | |
| 97 | + UnionEncodeQuickType encode_quick_type; // json: "encode_quick_type" | |
| 98 | + UnionEnum top_level_enum; // json: "enum" | |
| 99 | + UnionEvent event; // json: "event" | |
| 100 | + UnionExcept except; // json: "except" | |
| 101 | + UnionException exception; // json: "exception" | |
| 102 | + UnionExplicit explicit; // json: "explicit" | |
| 103 | + UnionExport export; // json: "export" | |
| 104 | + UnionExposing exposing; // json: "exposing" | |
| 105 | + UnionExtends extends; // json: "extends" | |
| 106 | + UnionExtension extension; // json: "extension" | |
| 107 | + UnionExtern top_level_extern; // json: "extern" | |
| 108 | + UnionFallthrough fallthrough; // json: "fallthrough" | |
| 109 | + UnionFalseUnion top_level_false; // json: "false" | |
| 110 | + UnionFalse false; // json: "False" | |
| 111 | + UnionFileprivate fileprivate; // json: "fileprivate" | |
| 112 | + UnionFinal top_level_final; // json: "final" | |
| 113 | + UnionFinally finally; // json: "finally" | |
| 114 | + UnionFixed fixed; // json: "fixed" | |
| 115 | + UnionFloat top_level_float; // json: "float" | |
| 116 | + UnionFor top_level_for; // json: "for" | |
| 117 | + UnionForeach top_level_foreach; // json: "foreach" | |
| 118 | + UnionFriend friend; // json: "friend" | |
| 119 | + UnionFrom from; // json: "from" | |
| 120 | + UnionFromJson from_json; // json: "from_json" | |
| 121 | + UnionFunc func; // json: "func" | |
| 122 | + UnionFunction top_level_function; // json: "function" | |
| 123 | + UnionGet get; // json: "get" | |
| 124 | + UnionGlobal top_level_global; // json: "global" | |
| 125 | + UnionGo go; // json: "go" | |
| 126 | + UnionGoto goto; // json: "goto" | |
| 127 | + UnionGuard guard; // json: "guard" | |
| 128 | + UnionHasOwnProperty has_own_property; // json: "hasOwnProperty" | |
| 129 | + UnionId id; // json: "id" | |
| 130 | + UnionIf top_level_if; // json: "if" | |
| 131 | + UnionImp imp; // json: "IMP" | |
| 132 | + UnionImplements implements; // json: "implements" | |
| 133 | + UnionImplicit implicit; // json: "implicit" | |
| 134 | + UnionImport top_level_import; // json: "import" | |
| 135 | + UnionIn in; // json: "in" | |
| 136 | + UnionIndirect indirect; // json: "indirect" | |
| 137 | + UnionInfix infix; // json: "infix" | |
| 138 | + UnionInit init; // json: "init" | |
| 139 | + UnionInline top_level_inline; // json: "inline" | |
| 140 | + UnionInout inout; // json: "inout" | |
| 141 | + UnionInstanceof instanceof; // json: "instanceof" | |
| 142 | + UnionInt top_level_int; // json: "int" | |
| 143 | + UnionInterface interface; // json: "interface" | |
| 144 | + UnionInternal internal; // json: "internal" | |
| 145 | + UnionIs is; // json: "is" | |
| 146 | + UnionIterable iterable; // json: "iterable" | |
| 147 | + UnionJdec jdec; // json: "jdec" | |
| 148 | + UnionJenc jenc; // json: "jenc" | |
| 149 | + UnionJpipe jpipe; // json: "jpipe" | |
| 150 | + UnionJson json; // json: "json" | |
| 151 | + UnionJsonConverter json_converter; // json: "json_converter" | |
| 152 | + UnionJsonSerializer json_serializer; // json: "json_serializer" | |
| 153 | + UnionJsonToken json_token; // json: "json_token" | |
| 154 | + UnionJsonWriter json_writer; // json: "json_writer" | |
| 155 | + UnionLambda top_level_lambda; // json: "lambda" | |
| 156 | + UnionLazy lazy; // json: "lazy" | |
| 157 | + UnionLeft left; // json: "left" | |
| 158 | + UnionLet let; // json: "let" | |
| 159 | + UnionList list; // json: "list" | |
| 160 | + UnionLock lock; // json: "lock" | |
| 161 | + UnionLong long; // json: "long" | |
| 162 | + UnionMap map; // json: "map" | |
| 163 | + UnionMetadataPropertyHandling metadata_property_handling; // json: "metadata_property_handling" | |
| 164 | + UnionModule module; // json: "module" | |
| 165 | + UnionMutable mutable; // json: "mutable" | |
| 166 | + UnionMutating mutating; // json: "mutating" | |
| 167 | + UnionNamespace namespace; // json: "namespace" | |
| 168 | + UnionNative native; // json: "native" | |
| 169 | + UnionNew new; // json: "new" | |
| 170 | + UnionNewtonsoft newtonsoft; // json: "newtonsoft" | |
| 171 | + UnionNil nil; // json: "nil" | |
| 172 | + UnionNo no; // json: "NO" | |
| 173 | + UnionNoexcept noexcept; // json: "noexcept" | |
| 174 | + UnionNonatomic nonatomic; // json: "nonatomic" | |
| 175 | + UnionNoneUnion top_level_none; // json: "none" | |
| 176 | + UnionNone none; // json: "None" | |
| 177 | + UnionNonlocal nonlocal; // json: "nonlocal" | |
| 178 | + UnionNonmutating nonmutating; // json: "nonmutating" | |
| 179 | + UnionNot not; // json: "not" | |
| 180 | + UnionNotEq not_eq; // json: "not_eq" | |
| 181 | + UnionNsString ns_string; // json: "NSString" | |
| 182 | + UnionNull null; // json: "NULL" | |
| 183 | + UnionNullUnion top_level_null; // json: "null" | |
| 184 | + UnionNullptr nullptr; // json: "nullptr" | |
| 185 | + UnionNumber number; // json: "number" | |
| 186 | + UnionObject top_level_object; // json: "object" | |
| 187 | + UnionOf of; // json: "of" | |
| 188 | + UnionOneway oneway; // json: "oneway" | |
| 189 | + UnionOpen open; // json: "open" | |
| 190 | + UnionOperator operator; // json: "operator" | |
| 191 | + UnionOptional top_level_optional; // json: "optional" | |
| 192 | + UnionOr or; // json: "or" | |
| 193 | + UnionOrEq or_eq; // json: "or_eq" | |
| 194 | + UnionOut out; // json: "out" | |
| 195 | + UnionOverride override; // json: "override" | |
| 196 | + UnionPackage package; // json: "package" | |
| 197 | + UnionParams params; // json: "params" | |
| 198 | + UnionPass pass; // json: "pass" | |
| 199 | + UnionPort port; // json: "port" | |
| 200 | + UnionPostfix postfix; // json: "postfix" | |
| 201 | + UnionPrecedence precedence; // json: "precedence" | |
| 202 | + UnionPrefix prefix; // json: "prefix" | |
| 203 | + UnionPrint print; // json: "print" | |
| 204 | + UnionPrintf printf; // json: "printf" | |
| 205 | + UnionPrivate top_level_private; // json: "private" | |
| 206 | + UnionProtected top_level_protected; // json: "protected" | |
| 207 | + UnionProtocol protocol; // json: "Protocol" | |
| 208 | + UnionProtocolUnion top_level_protocol; // json: "protocol" | |
| 209 | + UnionPublic top_level_public; // json: "public" | |
| 210 | + UnionQuicktype quicktype; // json: "quicktype" | |
| 211 | + UnionRaise raise; // json: "raise" | |
| 212 | + UnionRange range; // json: "range" | |
| 213 | + UnionReadonly readonly; // json: "readonly" | |
| 214 | + UnionRef ref; // json: "ref" | |
| 215 | + UnionRegister register; // json: "register" | |
| 216 | + UnionReinterpretCast reinterpret_cast; // json: "reinterpret_cast" | |
| 217 | + UnionRepeat repeat; // json: "repeat" | |
| 218 | + UnionRequire require; // json: "require" | |
| 219 | + UnionRequired required; // json: "required" | |
| 220 | + UnionRequires requires; // json: "requires" | |
| 221 | + UnionRestrict restrict; // json: "restrict" | |
| 222 | + UnionRetain retain; // json: "retain" | |
| 223 | + UnionRethrows rethrows; // json: "rethrows" | |
| 224 | + UnionReturn top_level_return; // json: "return" | |
| 225 | + UnionRight right; // json: "right" | |
| 226 | + UnionSbyte sbyte; // json: "sbyte" | |
| 227 | + UnionSealed sealed; // json: "sealed" | |
| 228 | + UnionSel sel; // json: "SEL" | |
| 229 | + UnionSelect select; // json: "select" | |
| 230 | + UnionSelf self; // json: "Self" | |
| 231 | + UnionSelfUnion top_level_self; // json: "self" | |
| 232 | + UnionSerialize serialize; // json: "serialize" | |
| 233 | + UnionSet set; // json: "set" | |
| 234 | + UnionShort short; // json: "short" | |
| 235 | + UnionSigned signed; // json: "signed" | |
| 236 | + UnionSizeof sizeof; // json: "sizeof" | |
| 237 | + UnionStackalloc stackalloc; // json: "stackalloc" | |
| 238 | + UnionStatic top_level_static; // json: "static" | |
| 239 | + UnionStaticAssert static_assert; // json: "static_assert" | |
| 240 | + UnionStaticCast static_cast; // json: "static_cast" | |
| 241 | + UnionStrictfp strictfp; // json: "strictfp" | |
| 242 | + UnionString top_level_string; // json: "string" | |
| 243 | + UnionStruct struct; // json: "struct" | |
| 244 | + UnionSubscript subscript; // json: "subscript" | |
| 245 | + UnionSuper super; // json: "super" | |
| 246 | + UnionSwitch top_level_switch; // json: "switch" | |
| 247 | + UnionSymbol symbol; // json: "symbol" | |
| 248 | + UnionSynchronized synchronized; // json: "synchronized" | |
| 249 | + UnionSystem system; // json: "system" | |
| 250 | + UnionTemplate template; // json: "template" | |
| 251 | + UnionThen then; // json: "then" | |
| 252 | + UnionThis this; // json: "this" | |
| 253 | + UnionThreadLocal thread_local; // json: "thread_local" | |
| 254 | + UnionThrow throw; // json: "throw" | |
| 255 | + UnionThrows throws; // json: "throws" | |
| 256 | + UnionToJson to_json; // json: "to_json" | |
| 257 | + UnionTopLevel top_level; // json: "top_level" | |
| 258 | + UnionTransient transient; // json: "transient" | |
| 259 | + UnionTrue true; // json: "True" | |
| 260 | + UnionTrueUnion top_level_true; // json: "true" | |
| 261 | + UnionTry try; // json: "try" | |
| 262 | + UnionType type; // json: "Type" | |
| 263 | + UnionTypeUnion top_level_type; // json: "type" | |
| 264 | + UnionTypealias typealias; // json: "typealias" | |
| 265 | + UnionTypedef top_level_typedef; // json: "typedef" | |
| 266 | + UnionTypeid typeid; // json: "typeid" | |
| 267 | + UnionTypename typename; // json: "typename" | |
| 268 | + UnionTypeof top_level_typeof; // json: "typeof" | |
| 269 | + UnionUint uint; // json: "uint" | |
| 270 | + UnionUlong ulong; // json: "ulong" | |
| 271 | + UnionUnchecked unchecked; // json: "unchecked" | |
| 272 | + UnionUndefined undefined; // json: "undefined" | |
| 273 | + UnionUnionUnion union; // json: "union" | |
| 274 | + UnionUnowned unowned; // json: "unowned" | |
| 275 | + UnionUnsafe unsafe; // json: "unsafe" | |
| 276 | + UnionUnsigned unsigned; // json: "unsigned" | |
| 277 | + UnionUshort ushort; // json: "ushort" | |
| 278 | + UnionUsing using; // json: "using" | |
| 279 | + UnionVar var; // json: "var" | |
| 280 | + UnionVirtual virtual; // json: "virtual" | |
| 281 | + UnionVoid top_level_void; // json: "void" | |
| 282 | + UnionVolatile volatile; // json: "volatile" | |
| 283 | + UnionWcharT wchar_t; // json: "wchar_t" | |
| 284 | + UnionWeak weak; // json: "weak" | |
| 285 | + UnionWhere where; // json: "where" | |
| 286 | + UnionWhile top_level_while; // json: "while" | |
| 287 | + UnionWillSet will_set; // json: "willSet" | |
| 288 | + UnionWith with; // json: "with" | |
| 289 | + UnionXor xor; // json: "xor" | |
| 290 | + UnionXorEq xor_eq; // json: "xor_eq" | |
| 291 | + UnionYes yes; // json: "YES" | |
| 292 | + UnionYield yield; // json: "yield" | |
| 293 | + | |
| 294 | + string encode_json() { | |
| 295 | + mapping(string:mixed) json = ([ | |
| 296 | + "_" : empty, | |
| 297 | + "_Bool" : top_level_bool, | |
| 298 | + "_Complex" : complex, | |
| 299 | + "_Imaginery" : imaginery, | |
| 300 | + "abstract" : abstract, | |
| 301 | + "alignas" : alignas, | |
| 302 | + "alignof" : alignof, | |
| 303 | + "and" : and, | |
| 304 | + "and_eq" : and_eq, | |
| 305 | + "any" : top_level_any, | |
| 306 | + "Any" : any, | |
| 307 | + "array" : top_level_array, | |
| 308 | + "as" : as, | |
| 309 | + "asm" : asm, | |
| 310 | + "assert" : assert, | |
| 311 | + "associatedtype" : associatedtype, | |
| 312 | + "associativity" : associativity, | |
| 313 | + "async" : async, | |
| 314 | + "atomic" : atomic, | |
| 315 | + "atomic_cancel" : atomic_cancel, | |
| 316 | + "atomic_commit" : atomic_commit, | |
| 317 | + "atomic_noexcept" : atomic_noexcept, | |
| 318 | + "auto" : top_level_auto, | |
| 319 | + "await" : await, | |
| 320 | + "base" : base, | |
| 321 | + "bitand" : bitand, | |
| 322 | + "bitor" : bitor, | |
| 323 | + "BOOL" : bool, | |
| 324 | + "bool" : purple_bool, | |
| 325 | + "boolean" : boolean, | |
| 326 | + "break" : top_level_break, | |
| 327 | + "bycopy" : bycopy, | |
| 328 | + "byref" : byref, | |
| 329 | + "byte" : byte, | |
| 330 | + "case" : top_level_case, | |
| 331 | + "catch" : top_level_catch, | |
| 332 | + "chan" : chan, | |
| 333 | + "char" : char, | |
| 334 | + "char16_t" : char16_t, | |
| 335 | + "char32_t" : char32_t, | |
| 336 | + "checked" : checked, | |
| 337 | + "class" : purple_class, | |
| 338 | + "Class" : top_level_class, | |
| 339 | + "co_await" : co_await, | |
| 340 | + "co_return" : co_return, | |
| 341 | + "co_yield" : co_yield, | |
| 342 | + "compl" : compl, | |
| 343 | + "concept" : concept, | |
| 344 | + "console" : console, | |
| 345 | + "const" : top_level_const, | |
| 346 | + "const_cast" : const_cast, | |
| 347 | + "constexpr" : constexpr, | |
| 348 | + "constructor" : constructor, | |
| 349 | + "continue" : top_level_continue, | |
| 350 | + "convenience" : convenience, | |
| 351 | + "convert" : convert, | |
| 352 | + "converter" : converter, | |
| 353 | + "date" : date, | |
| 354 | + "date_parse_handling" : date_parse_handling, | |
| 355 | + "debugger" : debugger, | |
| 356 | + "decimal" : decimal, | |
| 357 | + "declare" : declare, | |
| 358 | + "decltype" : decltype, | |
| 359 | + "decode_string" : decode_string, | |
| 360 | + "def" : def, | |
| 361 | + "default" : top_level_default, | |
| 362 | + "defer" : defer, | |
| 363 | + "deinit" : deinit, | |
| 364 | + "del" : del, | |
| 365 | + "delegate" : delegate, | |
| 366 | + "delete" : delete, | |
| 367 | + "dict" : dict, | |
| 368 | + "dictionary" : dictionary, | |
| 369 | + "didSet" : did_set, | |
| 370 | + "do" : top_level_do, | |
| 371 | + "double" : double, | |
| 372 | + "dummy" : dummy, | |
| 373 | + "dynamic" : dynamic, | |
| 374 | + "dynamic_cast" : dynamic_cast, | |
| 375 | + "elif" : elif, | |
| 376 | + "else" : top_level_else, | |
| 377 | + "encode_quick_type" : encode_quick_type, | |
| 378 | + "enum" : top_level_enum, | |
| 379 | + "event" : event, | |
| 380 | + "except" : except, | |
| 381 | + "exception" : exception, | |
| 382 | + "explicit" : explicit, | |
| 383 | + "export" : export, | |
| 384 | + "exposing" : exposing, | |
| 385 | + "extends" : extends, | |
| 386 | + "extension" : extension, | |
| 387 | + "extern" : top_level_extern, | |
| 388 | + "fallthrough" : fallthrough, | |
| 389 | + "false" : top_level_false, | |
| 390 | + "False" : false, | |
| 391 | + "fileprivate" : fileprivate, | |
| 392 | + "final" : top_level_final, | |
| 393 | + "finally" : finally, | |
| 394 | + "fixed" : fixed, | |
| 395 | + "float" : top_level_float, | |
| 396 | + "for" : top_level_for, | |
| 397 | + "foreach" : top_level_foreach, | |
| 398 | + "friend" : friend, | |
| 399 | + "from" : from, | |
| 400 | + "from_json" : from_json, | |
| 401 | + "func" : func, | |
| 402 | + "function" : top_level_function, | |
| 403 | + "get" : get, | |
| 404 | + "global" : top_level_global, | |
| 405 | + "go" : go, | |
| 406 | + "goto" : goto, | |
| 407 | + "guard" : guard, | |
| 408 | + "hasOwnProperty" : has_own_property, | |
| 409 | + "id" : id, | |
| 410 | + "if" : top_level_if, | |
| 411 | + "IMP" : imp, | |
| 412 | + "implements" : implements, | |
| 413 | + "implicit" : implicit, | |
| 414 | + "import" : top_level_import, | |
| 415 | + "in" : in, | |
| 416 | + "indirect" : indirect, | |
| 417 | + "infix" : infix, | |
| 418 | + "init" : init, | |
| 419 | + "inline" : top_level_inline, | |
| 420 | + "inout" : inout, | |
| 421 | + "instanceof" : instanceof, | |
| 422 | + "int" : top_level_int, | |
| 423 | + "interface" : interface, | |
| 424 | + "internal" : internal, | |
| 425 | + "is" : is, | |
| 426 | + "iterable" : iterable, | |
| 427 | + "jdec" : jdec, | |
| 428 | + "jenc" : jenc, | |
| 429 | + "jpipe" : jpipe, | |
| 430 | + "json" : json, | |
| 431 | + "json_converter" : json_converter, | |
| 432 | + "json_serializer" : json_serializer, | |
| 433 | + "json_token" : json_token, | |
| 434 | + "json_writer" : json_writer, | |
| 435 | + "lambda" : top_level_lambda, | |
| 436 | + "lazy" : lazy, | |
| 437 | + "left" : left, | |
| 438 | + "let" : let, | |
| 439 | + "list" : list, | |
| 440 | + "lock" : lock, | |
| 441 | + "long" : long, | |
| 442 | + "map" : map, | |
| 443 | + "metadata_property_handling" : metadata_property_handling, | |
| 444 | + "module" : module, | |
| 445 | + "mutable" : mutable, | |
| 446 | + "mutating" : mutating, | |
| 447 | + "namespace" : namespace, | |
| 448 | + "native" : native, | |
| 449 | + "new" : new, | |
| 450 | + "newtonsoft" : newtonsoft, | |
| 451 | + "nil" : nil, | |
| 452 | + "NO" : no, | |
| 453 | + "noexcept" : noexcept, | |
| 454 | + "nonatomic" : nonatomic, | |
| 455 | + "none" : top_level_none, | |
| 456 | + "None" : none, | |
| 457 | + "nonlocal" : nonlocal, | |
| 458 | + "nonmutating" : nonmutating, | |
| 459 | + "not" : not, | |
| 460 | + "not_eq" : not_eq, | |
| 461 | + "NSString" : ns_string, | |
| 462 | + "NULL" : null, | |
| 463 | + "null" : top_level_null, | |
| 464 | + "nullptr" : nullptr, | |
| 465 | + "number" : number, | |
| 466 | + "object" : top_level_object, | |
| 467 | + "of" : of, | |
| 468 | + "oneway" : oneway, | |
| 469 | + "open" : open, | |
| 470 | + "operator" : operator, | |
| 471 | + "optional" : top_level_optional, | |
| 472 | + "or" : or, | |
| 473 | + "or_eq" : or_eq, | |
| 474 | + "out" : out, | |
| 475 | + "override" : override, | |
| 476 | + "package" : package, | |
| 477 | + "params" : params, | |
| 478 | + "pass" : pass, | |
| 479 | + "port" : port, | |
| 480 | + "postfix" : postfix, | |
| 481 | + "precedence" : precedence, | |
| 482 | + "prefix" : prefix, | |
| 483 | + "print" : print, | |
| 484 | + "printf" : printf, | |
| 485 | + "private" : top_level_private, | |
| 486 | + "protected" : top_level_protected, | |
| 487 | + "Protocol" : protocol, | |
| 488 | + "protocol" : top_level_protocol, | |
| 489 | + "public" : top_level_public, | |
| 490 | + "quicktype" : quicktype, | |
| 491 | + "raise" : raise, | |
| 492 | + "range" : range, | |
| 493 | + "readonly" : readonly, | |
| 494 | + "ref" : ref, | |
| 495 | + "register" : register, | |
| 496 | + "reinterpret_cast" : reinterpret_cast, | |
| 497 | + "repeat" : repeat, | |
| 498 | + "require" : require, | |
| 499 | + "required" : required, | |
| 500 | + "requires" : requires, | |
| 501 | + "restrict" : restrict, | |
| 502 | + "retain" : retain, | |
| 503 | + "rethrows" : rethrows, | |
| 504 | + "return" : top_level_return, | |
| 505 | + "right" : right, | |
| 506 | + "sbyte" : sbyte, | |
| 507 | + "sealed" : sealed, | |
| 508 | + "SEL" : sel, | |
| 509 | + "select" : select, | |
| 510 | + "Self" : self, | |
| 511 | + "self" : top_level_self, | |
| 512 | + "serialize" : serialize, | |
| 513 | + "set" : set, | |
| 514 | + "short" : short, | |
| 515 | + "signed" : signed, | |
| 516 | + "sizeof" : sizeof, | |
| 517 | + "stackalloc" : stackalloc, | |
| 518 | + "static" : top_level_static, | |
| 519 | + "static_assert" : static_assert, | |
| 520 | + "static_cast" : static_cast, | |
| 521 | + "strictfp" : strictfp, | |
| 522 | + "string" : top_level_string, | |
| 523 | + "struct" : struct, | |
| 524 | + "subscript" : subscript, | |
| 525 | + "super" : super, | |
| 526 | + "switch" : top_level_switch, | |
| 527 | + "symbol" : symbol, | |
| 528 | + "synchronized" : synchronized, | |
| 529 | + "system" : system, | |
| 530 | + "template" : template, | |
| 531 | + "then" : then, | |
| 532 | + "this" : this, | |
| 533 | + "thread_local" : thread_local, | |
| 534 | + "throw" : throw, | |
| 535 | + "throws" : throws, | |
| 536 | + "to_json" : to_json, | |
| 537 | + "top_level" : top_level, | |
| 538 | + "transient" : transient, | |
| 539 | + "True" : true, | |
| 540 | + "true" : top_level_true, | |
| 541 | + "try" : try, | |
| 542 | + "Type" : type, | |
| 543 | + "type" : top_level_type, | |
| 544 | + "typealias" : typealias, | |
| 545 | + "typedef" : top_level_typedef, | |
| 546 | + "typeid" : typeid, | |
| 547 | + "typename" : typename, | |
| 548 | + "typeof" : top_level_typeof, | |
| 549 | + "uint" : uint, | |
| 550 | + "ulong" : ulong, | |
| 551 | + "unchecked" : unchecked, | |
| 552 | + "undefined" : undefined, | |
| 553 | + "union" : union, | |
| 554 | + "unowned" : unowned, | |
| 555 | + "unsafe" : unsafe, | |
| 556 | + "unsigned" : unsigned, | |
| 557 | + "ushort" : ushort, | |
| 558 | + "using" : using, | |
| 559 | + "var" : var, | |
| 560 | + "virtual" : virtual, | |
| 561 | + "void" : top_level_void, | |
| 562 | + "volatile" : volatile, | |
| 563 | + "wchar_t" : wchar_t, | |
| 564 | + "weak" : weak, | |
| 565 | + "where" : where, | |
| 566 | + "while" : top_level_while, | |
| 567 | + "willSet" : will_set, | |
| 568 | + "with" : with, | |
| 569 | + "xor" : xor, | |
| 570 | + "xor_eq" : xor_eq, | |
| 571 | + "YES" : yes, | |
| 572 | + "yield" : yield, | |
| 573 | + ]); | |
| 574 | + | |
| 575 | + return Standards.JSON.encode(json); | |
| 576 | + } | |
| 577 | +} | |
| 578 | + | |
| 579 | +TopLevel TopLevel_from_JSON(mixed json) { | |
| 580 | + TopLevel retval = TopLevel(); | |
| 581 | + | |
| 582 | + retval.empty = json["_"]; | |
| 583 | + retval.top_level_bool = json["_Bool"]; | |
| 584 | + retval.complex = json["_Complex"]; | |
| 585 | + retval.imaginery = json["_Imaginery"]; | |
| 586 | + retval.abstract = json["abstract"]; | |
| 587 | + retval.alignas = json["alignas"]; | |
| 588 | + retval.alignof = json["alignof"]; | |
| 589 | + retval.and = json["and"]; | |
| 590 | + retval.and_eq = json["and_eq"]; | |
| 591 | + retval.top_level_any = json["any"]; | |
| 592 | + retval.any = json["Any"]; | |
| 593 | + retval.top_level_array = json["array"]; | |
| 594 | + retval.as = json["as"]; | |
| 595 | + retval.asm = json["asm"]; | |
| 596 | + retval.assert = json["assert"]; | |
| 597 | + retval.associatedtype = json["associatedtype"]; | |
| 598 | + retval.associativity = json["associativity"]; | |
| 599 | + retval.async = json["async"]; | |
| 600 | + retval.atomic = json["atomic"]; | |
| 601 | + retval.atomic_cancel = json["atomic_cancel"]; | |
| 602 | + retval.atomic_commit = json["atomic_commit"]; | |
| 603 | + retval.atomic_noexcept = json["atomic_noexcept"]; | |
| 604 | + retval.top_level_auto = json["auto"]; | |
| 605 | + retval.await = json["await"]; | |
| 606 | + retval.base = json["base"]; | |
| 607 | + retval.bitand = json["bitand"]; | |
| 608 | + retval.bitor = json["bitor"]; | |
| 609 | + retval.bool = json["BOOL"]; | |
| 610 | + retval.purple_bool = json["bool"]; | |
| 611 | + retval.boolean = json["boolean"]; | |
| 612 | + retval.top_level_break = json["break"]; | |
| 613 | + retval.bycopy = json["bycopy"]; | |
| 614 | + retval.byref = json["byref"]; | |
| 615 | + retval.byte = json["byte"]; | |
| 616 | + retval.top_level_case = json["case"]; | |
| 617 | + retval.top_level_catch = json["catch"]; | |
| 618 | + retval.chan = json["chan"]; | |
| 619 | + retval.char = json["char"]; | |
| 620 | + retval.char16_t = json["char16_t"]; | |
| 621 | + retval.char32_t = json["char32_t"]; | |
| 622 | + retval.checked = json["checked"]; | |
| 623 | + retval.purple_class = json["class"]; | |
| 624 | + retval.top_level_class = json["Class"]; | |
| 625 | + retval.co_await = json["co_await"]; | |
| 626 | + retval.co_return = json["co_return"]; | |
| 627 | + retval.co_yield = json["co_yield"]; | |
| 628 | + retval.compl = json["compl"]; | |
| 629 | + retval.concept = json["concept"]; | |
| 630 | + retval.console = json["console"]; | |
| 631 | + retval.top_level_const = json["const"]; | |
| 632 | + retval.const_cast = json["const_cast"]; | |
| 633 | + retval.constexpr = json["constexpr"]; | |
| 634 | + retval.constructor = json["constructor"]; | |
| 635 | + retval.top_level_continue = json["continue"]; | |
| 636 | + retval.convenience = json["convenience"]; | |
| 637 | + retval.convert = json["convert"]; | |
| 638 | + retval.converter = json["converter"]; | |
| 639 | + retval.date = json["date"]; | |
| 640 | + retval.date_parse_handling = json["date_parse_handling"]; | |
| 641 | + retval.debugger = json["debugger"]; | |
| 642 | + retval.decimal = json["decimal"]; | |
| 643 | + retval.declare = json["declare"]; | |
| 644 | + retval.decltype = json["decltype"]; | |
| 645 | + retval.decode_string = json["decode_string"]; | |
| 646 | + retval.def = json["def"]; | |
| 647 | + retval.top_level_default = json["default"]; | |
| 648 | + retval.defer = json["defer"]; | |
| 649 | + retval.deinit = json["deinit"]; | |
| 650 | + retval.del = json["del"]; | |
| 651 | + retval.delegate = json["delegate"]; | |
| 652 | + retval.delete = json["delete"]; | |
| 653 | + retval.dict = json["dict"]; | |
| 654 | + retval.dictionary = json["dictionary"]; | |
| 655 | + retval.did_set = json["didSet"]; | |
| 656 | + retval.top_level_do = json["do"]; | |
| 657 | + retval.double = json["double"]; | |
| 658 | + retval.dummy = json["dummy"]; | |
| 659 | + retval.dynamic = json["dynamic"]; | |
| 660 | + retval.dynamic_cast = json["dynamic_cast"]; | |
| 661 | + retval.elif = json["elif"]; | |
| 662 | + retval.top_level_else = json["else"]; | |
| 663 | + retval.encode_quick_type = json["encode_quick_type"]; | |
| 664 | + retval.top_level_enum = json["enum"]; | |
| 665 | + retval.event = json["event"]; | |
| 666 | + retval.except = json["except"]; | |
| 667 | + retval.exception = json["exception"]; | |
| 668 | + retval.explicit = json["explicit"]; | |
| 669 | + retval.export = json["export"]; | |
| 670 | + retval.exposing = json["exposing"]; | |
| 671 | + retval.extends = json["extends"]; | |
| 672 | + retval.extension = json["extension"]; | |
| 673 | + retval.top_level_extern = json["extern"]; | |
| 674 | + retval.fallthrough = json["fallthrough"]; | |
| 675 | + retval.top_level_false = json["false"]; | |
| 676 | + retval.false = json["False"]; | |
| 677 | + retval.fileprivate = json["fileprivate"]; | |
| 678 | + retval.top_level_final = json["final"]; | |
| 679 | + retval.finally = json["finally"]; | |
| 680 | + retval.fixed = json["fixed"]; | |
| 681 | + retval.top_level_float = json["float"]; | |
| 682 | + retval.top_level_for = json["for"]; | |
| 683 | + retval.top_level_foreach = json["foreach"]; | |
| 684 | + retval.friend = json["friend"]; | |
| 685 | + retval.from = json["from"]; | |
| 686 | + retval.from_json = json["from_json"]; | |
| 687 | + retval.func = json["func"]; | |
| 688 | + retval.top_level_function = json["function"]; | |
| 689 | + retval.get = json["get"]; | |
| 690 | + retval.top_level_global = json["global"]; | |
| 691 | + retval.go = json["go"]; | |
| 692 | + retval.goto = json["goto"]; | |
| 693 | + retval.guard = json["guard"]; | |
| 694 | + retval.has_own_property = json["hasOwnProperty"]; | |
| 695 | + retval.id = json["id"]; | |
| 696 | + retval.top_level_if = json["if"]; | |
| 697 | + retval.imp = json["IMP"]; | |
| 698 | + retval.implements = json["implements"]; | |
| 699 | + retval.implicit = json["implicit"]; | |
| 700 | + retval.top_level_import = json["import"]; | |
| 701 | + retval.in = json["in"]; | |
| 702 | + retval.indirect = json["indirect"]; | |
| 703 | + retval.infix = json["infix"]; | |
| 704 | + retval.init = json["init"]; | |
| 705 | + retval.top_level_inline = json["inline"]; | |
| 706 | + retval.inout = json["inout"]; | |
| 707 | + retval.instanceof = json["instanceof"]; | |
| 708 | + retval.top_level_int = json["int"]; | |
| 709 | + retval.interface = json["interface"]; | |
| 710 | + retval.internal = json["internal"]; | |
| 711 | + retval.is = json["is"]; | |
| 712 | + retval.iterable = json["iterable"]; | |
| 713 | + retval.jdec = json["jdec"]; | |
| 714 | + retval.jenc = json["jenc"]; | |
| 715 | + retval.jpipe = json["jpipe"]; | |
| 716 | + retval.json = json["json"]; | |
| 717 | + retval.json_converter = json["json_converter"]; | |
| 718 | + retval.json_serializer = json["json_serializer"]; | |
| 719 | + retval.json_token = json["json_token"]; | |
| 720 | + retval.json_writer = json["json_writer"]; | |
| 721 | + retval.top_level_lambda = json["lambda"]; | |
| 722 | + retval.lazy = json["lazy"]; | |
| 723 | + retval.left = json["left"]; | |
| 724 | + retval.let = json["let"]; | |
| 725 | + retval.list = json["list"]; | |
| 726 | + retval.lock = json["lock"]; | |
| 727 | + retval.long = json["long"]; | |
| 728 | + retval.map = json["map"]; | |
| 729 | + retval.metadata_property_handling = json["metadata_property_handling"]; | |
| 730 | + retval.module = json["module"]; | |
| 731 | + retval.mutable = json["mutable"]; | |
| 732 | + retval.mutating = json["mutating"]; | |
| 733 | + retval.namespace = json["namespace"]; | |
| 734 | + retval.native = json["native"]; | |
| 735 | + retval.new = json["new"]; | |
| 736 | + retval.newtonsoft = json["newtonsoft"]; | |
| 737 | + retval.nil = json["nil"]; | |
| 738 | + retval.no = json["NO"]; | |
| 739 | + retval.noexcept = json["noexcept"]; | |
| 740 | + retval.nonatomic = json["nonatomic"]; | |
| 741 | + retval.top_level_none = json["none"]; | |
| 742 | + retval.none = json["None"]; | |
| 743 | + retval.nonlocal = json["nonlocal"]; | |
| 744 | + retval.nonmutating = json["nonmutating"]; | |
| 745 | + retval.not = json["not"]; | |
| 746 | + retval.not_eq = json["not_eq"]; | |
| 747 | + retval.ns_string = json["NSString"]; | |
| 748 | + retval.null = json["NULL"]; | |
| 749 | + retval.top_level_null = json["null"]; | |
| 750 | + retval.nullptr = json["nullptr"]; | |
| 751 | + retval.number = json["number"]; | |
| 752 | + retval.top_level_object = json["object"]; | |
| 753 | + retval.of = json["of"]; | |
| 754 | + retval.oneway = json["oneway"]; | |
| 755 | + retval.open = json["open"]; | |
| 756 | + retval.operator = json["operator"]; | |
| 757 | + retval.top_level_optional = json["optional"]; | |
| 758 | + retval.or = json["or"]; | |
| 759 | + retval.or_eq = json["or_eq"]; | |
| 760 | + retval.out = json["out"]; | |
| 761 | + retval.override = json["override"]; | |
| 762 | + retval.package = json["package"]; | |
| 763 | + retval.params = json["params"]; | |
| 764 | + retval.pass = json["pass"]; | |
| 765 | + retval.port = json["port"]; | |
| 766 | + retval.postfix = json["postfix"]; | |
| 767 | + retval.precedence = json["precedence"]; | |
| 768 | + retval.prefix = json["prefix"]; | |
| 769 | + retval.print = json["print"]; | |
| 770 | + retval.printf = json["printf"]; | |
| 771 | + retval.top_level_private = json["private"]; | |
| 772 | + retval.top_level_protected = json["protected"]; | |
| 773 | + retval.protocol = json["Protocol"]; | |
| 774 | + retval.top_level_protocol = json["protocol"]; | |
| 775 | + retval.top_level_public = json["public"]; | |
| 776 | + retval.quicktype = json["quicktype"]; | |
| 777 | + retval.raise = json["raise"]; | |
| 778 | + retval.range = json["range"]; | |
| 779 | + retval.readonly = json["readonly"]; | |
| 780 | + retval.ref = json["ref"]; | |
| 781 | + retval.register = json["register"]; | |
| 782 | + retval.reinterpret_cast = json["reinterpret_cast"]; | |
| 783 | + retval.repeat = json["repeat"]; | |
| 784 | + retval.require = json["require"]; | |
| 785 | + retval.required = json["required"]; | |
| 786 | + retval.requires = json["requires"]; | |
| 787 | + retval.restrict = json["restrict"]; | |
| 788 | + retval.retain = json["retain"]; | |
| 789 | + retval.rethrows = json["rethrows"]; | |
| 790 | + retval.top_level_return = json["return"]; | |
| 791 | + retval.right = json["right"]; | |
| 792 | + retval.sbyte = json["sbyte"]; | |
| 793 | + retval.sealed = json["sealed"]; | |
| 794 | + retval.sel = json["SEL"]; | |
| 795 | + retval.select = json["select"]; | |
| 796 | + retval.self = json["Self"]; | |
| 797 | + retval.top_level_self = json["self"]; | |
| 798 | + retval.serialize = json["serialize"]; | |
| 799 | + retval.set = json["set"]; | |
| 800 | + retval.short = json["short"]; | |
| 801 | + retval.signed = json["signed"]; | |
| 802 | + retval.sizeof = json["sizeof"]; | |
| 803 | + retval.stackalloc = json["stackalloc"]; | |
| 804 | + retval.top_level_static = json["static"]; | |
| 805 | + retval.static_assert = json["static_assert"]; | |
| 806 | + retval.static_cast = json["static_cast"]; | |
| 807 | + retval.strictfp = json["strictfp"]; | |
| 808 | + retval.top_level_string = json["string"]; | |
| 809 | + retval.struct = json["struct"]; | |
| 810 | + retval.subscript = json["subscript"]; | |
| 811 | + retval.super = json["super"]; | |
| 812 | + retval.top_level_switch = json["switch"]; | |
| 813 | + retval.symbol = json["symbol"]; | |
| 814 | + retval.synchronized = json["synchronized"]; | |
| 815 | + retval.system = json["system"]; | |
| 816 | + retval.template = json["template"]; | |
| 817 | + retval.then = json["then"]; | |
| 818 | + retval.this = json["this"]; | |
| 819 | + retval.thread_local = json["thread_local"]; | |
| 820 | + retval.throw = json["throw"]; | |
| 821 | + retval.throws = json["throws"]; | |
| 822 | + retval.to_json = json["to_json"]; | |
| 823 | + retval.top_level = json["top_level"]; | |
| 824 | + retval.transient = json["transient"]; | |
| 825 | + retval.true = json["True"]; | |
| 826 | + retval.top_level_true = json["true"]; | |
| 827 | + retval.try = json["try"]; | |
| 828 | + retval.type = json["Type"]; | |
| 829 | + retval.top_level_type = json["type"]; | |
| 830 | + retval.typealias = json["typealias"]; | |
| 831 | + retval.top_level_typedef = json["typedef"]; | |
| 832 | + retval.typeid = json["typeid"]; | |
| 833 | + retval.typename = json["typename"]; | |
| 834 | + retval.top_level_typeof = json["typeof"]; | |
| 835 | + retval.uint = json["uint"]; | |
| 836 | + retval.ulong = json["ulong"]; | |
| 837 | + retval.unchecked = json["unchecked"]; | |
| 838 | + retval.undefined = json["undefined"]; | |
| 839 | + retval.union = json["union"]; | |
| 840 | + retval.unowned = json["unowned"]; | |
| 841 | + retval.unsafe = json["unsafe"]; | |
| 842 | + retval.unsigned = json["unsigned"]; | |
| 843 | + retval.ushort = json["ushort"]; | |
| 844 | + retval.using = json["using"]; | |
| 845 | + retval.var = json["var"]; | |
| 846 | + retval.virtual = json["virtual"]; | |
| 847 | + retval.top_level_void = json["void"]; | |
| 848 | + retval.volatile = json["volatile"]; | |
| 849 | + retval.wchar_t = json["wchar_t"]; | |
| 850 | + retval.weak = json["weak"]; | |
| 851 | + retval.where = json["where"]; | |
| 852 | + retval.top_level_while = json["while"]; | |
| 853 | + retval.will_set = json["willSet"]; | |
| 854 | + retval.with = json["with"]; | |
| 855 | + retval.xor = json["xor"]; | |
| 856 | + retval.xor_eq = json["xor_eq"]; | |
| 857 | + retval.yes = json["YES"]; | |
| 858 | + retval.yield = json["yield"]; | |
| 859 | + | |
| 860 | + return retval; | |
| 861 | +} | |
| 862 | + | |
| 863 | +typedef Abstract|float UnionAbstract; | |
| 864 | + | |
| 865 | +UnionAbstract UnionAbstract_from_JSON(mixed json) { | |
| 866 | + return json; | |
| 867 | +} | |
| 868 | + | |
| 869 | +class Abstract { | |
| 870 | + | |
| 871 | + string encode_json() { | |
| 872 | + mapping(string:mixed) json = ([ | |
| 873 | + ]); | |
| 874 | + | |
| 875 | + return Standards.JSON.encode(json); | |
| 876 | + } | |
| 877 | +} | |
| 878 | + | |
| 879 | +Abstract Abstract_from_JSON(mixed json) { | |
| 880 | + Abstract retval = Abstract(); | |
| 881 | + | |
| 882 | + return retval; | |
| 883 | +} | |
| 884 | + | |
| 885 | +typedef Alignas|float UnionAlignas; | |
| 886 | + | |
| 887 | +UnionAlignas UnionAlignas_from_JSON(mixed json) { | |
| 888 | + return json; | |
| 889 | +} | |
| 890 | + | |
| 891 | +class Alignas { | |
| 892 | + | |
| 893 | + string encode_json() { | |
| 894 | + mapping(string:mixed) json = ([ | |
| 895 | + ]); | |
| 896 | + | |
| 897 | + return Standards.JSON.encode(json); | |
| 898 | + } | |
| 899 | +} | |
| 900 | + | |
| 901 | +Alignas Alignas_from_JSON(mixed json) { | |
| 902 | + Alignas retval = Alignas(); | |
| 903 | + | |
| 904 | + return retval; | |
| 905 | +} | |
| 906 | + | |
| 907 | +typedef Alignof|float UnionAlignof; | |
| 908 | + | |
| 909 | +UnionAlignof UnionAlignof_from_JSON(mixed json) { | |
| 910 | + return json; | |
| 911 | +} | |
| 912 | + | |
| 913 | +class Alignof { | |
| 914 | + | |
| 915 | + string encode_json() { | |
| 916 | + mapping(string:mixed) json = ([ | |
| 917 | + ]); | |
| 918 | + | |
| 919 | + return Standards.JSON.encode(json); | |
| 920 | + } | |
| 921 | +} | |
| 922 | + | |
| 923 | +Alignof Alignof_from_JSON(mixed json) { | |
| 924 | + Alignof retval = Alignof(); | |
| 925 | + | |
| 926 | + return retval; | |
| 927 | +} | |
| 928 | + | |
| 929 | +typedef And|float UnionAnd; | |
| 930 | + | |
| 931 | +UnionAnd UnionAnd_from_JSON(mixed json) { | |
| 932 | + return json; | |
| 933 | +} | |
| 934 | + | |
| 935 | +class And { | |
| 936 | + | |
| 937 | + string encode_json() { | |
| 938 | + mapping(string:mixed) json = ([ | |
| 939 | + ]); | |
| 940 | + | |
| 941 | + return Standards.JSON.encode(json); | |
| 942 | + } | |
| 943 | +} | |
| 944 | + | |
| 945 | +And And_from_JSON(mixed json) { | |
| 946 | + And retval = And(); | |
| 947 | + | |
| 948 | + return retval; | |
| 949 | +} | |
| 950 | + | |
| 951 | +typedef AndEq|float UnionAndEq; | |
| 952 | + | |
| 953 | +UnionAndEq UnionAndEq_from_JSON(mixed json) { | |
| 954 | + return json; | |
| 955 | +} | |
| 956 | + | |
| 957 | +class AndEq { | |
| 958 | + | |
| 959 | + string encode_json() { | |
| 960 | + mapping(string:mixed) json = ([ | |
| 961 | + ]); | |
| 962 | + | |
| 963 | + return Standards.JSON.encode(json); | |
| 964 | + } | |
| 965 | +} | |
| 966 | + | |
| 967 | +AndEq AndEq_from_JSON(mixed json) { | |
| 968 | + AndEq retval = AndEq(); | |
| 969 | + | |
| 970 | + return retval; | |
| 971 | +} | |
| 972 | + | |
| 973 | +typedef Any|float UnionAny; | |
| 974 | + | |
| 975 | +UnionAny UnionAny_from_JSON(mixed json) { | |
| 976 | + return json; | |
| 977 | +} | |
| 978 | + | |
| 979 | +class Any { | |
| 980 | + | |
| 981 | + string encode_json() { | |
| 982 | + mapping(string:mixed) json = ([ | |
| 983 | + ]); | |
| 984 | + | |
| 985 | + return Standards.JSON.encode(json); | |
| 986 | + } | |
| 987 | +} | |
| 988 | + | |
| 989 | +Any Any_from_JSON(mixed json) { | |
| 990 | + Any retval = Any(); | |
| 991 | + | |
| 992 | + return retval; | |
| 993 | +} | |
| 994 | + | |
| 995 | +typedef As|float UnionAs; | |
| 996 | + | |
| 997 | +UnionAs UnionAs_from_JSON(mixed json) { | |
| 998 | + return json; | |
| 999 | +} | |
| 1000 | + | |
| 1001 | +class As { | |
| 1002 | + | |
| 1003 | + string encode_json() { | |
| 1004 | + mapping(string:mixed) json = ([ | |
| 1005 | + ]); | |
| 1006 | + | |
| 1007 | + return Standards.JSON.encode(json); | |
| 1008 | + } | |
| 1009 | +} | |
| 1010 | + | |
| 1011 | +As As_from_JSON(mixed json) { | |
| 1012 | + As retval = As(); | |
| 1013 | + | |
| 1014 | + return retval; | |
| 1015 | +} | |
| 1016 | + | |
| 1017 | +typedef Asm|float UnionAsm; | |
| 1018 | + | |
| 1019 | +UnionAsm UnionAsm_from_JSON(mixed json) { | |
| 1020 | + return json; | |
| 1021 | +} | |
| 1022 | + | |
| 1023 | +class Asm { | |
| 1024 | + | |
| 1025 | + string encode_json() { | |
| 1026 | + mapping(string:mixed) json = ([ | |
| 1027 | + ]); | |
| 1028 | + | |
| 1029 | + return Standards.JSON.encode(json); | |
| 1030 | + } | |
| 1031 | +} | |
| 1032 | + | |
| 1033 | +Asm Asm_from_JSON(mixed json) { | |
| 1034 | + Asm retval = Asm(); | |
| 1035 | + | |
| 1036 | + return retval; | |
| 1037 | +} | |
| 1038 | + | |
| 1039 | +typedef Assert|float UnionAssert; | |
| 1040 | + | |
| 1041 | +UnionAssert UnionAssert_from_JSON(mixed json) { | |
| 1042 | + return json; | |
| 1043 | +} | |
| 1044 | + | |
| 1045 | +class Assert { | |
| 1046 | + | |
| 1047 | + string encode_json() { | |
| 1048 | + mapping(string:mixed) json = ([ | |
| 1049 | + ]); | |
| 1050 | + | |
| 1051 | + return Standards.JSON.encode(json); | |
| 1052 | + } | |
| 1053 | +} | |
| 1054 | + | |
| 1055 | +Assert Assert_from_JSON(mixed json) { | |
| 1056 | + Assert retval = Assert(); | |
| 1057 | + | |
| 1058 | + return retval; | |
| 1059 | +} | |
| 1060 | + | |
| 1061 | +typedef Associatedtype|float UnionAssociatedtype; | |
| 1062 | + | |
| 1063 | +UnionAssociatedtype UnionAssociatedtype_from_JSON(mixed json) { | |
| 1064 | + return json; | |
| 1065 | +} | |
| 1066 | + | |
| 1067 | +class Associatedtype { | |
| 1068 | + | |
| 1069 | + string encode_json() { | |
| 1070 | + mapping(string:mixed) json = ([ | |
| 1071 | + ]); | |
| 1072 | + | |
| 1073 | + return Standards.JSON.encode(json); | |
| 1074 | + } | |
| 1075 | +} | |
| 1076 | + | |
| 1077 | +Associatedtype Associatedtype_from_JSON(mixed json) { | |
| 1078 | + Associatedtype retval = Associatedtype(); | |
| 1079 | + | |
| 1080 | + return retval; | |
| 1081 | +} | |
| 1082 | + | |
| 1083 | +typedef Associativity|float UnionAssociativity; | |
| 1084 | + | |
| 1085 | +UnionAssociativity UnionAssociativity_from_JSON(mixed json) { | |
| 1086 | + return json; | |
| 1087 | +} | |
| 1088 | + | |
| 1089 | +class Associativity { | |
| 1090 | + | |
| 1091 | + string encode_json() { | |
| 1092 | + mapping(string:mixed) json = ([ | |
| 1093 | + ]); | |
| 1094 | + | |
| 1095 | + return Standards.JSON.encode(json); | |
| 1096 | + } | |
| 1097 | +} | |
| 1098 | + | |
| 1099 | +Associativity Associativity_from_JSON(mixed json) { | |
| 1100 | + Associativity retval = Associativity(); | |
| 1101 | + | |
| 1102 | + return retval; | |
| 1103 | +} | |
| 1104 | + | |
| 1105 | +typedef Async|float UnionAsync; | |
| 1106 | + | |
| 1107 | +UnionAsync UnionAsync_from_JSON(mixed json) { | |
| 1108 | + return json; | |
| 1109 | +} | |
| 1110 | + | |
| 1111 | +class Async { | |
| 1112 | + | |
| 1113 | + string encode_json() { | |
| 1114 | + mapping(string:mixed) json = ([ | |
| 1115 | + ]); | |
| 1116 | + | |
| 1117 | + return Standards.JSON.encode(json); | |
| 1118 | + } | |
| 1119 | +} | |
| 1120 | + | |
| 1121 | +Async Async_from_JSON(mixed json) { | |
| 1122 | + Async retval = Async(); | |
| 1123 | + | |
| 1124 | + return retval; | |
| 1125 | +} | |
| 1126 | + | |
| 1127 | +typedef Atomic|float UnionAtomic; | |
| 1128 | + | |
| 1129 | +UnionAtomic UnionAtomic_from_JSON(mixed json) { | |
| 1130 | + return json; | |
| 1131 | +} | |
| 1132 | + | |
| 1133 | +class Atomic { | |
| 1134 | + | |
| 1135 | + string encode_json() { | |
| 1136 | + mapping(string:mixed) json = ([ | |
| 1137 | + ]); | |
| 1138 | + | |
| 1139 | + return Standards.JSON.encode(json); | |
| 1140 | + } | |
| 1141 | +} | |
| 1142 | + | |
| 1143 | +Atomic Atomic_from_JSON(mixed json) { | |
| 1144 | + Atomic retval = Atomic(); | |
| 1145 | + | |
| 1146 | + return retval; | |
| 1147 | +} | |
| 1148 | + | |
| 1149 | +typedef AtomicCancel|float UnionAtomicCancel; | |
| 1150 | + | |
| 1151 | +UnionAtomicCancel UnionAtomicCancel_from_JSON(mixed json) { | |
| 1152 | + return json; | |
| 1153 | +} | |
| 1154 | + | |
| 1155 | +class AtomicCancel { | |
| 1156 | + | |
| 1157 | + string encode_json() { | |
| 1158 | + mapping(string:mixed) json = ([ | |
| 1159 | + ]); | |
| 1160 | + | |
| 1161 | + return Standards.JSON.encode(json); | |
| 1162 | + } | |
| 1163 | +} | |
| 1164 | + | |
| 1165 | +AtomicCancel AtomicCancel_from_JSON(mixed json) { | |
| 1166 | + AtomicCancel retval = AtomicCancel(); | |
| 1167 | + | |
| 1168 | + return retval; | |
| 1169 | +} | |
| 1170 | + | |
| 1171 | +typedef AtomicCommit|float UnionAtomicCommit; | |
| 1172 | + | |
| 1173 | +UnionAtomicCommit UnionAtomicCommit_from_JSON(mixed json) { | |
| 1174 | + return json; | |
| 1175 | +} | |
| 1176 | + | |
| 1177 | +class AtomicCommit { | |
| 1178 | + | |
| 1179 | + string encode_json() { | |
| 1180 | + mapping(string:mixed) json = ([ | |
| 1181 | + ]); | |
| 1182 | + | |
| 1183 | + return Standards.JSON.encode(json); | |
| 1184 | + } | |
| 1185 | +} | |
| 1186 | + | |
| 1187 | +AtomicCommit AtomicCommit_from_JSON(mixed json) { | |
| 1188 | + AtomicCommit retval = AtomicCommit(); | |
| 1189 | + | |
| 1190 | + return retval; | |
| 1191 | +} | |
| 1192 | + | |
| 1193 | +typedef AtomicNoexcept|float UnionAtomicNoexcept; | |
| 1194 | + | |
| 1195 | +UnionAtomicNoexcept UnionAtomicNoexcept_from_JSON(mixed json) { | |
| 1196 | + return json; | |
| 1197 | +} | |
| 1198 | + | |
| 1199 | +class AtomicNoexcept { | |
| 1200 | + | |
| 1201 | + string encode_json() { | |
| 1202 | + mapping(string:mixed) json = ([ | |
| 1203 | + ]); | |
| 1204 | + | |
| 1205 | + return Standards.JSON.encode(json); | |
| 1206 | + } | |
| 1207 | +} | |
| 1208 | + | |
| 1209 | +AtomicNoexcept AtomicNoexcept_from_JSON(mixed json) { | |
| 1210 | + AtomicNoexcept retval = AtomicNoexcept(); | |
| 1211 | + | |
| 1212 | + return retval; | |
| 1213 | +} | |
| 1214 | + | |
| 1215 | +typedef Await|float UnionAwait; | |
| 1216 | + | |
| 1217 | +UnionAwait UnionAwait_from_JSON(mixed json) { | |
| 1218 | + return json; | |
| 1219 | +} | |
| 1220 | + | |
| 1221 | +class Await { | |
| 1222 | + | |
| 1223 | + string encode_json() { | |
| 1224 | + mapping(string:mixed) json = ([ | |
| 1225 | + ]); | |
| 1226 | + | |
| 1227 | + return Standards.JSON.encode(json); | |
| 1228 | + } | |
| 1229 | +} | |
| 1230 | + | |
| 1231 | +Await Await_from_JSON(mixed json) { | |
| 1232 | + Await retval = Await(); | |
| 1233 | + | |
| 1234 | + return retval; | |
| 1235 | +} | |
| 1236 | + | |
| 1237 | +typedef Base|float UnionBase; | |
| 1238 | + | |
| 1239 | +UnionBase UnionBase_from_JSON(mixed json) { | |
| 1240 | + return json; | |
| 1241 | +} | |
| 1242 | + | |
| 1243 | +class Base { | |
| 1244 | + | |
| 1245 | + string encode_json() { | |
| 1246 | + mapping(string:mixed) json = ([ | |
| 1247 | + ]); | |
| 1248 | + | |
| 1249 | + return Standards.JSON.encode(json); | |
| 1250 | + } | |
| 1251 | +} | |
| 1252 | + | |
| 1253 | +Base Base_from_JSON(mixed json) { | |
| 1254 | + Base retval = Base(); | |
| 1255 | + | |
| 1256 | + return retval; | |
| 1257 | +} | |
| 1258 | + | |
| 1259 | +typedef Bitand|float UnionBitand; | |
| 1260 | + | |
| 1261 | +UnionBitand UnionBitand_from_JSON(mixed json) { | |
| 1262 | + return json; | |
| 1263 | +} | |
| 1264 | + | |
| 1265 | +class Bitand { | |
| 1266 | + | |
| 1267 | + string encode_json() { | |
| 1268 | + mapping(string:mixed) json = ([ | |
| 1269 | + ]); | |
| 1270 | + | |
| 1271 | + return Standards.JSON.encode(json); | |
| 1272 | + } | |
| 1273 | +} | |
| 1274 | + | |
| 1275 | +Bitand Bitand_from_JSON(mixed json) { | |
| 1276 | + Bitand retval = Bitand(); | |
| 1277 | + | |
| 1278 | + return retval; | |
| 1279 | +} | |
| 1280 | + | |
| 1281 | +typedef Bitor|float UnionBitor; | |
| 1282 | + | |
| 1283 | +UnionBitor UnionBitor_from_JSON(mixed json) { | |
| 1284 | + return json; | |
| 1285 | +} | |
| 1286 | + | |
| 1287 | +class Bitor { | |
| 1288 | + | |
| 1289 | + string encode_json() { | |
| 1290 | + mapping(string:mixed) json = ([ | |
| 1291 | + ]); | |
| 1292 | + | |
| 1293 | + return Standards.JSON.encode(json); | |
| 1294 | + } | |
| 1295 | +} | |
| 1296 | + | |
| 1297 | +Bitor Bitor_from_JSON(mixed json) { | |
| 1298 | + Bitor retval = Bitor(); | |
| 1299 | + | |
| 1300 | + return retval; | |
| 1301 | +} | |
| 1302 | + | |
| 1303 | +typedef Bool|float UnionBool; | |
| 1304 | + | |
| 1305 | +UnionBool UnionBool_from_JSON(mixed json) { | |
| 1306 | + return json; | |
| 1307 | +} | |
| 1308 | + | |
| 1309 | +class Bool { | |
| 1310 | + | |
| 1311 | + string encode_json() { | |
| 1312 | + mapping(string:mixed) json = ([ | |
| 1313 | + ]); | |
| 1314 | + | |
| 1315 | + return Standards.JSON.encode(json); | |
| 1316 | + } | |
| 1317 | +} | |
| 1318 | + | |
| 1319 | +Bool Bool_from_JSON(mixed json) { | |
| 1320 | + Bool retval = Bool(); | |
| 1321 | + | |
| 1322 | + return retval; | |
| 1323 | +} | |
| 1324 | + | |
| 1325 | +typedef Boolean|float UnionBoolean; | |
| 1326 | + | |
| 1327 | +UnionBoolean UnionBoolean_from_JSON(mixed json) { | |
| 1328 | + return json; | |
| 1329 | +} | |
| 1330 | + | |
| 1331 | +class Boolean { | |
| 1332 | + | |
| 1333 | + string encode_json() { | |
| 1334 | + mapping(string:mixed) json = ([ | |
| 1335 | + ]); | |
| 1336 | + | |
| 1337 | + return Standards.JSON.encode(json); | |
| 1338 | + } | |
| 1339 | +} | |
| 1340 | + | |
| 1341 | +Boolean Boolean_from_JSON(mixed json) { | |
| 1342 | + Boolean retval = Boolean(); | |
| 1343 | + | |
| 1344 | + return retval; | |
| 1345 | +} | |
| 1346 | + | |
| 1347 | +typedef Bycopy|float UnionBycopy; | |
| 1348 | + | |
| 1349 | +UnionBycopy UnionBycopy_from_JSON(mixed json) { | |
| 1350 | + return json; | |
| 1351 | +} | |
| 1352 | + | |
| 1353 | +class Bycopy { | |
| 1354 | + | |
| 1355 | + string encode_json() { | |
| 1356 | + mapping(string:mixed) json = ([ | |
| 1357 | + ]); | |
| 1358 | + | |
| 1359 | + return Standards.JSON.encode(json); | |
| 1360 | + } | |
| 1361 | +} | |
| 1362 | + | |
| 1363 | +Bycopy Bycopy_from_JSON(mixed json) { | |
| 1364 | + Bycopy retval = Bycopy(); | |
| 1365 | + | |
| 1366 | + return retval; | |
| 1367 | +} | |
| 1368 | + | |
| 1369 | +typedef Byref|float UnionByref; | |
| 1370 | + | |
| 1371 | +UnionByref UnionByref_from_JSON(mixed json) { | |
| 1372 | + return json; | |
| 1373 | +} | |
| 1374 | + | |
| 1375 | +class Byref { | |
| 1376 | + | |
| 1377 | + string encode_json() { | |
| 1378 | + mapping(string:mixed) json = ([ | |
| 1379 | + ]); | |
| 1380 | + | |
| 1381 | + return Standards.JSON.encode(json); | |
| 1382 | + } | |
| 1383 | +} | |
| 1384 | + | |
| 1385 | +Byref Byref_from_JSON(mixed json) { | |
| 1386 | + Byref retval = Byref(); | |
| 1387 | + | |
| 1388 | + return retval; | |
| 1389 | +} | |
| 1390 | + | |
| 1391 | +typedef Byte|float UnionByte; | |
| 1392 | + | |
| 1393 | +UnionByte UnionByte_from_JSON(mixed json) { | |
| 1394 | + return json; | |
| 1395 | +} | |
| 1396 | + | |
| 1397 | +class Byte { | |
| 1398 | + | |
| 1399 | + string encode_json() { | |
| 1400 | + mapping(string:mixed) json = ([ | |
| 1401 | + ]); | |
| 1402 | + | |
| 1403 | + return Standards.JSON.encode(json); | |
| 1404 | + } | |
| 1405 | +} | |
| 1406 | + | |
| 1407 | +Byte Byte_from_JSON(mixed json) { | |
| 1408 | + Byte retval = Byte(); | |
| 1409 | + | |
| 1410 | + return retval; | |
| 1411 | +} | |
| 1412 | + | |
| 1413 | +typedef Chan|float UnionChan; | |
| 1414 | + | |
| 1415 | +UnionChan UnionChan_from_JSON(mixed json) { | |
| 1416 | + return json; | |
| 1417 | +} | |
| 1418 | + | |
| 1419 | +class Chan { | |
| 1420 | + | |
| 1421 | + string encode_json() { | |
| 1422 | + mapping(string:mixed) json = ([ | |
| 1423 | + ]); | |
| 1424 | + | |
| 1425 | + return Standards.JSON.encode(json); | |
| 1426 | + } | |
| 1427 | +} | |
| 1428 | + | |
| 1429 | +Chan Chan_from_JSON(mixed json) { | |
| 1430 | + Chan retval = Chan(); | |
| 1431 | + | |
| 1432 | + return retval; | |
| 1433 | +} | |
| 1434 | + | |
| 1435 | +typedef Char|float UnionChar; | |
| 1436 | + | |
| 1437 | +UnionChar UnionChar_from_JSON(mixed json) { | |
| 1438 | + return json; | |
| 1439 | +} | |
| 1440 | + | |
| 1441 | +class Char { | |
| 1442 | + | |
| 1443 | + string encode_json() { | |
| 1444 | + mapping(string:mixed) json = ([ | |
| 1445 | + ]); | |
| 1446 | + | |
| 1447 | + return Standards.JSON.encode(json); | |
| 1448 | + } | |
| 1449 | +} | |
| 1450 | + | |
| 1451 | +Char Char_from_JSON(mixed json) { | |
| 1452 | + Char retval = Char(); | |
| 1453 | + | |
| 1454 | + return retval; | |
| 1455 | +} | |
| 1456 | + | |
| 1457 | +typedef Char16T|float UnionChar16T; | |
| 1458 | + | |
| 1459 | +UnionChar16T UnionChar16T_from_JSON(mixed json) { | |
| 1460 | + return json; | |
| 1461 | +} | |
| 1462 | + | |
| 1463 | +class Char16T { | |
| 1464 | + | |
| 1465 | + string encode_json() { | |
| 1466 | + mapping(string:mixed) json = ([ | |
| 1467 | + ]); | |
| 1468 | + | |
| 1469 | + return Standards.JSON.encode(json); | |
| 1470 | + } | |
| 1471 | +} | |
| 1472 | + | |
| 1473 | +Char16T Char16T_from_JSON(mixed json) { | |
| 1474 | + Char16T retval = Char16T(); | |
| 1475 | + | |
| 1476 | + return retval; | |
| 1477 | +} | |
| 1478 | + | |
| 1479 | +typedef Char32T|float UnionChar32T; | |
| 1480 | + | |
| 1481 | +UnionChar32T UnionChar32T_from_JSON(mixed json) { | |
| 1482 | + return json; | |
| 1483 | +} | |
| 1484 | + | |
| 1485 | +class Char32T { | |
| 1486 | + | |
| 1487 | + string encode_json() { | |
| 1488 | + mapping(string:mixed) json = ([ | |
| 1489 | + ]); | |
| 1490 | + | |
| 1491 | + return Standards.JSON.encode(json); | |
| 1492 | + } | |
| 1493 | +} | |
| 1494 | + | |
| 1495 | +Char32T Char32T_from_JSON(mixed json) { | |
| 1496 | + Char32T retval = Char32T(); | |
| 1497 | + | |
| 1498 | + return retval; | |
| 1499 | +} | |
| 1500 | + | |
| 1501 | +typedef Checked|float UnionChecked; | |
| 1502 | + | |
| 1503 | +UnionChecked UnionChecked_from_JSON(mixed json) { | |
| 1504 | + return json; | |
| 1505 | +} | |
| 1506 | + | |
| 1507 | +class Checked { | |
| 1508 | + | |
| 1509 | + string encode_json() { | |
| 1510 | + mapping(string:mixed) json = ([ | |
| 1511 | + ]); | |
| 1512 | + | |
| 1513 | + return Standards.JSON.encode(json); | |
| 1514 | + } | |
| 1515 | +} | |
| 1516 | + | |
| 1517 | +Checked Checked_from_JSON(mixed json) { | |
| 1518 | + Checked retval = Checked(); | |
| 1519 | + | |
| 1520 | + return retval; | |
| 1521 | +} | |
| 1522 | + | |
| 1523 | +typedef CoAwait|float UnionCoAwait; | |
| 1524 | + | |
| 1525 | +UnionCoAwait UnionCoAwait_from_JSON(mixed json) { | |
| 1526 | + return json; | |
| 1527 | +} | |
| 1528 | + | |
| 1529 | +class CoAwait { | |
| 1530 | + | |
| 1531 | + string encode_json() { | |
| 1532 | + mapping(string:mixed) json = ([ | |
| 1533 | + ]); | |
| 1534 | + | |
| 1535 | + return Standards.JSON.encode(json); | |
| 1536 | + } | |
| 1537 | +} | |
| 1538 | + | |
| 1539 | +CoAwait CoAwait_from_JSON(mixed json) { | |
| 1540 | + CoAwait retval = CoAwait(); | |
| 1541 | + | |
| 1542 | + return retval; | |
| 1543 | +} | |
| 1544 | + | |
| 1545 | +typedef CoReturn|float UnionCoReturn; | |
| 1546 | + | |
| 1547 | +UnionCoReturn UnionCoReturn_from_JSON(mixed json) { | |
| 1548 | + return json; | |
| 1549 | +} | |
| 1550 | + | |
| 1551 | +class CoReturn { | |
| 1552 | + | |
| 1553 | + string encode_json() { | |
| 1554 | + mapping(string:mixed) json = ([ | |
| 1555 | + ]); | |
| 1556 | + | |
| 1557 | + return Standards.JSON.encode(json); | |
| 1558 | + } | |
| 1559 | +} | |
| 1560 | + | |
| 1561 | +CoReturn CoReturn_from_JSON(mixed json) { | |
| 1562 | + CoReturn retval = CoReturn(); | |
| 1563 | + | |
| 1564 | + return retval; | |
| 1565 | +} | |
| 1566 | + | |
| 1567 | +typedef CoYield|float UnionCoYield; | |
| 1568 | + | |
| 1569 | +UnionCoYield UnionCoYield_from_JSON(mixed json) { | |
| 1570 | + return json; | |
| 1571 | +} | |
| 1572 | + | |
| 1573 | +class CoYield { | |
| 1574 | + | |
| 1575 | + string encode_json() { | |
| 1576 | + mapping(string:mixed) json = ([ | |
| 1577 | + ]); | |
| 1578 | + | |
| 1579 | + return Standards.JSON.encode(json); | |
| 1580 | + } | |
| 1581 | +} | |
| 1582 | + | |
| 1583 | +CoYield CoYield_from_JSON(mixed json) { | |
| 1584 | + CoYield retval = CoYield(); | |
| 1585 | + | |
| 1586 | + return retval; | |
| 1587 | +} | |
| 1588 | + | |
| 1589 | +typedef Compl|float UnionCompl; | |
| 1590 | + | |
| 1591 | +UnionCompl UnionCompl_from_JSON(mixed json) { | |
| 1592 | + return json; | |
| 1593 | +} | |
| 1594 | + | |
| 1595 | +class Compl { | |
| 1596 | + | |
| 1597 | + string encode_json() { | |
| 1598 | + mapping(string:mixed) json = ([ | |
| 1599 | + ]); | |
| 1600 | + | |
| 1601 | + return Standards.JSON.encode(json); | |
| 1602 | + } | |
| 1603 | +} | |
| 1604 | + | |
| 1605 | +Compl Compl_from_JSON(mixed json) { | |
| 1606 | + Compl retval = Compl(); | |
| 1607 | + | |
| 1608 | + return retval; | |
| 1609 | +} | |
| 1610 | + | |
| 1611 | +typedef Complex|float UnionComplex; | |
| 1612 | + | |
| 1613 | +UnionComplex UnionComplex_from_JSON(mixed json) { | |
| 1614 | + return json; | |
| 1615 | +} | |
| 1616 | + | |
| 1617 | +class Complex { | |
| 1618 | + | |
| 1619 | + string encode_json() { | |
| 1620 | + mapping(string:mixed) json = ([ | |
| 1621 | + ]); | |
| 1622 | + | |
| 1623 | + return Standards.JSON.encode(json); | |
| 1624 | + } | |
| 1625 | +} | |
| 1626 | + | |
| 1627 | +Complex Complex_from_JSON(mixed json) { | |
| 1628 | + Complex retval = Complex(); | |
| 1629 | + | |
| 1630 | + return retval; | |
| 1631 | +} | |
| 1632 | + | |
| 1633 | +typedef Concept|float UnionConcept; | |
| 1634 | + | |
| 1635 | +UnionConcept UnionConcept_from_JSON(mixed json) { | |
| 1636 | + return json; | |
| 1637 | +} | |
| 1638 | + | |
| 1639 | +class Concept { | |
| 1640 | + | |
| 1641 | + string encode_json() { | |
| 1642 | + mapping(string:mixed) json = ([ | |
| 1643 | + ]); | |
| 1644 | + | |
| 1645 | + return Standards.JSON.encode(json); | |
| 1646 | + } | |
| 1647 | +} | |
| 1648 | + | |
| 1649 | +Concept Concept_from_JSON(mixed json) { | |
| 1650 | + Concept retval = Concept(); | |
| 1651 | + | |
| 1652 | + return retval; | |
| 1653 | +} | |
| 1654 | + | |
| 1655 | +typedef Console|float UnionConsole; | |
| 1656 | + | |
| 1657 | +UnionConsole UnionConsole_from_JSON(mixed json) { | |
| 1658 | + return json; | |
| 1659 | +} | |
| 1660 | + | |
| 1661 | +class Console { | |
| 1662 | + | |
| 1663 | + string encode_json() { | |
| 1664 | + mapping(string:mixed) json = ([ | |
| 1665 | + ]); | |
| 1666 | + | |
| 1667 | + return Standards.JSON.encode(json); | |
| 1668 | + } | |
| 1669 | +} | |
| 1670 | + | |
| 1671 | +Console Console_from_JSON(mixed json) { | |
| 1672 | + Console retval = Console(); | |
| 1673 | + | |
| 1674 | + return retval; | |
| 1675 | +} | |
| 1676 | + | |
| 1677 | +typedef ConstCast|float UnionConstCast; | |
| 1678 | + | |
| 1679 | +UnionConstCast UnionConstCast_from_JSON(mixed json) { | |
| 1680 | + return json; | |
| 1681 | +} | |
| 1682 | + | |
| 1683 | +class ConstCast { | |
| 1684 | + | |
| 1685 | + string encode_json() { | |
| 1686 | + mapping(string:mixed) json = ([ | |
| 1687 | + ]); | |
| 1688 | + | |
| 1689 | + return Standards.JSON.encode(json); | |
| 1690 | + } | |
| 1691 | +} | |
| 1692 | + | |
| 1693 | +ConstCast ConstCast_from_JSON(mixed json) { | |
| 1694 | + ConstCast retval = ConstCast(); | |
| 1695 | + | |
| 1696 | + return retval; | |
| 1697 | +} | |
| 1698 | + | |
| 1699 | +typedef Constexpr|float UnionConstexpr; | |
| 1700 | + | |
| 1701 | +UnionConstexpr UnionConstexpr_from_JSON(mixed json) { | |
| 1702 | + return json; | |
| 1703 | +} | |
| 1704 | + | |
| 1705 | +class Constexpr { | |
| 1706 | + | |
| 1707 | + string encode_json() { | |
| 1708 | + mapping(string:mixed) json = ([ | |
| 1709 | + ]); | |
| 1710 | + | |
| 1711 | + return Standards.JSON.encode(json); | |
| 1712 | + } | |
| 1713 | +} | |
| 1714 | + | |
| 1715 | +Constexpr Constexpr_from_JSON(mixed json) { | |
| 1716 | + Constexpr retval = Constexpr(); | |
| 1717 | + | |
| 1718 | + return retval; | |
| 1719 | +} | |
| 1720 | + | |
| 1721 | +typedef Constructor|float UnionConstructor; | |
| 1722 | + | |
| 1723 | +UnionConstructor UnionConstructor_from_JSON(mixed json) { | |
| 1724 | + return json; | |
| 1725 | +} | |
| 1726 | + | |
| 1727 | +class Constructor { | |
| 1728 | + | |
| 1729 | + string encode_json() { | |
| 1730 | + mapping(string:mixed) json = ([ | |
| 1731 | + ]); | |
| 1732 | + | |
| 1733 | + return Standards.JSON.encode(json); | |
| 1734 | + } | |
| 1735 | +} | |
| 1736 | + | |
| 1737 | +Constructor Constructor_from_JSON(mixed json) { | |
| 1738 | + Constructor retval = Constructor(); | |
| 1739 | + | |
| 1740 | + return retval; | |
| 1741 | +} | |
| 1742 | + | |
| 1743 | +typedef Convenience|float UnionConvenience; | |
| 1744 | + | |
| 1745 | +UnionConvenience UnionConvenience_from_JSON(mixed json) { | |
| 1746 | + return json; | |
| 1747 | +} | |
| 1748 | + | |
| 1749 | +class Convenience { | |
| 1750 | + | |
| 1751 | + string encode_json() { | |
| 1752 | + mapping(string:mixed) json = ([ | |
| 1753 | + ]); | |
| 1754 | + | |
| 1755 | + return Standards.JSON.encode(json); | |
| 1756 | + } | |
| 1757 | +} | |
| 1758 | + | |
| 1759 | +Convenience Convenience_from_JSON(mixed json) { | |
| 1760 | + Convenience retval = Convenience(); | |
| 1761 | + | |
| 1762 | + return retval; | |
| 1763 | +} | |
| 1764 | + | |
| 1765 | +typedef Convert|float UnionConvert; | |
| 1766 | + | |
| 1767 | +UnionConvert UnionConvert_from_JSON(mixed json) { | |
| 1768 | + return json; | |
| 1769 | +} | |
| 1770 | + | |
| 1771 | +class Convert { | |
| 1772 | + | |
| 1773 | + string encode_json() { | |
| 1774 | + mapping(string:mixed) json = ([ | |
| 1775 | + ]); | |
| 1776 | + | |
| 1777 | + return Standards.JSON.encode(json); | |
| 1778 | + } | |
| 1779 | +} | |
| 1780 | + | |
| 1781 | +Convert Convert_from_JSON(mixed json) { | |
| 1782 | + Convert retval = Convert(); | |
| 1783 | + | |
| 1784 | + return retval; | |
| 1785 | +} | |
| 1786 | + | |
| 1787 | +typedef Converter|float UnionConverter; | |
| 1788 | + | |
| 1789 | +UnionConverter UnionConverter_from_JSON(mixed json) { | |
| 1790 | + return json; | |
| 1791 | +} | |
| 1792 | + | |
| 1793 | +class Converter { | |
| 1794 | + | |
| 1795 | + string encode_json() { | |
| 1796 | + mapping(string:mixed) json = ([ | |
| 1797 | + ]); | |
| 1798 | + | |
| 1799 | + return Standards.JSON.encode(json); | |
| 1800 | + } | |
| 1801 | +} | |
| 1802 | + | |
| 1803 | +Converter Converter_from_JSON(mixed json) { | |
| 1804 | + Converter retval = Converter(); | |
| 1805 | + | |
| 1806 | + return retval; | |
| 1807 | +} | |
| 1808 | + | |
| 1809 | +typedef Date|float UnionDate; | |
| 1810 | + | |
| 1811 | +UnionDate UnionDate_from_JSON(mixed json) { | |
| 1812 | + return json; | |
| 1813 | +} | |
| 1814 | + | |
| 1815 | +class Date { | |
| 1816 | + | |
| 1817 | + string encode_json() { | |
| 1818 | + mapping(string:mixed) json = ([ | |
| 1819 | + ]); | |
| 1820 | + | |
| 1821 | + return Standards.JSON.encode(json); | |
| 1822 | + } | |
| 1823 | +} | |
| 1824 | + | |
| 1825 | +Date Date_from_JSON(mixed json) { | |
| 1826 | + Date retval = Date(); | |
| 1827 | + | |
| 1828 | + return retval; | |
| 1829 | +} | |
| 1830 | + | |
| 1831 | +typedef DateParseHandling|float UnionDateParseHandling; | |
| 1832 | + | |
| 1833 | +UnionDateParseHandling UnionDateParseHandling_from_JSON(mixed json) { | |
| 1834 | + return json; | |
| 1835 | +} | |
| 1836 | + | |
| 1837 | +class DateParseHandling { | |
| 1838 | + | |
| 1839 | + string encode_json() { | |
| 1840 | + mapping(string:mixed) json = ([ | |
| 1841 | + ]); | |
| 1842 | + | |
| 1843 | + return Standards.JSON.encode(json); | |
| 1844 | + } | |
| 1845 | +} | |
| 1846 | + | |
| 1847 | +DateParseHandling DateParseHandling_from_JSON(mixed json) { | |
| 1848 | + DateParseHandling retval = DateParseHandling(); | |
| 1849 | + | |
| 1850 | + return retval; | |
| 1851 | +} | |
| 1852 | + | |
| 1853 | +typedef Debugger|float UnionDebugger; | |
| 1854 | + | |
| 1855 | +UnionDebugger UnionDebugger_from_JSON(mixed json) { | |
| 1856 | + return json; | |
| 1857 | +} | |
| 1858 | + | |
| 1859 | +class Debugger { | |
| 1860 | + | |
| 1861 | + string encode_json() { | |
| 1862 | + mapping(string:mixed) json = ([ | |
| 1863 | + ]); | |
| 1864 | + | |
| 1865 | + return Standards.JSON.encode(json); | |
| 1866 | + } | |
| 1867 | +} | |
| 1868 | + | |
| 1869 | +Debugger Debugger_from_JSON(mixed json) { | |
| 1870 | + Debugger retval = Debugger(); | |
| 1871 | + | |
| 1872 | + return retval; | |
| 1873 | +} | |
| 1874 | + | |
| 1875 | +typedef Decimal|float UnionDecimal; | |
| 1876 | + | |
| 1877 | +UnionDecimal UnionDecimal_from_JSON(mixed json) { | |
| 1878 | + return json; | |
| 1879 | +} | |
| 1880 | + | |
| 1881 | +class Decimal { | |
| 1882 | + | |
| 1883 | + string encode_json() { | |
| 1884 | + mapping(string:mixed) json = ([ | |
| 1885 | + ]); | |
| 1886 | + | |
| 1887 | + return Standards.JSON.encode(json); | |
| 1888 | + } | |
| 1889 | +} | |
| 1890 | + | |
| 1891 | +Decimal Decimal_from_JSON(mixed json) { | |
| 1892 | + Decimal retval = Decimal(); | |
| 1893 | + | |
| 1894 | + return retval; | |
| 1895 | +} | |
| 1896 | + | |
| 1897 | +typedef Declare|float UnionDeclare; | |
| 1898 | + | |
| 1899 | +UnionDeclare UnionDeclare_from_JSON(mixed json) { | |
| 1900 | + return json; | |
| 1901 | +} | |
| 1902 | + | |
| 1903 | +class Declare { | |
| 1904 | + | |
| 1905 | + string encode_json() { | |
| 1906 | + mapping(string:mixed) json = ([ | |
| 1907 | + ]); | |
| 1908 | + | |
| 1909 | + return Standards.JSON.encode(json); | |
| 1910 | + } | |
| 1911 | +} | |
| 1912 | + | |
| 1913 | +Declare Declare_from_JSON(mixed json) { | |
| 1914 | + Declare retval = Declare(); | |
| 1915 | + | |
| 1916 | + return retval; | |
| 1917 | +} | |
| 1918 | + | |
| 1919 | +typedef Decltype|float UnionDecltype; | |
| 1920 | + | |
| 1921 | +UnionDecltype UnionDecltype_from_JSON(mixed json) { | |
| 1922 | + return json; | |
| 1923 | +} | |
| 1924 | + | |
| 1925 | +class Decltype { | |
| 1926 | + | |
| 1927 | + string encode_json() { | |
| 1928 | + mapping(string:mixed) json = ([ | |
| 1929 | + ]); | |
| 1930 | + | |
| 1931 | + return Standards.JSON.encode(json); | |
| 1932 | + } | |
| 1933 | +} | |
| 1934 | + | |
| 1935 | +Decltype Decltype_from_JSON(mixed json) { | |
| 1936 | + Decltype retval = Decltype(); | |
| 1937 | + | |
| 1938 | + return retval; | |
| 1939 | +} | |
| 1940 | + | |
| 1941 | +typedef DecodeString|float UnionDecodeString; | |
| 1942 | + | |
| 1943 | +UnionDecodeString UnionDecodeString_from_JSON(mixed json) { | |
| 1944 | + return json; | |
| 1945 | +} | |
| 1946 | + | |
| 1947 | +class DecodeString { | |
| 1948 | + | |
| 1949 | + string encode_json() { | |
| 1950 | + mapping(string:mixed) json = ([ | |
| 1951 | + ]); | |
| 1952 | + | |
| 1953 | + return Standards.JSON.encode(json); | |
| 1954 | + } | |
| 1955 | +} | |
| 1956 | + | |
| 1957 | +DecodeString DecodeString_from_JSON(mixed json) { | |
| 1958 | + DecodeString retval = DecodeString(); | |
| 1959 | + | |
| 1960 | + return retval; | |
| 1961 | +} | |
| 1962 | + | |
| 1963 | +typedef Def|float UnionDef; | |
| 1964 | + | |
| 1965 | +UnionDef UnionDef_from_JSON(mixed json) { | |
| 1966 | + return json; | |
| 1967 | +} | |
| 1968 | + | |
| 1969 | +class Def { | |
| 1970 | + | |
| 1971 | + string encode_json() { | |
| 1972 | + mapping(string:mixed) json = ([ | |
| 1973 | + ]); | |
| 1974 | + | |
| 1975 | + return Standards.JSON.encode(json); | |
| 1976 | + } | |
| 1977 | +} | |
| 1978 | + | |
| 1979 | +Def Def_from_JSON(mixed json) { | |
| 1980 | + Def retval = Def(); | |
| 1981 | + | |
| 1982 | + return retval; | |
| 1983 | +} | |
| 1984 | + | |
| 1985 | +typedef Defer|float UnionDefer; | |
| 1986 | + | |
| 1987 | +UnionDefer UnionDefer_from_JSON(mixed json) { | |
| 1988 | + return json; | |
| 1989 | +} | |
| 1990 | + | |
| 1991 | +class Defer { | |
| 1992 | + | |
| 1993 | + string encode_json() { | |
| 1994 | + mapping(string:mixed) json = ([ | |
| 1995 | + ]); | |
| 1996 | + | |
| 1997 | + return Standards.JSON.encode(json); | |
| 1998 | + } | |
| 1999 | +} | |
| 2000 | + | |
| 2001 | +Defer Defer_from_JSON(mixed json) { | |
| 2002 | + Defer retval = Defer(); | |
| 2003 | + | |
| 2004 | + return retval; | |
| 2005 | +} | |
| 2006 | + | |
| 2007 | +typedef Deinit|float UnionDeinit; | |
| 2008 | + | |
| 2009 | +UnionDeinit UnionDeinit_from_JSON(mixed json) { | |
| 2010 | + return json; | |
| 2011 | +} | |
| 2012 | + | |
| 2013 | +class Deinit { | |
| 2014 | + | |
| 2015 | + string encode_json() { | |
| 2016 | + mapping(string:mixed) json = ([ | |
| 2017 | + ]); | |
| 2018 | + | |
| 2019 | + return Standards.JSON.encode(json); | |
| 2020 | + } | |
| 2021 | +} | |
| 2022 | + | |
| 2023 | +Deinit Deinit_from_JSON(mixed json) { | |
| 2024 | + Deinit retval = Deinit(); | |
| 2025 | + | |
| 2026 | + return retval; | |
| 2027 | +} | |
| 2028 | + | |
| 2029 | +typedef Del|float UnionDel; | |
| 2030 | + | |
| 2031 | +UnionDel UnionDel_from_JSON(mixed json) { | |
| 2032 | + return json; | |
| 2033 | +} | |
| 2034 | + | |
| 2035 | +class Del { | |
| 2036 | + | |
| 2037 | + string encode_json() { | |
| 2038 | + mapping(string:mixed) json = ([ | |
| 2039 | + ]); | |
| 2040 | + | |
| 2041 | + return Standards.JSON.encode(json); | |
| 2042 | + } | |
| 2043 | +} | |
| 2044 | + | |
| 2045 | +Del Del_from_JSON(mixed json) { | |
| 2046 | + Del retval = Del(); | |
| 2047 | + | |
| 2048 | + return retval; | |
| 2049 | +} | |
| 2050 | + | |
| 2051 | +typedef Delegate|float UnionDelegate; | |
| 2052 | + | |
| 2053 | +UnionDelegate UnionDelegate_from_JSON(mixed json) { | |
| 2054 | + return json; | |
| 2055 | +} | |
| 2056 | + | |
| 2057 | +class Delegate { | |
| 2058 | + | |
| 2059 | + string encode_json() { | |
| 2060 | + mapping(string:mixed) json = ([ | |
| 2061 | + ]); | |
| 2062 | + | |
| 2063 | + return Standards.JSON.encode(json); | |
| 2064 | + } | |
| 2065 | +} | |
| 2066 | + | |
| 2067 | +Delegate Delegate_from_JSON(mixed json) { | |
| 2068 | + Delegate retval = Delegate(); | |
| 2069 | + | |
| 2070 | + return retval; | |
| 2071 | +} | |
| 2072 | + | |
| 2073 | +typedef Delete|float UnionDelete; | |
| 2074 | + | |
| 2075 | +UnionDelete UnionDelete_from_JSON(mixed json) { | |
| 2076 | + return json; | |
| 2077 | +} | |
| 2078 | + | |
| 2079 | +class Delete { | |
| 2080 | + | |
| 2081 | + string encode_json() { | |
| 2082 | + mapping(string:mixed) json = ([ | |
| 2083 | + ]); | |
| 2084 | + | |
| 2085 | + return Standards.JSON.encode(json); | |
| 2086 | + } | |
| 2087 | +} | |
| 2088 | + | |
| 2089 | +Delete Delete_from_JSON(mixed json) { | |
| 2090 | + Delete retval = Delete(); | |
| 2091 | + | |
| 2092 | + return retval; | |
| 2093 | +} | |
| 2094 | + | |
| 2095 | +typedef Dict|float UnionDict; | |
| 2096 | + | |
| 2097 | +UnionDict UnionDict_from_JSON(mixed json) { | |
| 2098 | + return json; | |
| 2099 | +} | |
| 2100 | + | |
| 2101 | +class Dict { | |
| 2102 | + | |
| 2103 | + string encode_json() { | |
| 2104 | + mapping(string:mixed) json = ([ | |
| 2105 | + ]); | |
| 2106 | + | |
| 2107 | + return Standards.JSON.encode(json); | |
| 2108 | + } | |
| 2109 | +} | |
| 2110 | + | |
| 2111 | +Dict Dict_from_JSON(mixed json) { | |
| 2112 | + Dict retval = Dict(); | |
| 2113 | + | |
| 2114 | + return retval; | |
| 2115 | +} | |
| 2116 | + | |
| 2117 | +typedef Dictionary|float UnionDictionary; | |
| 2118 | + | |
| 2119 | +UnionDictionary UnionDictionary_from_JSON(mixed json) { | |
| 2120 | + return json; | |
| 2121 | +} | |
| 2122 | + | |
| 2123 | +class Dictionary { | |
| 2124 | + | |
| 2125 | + string encode_json() { | |
| 2126 | + mapping(string:mixed) json = ([ | |
| 2127 | + ]); | |
| 2128 | + | |
| 2129 | + return Standards.JSON.encode(json); | |
| 2130 | + } | |
| 2131 | +} | |
| 2132 | + | |
| 2133 | +Dictionary Dictionary_from_JSON(mixed json) { | |
| 2134 | + Dictionary retval = Dictionary(); | |
| 2135 | + | |
| 2136 | + return retval; | |
| 2137 | +} | |
| 2138 | + | |
| 2139 | +typedef DidSet|float UnionDidSet; | |
| 2140 | + | |
| 2141 | +UnionDidSet UnionDidSet_from_JSON(mixed json) { | |
| 2142 | + return json; | |
| 2143 | +} | |
| 2144 | + | |
| 2145 | +class DidSet { | |
| 2146 | + | |
| 2147 | + string encode_json() { | |
| 2148 | + mapping(string:mixed) json = ([ | |
| 2149 | + ]); | |
| 2150 | + | |
| 2151 | + return Standards.JSON.encode(json); | |
| 2152 | + } | |
| 2153 | +} | |
| 2154 | + | |
| 2155 | +DidSet DidSet_from_JSON(mixed json) { | |
| 2156 | + DidSet retval = DidSet(); | |
| 2157 | + | |
| 2158 | + return retval; | |
| 2159 | +} | |
| 2160 | + | |
| 2161 | +typedef float|Double UnionDouble; | |
| 2162 | + | |
| 2163 | +UnionDouble UnionDouble_from_JSON(mixed json) { | |
| 2164 | + return json; | |
| 2165 | +} | |
| 2166 | + | |
| 2167 | +class Double { | |
| 2168 | + | |
| 2169 | + string encode_json() { | |
| 2170 | + mapping(string:mixed) json = ([ | |
| 2171 | + ]); | |
| 2172 | + | |
| 2173 | + return Standards.JSON.encode(json); | |
| 2174 | + } | |
| 2175 | +} | |
| 2176 | + | |
| 2177 | +Double Double_from_JSON(mixed json) { | |
| 2178 | + Double retval = Double(); | |
| 2179 | + | |
| 2180 | + return retval; | |
| 2181 | +} | |
| 2182 | + | |
| 2183 | +typedef float|Dynamic UnionDynamic; | |
| 2184 | + | |
| 2185 | +UnionDynamic UnionDynamic_from_JSON(mixed json) { | |
| 2186 | + return json; | |
| 2187 | +} | |
| 2188 | + | |
| 2189 | +class Dynamic { | |
| 2190 | + | |
| 2191 | + string encode_json() { | |
| 2192 | + mapping(string:mixed) json = ([ | |
| 2193 | + ]); | |
| 2194 | + | |
| 2195 | + return Standards.JSON.encode(json); | |
| 2196 | + } | |
| 2197 | +} | |
| 2198 | + | |
| 2199 | +Dynamic Dynamic_from_JSON(mixed json) { | |
| 2200 | + Dynamic retval = Dynamic(); | |
| 2201 | + | |
| 2202 | + return retval; | |
| 2203 | +} | |
| 2204 | + | |
| 2205 | +typedef float|DynamicCast UnionDynamicCast; | |
| 2206 | + | |
| 2207 | +UnionDynamicCast UnionDynamicCast_from_JSON(mixed json) { | |
| 2208 | + return json; | |
| 2209 | +} | |
| 2210 | + | |
| 2211 | +class DynamicCast { | |
| 2212 | + | |
| 2213 | + string encode_json() { | |
| 2214 | + mapping(string:mixed) json = ([ | |
| 2215 | + ]); | |
| 2216 | + | |
| 2217 | + return Standards.JSON.encode(json); | |
| 2218 | + } | |
| 2219 | +} | |
| 2220 | + | |
| 2221 | +DynamicCast DynamicCast_from_JSON(mixed json) { | |
| 2222 | + DynamicCast retval = DynamicCast(); | |
| 2223 | + | |
| 2224 | + return retval; | |
| 2225 | +} | |
| 2226 | + | |
| 2227 | +typedef float|Elif UnionElif; | |
| 2228 | + | |
| 2229 | +UnionElif UnionElif_from_JSON(mixed json) { | |
| 2230 | + return json; | |
| 2231 | +} | |
| 2232 | + | |
| 2233 | +class Elif { | |
| 2234 | + | |
| 2235 | + string encode_json() { | |
| 2236 | + mapping(string:mixed) json = ([ | |
| 2237 | + ]); | |
| 2238 | + | |
| 2239 | + return Standards.JSON.encode(json); | |
| 2240 | + } | |
| 2241 | +} | |
| 2242 | + | |
| 2243 | +Elif Elif_from_JSON(mixed json) { | |
| 2244 | + Elif retval = Elif(); | |
| 2245 | + | |
| 2246 | + return retval; | |
| 2247 | +} | |
| 2248 | + | |
| 2249 | +typedef float|Empty UnionUnion; | |
| 2250 | + | |
| 2251 | +UnionUnion UnionUnion_from_JSON(mixed json) { | |
| 2252 | + return json; | |
| 2253 | +} | |
| 2254 | + | |
| 2255 | +class Empty { | |
| 2256 | + | |
| 2257 | + string encode_json() { | |
| 2258 | + mapping(string:mixed) json = ([ | |
| 2259 | + ]); | |
| 2260 | + | |
| 2261 | + return Standards.JSON.encode(json); | |
| 2262 | + } | |
| 2263 | +} | |
| 2264 | + | |
| 2265 | +Empty Empty_from_JSON(mixed json) { | |
| 2266 | + Empty retval = Empty(); | |
| 2267 | + | |
| 2268 | + return retval; | |
| 2269 | +} | |
| 2270 | + | |
| 2271 | +typedef float|EncodeQuickType UnionEncodeQuickType; | |
| 2272 | + | |
| 2273 | +UnionEncodeQuickType UnionEncodeQuickType_from_JSON(mixed json) { | |
| 2274 | + return json; | |
| 2275 | +} | |
| 2276 | + | |
| 2277 | +class EncodeQuickType { | |
| 2278 | + | |
| 2279 | + string encode_json() { | |
| 2280 | + mapping(string:mixed) json = ([ | |
| 2281 | + ]); | |
| 2282 | + | |
| 2283 | + return Standards.JSON.encode(json); | |
| 2284 | + } | |
| 2285 | +} | |
| 2286 | + | |
| 2287 | +EncodeQuickType EncodeQuickType_from_JSON(mixed json) { | |
| 2288 | + EncodeQuickType retval = EncodeQuickType(); | |
| 2289 | + | |
| 2290 | + return retval; | |
| 2291 | +} | |
| 2292 | + | |
| 2293 | +typedef float|Event UnionEvent; | |
| 2294 | + | |
| 2295 | +UnionEvent UnionEvent_from_JSON(mixed json) { | |
| 2296 | + return json; | |
| 2297 | +} | |
| 2298 | + | |
| 2299 | +class Event { | |
| 2300 | + | |
| 2301 | + string encode_json() { | |
| 2302 | + mapping(string:mixed) json = ([ | |
| 2303 | + ]); | |
| 2304 | + | |
| 2305 | + return Standards.JSON.encode(json); | |
| 2306 | + } | |
| 2307 | +} | |
| 2308 | + | |
| 2309 | +Event Event_from_JSON(mixed json) { | |
| 2310 | + Event retval = Event(); | |
| 2311 | + | |
| 2312 | + return retval; | |
| 2313 | +} | |
| 2314 | + | |
| 2315 | +typedef float|Except UnionExcept; | |
| 2316 | + | |
| 2317 | +UnionExcept UnionExcept_from_JSON(mixed json) { | |
| 2318 | + return json; | |
| 2319 | +} | |
| 2320 | + | |
| 2321 | +class Except { | |
| 2322 | + | |
| 2323 | + string encode_json() { | |
| 2324 | + mapping(string:mixed) json = ([ | |
| 2325 | + ]); | |
| 2326 | + | |
| 2327 | + return Standards.JSON.encode(json); | |
| 2328 | + } | |
| 2329 | +} | |
| 2330 | + | |
| 2331 | +Except Except_from_JSON(mixed json) { | |
| 2332 | + Except retval = Except(); | |
| 2333 | + | |
| 2334 | + return retval; | |
| 2335 | +} | |
| 2336 | + | |
| 2337 | +typedef float|Exception UnionException; | |
| 2338 | + | |
| 2339 | +UnionException UnionException_from_JSON(mixed json) { | |
| 2340 | + return json; | |
| 2341 | +} | |
| 2342 | + | |
| 2343 | +class Exception { | |
| 2344 | + | |
| 2345 | + string encode_json() { | |
| 2346 | + mapping(string:mixed) json = ([ | |
| 2347 | + ]); | |
| 2348 | + | |
| 2349 | + return Standards.JSON.encode(json); | |
| 2350 | + } | |
| 2351 | +} | |
| 2352 | + | |
| 2353 | +Exception Exception_from_JSON(mixed json) { | |
| 2354 | + Exception retval = Exception(); | |
| 2355 | + | |
| 2356 | + return retval; | |
| 2357 | +} | |
| 2358 | + | |
| 2359 | +typedef float|Explicit UnionExplicit; | |
| 2360 | + | |
| 2361 | +UnionExplicit UnionExplicit_from_JSON(mixed json) { | |
| 2362 | + return json; | |
| 2363 | +} | |
| 2364 | + | |
| 2365 | +class Explicit { | |
| 2366 | + | |
| 2367 | + string encode_json() { | |
| 2368 | + mapping(string:mixed) json = ([ | |
| 2369 | + ]); | |
| 2370 | + | |
| 2371 | + return Standards.JSON.encode(json); | |
| 2372 | + } | |
| 2373 | +} | |
| 2374 | + | |
| 2375 | +Explicit Explicit_from_JSON(mixed json) { | |
| 2376 | + Explicit retval = Explicit(); | |
| 2377 | + | |
| 2378 | + return retval; | |
| 2379 | +} | |
| 2380 | + | |
| 2381 | +typedef float|Export UnionExport; | |
| 2382 | + | |
| 2383 | +UnionExport UnionExport_from_JSON(mixed json) { | |
| 2384 | + return json; | |
| 2385 | +} | |
| 2386 | + | |
| 2387 | +class Export { | |
| 2388 | + | |
| 2389 | + string encode_json() { | |
| 2390 | + mapping(string:mixed) json = ([ | |
| 2391 | + ]); | |
| 2392 | + | |
| 2393 | + return Standards.JSON.encode(json); | |
| 2394 | + } | |
| 2395 | +} | |
| 2396 | + | |
| 2397 | +Export Export_from_JSON(mixed json) { | |
| 2398 | + Export retval = Export(); | |
| 2399 | + | |
| 2400 | + return retval; | |
| 2401 | +} | |
| 2402 | + | |
| 2403 | +typedef float|Exposing UnionExposing; | |
| 2404 | + | |
| 2405 | +UnionExposing UnionExposing_from_JSON(mixed json) { | |
| 2406 | + return json; | |
| 2407 | +} | |
| 2408 | + | |
| 2409 | +class Exposing { | |
| 2410 | + | |
| 2411 | + string encode_json() { | |
| 2412 | + mapping(string:mixed) json = ([ | |
| 2413 | + ]); | |
| 2414 | + | |
| 2415 | + return Standards.JSON.encode(json); | |
| 2416 | + } | |
| 2417 | +} | |
| 2418 | + | |
| 2419 | +Exposing Exposing_from_JSON(mixed json) { | |
| 2420 | + Exposing retval = Exposing(); | |
| 2421 | + | |
| 2422 | + return retval; | |
| 2423 | +} | |
| 2424 | + | |
| 2425 | +typedef float|Extends UnionExtends; | |
| 2426 | + | |
| 2427 | +UnionExtends UnionExtends_from_JSON(mixed json) { | |
| 2428 | + return json; | |
| 2429 | +} | |
| 2430 | + | |
| 2431 | +class Extends { | |
| 2432 | + | |
| 2433 | + string encode_json() { | |
| 2434 | + mapping(string:mixed) json = ([ | |
| 2435 | + ]); | |
| 2436 | + | |
| 2437 | + return Standards.JSON.encode(json); | |
| 2438 | + } | |
| 2439 | +} | |
| 2440 | + | |
| 2441 | +Extends Extends_from_JSON(mixed json) { | |
| 2442 | + Extends retval = Extends(); | |
| 2443 | + | |
| 2444 | + return retval; | |
| 2445 | +} | |
| 2446 | + | |
| 2447 | +typedef float|Extension UnionExtension; | |
| 2448 | + | |
| 2449 | +UnionExtension UnionExtension_from_JSON(mixed json) { | |
| 2450 | + return json; | |
| 2451 | +} | |
| 2452 | + | |
| 2453 | +class Extension { | |
| 2454 | + | |
| 2455 | + string encode_json() { | |
| 2456 | + mapping(string:mixed) json = ([ | |
| 2457 | + ]); | |
| 2458 | + | |
| 2459 | + return Standards.JSON.encode(json); | |
| 2460 | + } | |
| 2461 | +} | |
| 2462 | + | |
| 2463 | +Extension Extension_from_JSON(mixed json) { | |
| 2464 | + Extension retval = Extension(); | |
| 2465 | + | |
| 2466 | + return retval; | |
| 2467 | +} | |
| 2468 | + | |
| 2469 | +typedef float|Fallthrough UnionFallthrough; | |
| 2470 | + | |
| 2471 | +UnionFallthrough UnionFallthrough_from_JSON(mixed json) { | |
| 2472 | + return json; | |
| 2473 | +} | |
| 2474 | + | |
| 2475 | +class Fallthrough { | |
| 2476 | + | |
| 2477 | + string encode_json() { | |
| 2478 | + mapping(string:mixed) json = ([ | |
| 2479 | + ]); | |
| 2480 | + | |
| 2481 | + return Standards.JSON.encode(json); | |
| 2482 | + } | |
| 2483 | +} | |
| 2484 | + | |
| 2485 | +Fallthrough Fallthrough_from_JSON(mixed json) { | |
| 2486 | + Fallthrough retval = Fallthrough(); | |
| 2487 | + | |
| 2488 | + return retval; | |
| 2489 | +} | |
| 2490 | + | |
| 2491 | +typedef float|False UnionFalse; | |
| 2492 | + | |
| 2493 | +UnionFalse UnionFalse_from_JSON(mixed json) { | |
| 2494 | + return json; | |
| 2495 | +} | |
| 2496 | + | |
| 2497 | +class False { | |
| 2498 | + | |
| 2499 | + string encode_json() { | |
| 2500 | + mapping(string:mixed) json = ([ | |
| 2501 | + ]); | |
| 2502 | + | |
| 2503 | + return Standards.JSON.encode(json); | |
| 2504 | + } | |
| 2505 | +} | |
| 2506 | + | |
| 2507 | +False False_from_JSON(mixed json) { | |
| 2508 | + False retval = False(); | |
| 2509 | + | |
| 2510 | + return retval; | |
| 2511 | +} | |
| 2512 | + | |
| 2513 | +typedef float|Fileprivate UnionFileprivate; | |
| 2514 | + | |
| 2515 | +UnionFileprivate UnionFileprivate_from_JSON(mixed json) { | |
| 2516 | + return json; | |
| 2517 | +} | |
| 2518 | + | |
| 2519 | +class Fileprivate { | |
| 2520 | + | |
| 2521 | + string encode_json() { | |
| 2522 | + mapping(string:mixed) json = ([ | |
| 2523 | + ]); | |
| 2524 | + | |
| 2525 | + return Standards.JSON.encode(json); | |
| 2526 | + } | |
| 2527 | +} | |
| 2528 | + | |
| 2529 | +Fileprivate Fileprivate_from_JSON(mixed json) { | |
| 2530 | + Fileprivate retval = Fileprivate(); | |
| 2531 | + | |
| 2532 | + return retval; | |
| 2533 | +} | |
| 2534 | + | |
| 2535 | +typedef float|Finally UnionFinally; | |
| 2536 | + | |
| 2537 | +UnionFinally UnionFinally_from_JSON(mixed json) { | |
| 2538 | + return json; | |
| 2539 | +} | |
| 2540 | + | |
| 2541 | +class Finally { | |
| 2542 | + | |
| 2543 | + string encode_json() { | |
| 2544 | + mapping(string:mixed) json = ([ | |
| 2545 | + ]); | |
| 2546 | + | |
| 2547 | + return Standards.JSON.encode(json); | |
| 2548 | + } | |
| 2549 | +} | |
| 2550 | + | |
| 2551 | +Finally Finally_from_JSON(mixed json) { | |
| 2552 | + Finally retval = Finally(); | |
| 2553 | + | |
| 2554 | + return retval; | |
| 2555 | +} | |
| 2556 | + | |
| 2557 | +typedef float|Fixed UnionFixed; | |
| 2558 | + | |
| 2559 | +UnionFixed UnionFixed_from_JSON(mixed json) { | |
| 2560 | + return json; | |
| 2561 | +} | |
| 2562 | + | |
| 2563 | +class Fixed { | |
| 2564 | + | |
| 2565 | + string encode_json() { | |
| 2566 | + mapping(string:mixed) json = ([ | |
| 2567 | + ]); | |
| 2568 | + | |
| 2569 | + return Standards.JSON.encode(json); | |
| 2570 | + } | |
| 2571 | +} | |
| 2572 | + | |
| 2573 | +Fixed Fixed_from_JSON(mixed json) { | |
| 2574 | + Fixed retval = Fixed(); | |
| 2575 | + | |
| 2576 | + return retval; | |
| 2577 | +} | |
| 2578 | + | |
| 2579 | +typedef float|Friend UnionFriend; | |
| 2580 | + | |
| 2581 | +UnionFriend UnionFriend_from_JSON(mixed json) { | |
| 2582 | + return json; | |
| 2583 | +} | |
| 2584 | + | |
| 2585 | +class Friend { | |
| 2586 | + | |
| 2587 | + string encode_json() { | |
| 2588 | + mapping(string:mixed) json = ([ | |
| 2589 | + ]); | |
| 2590 | + | |
| 2591 | + return Standards.JSON.encode(json); | |
| 2592 | + } | |
| 2593 | +} | |
| 2594 | + | |
| 2595 | +Friend Friend_from_JSON(mixed json) { | |
| 2596 | + Friend retval = Friend(); | |
| 2597 | + | |
| 2598 | + return retval; | |
| 2599 | +} | |
| 2600 | + | |
| 2601 | +typedef float|From UnionFrom; | |
| 2602 | + | |
| 2603 | +UnionFrom UnionFrom_from_JSON(mixed json) { | |
| 2604 | + return json; | |
| 2605 | +} | |
| 2606 | + | |
| 2607 | +class From { | |
| 2608 | + | |
| 2609 | + string encode_json() { | |
| 2610 | + mapping(string:mixed) json = ([ | |
| 2611 | + ]); | |
| 2612 | + | |
| 2613 | + return Standards.JSON.encode(json); | |
| 2614 | + } | |
| 2615 | +} | |
| 2616 | + | |
| 2617 | +From From_from_JSON(mixed json) { | |
| 2618 | + From retval = From(); | |
| 2619 | + | |
| 2620 | + return retval; | |
| 2621 | +} | |
| 2622 | + | |
| 2623 | +typedef float|FromJson UnionFromJson; | |
| 2624 | + | |
| 2625 | +UnionFromJson UnionFromJson_from_JSON(mixed json) { | |
| 2626 | + return json; | |
| 2627 | +} | |
| 2628 | + | |
| 2629 | +class FromJson { | |
| 2630 | + | |
| 2631 | + string encode_json() { | |
| 2632 | + mapping(string:mixed) json = ([ | |
| 2633 | + ]); | |
| 2634 | + | |
| 2635 | + return Standards.JSON.encode(json); | |
| 2636 | + } | |
| 2637 | +} | |
| 2638 | + | |
| 2639 | +FromJson FromJson_from_JSON(mixed json) { | |
| 2640 | + FromJson retval = FromJson(); | |
| 2641 | + | |
| 2642 | + return retval; | |
| 2643 | +} | |
| 2644 | + | |
| 2645 | +typedef float|Func UnionFunc; | |
| 2646 | + | |
| 2647 | +UnionFunc UnionFunc_from_JSON(mixed json) { | |
| 2648 | + return json; | |
| 2649 | +} | |
| 2650 | + | |
| 2651 | +class Func { | |
| 2652 | + | |
| 2653 | + string encode_json() { | |
| 2654 | + mapping(string:mixed) json = ([ | |
| 2655 | + ]); | |
| 2656 | + | |
| 2657 | + return Standards.JSON.encode(json); | |
| 2658 | + } | |
| 2659 | +} | |
| 2660 | + | |
| 2661 | +Func Func_from_JSON(mixed json) { | |
| 2662 | + Func retval = Func(); | |
| 2663 | + | |
| 2664 | + return retval; | |
| 2665 | +} | |
| 2666 | + | |
| 2667 | +typedef float|Get UnionGet; | |
| 2668 | + | |
| 2669 | +UnionGet UnionGet_from_JSON(mixed json) { | |
| 2670 | + return json; | |
| 2671 | +} | |
| 2672 | + | |
| 2673 | +class Get { | |
| 2674 | + | |
| 2675 | + string encode_json() { | |
| 2676 | + mapping(string:mixed) json = ([ | |
| 2677 | + ]); | |
| 2678 | + | |
| 2679 | + return Standards.JSON.encode(json); | |
| 2680 | + } | |
| 2681 | +} | |
| 2682 | + | |
| 2683 | +Get Get_from_JSON(mixed json) { | |
| 2684 | + Get retval = Get(); | |
| 2685 | + | |
| 2686 | + return retval; | |
| 2687 | +} | |
| 2688 | + | |
| 2689 | +typedef float|Go UnionGo; | |
| 2690 | + | |
| 2691 | +UnionGo UnionGo_from_JSON(mixed json) { | |
| 2692 | + return json; | |
| 2693 | +} | |
| 2694 | + | |
| 2695 | +class Go { | |
| 2696 | + | |
| 2697 | + string encode_json() { | |
| 2698 | + mapping(string:mixed) json = ([ | |
| 2699 | + ]); | |
| 2700 | + | |
| 2701 | + return Standards.JSON.encode(json); | |
| 2702 | + } | |
| 2703 | +} | |
| 2704 | + | |
| 2705 | +Go Go_from_JSON(mixed json) { | |
| 2706 | + Go retval = Go(); | |
| 2707 | + | |
| 2708 | + return retval; | |
| 2709 | +} | |
| 2710 | + | |
| 2711 | +typedef float|Goto UnionGoto; | |
| 2712 | + | |
| 2713 | +UnionGoto UnionGoto_from_JSON(mixed json) { | |
| 2714 | + return json; | |
| 2715 | +} | |
| 2716 | + | |
| 2717 | +class Goto { | |
| 2718 | + | |
| 2719 | + string encode_json() { | |
| 2720 | + mapping(string:mixed) json = ([ | |
| 2721 | + ]); | |
| 2722 | + | |
| 2723 | + return Standards.JSON.encode(json); | |
| 2724 | + } | |
| 2725 | +} | |
| 2726 | + | |
| 2727 | +Goto Goto_from_JSON(mixed json) { | |
| 2728 | + Goto retval = Goto(); | |
| 2729 | + | |
| 2730 | + return retval; | |
| 2731 | +} | |
| 2732 | + | |
| 2733 | +typedef float|Guard UnionGuard; | |
| 2734 | + | |
| 2735 | +UnionGuard UnionGuard_from_JSON(mixed json) { | |
| 2736 | + return json; | |
| 2737 | +} | |
| 2738 | + | |
| 2739 | +class Guard { | |
| 2740 | + | |
| 2741 | + string encode_json() { | |
| 2742 | + mapping(string:mixed) json = ([ | |
| 2743 | + ]); | |
| 2744 | + | |
| 2745 | + return Standards.JSON.encode(json); | |
| 2746 | + } | |
| 2747 | +} | |
| 2748 | + | |
| 2749 | +Guard Guard_from_JSON(mixed json) { | |
| 2750 | + Guard retval = Guard(); | |
| 2751 | + | |
| 2752 | + return retval; | |
| 2753 | +} | |
| 2754 | + | |
| 2755 | +typedef float|HasOwnProperty UnionHasOwnProperty; | |
| 2756 | + | |
| 2757 | +UnionHasOwnProperty UnionHasOwnProperty_from_JSON(mixed json) { | |
| 2758 | + return json; | |
| 2759 | +} | |
| 2760 | + | |
| 2761 | +class HasOwnProperty { | |
| 2762 | + | |
| 2763 | + string encode_json() { | |
| 2764 | + mapping(string:mixed) json = ([ | |
| 2765 | + ]); | |
| 2766 | + | |
| 2767 | + return Standards.JSON.encode(json); | |
| 2768 | + } | |
| 2769 | +} | |
| 2770 | + | |
| 2771 | +HasOwnProperty HasOwnProperty_from_JSON(mixed json) { | |
| 2772 | + HasOwnProperty retval = HasOwnProperty(); | |
| 2773 | + | |
| 2774 | + return retval; | |
| 2775 | +} | |
| 2776 | + | |
| 2777 | +typedef float|Id UnionId; | |
| 2778 | + | |
| 2779 | +UnionId UnionId_from_JSON(mixed json) { | |
| 2780 | + return json; | |
| 2781 | +} | |
| 2782 | + | |
| 2783 | +class Id { | |
| 2784 | + | |
| 2785 | + string encode_json() { | |
| 2786 | + mapping(string:mixed) json = ([ | |
| 2787 | + ]); | |
| 2788 | + | |
| 2789 | + return Standards.JSON.encode(json); | |
| 2790 | + } | |
| 2791 | +} | |
| 2792 | + | |
| 2793 | +Id Id_from_JSON(mixed json) { | |
| 2794 | + Id retval = Id(); | |
| 2795 | + | |
| 2796 | + return retval; | |
| 2797 | +} | |
| 2798 | + | |
| 2799 | +typedef float|Imaginery UnionImaginery; | |
| 2800 | + | |
| 2801 | +UnionImaginery UnionImaginery_from_JSON(mixed json) { | |
| 2802 | + return json; | |
| 2803 | +} | |
| 2804 | + | |
| 2805 | +class Imaginery { | |
| 2806 | + | |
| 2807 | + string encode_json() { | |
| 2808 | + mapping(string:mixed) json = ([ | |
| 2809 | + ]); | |
| 2810 | + | |
| 2811 | + return Standards.JSON.encode(json); | |
| 2812 | + } | |
| 2813 | +} | |
| 2814 | + | |
| 2815 | +Imaginery Imaginery_from_JSON(mixed json) { | |
| 2816 | + Imaginery retval = Imaginery(); | |
| 2817 | + | |
| 2818 | + return retval; | |
| 2819 | +} | |
| 2820 | + | |
| 2821 | +typedef float|Imp UnionImp; | |
| 2822 | + | |
| 2823 | +UnionImp UnionImp_from_JSON(mixed json) { | |
| 2824 | + return json; | |
| 2825 | +} | |
| 2826 | + | |
| 2827 | +class Imp { | |
| 2828 | + | |
| 2829 | + string encode_json() { | |
| 2830 | + mapping(string:mixed) json = ([ | |
| 2831 | + ]); | |
| 2832 | + | |
| 2833 | + return Standards.JSON.encode(json); | |
| 2834 | + } | |
| 2835 | +} | |
| 2836 | + | |
| 2837 | +Imp Imp_from_JSON(mixed json) { | |
| 2838 | + Imp retval = Imp(); | |
| 2839 | + | |
| 2840 | + return retval; | |
| 2841 | +} | |
| 2842 | + | |
| 2843 | +typedef float|Implements UnionImplements; | |
| 2844 | + | |
| 2845 | +UnionImplements UnionImplements_from_JSON(mixed json) { | |
| 2846 | + return json; | |
| 2847 | +} | |
| 2848 | + | |
| 2849 | +class Implements { | |
| 2850 | + | |
| 2851 | + string encode_json() { | |
| 2852 | + mapping(string:mixed) json = ([ | |
| 2853 | + ]); | |
| 2854 | + | |
| 2855 | + return Standards.JSON.encode(json); | |
| 2856 | + } | |
| 2857 | +} | |
| 2858 | + | |
| 2859 | +Implements Implements_from_JSON(mixed json) { | |
| 2860 | + Implements retval = Implements(); | |
| 2861 | + | |
| 2862 | + return retval; | |
| 2863 | +} | |
| 2864 | + | |
| 2865 | +typedef float|Implicit UnionImplicit; | |
| 2866 | + | |
| 2867 | +UnionImplicit UnionImplicit_from_JSON(mixed json) { | |
| 2868 | + return json; | |
| 2869 | +} | |
| 2870 | + | |
| 2871 | +class Implicit { | |
| 2872 | + | |
| 2873 | + string encode_json() { | |
| 2874 | + mapping(string:mixed) json = ([ | |
| 2875 | + ]); | |
| 2876 | + | |
| 2877 | + return Standards.JSON.encode(json); | |
| 2878 | + } | |
| 2879 | +} | |
| 2880 | + | |
| 2881 | +Implicit Implicit_from_JSON(mixed json) { | |
| 2882 | + Implicit retval = Implicit(); | |
| 2883 | + | |
| 2884 | + return retval; | |
| 2885 | +} | |
| 2886 | + | |
| 2887 | +typedef float|In UnionIn; | |
| 2888 | + | |
| 2889 | +UnionIn UnionIn_from_JSON(mixed json) { | |
| 2890 | + return json; | |
| 2891 | +} | |
| 2892 | + | |
| 2893 | +class In { | |
| 2894 | + | |
| 2895 | + string encode_json() { | |
| 2896 | + mapping(string:mixed) json = ([ | |
| 2897 | + ]); | |
| 2898 | + | |
| 2899 | + return Standards.JSON.encode(json); | |
| 2900 | + } | |
| 2901 | +} | |
| 2902 | + | |
| 2903 | +In In_from_JSON(mixed json) { | |
| 2904 | + In retval = In(); | |
| 2905 | + | |
| 2906 | + return retval; | |
| 2907 | +} | |
| 2908 | + | |
| 2909 | +typedef float|Indirect UnionIndirect; | |
| 2910 | + | |
| 2911 | +UnionIndirect UnionIndirect_from_JSON(mixed json) { | |
| 2912 | + return json; | |
| 2913 | +} | |
| 2914 | + | |
| 2915 | +class Indirect { | |
| 2916 | + | |
| 2917 | + string encode_json() { | |
| 2918 | + mapping(string:mixed) json = ([ | |
| 2919 | + ]); | |
| 2920 | + | |
| 2921 | + return Standards.JSON.encode(json); | |
| 2922 | + } | |
| 2923 | +} | |
| 2924 | + | |
| 2925 | +Indirect Indirect_from_JSON(mixed json) { | |
| 2926 | + Indirect retval = Indirect(); | |
| 2927 | + | |
| 2928 | + return retval; | |
| 2929 | +} | |
| 2930 | + | |
| 2931 | +typedef float|Infix UnionInfix; | |
| 2932 | + | |
| 2933 | +UnionInfix UnionInfix_from_JSON(mixed json) { | |
| 2934 | + return json; | |
| 2935 | +} | |
| 2936 | + | |
| 2937 | +class Infix { | |
| 2938 | + | |
| 2939 | + string encode_json() { | |
| 2940 | + mapping(string:mixed) json = ([ | |
| 2941 | + ]); | |
| 2942 | + | |
| 2943 | + return Standards.JSON.encode(json); | |
| 2944 | + } | |
| 2945 | +} | |
| 2946 | + | |
| 2947 | +Infix Infix_from_JSON(mixed json) { | |
| 2948 | + Infix retval = Infix(); | |
| 2949 | + | |
| 2950 | + return retval; | |
| 2951 | +} | |
| 2952 | + | |
| 2953 | +typedef float|Init UnionInit; | |
| 2954 | + | |
| 2955 | +UnionInit UnionInit_from_JSON(mixed json) { | |
| 2956 | + return json; | |
| 2957 | +} | |
| 2958 | + | |
| 2959 | +class Init { | |
| 2960 | + | |
| 2961 | + string encode_json() { | |
| 2962 | + mapping(string:mixed) json = ([ | |
| 2963 | + ]); | |
| 2964 | + | |
| 2965 | + return Standards.JSON.encode(json); | |
| 2966 | + } | |
| 2967 | +} | |
| 2968 | + | |
| 2969 | +Init Init_from_JSON(mixed json) { | |
| 2970 | + Init retval = Init(); | |
| 2971 | + | |
| 2972 | + return retval; | |
| 2973 | +} | |
| 2974 | + | |
| 2975 | +typedef float|Inout UnionInout; | |
| 2976 | + | |
| 2977 | +UnionInout UnionInout_from_JSON(mixed json) { | |
| 2978 | + return json; | |
| 2979 | +} | |
| 2980 | + | |
| 2981 | +class Inout { | |
| 2982 | + | |
| 2983 | + string encode_json() { | |
| 2984 | + mapping(string:mixed) json = ([ | |
| 2985 | + ]); | |
| 2986 | + | |
| 2987 | + return Standards.JSON.encode(json); | |
| 2988 | + } | |
| 2989 | +} | |
| 2990 | + | |
| 2991 | +Inout Inout_from_JSON(mixed json) { | |
| 2992 | + Inout retval = Inout(); | |
| 2993 | + | |
| 2994 | + return retval; | |
| 2995 | +} | |
| 2996 | + | |
| 2997 | +typedef float|Instanceof UnionInstanceof; | |
| 2998 | + | |
| 2999 | +UnionInstanceof UnionInstanceof_from_JSON(mixed json) { | |
| 3000 | + return json; | |
| 3001 | +} | |
| 3002 | + | |
| 3003 | +class Instanceof { | |
| 3004 | + | |
| 3005 | + string encode_json() { | |
| 3006 | + mapping(string:mixed) json = ([ | |
| 3007 | + ]); | |
| 3008 | + | |
| 3009 | + return Standards.JSON.encode(json); | |
| 3010 | + } | |
| 3011 | +} | |
| 3012 | + | |
| 3013 | +Instanceof Instanceof_from_JSON(mixed json) { | |
| 3014 | + Instanceof retval = Instanceof(); | |
| 3015 | + | |
| 3016 | + return retval; | |
| 3017 | +} | |
| 3018 | + | |
| 3019 | +typedef float|Interface UnionInterface; | |
| 3020 | + | |
| 3021 | +UnionInterface UnionInterface_from_JSON(mixed json) { | |
| 3022 | + return json; | |
| 3023 | +} | |
| 3024 | + | |
| 3025 | +class Interface { | |
| 3026 | + | |
| 3027 | + string encode_json() { | |
| 3028 | + mapping(string:mixed) json = ([ | |
| 3029 | + ]); | |
| 3030 | + | |
| 3031 | + return Standards.JSON.encode(json); | |
| 3032 | + } | |
| 3033 | +} | |
| 3034 | + | |
| 3035 | +Interface Interface_from_JSON(mixed json) { | |
| 3036 | + Interface retval = Interface(); | |
| 3037 | + | |
| 3038 | + return retval; | |
| 3039 | +} | |
| 3040 | + | |
| 3041 | +typedef float|Internal UnionInternal; | |
| 3042 | + | |
| 3043 | +UnionInternal UnionInternal_from_JSON(mixed json) { | |
| 3044 | + return json; | |
| 3045 | +} | |
| 3046 | + | |
| 3047 | +class Internal { | |
| 3048 | + | |
| 3049 | + string encode_json() { | |
| 3050 | + mapping(string:mixed) json = ([ | |
| 3051 | + ]); | |
| 3052 | + | |
| 3053 | + return Standards.JSON.encode(json); | |
| 3054 | + } | |
| 3055 | +} | |
| 3056 | + | |
| 3057 | +Internal Internal_from_JSON(mixed json) { | |
| 3058 | + Internal retval = Internal(); | |
| 3059 | + | |
| 3060 | + return retval; | |
| 3061 | +} | |
| 3062 | + | |
| 3063 | +typedef float|Is UnionIs; | |
| 3064 | + | |
| 3065 | +UnionIs UnionIs_from_JSON(mixed json) { | |
| 3066 | + return json; | |
| 3067 | +} | |
| 3068 | + | |
| 3069 | +class Is { | |
| 3070 | + | |
| 3071 | + string encode_json() { | |
| 3072 | + mapping(string:mixed) json = ([ | |
| 3073 | + ]); | |
| 3074 | + | |
| 3075 | + return Standards.JSON.encode(json); | |
| 3076 | + } | |
| 3077 | +} | |
| 3078 | + | |
| 3079 | +Is Is_from_JSON(mixed json) { | |
| 3080 | + Is retval = Is(); | |
| 3081 | + | |
| 3082 | + return retval; | |
| 3083 | +} | |
| 3084 | + | |
| 3085 | +typedef float|Iterable UnionIterable; | |
| 3086 | + | |
| 3087 | +UnionIterable UnionIterable_from_JSON(mixed json) { | |
| 3088 | + return json; | |
| 3089 | +} | |
| 3090 | + | |
| 3091 | +class Iterable { | |
| 3092 | + | |
| 3093 | + string encode_json() { | |
| 3094 | + mapping(string:mixed) json = ([ | |
| 3095 | + ]); | |
| 3096 | + | |
| 3097 | + return Standards.JSON.encode(json); | |
| 3098 | + } | |
| 3099 | +} | |
| 3100 | + | |
| 3101 | +Iterable Iterable_from_JSON(mixed json) { | |
| 3102 | + Iterable retval = Iterable(); | |
| 3103 | + | |
| 3104 | + return retval; | |
| 3105 | +} | |
| 3106 | + | |
| 3107 | +typedef float|Jdec UnionJdec; | |
| 3108 | + | |
| 3109 | +UnionJdec UnionJdec_from_JSON(mixed json) { | |
| 3110 | + return json; | |
| 3111 | +} | |
| 3112 | + | |
| 3113 | +class Jdec { | |
| 3114 | + | |
| 3115 | + string encode_json() { | |
| 3116 | + mapping(string:mixed) json = ([ | |
| 3117 | + ]); | |
| 3118 | + | |
| 3119 | + return Standards.JSON.encode(json); | |
| 3120 | + } | |
| 3121 | +} | |
| 3122 | + | |
| 3123 | +Jdec Jdec_from_JSON(mixed json) { | |
| 3124 | + Jdec retval = Jdec(); | |
| 3125 | + | |
| 3126 | + return retval; | |
| 3127 | +} | |
| 3128 | + | |
| 3129 | +typedef float|Jenc UnionJenc; | |
| 3130 | + | |
| 3131 | +UnionJenc UnionJenc_from_JSON(mixed json) { | |
| 3132 | + return json; | |
| 3133 | +} | |
| 3134 | + | |
| 3135 | +class Jenc { | |
| 3136 | + | |
| 3137 | + string encode_json() { | |
| 3138 | + mapping(string:mixed) json = ([ | |
| 3139 | + ]); | |
| 3140 | + | |
| 3141 | + return Standards.JSON.encode(json); | |
| 3142 | + } | |
| 3143 | +} | |
| 3144 | + | |
| 3145 | +Jenc Jenc_from_JSON(mixed json) { | |
| 3146 | + Jenc retval = Jenc(); | |
| 3147 | + | |
| 3148 | + return retval; | |
| 3149 | +} | |
| 3150 | + | |
| 3151 | +typedef float|Jpipe UnionJpipe; | |
| 3152 | + | |
| 3153 | +UnionJpipe UnionJpipe_from_JSON(mixed json) { | |
| 3154 | + return json; | |
| 3155 | +} | |
| 3156 | + | |
| 3157 | +class Jpipe { | |
| 3158 | + | |
| 3159 | + string encode_json() { | |
| 3160 | + mapping(string:mixed) json = ([ | |
| 3161 | + ]); | |
| 3162 | + | |
| 3163 | + return Standards.JSON.encode(json); | |
| 3164 | + } | |
| 3165 | +} | |
| 3166 | + | |
| 3167 | +Jpipe Jpipe_from_JSON(mixed json) { | |
| 3168 | + Jpipe retval = Jpipe(); | |
| 3169 | + | |
| 3170 | + return retval; | |
| 3171 | +} | |
| 3172 | + | |
| 3173 | +typedef float|Json UnionJson; | |
| 3174 | + | |
| 3175 | +UnionJson UnionJson_from_JSON(mixed json) { | |
| 3176 | + return json; | |
| 3177 | +} | |
| 3178 | + | |
| 3179 | +class Json { | |
| 3180 | + | |
| 3181 | + string encode_json() { | |
| 3182 | + mapping(string:mixed) json = ([ | |
| 3183 | + ]); | |
| 3184 | + | |
| 3185 | + return Standards.JSON.encode(json); | |
| 3186 | + } | |
| 3187 | +} | |
| 3188 | + | |
| 3189 | +Json Json_from_JSON(mixed json) { | |
| 3190 | + Json retval = Json(); | |
| 3191 | + | |
| 3192 | + return retval; | |
| 3193 | +} | |
| 3194 | + | |
| 3195 | +typedef float|JsonConverter UnionJsonConverter; | |
| 3196 | + | |
| 3197 | +UnionJsonConverter UnionJsonConverter_from_JSON(mixed json) { | |
| 3198 | + return json; | |
| 3199 | +} | |
| 3200 | + | |
| 3201 | +class JsonConverter { | |
| 3202 | + | |
| 3203 | + string encode_json() { | |
| 3204 | + mapping(string:mixed) json = ([ | |
| 3205 | + ]); | |
| 3206 | + | |
| 3207 | + return Standards.JSON.encode(json); | |
| 3208 | + } | |
| 3209 | +} | |
| 3210 | + | |
| 3211 | +JsonConverter JsonConverter_from_JSON(mixed json) { | |
| 3212 | + JsonConverter retval = JsonConverter(); | |
| 3213 | + | |
| 3214 | + return retval; | |
| 3215 | +} | |
| 3216 | + | |
| 3217 | +typedef float|JsonSerializer UnionJsonSerializer; | |
| 3218 | + | |
| 3219 | +UnionJsonSerializer UnionJsonSerializer_from_JSON(mixed json) { | |
| 3220 | + return json; | |
| 3221 | +} | |
| 3222 | + | |
| 3223 | +class JsonSerializer { | |
| 3224 | + | |
| 3225 | + string encode_json() { | |
| 3226 | + mapping(string:mixed) json = ([ | |
| 3227 | + ]); | |
| 3228 | + | |
| 3229 | + return Standards.JSON.encode(json); | |
| 3230 | + } | |
| 3231 | +} | |
| 3232 | + | |
| 3233 | +JsonSerializer JsonSerializer_from_JSON(mixed json) { | |
| 3234 | + JsonSerializer retval = JsonSerializer(); | |
| 3235 | + | |
| 3236 | + return retval; | |
| 3237 | +} | |
| 3238 | + | |
| 3239 | +typedef float|JsonToken UnionJsonToken; | |
| 3240 | + | |
| 3241 | +UnionJsonToken UnionJsonToken_from_JSON(mixed json) { | |
| 3242 | + return json; | |
| 3243 | +} | |
| 3244 | + | |
| 3245 | +class JsonToken { | |
| 3246 | + | |
| 3247 | + string encode_json() { | |
| 3248 | + mapping(string:mixed) json = ([ | |
| 3249 | + ]); | |
| 3250 | + | |
| 3251 | + return Standards.JSON.encode(json); | |
| 3252 | + } | |
| 3253 | +} | |
| 3254 | + | |
| 3255 | +JsonToken JsonToken_from_JSON(mixed json) { | |
| 3256 | + JsonToken retval = JsonToken(); | |
| 3257 | + | |
| 3258 | + return retval; | |
| 3259 | +} | |
| 3260 | + | |
| 3261 | +typedef float|JsonWriter UnionJsonWriter; | |
| 3262 | + | |
| 3263 | +UnionJsonWriter UnionJsonWriter_from_JSON(mixed json) { | |
| 3264 | + return json; | |
| 3265 | +} | |
| 3266 | + | |
| 3267 | +class JsonWriter { | |
| 3268 | + | |
| 3269 | + string encode_json() { | |
| 3270 | + mapping(string:mixed) json = ([ | |
| 3271 | + ]); | |
| 3272 | + | |
| 3273 | + return Standards.JSON.encode(json); | |
| 3274 | + } | |
| 3275 | +} | |
| 3276 | + | |
| 3277 | +JsonWriter JsonWriter_from_JSON(mixed json) { | |
| 3278 | + JsonWriter retval = JsonWriter(); | |
| 3279 | + | |
| 3280 | + return retval; | |
| 3281 | +} | |
| 3282 | + | |
| 3283 | +typedef float|Lazy UnionLazy; | |
| 3284 | + | |
| 3285 | +UnionLazy UnionLazy_from_JSON(mixed json) { | |
| 3286 | + return json; | |
| 3287 | +} | |
| 3288 | + | |
| 3289 | +class Lazy { | |
| 3290 | + | |
| 3291 | + string encode_json() { | |
| 3292 | + mapping(string:mixed) json = ([ | |
| 3293 | + ]); | |
| 3294 | + | |
| 3295 | + return Standards.JSON.encode(json); | |
| 3296 | + } | |
| 3297 | +} | |
| 3298 | + | |
| 3299 | +Lazy Lazy_from_JSON(mixed json) { | |
| 3300 | + Lazy retval = Lazy(); | |
| 3301 | + | |
| 3302 | + return retval; | |
| 3303 | +} | |
| 3304 | + | |
| 3305 | +typedef float|Left UnionLeft; | |
| 3306 | + | |
| 3307 | +UnionLeft UnionLeft_from_JSON(mixed json) { | |
| 3308 | + return json; | |
| 3309 | +} | |
| 3310 | + | |
| 3311 | +class Left { | |
| 3312 | + | |
| 3313 | + string encode_json() { | |
| 3314 | + mapping(string:mixed) json = ([ | |
| 3315 | + ]); | |
| 3316 | + | |
| 3317 | + return Standards.JSON.encode(json); | |
| 3318 | + } | |
| 3319 | +} | |
| 3320 | + | |
| 3321 | +Left Left_from_JSON(mixed json) { | |
| 3322 | + Left retval = Left(); | |
| 3323 | + | |
| 3324 | + return retval; | |
| 3325 | +} | |
| 3326 | + | |
| 3327 | +typedef float|Let UnionLet; | |
| 3328 | + | |
| 3329 | +UnionLet UnionLet_from_JSON(mixed json) { | |
| 3330 | + return json; | |
| 3331 | +} | |
| 3332 | + | |
| 3333 | +class Let { | |
| 3334 | + | |
| 3335 | + string encode_json() { | |
| 3336 | + mapping(string:mixed) json = ([ | |
| 3337 | + ]); | |
| 3338 | + | |
| 3339 | + return Standards.JSON.encode(json); | |
| 3340 | + } | |
| 3341 | +} | |
| 3342 | + | |
| 3343 | +Let Let_from_JSON(mixed json) { | |
| 3344 | + Let retval = Let(); | |
| 3345 | + | |
| 3346 | + return retval; | |
| 3347 | +} | |
| 3348 | + | |
| 3349 | +typedef float|List UnionList; | |
| 3350 | + | |
| 3351 | +UnionList UnionList_from_JSON(mixed json) { | |
| 3352 | + return json; | |
| 3353 | +} | |
| 3354 | + | |
| 3355 | +class List { | |
| 3356 | + | |
| 3357 | + string encode_json() { | |
| 3358 | + mapping(string:mixed) json = ([ | |
| 3359 | + ]); | |
| 3360 | + | |
| 3361 | + return Standards.JSON.encode(json); | |
| 3362 | + } | |
| 3363 | +} | |
| 3364 | + | |
| 3365 | +List List_from_JSON(mixed json) { | |
| 3366 | + List retval = List(); | |
| 3367 | + | |
| 3368 | + return retval; | |
| 3369 | +} | |
| 3370 | + | |
| 3371 | +typedef float|Lock UnionLock; | |
| 3372 | + | |
| 3373 | +UnionLock UnionLock_from_JSON(mixed json) { | |
| 3374 | + return json; | |
| 3375 | +} | |
| 3376 | + | |
| 3377 | +class Lock { | |
| 3378 | + | |
| 3379 | + string encode_json() { | |
| 3380 | + mapping(string:mixed) json = ([ | |
| 3381 | + ]); | |
| 3382 | + | |
| 3383 | + return Standards.JSON.encode(json); | |
| 3384 | + } | |
| 3385 | +} | |
| 3386 | + | |
| 3387 | +Lock Lock_from_JSON(mixed json) { | |
| 3388 | + Lock retval = Lock(); | |
| 3389 | + | |
| 3390 | + return retval; | |
| 3391 | +} | |
| 3392 | + | |
| 3393 | +typedef float|Long UnionLong; | |
| 3394 | + | |
| 3395 | +UnionLong UnionLong_from_JSON(mixed json) { | |
| 3396 | + return json; | |
| 3397 | +} | |
| 3398 | + | |
| 3399 | +class Long { | |
| 3400 | + | |
| 3401 | + string encode_json() { | |
| 3402 | + mapping(string:mixed) json = ([ | |
| 3403 | + ]); | |
| 3404 | + | |
| 3405 | + return Standards.JSON.encode(json); | |
| 3406 | + } | |
| 3407 | +} | |
| 3408 | + | |
| 3409 | +Long Long_from_JSON(mixed json) { | |
| 3410 | + Long retval = Long(); | |
| 3411 | + | |
| 3412 | + return retval; | |
| 3413 | +} | |
| 3414 | + | |
| 3415 | +typedef float|Map UnionMap; | |
| 3416 | + | |
| 3417 | +UnionMap UnionMap_from_JSON(mixed json) { | |
| 3418 | + return json; | |
| 3419 | +} | |
| 3420 | + | |
| 3421 | +class Map { | |
| 3422 | + | |
| 3423 | + string encode_json() { | |
| 3424 | + mapping(string:mixed) json = ([ | |
| 3425 | + ]); | |
| 3426 | + | |
| 3427 | + return Standards.JSON.encode(json); | |
| 3428 | + } | |
| 3429 | +} | |
| 3430 | + | |
| 3431 | +Map Map_from_JSON(mixed json) { | |
| 3432 | + Map retval = Map(); | |
| 3433 | + | |
| 3434 | + return retval; | |
| 3435 | +} | |
| 3436 | + | |
| 3437 | +typedef float|MetadataPropertyHandling UnionMetadataPropertyHandling; | |
| 3438 | + | |
| 3439 | +UnionMetadataPropertyHandling UnionMetadataPropertyHandling_from_JSON(mixed json) { | |
| 3440 | + return json; | |
| 3441 | +} | |
| 3442 | + | |
| 3443 | +class MetadataPropertyHandling { | |
| 3444 | + | |
| 3445 | + string encode_json() { | |
| 3446 | + mapping(string:mixed) json = ([ | |
| 3447 | + ]); | |
| 3448 | + | |
| 3449 | + return Standards.JSON.encode(json); | |
| 3450 | + } | |
| 3451 | +} | |
| 3452 | + | |
| 3453 | +MetadataPropertyHandling MetadataPropertyHandling_from_JSON(mixed json) { | |
| 3454 | + MetadataPropertyHandling retval = MetadataPropertyHandling(); | |
| 3455 | + | |
| 3456 | + return retval; | |
| 3457 | +} | |
| 3458 | + | |
| 3459 | +typedef float|Module UnionModule; | |
| 3460 | + | |
| 3461 | +UnionModule UnionModule_from_JSON(mixed json) { | |
| 3462 | + return json; | |
| 3463 | +} | |
| 3464 | + | |
| 3465 | +class Module { | |
| 3466 | + | |
| 3467 | + string encode_json() { | |
| 3468 | + mapping(string:mixed) json = ([ | |
| 3469 | + ]); | |
| 3470 | + | |
| 3471 | + return Standards.JSON.encode(json); | |
| 3472 | + } | |
| 3473 | +} | |
| 3474 | + | |
| 3475 | +Module Module_from_JSON(mixed json) { | |
| 3476 | + Module retval = Module(); | |
| 3477 | + | |
| 3478 | + return retval; | |
| 3479 | +} | |
| 3480 | + | |
| 3481 | +typedef float|Mutable UnionMutable; | |
| 3482 | + | |
| 3483 | +UnionMutable UnionMutable_from_JSON(mixed json) { | |
| 3484 | + return json; | |
| 3485 | +} | |
| 3486 | + | |
| 3487 | +class Mutable { | |
| 3488 | + | |
| 3489 | + string encode_json() { | |
| 3490 | + mapping(string:mixed) json = ([ | |
| 3491 | + ]); | |
| 3492 | + | |
| 3493 | + return Standards.JSON.encode(json); | |
| 3494 | + } | |
| 3495 | +} | |
| 3496 | + | |
| 3497 | +Mutable Mutable_from_JSON(mixed json) { | |
| 3498 | + Mutable retval = Mutable(); | |
| 3499 | + | |
| 3500 | + return retval; | |
| 3501 | +} | |
| 3502 | + | |
| 3503 | +typedef float|Mutating UnionMutating; | |
| 3504 | + | |
| 3505 | +UnionMutating UnionMutating_from_JSON(mixed json) { | |
| 3506 | + return json; | |
| 3507 | +} | |
| 3508 | + | |
| 3509 | +class Mutating { | |
| 3510 | + | |
| 3511 | + string encode_json() { | |
| 3512 | + mapping(string:mixed) json = ([ | |
| 3513 | + ]); | |
| 3514 | + | |
| 3515 | + return Standards.JSON.encode(json); | |
| 3516 | + } | |
| 3517 | +} | |
| 3518 | + | |
| 3519 | +Mutating Mutating_from_JSON(mixed json) { | |
| 3520 | + Mutating retval = Mutating(); | |
| 3521 | + | |
| 3522 | + return retval; | |
| 3523 | +} | |
| 3524 | + | |
| 3525 | +typedef float|Namespace UnionNamespace; | |
| 3526 | + | |
| 3527 | +UnionNamespace UnionNamespace_from_JSON(mixed json) { | |
| 3528 | + return json; | |
| 3529 | +} | |
| 3530 | + | |
| 3531 | +class Namespace { | |
| 3532 | + | |
| 3533 | + string encode_json() { | |
| 3534 | + mapping(string:mixed) json = ([ | |
| 3535 | + ]); | |
| 3536 | + | |
| 3537 | + return Standards.JSON.encode(json); | |
| 3538 | + } | |
| 3539 | +} | |
| 3540 | + | |
| 3541 | +Namespace Namespace_from_JSON(mixed json) { | |
| 3542 | + Namespace retval = Namespace(); | |
| 3543 | + | |
| 3544 | + return retval; | |
| 3545 | +} | |
| 3546 | + | |
| 3547 | +typedef float|Native UnionNative; | |
| 3548 | + | |
| 3549 | +UnionNative UnionNative_from_JSON(mixed json) { | |
| 3550 | + return json; | |
| 3551 | +} | |
| 3552 | + | |
| 3553 | +class Native { | |
| 3554 | + | |
| 3555 | + string encode_json() { | |
| 3556 | + mapping(string:mixed) json = ([ | |
| 3557 | + ]); | |
| 3558 | + | |
| 3559 | + return Standards.JSON.encode(json); | |
| 3560 | + } | |
| 3561 | +} | |
| 3562 | + | |
| 3563 | +Native Native_from_JSON(mixed json) { | |
| 3564 | + Native retval = Native(); | |
| 3565 | + | |
| 3566 | + return retval; | |
| 3567 | +} | |
| 3568 | + | |
| 3569 | +typedef float|New UnionNew; | |
| 3570 | + | |
| 3571 | +UnionNew UnionNew_from_JSON(mixed json) { | |
| 3572 | + return json; | |
| 3573 | +} | |
| 3574 | + | |
| 3575 | +class New { | |
| 3576 | + | |
| 3577 | + string encode_json() { | |
| 3578 | + mapping(string:mixed) json = ([ | |
| 3579 | + ]); | |
| 3580 | + | |
| 3581 | + return Standards.JSON.encode(json); | |
| 3582 | + } | |
| 3583 | +} | |
| 3584 | + | |
| 3585 | +New New_from_JSON(mixed json) { | |
| 3586 | + New retval = New(); | |
| 3587 | + | |
| 3588 | + return retval; | |
| 3589 | +} | |
| 3590 | + | |
| 3591 | +typedef float|Newtonsoft UnionNewtonsoft; | |
| 3592 | + | |
| 3593 | +UnionNewtonsoft UnionNewtonsoft_from_JSON(mixed json) { | |
| 3594 | + return json; | |
| 3595 | +} | |
| 3596 | + | |
| 3597 | +class Newtonsoft { | |
| 3598 | + | |
| 3599 | + string encode_json() { | |
| 3600 | + mapping(string:mixed) json = ([ | |
| 3601 | + ]); | |
| 3602 | + | |
| 3603 | + return Standards.JSON.encode(json); | |
| 3604 | + } | |
| 3605 | +} | |
| 3606 | + | |
| 3607 | +Newtonsoft Newtonsoft_from_JSON(mixed json) { | |
| 3608 | + Newtonsoft retval = Newtonsoft(); | |
| 3609 | + | |
| 3610 | + return retval; | |
| 3611 | +} | |
| 3612 | + | |
| 3613 | +typedef float|Nil UnionNil; | |
| 3614 | + | |
| 3615 | +UnionNil UnionNil_from_JSON(mixed json) { | |
| 3616 | + return json; | |
| 3617 | +} | |
| 3618 | + | |
| 3619 | +class Nil { | |
| 3620 | + | |
| 3621 | + string encode_json() { | |
| 3622 | + mapping(string:mixed) json = ([ | |
| 3623 | + ]); | |
| 3624 | + | |
| 3625 | + return Standards.JSON.encode(json); | |
| 3626 | + } | |
| 3627 | +} | |
| 3628 | + | |
| 3629 | +Nil Nil_from_JSON(mixed json) { | |
| 3630 | + Nil retval = Nil(); | |
| 3631 | + | |
| 3632 | + return retval; | |
| 3633 | +} | |
| 3634 | + | |
| 3635 | +typedef float|No UnionNo; | |
| 3636 | + | |
| 3637 | +UnionNo UnionNo_from_JSON(mixed json) { | |
| 3638 | + return json; | |
| 3639 | +} | |
| 3640 | + | |
| 3641 | +class No { | |
| 3642 | + | |
| 3643 | + string encode_json() { | |
| 3644 | + mapping(string:mixed) json = ([ | |
| 3645 | + ]); | |
| 3646 | + | |
| 3647 | + return Standards.JSON.encode(json); | |
| 3648 | + } | |
| 3649 | +} | |
| 3650 | + | |
| 3651 | +No No_from_JSON(mixed json) { | |
| 3652 | + No retval = No(); | |
| 3653 | + | |
| 3654 | + return retval; | |
| 3655 | +} | |
| 3656 | + | |
| 3657 | +typedef float|Noexcept UnionNoexcept; | |
| 3658 | + | |
| 3659 | +UnionNoexcept UnionNoexcept_from_JSON(mixed json) { | |
| 3660 | + return json; | |
| 3661 | +} | |
| 3662 | + | |
| 3663 | +class Noexcept { | |
| 3664 | + | |
| 3665 | + string encode_json() { | |
| 3666 | + mapping(string:mixed) json = ([ | |
| 3667 | + ]); | |
| 3668 | + | |
| 3669 | + return Standards.JSON.encode(json); | |
| 3670 | + } | |
| 3671 | +} | |
| 3672 | + | |
| 3673 | +Noexcept Noexcept_from_JSON(mixed json) { | |
| 3674 | + Noexcept retval = Noexcept(); | |
| 3675 | + | |
| 3676 | + return retval; | |
| 3677 | +} | |
| 3678 | + | |
| 3679 | +typedef float|Nonatomic UnionNonatomic; | |
| 3680 | + | |
| 3681 | +UnionNonatomic UnionNonatomic_from_JSON(mixed json) { | |
| 3682 | + return json; | |
| 3683 | +} | |
| 3684 | + | |
| 3685 | +class Nonatomic { | |
| 3686 | + | |
| 3687 | + string encode_json() { | |
| 3688 | + mapping(string:mixed) json = ([ | |
| 3689 | + ]); | |
| 3690 | + | |
| 3691 | + return Standards.JSON.encode(json); | |
| 3692 | + } | |
| 3693 | +} | |
| 3694 | + | |
| 3695 | +Nonatomic Nonatomic_from_JSON(mixed json) { | |
| 3696 | + Nonatomic retval = Nonatomic(); | |
| 3697 | + | |
| 3698 | + return retval; | |
| 3699 | +} | |
| 3700 | + | |
| 3701 | +typedef float|None UnionNone; | |
| 3702 | + | |
| 3703 | +UnionNone UnionNone_from_JSON(mixed json) { | |
| 3704 | + return json; | |
| 3705 | +} | |
| 3706 | + | |
| 3707 | +class None { | |
| 3708 | + | |
| 3709 | + string encode_json() { | |
| 3710 | + mapping(string:mixed) json = ([ | |
| 3711 | + ]); | |
| 3712 | + | |
| 3713 | + return Standards.JSON.encode(json); | |
| 3714 | + } | |
| 3715 | +} | |
| 3716 | + | |
| 3717 | +None None_from_JSON(mixed json) { | |
| 3718 | + None retval = None(); | |
| 3719 | + | |
| 3720 | + return retval; | |
| 3721 | +} | |
| 3722 | + | |
| 3723 | +typedef float|Nonlocal UnionNonlocal; | |
| 3724 | + | |
| 3725 | +UnionNonlocal UnionNonlocal_from_JSON(mixed json) { | |
| 3726 | + return json; | |
| 3727 | +} | |
| 3728 | + | |
| 3729 | +class Nonlocal { | |
| 3730 | + | |
| 3731 | + string encode_json() { | |
| 3732 | + mapping(string:mixed) json = ([ | |
| 3733 | + ]); | |
| 3734 | + | |
| 3735 | + return Standards.JSON.encode(json); | |
| 3736 | + } | |
| 3737 | +} | |
| 3738 | + | |
| 3739 | +Nonlocal Nonlocal_from_JSON(mixed json) { | |
| 3740 | + Nonlocal retval = Nonlocal(); | |
| 3741 | + | |
| 3742 | + return retval; | |
| 3743 | +} | |
| 3744 | + | |
| 3745 | +typedef float|Nonmutating UnionNonmutating; | |
| 3746 | + | |
| 3747 | +UnionNonmutating UnionNonmutating_from_JSON(mixed json) { | |
| 3748 | + return json; | |
| 3749 | +} | |
| 3750 | + | |
| 3751 | +class Nonmutating { | |
| 3752 | + | |
| 3753 | + string encode_json() { | |
| 3754 | + mapping(string:mixed) json = ([ | |
| 3755 | + ]); | |
| 3756 | + | |
| 3757 | + return Standards.JSON.encode(json); | |
| 3758 | + } | |
| 3759 | +} | |
| 3760 | + | |
| 3761 | +Nonmutating Nonmutating_from_JSON(mixed json) { | |
| 3762 | + Nonmutating retval = Nonmutating(); | |
| 3763 | + | |
| 3764 | + return retval; | |
| 3765 | +} | |
| 3766 | + | |
| 3767 | +typedef float|Not UnionNot; | |
| 3768 | + | |
| 3769 | +UnionNot UnionNot_from_JSON(mixed json) { | |
| 3770 | + return json; | |
| 3771 | +} | |
| 3772 | + | |
| 3773 | +class Not { | |
| 3774 | + | |
| 3775 | + string encode_json() { | |
| 3776 | + mapping(string:mixed) json = ([ | |
| 3777 | + ]); | |
| 3778 | + | |
| 3779 | + return Standards.JSON.encode(json); | |
| 3780 | + } | |
| 3781 | +} | |
| 3782 | + | |
| 3783 | +Not Not_from_JSON(mixed json) { | |
| 3784 | + Not retval = Not(); | |
| 3785 | + | |
| 3786 | + return retval; | |
| 3787 | +} | |
| 3788 | + | |
| 3789 | +typedef float|NotEq UnionNotEq; | |
| 3790 | + | |
| 3791 | +UnionNotEq UnionNotEq_from_JSON(mixed json) { | |
| 3792 | + return json; | |
| 3793 | +} | |
| 3794 | + | |
| 3795 | +class NotEq { | |
| 3796 | + | |
| 3797 | + string encode_json() { | |
| 3798 | + mapping(string:mixed) json = ([ | |
| 3799 | + ]); | |
| 3800 | + | |
| 3801 | + return Standards.JSON.encode(json); | |
| 3802 | + } | |
| 3803 | +} | |
| 3804 | + | |
| 3805 | +NotEq NotEq_from_JSON(mixed json) { | |
| 3806 | + NotEq retval = NotEq(); | |
| 3807 | + | |
| 3808 | + return retval; | |
| 3809 | +} | |
| 3810 | + | |
| 3811 | +typedef float|NsString UnionNsString; | |
| 3812 | + | |
| 3813 | +UnionNsString UnionNsString_from_JSON(mixed json) { | |
| 3814 | + return json; | |
| 3815 | +} | |
| 3816 | + | |
| 3817 | +class NsString { | |
| 3818 | + | |
| 3819 | + string encode_json() { | |
| 3820 | + mapping(string:mixed) json = ([ | |
| 3821 | + ]); | |
| 3822 | + | |
| 3823 | + return Standards.JSON.encode(json); | |
| 3824 | + } | |
| 3825 | +} | |
| 3826 | + | |
| 3827 | +NsString NsString_from_JSON(mixed json) { | |
| 3828 | + NsString retval = NsString(); | |
| 3829 | + | |
| 3830 | + return retval; | |
| 3831 | +} | |
| 3832 | + | |
| 3833 | +typedef float|Null UnionNull; | |
| 3834 | + | |
| 3835 | +UnionNull UnionNull_from_JSON(mixed json) { | |
| 3836 | + return json; | |
| 3837 | +} | |
| 3838 | + | |
| 3839 | +class Null { | |
| 3840 | + | |
| 3841 | + string encode_json() { | |
| 3842 | + mapping(string:mixed) json = ([ | |
| 3843 | + ]); | |
| 3844 | + | |
| 3845 | + return Standards.JSON.encode(json); | |
| 3846 | + } | |
| 3847 | +} | |
| 3848 | + | |
| 3849 | +Null Null_from_JSON(mixed json) { | |
| 3850 | + Null retval = Null(); | |
| 3851 | + | |
| 3852 | + return retval; | |
| 3853 | +} | |
| 3854 | + | |
| 3855 | +typedef float|Nullptr UnionNullptr; | |
| 3856 | + | |
| 3857 | +UnionNullptr UnionNullptr_from_JSON(mixed json) { | |
| 3858 | + return json; | |
| 3859 | +} | |
| 3860 | + | |
| 3861 | +class Nullptr { | |
| 3862 | + | |
| 3863 | + string encode_json() { | |
| 3864 | + mapping(string:mixed) json = ([ | |
| 3865 | + ]); | |
| 3866 | + | |
| 3867 | + return Standards.JSON.encode(json); | |
| 3868 | + } | |
| 3869 | +} | |
| 3870 | + | |
| 3871 | +Nullptr Nullptr_from_JSON(mixed json) { | |
| 3872 | + Nullptr retval = Nullptr(); | |
| 3873 | + | |
| 3874 | + return retval; | |
| 3875 | +} | |
| 3876 | + | |
| 3877 | +typedef float|Number UnionNumber; | |
| 3878 | + | |
| 3879 | +UnionNumber UnionNumber_from_JSON(mixed json) { | |
| 3880 | + return json; | |
| 3881 | +} | |
| 3882 | + | |
| 3883 | +class Number { | |
| 3884 | + | |
| 3885 | + string encode_json() { | |
| 3886 | + mapping(string:mixed) json = ([ | |
| 3887 | + ]); | |
| 3888 | + | |
| 3889 | + return Standards.JSON.encode(json); | |
| 3890 | + } | |
| 3891 | +} | |
| 3892 | + | |
| 3893 | +Number Number_from_JSON(mixed json) { | |
| 3894 | + Number retval = Number(); | |
| 3895 | + | |
| 3896 | + return retval; | |
| 3897 | +} | |
| 3898 | + | |
| 3899 | +typedef float|Of UnionOf; | |
| 3900 | + | |
| 3901 | +UnionOf UnionOf_from_JSON(mixed json) { | |
| 3902 | + return json; | |
| 3903 | +} | |
| 3904 | + | |
| 3905 | +class Of { | |
| 3906 | + | |
| 3907 | + string encode_json() { | |
| 3908 | + mapping(string:mixed) json = ([ | |
| 3909 | + ]); | |
| 3910 | + | |
| 3911 | + return Standards.JSON.encode(json); | |
| 3912 | + } | |
| 3913 | +} | |
| 3914 | + | |
| 3915 | +Of Of_from_JSON(mixed json) { | |
| 3916 | + Of retval = Of(); | |
| 3917 | + | |
| 3918 | + return retval; | |
| 3919 | +} | |
| 3920 | + | |
| 3921 | +typedef float|Oneway UnionOneway; | |
| 3922 | + | |
| 3923 | +UnionOneway UnionOneway_from_JSON(mixed json) { | |
| 3924 | + return json; | |
| 3925 | +} | |
| 3926 | + | |
| 3927 | +class Oneway { | |
| 3928 | + | |
| 3929 | + string encode_json() { | |
| 3930 | + mapping(string:mixed) json = ([ | |
| 3931 | + ]); | |
| 3932 | + | |
| 3933 | + return Standards.JSON.encode(json); | |
| 3934 | + } | |
| 3935 | +} | |
| 3936 | + | |
| 3937 | +Oneway Oneway_from_JSON(mixed json) { | |
| 3938 | + Oneway retval = Oneway(); | |
| 3939 | + | |
| 3940 | + return retval; | |
| 3941 | +} | |
| 3942 | + | |
| 3943 | +typedef float|Open UnionOpen; | |
| 3944 | + | |
| 3945 | +UnionOpen UnionOpen_from_JSON(mixed json) { | |
| 3946 | + return json; | |
| 3947 | +} | |
| 3948 | + | |
| 3949 | +class Open { | |
| 3950 | + | |
| 3951 | + string encode_json() { | |
| 3952 | + mapping(string:mixed) json = ([ | |
| 3953 | + ]); | |
| 3954 | + | |
| 3955 | + return Standards.JSON.encode(json); | |
| 3956 | + } | |
| 3957 | +} | |
| 3958 | + | |
| 3959 | +Open Open_from_JSON(mixed json) { | |
| 3960 | + Open retval = Open(); | |
| 3961 | + | |
| 3962 | + return retval; | |
| 3963 | +} | |
| 3964 | + | |
| 3965 | +typedef float|Operator UnionOperator; | |
| 3966 | + | |
| 3967 | +UnionOperator UnionOperator_from_JSON(mixed json) { | |
| 3968 | + return json; | |
| 3969 | +} | |
| 3970 | + | |
| 3971 | +class Operator { | |
| 3972 | + | |
| 3973 | + string encode_json() { | |
| 3974 | + mapping(string:mixed) json = ([ | |
| 3975 | + ]); | |
| 3976 | + | |
| 3977 | + return Standards.JSON.encode(json); | |
| 3978 | + } | |
| 3979 | +} | |
| 3980 | + | |
| 3981 | +Operator Operator_from_JSON(mixed json) { | |
| 3982 | + Operator retval = Operator(); | |
| 3983 | + | |
| 3984 | + return retval; | |
| 3985 | +} | |
| 3986 | + | |
| 3987 | +typedef float|Or UnionOr; | |
| 3988 | + | |
| 3989 | +UnionOr UnionOr_from_JSON(mixed json) { | |
| 3990 | + return json; | |
| 3991 | +} | |
| 3992 | + | |
| 3993 | +class Or { | |
| 3994 | + | |
| 3995 | + string encode_json() { | |
| 3996 | + mapping(string:mixed) json = ([ | |
| 3997 | + ]); | |
| 3998 | + | |
| 3999 | + return Standards.JSON.encode(json); | |
| 4000 | + } | |
| 4001 | +} | |
| 4002 | + | |
| 4003 | +Or Or_from_JSON(mixed json) { | |
| 4004 | + Or retval = Or(); | |
| 4005 | + | |
| 4006 | + return retval; | |
| 4007 | +} | |
| 4008 | + | |
| 4009 | +typedef float|OrEq UnionOrEq; | |
| 4010 | + | |
| 4011 | +UnionOrEq UnionOrEq_from_JSON(mixed json) { | |
| 4012 | + return json; | |
| 4013 | +} | |
| 4014 | + | |
| 4015 | +class OrEq { | |
| 4016 | + | |
| 4017 | + string encode_json() { | |
| 4018 | + mapping(string:mixed) json = ([ | |
| 4019 | + ]); | |
| 4020 | + | |
| 4021 | + return Standards.JSON.encode(json); | |
| 4022 | + } | |
| 4023 | +} | |
| 4024 | + | |
| 4025 | +OrEq OrEq_from_JSON(mixed json) { | |
| 4026 | + OrEq retval = OrEq(); | |
| 4027 | + | |
| 4028 | + return retval; | |
| 4029 | +} | |
| 4030 | + | |
| 4031 | +typedef float|Out UnionOut; | |
| 4032 | + | |
| 4033 | +UnionOut UnionOut_from_JSON(mixed json) { | |
| 4034 | + return json; | |
| 4035 | +} | |
| 4036 | + | |
| 4037 | +class Out { | |
| 4038 | + | |
| 4039 | + string encode_json() { | |
| 4040 | + mapping(string:mixed) json = ([ | |
| 4041 | + ]); | |
| 4042 | + | |
| 4043 | + return Standards.JSON.encode(json); | |
| 4044 | + } | |
| 4045 | +} | |
| 4046 | + | |
| 4047 | +Out Out_from_JSON(mixed json) { | |
| 4048 | + Out retval = Out(); | |
| 4049 | + | |
| 4050 | + return retval; | |
| 4051 | +} | |
| 4052 | + | |
| 4053 | +typedef float|Override UnionOverride; | |
| 4054 | + | |
| 4055 | +UnionOverride UnionOverride_from_JSON(mixed json) { | |
| 4056 | + return json; | |
| 4057 | +} | |
| 4058 | + | |
| 4059 | +class Override { | |
| 4060 | + | |
| 4061 | + string encode_json() { | |
| 4062 | + mapping(string:mixed) json = ([ | |
| 4063 | + ]); | |
| 4064 | + | |
| 4065 | + return Standards.JSON.encode(json); | |
| 4066 | + } | |
| 4067 | +} | |
| 4068 | + | |
| 4069 | +Override Override_from_JSON(mixed json) { | |
| 4070 | + Override retval = Override(); | |
| 4071 | + | |
| 4072 | + return retval; | |
| 4073 | +} | |
| 4074 | + | |
| 4075 | +typedef float|Package UnionPackage; | |
| 4076 | + | |
| 4077 | +UnionPackage UnionPackage_from_JSON(mixed json) { | |
| 4078 | + return json; | |
| 4079 | +} | |
| 4080 | + | |
| 4081 | +class Package { | |
| 4082 | + | |
| 4083 | + string encode_json() { | |
| 4084 | + mapping(string:mixed) json = ([ | |
| 4085 | + ]); | |
| 4086 | + | |
| 4087 | + return Standards.JSON.encode(json); | |
| 4088 | + } | |
| 4089 | +} | |
| 4090 | + | |
| 4091 | +Package Package_from_JSON(mixed json) { | |
| 4092 | + Package retval = Package(); | |
| 4093 | + | |
| 4094 | + return retval; | |
| 4095 | +} | |
| 4096 | + | |
| 4097 | +typedef float|Params UnionParams; | |
| 4098 | + | |
| 4099 | +UnionParams UnionParams_from_JSON(mixed json) { | |
| 4100 | + return json; | |
| 4101 | +} | |
| 4102 | + | |
| 4103 | +class Params { | |
| 4104 | + | |
| 4105 | + string encode_json() { | |
| 4106 | + mapping(string:mixed) json = ([ | |
| 4107 | + ]); | |
| 4108 | + | |
| 4109 | + return Standards.JSON.encode(json); | |
| 4110 | + } | |
| 4111 | +} | |
| 4112 | + | |
| 4113 | +Params Params_from_JSON(mixed json) { | |
| 4114 | + Params retval = Params(); | |
| 4115 | + | |
| 4116 | + return retval; | |
| 4117 | +} | |
| 4118 | + | |
| 4119 | +typedef float|Pass UnionPass; | |
| 4120 | + | |
| 4121 | +UnionPass UnionPass_from_JSON(mixed json) { | |
| 4122 | + return json; | |
| 4123 | +} | |
| 4124 | + | |
| 4125 | +class Pass { | |
| 4126 | + | |
| 4127 | + string encode_json() { | |
| 4128 | + mapping(string:mixed) json = ([ | |
| 4129 | + ]); | |
| 4130 | + | |
| 4131 | + return Standards.JSON.encode(json); | |
| 4132 | + } | |
| 4133 | +} | |
| 4134 | + | |
| 4135 | +Pass Pass_from_JSON(mixed json) { | |
| 4136 | + Pass retval = Pass(); | |
| 4137 | + | |
| 4138 | + return retval; | |
| 4139 | +} | |
| 4140 | + | |
| 4141 | +typedef float|Port UnionPort; | |
| 4142 | + | |
| 4143 | +UnionPort UnionPort_from_JSON(mixed json) { | |
| 4144 | + return json; | |
| 4145 | +} | |
| 4146 | + | |
| 4147 | +class Port { | |
| 4148 | + | |
| 4149 | + string encode_json() { | |
| 4150 | + mapping(string:mixed) json = ([ | |
| 4151 | + ]); | |
| 4152 | + | |
| 4153 | + return Standards.JSON.encode(json); | |
| 4154 | + } | |
| 4155 | +} | |
| 4156 | + | |
| 4157 | +Port Port_from_JSON(mixed json) { | |
| 4158 | + Port retval = Port(); | |
| 4159 | + | |
| 4160 | + return retval; | |
| 4161 | +} | |
| 4162 | + | |
| 4163 | +typedef float|Postfix UnionPostfix; | |
| 4164 | + | |
| 4165 | +UnionPostfix UnionPostfix_from_JSON(mixed json) { | |
| 4166 | + return json; | |
| 4167 | +} | |
| 4168 | + | |
| 4169 | +class Postfix { | |
| 4170 | + | |
| 4171 | + string encode_json() { | |
| 4172 | + mapping(string:mixed) json = ([ | |
| 4173 | + ]); | |
| 4174 | + | |
| 4175 | + return Standards.JSON.encode(json); | |
| 4176 | + } | |
| 4177 | +} | |
| 4178 | + | |
| 4179 | +Postfix Postfix_from_JSON(mixed json) { | |
| 4180 | + Postfix retval = Postfix(); | |
| 4181 | + | |
| 4182 | + return retval; | |
| 4183 | +} | |
| 4184 | + | |
| 4185 | +typedef float|Precedence UnionPrecedence; | |
| 4186 | + | |
| 4187 | +UnionPrecedence UnionPrecedence_from_JSON(mixed json) { | |
| 4188 | + return json; | |
| 4189 | +} | |
| 4190 | + | |
| 4191 | +class Precedence { | |
| 4192 | + | |
| 4193 | + string encode_json() { | |
| 4194 | + mapping(string:mixed) json = ([ | |
| 4195 | + ]); | |
| 4196 | + | |
| 4197 | + return Standards.JSON.encode(json); | |
| 4198 | + } | |
| 4199 | +} | |
| 4200 | + | |
| 4201 | +Precedence Precedence_from_JSON(mixed json) { | |
| 4202 | + Precedence retval = Precedence(); | |
| 4203 | + | |
| 4204 | + return retval; | |
| 4205 | +} | |
| 4206 | + | |
| 4207 | +typedef float|Prefix UnionPrefix; | |
| 4208 | + | |
| 4209 | +UnionPrefix UnionPrefix_from_JSON(mixed json) { | |
| 4210 | + return json; | |
| 4211 | +} | |
| 4212 | + | |
| 4213 | +class Prefix { | |
| 4214 | + | |
| 4215 | + string encode_json() { | |
| 4216 | + mapping(string:mixed) json = ([ | |
| 4217 | + ]); | |
| 4218 | + | |
| 4219 | + return Standards.JSON.encode(json); | |
| 4220 | + } | |
| 4221 | +} | |
| 4222 | + | |
| 4223 | +Prefix Prefix_from_JSON(mixed json) { | |
| 4224 | + Prefix retval = Prefix(); | |
| 4225 | + | |
| 4226 | + return retval; | |
| 4227 | +} | |
| 4228 | + | |
| 4229 | +typedef float|Print UnionPrint; | |
| 4230 | + | |
| 4231 | +UnionPrint UnionPrint_from_JSON(mixed json) { | |
| 4232 | + return json; | |
| 4233 | +} | |
| 4234 | + | |
| 4235 | +class Print { | |
| 4236 | + | |
| 4237 | + string encode_json() { | |
| 4238 | + mapping(string:mixed) json = ([ | |
| 4239 | + ]); | |
| 4240 | + | |
| 4241 | + return Standards.JSON.encode(json); | |
| 4242 | + } | |
| 4243 | +} | |
| 4244 | + | |
| 4245 | +Print Print_from_JSON(mixed json) { | |
| 4246 | + Print retval = Print(); | |
| 4247 | + | |
| 4248 | + return retval; | |
| 4249 | +} | |
| 4250 | + | |
| 4251 | +typedef float|Printf UnionPrintf; | |
| 4252 | + | |
| 4253 | +UnionPrintf UnionPrintf_from_JSON(mixed json) { | |
| 4254 | + return json; | |
| 4255 | +} | |
| 4256 | + | |
| 4257 | +class Printf { | |
| 4258 | + | |
| 4259 | + string encode_json() { | |
| 4260 | + mapping(string:mixed) json = ([ | |
| 4261 | + ]); | |
| 4262 | + | |
| 4263 | + return Standards.JSON.encode(json); | |
| 4264 | + } | |
| 4265 | +} | |
| 4266 | + | |
| 4267 | +Printf Printf_from_JSON(mixed json) { | |
| 4268 | + Printf retval = Printf(); | |
| 4269 | + | |
| 4270 | + return retval; | |
| 4271 | +} | |
| 4272 | + | |
| 4273 | +typedef float|Protocol UnionProtocol; | |
| 4274 | + | |
| 4275 | +UnionProtocol UnionProtocol_from_JSON(mixed json) { | |
| 4276 | + return json; | |
| 4277 | +} | |
| 4278 | + | |
| 4279 | +class Protocol { | |
| 4280 | + | |
| 4281 | + string encode_json() { | |
| 4282 | + mapping(string:mixed) json = ([ | |
| 4283 | + ]); | |
| 4284 | + | |
| 4285 | + return Standards.JSON.encode(json); | |
| 4286 | + } | |
| 4287 | +} | |
| 4288 | + | |
| 4289 | +Protocol Protocol_from_JSON(mixed json) { | |
| 4290 | + Protocol retval = Protocol(); | |
| 4291 | + | |
| 4292 | + return retval; | |
| 4293 | +} | |
| 4294 | + | |
| 4295 | +typedef float|UnionBoolBool TopLevelUnionBool; | |
| 4296 | + | |
| 4297 | +TopLevelUnionBool TopLevelUnionBool_from_JSON(mixed json) { | |
| 4298 | + return json; | |
| 4299 | +} | |
| 4300 | + | |
| 4301 | +class UnionBoolBool { | |
| 4302 | + | |
| 4303 | + string encode_json() { | |
| 4304 | + mapping(string:mixed) json = ([ | |
| 4305 | + ]); | |
| 4306 | + | |
| 4307 | + return Standards.JSON.encode(json); | |
| 4308 | + } | |
| 4309 | +} | |
| 4310 | + | |
| 4311 | +UnionBoolBool UnionBoolBool_from_JSON(mixed json) { | |
| 4312 | + UnionBoolBool retval = UnionBoolBool(); | |
| 4313 | + | |
| 4314 | + return retval; | |
| 4315 | +} | |
| 4316 | + | |
| 4317 | +typedef ClassClass|float UnionClassUnion; | |
| 4318 | + | |
| 4319 | +UnionClassUnion UnionClassUnion_from_JSON(mixed json) { | |
| 4320 | + return json; | |
| 4321 | +} | |
| 4322 | + | |
| 4323 | +class ClassClass { | |
| 4324 | + | |
| 4325 | + string encode_json() { | |
| 4326 | + mapping(string:mixed) json = ([ | |
| 4327 | + ]); | |
| 4328 | + | |
| 4329 | + return Standards.JSON.encode(json); | |
| 4330 | + } | |
| 4331 | +} | |
| 4332 | + | |
| 4333 | +ClassClass ClassClass_from_JSON(mixed json) { | |
| 4334 | + ClassClass retval = ClassClass(); | |
| 4335 | + | |
| 4336 | + return retval; | |
| 4337 | +} | |
| 4338 | + | |
| 4339 | +typedef float|Quicktype UnionQuicktype; | |
| 4340 | + | |
| 4341 | +UnionQuicktype UnionQuicktype_from_JSON(mixed json) { | |
| 4342 | + return json; | |
| 4343 | +} | |
| 4344 | + | |
| 4345 | +class Quicktype { | |
| 4346 | + | |
| 4347 | + string encode_json() { | |
| 4348 | + mapping(string:mixed) json = ([ | |
| 4349 | + ]); | |
| 4350 | + | |
| 4351 | + return Standards.JSON.encode(json); | |
| 4352 | + } | |
| 4353 | +} | |
| 4354 | + | |
| 4355 | +Quicktype Quicktype_from_JSON(mixed json) { | |
| 4356 | + Quicktype retval = Quicktype(); | |
| 4357 | + | |
| 4358 | + return retval; | |
| 4359 | +} | |
| 4360 | + | |
| 4361 | +typedef float|Raise UnionRaise; | |
| 4362 | + | |
| 4363 | +UnionRaise UnionRaise_from_JSON(mixed json) { | |
| 4364 | + return json; | |
| 4365 | +} | |
| 4366 | + | |
| 4367 | +class Raise { | |
| 4368 | + | |
| 4369 | + string encode_json() { | |
| 4370 | + mapping(string:mixed) json = ([ | |
| 4371 | + ]); | |
| 4372 | + | |
| 4373 | + return Standards.JSON.encode(json); | |
| 4374 | + } | |
| 4375 | +} | |
| 4376 | + | |
| 4377 | +Raise Raise_from_JSON(mixed json) { | |
| 4378 | + Raise retval = Raise(); | |
| 4379 | + | |
| 4380 | + return retval; | |
| 4381 | +} | |
| 4382 | + | |
| 4383 | +typedef float|Range UnionRange; | |
| 4384 | + | |
| 4385 | +UnionRange UnionRange_from_JSON(mixed json) { | |
| 4386 | + return json; | |
| 4387 | +} | |
| 4388 | + | |
| 4389 | +class Range { | |
| 4390 | + | |
| 4391 | + string encode_json() { | |
| 4392 | + mapping(string:mixed) json = ([ | |
| 4393 | + ]); | |
| 4394 | + | |
| 4395 | + return Standards.JSON.encode(json); | |
| 4396 | + } | |
| 4397 | +} | |
| 4398 | + | |
| 4399 | +Range Range_from_JSON(mixed json) { | |
| 4400 | + Range retval = Range(); | |
| 4401 | + | |
| 4402 | + return retval; | |
| 4403 | +} | |
| 4404 | + | |
| 4405 | +typedef float|Readonly UnionReadonly; | |
| 4406 | + | |
| 4407 | +UnionReadonly UnionReadonly_from_JSON(mixed json) { | |
| 4408 | + return json; | |
| 4409 | +} | |
| 4410 | + | |
| 4411 | +class Readonly { | |
| 4412 | + | |
| 4413 | + string encode_json() { | |
| 4414 | + mapping(string:mixed) json = ([ | |
| 4415 | + ]); | |
| 4416 | + | |
| 4417 | + return Standards.JSON.encode(json); | |
| 4418 | + } | |
| 4419 | +} | |
| 4420 | + | |
| 4421 | +Readonly Readonly_from_JSON(mixed json) { | |
| 4422 | + Readonly retval = Readonly(); | |
| 4423 | + | |
| 4424 | + return retval; | |
| 4425 | +} | |
| 4426 | + | |
| 4427 | +typedef float|Ref UnionRef; | |
| 4428 | + | |
| 4429 | +UnionRef UnionRef_from_JSON(mixed json) { | |
| 4430 | + return json; | |
| 4431 | +} | |
| 4432 | + | |
| 4433 | +class Ref { | |
| 4434 | + | |
| 4435 | + string encode_json() { | |
| 4436 | + mapping(string:mixed) json = ([ | |
| 4437 | + ]); | |
| 4438 | + | |
| 4439 | + return Standards.JSON.encode(json); | |
| 4440 | + } | |
| 4441 | +} | |
| 4442 | + | |
| 4443 | +Ref Ref_from_JSON(mixed json) { | |
| 4444 | + Ref retval = Ref(); | |
| 4445 | + | |
| 4446 | + return retval; | |
| 4447 | +} | |
| 4448 | + | |
| 4449 | +typedef float|Register UnionRegister; | |
| 4450 | + | |
| 4451 | +UnionRegister UnionRegister_from_JSON(mixed json) { | |
| 4452 | + return json; | |
| 4453 | +} | |
| 4454 | + | |
| 4455 | +class Register { | |
| 4456 | + | |
| 4457 | + string encode_json() { | |
| 4458 | + mapping(string:mixed) json = ([ | |
| 4459 | + ]); | |
| 4460 | + | |
| 4461 | + return Standards.JSON.encode(json); | |
| 4462 | + } | |
| 4463 | +} | |
| 4464 | + | |
| 4465 | +Register Register_from_JSON(mixed json) { | |
| 4466 | + Register retval = Register(); | |
| 4467 | + | |
| 4468 | + return retval; | |
| 4469 | +} | |
| 4470 | + | |
| 4471 | +typedef float|ReinterpretCast UnionReinterpretCast; | |
| 4472 | + | |
| 4473 | +UnionReinterpretCast UnionReinterpretCast_from_JSON(mixed json) { | |
| 4474 | + return json; | |
| 4475 | +} | |
| 4476 | + | |
| 4477 | +class ReinterpretCast { | |
| 4478 | + | |
| 4479 | + string encode_json() { | |
| 4480 | + mapping(string:mixed) json = ([ | |
| 4481 | + ]); | |
| 4482 | + | |
| 4483 | + return Standards.JSON.encode(json); | |
| 4484 | + } | |
| 4485 | +} | |
| 4486 | + | |
| 4487 | +ReinterpretCast ReinterpretCast_from_JSON(mixed json) { | |
| 4488 | + ReinterpretCast retval = ReinterpretCast(); | |
| 4489 | + | |
| 4490 | + return retval; | |
| 4491 | +} | |
| 4492 | + | |
| 4493 | +typedef float|Repeat UnionRepeat; | |
| 4494 | + | |
| 4495 | +UnionRepeat UnionRepeat_from_JSON(mixed json) { | |
| 4496 | + return json; | |
| 4497 | +} | |
| 4498 | + | |
| 4499 | +class Repeat { | |
| 4500 | + | |
| 4501 | + string encode_json() { | |
| 4502 | + mapping(string:mixed) json = ([ | |
| 4503 | + ]); | |
| 4504 | + | |
| 4505 | + return Standards.JSON.encode(json); | |
| 4506 | + } | |
| 4507 | +} | |
| 4508 | + | |
| 4509 | +Repeat Repeat_from_JSON(mixed json) { | |
| 4510 | + Repeat retval = Repeat(); | |
| 4511 | + | |
| 4512 | + return retval; | |
| 4513 | +} | |
| 4514 | + | |
| 4515 | +typedef float|Require UnionRequire; | |
| 4516 | + | |
| 4517 | +UnionRequire UnionRequire_from_JSON(mixed json) { | |
| 4518 | + return json; | |
| 4519 | +} | |
| 4520 | + | |
| 4521 | +class Require { | |
| 4522 | + | |
| 4523 | + string encode_json() { | |
| 4524 | + mapping(string:mixed) json = ([ | |
| 4525 | + ]); | |
| 4526 | + | |
| 4527 | + return Standards.JSON.encode(json); | |
| 4528 | + } | |
| 4529 | +} | |
| 4530 | + | |
| 4531 | +Require Require_from_JSON(mixed json) { | |
| 4532 | + Require retval = Require(); | |
| 4533 | + | |
| 4534 | + return retval; | |
| 4535 | +} | |
| 4536 | + | |
| 4537 | +typedef float|Required UnionRequired; | |
| 4538 | + | |
| 4539 | +UnionRequired UnionRequired_from_JSON(mixed json) { | |
| 4540 | + return json; | |
| 4541 | +} | |
| 4542 | + | |
| 4543 | +class Required { | |
| 4544 | + | |
| 4545 | + string encode_json() { | |
| 4546 | + mapping(string:mixed) json = ([ | |
| 4547 | + ]); | |
| 4548 | + | |
| 4549 | + return Standards.JSON.encode(json); | |
| 4550 | + } | |
| 4551 | +} | |
| 4552 | + | |
| 4553 | +Required Required_from_JSON(mixed json) { | |
| 4554 | + Required retval = Required(); | |
| 4555 | + | |
| 4556 | + return retval; | |
| 4557 | +} | |
| 4558 | + | |
| 4559 | +typedef float|Requires UnionRequires; | |
| 4560 | + | |
| 4561 | +UnionRequires UnionRequires_from_JSON(mixed json) { | |
| 4562 | + return json; | |
| 4563 | +} | |
| 4564 | + | |
| 4565 | +class Requires { | |
| 4566 | + | |
| 4567 | + string encode_json() { | |
| 4568 | + mapping(string:mixed) json = ([ | |
| 4569 | + ]); | |
| 4570 | + | |
| 4571 | + return Standards.JSON.encode(json); | |
| 4572 | + } | |
| 4573 | +} | |
| 4574 | + | |
| 4575 | +Requires Requires_from_JSON(mixed json) { | |
| 4576 | + Requires retval = Requires(); | |
| 4577 | + | |
| 4578 | + return retval; | |
| 4579 | +} | |
| 4580 | + | |
| 4581 | +typedef float|Restrict UnionRestrict; | |
| 4582 | + | |
| 4583 | +UnionRestrict UnionRestrict_from_JSON(mixed json) { | |
| 4584 | + return json; | |
| 4585 | +} | |
| 4586 | + | |
| 4587 | +class Restrict { | |
| 4588 | + | |
| 4589 | + string encode_json() { | |
| 4590 | + mapping(string:mixed) json = ([ | |
| 4591 | + ]); | |
| 4592 | + | |
| 4593 | + return Standards.JSON.encode(json); | |
| 4594 | + } | |
| 4595 | +} | |
| 4596 | + | |
| 4597 | +Restrict Restrict_from_JSON(mixed json) { | |
| 4598 | + Restrict retval = Restrict(); | |
| 4599 | + | |
| 4600 | + return retval; | |
| 4601 | +} | |
| 4602 | + | |
| 4603 | +typedef float|Retain UnionRetain; | |
| 4604 | + | |
| 4605 | +UnionRetain UnionRetain_from_JSON(mixed json) { | |
| 4606 | + return json; | |
| 4607 | +} | |
| 4608 | + | |
| 4609 | +class Retain { | |
| 4610 | + | |
| 4611 | + string encode_json() { | |
| 4612 | + mapping(string:mixed) json = ([ | |
| 4613 | + ]); | |
| 4614 | + | |
| 4615 | + return Standards.JSON.encode(json); | |
| 4616 | + } | |
| 4617 | +} | |
| 4618 | + | |
| 4619 | +Retain Retain_from_JSON(mixed json) { | |
| 4620 | + Retain retval = Retain(); | |
| 4621 | + | |
| 4622 | + return retval; | |
| 4623 | +} | |
| 4624 | + | |
| 4625 | +typedef float|Rethrows UnionRethrows; | |
| 4626 | + | |
| 4627 | +UnionRethrows UnionRethrows_from_JSON(mixed json) { | |
| 4628 | + return json; | |
| 4629 | +} | |
| 4630 | + | |
| 4631 | +class Rethrows { | |
| 4632 | + | |
| 4633 | + string encode_json() { | |
| 4634 | + mapping(string:mixed) json = ([ | |
| 4635 | + ]); | |
| 4636 | + | |
| 4637 | + return Standards.JSON.encode(json); | |
| 4638 | + } | |
| 4639 | +} | |
| 4640 | + | |
| 4641 | +Rethrows Rethrows_from_JSON(mixed json) { | |
| 4642 | + Rethrows retval = Rethrows(); | |
| 4643 | + | |
| 4644 | + return retval; | |
| 4645 | +} | |
| 4646 | + | |
| 4647 | +typedef float|Right UnionRight; | |
| 4648 | + | |
| 4649 | +UnionRight UnionRight_from_JSON(mixed json) { | |
| 4650 | + return json; | |
| 4651 | +} | |
| 4652 | + | |
| 4653 | +class Right { | |
| 4654 | + | |
| 4655 | + string encode_json() { | |
| 4656 | + mapping(string:mixed) json = ([ | |
| 4657 | + ]); | |
| 4658 | + | |
| 4659 | + return Standards.JSON.encode(json); | |
| 4660 | + } | |
| 4661 | +} | |
| 4662 | + | |
| 4663 | +Right Right_from_JSON(mixed json) { | |
| 4664 | + Right retval = Right(); | |
| 4665 | + | |
| 4666 | + return retval; | |
| 4667 | +} | |
| 4668 | + | |
| 4669 | +typedef float|Sbyte UnionSbyte; | |
| 4670 | + | |
| 4671 | +UnionSbyte UnionSbyte_from_JSON(mixed json) { | |
| 4672 | + return json; | |
| 4673 | +} | |
| 4674 | + | |
| 4675 | +class Sbyte { | |
| 4676 | + | |
| 4677 | + string encode_json() { | |
| 4678 | + mapping(string:mixed) json = ([ | |
| 4679 | + ]); | |
| 4680 | + | |
| 4681 | + return Standards.JSON.encode(json); | |
| 4682 | + } | |
| 4683 | +} | |
| 4684 | + | |
| 4685 | +Sbyte Sbyte_from_JSON(mixed json) { | |
| 4686 | + Sbyte retval = Sbyte(); | |
| 4687 | + | |
| 4688 | + return retval; | |
| 4689 | +} | |
| 4690 | + | |
| 4691 | +typedef float|Sealed UnionSealed; | |
| 4692 | + | |
| 4693 | +UnionSealed UnionSealed_from_JSON(mixed json) { | |
| 4694 | + return json; | |
| 4695 | +} | |
| 4696 | + | |
| 4697 | +class Sealed { | |
| 4698 | + | |
| 4699 | + string encode_json() { | |
| 4700 | + mapping(string:mixed) json = ([ | |
| 4701 | + ]); | |
| 4702 | + | |
| 4703 | + return Standards.JSON.encode(json); | |
| 4704 | + } | |
| 4705 | +} | |
| 4706 | + | |
| 4707 | +Sealed Sealed_from_JSON(mixed json) { | |
| 4708 | + Sealed retval = Sealed(); | |
| 4709 | + | |
| 4710 | + return retval; | |
| 4711 | +} | |
| 4712 | + | |
| 4713 | +typedef float|Sel UnionSel; | |
| 4714 | + | |
| 4715 | +UnionSel UnionSel_from_JSON(mixed json) { | |
| 4716 | + return json; | |
| 4717 | +} | |
| 4718 | + | |
| 4719 | +class Sel { | |
| 4720 | + | |
| 4721 | + string encode_json() { | |
| 4722 | + mapping(string:mixed) json = ([ | |
| 4723 | + ]); | |
| 4724 | + | |
| 4725 | + return Standards.JSON.encode(json); | |
| 4726 | + } | |
| 4727 | +} | |
| 4728 | + | |
| 4729 | +Sel Sel_from_JSON(mixed json) { | |
| 4730 | + Sel retval = Sel(); | |
| 4731 | + | |
| 4732 | + return retval; | |
| 4733 | +} | |
| 4734 | + | |
| 4735 | +typedef float|Select UnionSelect; | |
| 4736 | + | |
| 4737 | +UnionSelect UnionSelect_from_JSON(mixed json) { | |
| 4738 | + return json; | |
| 4739 | +} | |
| 4740 | + | |
| 4741 | +class Select { | |
| 4742 | + | |
| 4743 | + string encode_json() { | |
| 4744 | + mapping(string:mixed) json = ([ | |
| 4745 | + ]); | |
| 4746 | + | |
| 4747 | + return Standards.JSON.encode(json); | |
| 4748 | + } | |
| 4749 | +} | |
| 4750 | + | |
| 4751 | +Select Select_from_JSON(mixed json) { | |
| 4752 | + Select retval = Select(); | |
| 4753 | + | |
| 4754 | + return retval; | |
| 4755 | +} | |
| 4756 | + | |
| 4757 | +typedef float|Self UnionSelf; | |
| 4758 | + | |
| 4759 | +UnionSelf UnionSelf_from_JSON(mixed json) { | |
| 4760 | + return json; | |
| 4761 | +} | |
| 4762 | + | |
| 4763 | +class Self { | |
| 4764 | + | |
| 4765 | + string encode_json() { | |
| 4766 | + mapping(string:mixed) json = ([ | |
| 4767 | + ]); | |
| 4768 | + | |
| 4769 | + return Standards.JSON.encode(json); | |
| 4770 | + } | |
| 4771 | +} | |
| 4772 | + | |
| 4773 | +Self Self_from_JSON(mixed json) { | |
| 4774 | + Self retval = Self(); | |
| 4775 | + | |
| 4776 | + return retval; | |
| 4777 | +} | |
| 4778 | + | |
| 4779 | +typedef float|Serialize UnionSerialize; | |
| 4780 | + | |
| 4781 | +UnionSerialize UnionSerialize_from_JSON(mixed json) { | |
| 4782 | + return json; | |
| 4783 | +} | |
| 4784 | + | |
| 4785 | +class Serialize { | |
| 4786 | + | |
| 4787 | + string encode_json() { | |
| 4788 | + mapping(string:mixed) json = ([ | |
| 4789 | + ]); | |
| 4790 | + | |
| 4791 | + return Standards.JSON.encode(json); | |
| 4792 | + } | |
| 4793 | +} | |
| 4794 | + | |
| 4795 | +Serialize Serialize_from_JSON(mixed json) { | |
| 4796 | + Serialize retval = Serialize(); | |
| 4797 | + | |
| 4798 | + return retval; | |
| 4799 | +} | |
| 4800 | + | |
| 4801 | +typedef float|Set UnionSet; | |
| 4802 | + | |
| 4803 | +UnionSet UnionSet_from_JSON(mixed json) { | |
| 4804 | + return json; | |
| 4805 | +} | |
| 4806 | + | |
| 4807 | +class Set { | |
| 4808 | + | |
| 4809 | + string encode_json() { | |
| 4810 | + mapping(string:mixed) json = ([ | |
| 4811 | + ]); | |
| 4812 | + | |
| 4813 | + return Standards.JSON.encode(json); | |
| 4814 | + } | |
| 4815 | +} | |
| 4816 | + | |
| 4817 | +Set Set_from_JSON(mixed json) { | |
| 4818 | + Set retval = Set(); | |
| 4819 | + | |
| 4820 | + return retval; | |
| 4821 | +} | |
| 4822 | + | |
| 4823 | +typedef float|Short UnionShort; | |
| 4824 | + | |
| 4825 | +UnionShort UnionShort_from_JSON(mixed json) { | |
| 4826 | + return json; | |
| 4827 | +} | |
| 4828 | + | |
| 4829 | +class Short { | |
| 4830 | + | |
| 4831 | + string encode_json() { | |
| 4832 | + mapping(string:mixed) json = ([ | |
| 4833 | + ]); | |
| 4834 | + | |
| 4835 | + return Standards.JSON.encode(json); | |
| 4836 | + } | |
| 4837 | +} | |
| 4838 | + | |
| 4839 | +Short Short_from_JSON(mixed json) { | |
| 4840 | + Short retval = Short(); | |
| 4841 | + | |
| 4842 | + return retval; | |
| 4843 | +} | |
| 4844 | + | |
| 4845 | +typedef float|Signed UnionSigned; | |
| 4846 | + | |
| 4847 | +UnionSigned UnionSigned_from_JSON(mixed json) { | |
| 4848 | + return json; | |
| 4849 | +} | |
| 4850 | + | |
| 4851 | +class Signed { | |
| 4852 | + | |
| 4853 | + string encode_json() { | |
| 4854 | + mapping(string:mixed) json = ([ | |
| 4855 | + ]); | |
| 4856 | + | |
| 4857 | + return Standards.JSON.encode(json); | |
| 4858 | + } | |
| 4859 | +} | |
| 4860 | + | |
| 4861 | +Signed Signed_from_JSON(mixed json) { | |
| 4862 | + Signed retval = Signed(); | |
| 4863 | + | |
| 4864 | + return retval; | |
| 4865 | +} | |
| 4866 | + | |
| 4867 | +typedef float|Sizeof UnionSizeof; | |
| 4868 | + | |
| 4869 | +UnionSizeof UnionSizeof_from_JSON(mixed json) { | |
| 4870 | + return json; | |
| 4871 | +} | |
| 4872 | + | |
| 4873 | +class Sizeof { | |
| 4874 | + | |
| 4875 | + string encode_json() { | |
| 4876 | + mapping(string:mixed) json = ([ | |
| 4877 | + ]); | |
| 4878 | + | |
| 4879 | + return Standards.JSON.encode(json); | |
| 4880 | + } | |
| 4881 | +} | |
| 4882 | + | |
| 4883 | +Sizeof Sizeof_from_JSON(mixed json) { | |
| 4884 | + Sizeof retval = Sizeof(); | |
| 4885 | + | |
| 4886 | + return retval; | |
| 4887 | +} | |
| 4888 | + | |
| 4889 | +typedef float|Stackalloc UnionStackalloc; | |
| 4890 | + | |
| 4891 | +UnionStackalloc UnionStackalloc_from_JSON(mixed json) { | |
| 4892 | + return json; | |
| 4893 | +} | |
| 4894 | + | |
| 4895 | +class Stackalloc { | |
| 4896 | + | |
| 4897 | + string encode_json() { | |
| 4898 | + mapping(string:mixed) json = ([ | |
| 4899 | + ]); | |
| 4900 | + | |
| 4901 | + return Standards.JSON.encode(json); | |
| 4902 | + } | |
| 4903 | +} | |
| 4904 | + | |
| 4905 | +Stackalloc Stackalloc_from_JSON(mixed json) { | |
| 4906 | + Stackalloc retval = Stackalloc(); | |
| 4907 | + | |
| 4908 | + return retval; | |
| 4909 | +} | |
| 4910 | + | |
| 4911 | +typedef float|StaticAssert UnionStaticAssert; | |
| 4912 | + | |
| 4913 | +UnionStaticAssert UnionStaticAssert_from_JSON(mixed json) { | |
| 4914 | + return json; | |
| 4915 | +} | |
| 4916 | + | |
| 4917 | +class StaticAssert { | |
| 4918 | + | |
| 4919 | + string encode_json() { | |
| 4920 | + mapping(string:mixed) json = ([ | |
| 4921 | + ]); | |
| 4922 | + | |
| 4923 | + return Standards.JSON.encode(json); | |
| 4924 | + } | |
| 4925 | +} | |
| 4926 | + | |
| 4927 | +StaticAssert StaticAssert_from_JSON(mixed json) { | |
| 4928 | + StaticAssert retval = StaticAssert(); | |
| 4929 | + | |
| 4930 | + return retval; | |
| 4931 | +} | |
| 4932 | + | |
| 4933 | +typedef float|StaticCast UnionStaticCast; | |
| 4934 | + | |
| 4935 | +UnionStaticCast UnionStaticCast_from_JSON(mixed json) { | |
| 4936 | + return json; | |
| 4937 | +} | |
| 4938 | + | |
| 4939 | +class StaticCast { | |
| 4940 | + | |
| 4941 | + string encode_json() { | |
| 4942 | + mapping(string:mixed) json = ([ | |
| 4943 | + ]); | |
| 4944 | + | |
| 4945 | + return Standards.JSON.encode(json); | |
| 4946 | + } | |
| 4947 | +} | |
| 4948 | + | |
| 4949 | +StaticCast StaticCast_from_JSON(mixed json) { | |
| 4950 | + StaticCast retval = StaticCast(); | |
| 4951 | + | |
| 4952 | + return retval; | |
| 4953 | +} | |
| 4954 | + | |
| 4955 | +typedef float|Strictfp UnionStrictfp; | |
| 4956 | + | |
| 4957 | +UnionStrictfp UnionStrictfp_from_JSON(mixed json) { | |
| 4958 | + return json; | |
| 4959 | +} | |
| 4960 | + | |
| 4961 | +class Strictfp { | |
| 4962 | + | |
| 4963 | + string encode_json() { | |
| 4964 | + mapping(string:mixed) json = ([ | |
| 4965 | + ]); | |
| 4966 | + | |
| 4967 | + return Standards.JSON.encode(json); | |
| 4968 | + } | |
| 4969 | +} | |
| 4970 | + | |
| 4971 | +Strictfp Strictfp_from_JSON(mixed json) { | |
| 4972 | + Strictfp retval = Strictfp(); | |
| 4973 | + | |
| 4974 | + return retval; | |
| 4975 | +} | |
| 4976 | + | |
| 4977 | +typedef float|Struct UnionStruct; | |
| 4978 | + | |
| 4979 | +UnionStruct UnionStruct_from_JSON(mixed json) { | |
| 4980 | + return json; | |
| 4981 | +} | |
| 4982 | + | |
| 4983 | +class Struct { | |
| 4984 | + | |
| 4985 | + string encode_json() { | |
| 4986 | + mapping(string:mixed) json = ([ | |
| 4987 | + ]); | |
| 4988 | + | |
| 4989 | + return Standards.JSON.encode(json); | |
| 4990 | + } | |
| 4991 | +} | |
| 4992 | + | |
| 4993 | +Struct Struct_from_JSON(mixed json) { | |
| 4994 | + Struct retval = Struct(); | |
| 4995 | + | |
| 4996 | + return retval; | |
| 4997 | +} | |
| 4998 | + | |
| 4999 | +typedef float|Subscript UnionSubscript; | |
| 5000 | + | |
| 5001 | +UnionSubscript UnionSubscript_from_JSON(mixed json) { | |
| 5002 | + return json; | |
| 5003 | +} | |
| 5004 | + | |
| 5005 | +class Subscript { | |
| 5006 | + | |
| 5007 | + string encode_json() { | |
| 5008 | + mapping(string:mixed) json = ([ | |
| 5009 | + ]); | |
| 5010 | + | |
| 5011 | + return Standards.JSON.encode(json); | |
| 5012 | + } | |
| 5013 | +} | |
| 5014 | + | |
| 5015 | +Subscript Subscript_from_JSON(mixed json) { | |
| 5016 | + Subscript retval = Subscript(); | |
| 5017 | + | |
| 5018 | + return retval; | |
| 5019 | +} | |
| 5020 | + | |
| 5021 | +typedef float|Super UnionSuper; | |
| 5022 | + | |
| 5023 | +UnionSuper UnionSuper_from_JSON(mixed json) { | |
| 5024 | + return json; | |
| 5025 | +} | |
| 5026 | + | |
| 5027 | +class Super { | |
| 5028 | + | |
| 5029 | + string encode_json() { | |
| 5030 | + mapping(string:mixed) json = ([ | |
| 5031 | + ]); | |
| 5032 | + | |
| 5033 | + return Standards.JSON.encode(json); | |
| 5034 | + } | |
| 5035 | +} | |
| 5036 | + | |
| 5037 | +Super Super_from_JSON(mixed json) { | |
| 5038 | + Super retval = Super(); | |
| 5039 | + | |
| 5040 | + return retval; | |
| 5041 | +} | |
| 5042 | + | |
| 5043 | +typedef float|Symbol UnionSymbol; | |
| 5044 | + | |
| 5045 | +UnionSymbol UnionSymbol_from_JSON(mixed json) { | |
| 5046 | + return json; | |
| 5047 | +} | |
| 5048 | + | |
| 5049 | +class Symbol { | |
| 5050 | + | |
| 5051 | + string encode_json() { | |
| 5052 | + mapping(string:mixed) json = ([ | |
| 5053 | + ]); | |
| 5054 | + | |
| 5055 | + return Standards.JSON.encode(json); | |
| 5056 | + } | |
| 5057 | +} | |
| 5058 | + | |
| 5059 | +Symbol Symbol_from_JSON(mixed json) { | |
| 5060 | + Symbol retval = Symbol(); | |
| 5061 | + | |
| 5062 | + return retval; | |
| 5063 | +} | |
| 5064 | + | |
| 5065 | +typedef float|Synchronized UnionSynchronized; | |
| 5066 | + | |
| 5067 | +UnionSynchronized UnionSynchronized_from_JSON(mixed json) { | |
| 5068 | + return json; | |
| 5069 | +} | |
| 5070 | + | |
| 5071 | +class Synchronized { | |
| 5072 | + | |
| 5073 | + string encode_json() { | |
| 5074 | + mapping(string:mixed) json = ([ | |
| 5075 | + ]); | |
| 5076 | + | |
| 5077 | + return Standards.JSON.encode(json); | |
| 5078 | + } | |
| 5079 | +} | |
| 5080 | + | |
| 5081 | +Synchronized Synchronized_from_JSON(mixed json) { | |
| 5082 | + Synchronized retval = Synchronized(); | |
| 5083 | + | |
| 5084 | + return retval; | |
| 5085 | +} | |
| 5086 | + | |
| 5087 | +typedef float|System UnionSystem; | |
| 5088 | + | |
| 5089 | +UnionSystem UnionSystem_from_JSON(mixed json) { | |
| 5090 | + return json; | |
| 5091 | +} | |
| 5092 | + | |
| 5093 | +class System { | |
| 5094 | + | |
| 5095 | + string encode_json() { | |
| 5096 | + mapping(string:mixed) json = ([ | |
| 5097 | + ]); | |
| 5098 | + | |
| 5099 | + return Standards.JSON.encode(json); | |
| 5100 | + } | |
| 5101 | +} | |
| 5102 | + | |
| 5103 | +System System_from_JSON(mixed json) { | |
| 5104 | + System retval = System(); | |
| 5105 | + | |
| 5106 | + return retval; | |
| 5107 | +} | |
| 5108 | + | |
| 5109 | +typedef float|Template UnionTemplate; | |
| 5110 | + | |
| 5111 | +UnionTemplate UnionTemplate_from_JSON(mixed json) { | |
| 5112 | + return json; | |
| 5113 | +} | |
| 5114 | + | |
| 5115 | +class Template { | |
| 5116 | + | |
| 5117 | + string encode_json() { | |
| 5118 | + mapping(string:mixed) json = ([ | |
| 5119 | + ]); | |
| 5120 | + | |
| 5121 | + return Standards.JSON.encode(json); | |
| 5122 | + } | |
| 5123 | +} | |
| 5124 | + | |
| 5125 | +Template Template_from_JSON(mixed json) { | |
| 5126 | + Template retval = Template(); | |
| 5127 | + | |
| 5128 | + return retval; | |
| 5129 | +} | |
| 5130 | + | |
| 5131 | +typedef float|Then UnionThen; | |
| 5132 | + | |
| 5133 | +UnionThen UnionThen_from_JSON(mixed json) { | |
| 5134 | + return json; | |
| 5135 | +} | |
| 5136 | + | |
| 5137 | +class Then { | |
| 5138 | + | |
| 5139 | + string encode_json() { | |
| 5140 | + mapping(string:mixed) json = ([ | |
| 5141 | + ]); | |
| 5142 | + | |
| 5143 | + return Standards.JSON.encode(json); | |
| 5144 | + } | |
| 5145 | +} | |
| 5146 | + | |
| 5147 | +Then Then_from_JSON(mixed json) { | |
| 5148 | + Then retval = Then(); | |
| 5149 | + | |
| 5150 | + return retval; | |
| 5151 | +} | |
| 5152 | + | |
| 5153 | +typedef float|This UnionThis; | |
| 5154 | + | |
| 5155 | +UnionThis UnionThis_from_JSON(mixed json) { | |
| 5156 | + return json; | |
| 5157 | +} | |
| 5158 | + | |
| 5159 | +class This { | |
| 5160 | + | |
| 5161 | + string encode_json() { | |
| 5162 | + mapping(string:mixed) json = ([ | |
| 5163 | + ]); | |
| 5164 | + | |
| 5165 | + return Standards.JSON.encode(json); | |
| 5166 | + } | |
| 5167 | +} | |
| 5168 | + | |
| 5169 | +This This_from_JSON(mixed json) { | |
| 5170 | + This retval = This(); | |
| 5171 | + | |
| 5172 | + return retval; | |
| 5173 | +} | |
| 5174 | + | |
| 5175 | +typedef float|ThreadLocal UnionThreadLocal; | |
| 5176 | + | |
| 5177 | +UnionThreadLocal UnionThreadLocal_from_JSON(mixed json) { | |
| 5178 | + return json; | |
| 5179 | +} | |
| 5180 | + | |
| 5181 | +class ThreadLocal { | |
| 5182 | + | |
| 5183 | + string encode_json() { | |
| 5184 | + mapping(string:mixed) json = ([ | |
| 5185 | + ]); | |
| 5186 | + | |
| 5187 | + return Standards.JSON.encode(json); | |
| 5188 | + } | |
| 5189 | +} | |
| 5190 | + | |
| 5191 | +ThreadLocal ThreadLocal_from_JSON(mixed json) { | |
| 5192 | + ThreadLocal retval = ThreadLocal(); | |
| 5193 | + | |
| 5194 | + return retval; | |
| 5195 | +} | |
| 5196 | + | |
| 5197 | +typedef float|Throw UnionThrow; | |
| 5198 | + | |
| 5199 | +UnionThrow UnionThrow_from_JSON(mixed json) { | |
| 5200 | + return json; | |
| 5201 | +} | |
| 5202 | + | |
| 5203 | +class Throw { | |
| 5204 | + | |
| 5205 | + string encode_json() { | |
| 5206 | + mapping(string:mixed) json = ([ | |
| 5207 | + ]); | |
| 5208 | + | |
| 5209 | + return Standards.JSON.encode(json); | |
| 5210 | + } | |
| 5211 | +} | |
| 5212 | + | |
| 5213 | +Throw Throw_from_JSON(mixed json) { | |
| 5214 | + Throw retval = Throw(); | |
| 5215 | + | |
| 5216 | + return retval; | |
| 5217 | +} | |
| 5218 | + | |
| 5219 | +typedef float|Throws UnionThrows; | |
| 5220 | + | |
| 5221 | +UnionThrows UnionThrows_from_JSON(mixed json) { | |
| 5222 | + return json; | |
| 5223 | +} | |
| 5224 | + | |
| 5225 | +class Throws { | |
| 5226 | + | |
| 5227 | + string encode_json() { | |
| 5228 | + mapping(string:mixed) json = ([ | |
| 5229 | + ]); | |
| 5230 | + | |
| 5231 | + return Standards.JSON.encode(json); | |
| 5232 | + } | |
| 5233 | +} | |
| 5234 | + | |
| 5235 | +Throws Throws_from_JSON(mixed json) { | |
| 5236 | + Throws retval = Throws(); | |
| 5237 | + | |
| 5238 | + return retval; | |
| 5239 | +} | |
| 5240 | + | |
| 5241 | +typedef float|ToJson UnionToJson; | |
| 5242 | + | |
| 5243 | +UnionToJson UnionToJson_from_JSON(mixed json) { | |
| 5244 | + return json; | |
| 5245 | +} | |
| 5246 | + | |
| 5247 | +class ToJson { | |
| 5248 | + | |
| 5249 | + string encode_json() { | |
| 5250 | + mapping(string:mixed) json = ([ | |
| 5251 | + ]); | |
| 5252 | + | |
| 5253 | + return Standards.JSON.encode(json); | |
| 5254 | + } | |
| 5255 | +} | |
| 5256 | + | |
| 5257 | +ToJson ToJson_from_JSON(mixed json) { | |
| 5258 | + ToJson retval = ToJson(); | |
| 5259 | + | |
| 5260 | + return retval; | |
| 5261 | +} | |
| 5262 | + | |
| 5263 | +typedef float|TopLevelClass UnionTopLevel; | |
| 5264 | + | |
| 5265 | +UnionTopLevel UnionTopLevel_from_JSON(mixed json) { | |
| 5266 | + return json; | |
| 5267 | +} | |
| 5268 | + | |
| 5269 | +class TopLevelClass { | |
| 5270 | + | |
| 5271 | + string encode_json() { | |
| 5272 | + mapping(string:mixed) json = ([ | |
| 5273 | + ]); | |
| 5274 | + | |
| 5275 | + return Standards.JSON.encode(json); | |
| 5276 | + } | |
| 5277 | +} | |
| 5278 | + | |
| 5279 | +TopLevelClass TopLevelClass_from_JSON(mixed json) { | |
| 5280 | + TopLevelClass retval = TopLevelClass(); | |
| 5281 | + | |
| 5282 | + return retval; | |
| 5283 | +} | |
| 5284 | + | |
| 5285 | +typedef AnyClass|float UnionAnyUnion; | |
| 5286 | + | |
| 5287 | +UnionAnyUnion UnionAnyUnion_from_JSON(mixed json) { | |
| 5288 | + return json; | |
| 5289 | +} | |
| 5290 | + | |
| 5291 | +class AnyClass { | |
| 5292 | + | |
| 5293 | + string encode_json() { | |
| 5294 | + mapping(string:mixed) json = ([ | |
| 5295 | + ]); | |
| 5296 | + | |
| 5297 | + return Standards.JSON.encode(json); | |
| 5298 | + } | |
| 5299 | +} | |
| 5300 | + | |
| 5301 | +AnyClass AnyClass_from_JSON(mixed json) { | |
| 5302 | + AnyClass retval = AnyClass(); | |
| 5303 | + | |
| 5304 | + return retval; | |
| 5305 | +} | |
| 5306 | + | |
| 5307 | +typedef float|Array UnionArray; | |
| 5308 | + | |
| 5309 | +UnionArray UnionArray_from_JSON(mixed json) { | |
| 5310 | + return json; | |
| 5311 | +} | |
| 5312 | + | |
| 5313 | +class Array { | |
| 5314 | + | |
| 5315 | + string encode_json() { | |
| 5316 | + mapping(string:mixed) json = ([ | |
| 5317 | + ]); | |
| 5318 | + | |
| 5319 | + return Standards.JSON.encode(json); | |
| 5320 | + } | |
| 5321 | +} | |
| 5322 | + | |
| 5323 | +Array Array_from_JSON(mixed json) { | |
| 5324 | + Array retval = Array(); | |
| 5325 | + | |
| 5326 | + return retval; | |
| 5327 | +} | |
| 5328 | + | |
| 5329 | +typedef float|Auto UnionAuto; | |
| 5330 | + | |
| 5331 | +UnionAuto UnionAuto_from_JSON(mixed json) { | |
| 5332 | + return json; | |
| 5333 | +} | |
| 5334 | + | |
| 5335 | +class Auto { | |
| 5336 | + | |
| 5337 | + string encode_json() { | |
| 5338 | + mapping(string:mixed) json = ([ | |
| 5339 | + ]); | |
| 5340 | + | |
| 5341 | + return Standards.JSON.encode(json); | |
| 5342 | + } | |
| 5343 | +} | |
| 5344 | + | |
| 5345 | +Auto Auto_from_JSON(mixed json) { | |
| 5346 | + Auto retval = Auto(); | |
| 5347 | + | |
| 5348 | + return retval; | |
| 5349 | +} | |
| 5350 | + | |
| 5351 | +typedef BoolClass|float UnionBoolUnion; | |
| 5352 | + | |
| 5353 | +UnionBoolUnion UnionBoolUnion_from_JSON(mixed json) { | |
| 5354 | + return json; | |
| 5355 | +} | |
| 5356 | + | |
| 5357 | +class BoolClass { | |
| 5358 | + | |
| 5359 | + string encode_json() { | |
| 5360 | + mapping(string:mixed) json = ([ | |
| 5361 | + ]); | |
| 5362 | + | |
| 5363 | + return Standards.JSON.encode(json); | |
| 5364 | + } | |
| 5365 | +} | |
| 5366 | + | |
| 5367 | +BoolClass BoolClass_from_JSON(mixed json) { | |
| 5368 | + BoolClass retval = BoolClass(); | |
| 5369 | + | |
| 5370 | + return retval; | |
| 5371 | +} | |
| 5372 | + | |
| 5373 | +typedef float|Break UnionBreak; | |
| 5374 | + | |
| 5375 | +UnionBreak UnionBreak_from_JSON(mixed json) { | |
| 5376 | + return json; | |
| 5377 | +} | |
| 5378 | + | |
| 5379 | +class Break { | |
| 5380 | + | |
| 5381 | + string encode_json() { | |
| 5382 | + mapping(string:mixed) json = ([ | |
| 5383 | + ]); | |
| 5384 | + | |
| 5385 | + return Standards.JSON.encode(json); | |
| 5386 | + } | |
| 5387 | +} | |
| 5388 | + | |
| 5389 | +Break Break_from_JSON(mixed json) { | |
| 5390 | + Break retval = Break(); | |
| 5391 | + | |
| 5392 | + return retval; | |
| 5393 | +} | |
| 5394 | + | |
| 5395 | +typedef float|Case UnionCase; | |
| 5396 | + | |
| 5397 | +UnionCase UnionCase_from_JSON(mixed json) { | |
| 5398 | + return json; | |
| 5399 | +} | |
| 5400 | + | |
| 5401 | +class Case { | |
| 5402 | + | |
| 5403 | + string encode_json() { | |
| 5404 | + mapping(string:mixed) json = ([ | |
| 5405 | + ]); | |
| 5406 | + | |
| 5407 | + return Standards.JSON.encode(json); | |
| 5408 | + } | |
| 5409 | +} | |
| 5410 | + | |
| 5411 | +Case Case_from_JSON(mixed json) { | |
| 5412 | + Case retval = Case(); | |
| 5413 | + | |
| 5414 | + return retval; | |
| 5415 | +} | |
| 5416 | + | |
| 5417 | +typedef float|Catch UnionCatch; | |
| 5418 | + | |
| 5419 | +UnionCatch UnionCatch_from_JSON(mixed json) { | |
| 5420 | + return json; | |
| 5421 | +} | |
| 5422 | + | |
| 5423 | +class Catch { | |
| 5424 | + | |
| 5425 | + string encode_json() { | |
| 5426 | + mapping(string:mixed) json = ([ | |
| 5427 | + ]); | |
| 5428 | + | |
| 5429 | + return Standards.JSON.encode(json); | |
| 5430 | + } | |
| 5431 | +} | |
| 5432 | + | |
| 5433 | +Catch Catch_from_JSON(mixed json) { | |
| 5434 | + Catch retval = Catch(); | |
| 5435 | + | |
| 5436 | + return retval; | |
| 5437 | +} | |
| 5438 | + | |
| 5439 | +typedef float|Class UnionClass; | |
| 5440 | + | |
| 5441 | +UnionClass UnionClass_from_JSON(mixed json) { | |
| 5442 | + return json; | |
| 5443 | +} | |
| 5444 | + | |
| 5445 | +class Class { | |
| 5446 | + | |
| 5447 | + string encode_json() { | |
| 5448 | + mapping(string:mixed) json = ([ | |
| 5449 | + ]); | |
| 5450 | + | |
| 5451 | + return Standards.JSON.encode(json); | |
| 5452 | + } | |
| 5453 | +} | |
| 5454 | + | |
| 5455 | +Class Class_from_JSON(mixed json) { | |
| 5456 | + Class retval = Class(); | |
| 5457 | + | |
| 5458 | + return retval; | |
| 5459 | +} | |
| 5460 | + | |
| 5461 | +typedef float|Const UnionConst; | |
| 5462 | + | |
| 5463 | +UnionConst UnionConst_from_JSON(mixed json) { | |
| 5464 | + return json; | |
| 5465 | +} | |
| 5466 | + | |
| 5467 | +class Const { | |
| 5468 | + | |
| 5469 | + string encode_json() { | |
| 5470 | + mapping(string:mixed) json = ([ | |
| 5471 | + ]); | |
| 5472 | + | |
| 5473 | + return Standards.JSON.encode(json); | |
| 5474 | + } | |
| 5475 | +} | |
| 5476 | + | |
| 5477 | +Const Const_from_JSON(mixed json) { | |
| 5478 | + Const retval = Const(); | |
| 5479 | + | |
| 5480 | + return retval; | |
| 5481 | +} | |
| 5482 | + | |
| 5483 | +typedef float|Continue UnionContinue; | |
| 5484 | + | |
| 5485 | +UnionContinue UnionContinue_from_JSON(mixed json) { | |
| 5486 | + return json; | |
| 5487 | +} | |
| 5488 | + | |
| 5489 | +class Continue { | |
| 5490 | + | |
| 5491 | + string encode_json() { | |
| 5492 | + mapping(string:mixed) json = ([ | |
| 5493 | + ]); | |
| 5494 | + | |
| 5495 | + return Standards.JSON.encode(json); | |
| 5496 | + } | |
| 5497 | +} | |
| 5498 | + | |
| 5499 | +Continue Continue_from_JSON(mixed json) { | |
| 5500 | + Continue retval = Continue(); | |
| 5501 | + | |
| 5502 | + return retval; | |
| 5503 | +} | |
| 5504 | + | |
| 5505 | +typedef float|Default UnionDefault; | |
| 5506 | + | |
| 5507 | +UnionDefault UnionDefault_from_JSON(mixed json) { | |
| 5508 | + return json; | |
| 5509 | +} | |
| 5510 | + | |
| 5511 | +class Default { | |
| 5512 | + | |
| 5513 | + string encode_json() { | |
| 5514 | + mapping(string:mixed) json = ([ | |
| 5515 | + ]); | |
| 5516 | + | |
| 5517 | + return Standards.JSON.encode(json); | |
| 5518 | + } | |
| 5519 | +} | |
| 5520 | + | |
| 5521 | +Default Default_from_JSON(mixed json) { | |
| 5522 | + Default retval = Default(); | |
| 5523 | + | |
| 5524 | + return retval; | |
| 5525 | +} | |
| 5526 | + | |
| 5527 | +typedef float|Do UnionDo; | |
| 5528 | + | |
| 5529 | +UnionDo UnionDo_from_JSON(mixed json) { | |
| 5530 | + return json; | |
| 5531 | +} | |
| 5532 | + | |
| 5533 | +class Do { | |
| 5534 | + | |
| 5535 | + string encode_json() { | |
| 5536 | + mapping(string:mixed) json = ([ | |
| 5537 | + ]); | |
| 5538 | + | |
| 5539 | + return Standards.JSON.encode(json); | |
| 5540 | + } | |
| 5541 | +} | |
| 5542 | + | |
| 5543 | +Do Do_from_JSON(mixed json) { | |
| 5544 | + Do retval = Do(); | |
| 5545 | + | |
| 5546 | + return retval; | |
| 5547 | +} | |
| 5548 | + | |
| 5549 | +typedef float|Else UnionElse; | |
| 5550 | + | |
| 5551 | +UnionElse UnionElse_from_JSON(mixed json) { | |
| 5552 | + return json; | |
| 5553 | +} | |
| 5554 | + | |
| 5555 | +class Else { | |
| 5556 | + | |
| 5557 | + string encode_json() { | |
| 5558 | + mapping(string:mixed) json = ([ | |
| 5559 | + ]); | |
| 5560 | + | |
| 5561 | + return Standards.JSON.encode(json); | |
| 5562 | + } | |
| 5563 | +} | |
| 5564 | + | |
| 5565 | +Else Else_from_JSON(mixed json) { | |
| 5566 | + Else retval = Else(); | |
| 5567 | + | |
| 5568 | + return retval; | |
| 5569 | +} | |
| 5570 | + | |
| 5571 | +typedef float|Enum UnionEnum; | |
| 5572 | + | |
| 5573 | +UnionEnum UnionEnum_from_JSON(mixed json) { | |
| 5574 | + return json; | |
| 5575 | +} | |
| 5576 | + | |
| 5577 | +class Enum { | |
| 5578 | + | |
| 5579 | + string encode_json() { | |
| 5580 | + mapping(string:mixed) json = ([ | |
| 5581 | + ]); | |
| 5582 | + | |
| 5583 | + return Standards.JSON.encode(json); | |
| 5584 | + } | |
| 5585 | +} | |
| 5586 | + | |
| 5587 | +Enum Enum_from_JSON(mixed json) { | |
| 5588 | + Enum retval = Enum(); | |
| 5589 | + | |
| 5590 | + return retval; | |
| 5591 | +} | |
| 5592 | + | |
| 5593 | +typedef float|Extern UnionExtern; | |
| 5594 | + | |
| 5595 | +UnionExtern UnionExtern_from_JSON(mixed json) { | |
| 5596 | + return json; | |
| 5597 | +} | |
| 5598 | + | |
| 5599 | +class Extern { | |
| 5600 | + | |
| 5601 | + string encode_json() { | |
| 5602 | + mapping(string:mixed) json = ([ | |
| 5603 | + ]); | |
| 5604 | + | |
| 5605 | + return Standards.JSON.encode(json); | |
| 5606 | + } | |
| 5607 | +} | |
| 5608 | + | |
| 5609 | +Extern Extern_from_JSON(mixed json) { | |
| 5610 | + Extern retval = Extern(); | |
| 5611 | + | |
| 5612 | + return retval; | |
| 5613 | +} | |
| 5614 | + | |
| 5615 | +typedef float|FalseClass UnionFalseUnion; | |
| 5616 | + | |
| 5617 | +UnionFalseUnion UnionFalseUnion_from_JSON(mixed json) { | |
| 5618 | + return json; | |
| 5619 | +} | |
| 5620 | + | |
| 5621 | +class FalseClass { | |
| 5622 | + | |
| 5623 | + string encode_json() { | |
| 5624 | + mapping(string:mixed) json = ([ | |
| 5625 | + ]); | |
| 5626 | + | |
| 5627 | + return Standards.JSON.encode(json); | |
| 5628 | + } | |
| 5629 | +} | |
| 5630 | + | |
| 5631 | +FalseClass FalseClass_from_JSON(mixed json) { | |
| 5632 | + FalseClass retval = FalseClass(); | |
| 5633 | + | |
| 5634 | + return retval; | |
| 5635 | +} | |
| 5636 | + | |
| 5637 | +typedef float|Final UnionFinal; | |
| 5638 | + | |
| 5639 | +UnionFinal UnionFinal_from_JSON(mixed json) { | |
| 5640 | + return json; | |
| 5641 | +} | |
| 5642 | + | |
| 5643 | +class Final { | |
| 5644 | + | |
| 5645 | + string encode_json() { | |
| 5646 | + mapping(string:mixed) json = ([ | |
| 5647 | + ]); | |
| 5648 | + | |
| 5649 | + return Standards.JSON.encode(json); | |
| 5650 | + } | |
| 5651 | +} | |
| 5652 | + | |
| 5653 | +Final Final_from_JSON(mixed json) { | |
| 5654 | + Final retval = Final(); | |
| 5655 | + | |
| 5656 | + return retval; | |
| 5657 | +} | |
| 5658 | + | |
| 5659 | +typedef float|Float UnionFloat; | |
| 5660 | + | |
| 5661 | +UnionFloat UnionFloat_from_JSON(mixed json) { | |
| 5662 | + return json; | |
| 5663 | +} | |
| 5664 | + | |
| 5665 | +class Float { | |
| 5666 | + | |
| 5667 | + string encode_json() { | |
| 5668 | + mapping(string:mixed) json = ([ | |
| 5669 | + ]); | |
| 5670 | + | |
| 5671 | + return Standards.JSON.encode(json); | |
| 5672 | + } | |
| 5673 | +} | |
| 5674 | + | |
| 5675 | +Float Float_from_JSON(mixed json) { | |
| 5676 | + Float retval = Float(); | |
| 5677 | + | |
| 5678 | + return retval; | |
| 5679 | +} | |
| 5680 | + | |
| 5681 | +typedef float|For UnionFor; | |
| 5682 | + | |
| 5683 | +UnionFor UnionFor_from_JSON(mixed json) { | |
| 5684 | + return json; | |
| 5685 | +} | |
| 5686 | + | |
| 5687 | +class For { | |
| 5688 | + | |
| 5689 | + string encode_json() { | |
| 5690 | + mapping(string:mixed) json = ([ | |
| 5691 | + ]); | |
| 5692 | + | |
| 5693 | + return Standards.JSON.encode(json); | |
| 5694 | + } | |
| 5695 | +} | |
| 5696 | + | |
| 5697 | +For For_from_JSON(mixed json) { | |
| 5698 | + For retval = For(); | |
| 5699 | + | |
| 5700 | + return retval; | |
| 5701 | +} | |
| 5702 | + | |
| 5703 | +typedef float|Foreach UnionForeach; | |
| 5704 | + | |
| 5705 | +UnionForeach UnionForeach_from_JSON(mixed json) { | |
| 5706 | + return json; | |
| 5707 | +} | |
| 5708 | + | |
| 5709 | +class Foreach { | |
| 5710 | + | |
| 5711 | + string encode_json() { | |
| 5712 | + mapping(string:mixed) json = ([ | |
| 5713 | + ]); | |
| 5714 | + | |
| 5715 | + return Standards.JSON.encode(json); | |
| 5716 | + } | |
| 5717 | +} | |
| 5718 | + | |
| 5719 | +Foreach Foreach_from_JSON(mixed json) { | |
| 5720 | + Foreach retval = Foreach(); | |
| 5721 | + | |
| 5722 | + return retval; | |
| 5723 | +} | |
| 5724 | + | |
| 5725 | +typedef float|Function UnionFunction; | |
| 5726 | + | |
| 5727 | +UnionFunction UnionFunction_from_JSON(mixed json) { | |
| 5728 | + return json; | |
| 5729 | +} | |
| 5730 | + | |
| 5731 | +class Function { | |
| 5732 | + | |
| 5733 | + string encode_json() { | |
| 5734 | + mapping(string:mixed) json = ([ | |
| 5735 | + ]); | |
| 5736 | + | |
| 5737 | + return Standards.JSON.encode(json); | |
| 5738 | + } | |
| 5739 | +} | |
| 5740 | + | |
| 5741 | +Function Function_from_JSON(mixed json) { | |
| 5742 | + Function retval = Function(); | |
| 5743 | + | |
| 5744 | + return retval; | |
| 5745 | +} | |
| 5746 | + | |
| 5747 | +typedef float|Global UnionGlobal; | |
| 5748 | + | |
| 5749 | +UnionGlobal UnionGlobal_from_JSON(mixed json) { | |
| 5750 | + return json; | |
| 5751 | +} | |
| 5752 | + | |
| 5753 | +class Global { | |
| 5754 | + | |
| 5755 | + string encode_json() { | |
| 5756 | + mapping(string:mixed) json = ([ | |
| 5757 | + ]); | |
| 5758 | + | |
| 5759 | + return Standards.JSON.encode(json); | |
| 5760 | + } | |
| 5761 | +} | |
| 5762 | + | |
| 5763 | +Global Global_from_JSON(mixed json) { | |
| 5764 | + Global retval = Global(); | |
| 5765 | + | |
| 5766 | + return retval; | |
| 5767 | +} | |
| 5768 | + | |
| 5769 | +typedef float|If UnionIf; | |
| 5770 | + | |
| 5771 | +UnionIf UnionIf_from_JSON(mixed json) { | |
| 5772 | + return json; | |
| 5773 | +} | |
| 5774 | + | |
| 5775 | +class If { | |
| 5776 | + | |
| 5777 | + string encode_json() { | |
| 5778 | + mapping(string:mixed) json = ([ | |
| 5779 | + ]); | |
| 5780 | + | |
| 5781 | + return Standards.JSON.encode(json); | |
| 5782 | + } | |
| 5783 | +} | |
| 5784 | + | |
| 5785 | +If If_from_JSON(mixed json) { | |
| 5786 | + If retval = If(); | |
| 5787 | + | |
| 5788 | + return retval; | |
| 5789 | +} | |
| 5790 | + | |
| 5791 | +typedef float|Import UnionImport; | |
| 5792 | + | |
| 5793 | +UnionImport UnionImport_from_JSON(mixed json) { | |
| 5794 | + return json; | |
| 5795 | +} | |
| 5796 | + | |
| 5797 | +class Import { | |
| 5798 | + | |
| 5799 | + string encode_json() { | |
| 5800 | + mapping(string:mixed) json = ([ | |
| 5801 | + ]); | |
| 5802 | + | |
| 5803 | + return Standards.JSON.encode(json); | |
| 5804 | + } | |
| 5805 | +} | |
| 5806 | + | |
| 5807 | +Import Import_from_JSON(mixed json) { | |
| 5808 | + Import retval = Import(); | |
| 5809 | + | |
| 5810 | + return retval; | |
| 5811 | +} | |
| 5812 | + | |
| 5813 | +typedef float|Inline UnionInline; | |
| 5814 | + | |
| 5815 | +UnionInline UnionInline_from_JSON(mixed json) { | |
| 5816 | + return json; | |
| 5817 | +} | |
| 5818 | + | |
| 5819 | +class Inline { | |
| 5820 | + | |
| 5821 | + string encode_json() { | |
| 5822 | + mapping(string:mixed) json = ([ | |
| 5823 | + ]); | |
| 5824 | + | |
| 5825 | + return Standards.JSON.encode(json); | |
| 5826 | + } | |
| 5827 | +} | |
| 5828 | + | |
| 5829 | +Inline Inline_from_JSON(mixed json) { | |
| 5830 | + Inline retval = Inline(); | |
| 5831 | + | |
| 5832 | + return retval; | |
| 5833 | +} | |
| 5834 | + | |
| 5835 | +typedef float|Int UnionInt; | |
| 5836 | + | |
| 5837 | +UnionInt UnionInt_from_JSON(mixed json) { | |
| 5838 | + return json; | |
| 5839 | +} | |
| 5840 | + | |
| 5841 | +class Int { | |
| 5842 | + | |
| 5843 | + string encode_json() { | |
| 5844 | + mapping(string:mixed) json = ([ | |
| 5845 | + ]); | |
| 5846 | + | |
| 5847 | + return Standards.JSON.encode(json); | |
| 5848 | + } | |
| 5849 | +} | |
| 5850 | + | |
| 5851 | +Int Int_from_JSON(mixed json) { | |
| 5852 | + Int retval = Int(); | |
| 5853 | + | |
| 5854 | + return retval; | |
| 5855 | +} | |
| 5856 | + | |
| 5857 | +typedef float|Lambda UnionLambda; | |
| 5858 | + | |
| 5859 | +UnionLambda UnionLambda_from_JSON(mixed json) { | |
| 5860 | + return json; | |
| 5861 | +} | |
| 5862 | + | |
| 5863 | +class Lambda { | |
| 5864 | + | |
| 5865 | + string encode_json() { | |
| 5866 | + mapping(string:mixed) json = ([ | |
| 5867 | + ]); | |
| 5868 | + | |
| 5869 | + return Standards.JSON.encode(json); | |
| 5870 | + } | |
| 5871 | +} | |
| 5872 | + | |
| 5873 | +Lambda Lambda_from_JSON(mixed json) { | |
| 5874 | + Lambda retval = Lambda(); | |
| 5875 | + | |
| 5876 | + return retval; | |
| 5877 | +} | |
| 5878 | + | |
| 5879 | +typedef float|NoneClass UnionNoneUnion; | |
| 5880 | + | |
| 5881 | +UnionNoneUnion UnionNoneUnion_from_JSON(mixed json) { | |
| 5882 | + return json; | |
| 5883 | +} | |
| 5884 | + | |
| 5885 | +class NoneClass { | |
| 5886 | + | |
| 5887 | + string encode_json() { | |
| 5888 | + mapping(string:mixed) json = ([ | |
| 5889 | + ]); | |
| 5890 | + | |
| 5891 | + return Standards.JSON.encode(json); | |
| 5892 | + } | |
| 5893 | +} | |
| 5894 | + | |
| 5895 | +NoneClass NoneClass_from_JSON(mixed json) { | |
| 5896 | + NoneClass retval = NoneClass(); | |
| 5897 | + | |
| 5898 | + return retval; | |
| 5899 | +} | |
| 5900 | + | |
| 5901 | +typedef float|NullClass UnionNullUnion; | |
| 5902 | + | |
| 5903 | +UnionNullUnion UnionNullUnion_from_JSON(mixed json) { | |
| 5904 | + return json; | |
| 5905 | +} | |
| 5906 | + | |
| 5907 | +class NullClass { | |
| 5908 | + | |
| 5909 | + string encode_json() { | |
| 5910 | + mapping(string:mixed) json = ([ | |
| 5911 | + ]); | |
| 5912 | + | |
| 5913 | + return Standards.JSON.encode(json); | |
| 5914 | + } | |
| 5915 | +} | |
| 5916 | + | |
| 5917 | +NullClass NullClass_from_JSON(mixed json) { | |
| 5918 | + NullClass retval = NullClass(); | |
| 5919 | + | |
| 5920 | + return retval; | |
| 5921 | +} | |
| 5922 | + | |
| 5923 | +typedef float|Object UnionObject; | |
| 5924 | + | |
| 5925 | +UnionObject UnionObject_from_JSON(mixed json) { | |
| 5926 | + return json; | |
| 5927 | +} | |
| 5928 | + | |
| 5929 | +class Object { | |
| 5930 | + | |
| 5931 | + string encode_json() { | |
| 5932 | + mapping(string:mixed) json = ([ | |
| 5933 | + ]); | |
| 5934 | + | |
| 5935 | + return Standards.JSON.encode(json); | |
| 5936 | + } | |
| 5937 | +} | |
| 5938 | + | |
| 5939 | +Object Object_from_JSON(mixed json) { | |
| 5940 | + Object retval = Object(); | |
| 5941 | + | |
| 5942 | + return retval; | |
| 5943 | +} | |
| 5944 | + | |
| 5945 | +typedef float|Optional UnionOptional; | |
| 5946 | + | |
| 5947 | +UnionOptional UnionOptional_from_JSON(mixed json) { | |
| 5948 | + return json; | |
| 5949 | +} | |
| 5950 | + | |
| 5951 | +class Optional { | |
| 5952 | + | |
| 5953 | + string encode_json() { | |
| 5954 | + mapping(string:mixed) json = ([ | |
| 5955 | + ]); | |
| 5956 | + | |
| 5957 | + return Standards.JSON.encode(json); | |
| 5958 | + } | |
| 5959 | +} | |
| 5960 | + | |
| 5961 | +Optional Optional_from_JSON(mixed json) { | |
| 5962 | + Optional retval = Optional(); | |
| 5963 | + | |
| 5964 | + return retval; | |
| 5965 | +} | |
| 5966 | + | |
| 5967 | +typedef float|Private UnionPrivate; | |
| 5968 | + | |
| 5969 | +UnionPrivate UnionPrivate_from_JSON(mixed json) { | |
| 5970 | + return json; | |
| 5971 | +} | |
| 5972 | + | |
| 5973 | +class Private { | |
| 5974 | + | |
| 5975 | + string encode_json() { | |
| 5976 | + mapping(string:mixed) json = ([ | |
| 5977 | + ]); | |
| 5978 | + | |
| 5979 | + return Standards.JSON.encode(json); | |
| 5980 | + } | |
| 5981 | +} | |
| 5982 | + | |
| 5983 | +Private Private_from_JSON(mixed json) { | |
| 5984 | + Private retval = Private(); | |
| 5985 | + | |
| 5986 | + return retval; | |
| 5987 | +} | |
| 5988 | + | |
| 5989 | +typedef float|Protected UnionProtected; | |
| 5990 | + | |
| 5991 | +UnionProtected UnionProtected_from_JSON(mixed json) { | |
| 5992 | + return json; | |
| 5993 | +} | |
| 5994 | + | |
| 5995 | +class Protected { | |
| 5996 | + | |
| 5997 | + string encode_json() { | |
| 5998 | + mapping(string:mixed) json = ([ | |
| 5999 | + ]); | |
| 6000 | + | |
| 6001 | + return Standards.JSON.encode(json); | |
| 6002 | + } | |
| 6003 | +} | |
| 6004 | + | |
| 6005 | +Protected Protected_from_JSON(mixed json) { | |
| 6006 | + Protected retval = Protected(); | |
| 6007 | + | |
| 6008 | + return retval; | |
| 6009 | +} | |
| 6010 | + | |
| 6011 | +typedef float|ProtocolClass UnionProtocolUnion; | |
| 6012 | + | |
| 6013 | +UnionProtocolUnion UnionProtocolUnion_from_JSON(mixed json) { | |
| 6014 | + return json; | |
| 6015 | +} | |
| 6016 | + | |
| 6017 | +class ProtocolClass { | |
| 6018 | + | |
| 6019 | + string encode_json() { | |
| 6020 | + mapping(string:mixed) json = ([ | |
| 6021 | + ]); | |
| 6022 | + | |
| 6023 | + return Standards.JSON.encode(json); | |
| 6024 | + } | |
| 6025 | +} | |
| 6026 | + | |
| 6027 | +ProtocolClass ProtocolClass_from_JSON(mixed json) { | |
| 6028 | + ProtocolClass retval = ProtocolClass(); | |
| 6029 | + | |
| 6030 | + return retval; | |
| 6031 | +} | |
| 6032 | + | |
| 6033 | +typedef float|Public UnionPublic; | |
| 6034 | + | |
| 6035 | +UnionPublic UnionPublic_from_JSON(mixed json) { | |
| 6036 | + return json; | |
| 6037 | +} | |
| 6038 | + | |
| 6039 | +class Public { | |
| 6040 | + | |
| 6041 | + string encode_json() { | |
| 6042 | + mapping(string:mixed) json = ([ | |
| 6043 | + ]); | |
| 6044 | + | |
| 6045 | + return Standards.JSON.encode(json); | |
| 6046 | + } | |
| 6047 | +} | |
| 6048 | + | |
| 6049 | +Public Public_from_JSON(mixed json) { | |
| 6050 | + Public retval = Public(); | |
| 6051 | + | |
| 6052 | + return retval; | |
| 6053 | +} | |
| 6054 | + | |
| 6055 | +typedef float|Return UnionReturn; | |
| 6056 | + | |
| 6057 | +UnionReturn UnionReturn_from_JSON(mixed json) { | |
| 6058 | + return json; | |
| 6059 | +} | |
| 6060 | + | |
| 6061 | +class Return { | |
| 6062 | + | |
| 6063 | + string encode_json() { | |
| 6064 | + mapping(string:mixed) json = ([ | |
| 6065 | + ]); | |
| 6066 | + | |
| 6067 | + return Standards.JSON.encode(json); | |
| 6068 | + } | |
| 6069 | +} | |
| 6070 | + | |
| 6071 | +Return Return_from_JSON(mixed json) { | |
| 6072 | + Return retval = Return(); | |
| 6073 | + | |
| 6074 | + return retval; | |
| 6075 | +} | |
| 6076 | + | |
| 6077 | +typedef float|SelfClass UnionSelfUnion; | |
| 6078 | + | |
| 6079 | +UnionSelfUnion UnionSelfUnion_from_JSON(mixed json) { | |
| 6080 | + return json; | |
| 6081 | +} | |
| 6082 | + | |
| 6083 | +class SelfClass { | |
| 6084 | + | |
| 6085 | + string encode_json() { | |
| 6086 | + mapping(string:mixed) json = ([ | |
| 6087 | + ]); | |
| 6088 | + | |
| 6089 | + return Standards.JSON.encode(json); | |
| 6090 | + } | |
| 6091 | +} | |
| 6092 | + | |
| 6093 | +SelfClass SelfClass_from_JSON(mixed json) { | |
| 6094 | + SelfClass retval = SelfClass(); | |
| 6095 | + | |
| 6096 | + return retval; | |
| 6097 | +} | |
| 6098 | + | |
| 6099 | +typedef float|Static UnionStatic; | |
| 6100 | + | |
| 6101 | +UnionStatic UnionStatic_from_JSON(mixed json) { | |
| 6102 | + return json; | |
| 6103 | +} | |
| 6104 | + | |
| 6105 | +class Static { | |
| 6106 | + | |
| 6107 | + string encode_json() { | |
| 6108 | + mapping(string:mixed) json = ([ | |
| 6109 | + ]); | |
| 6110 | + | |
| 6111 | + return Standards.JSON.encode(json); | |
| 6112 | + } | |
| 6113 | +} | |
| 6114 | + | |
| 6115 | +Static Static_from_JSON(mixed json) { | |
| 6116 | + Static retval = Static(); | |
| 6117 | + | |
| 6118 | + return retval; | |
| 6119 | +} | |
| 6120 | + | |
| 6121 | +typedef float|String UnionString; | |
| 6122 | + | |
| 6123 | +UnionString UnionString_from_JSON(mixed json) { | |
| 6124 | + return json; | |
| 6125 | +} | |
| 6126 | + | |
| 6127 | +class String { | |
| 6128 | + | |
| 6129 | + string encode_json() { | |
| 6130 | + mapping(string:mixed) json = ([ | |
| 6131 | + ]); | |
| 6132 | + | |
| 6133 | + return Standards.JSON.encode(json); | |
| 6134 | + } | |
| 6135 | +} | |
| 6136 | + | |
| 6137 | +String String_from_JSON(mixed json) { | |
| 6138 | + String retval = String(); | |
| 6139 | + | |
| 6140 | + return retval; | |
| 6141 | +} | |
| 6142 | + | |
| 6143 | +typedef float|Switch UnionSwitch; | |
| 6144 | + | |
| 6145 | +UnionSwitch UnionSwitch_from_JSON(mixed json) { | |
| 6146 | + return json; | |
| 6147 | +} | |
| 6148 | + | |
| 6149 | +class Switch { | |
| 6150 | + | |
| 6151 | + string encode_json() { | |
| 6152 | + mapping(string:mixed) json = ([ | |
| 6153 | + ]); | |
| 6154 | + | |
| 6155 | + return Standards.JSON.encode(json); | |
| 6156 | + } | |
| 6157 | +} | |
| 6158 | + | |
| 6159 | +Switch Switch_from_JSON(mixed json) { | |
| 6160 | + Switch retval = Switch(); | |
| 6161 | + | |
| 6162 | + return retval; | |
| 6163 | +} | |
| 6164 | + | |
| 6165 | +typedef float|TrueClass UnionTrueUnion; | |
| 6166 | + | |
| 6167 | +UnionTrueUnion UnionTrueUnion_from_JSON(mixed json) { | |
| 6168 | + return json; | |
| 6169 | +} | |
| 6170 | + | |
| 6171 | +class TrueClass { | |
| 6172 | + | |
| 6173 | + string encode_json() { | |
| 6174 | + mapping(string:mixed) json = ([ | |
| 6175 | + ]); | |
| 6176 | + | |
| 6177 | + return Standards.JSON.encode(json); | |
| 6178 | + } | |
| 6179 | +} | |
| 6180 | + | |
| 6181 | +TrueClass TrueClass_from_JSON(mixed json) { | |
| 6182 | + TrueClass retval = TrueClass(); | |
| 6183 | + | |
| 6184 | + return retval; | |
| 6185 | +} | |
| 6186 | + | |
| 6187 | +typedef float|TypeClass UnionTypeUnion; | |
| 6188 | + | |
| 6189 | +UnionTypeUnion UnionTypeUnion_from_JSON(mixed json) { | |
| 6190 | + return json; | |
| 6191 | +} | |
| 6192 | + | |
| 6193 | +class TypeClass { | |
| 6194 | + | |
| 6195 | + string encode_json() { | |
| 6196 | + mapping(string:mixed) json = ([ | |
| 6197 | + ]); | |
| 6198 | + | |
| 6199 | + return Standards.JSON.encode(json); | |
| 6200 | + } | |
| 6201 | +} | |
| 6202 | + | |
| 6203 | +TypeClass TypeClass_from_JSON(mixed json) { | |
| 6204 | + TypeClass retval = TypeClass(); | |
| 6205 | + | |
| 6206 | + return retval; | |
| 6207 | +} | |
| 6208 | + | |
| 6209 | +typedef float|Typedef UnionTypedef; | |
| 6210 | + | |
| 6211 | +UnionTypedef UnionTypedef_from_JSON(mixed json) { | |
| 6212 | + return json; | |
| 6213 | +} | |
| 6214 | + | |
| 6215 | +class Typedef { | |
| 6216 | + | |
| 6217 | + string encode_json() { | |
| 6218 | + mapping(string:mixed) json = ([ | |
| 6219 | + ]); | |
| 6220 | + | |
| 6221 | + return Standards.JSON.encode(json); | |
| 6222 | + } | |
| 6223 | +} | |
| 6224 | + | |
| 6225 | +Typedef Typedef_from_JSON(mixed json) { | |
| 6226 | + Typedef retval = Typedef(); | |
| 6227 | + | |
| 6228 | + return retval; | |
| 6229 | +} | |
| 6230 | + | |
| 6231 | +typedef float|Typeof UnionTypeof; | |
| 6232 | + | |
| 6233 | +UnionTypeof UnionTypeof_from_JSON(mixed json) { | |
| 6234 | + return json; | |
| 6235 | +} | |
| 6236 | + | |
| 6237 | +class Typeof { | |
| 6238 | + | |
| 6239 | + string encode_json() { | |
| 6240 | + mapping(string:mixed) json = ([ | |
| 6241 | + ]); | |
| 6242 | + | |
| 6243 | + return Standards.JSON.encode(json); | |
| 6244 | + } | |
| 6245 | +} | |
| 6246 | + | |
| 6247 | +Typeof Typeof_from_JSON(mixed json) { | |
| 6248 | + Typeof retval = Typeof(); | |
| 6249 | + | |
| 6250 | + return retval; | |
| 6251 | +} | |
| 6252 | + | |
| 6253 | +typedef float|Void UnionVoid; | |
| 6254 | + | |
| 6255 | +UnionVoid UnionVoid_from_JSON(mixed json) { | |
| 6256 | + return json; | |
| 6257 | +} | |
| 6258 | + | |
| 6259 | +class Void { | |
| 6260 | + | |
| 6261 | + string encode_json() { | |
| 6262 | + mapping(string:mixed) json = ([ | |
| 6263 | + ]); | |
| 6264 | + | |
| 6265 | + return Standards.JSON.encode(json); | |
| 6266 | + } | |
| 6267 | +} | |
| 6268 | + | |
| 6269 | +Void Void_from_JSON(mixed json) { | |
| 6270 | + Void retval = Void(); | |
| 6271 | + | |
| 6272 | + return retval; | |
| 6273 | +} | |
| 6274 | + | |
| 6275 | +typedef float|While UnionWhile; | |
| 6276 | + | |
| 6277 | +UnionWhile UnionWhile_from_JSON(mixed json) { | |
| 6278 | + return json; | |
| 6279 | +} | |
| 6280 | + | |
| 6281 | +class While { | |
| 6282 | + | |
| 6283 | + string encode_json() { | |
| 6284 | + mapping(string:mixed) json = ([ | |
| 6285 | + ]); | |
| 6286 | + | |
| 6287 | + return Standards.JSON.encode(json); | |
| 6288 | + } | |
| 6289 | +} | |
| 6290 | + | |
| 6291 | +While While_from_JSON(mixed json) { | |
| 6292 | + While retval = While(); | |
| 6293 | + | |
| 6294 | + return retval; | |
| 6295 | +} | |
| 6296 | + | |
| 6297 | +typedef float|Transient UnionTransient; | |
| 6298 | + | |
| 6299 | +UnionTransient UnionTransient_from_JSON(mixed json) { | |
| 6300 | + return json; | |
| 6301 | +} | |
| 6302 | + | |
| 6303 | +class Transient { | |
| 6304 | + | |
| 6305 | + string encode_json() { | |
| 6306 | + mapping(string:mixed) json = ([ | |
| 6307 | + ]); | |
| 6308 | + | |
| 6309 | + return Standards.JSON.encode(json); | |
| 6310 | + } | |
| 6311 | +} | |
| 6312 | + | |
| 6313 | +Transient Transient_from_JSON(mixed json) { | |
| 6314 | + Transient retval = Transient(); | |
| 6315 | + | |
| 6316 | + return retval; | |
| 6317 | +} | |
| 6318 | + | |
| 6319 | +typedef float|True UnionTrue; | |
| 6320 | + | |
| 6321 | +UnionTrue UnionTrue_from_JSON(mixed json) { | |
| 6322 | + return json; | |
| 6323 | +} | |
| 6324 | + | |
| 6325 | +class True { | |
| 6326 | + | |
| 6327 | + string encode_json() { | |
| 6328 | + mapping(string:mixed) json = ([ | |
| 6329 | + ]); | |
| 6330 | + | |
| 6331 | + return Standards.JSON.encode(json); | |
| 6332 | + } | |
| 6333 | +} | |
| 6334 | + | |
| 6335 | +True True_from_JSON(mixed json) { | |
| 6336 | + True retval = True(); | |
| 6337 | + | |
| 6338 | + return retval; | |
| 6339 | +} | |
| 6340 | + | |
| 6341 | +typedef float|Try UnionTry; | |
| 6342 | + | |
| 6343 | +UnionTry UnionTry_from_JSON(mixed json) { | |
| 6344 | + return json; | |
| 6345 | +} | |
| 6346 | + | |
| 6347 | +class Try { | |
| 6348 | + | |
| 6349 | + string encode_json() { | |
| 6350 | + mapping(string:mixed) json = ([ | |
| 6351 | + ]); | |
| 6352 | + | |
| 6353 | + return Standards.JSON.encode(json); | |
| 6354 | + } | |
| 6355 | +} | |
| 6356 | + | |
| 6357 | +Try Try_from_JSON(mixed json) { | |
| 6358 | + Try retval = Try(); | |
| 6359 | + | |
| 6360 | + return retval; | |
| 6361 | +} | |
| 6362 | + | |
| 6363 | +typedef float|Type UnionType; | |
| 6364 | + | |
| 6365 | +UnionType UnionType_from_JSON(mixed json) { | |
| 6366 | + return json; | |
| 6367 | +} | |
| 6368 | + | |
| 6369 | +class Type { | |
| 6370 | + | |
| 6371 | + string encode_json() { | |
| 6372 | + mapping(string:mixed) json = ([ | |
| 6373 | + ]); | |
| 6374 | + | |
| 6375 | + return Standards.JSON.encode(json); | |
| 6376 | + } | |
| 6377 | +} | |
| 6378 | + | |
| 6379 | +Type Type_from_JSON(mixed json) { | |
| 6380 | + Type retval = Type(); | |
| 6381 | + | |
| 6382 | + return retval; | |
| 6383 | +} | |
| 6384 | + | |
| 6385 | +typedef float|Typealias UnionTypealias; | |
| 6386 | + | |
| 6387 | +UnionTypealias UnionTypealias_from_JSON(mixed json) { | |
| 6388 | + return json; | |
| 6389 | +} | |
| 6390 | + | |
| 6391 | +class Typealias { | |
| 6392 | + | |
| 6393 | + string encode_json() { | |
| 6394 | + mapping(string:mixed) json = ([ | |
| 6395 | + ]); | |
| 6396 | + | |
| 6397 | + return Standards.JSON.encode(json); | |
| 6398 | + } | |
| 6399 | +} | |
| 6400 | + | |
| 6401 | +Typealias Typealias_from_JSON(mixed json) { | |
| 6402 | + Typealias retval = Typealias(); | |
| 6403 | + | |
| 6404 | + return retval; | |
| 6405 | +} | |
| 6406 | + | |
| 6407 | +typedef float|Typeid UnionTypeid; | |
| 6408 | + | |
| 6409 | +UnionTypeid UnionTypeid_from_JSON(mixed json) { | |
| 6410 | + return json; | |
| 6411 | +} | |
| 6412 | + | |
| 6413 | +class Typeid { | |
| 6414 | + | |
| 6415 | + string encode_json() { | |
| 6416 | + mapping(string:mixed) json = ([ | |
| 6417 | + ]); | |
| 6418 | + | |
| 6419 | + return Standards.JSON.encode(json); | |
| 6420 | + } | |
| 6421 | +} | |
| 6422 | + | |
| 6423 | +Typeid Typeid_from_JSON(mixed json) { | |
| 6424 | + Typeid retval = Typeid(); | |
| 6425 | + | |
| 6426 | + return retval; | |
| 6427 | +} | |
| 6428 | + | |
| 6429 | +typedef float|Typename UnionTypename; | |
| 6430 | + | |
| 6431 | +UnionTypename UnionTypename_from_JSON(mixed json) { | |
| 6432 | + return json; | |
| 6433 | +} | |
| 6434 | + | |
| 6435 | +class Typename { | |
| 6436 | + | |
| 6437 | + string encode_json() { | |
| 6438 | + mapping(string:mixed) json = ([ | |
| 6439 | + ]); | |
| 6440 | + | |
| 6441 | + return Standards.JSON.encode(json); | |
| 6442 | + } | |
| 6443 | +} | |
| 6444 | + | |
| 6445 | +Typename Typename_from_JSON(mixed json) { | |
| 6446 | + Typename retval = Typename(); | |
| 6447 | + | |
| 6448 | + return retval; | |
| 6449 | +} | |
| 6450 | + | |
| 6451 | +typedef float|Uint UnionUint; | |
| 6452 | + | |
| 6453 | +UnionUint UnionUint_from_JSON(mixed json) { | |
| 6454 | + return json; | |
| 6455 | +} | |
| 6456 | + | |
| 6457 | +class Uint { | |
| 6458 | + | |
| 6459 | + string encode_json() { | |
| 6460 | + mapping(string:mixed) json = ([ | |
| 6461 | + ]); | |
| 6462 | + | |
| 6463 | + return Standards.JSON.encode(json); | |
| 6464 | + } | |
| 6465 | +} | |
| 6466 | + | |
| 6467 | +Uint Uint_from_JSON(mixed json) { | |
| 6468 | + Uint retval = Uint(); | |
| 6469 | + | |
| 6470 | + return retval; | |
| 6471 | +} | |
| 6472 | + | |
| 6473 | +typedef float|Ulong UnionUlong; | |
| 6474 | + | |
| 6475 | +UnionUlong UnionUlong_from_JSON(mixed json) { | |
| 6476 | + return json; | |
| 6477 | +} | |
| 6478 | + | |
| 6479 | +class Ulong { | |
| 6480 | + | |
| 6481 | + string encode_json() { | |
| 6482 | + mapping(string:mixed) json = ([ | |
| 6483 | + ]); | |
| 6484 | + | |
| 6485 | + return Standards.JSON.encode(json); | |
| 6486 | + } | |
| 6487 | +} | |
| 6488 | + | |
| 6489 | +Ulong Ulong_from_JSON(mixed json) { | |
| 6490 | + Ulong retval = Ulong(); | |
| 6491 | + | |
| 6492 | + return retval; | |
| 6493 | +} | |
| 6494 | + | |
| 6495 | +typedef float|Unchecked UnionUnchecked; | |
| 6496 | + | |
| 6497 | +UnionUnchecked UnionUnchecked_from_JSON(mixed json) { | |
| 6498 | + return json; | |
| 6499 | +} | |
| 6500 | + | |
| 6501 | +class Unchecked { | |
| 6502 | + | |
| 6503 | + string encode_json() { | |
| 6504 | + mapping(string:mixed) json = ([ | |
| 6505 | + ]); | |
| 6506 | + | |
| 6507 | + return Standards.JSON.encode(json); | |
| 6508 | + } | |
| 6509 | +} | |
| 6510 | + | |
| 6511 | +Unchecked Unchecked_from_JSON(mixed json) { | |
| 6512 | + Unchecked retval = Unchecked(); | |
| 6513 | + | |
| 6514 | + return retval; | |
| 6515 | +} | |
| 6516 | + | |
| 6517 | +typedef float|Undefined UnionUndefined; | |
| 6518 | + | |
| 6519 | +UnionUndefined UnionUndefined_from_JSON(mixed json) { | |
| 6520 | + return json; | |
| 6521 | +} | |
| 6522 | + | |
| 6523 | +class Undefined { | |
| 6524 | + | |
| 6525 | + string encode_json() { | |
| 6526 | + mapping(string:mixed) json = ([ | |
| 6527 | + ]); | |
| 6528 | + | |
| 6529 | + return Standards.JSON.encode(json); | |
| 6530 | + } | |
| 6531 | +} | |
| 6532 | + | |
| 6533 | +Undefined Undefined_from_JSON(mixed json) { | |
| 6534 | + Undefined retval = Undefined(); | |
| 6535 | + | |
| 6536 | + return retval; | |
| 6537 | +} | |
| 6538 | + | |
| 6539 | +typedef float|Union UnionUnionUnion; | |
| 6540 | + | |
| 6541 | +UnionUnionUnion UnionUnionUnion_from_JSON(mixed json) { | |
| 6542 | + return json; | |
| 6543 | +} | |
| 6544 | + | |
| 6545 | +class Union { | |
| 6546 | + | |
| 6547 | + string encode_json() { | |
| 6548 | + mapping(string:mixed) json = ([ | |
| 6549 | + ]); | |
| 6550 | + | |
| 6551 | + return Standards.JSON.encode(json); | |
| 6552 | + } | |
| 6553 | +} | |
| 6554 | + | |
| 6555 | +Union Union_from_JSON(mixed json) { | |
| 6556 | + Union retval = Union(); | |
| 6557 | + | |
| 6558 | + return retval; | |
| 6559 | +} | |
| 6560 | + | |
| 6561 | +typedef float|Unowned UnionUnowned; | |
| 6562 | + | |
| 6563 | +UnionUnowned UnionUnowned_from_JSON(mixed json) { | |
| 6564 | + return json; | |
| 6565 | +} | |
| 6566 | + | |
| 6567 | +class Unowned { | |
| 6568 | + | |
| 6569 | + string encode_json() { | |
| 6570 | + mapping(string:mixed) json = ([ | |
| 6571 | + ]); | |
| 6572 | + | |
| 6573 | + return Standards.JSON.encode(json); | |
| 6574 | + } | |
| 6575 | +} | |
| 6576 | + | |
| 6577 | +Unowned Unowned_from_JSON(mixed json) { | |
| 6578 | + Unowned retval = Unowned(); | |
| 6579 | + | |
| 6580 | + return retval; | |
| 6581 | +} | |
| 6582 | + | |
| 6583 | +typedef float|Unsafe UnionUnsafe; | |
| 6584 | + | |
| 6585 | +UnionUnsafe UnionUnsafe_from_JSON(mixed json) { | |
| 6586 | + return json; | |
| 6587 | +} | |
| 6588 | + | |
| 6589 | +class Unsafe { | |
| 6590 | + | |
| 6591 | + string encode_json() { | |
| 6592 | + mapping(string:mixed) json = ([ | |
| 6593 | + ]); | |
| 6594 | + | |
| 6595 | + return Standards.JSON.encode(json); | |
| 6596 | + } | |
| 6597 | +} | |
| 6598 | + | |
| 6599 | +Unsafe Unsafe_from_JSON(mixed json) { | |
| 6600 | + Unsafe retval = Unsafe(); | |
| 6601 | + | |
| 6602 | + return retval; | |
| 6603 | +} | |
| 6604 | + | |
| 6605 | +typedef float|Unsigned UnionUnsigned; | |
| 6606 | + | |
| 6607 | +UnionUnsigned UnionUnsigned_from_JSON(mixed json) { | |
| 6608 | + return json; | |
| 6609 | +} | |
| 6610 | + | |
| 6611 | +class Unsigned { | |
| 6612 | + | |
| 6613 | + string encode_json() { | |
| 6614 | + mapping(string:mixed) json = ([ | |
| 6615 | + ]); | |
| 6616 | + | |
| 6617 | + return Standards.JSON.encode(json); | |
| 6618 | + } | |
| 6619 | +} | |
| 6620 | + | |
| 6621 | +Unsigned Unsigned_from_JSON(mixed json) { | |
| 6622 | + Unsigned retval = Unsigned(); | |
| 6623 | + | |
| 6624 | + return retval; | |
| 6625 | +} | |
| 6626 | + | |
| 6627 | +typedef float|Ushort UnionUshort; | |
| 6628 | + | |
| 6629 | +UnionUshort UnionUshort_from_JSON(mixed json) { | |
| 6630 | + return json; | |
| 6631 | +} | |
| 6632 | + | |
| 6633 | +class Ushort { | |
| 6634 | + | |
| 6635 | + string encode_json() { | |
| 6636 | + mapping(string:mixed) json = ([ | |
| 6637 | + ]); | |
| 6638 | + | |
| 6639 | + return Standards.JSON.encode(json); | |
| 6640 | + } | |
| 6641 | +} | |
| 6642 | + | |
| 6643 | +Ushort Ushort_from_JSON(mixed json) { | |
| 6644 | + Ushort retval = Ushort(); | |
| 6645 | + | |
| 6646 | + return retval; | |
| 6647 | +} | |
| 6648 | + | |
| 6649 | +typedef float|Using UnionUsing; | |
| 6650 | + | |
| 6651 | +UnionUsing UnionUsing_from_JSON(mixed json) { | |
| 6652 | + return json; | |
| 6653 | +} | |
| 6654 | + | |
| 6655 | +class Using { | |
| 6656 | + | |
| 6657 | + string encode_json() { | |
| 6658 | + mapping(string:mixed) json = ([ | |
| 6659 | + ]); | |
| 6660 | + | |
| 6661 | + return Standards.JSON.encode(json); | |
| 6662 | + } | |
| 6663 | +} | |
| 6664 | + | |
| 6665 | +Using Using_from_JSON(mixed json) { | |
| 6666 | + Using retval = Using(); | |
| 6667 | + | |
| 6668 | + return retval; | |
| 6669 | +} | |
| 6670 | + | |
| 6671 | +typedef float|Var UnionVar; | |
| 6672 | + | |
| 6673 | +UnionVar UnionVar_from_JSON(mixed json) { | |
| 6674 | + return json; | |
| 6675 | +} | |
| 6676 | + | |
| 6677 | +class Var { | |
| 6678 | + | |
| 6679 | + string encode_json() { | |
| 6680 | + mapping(string:mixed) json = ([ | |
| 6681 | + ]); | |
| 6682 | + | |
| 6683 | + return Standards.JSON.encode(json); | |
| 6684 | + } | |
| 6685 | +} | |
| 6686 | + | |
| 6687 | +Var Var_from_JSON(mixed json) { | |
| 6688 | + Var retval = Var(); | |
| 6689 | + | |
| 6690 | + return retval; | |
| 6691 | +} | |
| 6692 | + | |
| 6693 | +typedef float|Virtual UnionVirtual; | |
| 6694 | + | |
| 6695 | +UnionVirtual UnionVirtual_from_JSON(mixed json) { | |
| 6696 | + return json; | |
| 6697 | +} | |
| 6698 | + | |
| 6699 | +class Virtual { | |
| 6700 | + | |
| 6701 | + string encode_json() { | |
| 6702 | + mapping(string:mixed) json = ([ | |
| 6703 | + ]); | |
| 6704 | + | |
| 6705 | + return Standards.JSON.encode(json); | |
| 6706 | + } | |
| 6707 | +} | |
| 6708 | + | |
| 6709 | +Virtual Virtual_from_JSON(mixed json) { | |
| 6710 | + Virtual retval = Virtual(); | |
| 6711 | + | |
| 6712 | + return retval; | |
| 6713 | +} | |
| 6714 | + | |
| 6715 | +typedef float|Volatile UnionVolatile; | |
| 6716 | + | |
| 6717 | +UnionVolatile UnionVolatile_from_JSON(mixed json) { | |
| 6718 | + return json; | |
| 6719 | +} | |
| 6720 | + | |
| 6721 | +class Volatile { | |
| 6722 | + | |
| 6723 | + string encode_json() { | |
| 6724 | + mapping(string:mixed) json = ([ | |
| 6725 | + ]); | |
| 6726 | + | |
| 6727 | + return Standards.JSON.encode(json); | |
| 6728 | + } | |
| 6729 | +} | |
| 6730 | + | |
| 6731 | +Volatile Volatile_from_JSON(mixed json) { | |
| 6732 | + Volatile retval = Volatile(); | |
| 6733 | + | |
| 6734 | + return retval; | |
| 6735 | +} | |
| 6736 | + | |
| 6737 | +typedef float|WcharT UnionWcharT; | |
| 6738 | + | |
| 6739 | +UnionWcharT UnionWcharT_from_JSON(mixed json) { | |
| 6740 | + return json; | |
| 6741 | +} | |
| 6742 | + | |
| 6743 | +class WcharT { | |
| 6744 | + | |
| 6745 | + string encode_json() { | |
| 6746 | + mapping(string:mixed) json = ([ | |
| 6747 | + ]); | |
| 6748 | + | |
| 6749 | + return Standards.JSON.encode(json); | |
| 6750 | + } | |
| 6751 | +} | |
| 6752 | + | |
| 6753 | +WcharT WcharT_from_JSON(mixed json) { | |
| 6754 | + WcharT retval = WcharT(); | |
| 6755 | + | |
| 6756 | + return retval; | |
| 6757 | +} | |
| 6758 | + | |
| 6759 | +typedef float|Weak UnionWeak; | |
| 6760 | + | |
| 6761 | +UnionWeak UnionWeak_from_JSON(mixed json) { | |
| 6762 | + return json; | |
| 6763 | +} | |
| 6764 | + | |
| 6765 | +class Weak { | |
| 6766 | + | |
| 6767 | + string encode_json() { | |
| 6768 | + mapping(string:mixed) json = ([ | |
| 6769 | + ]); | |
| 6770 | + | |
| 6771 | + return Standards.JSON.encode(json); | |
| 6772 | + } | |
| 6773 | +} | |
| 6774 | + | |
| 6775 | +Weak Weak_from_JSON(mixed json) { | |
| 6776 | + Weak retval = Weak(); | |
| 6777 | + | |
| 6778 | + return retval; | |
| 6779 | +} | |
| 6780 | + | |
| 6781 | +typedef float|Where UnionWhere; | |
| 6782 | + | |
| 6783 | +UnionWhere UnionWhere_from_JSON(mixed json) { | |
| 6784 | + return json; | |
| 6785 | +} | |
| 6786 | + | |
| 6787 | +class Where { | |
| 6788 | + | |
| 6789 | + string encode_json() { | |
| 6790 | + mapping(string:mixed) json = ([ | |
| 6791 | + ]); | |
| 6792 | + | |
| 6793 | + return Standards.JSON.encode(json); | |
| 6794 | + } | |
| 6795 | +} | |
| 6796 | + | |
| 6797 | +Where Where_from_JSON(mixed json) { | |
| 6798 | + Where retval = Where(); | |
| 6799 | + | |
| 6800 | + return retval; | |
| 6801 | +} | |
| 6802 | + | |
| 6803 | +typedef float|WillSet UnionWillSet; | |
| 6804 | + | |
| 6805 | +UnionWillSet UnionWillSet_from_JSON(mixed json) { | |
| 6806 | + return json; | |
| 6807 | +} | |
| 6808 | + | |
| 6809 | +class WillSet { | |
| 6810 | + | |
| 6811 | + string encode_json() { | |
| 6812 | + mapping(string:mixed) json = ([ | |
| 6813 | + ]); | |
| 6814 | + | |
| 6815 | + return Standards.JSON.encode(json); | |
| 6816 | + } | |
| 6817 | +} | |
| 6818 | + | |
| 6819 | +WillSet WillSet_from_JSON(mixed json) { | |
| 6820 | + WillSet retval = WillSet(); | |
| 6821 | + | |
| 6822 | + return retval; | |
| 6823 | +} | |
| 6824 | + | |
| 6825 | +typedef float|With UnionWith; | |
| 6826 | + | |
| 6827 | +UnionWith UnionWith_from_JSON(mixed json) { | |
| 6828 | + return json; | |
| 6829 | +} | |
| 6830 | + | |
| 6831 | +class With { | |
| 6832 | + | |
| 6833 | + string encode_json() { | |
| 6834 | + mapping(string:mixed) json = ([ | |
| 6835 | + ]); | |
| 6836 | + | |
| 6837 | + return Standards.JSON.encode(json); | |
| 6838 | + } | |
| 6839 | +} | |
| 6840 | + | |
| 6841 | +With With_from_JSON(mixed json) { | |
| 6842 | + With retval = With(); | |
| 6843 | + | |
| 6844 | + return retval; | |
| 6845 | +} | |
| 6846 | + | |
| 6847 | +typedef float|Xor UnionXor; | |
| 6848 | + | |
| 6849 | +UnionXor UnionXor_from_JSON(mixed json) { | |
| 6850 | + return json; | |
| 6851 | +} | |
| 6852 | + | |
| 6853 | +class Xor { | |
| 6854 | + | |
| 6855 | + string encode_json() { | |
| 6856 | + mapping(string:mixed) json = ([ | |
| 6857 | + ]); | |
| 6858 | + | |
| 6859 | + return Standards.JSON.encode(json); | |
| 6860 | + } | |
| 6861 | +} | |
| 6862 | + | |
| 6863 | +Xor Xor_from_JSON(mixed json) { | |
| 6864 | + Xor retval = Xor(); | |
| 6865 | + | |
| 6866 | + return retval; | |
| 6867 | +} | |
| 6868 | + | |
| 6869 | +typedef float|XorEq UnionXorEq; | |
| 6870 | + | |
| 6871 | +UnionXorEq UnionXorEq_from_JSON(mixed json) { | |
| 6872 | + return json; | |
| 6873 | +} | |
| 6874 | + | |
| 6875 | +class XorEq { | |
| 6876 | + | |
| 6877 | + string encode_json() { | |
| 6878 | + mapping(string:mixed) json = ([ | |
| 6879 | + ]); | |
| 6880 | + | |
| 6881 | + return Standards.JSON.encode(json); | |
| 6882 | + } | |
| 6883 | +} | |
| 6884 | + | |
| 6885 | +XorEq XorEq_from_JSON(mixed json) { | |
| 6886 | + XorEq retval = XorEq(); | |
| 6887 | + | |
| 6888 | + return retval; | |
| 6889 | +} | |
| 6890 | + | |
| 6891 | +typedef float|Yes UnionYes; | |
| 6892 | + | |
| 6893 | +UnionYes UnionYes_from_JSON(mixed json) { | |
| 6894 | + return json; | |
| 6895 | +} | |
| 6896 | + | |
| 6897 | +class Yes { | |
| 6898 | + | |
| 6899 | + string encode_json() { | |
| 6900 | + mapping(string:mixed) json = ([ | |
| 6901 | + ]); | |
| 6902 | + | |
| 6903 | + return Standards.JSON.encode(json); | |
| 6904 | + } | |
| 6905 | +} | |
| 6906 | + | |
| 6907 | +Yes Yes_from_JSON(mixed json) { | |
| 6908 | + Yes retval = Yes(); | |
| 6909 | + | |
| 6910 | + return retval; | |
| 6911 | +} | |
| 6912 | + | |
| 6913 | +typedef float|Yield UnionYield; | |
| 6914 | + | |
| 6915 | +UnionYield UnionYield_from_JSON(mixed json) { | |
| 6916 | + return json; | |
| 6917 | +} | |
| 6918 | + | |
| 6919 | +class Yield { | |
| 6920 | + | |
| 6921 | + string encode_json() { | |
| 6922 | + mapping(string:mixed) json = ([ | |
| 6923 | + ]); | |
| 6924 | + | |
| 6925 | + return Standards.JSON.encode(json); | |
| 6926 | + } | |
| 6927 | +} | |
| 6928 | + | |
| 6929 | +Yield Yield_from_JSON(mixed json) { | |
| 6930 | + Yield retval = Yield(); | |
| 6931 | + | |
| 6932 | + return retval; | |
| 6933 | +} |
Test case
1 generated file · +4 −0test/inputs/schema/nullable-optional-one-of.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -39,3 +39,7 @@ enum Kind { | ||
| 39 | 39 | ONE = "one", // json: "one" |
| 40 | 40 | TWO = "two", // json: "two" |
| 41 | 41 | } |
| 42 | + | |
| 43 | +Kind Kind_from_JSON(mixed json) { | |
| 44 | + return json; | |
| 45 | +} |
Test case
1 generated file · +0 −36test/inputs/schema/optional-any.schema
Dschema-pikedefault / TopLevel.pmod+0 −36
| @@ -1,36 +0,0 @@ | ||
| 1 | -// This source has been automatically generated by quicktype. | |
| 2 | -// ( https://github.com/quicktype/quicktype ) | |
| 3 | -// | |
| 4 | -// To use this code, simply import it into your project as a Pike module. | |
| 5 | -// To JSON-encode your object, you can pass it to `Standards.JSON.encode` | |
| 6 | -// or call `encode_json` on it. | |
| 7 | -// | |
| 8 | -// To decode a JSON string, first pass it to `Standards.JSON.decode`, | |
| 9 | -// and then pass the result to `<YourClass>_from_JSON`. | |
| 10 | -// It will return an instance of <YourClass>. | |
| 11 | -// Bear in mind that these functions have unexpected behavior, | |
| 12 | -// and will likely throw an error, if the JSON string does not | |
| 13 | -// match the expected interface, even if the JSON itself is valid. | |
| 14 | - | |
| 15 | -class TopLevel { | |
| 16 | - bool bar; // json: "bar" | |
| 17 | - mixed foo; // json: "foo" | |
| 18 | - | |
| 19 | - string encode_json() { | |
| 20 | - mapping(string:mixed) json = ([ | |
| 21 | - "bar" : bar, | |
| 22 | - "foo" : foo, | |
| 23 | - ]); | |
| 24 | - | |
| 25 | - return Standards.JSON.encode(json); | |
| 26 | - } | |
| 27 | -} | |
| 28 | - | |
| 29 | -TopLevel TopLevel_from_JSON(mixed json) { | |
| 30 | - TopLevel retval = TopLevel(); | |
| 31 | - | |
| 32 | - retval.bar = json["bar"]; | |
| 33 | - retval.foo = json["foo"]; | |
| 34 | - | |
| 35 | - return retval; | |
| 36 | -} |
Test case
1 generated file · +4 −0test/inputs/schema/optional-enum.schema
Mschema-pikedefault / TopLevel.pmod+4 −0
| @@ -39,3 +39,7 @@ enum Shortcut { | ||
| 39 | 39 | HIDDEN = "hidden", // json: "hidden" |
| 40 | 40 | VISIBLE = "visible", // json: "visible" |
| 41 | 41 | } |
| 42 | + | |
| 43 | +Shortcut Shortcut_from_JSON(mixed json) { | |
| 44 | + return json; | |
| 45 | +} |
Test case
1 generated file · +8 −0test/inputs/schema/renaming-bug.schema
Mschema-pikedefault / TopLevel.pmod+8 −0
| @@ -355,6 +355,10 @@ enum Axis { | ||
| 355 | 355 | ZX = "ZX", // json: "ZX" |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | +Axis Axis_from_JSON(mixed json) { | |
| 359 | + return json; | |
| 360 | +} | |
| 361 | + | |
| 358 | 362 | enum Name { |
| 359 | 363 | TRUCK = "truck", // json: "truck" |
| 360 | 364 | BUS = "bus", // json: "bus" |
| @@ -366,3 +370,7 @@ enum Name { | ||
| 366 | 370 | JEEP = "Jeep", // json: "Jeep" |
| 367 | 371 | TROLLEY = "Trolley", // json: "Trolley" |
| 368 | 372 | } |
| 373 | + | |
| 374 | +Name Name_from_JSON(mixed json) { | |
| 375 | + return json; | |
| 376 | +} |
Test case
1 generated file · +23 −0test/inputs/schema/top-level-enum.schema
Aschema-pikedefault / TopLevel.pmod+23 −0
| @@ -0,0 +1,23 @@ | ||
| 1 | +// This source has been automatically generated by quicktype. | |
| 2 | +// ( https://github.com/quicktype/quicktype ) | |
| 3 | +// | |
| 4 | +// To use this code, simply import it into your project as a Pike module. | |
| 5 | +// To JSON-encode your object, you can pass it to `Standards.JSON.encode` | |
| 6 | +// or call `encode_json` on it. | |
| 7 | +// | |
| 8 | +// To decode a JSON string, first pass it to `Standards.JSON.decode`, | |
| 9 | +// and then pass the result to `<YourClass>_from_JSON`. | |
| 10 | +// It will return an instance of <YourClass>. | |
| 11 | +// Bear in mind that these functions have unexpected behavior, | |
| 12 | +// and will likely throw an error, if the JSON string does not | |
| 13 | +// match the expected interface, even if the JSON itself is valid. | |
| 14 | + | |
| 15 | +enum TopLevel { | |
| 16 | + ONE = "one", // json: "one" | |
| 17 | + THREE = "three", // json: "three" | |
| 18 | + TWO = "two", // json: "two" | |
| 19 | +} | |
| 20 | + | |
| 21 | +TopLevel TopLevel_from_JSON(mixed json) { | |
| 22 | + return json; | |
| 23 | +} |
Test case
1 generated file · +144 −0test/inputs/schema/vega-lite.schema
Mschema-pikedefault / TopLevel.pmod+144 −0
| @@ -142,12 +142,20 @@ enum Contains { | ||
| 142 | 142 | PADDING = "padding", // json: "padding" |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | +Contains Contains_from_JSON(mixed json) { | |
| 146 | + return json; | |
| 147 | +} | |
| 148 | + | |
| 145 | 149 | enum AutosizeType { |
| 146 | 150 | PAD = "pad", // json: "pad" |
| 147 | 151 | FIT = "fit", // json: "fit" |
| 148 | 152 | AUTOSIZE_TYPE_NONE = "none", // json: "none" |
| 149 | 153 | } |
| 150 | 154 | |
| 155 | +AutosizeType AutosizeType_from_JSON(mixed json) { | |
| 156 | + return json; | |
| 157 | +} | |
| 158 | + | |
| 151 | 159 | // Vega-Lite configuration object. This property can only be defined at the top-level of a |
| 152 | 160 | // specification. |
| 153 | 161 | class Config { |
| @@ -408,12 +416,20 @@ enum HorizontalAlign { | ||
| 408 | 416 | HORIZONTAL_ALIGN_CENTER = "center", // json: "center" |
| 409 | 417 | } |
| 410 | 418 | |
| 419 | +HorizontalAlign HorizontalAlign_from_JSON(mixed json) { | |
| 420 | + return json; | |
| 421 | +} | |
| 422 | + | |
| 411 | 423 | enum VerticalAlign { |
| 412 | 424 | VERTICAL_ALIGN_TOP = "top", // json: "top" |
| 413 | 425 | VERTICAL_ALIGN_MIDDLE = "middle", // json: "middle" |
| 414 | 426 | VERTICAL_ALIGN_BOTTOM = "bottom", // json: "bottom" |
| 415 | 427 | } |
| 416 | 428 | |
| 429 | +VerticalAlign VerticalAlign_from_JSON(mixed json) { | |
| 430 | + return json; | |
| 431 | +} | |
| 432 | + | |
| 417 | 433 | enum Cursor { |
| 418 | 434 | CURSOR_AUTO = "auto", // json: "auto" |
| 419 | 435 | DEFAULT = "default", // json: "default" |
| @@ -453,11 +469,19 @@ enum Cursor { | ||
| 453 | 469 | GRABBING = "grabbing", // json: "grabbing" |
| 454 | 470 | } |
| 455 | 471 | |
| 472 | +Cursor Cursor_from_JSON(mixed json) { | |
| 473 | + return json; | |
| 474 | +} | |
| 475 | + | |
| 456 | 476 | enum FontStyle { |
| 457 | 477 | FONT_STYLE_NORMAL = "normal", // json: "normal" |
| 458 | 478 | ITALIC = "italic", // json: "italic" |
| 459 | 479 | } |
| 460 | 480 | |
| 481 | +FontStyle FontStyle_from_JSON(mixed json) { | |
| 482 | + return json; | |
| 483 | +} | |
| 484 | + | |
| 461 | 485 | // The font weight (e.g., `"bold"`). |
| 462 | 486 | // |
| 463 | 487 | // Font weight for title text. |
| @@ -472,6 +496,10 @@ enum FontWeight { | ||
| 472 | 496 | BOLD = "bold", // json: "bold" |
| 473 | 497 | } |
| 474 | 498 | |
| 499 | +FontWeight FontWeight_from_JSON(mixed json) { | |
| 500 | + return json; | |
| 501 | +} | |
| 502 | + | |
| 475 | 503 | enum Interpolate { |
| 476 | 504 | INTERPOLATE_LINEAR = "linear", // json: "linear" |
| 477 | 505 | LINEAR_CLOSED = "linear-closed", // json: "linear-closed" |
| @@ -488,11 +516,19 @@ enum Interpolate { | ||
| 488 | 516 | MONOTONE = "monotone", // json: "monotone" |
| 489 | 517 | } |
| 490 | 518 | |
| 519 | +Interpolate Interpolate_from_JSON(mixed json) { | |
| 520 | + return json; | |
| 521 | +} | |
| 522 | + | |
| 491 | 523 | enum Orient { |
| 492 | 524 | HORIZONTAL = "horizontal", // json: "horizontal" |
| 493 | 525 | VERTICAL = "vertical", // json: "vertical" |
| 494 | 526 | } |
| 495 | 527 | |
| 528 | +Orient Orient_from_JSON(mixed json) { | |
| 529 | + return json; | |
| 530 | +} | |
| 531 | + | |
| 496 | 532 | // Axis configuration, which determines default properties for all `x` and `y` |
| 497 | 533 | // [axes](axis.html). For a full list of axis configuration options, please see the |
| 498 | 534 | // [corresponding section of the axis documentation](axis.html#config). |
| @@ -664,6 +700,10 @@ enum LabelOverlapEnum { | ||
| 664 | 700 | GREEDY = "greedy", // json: "greedy" |
| 665 | 701 | } |
| 666 | 702 | |
| 703 | +LabelOverlapEnum LabelOverlapEnum_from_JSON(mixed json) { | |
| 704 | + return json; | |
| 705 | +} | |
| 706 | + | |
| 667 | 707 | // Font weight of the title. (e.g., `"bold"`). |
| 668 | 708 | // |
| 669 | 709 | // The font weight of the legend title. |
| @@ -940,10 +980,18 @@ enum FieldTitle { | ||
| 940 | 980 | PLAIN = "plain", // json: "plain" |
| 941 | 981 | } |
| 942 | 982 | |
| 983 | +FieldTitle FieldTitle_from_JSON(mixed json) { | |
| 984 | + return json; | |
| 985 | +} | |
| 986 | + | |
| 943 | 987 | enum InvalidValues { |
| 944 | 988 | FILTER = "filter", // json: "filter" |
| 945 | 989 | } |
| 946 | 990 | |
| 991 | +InvalidValues InvalidValues_from_JSON(mixed json) { | |
| 992 | + return json; | |
| 993 | +} | |
| 994 | + | |
| 947 | 995 | // Legend configuration, which determines default properties for all [legends](legend.html). |
| 948 | 996 | // For a full list of legend configuration options, please see the [corresponding section of |
| 949 | 997 | // in the legend documentation](legend.html#config). |
| @@ -1082,6 +1130,10 @@ enum LegendOrient { | ||
| 1082 | 1130 | LEGEND_ORIENT_NONE = "none", // json: "none" |
| 1083 | 1131 | } |
| 1084 | 1132 | |
| 1133 | +LegendOrient LegendOrient_from_JSON(mixed json) { | |
| 1134 | + return json; | |
| 1135 | +} | |
| 1136 | + | |
| 1085 | 1137 | // The default visualization padding, in pixels, from the edge of the visualization canvas |
| 1086 | 1138 | // to the data rectangle. If a number, specifies padding for all sides. |
| 1087 | 1139 | // If an object, the value should have the format `{"left": 5, "top": 5, "right": 5, |
| @@ -1216,6 +1268,10 @@ enum VgProjectionType { | ||
| 1216 | 1268 | TRANSVERSE_MERCATOR = "transverseMercator", // json: "transverseMercator" |
| 1217 | 1269 | } |
| 1218 | 1270 | |
| 1271 | +VgProjectionType VgProjectionType_from_JSON(mixed json) { | |
| 1272 | + return json; | |
| 1273 | +} | |
| 1274 | + | |
| 1219 | 1275 | typedef array(PrecisionValue)|VgScheme RangeConfigValue; |
| 1220 | 1276 | |
| 1221 | 1277 | RangeConfigValue RangeConfigValue_from_JSON(mixed json) { |
| @@ -1409,11 +1465,19 @@ enum BindEnum { | ||
| 1409 | 1465 | SCALES = "scales", // json: "scales" |
| 1410 | 1466 | } |
| 1411 | 1467 | |
| 1468 | +BindEnum BindEnum_from_JSON(mixed json) { | |
| 1469 | + return json; | |
| 1470 | +} | |
| 1471 | + | |
| 1412 | 1472 | enum Empty { |
| 1413 | 1473 | ALL = "all", // json: "all" |
| 1414 | 1474 | EMPTY_NONE = "none", // json: "none" |
| 1415 | 1475 | } |
| 1416 | 1476 | |
| 1477 | +Empty Empty_from_JSON(mixed json) { | |
| 1478 | + return json; | |
| 1479 | +} | |
| 1480 | + | |
| 1417 | 1481 | enum SingleDefChannel { |
| 1418 | 1482 | X = "x", // json: "x" |
| 1419 | 1483 | Y = "y", // json: "y" |
| @@ -1430,6 +1494,10 @@ enum SingleDefChannel { | ||
| 1430 | 1494 | HREF = "href", // json: "href" |
| 1431 | 1495 | } |
| 1432 | 1496 | |
| 1497 | +SingleDefChannel SingleDefChannel_from_JSON(mixed json) { | |
| 1498 | + return json; | |
| 1499 | +} | |
| 1500 | + | |
| 1433 | 1501 | // An interval selection also adds a rectangle mark to depict the |
| 1434 | 1502 | // extents of the interval. The `mark` property can be used to customize the |
| 1435 | 1503 | // appearance of the mark. |
| @@ -1477,6 +1545,10 @@ enum SelectionResolution { | ||
| 1477 | 1545 | INTERSECT = "intersect", // json: "intersect" |
| 1478 | 1546 | } |
| 1479 | 1547 | |
| 1548 | +SelectionResolution SelectionResolution_from_JSON(mixed json) { | |
| 1549 | + return json; | |
| 1550 | +} | |
| 1551 | + | |
| 1480 | 1552 | // When truthy, allows a user to interactively move an interval selection |
| 1481 | 1553 | // back-and-forth. Can be `true`, `false` (to disable panning), or a |
| 1482 | 1554 | // [Vega event stream definition](https://vega.github.io/vega/docs/event-streams/) |
| @@ -1637,6 +1709,10 @@ enum StackOffset { | ||
| 1637 | 1709 | NORMALIZE = "normalize", // json: "normalize" |
| 1638 | 1710 | } |
| 1639 | 1711 | |
| 1712 | +StackOffset StackOffset_from_JSON(mixed json) { | |
| 1713 | + return json; | |
| 1714 | +} | |
| 1715 | + | |
| 1640 | 1716 | class VgMarkConfig { |
| 1641 | 1717 | HorizontalAlign|mixed align; // json: "align" |
| 1642 | 1718 | float|mixed angle; // json: "angle" |
| @@ -2019,6 +2095,10 @@ enum Anchor { | ||
| 2019 | 2095 | END = "end", // json: "end" |
| 2020 | 2096 | } |
| 2021 | 2097 | |
| 2098 | +Anchor Anchor_from_JSON(mixed json) { | |
| 2099 | + return json; | |
| 2100 | +} | |
| 2101 | + | |
| 2022 | 2102 | enum TitleOrient { |
| 2023 | 2103 | ORIENT_TOP = "top", // json: "top" |
| 2024 | 2104 | ORIENT_BOTTOM = "bottom", // json: "bottom" |
| @@ -2026,6 +2106,10 @@ enum TitleOrient { | ||
| 2026 | 2106 | ORIENT_RIGHT = "right", // json: "right" |
| 2027 | 2107 | } |
| 2028 | 2108 | |
| 2109 | +TitleOrient TitleOrient_from_JSON(mixed json) { | |
| 2110 | + return json; | |
| 2111 | +} | |
| 2112 | + | |
| 2029 | 2113 | // Default properties for [single view plots](spec.html#single). |
| 2030 | 2114 | class ViewConfig { |
| 2031 | 2115 | bool|mixed clip; // json: "clip" |
| @@ -2153,6 +2237,10 @@ enum ParseEnum { | ||
| 2153 | 2237 | PARSE_AUTO = "auto", // json: "auto" |
| 2154 | 2238 | } |
| 2155 | 2239 | |
| 2240 | +ParseEnum ParseEnum_from_JSON(mixed json) { | |
| 2241 | + return json; | |
| 2242 | +} | |
| 2243 | + | |
| 2156 | 2244 | enum DataFormatType { |
| 2157 | 2245 | CSV = "csv", // json: "csv" |
| 2158 | 2246 | TSV = "tsv", // json: "tsv" |
| @@ -2160,6 +2248,10 @@ enum DataFormatType { | ||
| 2160 | 2248 | TOPOJSON = "topojson", // json: "topojson" |
| 2161 | 2249 | } |
| 2162 | 2250 | |
| 2251 | +DataFormatType DataFormatType_from_JSON(mixed json) { | |
| 2252 | + return json; | |
| 2253 | +} | |
| 2254 | + | |
| 2163 | 2255 | // The full data set, included inline. This can be an array of objects or primitive values |
| 2164 | 2256 | // or a string. |
| 2165 | 2257 | // Arrays of primitive values are ingested as objects with a `data` property. Strings are |
| @@ -2351,6 +2443,10 @@ enum AggregateOp { | ||
| 2351 | 2443 | VARIANCEP = "variancep", // json: "variancep" |
| 2352 | 2444 | } |
| 2353 | 2445 | |
| 2446 | +AggregateOp AggregateOp_from_JSON(mixed json) { | |
| 2447 | + return json; | |
| 2448 | +} | |
| 2449 | + | |
| 2354 | 2450 | typedef BinParams|bool Bin; |
| 2355 | 2451 | |
| 2356 | 2452 | Bin Bin_from_JSON(mixed json) { |
| @@ -2687,6 +2783,10 @@ enum TimeUnit { | ||
| 2687 | 2783 | UTCSECONDSMILLISECONDS = "utcsecondsmilliseconds", // json: "utcsecondsmilliseconds" |
| 2688 | 2784 | } |
| 2689 | 2785 | |
| 2786 | +TimeUnit TimeUnit_from_JSON(mixed json) { | |
| 2787 | + return json; | |
| 2788 | +} | |
| 2789 | + | |
| 2690 | 2790 | // A constant value in visual domain (e.g., `"red"` / "#0099ff" for color, values between |
| 2691 | 2791 | // `0` to `1` for opacity). |
| 2692 | 2792 | // |
| @@ -2779,6 +2879,10 @@ enum RepeatEnum { | ||
| 2779 | 2879 | REPEAT_COLUMN = "column", // json: "column" |
| 2780 | 2880 | } |
| 2781 | 2881 | |
| 2882 | +RepeatEnum RepeatEnum_from_JSON(mixed json) { | |
| 2883 | + return json; | |
| 2884 | +} | |
| 2885 | + | |
| 2782 | 2886 | // Properties of a legend or boolean flag for determining whether to show it. |
| 2783 | 2887 | class Legend { |
| 2784 | 2888 | float|mixed entry_padding; // json: "entryPadding" |
| @@ -2832,6 +2936,10 @@ enum LegendType { | ||
| 2832 | 2936 | GRADIENT = "gradient", // json: "gradient" |
| 2833 | 2937 | } |
| 2834 | 2938 | |
| 2939 | +LegendType LegendType_from_JSON(mixed json) { | |
| 2940 | + return json; | |
| 2941 | +} | |
| 2942 | + | |
| 2835 | 2943 | typedef DateTime|float|string LegendValue; |
| 2836 | 2944 | |
| 2837 | 2945 | LegendValue LegendValue_from_JSON(mixed json) { |
| @@ -2957,6 +3065,10 @@ enum Domain { | ||
| 2957 | 3065 | UNAGGREGATED = "unaggregated", // json: "unaggregated" |
| 2958 | 3066 | } |
| 2959 | 3067 | |
| 3068 | +Domain Domain_from_JSON(mixed json) { | |
| 3069 | + return json; | |
| 3070 | +} | |
| 3071 | + | |
| 2960 | 3072 | // The interpolation method for range values. By default, a general interpolator for |
| 2961 | 3073 | // numbers, dates, strings and colors (in RGB space) is used. For color ranges, this |
| 2962 | 3074 | // property allows interpolation in alternative color spaces. Legal values include `rgb`, |
| @@ -3005,6 +3117,10 @@ enum InterpolateParamsType { | ||
| 3005 | 3117 | CUBEHELIX_LONG = "cubehelix-long", // json: "cubehelix-long" |
| 3006 | 3118 | } |
| 3007 | 3119 | |
| 3120 | +InterpolateParamsType InterpolateParamsType_from_JSON(mixed json) { | |
| 3121 | + return json; | |
| 3122 | +} | |
| 3123 | + | |
| 3008 | 3124 | // Extending the domain so that it starts and ends on nice round values. This method |
| 3009 | 3125 | // typically modifies the scale’s domain, and may only extend the bounds to the nearest |
| 3010 | 3126 | // round value. Nicing is useful if the domain is computed from data and may be irregular. |
| @@ -3063,6 +3179,10 @@ enum NiceTime { | ||
| 3063 | 3179 | NICE_TIME_YEAR = "year", // json: "year" |
| 3064 | 3180 | } |
| 3065 | 3181 | |
| 3182 | +NiceTime NiceTime_from_JSON(mixed json) { | |
| 3183 | + return json; | |
| 3184 | +} | |
| 3185 | + | |
| 3066 | 3186 | // The range of the scale. One of: |
| 3067 | 3187 | // |
| 3068 | 3188 | // - A string indicating a [pre-defined named scale range](scale.html#range-config) (e.g., |
| @@ -3144,6 +3264,10 @@ enum ScaleType { | ||
| 3144 | 3264 | BAND = "band", // json: "band" |
| 3145 | 3265 | } |
| 3146 | 3266 | |
| 3267 | +ScaleType ScaleType_from_JSON(mixed json) { | |
| 3268 | + return json; | |
| 3269 | +} | |
| 3270 | + | |
| 3147 | 3271 | typedef SortEnum|SortField SortUnion; |
| 3148 | 3272 | |
| 3149 | 3273 | SortUnion SortUnion_from_JSON(mixed json) { |
| @@ -3181,6 +3305,10 @@ enum SortEnum { | ||
| 3181 | 3305 | DESCENDING = "descending", // json: "descending" |
| 3182 | 3306 | } |
| 3183 | 3307 | |
| 3308 | +SortEnum SortEnum_from_JSON(mixed json) { | |
| 3309 | + return json; | |
| 3310 | +} | |
| 3311 | + | |
| 3184 | 3312 | enum Type { |
| 3185 | 3313 | QUANTITATIVE = "quantitative", // json: "quantitative" |
| 3186 | 3314 | TYPE_ORDINAL = "ordinal", // json: "ordinal" |
| @@ -3191,6 +3319,10 @@ enum Type { | ||
| 3191 | 3319 | GEOJSON = "geojson", // json: "geojson" |
| 3192 | 3320 | } |
| 3193 | 3321 | |
| 3322 | +Type Type_from_JSON(mixed json) { | |
| 3323 | + return json; | |
| 3324 | +} | |
| 3325 | + | |
| 3194 | 3326 | // A constant value in visual domain (e.g., `"red"` / "#0099ff" for color, values between |
| 3195 | 3327 | // `0` to `1` for opacity). |
| 3196 | 3328 | // |
| @@ -4112,6 +4244,10 @@ enum Mark { | ||
| 4112 | 4244 | GEOSHAPE = "geoshape", // json: "geoshape" |
| 4113 | 4245 | } |
| 4114 | 4246 | |
| 4247 | +Mark Mark_from_JSON(mixed json) { | |
| 4248 | + return json; | |
| 4249 | +} | |
| 4250 | + | |
| 4115 | 4251 | // An object defining properties of geographic projection. |
| 4116 | 4252 | // |
| 4117 | 4253 | // Works with `"geoshape"` marks and `"point"` or `"line"` marks that have a channel (one or |
| @@ -4244,6 +4380,10 @@ enum ResolveMode { | ||
| 4244 | 4380 | SHARED = "shared", // json: "shared" |
| 4245 | 4381 | } |
| 4246 | 4382 | |
| 4383 | +ResolveMode ResolveMode_from_JSON(mixed json) { | |
| 4384 | + return json; | |
| 4385 | +} | |
| 4386 | + | |
| 4247 | 4387 | class LegendResolveMap { |
| 4248 | 4388 | ResolveMode|mixed color; // json: "color" |
| 4249 | 4389 | ResolveMode|mixed opacity; // json: "opacity" |
| @@ -4373,6 +4513,10 @@ enum SelectionDefType { | ||
| 4373 | 4513 | INTERVAL = "interval", // json: "interval" |
| 4374 | 4514 | } |
| 4375 | 4515 | |
| 4516 | +SelectionDefType SelectionDefType_from_JSON(mixed json) { | |
| 4517 | + return json; | |
| 4518 | +} | |
| 4519 | + | |
| 4376 | 4520 | typedef string|TitleParams Title; |
| 4377 | 4521 | |
| 4378 | 4522 | Title Title_from_JSON(mixed json) { |
No generated files match these filters.