1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "TSEnumDeclaration", 6 "id": { 7 "type": "Identifier", 8 "name": "InvalidInitTypeEnum", 9 "decorators": [], 10 "loc": { 11 "start": { 12 "line": 16, 13 "column": 6 14 }, 15 "end": { 16 "line": 16, 17 "column": 25 18 } 19 } 20 }, 21 "members": [ 22 { 23 "type": "TSEnumMember", 24 "id": { 25 "type": "Identifier", 26 "name": "Red", 27 "decorators": [], 28 "loc": { 29 "start": { 30 "line": 17, 31 "column": 3 32 }, 33 "end": { 34 "line": 17, 35 "column": 6 36 } 37 } 38 }, 39 "initializer": { 40 "type": "NumberLiteral", 41 "value": 0, 42 "loc": { 43 "start": { 44 "line": 1, 45 "column": 1 46 }, 47 "end": { 48 "line": 1, 49 "column": 1 50 } 51 } 52 }, 53 "loc": { 54 "start": { 55 "line": 17, 56 "column": 3 57 }, 58 "end": { 59 "line": 17, 60 "column": 6 61 } 62 } 63 }, 64 { 65 "type": "TSEnumMember", 66 "id": { 67 "type": "Identifier", 68 "name": "Green", 69 "decorators": [], 70 "loc": { 71 "start": { 72 "line": 18, 73 "column": 3 74 }, 75 "end": { 76 "line": 18, 77 "column": 8 78 } 79 } 80 }, 81 "initializer": { 82 "type": "NumberLiteral", 83 "value": -1, 84 "loc": { 85 "start": { 86 "line": 18, 87 "column": 12 88 }, 89 "end": { 90 "line": 18, 91 "column": 13 92 } 93 } 94 }, 95 "loc": { 96 "start": { 97 "line": 18, 98 "column": 3 99 }, 100 "end": { 101 "line": 18, 102 "column": 13 103 } 104 } 105 }, 106 { 107 "type": "TSEnumMember", 108 "id": { 109 "type": "Identifier", 110 "name": "Blue", 111 "decorators": [], 112 "loc": { 113 "start": { 114 "line": 19, 115 "column": 3 116 }, 117 "end": { 118 "line": 19, 119 "column": 7 120 } 121 } 122 }, 123 "initializer": { 124 "type": "NumberLiteral", 125 "value": -1, 126 "loc": { 127 "start": { 128 "line": 19, 129 "column": 10 130 }, 131 "end": { 132 "line": 19, 133 "column": 20 134 } 135 } 136 }, 137 "loc": { 138 "start": { 139 "line": 19, 140 "column": 3 141 }, 142 "end": { 143 "line": 19, 144 "column": 20 145 } 146 } 147 } 148 ], 149 "const": false, 150 "loc": { 151 "start": { 152 "line": 16, 153 "column": 1 154 }, 155 "end": { 156 "line": 20, 157 "column": 2 158 } 159 } 160 }, 161 { 162 "type": "ClassDeclaration", 163 "definition": { 164 "id": { 165 "type": "Identifier", 166 "name": "ETSGLOBAL", 167 "decorators": [], 168 "loc": { 169 "start": { 170 "line": 1, 171 "column": 1 172 }, 173 "end": { 174 "line": 1, 175 "column": 1 176 } 177 } 178 }, 179 "superClass": null, 180 "implements": [], 181 "body": [ 182 { 183 "type": "MethodDefinition", 184 "key": { 185 "type": "Identifier", 186 "name": "_$init$_", 187 "decorators": [], 188 "loc": { 189 "start": { 190 "line": 1, 191 "column": 1 192 }, 193 "end": { 194 "line": 1, 195 "column": 1 196 } 197 } 198 }, 199 "kind": "method", 200 "accessibility": "public", 201 "static": true, 202 "optional": false, 203 "computed": false, 204 "value": { 205 "type": "FunctionExpression", 206 "function": { 207 "type": "ScriptFunction", 208 "id": { 209 "type": "Identifier", 210 "name": "_$init$_", 211 "decorators": [], 212 "loc": { 213 "start": { 214 "line": 1, 215 "column": 1 216 }, 217 "end": { 218 "line": 1, 219 "column": 1 220 } 221 } 222 }, 223 "generator": false, 224 "async": false, 225 "expression": false, 226 "params": [], 227 "body": { 228 "type": "BlockStatement", 229 "statements": [], 230 "loc": { 231 "start": { 232 "line": 1, 233 "column": 1 234 }, 235 "end": { 236 "line": 1, 237 "column": 1 238 } 239 } 240 }, 241 "loc": { 242 "start": { 243 "line": 1, 244 "column": 1 245 }, 246 "end": { 247 "line": 1, 248 "column": 1 249 } 250 } 251 }, 252 "loc": { 253 "start": { 254 "line": 1, 255 "column": 1 256 }, 257 "end": { 258 "line": 1, 259 "column": 1 260 } 261 } 262 }, 263 "overloads": [], 264 "decorators": [], 265 "loc": { 266 "start": { 267 "line": 1, 268 "column": 1 269 }, 270 "end": { 271 "line": 1, 272 "column": 1 273 } 274 } 275 } 276 ], 277 "loc": { 278 "start": { 279 "line": 1, 280 "column": 1 281 }, 282 "end": { 283 "line": 1, 284 "column": 1 285 } 286 } 287 }, 288 "loc": { 289 "start": { 290 "line": 1, 291 "column": 1 292 }, 293 "end": { 294 "line": 1, 295 "column": 1 296 } 297 } 298 }, 299 { 300 "type": "ClassDeclaration", 301 "definition": { 302 "id": { 303 "type": "Identifier", 304 "name": "#InvalidInitTypeEnum", 305 "decorators": [], 306 "loc": { 307 "start": { 308 "line": 1, 309 "column": 1 310 }, 311 "end": { 312 "line": 1, 313 "column": 1 314 } 315 } 316 }, 317 "superClass": null, 318 "implements": [], 319 "body": [ 320 { 321 "type": "ClassProperty", 322 "key": { 323 "type": "Identifier", 324 "name": "ordinal", 325 "decorators": [], 326 "loc": { 327 "start": { 328 "line": 1, 329 "column": 1 330 }, 331 "end": { 332 "line": 1, 333 "column": 1 334 } 335 } 336 }, 337 "accessibility": "protected", 338 "static": false, 339 "readonly": false, 340 "declare": false, 341 "optional": false, 342 "computed": false, 343 "typeAnnotation": { 344 "type": "ETSPrimitiveType", 345 "loc": { 346 "start": { 347 "line": 1, 348 "column": 1 349 }, 350 "end": { 351 "line": 1, 352 "column": 1 353 } 354 } 355 }, 356 "definite": false, 357 "decorators": [], 358 "loc": { 359 "start": { 360 "line": 1, 361 "column": 1 362 }, 363 "end": { 364 "line": 1, 365 "column": 1 366 } 367 } 368 }, 369 { 370 "type": "MethodDefinition", 371 "key": { 372 "type": "Identifier", 373 "name": "<cctor>", 374 "decorators": [], 375 "loc": { 376 "start": { 377 "line": 1, 378 "column": 1 379 }, 380 "end": { 381 "line": 1, 382 "column": 1 383 } 384 } 385 }, 386 "kind": "method", 387 "accessibility": "public", 388 "static": true, 389 "optional": false, 390 "computed": false, 391 "value": { 392 "type": "FunctionExpression", 393 "function": { 394 "type": "ScriptFunction", 395 "id": { 396 "type": "Identifier", 397 "name": "<cctor>", 398 "decorators": [], 399 "loc": { 400 "start": { 401 "line": 1, 402 "column": 1 403 }, 404 "end": { 405 "line": 1, 406 "column": 1 407 } 408 } 409 }, 410 "generator": false, 411 "async": false, 412 "expression": false, 413 "params": [], 414 "body": { 415 "type": "BlockStatement", 416 "statements": [], 417 "loc": { 418 "start": { 419 "line": 1, 420 "column": 1 421 }, 422 "end": { 423 "line": 1, 424 "column": 1 425 } 426 } 427 }, 428 "loc": { 429 "start": { 430 "line": 1, 431 "column": 1 432 }, 433 "end": { 434 "line": 1, 435 "column": 1 436 } 437 } 438 }, 439 "loc": { 440 "start": { 441 "line": 1, 442 "column": 1 443 }, 444 "end": { 445 "line": 1, 446 "column": 1 447 } 448 } 449 }, 450 "overloads": [], 451 "decorators": [], 452 "loc": { 453 "start": { 454 "line": 1, 455 "column": 1 456 }, 457 "end": { 458 "line": 1, 459 "column": 1 460 } 461 } 462 }, 463 { 464 "type": "MethodDefinition", 465 "key": { 466 "type": "Identifier", 467 "name": "constructor", 468 "decorators": [], 469 "loc": { 470 "start": { 471 "line": 1, 472 "column": 1 473 }, 474 "end": { 475 "line": 1, 476 "column": 1 477 } 478 } 479 }, 480 "kind": "constructor", 481 "accessibility": "public", 482 "static": false, 483 "optional": false, 484 "computed": false, 485 "value": { 486 "type": "FunctionExpression", 487 "function": { 488 "type": "ScriptFunction", 489 "id": { 490 "type": "Identifier", 491 "name": "constructor", 492 "decorators": [], 493 "loc": { 494 "start": { 495 "line": 1, 496 "column": 1 497 }, 498 "end": { 499 "line": 1, 500 "column": 1 501 } 502 } 503 }, 504 "generator": false, 505 "async": false, 506 "expression": false, 507 "params": [ 508 { 509 "type": "ETSParameterExpression", 510 "name": { 511 "type": "Identifier", 512 "name": "ordinal", 513 "typeAnnotation": { 514 "type": "ETSPrimitiveType", 515 "loc": { 516 "start": { 517 "line": 1, 518 "column": 1 519 }, 520 "end": { 521 "line": 1, 522 "column": 1 523 } 524 } 525 }, 526 "decorators": [], 527 "loc": { 528 "start": { 529 "line": 1, 530 "column": 1 531 }, 532 "end": { 533 "line": 1, 534 "column": 1 535 } 536 } 537 }, 538 "loc": { 539 "start": { 540 "line": 1, 541 "column": 1 542 }, 543 "end": { 544 "line": 1, 545 "column": 1 546 } 547 } 548 } 549 ], 550 "body": { 551 "type": "BlockStatement", 552 "statements": [ 553 { 554 "type": "ExpressionStatement", 555 "expression": { 556 "type": "AssignmentExpression", 557 "operator": "=", 558 "left": { 559 "type": "MemberExpression", 560 "object": { 561 "type": "ThisExpression", 562 "loc": { 563 "start": { 564 "line": 1, 565 "column": 1 566 }, 567 "end": { 568 "line": 1, 569 "column": 1 570 } 571 } 572 }, 573 "property": { 574 "type": "Identifier", 575 "name": "ordinal", 576 "decorators": [], 577 "loc": { 578 "start": { 579 "line": 1, 580 "column": 1 581 }, 582 "end": { 583 "line": 1, 584 "column": 1 585 } 586 } 587 }, 588 "computed": false, 589 "optional": false, 590 "loc": { 591 "start": { 592 "line": 1, 593 "column": 1 594 }, 595 "end": { 596 "line": 1, 597 "column": 1 598 } 599 } 600 }, 601 "right": { 602 "type": "Identifier", 603 "name": "ordinal", 604 "decorators": [], 605 "loc": { 606 "start": { 607 "line": 1, 608 "column": 1 609 }, 610 "end": { 611 "line": 1, 612 "column": 1 613 } 614 } 615 }, 616 "loc": { 617 "start": { 618 "line": 1, 619 "column": 1 620 }, 621 "end": { 622 "line": 1, 623 "column": 1 624 } 625 } 626 }, 627 "loc": { 628 "start": { 629 "line": 1, 630 "column": 1 631 }, 632 "end": { 633 "line": 1, 634 "column": 1 635 } 636 } 637 } 638 ], 639 "loc": { 640 "start": { 641 "line": 1, 642 "column": 1 643 }, 644 "end": { 645 "line": 1, 646 "column": 1 647 } 648 } 649 }, 650 "loc": { 651 "start": { 652 "line": 1, 653 "column": 1 654 }, 655 "end": { 656 "line": 1, 657 "column": 1 658 } 659 } 660 }, 661 "loc": { 662 "start": { 663 "line": 1, 664 "column": 1 665 }, 666 "end": { 667 "line": 1, 668 "column": 1 669 } 670 } 671 }, 672 "overloads": [], 673 "decorators": [], 674 "loc": { 675 "start": { 676 "line": 1, 677 "column": 1 678 }, 679 "end": { 680 "line": 1, 681 "column": 1 682 } 683 } 684 }, 685 { 686 "type": "ClassProperty", 687 "key": { 688 "type": "Identifier", 689 "name": "NamesArray", 690 "decorators": [], 691 "loc": { 692 "start": { 693 "line": 1, 694 "column": 1 695 }, 696 "end": { 697 "line": 1, 698 "column": 1 699 } 700 } 701 }, 702 "value": { 703 "type": "ArrayExpression", 704 "elements": [ 705 { 706 "type": "StringLiteral", 707 "value": "Red", 708 "loc": { 709 "start": { 710 "line": 1, 711 "column": 1 712 }, 713 "end": { 714 "line": 1, 715 "column": 1 716 } 717 } 718 }, 719 { 720 "type": "StringLiteral", 721 "value": "Green", 722 "loc": { 723 "start": { 724 "line": 1, 725 "column": 1 726 }, 727 "end": { 728 "line": 1, 729 "column": 1 730 } 731 } 732 }, 733 { 734 "type": "StringLiteral", 735 "value": "Blue", 736 "loc": { 737 "start": { 738 "line": 1, 739 "column": 1 740 }, 741 "end": { 742 "line": 1, 743 "column": 1 744 } 745 } 746 } 747 ], 748 "loc": { 749 "start": { 750 "line": 1, 751 "column": 1 752 }, 753 "end": { 754 "line": 1, 755 "column": 1 756 } 757 } 758 }, 759 "accessibility": "protected", 760 "static": true, 761 "readonly": false, 762 "declare": false, 763 "optional": false, 764 "computed": false, 765 "typeAnnotation": { 766 "type": "TSArrayType", 767 "elementType": { 768 "type": "ETSTypeReference", 769 "part": { 770 "type": "ETSTypeReferencePart", 771 "name": { 772 "type": "Identifier", 773 "name": "String", 774 "decorators": [], 775 "loc": { 776 "start": { 777 "line": 1, 778 "column": 1 779 }, 780 "end": { 781 "line": 1, 782 "column": 1 783 } 784 } 785 }, 786 "loc": { 787 "start": { 788 "line": 1, 789 "column": 1 790 }, 791 "end": { 792 "line": 1, 793 "column": 1 794 } 795 } 796 }, 797 "loc": { 798 "start": { 799 "line": 1, 800 "column": 1 801 }, 802 "end": { 803 "line": 1, 804 "column": 1 805 } 806 } 807 }, 808 "loc": { 809 "start": { 810 "line": 1, 811 "column": 1 812 }, 813 "end": { 814 "line": 1, 815 "column": 1 816 } 817 } 818 }, 819 "definite": false, 820 "decorators": [], 821 "loc": { 822 "start": { 823 "line": 1, 824 "column": 1 825 }, 826 "end": { 827 "line": 1, 828 "column": 1 829 } 830 } 831 }, 832 { 833 "type": "ClassProperty", 834 "key": { 835 "type": "Identifier", 836 "name": "ValuesArray", 837 "decorators": [], 838 "loc": { 839 "start": { 840 "line": 1, 841 "column": 1 842 }, 843 "end": { 844 "line": 1, 845 "column": 1 846 } 847 } 848 }, 849 "value": { 850 "type": "ArrayExpression", 851 "elements": [ 852 { 853 "type": "NumberLiteral", 854 "value": 0, 855 "loc": { 856 "start": { 857 "line": 1, 858 "column": 1 859 }, 860 "end": { 861 "line": 1, 862 "column": 1 863 } 864 } 865 }, 866 { 867 "type": "NumberLiteral", 868 "value": -1, 869 "loc": { 870 "start": { 871 "line": 1, 872 "column": 1 873 }, 874 "end": { 875 "line": 1, 876 "column": 1 877 } 878 } 879 }, 880 { 881 "type": "NumberLiteral", 882 "value": -1, 883 "loc": { 884 "start": { 885 "line": 1, 886 "column": 1 887 }, 888 "end": { 889 "line": 1, 890 "column": 1 891 } 892 } 893 } 894 ], 895 "loc": { 896 "start": { 897 "line": 1, 898 "column": 1 899 }, 900 "end": { 901 "line": 1, 902 "column": 1 903 } 904 } 905 }, 906 "accessibility": "protected", 907 "static": true, 908 "readonly": false, 909 "declare": false, 910 "optional": false, 911 "computed": false, 912 "typeAnnotation": { 913 "type": "TSArrayType", 914 "elementType": { 915 "type": "ETSPrimitiveType", 916 "loc": { 917 "start": { 918 "line": 1, 919 "column": 1 920 }, 921 "end": { 922 "line": 1, 923 "column": 1 924 } 925 } 926 }, 927 "loc": { 928 "start": { 929 "line": 1, 930 "column": 1 931 }, 932 "end": { 933 "line": 1, 934 "column": 1 935 } 936 } 937 }, 938 "definite": false, 939 "decorators": [], 940 "loc": { 941 "start": { 942 "line": 1, 943 "column": 1 944 }, 945 "end": { 946 "line": 1, 947 "column": 1 948 } 949 } 950 }, 951 { 952 "type": "ClassProperty", 953 "key": { 954 "type": "Identifier", 955 "name": "StringValuesArray", 956 "decorators": [], 957 "loc": { 958 "start": { 959 "line": 1, 960 "column": 1 961 }, 962 "end": { 963 "line": 1, 964 "column": 1 965 } 966 } 967 }, 968 "value": { 969 "type": "ArrayExpression", 970 "elements": [ 971 { 972 "type": "StringLiteral", 973 "value": "0", 974 "loc": { 975 "start": { 976 "line": 1, 977 "column": 1 978 }, 979 "end": { 980 "line": 1, 981 "column": 1 982 } 983 } 984 }, 985 { 986 "type": "StringLiteral", 987 "value": "-1", 988 "loc": { 989 "start": { 990 "line": 1, 991 "column": 1 992 }, 993 "end": { 994 "line": 1, 995 "column": 1 996 } 997 } 998 }, 999 { 1000 "type": "StringLiteral", 1001 "value": "-1", 1002 "loc": { 1003 "start": { 1004 "line": 1, 1005 "column": 1 1006 }, 1007 "end": { 1008 "line": 1, 1009 "column": 1 1010 } 1011 } 1012 } 1013 ], 1014 "loc": { 1015 "start": { 1016 "line": 1, 1017 "column": 1 1018 }, 1019 "end": { 1020 "line": 1, 1021 "column": 1 1022 } 1023 } 1024 }, 1025 "accessibility": "protected", 1026 "static": true, 1027 "readonly": false, 1028 "declare": false, 1029 "optional": false, 1030 "computed": false, 1031 "typeAnnotation": { 1032 "type": "TSArrayType", 1033 "elementType": { 1034 "type": "ETSTypeReference", 1035 "part": { 1036 "type": "ETSTypeReferencePart", 1037 "name": { 1038 "type": "Identifier", 1039 "name": "String", 1040 "decorators": [], 1041 "loc": { 1042 "start": { 1043 "line": 1, 1044 "column": 1 1045 }, 1046 "end": { 1047 "line": 1, 1048 "column": 1 1049 } 1050 } 1051 }, 1052 "loc": { 1053 "start": { 1054 "line": 1, 1055 "column": 1 1056 }, 1057 "end": { 1058 "line": 1, 1059 "column": 1 1060 } 1061 } 1062 }, 1063 "loc": { 1064 "start": { 1065 "line": 1, 1066 "column": 1 1067 }, 1068 "end": { 1069 "line": 1, 1070 "column": 1 1071 } 1072 } 1073 }, 1074 "loc": { 1075 "start": { 1076 "line": 1, 1077 "column": 1 1078 }, 1079 "end": { 1080 "line": 1, 1081 "column": 1 1082 } 1083 } 1084 }, 1085 "definite": false, 1086 "decorators": [], 1087 "loc": { 1088 "start": { 1089 "line": 1, 1090 "column": 1 1091 }, 1092 "end": { 1093 "line": 1, 1094 "column": 1 1095 } 1096 } 1097 }, 1098 { 1099 "type": "ClassProperty", 1100 "key": { 1101 "type": "Identifier", 1102 "name": "ItemsArray", 1103 "decorators": [], 1104 "loc": { 1105 "start": { 1106 "line": 1, 1107 "column": 1 1108 }, 1109 "end": { 1110 "line": 1, 1111 "column": 1 1112 } 1113 } 1114 }, 1115 "value": { 1116 "type": "ArrayExpression", 1117 "elements": [ 1118 { 1119 "type": "MemberExpression", 1120 "object": { 1121 "type": "Identifier", 1122 "name": "InvalidInitTypeEnum", 1123 "decorators": [], 1124 "loc": { 1125 "start": { 1126 "line": 1, 1127 "column": 1 1128 }, 1129 "end": { 1130 "line": 1, 1131 "column": 1 1132 } 1133 } 1134 }, 1135 "property": { 1136 "type": "Identifier", 1137 "name": "Red", 1138 "decorators": [], 1139 "loc": { 1140 "start": { 1141 "line": 1, 1142 "column": 1 1143 }, 1144 "end": { 1145 "line": 1, 1146 "column": 1 1147 } 1148 } 1149 }, 1150 "computed": false, 1151 "optional": false, 1152 "loc": { 1153 "start": { 1154 "line": 1, 1155 "column": 1 1156 }, 1157 "end": { 1158 "line": 1, 1159 "column": 1 1160 } 1161 } 1162 }, 1163 { 1164 "type": "MemberExpression", 1165 "object": { 1166 "type": "Identifier", 1167 "name": "InvalidInitTypeEnum", 1168 "decorators": [], 1169 "loc": { 1170 "start": { 1171 "line": 1, 1172 "column": 1 1173 }, 1174 "end": { 1175 "line": 1, 1176 "column": 1 1177 } 1178 } 1179 }, 1180 "property": { 1181 "type": "Identifier", 1182 "name": "Green", 1183 "decorators": [], 1184 "loc": { 1185 "start": { 1186 "line": 1, 1187 "column": 1 1188 }, 1189 "end": { 1190 "line": 1, 1191 "column": 1 1192 } 1193 } 1194 }, 1195 "computed": false, 1196 "optional": false, 1197 "loc": { 1198 "start": { 1199 "line": 1, 1200 "column": 1 1201 }, 1202 "end": { 1203 "line": 1, 1204 "column": 1 1205 } 1206 } 1207 }, 1208 { 1209 "type": "MemberExpression", 1210 "object": { 1211 "type": "Identifier", 1212 "name": "InvalidInitTypeEnum", 1213 "decorators": [], 1214 "loc": { 1215 "start": { 1216 "line": 1, 1217 "column": 1 1218 }, 1219 "end": { 1220 "line": 1, 1221 "column": 1 1222 } 1223 } 1224 }, 1225 "property": { 1226 "type": "Identifier", 1227 "name": "Blue", 1228 "decorators": [], 1229 "loc": { 1230 "start": { 1231 "line": 1, 1232 "column": 1 1233 }, 1234 "end": { 1235 "line": 1, 1236 "column": 1 1237 } 1238 } 1239 }, 1240 "computed": false, 1241 "optional": false, 1242 "loc": { 1243 "start": { 1244 "line": 1, 1245 "column": 1 1246 }, 1247 "end": { 1248 "line": 1, 1249 "column": 1 1250 } 1251 } 1252 } 1253 ], 1254 "loc": { 1255 "start": { 1256 "line": 1, 1257 "column": 1 1258 }, 1259 "end": { 1260 "line": 1, 1261 "column": 1 1262 } 1263 } 1264 }, 1265 "accessibility": "protected", 1266 "static": true, 1267 "readonly": false, 1268 "declare": false, 1269 "optional": false, 1270 "computed": false, 1271 "typeAnnotation": { 1272 "type": "TSArrayType", 1273 "elementType": { 1274 "type": "ETSTypeReference", 1275 "part": { 1276 "type": "ETSTypeReferencePart", 1277 "name": { 1278 "type": "Identifier", 1279 "name": "InvalidInitTypeEnum", 1280 "decorators": [], 1281 "loc": { 1282 "start": { 1283 "line": 1, 1284 "column": 1 1285 }, 1286 "end": { 1287 "line": 1, 1288 "column": 1 1289 } 1290 } 1291 }, 1292 "loc": { 1293 "start": { 1294 "line": 1, 1295 "column": 1 1296 }, 1297 "end": { 1298 "line": 1, 1299 "column": 1 1300 } 1301 } 1302 }, 1303 "loc": { 1304 "start": { 1305 "line": 1, 1306 "column": 1 1307 }, 1308 "end": { 1309 "line": 1, 1310 "column": 1 1311 } 1312 } 1313 }, 1314 "loc": { 1315 "start": { 1316 "line": 1, 1317 "column": 1 1318 }, 1319 "end": { 1320 "line": 1, 1321 "column": 1 1322 } 1323 } 1324 }, 1325 "definite": false, 1326 "decorators": [], 1327 "loc": { 1328 "start": { 1329 "line": 1, 1330 "column": 1 1331 }, 1332 "end": { 1333 "line": 1, 1334 "column": 1 1335 } 1336 } 1337 }, 1338 { 1339 "type": "ClassProperty", 1340 "key": { 1341 "type": "Identifier", 1342 "name": "BoxedItemsArray", 1343 "decorators": [], 1344 "loc": { 1345 "start": { 1346 "line": 1, 1347 "column": 1 1348 }, 1349 "end": { 1350 "line": 1, 1351 "column": 1 1352 } 1353 } 1354 }, 1355 "value": { 1356 "type": "ArrayExpression", 1357 "elements": [ 1358 { 1359 "type": "ETSNewClassInstanceExpression", 1360 "typeReference": { 1361 "type": "ETSTypeReference", 1362 "part": { 1363 "type": "ETSTypeReferencePart", 1364 "name": { 1365 "type": "Identifier", 1366 "name": "#InvalidInitTypeEnum", 1367 "decorators": [], 1368 "loc": { 1369 "start": { 1370 "line": 1, 1371 "column": 1 1372 }, 1373 "end": { 1374 "line": 1, 1375 "column": 1 1376 } 1377 } 1378 }, 1379 "loc": { 1380 "start": { 1381 "line": 1, 1382 "column": 1 1383 }, 1384 "end": { 1385 "line": 1, 1386 "column": 1 1387 } 1388 } 1389 }, 1390 "loc": { 1391 "start": { 1392 "line": 1, 1393 "column": 1 1394 }, 1395 "end": { 1396 "line": 1, 1397 "column": 1 1398 } 1399 } 1400 }, 1401 "arguments": [ 1402 { 1403 "type": "TSAsExpression", 1404 "expression": { 1405 "type": "MemberExpression", 1406 "object": { 1407 "type": "Identifier", 1408 "name": "InvalidInitTypeEnum", 1409 "decorators": [], 1410 "loc": { 1411 "start": { 1412 "line": 1, 1413 "column": 1 1414 }, 1415 "end": { 1416 "line": 1, 1417 "column": 1 1418 } 1419 } 1420 }, 1421 "property": { 1422 "type": "Identifier", 1423 "name": "Red", 1424 "decorators": [], 1425 "loc": { 1426 "start": { 1427 "line": 1, 1428 "column": 1 1429 }, 1430 "end": { 1431 "line": 1, 1432 "column": 1 1433 } 1434 } 1435 }, 1436 "computed": false, 1437 "optional": false, 1438 "loc": { 1439 "start": { 1440 "line": 1, 1441 "column": 1 1442 }, 1443 "end": { 1444 "line": 1, 1445 "column": 1 1446 } 1447 } 1448 }, 1449 "typeAnnotation": { 1450 "type": "ETSPrimitiveType", 1451 "loc": { 1452 "start": { 1453 "line": 1, 1454 "column": 1 1455 }, 1456 "end": { 1457 "line": 1, 1458 "column": 1 1459 } 1460 } 1461 }, 1462 "loc": { 1463 "start": { 1464 "line": 1, 1465 "column": 1 1466 }, 1467 "end": { 1468 "line": 1, 1469 "column": 1 1470 } 1471 } 1472 } 1473 ], 1474 "loc": { 1475 "start": { 1476 "line": 1, 1477 "column": 1 1478 }, 1479 "end": { 1480 "line": 1, 1481 "column": 1 1482 } 1483 } 1484 }, 1485 { 1486 "type": "ETSNewClassInstanceExpression", 1487 "typeReference": { 1488 "type": "ETSTypeReference", 1489 "part": { 1490 "type": "ETSTypeReferencePart", 1491 "name": { 1492 "type": "Identifier", 1493 "name": "#InvalidInitTypeEnum", 1494 "decorators": [], 1495 "loc": { 1496 "start": { 1497 "line": 1, 1498 "column": 1 1499 }, 1500 "end": { 1501 "line": 1, 1502 "column": 1 1503 } 1504 } 1505 }, 1506 "loc": { 1507 "start": { 1508 "line": 1, 1509 "column": 1 1510 }, 1511 "end": { 1512 "line": 1, 1513 "column": 1 1514 } 1515 } 1516 }, 1517 "loc": { 1518 "start": { 1519 "line": 1, 1520 "column": 1 1521 }, 1522 "end": { 1523 "line": 1, 1524 "column": 1 1525 } 1526 } 1527 }, 1528 "arguments": [ 1529 { 1530 "type": "TSAsExpression", 1531 "expression": { 1532 "type": "MemberExpression", 1533 "object": { 1534 "type": "Identifier", 1535 "name": "InvalidInitTypeEnum", 1536 "decorators": [], 1537 "loc": { 1538 "start": { 1539 "line": 1, 1540 "column": 1 1541 }, 1542 "end": { 1543 "line": 1, 1544 "column": 1 1545 } 1546 } 1547 }, 1548 "property": { 1549 "type": "Identifier", 1550 "name": "Green", 1551 "decorators": [], 1552 "loc": { 1553 "start": { 1554 "line": 1, 1555 "column": 1 1556 }, 1557 "end": { 1558 "line": 1, 1559 "column": 1 1560 } 1561 } 1562 }, 1563 "computed": false, 1564 "optional": false, 1565 "loc": { 1566 "start": { 1567 "line": 1, 1568 "column": 1 1569 }, 1570 "end": { 1571 "line": 1, 1572 "column": 1 1573 } 1574 } 1575 }, 1576 "typeAnnotation": { 1577 "type": "ETSPrimitiveType", 1578 "loc": { 1579 "start": { 1580 "line": 1, 1581 "column": 1 1582 }, 1583 "end": { 1584 "line": 1, 1585 "column": 1 1586 } 1587 } 1588 }, 1589 "loc": { 1590 "start": { 1591 "line": 1, 1592 "column": 1 1593 }, 1594 "end": { 1595 "line": 1, 1596 "column": 1 1597 } 1598 } 1599 } 1600 ], 1601 "loc": { 1602 "start": { 1603 "line": 1, 1604 "column": 1 1605 }, 1606 "end": { 1607 "line": 1, 1608 "column": 1 1609 } 1610 } 1611 }, 1612 { 1613 "type": "ETSNewClassInstanceExpression", 1614 "typeReference": { 1615 "type": "ETSTypeReference", 1616 "part": { 1617 "type": "ETSTypeReferencePart", 1618 "name": { 1619 "type": "Identifier", 1620 "name": "#InvalidInitTypeEnum", 1621 "decorators": [], 1622 "loc": { 1623 "start": { 1624 "line": 1, 1625 "column": 1 1626 }, 1627 "end": { 1628 "line": 1, 1629 "column": 1 1630 } 1631 } 1632 }, 1633 "loc": { 1634 "start": { 1635 "line": 1, 1636 "column": 1 1637 }, 1638 "end": { 1639 "line": 1, 1640 "column": 1 1641 } 1642 } 1643 }, 1644 "loc": { 1645 "start": { 1646 "line": 1, 1647 "column": 1 1648 }, 1649 "end": { 1650 "line": 1, 1651 "column": 1 1652 } 1653 } 1654 }, 1655 "arguments": [ 1656 { 1657 "type": "TSAsExpression", 1658 "expression": { 1659 "type": "MemberExpression", 1660 "object": { 1661 "type": "Identifier", 1662 "name": "InvalidInitTypeEnum", 1663 "decorators": [], 1664 "loc": { 1665 "start": { 1666 "line": 1, 1667 "column": 1 1668 }, 1669 "end": { 1670 "line": 1, 1671 "column": 1 1672 } 1673 } 1674 }, 1675 "property": { 1676 "type": "Identifier", 1677 "name": "Blue", 1678 "decorators": [], 1679 "loc": { 1680 "start": { 1681 "line": 1, 1682 "column": 1 1683 }, 1684 "end": { 1685 "line": 1, 1686 "column": 1 1687 } 1688 } 1689 }, 1690 "computed": false, 1691 "optional": false, 1692 "loc": { 1693 "start": { 1694 "line": 1, 1695 "column": 1 1696 }, 1697 "end": { 1698 "line": 1, 1699 "column": 1 1700 } 1701 } 1702 }, 1703 "typeAnnotation": { 1704 "type": "ETSPrimitiveType", 1705 "loc": { 1706 "start": { 1707 "line": 1, 1708 "column": 1 1709 }, 1710 "end": { 1711 "line": 1, 1712 "column": 1 1713 } 1714 } 1715 }, 1716 "loc": { 1717 "start": { 1718 "line": 1, 1719 "column": 1 1720 }, 1721 "end": { 1722 "line": 1, 1723 "column": 1 1724 } 1725 } 1726 } 1727 ], 1728 "loc": { 1729 "start": { 1730 "line": 1, 1731 "column": 1 1732 }, 1733 "end": { 1734 "line": 1, 1735 "column": 1 1736 } 1737 } 1738 } 1739 ], 1740 "loc": { 1741 "start": { 1742 "line": 1, 1743 "column": 1 1744 }, 1745 "end": { 1746 "line": 1, 1747 "column": 1 1748 } 1749 } 1750 }, 1751 "accessibility": "protected", 1752 "static": true, 1753 "readonly": false, 1754 "declare": false, 1755 "optional": false, 1756 "computed": false, 1757 "typeAnnotation": { 1758 "type": "TSArrayType", 1759 "elementType": { 1760 "type": "ETSTypeReference", 1761 "part": { 1762 "type": "ETSTypeReferencePart", 1763 "name": { 1764 "type": "Identifier", 1765 "name": "#InvalidInitTypeEnum", 1766 "decorators": [], 1767 "loc": { 1768 "start": { 1769 "line": 1, 1770 "column": 1 1771 }, 1772 "end": { 1773 "line": 1, 1774 "column": 1 1775 } 1776 } 1777 }, 1778 "loc": { 1779 "start": { 1780 "line": 1, 1781 "column": 1 1782 }, 1783 "end": { 1784 "line": 1, 1785 "column": 1 1786 } 1787 } 1788 }, 1789 "loc": { 1790 "start": { 1791 "line": 1, 1792 "column": 1 1793 }, 1794 "end": { 1795 "line": 1, 1796 "column": 1 1797 } 1798 } 1799 }, 1800 "loc": { 1801 "start": { 1802 "line": 1, 1803 "column": 1 1804 }, 1805 "end": { 1806 "line": 1, 1807 "column": 1 1808 } 1809 } 1810 }, 1811 "definite": false, 1812 "decorators": [], 1813 "loc": { 1814 "start": { 1815 "line": 1, 1816 "column": 1 1817 }, 1818 "end": { 1819 "line": 1, 1820 "column": 1 1821 } 1822 } 1823 }, 1824 { 1825 "type": "MethodDefinition", 1826 "key": { 1827 "type": "Identifier", 1828 "name": "getName", 1829 "decorators": [], 1830 "loc": { 1831 "start": { 1832 "line": 1, 1833 "column": 1 1834 }, 1835 "end": { 1836 "line": 1, 1837 "column": 1 1838 } 1839 } 1840 }, 1841 "kind": "method", 1842 "accessibility": "public", 1843 "static": true, 1844 "optional": false, 1845 "computed": false, 1846 "value": { 1847 "type": "FunctionExpression", 1848 "function": { 1849 "type": "ScriptFunction", 1850 "id": { 1851 "type": "Identifier", 1852 "name": "getName", 1853 "decorators": [], 1854 "loc": { 1855 "start": { 1856 "line": 1, 1857 "column": 1 1858 }, 1859 "end": { 1860 "line": 1, 1861 "column": 1 1862 } 1863 } 1864 }, 1865 "generator": false, 1866 "async": false, 1867 "expression": false, 1868 "params": [ 1869 { 1870 "type": "ETSParameterExpression", 1871 "name": { 1872 "type": "Identifier", 1873 "name": "ordinal", 1874 "typeAnnotation": { 1875 "type": "ETSTypeReference", 1876 "part": { 1877 "type": "ETSTypeReferencePart", 1878 "name": { 1879 "type": "Identifier", 1880 "name": "InvalidInitTypeEnum", 1881 "decorators": [], 1882 "loc": { 1883 "start": { 1884 "line": 1, 1885 "column": 1 1886 }, 1887 "end": { 1888 "line": 1, 1889 "column": 1 1890 } 1891 } 1892 }, 1893 "loc": { 1894 "start": { 1895 "line": 1, 1896 "column": 1 1897 }, 1898 "end": { 1899 "line": 1, 1900 "column": 1 1901 } 1902 } 1903 }, 1904 "loc": { 1905 "start": { 1906 "line": 1, 1907 "column": 1 1908 }, 1909 "end": { 1910 "line": 1, 1911 "column": 1 1912 } 1913 } 1914 }, 1915 "decorators": [], 1916 "loc": { 1917 "start": { 1918 "line": 1, 1919 "column": 1 1920 }, 1921 "end": { 1922 "line": 1, 1923 "column": 1 1924 } 1925 } 1926 }, 1927 "loc": { 1928 "start": { 1929 "line": 1, 1930 "column": 1 1931 }, 1932 "end": { 1933 "line": 1, 1934 "column": 1 1935 } 1936 } 1937 } 1938 ], 1939 "returnType": { 1940 "type": "ETSTypeReference", 1941 "part": { 1942 "type": "ETSTypeReferencePart", 1943 "name": { 1944 "type": "Identifier", 1945 "name": "String", 1946 "decorators": [], 1947 "loc": { 1948 "start": { 1949 "line": 1, 1950 "column": 1 1951 }, 1952 "end": { 1953 "line": 1, 1954 "column": 1 1955 } 1956 } 1957 }, 1958 "loc": { 1959 "start": { 1960 "line": 1, 1961 "column": 1 1962 }, 1963 "end": { 1964 "line": 1, 1965 "column": 1 1966 } 1967 } 1968 }, 1969 "loc": { 1970 "start": { 1971 "line": 1, 1972 "column": 1 1973 }, 1974 "end": { 1975 "line": 1, 1976 "column": 1 1977 } 1978 } 1979 }, 1980 "body": { 1981 "type": "BlockStatement", 1982 "statements": [ 1983 { 1984 "type": "ReturnStatement", 1985 "argument": { 1986 "type": "MemberExpression", 1987 "object": { 1988 "type": "Identifier", 1989 "name": "NamesArray", 1990 "decorators": [], 1991 "loc": { 1992 "start": { 1993 "line": 1, 1994 "column": 1 1995 }, 1996 "end": { 1997 "line": 1, 1998 "column": 1 1999 } 2000 } 2001 }, 2002 "property": { 2003 "type": "TSAsExpression", 2004 "expression": { 2005 "type": "Identifier", 2006 "name": "ordinal", 2007 "decorators": [], 2008 "loc": { 2009 "start": { 2010 "line": 1, 2011 "column": 1 2012 }, 2013 "end": { 2014 "line": 1, 2015 "column": 1 2016 } 2017 } 2018 }, 2019 "typeAnnotation": { 2020 "type": "ETSPrimitiveType", 2021 "loc": { 2022 "start": { 2023 "line": 1, 2024 "column": 1 2025 }, 2026 "end": { 2027 "line": 1, 2028 "column": 1 2029 } 2030 } 2031 }, 2032 "loc": { 2033 "start": { 2034 "line": 1, 2035 "column": 1 2036 }, 2037 "end": { 2038 "line": 1, 2039 "column": 1 2040 } 2041 } 2042 }, 2043 "computed": true, 2044 "optional": false, 2045 "loc": { 2046 "start": { 2047 "line": 1, 2048 "column": 1 2049 }, 2050 "end": { 2051 "line": 1, 2052 "column": 1 2053 } 2054 } 2055 }, 2056 "loc": { 2057 "start": { 2058 "line": 1, 2059 "column": 1 2060 }, 2061 "end": { 2062 "line": 1, 2063 "column": 1 2064 } 2065 } 2066 } 2067 ], 2068 "loc": { 2069 "start": { 2070 "line": 1, 2071 "column": 1 2072 }, 2073 "end": { 2074 "line": 1, 2075 "column": 1 2076 } 2077 } 2078 }, 2079 "loc": { 2080 "start": { 2081 "line": 1, 2082 "column": 1 2083 }, 2084 "end": { 2085 "line": 1, 2086 "column": 1 2087 } 2088 } 2089 }, 2090 "loc": { 2091 "start": { 2092 "line": 1, 2093 "column": 1 2094 }, 2095 "end": { 2096 "line": 1, 2097 "column": 1 2098 } 2099 } 2100 }, 2101 "overloads": [], 2102 "decorators": [], 2103 "loc": { 2104 "start": { 2105 "line": 1, 2106 "column": 1 2107 }, 2108 "end": { 2109 "line": 1, 2110 "column": 1 2111 } 2112 } 2113 }, 2114 { 2115 "type": "MethodDefinition", 2116 "key": { 2117 "type": "Identifier", 2118 "name": "getValueOf", 2119 "decorators": [], 2120 "loc": { 2121 "start": { 2122 "line": 1, 2123 "column": 1 2124 }, 2125 "end": { 2126 "line": 1, 2127 "column": 1 2128 } 2129 } 2130 }, 2131 "kind": "method", 2132 "accessibility": "public", 2133 "static": true, 2134 "optional": false, 2135 "computed": false, 2136 "value": { 2137 "type": "FunctionExpression", 2138 "function": { 2139 "type": "ScriptFunction", 2140 "id": { 2141 "type": "Identifier", 2142 "name": "getValueOf", 2143 "decorators": [], 2144 "loc": { 2145 "start": { 2146 "line": 1, 2147 "column": 1 2148 }, 2149 "end": { 2150 "line": 1, 2151 "column": 1 2152 } 2153 } 2154 }, 2155 "generator": false, 2156 "async": false, 2157 "expression": false, 2158 "params": [ 2159 { 2160 "type": "ETSParameterExpression", 2161 "name": { 2162 "type": "Identifier", 2163 "name": "name", 2164 "typeAnnotation": { 2165 "type": "ETSTypeReference", 2166 "part": { 2167 "type": "ETSTypeReferencePart", 2168 "name": { 2169 "type": "Identifier", 2170 "name": "String", 2171 "decorators": [], 2172 "loc": { 2173 "start": { 2174 "line": 1, 2175 "column": 1 2176 }, 2177 "end": { 2178 "line": 1, 2179 "column": 1 2180 } 2181 } 2182 }, 2183 "loc": { 2184 "start": { 2185 "line": 1, 2186 "column": 1 2187 }, 2188 "end": { 2189 "line": 1, 2190 "column": 1 2191 } 2192 } 2193 }, 2194 "loc": { 2195 "start": { 2196 "line": 1, 2197 "column": 1 2198 }, 2199 "end": { 2200 "line": 1, 2201 "column": 1 2202 } 2203 } 2204 }, 2205 "decorators": [], 2206 "loc": { 2207 "start": { 2208 "line": 1, 2209 "column": 1 2210 }, 2211 "end": { 2212 "line": 1, 2213 "column": 1 2214 } 2215 } 2216 }, 2217 "loc": { 2218 "start": { 2219 "line": 1, 2220 "column": 1 2221 }, 2222 "end": { 2223 "line": 1, 2224 "column": 1 2225 } 2226 } 2227 } 2228 ], 2229 "returnType": { 2230 "type": "ETSTypeReference", 2231 "part": { 2232 "type": "ETSTypeReferencePart", 2233 "name": { 2234 "type": "Identifier", 2235 "name": "InvalidInitTypeEnum", 2236 "decorators": [], 2237 "loc": { 2238 "start": { 2239 "line": 1, 2240 "column": 1 2241 }, 2242 "end": { 2243 "line": 1, 2244 "column": 1 2245 } 2246 } 2247 }, 2248 "loc": { 2249 "start": { 2250 "line": 1, 2251 "column": 1 2252 }, 2253 "end": { 2254 "line": 1, 2255 "column": 1 2256 } 2257 } 2258 }, 2259 "loc": { 2260 "start": { 2261 "line": 1, 2262 "column": 1 2263 }, 2264 "end": { 2265 "line": 1, 2266 "column": 1 2267 } 2268 } 2269 }, 2270 "body": { 2271 "type": "BlockStatement", 2272 "statements": [ 2273 { 2274 "type": "ForUpdateStatement", 2275 "init": { 2276 "type": "VariableDeclaration", 2277 "declarations": [ 2278 { 2279 "type": "VariableDeclarator", 2280 "id": { 2281 "type": "Identifier", 2282 "name": "i", 2283 "decorators": [], 2284 "loc": { 2285 "start": { 2286 "line": 1, 2287 "column": 1 2288 }, 2289 "end": { 2290 "line": 1, 2291 "column": 1 2292 } 2293 } 2294 }, 2295 "init": { 2296 "type": "NumberLiteral", 2297 "value": 0, 2298 "loc": { 2299 "start": { 2300 "line": 1, 2301 "column": 1 2302 }, 2303 "end": { 2304 "line": 1, 2305 "column": 1 2306 } 2307 } 2308 }, 2309 "loc": { 2310 "start": { 2311 "line": 1, 2312 "column": 1 2313 }, 2314 "end": { 2315 "line": 1, 2316 "column": 1 2317 } 2318 } 2319 } 2320 ], 2321 "kind": "let", 2322 "loc": { 2323 "start": { 2324 "line": 1, 2325 "column": 1 2326 }, 2327 "end": { 2328 "line": 1, 2329 "column": 1 2330 } 2331 } 2332 }, 2333 "test": { 2334 "type": "BinaryExpression", 2335 "operator": "<", 2336 "left": { 2337 "type": "Identifier", 2338 "name": "i", 2339 "decorators": [], 2340 "loc": { 2341 "start": { 2342 "line": 1, 2343 "column": 1 2344 }, 2345 "end": { 2346 "line": 1, 2347 "column": 1 2348 } 2349 } 2350 }, 2351 "right": { 2352 "type": "MemberExpression", 2353 "object": { 2354 "type": "Identifier", 2355 "name": "NamesArray", 2356 "decorators": [], 2357 "loc": { 2358 "start": { 2359 "line": 1, 2360 "column": 1 2361 }, 2362 "end": { 2363 "line": 1, 2364 "column": 1 2365 } 2366 } 2367 }, 2368 "property": { 2369 "type": "Identifier", 2370 "name": "length", 2371 "decorators": [], 2372 "loc": { 2373 "start": { 2374 "line": 1, 2375 "column": 1 2376 }, 2377 "end": { 2378 "line": 1, 2379 "column": 1 2380 } 2381 } 2382 }, 2383 "computed": false, 2384 "optional": false, 2385 "loc": { 2386 "start": { 2387 "line": 1, 2388 "column": 1 2389 }, 2390 "end": { 2391 "line": 1, 2392 "column": 1 2393 } 2394 } 2395 }, 2396 "loc": { 2397 "start": { 2398 "line": 1, 2399 "column": 1 2400 }, 2401 "end": { 2402 "line": 1, 2403 "column": 1 2404 } 2405 } 2406 }, 2407 "update": { 2408 "type": "UpdateExpression", 2409 "operator": "++", 2410 "prefix": true, 2411 "argument": { 2412 "type": "Identifier", 2413 "name": "i", 2414 "decorators": [], 2415 "loc": { 2416 "start": { 2417 "line": 1, 2418 "column": 1 2419 }, 2420 "end": { 2421 "line": 1, 2422 "column": 1 2423 } 2424 } 2425 }, 2426 "loc": { 2427 "start": { 2428 "line": 1, 2429 "column": 1 2430 }, 2431 "end": { 2432 "line": 1, 2433 "column": 1 2434 } 2435 } 2436 }, 2437 "body": { 2438 "type": "IfStatement", 2439 "test": { 2440 "type": "BinaryExpression", 2441 "operator": "==", 2442 "left": { 2443 "type": "Identifier", 2444 "name": "name", 2445 "decorators": [], 2446 "loc": { 2447 "start": { 2448 "line": 1, 2449 "column": 1 2450 }, 2451 "end": { 2452 "line": 1, 2453 "column": 1 2454 } 2455 } 2456 }, 2457 "right": { 2458 "type": "MemberExpression", 2459 "object": { 2460 "type": "Identifier", 2461 "name": "NamesArray", 2462 "decorators": [], 2463 "loc": { 2464 "start": { 2465 "line": 1, 2466 "column": 1 2467 }, 2468 "end": { 2469 "line": 1, 2470 "column": 1 2471 } 2472 } 2473 }, 2474 "property": { 2475 "type": "Identifier", 2476 "name": "i", 2477 "decorators": [], 2478 "loc": { 2479 "start": { 2480 "line": 1, 2481 "column": 1 2482 }, 2483 "end": { 2484 "line": 1, 2485 "column": 1 2486 } 2487 } 2488 }, 2489 "computed": true, 2490 "optional": false, 2491 "loc": { 2492 "start": { 2493 "line": 1, 2494 "column": 1 2495 }, 2496 "end": { 2497 "line": 1, 2498 "column": 1 2499 } 2500 } 2501 }, 2502 "loc": { 2503 "start": { 2504 "line": 1, 2505 "column": 1 2506 }, 2507 "end": { 2508 "line": 1, 2509 "column": 1 2510 } 2511 } 2512 }, 2513 "consequent": { 2514 "type": "ReturnStatement", 2515 "argument": { 2516 "type": "TSAsExpression", 2517 "expression": { 2518 "type": "Identifier", 2519 "name": "i", 2520 "decorators": [], 2521 "loc": { 2522 "start": { 2523 "line": 1, 2524 "column": 1 2525 }, 2526 "end": { 2527 "line": 1, 2528 "column": 1 2529 } 2530 } 2531 }, 2532 "typeAnnotation": { 2533 "type": "ETSTypeReference", 2534 "part": { 2535 "type": "ETSTypeReferencePart", 2536 "name": { 2537 "type": "Identifier", 2538 "name": "InvalidInitTypeEnum", 2539 "decorators": [], 2540 "loc": { 2541 "start": { 2542 "line": 1, 2543 "column": 1 2544 }, 2545 "end": { 2546 "line": 1, 2547 "column": 1 2548 } 2549 } 2550 }, 2551 "loc": { 2552 "start": { 2553 "line": 1, 2554 "column": 1 2555 }, 2556 "end": { 2557 "line": 1, 2558 "column": 1 2559 } 2560 } 2561 }, 2562 "loc": { 2563 "start": { 2564 "line": 1, 2565 "column": 1 2566 }, 2567 "end": { 2568 "line": 1, 2569 "column": 1 2570 } 2571 } 2572 }, 2573 "loc": { 2574 "start": { 2575 "line": 1, 2576 "column": 1 2577 }, 2578 "end": { 2579 "line": 1, 2580 "column": 1 2581 } 2582 } 2583 }, 2584 "loc": { 2585 "start": { 2586 "line": 1, 2587 "column": 1 2588 }, 2589 "end": { 2590 "line": 1, 2591 "column": 1 2592 } 2593 } 2594 }, 2595 "alternate": null, 2596 "loc": { 2597 "start": { 2598 "line": 1, 2599 "column": 1 2600 }, 2601 "end": { 2602 "line": 1, 2603 "column": 1 2604 } 2605 } 2606 }, 2607 "loc": { 2608 "start": { 2609 "line": 1, 2610 "column": 1 2611 }, 2612 "end": { 2613 "line": 1, 2614 "column": 1 2615 } 2616 } 2617 }, 2618 { 2619 "type": "ThrowStatement", 2620 "argument": { 2621 "type": "ETSNewClassInstanceExpression", 2622 "typeReference": { 2623 "type": "ETSTypeReference", 2624 "part": { 2625 "type": "ETSTypeReferencePart", 2626 "name": { 2627 "type": "Identifier", 2628 "name": "Exception", 2629 "decorators": [], 2630 "loc": { 2631 "start": { 2632 "line": 1, 2633 "column": 1 2634 }, 2635 "end": { 2636 "line": 1, 2637 "column": 1 2638 } 2639 } 2640 }, 2641 "loc": { 2642 "start": { 2643 "line": 1, 2644 "column": 1 2645 }, 2646 "end": { 2647 "line": 1, 2648 "column": 1 2649 } 2650 } 2651 }, 2652 "loc": { 2653 "start": { 2654 "line": 1, 2655 "column": 1 2656 }, 2657 "end": { 2658 "line": 1, 2659 "column": 1 2660 } 2661 } 2662 }, 2663 "arguments": [ 2664 { 2665 "type": "BinaryExpression", 2666 "operator": "+", 2667 "left": { 2668 "type": "StringLiteral", 2669 "value": "No enum constant InvalidInitTypeEnum.", 2670 "loc": { 2671 "start": { 2672 "line": 1, 2673 "column": 1 2674 }, 2675 "end": { 2676 "line": 1, 2677 "column": 1 2678 } 2679 } 2680 }, 2681 "right": { 2682 "type": "Identifier", 2683 "name": "name", 2684 "decorators": [], 2685 "loc": { 2686 "start": { 2687 "line": 1, 2688 "column": 1 2689 }, 2690 "end": { 2691 "line": 1, 2692 "column": 1 2693 } 2694 } 2695 }, 2696 "loc": { 2697 "start": { 2698 "line": 1, 2699 "column": 1 2700 }, 2701 "end": { 2702 "line": 1, 2703 "column": 1 2704 } 2705 } 2706 } 2707 ], 2708 "loc": { 2709 "start": { 2710 "line": 1, 2711 "column": 1 2712 }, 2713 "end": { 2714 "line": 1, 2715 "column": 1 2716 } 2717 } 2718 }, 2719 "loc": { 2720 "start": { 2721 "line": 1, 2722 "column": 1 2723 }, 2724 "end": { 2725 "line": 1, 2726 "column": 1 2727 } 2728 } 2729 } 2730 ], 2731 "loc": { 2732 "start": { 2733 "line": 1, 2734 "column": 1 2735 }, 2736 "end": { 2737 "line": 1, 2738 "column": 1 2739 } 2740 } 2741 } 2742 "throwMarker": "throws", 2743 "loc": { 2744 "start": { 2745 "line": 1, 2746 "column": 1 2747 }, 2748 "end": { 2749 "line": 1, 2750 "column": 1 2751 } 2752 } 2753 }, 2754 "loc": { 2755 "start": { 2756 "line": 1, 2757 "column": 1 2758 }, 2759 "end": { 2760 "line": 1, 2761 "column": 1 2762 } 2763 } 2764 }, 2765 "overloads": [], 2766 "decorators": [], 2767 "loc": { 2768 "start": { 2769 "line": 1, 2770 "column": 1 2771 }, 2772 "end": { 2773 "line": 1, 2774 "column": 1 2775 } 2776 } 2777 }, 2778 { 2779 "type": "MethodDefinition", 2780 "key": { 2781 "type": "Identifier", 2782 "name": "valueOf", 2783 "decorators": [], 2784 "loc": { 2785 "start": { 2786 "line": 1, 2787 "column": 1 2788 }, 2789 "end": { 2790 "line": 1, 2791 "column": 1 2792 } 2793 } 2794 }, 2795 "kind": "method", 2796 "accessibility": "public", 2797 "static": true, 2798 "optional": false, 2799 "computed": false, 2800 "value": { 2801 "type": "FunctionExpression", 2802 "function": { 2803 "type": "ScriptFunction", 2804 "id": { 2805 "type": "Identifier", 2806 "name": "valueOf", 2807 "decorators": [], 2808 "loc": { 2809 "start": { 2810 "line": 1, 2811 "column": 1 2812 }, 2813 "end": { 2814 "line": 1, 2815 "column": 1 2816 } 2817 } 2818 }, 2819 "generator": false, 2820 "async": false, 2821 "expression": false, 2822 "params": [ 2823 { 2824 "type": "ETSParameterExpression", 2825 "name": { 2826 "type": "Identifier", 2827 "name": "e", 2828 "typeAnnotation": { 2829 "type": "ETSTypeReference", 2830 "part": { 2831 "type": "ETSTypeReferencePart", 2832 "name": { 2833 "type": "Identifier", 2834 "name": "InvalidInitTypeEnum", 2835 "decorators": [], 2836 "loc": { 2837 "start": { 2838 "line": 1, 2839 "column": 1 2840 }, 2841 "end": { 2842 "line": 1, 2843 "column": 1 2844 } 2845 } 2846 }, 2847 "loc": { 2848 "start": { 2849 "line": 1, 2850 "column": 1 2851 }, 2852 "end": { 2853 "line": 1, 2854 "column": 1 2855 } 2856 } 2857 }, 2858 "loc": { 2859 "start": { 2860 "line": 1, 2861 "column": 1 2862 }, 2863 "end": { 2864 "line": 1, 2865 "column": 1 2866 } 2867 } 2868 }, 2869 "decorators": [], 2870 "loc": { 2871 "start": { 2872 "line": 1, 2873 "column": 1 2874 }, 2875 "end": { 2876 "line": 1, 2877 "column": 1 2878 } 2879 } 2880 }, 2881 "loc": { 2882 "start": { 2883 "line": 1, 2884 "column": 1 2885 }, 2886 "end": { 2887 "line": 1, 2888 "column": 1 2889 } 2890 } 2891 } 2892 ], 2893 "returnType": { 2894 "type": "ETSPrimitiveType", 2895 "loc": { 2896 "start": { 2897 "line": 1, 2898 "column": 1 2899 }, 2900 "end": { 2901 "line": 1, 2902 "column": 1 2903 } 2904 } 2905 }, 2906 "body": { 2907 "type": "BlockStatement", 2908 "statements": [ 2909 { 2910 "type": "ReturnStatement", 2911 "argument": { 2912 "type": "MemberExpression", 2913 "object": { 2914 "type": "Identifier", 2915 "name": "ValuesArray", 2916 "decorators": [], 2917 "loc": { 2918 "start": { 2919 "line": 1, 2920 "column": 1 2921 }, 2922 "end": { 2923 "line": 1, 2924 "column": 1 2925 } 2926 } 2927 }, 2928 "property": { 2929 "type": "TSAsExpression", 2930 "expression": { 2931 "type": "Identifier", 2932 "name": "e", 2933 "decorators": [], 2934 "loc": { 2935 "start": { 2936 "line": 1, 2937 "column": 1 2938 }, 2939 "end": { 2940 "line": 1, 2941 "column": 1 2942 } 2943 } 2944 }, 2945 "typeAnnotation": { 2946 "type": "ETSPrimitiveType", 2947 "loc": { 2948 "start": { 2949 "line": 1, 2950 "column": 1 2951 }, 2952 "end": { 2953 "line": 1, 2954 "column": 1 2955 } 2956 } 2957 }, 2958 "loc": { 2959 "start": { 2960 "line": 1, 2961 "column": 1 2962 }, 2963 "end": { 2964 "line": 1, 2965 "column": 1 2966 } 2967 } 2968 }, 2969 "computed": true, 2970 "optional": false, 2971 "loc": { 2972 "start": { 2973 "line": 1, 2974 "column": 1 2975 }, 2976 "end": { 2977 "line": 1, 2978 "column": 1 2979 } 2980 } 2981 }, 2982 "loc": { 2983 "start": { 2984 "line": 1, 2985 "column": 1 2986 }, 2987 "end": { 2988 "line": 1, 2989 "column": 1 2990 } 2991 } 2992 } 2993 ], 2994 "loc": { 2995 "start": { 2996 "line": 1, 2997 "column": 1 2998 }, 2999 "end": { 3000 "line": 1, 3001 "column": 1 3002 } 3003 } 3004 }, 3005 "loc": { 3006 "start": { 3007 "line": 1, 3008 "column": 1 3009 }, 3010 "end": { 3011 "line": 1, 3012 "column": 1 3013 } 3014 } 3015 }, 3016 "loc": { 3017 "start": { 3018 "line": 1, 3019 "column": 1 3020 }, 3021 "end": { 3022 "line": 1, 3023 "column": 1 3024 } 3025 } 3026 }, 3027 "overloads": [], 3028 "decorators": [], 3029 "loc": { 3030 "start": { 3031 "line": 1, 3032 "column": 1 3033 }, 3034 "end": { 3035 "line": 1, 3036 "column": 1 3037 } 3038 } 3039 }, 3040 { 3041 "type": "MethodDefinition", 3042 "key": { 3043 "type": "Identifier", 3044 "name": "toString", 3045 "decorators": [], 3046 "loc": { 3047 "start": { 3048 "line": 1, 3049 "column": 1 3050 }, 3051 "end": { 3052 "line": 1, 3053 "column": 1 3054 } 3055 } 3056 }, 3057 "kind": "method", 3058 "accessibility": "public", 3059 "static": true, 3060 "optional": false, 3061 "computed": false, 3062 "value": { 3063 "type": "FunctionExpression", 3064 "function": { 3065 "type": "ScriptFunction", 3066 "id": { 3067 "type": "Identifier", 3068 "name": "toString", 3069 "decorators": [], 3070 "loc": { 3071 "start": { 3072 "line": 1, 3073 "column": 1 3074 }, 3075 "end": { 3076 "line": 1, 3077 "column": 1 3078 } 3079 } 3080 }, 3081 "generator": false, 3082 "async": false, 3083 "expression": false, 3084 "params": [ 3085 { 3086 "type": "ETSParameterExpression", 3087 "name": { 3088 "type": "Identifier", 3089 "name": "ordinal", 3090 "typeAnnotation": { 3091 "type": "ETSTypeReference", 3092 "part": { 3093 "type": "ETSTypeReferencePart", 3094 "name": { 3095 "type": "Identifier", 3096 "name": "InvalidInitTypeEnum", 3097 "decorators": [], 3098 "loc": { 3099 "start": { 3100 "line": 1, 3101 "column": 1 3102 }, 3103 "end": { 3104 "line": 1, 3105 "column": 1 3106 } 3107 } 3108 }, 3109 "loc": { 3110 "start": { 3111 "line": 1, 3112 "column": 1 3113 }, 3114 "end": { 3115 "line": 1, 3116 "column": 1 3117 } 3118 } 3119 }, 3120 "loc": { 3121 "start": { 3122 "line": 1, 3123 "column": 1 3124 }, 3125 "end": { 3126 "line": 1, 3127 "column": 1 3128 } 3129 } 3130 }, 3131 "decorators": [], 3132 "loc": { 3133 "start": { 3134 "line": 1, 3135 "column": 1 3136 }, 3137 "end": { 3138 "line": 1, 3139 "column": 1 3140 } 3141 } 3142 }, 3143 "loc": { 3144 "start": { 3145 "line": 1, 3146 "column": 1 3147 }, 3148 "end": { 3149 "line": 1, 3150 "column": 1 3151 } 3152 } 3153 } 3154 ], 3155 "returnType": { 3156 "type": "ETSTypeReference", 3157 "part": { 3158 "type": "ETSTypeReferencePart", 3159 "name": { 3160 "type": "Identifier", 3161 "name": "String", 3162 "decorators": [], 3163 "loc": { 3164 "start": { 3165 "line": 1, 3166 "column": 1 3167 }, 3168 "end": { 3169 "line": 1, 3170 "column": 1 3171 } 3172 } 3173 }, 3174 "loc": { 3175 "start": { 3176 "line": 1, 3177 "column": 1 3178 }, 3179 "end": { 3180 "line": 1, 3181 "column": 1 3182 } 3183 } 3184 }, 3185 "loc": { 3186 "start": { 3187 "line": 1, 3188 "column": 1 3189 }, 3190 "end": { 3191 "line": 1, 3192 "column": 1 3193 } 3194 } 3195 }, 3196 "body": { 3197 "type": "BlockStatement", 3198 "statements": [ 3199 { 3200 "type": "ReturnStatement", 3201 "argument": { 3202 "type": "MemberExpression", 3203 "object": { 3204 "type": "Identifier", 3205 "name": "StringValuesArray", 3206 "decorators": [], 3207 "loc": { 3208 "start": { 3209 "line": 1, 3210 "column": 1 3211 }, 3212 "end": { 3213 "line": 1, 3214 "column": 1 3215 } 3216 } 3217 }, 3218 "property": { 3219 "type": "TSAsExpression", 3220 "expression": { 3221 "type": "Identifier", 3222 "name": "ordinal", 3223 "decorators": [], 3224 "loc": { 3225 "start": { 3226 "line": 1, 3227 "column": 1 3228 }, 3229 "end": { 3230 "line": 1, 3231 "column": 1 3232 } 3233 } 3234 }, 3235 "typeAnnotation": { 3236 "type": "ETSPrimitiveType", 3237 "loc": { 3238 "start": { 3239 "line": 1, 3240 "column": 1 3241 }, 3242 "end": { 3243 "line": 1, 3244 "column": 1 3245 } 3246 } 3247 }, 3248 "loc": { 3249 "start": { 3250 "line": 1, 3251 "column": 1 3252 }, 3253 "end": { 3254 "line": 1, 3255 "column": 1 3256 } 3257 } 3258 }, 3259 "computed": true, 3260 "optional": false, 3261 "loc": { 3262 "start": { 3263 "line": 1, 3264 "column": 1 3265 }, 3266 "end": { 3267 "line": 1, 3268 "column": 1 3269 } 3270 } 3271 }, 3272 "loc": { 3273 "start": { 3274 "line": 1, 3275 "column": 1 3276 }, 3277 "end": { 3278 "line": 1, 3279 "column": 1 3280 } 3281 } 3282 } 3283 ], 3284 "loc": { 3285 "start": { 3286 "line": 1, 3287 "column": 1 3288 }, 3289 "end": { 3290 "line": 1, 3291 "column": 1 3292 } 3293 } 3294 }, 3295 "loc": { 3296 "start": { 3297 "line": 1, 3298 "column": 1 3299 }, 3300 "end": { 3301 "line": 1, 3302 "column": 1 3303 } 3304 } 3305 }, 3306 "loc": { 3307 "start": { 3308 "line": 1, 3309 "column": 1 3310 }, 3311 "end": { 3312 "line": 1, 3313 "column": 1 3314 } 3315 } 3316 }, 3317 "overloads": [], 3318 "decorators": [], 3319 "loc": { 3320 "start": { 3321 "line": 1, 3322 "column": 1 3323 }, 3324 "end": { 3325 "line": 1, 3326 "column": 1 3327 } 3328 } 3329 }, 3330 { 3331 "type": "MethodDefinition", 3332 "key": { 3333 "type": "Identifier", 3334 "name": "values", 3335 "decorators": [], 3336 "loc": { 3337 "start": { 3338 "line": 1, 3339 "column": 1 3340 }, 3341 "end": { 3342 "line": 1, 3343 "column": 1 3344 } 3345 } 3346 }, 3347 "kind": "method", 3348 "accessibility": "public", 3349 "static": true, 3350 "optional": false, 3351 "computed": false, 3352 "value": { 3353 "type": "FunctionExpression", 3354 "function": { 3355 "type": "ScriptFunction", 3356 "id": { 3357 "type": "Identifier", 3358 "name": "values", 3359 "decorators": [], 3360 "loc": { 3361 "start": { 3362 "line": 1, 3363 "column": 1 3364 }, 3365 "end": { 3366 "line": 1, 3367 "column": 1 3368 } 3369 } 3370 }, 3371 "generator": false, 3372 "async": false, 3373 "expression": false, 3374 "params": [], 3375 "returnType": { 3376 "type": "TSArrayType", 3377 "elementType": { 3378 "type": "ETSTypeReference", 3379 "part": { 3380 "type": "ETSTypeReferencePart", 3381 "name": { 3382 "type": "Identifier", 3383 "name": "InvalidInitTypeEnum", 3384 "decorators": [], 3385 "loc": { 3386 "start": { 3387 "line": 1, 3388 "column": 1 3389 }, 3390 "end": { 3391 "line": 1, 3392 "column": 1 3393 } 3394 } 3395 }, 3396 "loc": { 3397 "start": { 3398 "line": 1, 3399 "column": 1 3400 }, 3401 "end": { 3402 "line": 1, 3403 "column": 1 3404 } 3405 } 3406 }, 3407 "loc": { 3408 "start": { 3409 "line": 1, 3410 "column": 1 3411 }, 3412 "end": { 3413 "line": 1, 3414 "column": 1 3415 } 3416 } 3417 }, 3418 "loc": { 3419 "start": { 3420 "line": 1, 3421 "column": 1 3422 }, 3423 "end": { 3424 "line": 1, 3425 "column": 1 3426 } 3427 } 3428 }, 3429 "body": { 3430 "type": "BlockStatement", 3431 "statements": [ 3432 { 3433 "type": "ReturnStatement", 3434 "argument": { 3435 "type": "Identifier", 3436 "name": "ItemsArray", 3437 "decorators": [], 3438 "loc": { 3439 "start": { 3440 "line": 1, 3441 "column": 1 3442 }, 3443 "end": { 3444 "line": 1, 3445 "column": 1 3446 } 3447 } 3448 }, 3449 "loc": { 3450 "start": { 3451 "line": 1, 3452 "column": 1 3453 }, 3454 "end": { 3455 "line": 1, 3456 "column": 1 3457 } 3458 } 3459 } 3460 ], 3461 "loc": { 3462 "start": { 3463 "line": 1, 3464 "column": 1 3465 }, 3466 "end": { 3467 "line": 1, 3468 "column": 1 3469 } 3470 } 3471 }, 3472 "loc": { 3473 "start": { 3474 "line": 1, 3475 "column": 1 3476 }, 3477 "end": { 3478 "line": 1, 3479 "column": 1 3480 } 3481 } 3482 }, 3483 "loc": { 3484 "start": { 3485 "line": 1, 3486 "column": 1 3487 }, 3488 "end": { 3489 "line": 1, 3490 "column": 1 3491 } 3492 } 3493 }, 3494 "overloads": [], 3495 "decorators": [], 3496 "loc": { 3497 "start": { 3498 "line": 1, 3499 "column": 1 3500 }, 3501 "end": { 3502 "line": 1, 3503 "column": 1 3504 } 3505 } 3506 }, 3507 { 3508 "type": "MethodDefinition", 3509 "key": { 3510 "type": "Identifier", 3511 "name": "fromInt", 3512 "decorators": [], 3513 "loc": { 3514 "start": { 3515 "line": 1, 3516 "column": 1 3517 }, 3518 "end": { 3519 "line": 1, 3520 "column": 1 3521 } 3522 } 3523 }, 3524 "kind": "method", 3525 "accessibility": "public", 3526 "static": true, 3527 "optional": false, 3528 "computed": false, 3529 "value": { 3530 "type": "FunctionExpression", 3531 "function": { 3532 "type": "ScriptFunction", 3533 "id": { 3534 "type": "Identifier", 3535 "name": "fromInt", 3536 "decorators": [], 3537 "loc": { 3538 "start": { 3539 "line": 1, 3540 "column": 1 3541 }, 3542 "end": { 3543 "line": 1, 3544 "column": 1 3545 } 3546 } 3547 }, 3548 "generator": false, 3549 "async": false, 3550 "expression": false, 3551 "params": [ 3552 { 3553 "type": "ETSParameterExpression", 3554 "name": { 3555 "type": "Identifier", 3556 "name": "ordinal", 3557 "typeAnnotation": { 3558 "type": "ETSPrimitiveType", 3559 "loc": { 3560 "start": { 3561 "line": 1, 3562 "column": 1 3563 }, 3564 "end": { 3565 "line": 1, 3566 "column": 1 3567 } 3568 } 3569 }, 3570 "decorators": [], 3571 "loc": { 3572 "start": { 3573 "line": 1, 3574 "column": 1 3575 }, 3576 "end": { 3577 "line": 1, 3578 "column": 1 3579 } 3580 } 3581 }, 3582 "loc": { 3583 "start": { 3584 "line": 1, 3585 "column": 1 3586 }, 3587 "end": { 3588 "line": 1, 3589 "column": 1 3590 } 3591 } 3592 } 3593 ], 3594 "returnType": { 3595 "type": "ETSTypeReference", 3596 "part": { 3597 "type": "ETSTypeReferencePart", 3598 "name": { 3599 "type": "Identifier", 3600 "name": "InvalidInitTypeEnum", 3601 "decorators": [], 3602 "loc": { 3603 "start": { 3604 "line": 1, 3605 "column": 1 3606 }, 3607 "end": { 3608 "line": 1, 3609 "column": 1 3610 } 3611 } 3612 }, 3613 "loc": { 3614 "start": { 3615 "line": 1, 3616 "column": 1 3617 }, 3618 "end": { 3619 "line": 1, 3620 "column": 1 3621 } 3622 } 3623 }, 3624 "loc": { 3625 "start": { 3626 "line": 1, 3627 "column": 1 3628 }, 3629 "end": { 3630 "line": 1, 3631 "column": 1 3632 } 3633 } 3634 }, 3635 "body": { 3636 "type": "BlockStatement", 3637 "statements": [ 3638 { 3639 "type": "IfStatement", 3640 "test": { 3641 "type": "BinaryExpression", 3642 "operator": "<", 3643 "left": { 3644 "type": "Identifier", 3645 "name": "ordinal", 3646 "decorators": [], 3647 "loc": { 3648 "start": { 3649 "line": 1, 3650 "column": 1 3651 }, 3652 "end": { 3653 "line": 1, 3654 "column": 1 3655 } 3656 } 3657 }, 3658 "right": { 3659 "type": "MemberExpression", 3660 "object": { 3661 "type": "Identifier", 3662 "name": "ItemsArray", 3663 "decorators": [], 3664 "loc": { 3665 "start": { 3666 "line": 1, 3667 "column": 1 3668 }, 3669 "end": { 3670 "line": 1, 3671 "column": 1 3672 } 3673 } 3674 }, 3675 "property": { 3676 "type": "Identifier", 3677 "name": "length", 3678 "decorators": [], 3679 "loc": { 3680 "start": { 3681 "line": 1, 3682 "column": 1 3683 }, 3684 "end": { 3685 "line": 1, 3686 "column": 1 3687 } 3688 } 3689 }, 3690 "computed": false, 3691 "optional": false, 3692 "loc": { 3693 "start": { 3694 "line": 1, 3695 "column": 1 3696 }, 3697 "end": { 3698 "line": 1, 3699 "column": 1 3700 } 3701 } 3702 }, 3703 "loc": { 3704 "start": { 3705 "line": 1, 3706 "column": 1 3707 }, 3708 "end": { 3709 "line": 1, 3710 "column": 1 3711 } 3712 } 3713 }, 3714 "consequent": { 3715 "type": "ReturnStatement", 3716 "argument": { 3717 "type": "MemberExpression", 3718 "object": { 3719 "type": "Identifier", 3720 "name": "ItemsArray", 3721 "decorators": [], 3722 "loc": { 3723 "start": { 3724 "line": 1, 3725 "column": 1 3726 }, 3727 "end": { 3728 "line": 1, 3729 "column": 1 3730 } 3731 } 3732 }, 3733 "property": { 3734 "type": "Identifier", 3735 "name": "ordinal", 3736 "decorators": [], 3737 "loc": { 3738 "start": { 3739 "line": 1, 3740 "column": 1 3741 }, 3742 "end": { 3743 "line": 1, 3744 "column": 1 3745 } 3746 } 3747 }, 3748 "computed": true, 3749 "optional": false, 3750 "loc": { 3751 "start": { 3752 "line": 1, 3753 "column": 1 3754 }, 3755 "end": { 3756 "line": 1, 3757 "column": 1 3758 } 3759 } 3760 }, 3761 "loc": { 3762 "start": { 3763 "line": 1, 3764 "column": 1 3765 }, 3766 "end": { 3767 "line": 1, 3768 "column": 1 3769 } 3770 } 3771 }, 3772 "alternate": null, 3773 "loc": { 3774 "start": { 3775 "line": 1, 3776 "column": 1 3777 }, 3778 "end": { 3779 "line": 1, 3780 "column": 1 3781 } 3782 } 3783 }, 3784 { 3785 "type": "ThrowStatement", 3786 "argument": { 3787 "type": "ETSNewClassInstanceExpression", 3788 "typeReference": { 3789 "type": "ETSTypeReference", 3790 "part": { 3791 "type": "ETSTypeReferencePart", 3792 "name": { 3793 "type": "Identifier", 3794 "name": "Exception", 3795 "decorators": [], 3796 "loc": { 3797 "start": { 3798 "line": 1, 3799 "column": 1 3800 }, 3801 "end": { 3802 "line": 1, 3803 "column": 1 3804 } 3805 } 3806 }, 3807 "loc": { 3808 "start": { 3809 "line": 1, 3810 "column": 1 3811 }, 3812 "end": { 3813 "line": 1, 3814 "column": 1 3815 } 3816 } 3817 }, 3818 "loc": { 3819 "start": { 3820 "line": 1, 3821 "column": 1 3822 }, 3823 "end": { 3824 "line": 1, 3825 "column": 1 3826 } 3827 } 3828 }, 3829 "arguments": [ 3830 { 3831 "type": "BinaryExpression", 3832 "operator": "+", 3833 "left": { 3834 "type": "StringLiteral", 3835 "value": "No enum constant in InvalidInitTypeEnum with ordinal value ", 3836 "loc": { 3837 "start": { 3838 "line": 1, 3839 "column": 1 3840 }, 3841 "end": { 3842 "line": 1, 3843 "column": 1 3844 } 3845 } 3846 }, 3847 "right": { 3848 "type": "Identifier", 3849 "name": "ordinal", 3850 "decorators": [], 3851 "loc": { 3852 "start": { 3853 "line": 1, 3854 "column": 1 3855 }, 3856 "end": { 3857 "line": 1, 3858 "column": 1 3859 } 3860 } 3861 }, 3862 "loc": { 3863 "start": { 3864 "line": 1, 3865 "column": 1 3866 }, 3867 "end": { 3868 "line": 1, 3869 "column": 1 3870 } 3871 } 3872 } 3873 ], 3874 "loc": { 3875 "start": { 3876 "line": 1, 3877 "column": 1 3878 }, 3879 "end": { 3880 "line": 1, 3881 "column": 1 3882 } 3883 } 3884 }, 3885 "loc": { 3886 "start": { 3887 "line": 1, 3888 "column": 1 3889 }, 3890 "end": { 3891 "line": 1, 3892 "column": 1 3893 } 3894 } 3895 } 3896 ], 3897 "loc": { 3898 "start": { 3899 "line": 1, 3900 "column": 1 3901 }, 3902 "end": { 3903 "line": 1, 3904 "column": 1 3905 } 3906 } 3907 } 3908 "throwMarker": "throws", 3909 "loc": { 3910 "start": { 3911 "line": 1, 3912 "column": 1 3913 }, 3914 "end": { 3915 "line": 1, 3916 "column": 1 3917 } 3918 } 3919 }, 3920 "loc": { 3921 "start": { 3922 "line": 1, 3923 "column": 1 3924 }, 3925 "end": { 3926 "line": 1, 3927 "column": 1 3928 } 3929 } 3930 }, 3931 "overloads": [], 3932 "decorators": [], 3933 "loc": { 3934 "start": { 3935 "line": 1, 3936 "column": 1 3937 }, 3938 "end": { 3939 "line": 1, 3940 "column": 1 3941 } 3942 } 3943 }, 3944 { 3945 "type": "MethodDefinition", 3946 "key": { 3947 "type": "Identifier", 3948 "name": "unbox", 3949 "decorators": [], 3950 "loc": { 3951 "start": { 3952 "line": 1, 3953 "column": 1 3954 }, 3955 "end": { 3956 "line": 1, 3957 "column": 1 3958 } 3959 } 3960 }, 3961 "kind": "method", 3962 "accessibility": "public", 3963 "static": false, 3964 "optional": false, 3965 "computed": false, 3966 "value": { 3967 "type": "FunctionExpression", 3968 "function": { 3969 "type": "ScriptFunction", 3970 "id": { 3971 "type": "Identifier", 3972 "name": "unbox", 3973 "decorators": [], 3974 "loc": { 3975 "start": { 3976 "line": 1, 3977 "column": 1 3978 }, 3979 "end": { 3980 "line": 1, 3981 "column": 1 3982 } 3983 } 3984 }, 3985 "generator": false, 3986 "async": false, 3987 "expression": false, 3988 "params": [], 3989 "returnType": { 3990 "type": "ETSTypeReference", 3991 "part": { 3992 "type": "ETSTypeReferencePart", 3993 "name": { 3994 "type": "Identifier", 3995 "name": "InvalidInitTypeEnum", 3996 "decorators": [], 3997 "loc": { 3998 "start": { 3999 "line": 1, 4000 "column": 1 4001 }, 4002 "end": { 4003 "line": 1, 4004 "column": 1 4005 } 4006 } 4007 }, 4008 "loc": { 4009 "start": { 4010 "line": 1, 4011 "column": 1 4012 }, 4013 "end": { 4014 "line": 1, 4015 "column": 1 4016 } 4017 } 4018 }, 4019 "loc": { 4020 "start": { 4021 "line": 1, 4022 "column": 1 4023 }, 4024 "end": { 4025 "line": 1, 4026 "column": 1 4027 } 4028 } 4029 }, 4030 "body": { 4031 "type": "BlockStatement", 4032 "statements": [ 4033 { 4034 "type": "ReturnStatement", 4035 "argument": { 4036 "type": "MemberExpression", 4037 "object": { 4038 "type": "Identifier", 4039 "name": "ItemsArray", 4040 "decorators": [], 4041 "loc": { 4042 "start": { 4043 "line": 1, 4044 "column": 1 4045 }, 4046 "end": { 4047 "line": 1, 4048 "column": 1 4049 } 4050 } 4051 }, 4052 "property": { 4053 "type": "MemberExpression", 4054 "object": { 4055 "type": "ThisExpression", 4056 "loc": { 4057 "start": { 4058 "line": 1, 4059 "column": 1 4060 }, 4061 "end": { 4062 "line": 1, 4063 "column": 1 4064 } 4065 } 4066 }, 4067 "property": { 4068 "type": "Identifier", 4069 "name": "ordinal", 4070 "decorators": [], 4071 "loc": { 4072 "start": { 4073 "line": 1, 4074 "column": 1 4075 }, 4076 "end": { 4077 "line": 1, 4078 "column": 1 4079 } 4080 } 4081 }, 4082 "computed": false, 4083 "optional": false, 4084 "loc": { 4085 "start": { 4086 "line": 1, 4087 "column": 1 4088 }, 4089 "end": { 4090 "line": 1, 4091 "column": 1 4092 } 4093 } 4094 }, 4095 "computed": true, 4096 "optional": false, 4097 "loc": { 4098 "start": { 4099 "line": 1, 4100 "column": 1 4101 }, 4102 "end": { 4103 "line": 1, 4104 "column": 1 4105 } 4106 } 4107 }, 4108 "loc": { 4109 "start": { 4110 "line": 1, 4111 "column": 1 4112 }, 4113 "end": { 4114 "line": 1, 4115 "column": 1 4116 } 4117 } 4118 } 4119 ], 4120 "loc": { 4121 "start": { 4122 "line": 1, 4123 "column": 1 4124 }, 4125 "end": { 4126 "line": 1, 4127 "column": 1 4128 } 4129 } 4130 }, 4131 "loc": { 4132 "start": { 4133 "line": 1, 4134 "column": 1 4135 }, 4136 "end": { 4137 "line": 1, 4138 "column": 1 4139 } 4140 } 4141 }, 4142 "loc": { 4143 "start": { 4144 "line": 1, 4145 "column": 1 4146 }, 4147 "end": { 4148 "line": 1, 4149 "column": 1 4150 } 4151 } 4152 }, 4153 "overloads": [], 4154 "decorators": [], 4155 "loc": { 4156 "start": { 4157 "line": 1, 4158 "column": 1 4159 }, 4160 "end": { 4161 "line": 1, 4162 "column": 1 4163 } 4164 } 4165 }, 4166 { 4167 "type": "MethodDefinition", 4168 "key": { 4169 "type": "Identifier", 4170 "name": "boxedfromInt", 4171 "decorators": [], 4172 "loc": { 4173 "start": { 4174 "line": 1, 4175 "column": 1 4176 }, 4177 "end": { 4178 "line": 1, 4179 "column": 1 4180 } 4181 } 4182 }, 4183 "kind": "method", 4184 "accessibility": "public", 4185 "static": true, 4186 "optional": false, 4187 "computed": false, 4188 "value": { 4189 "type": "FunctionExpression", 4190 "function": { 4191 "type": "ScriptFunction", 4192 "id": { 4193 "type": "Identifier", 4194 "name": "boxedfromInt", 4195 "decorators": [], 4196 "loc": { 4197 "start": { 4198 "line": 1, 4199 "column": 1 4200 }, 4201 "end": { 4202 "line": 1, 4203 "column": 1 4204 } 4205 } 4206 }, 4207 "generator": false, 4208 "async": false, 4209 "expression": false, 4210 "params": [ 4211 { 4212 "type": "ETSParameterExpression", 4213 "name": { 4214 "type": "Identifier", 4215 "name": "ordinal", 4216 "typeAnnotation": { 4217 "type": "ETSPrimitiveType", 4218 "loc": { 4219 "start": { 4220 "line": 1, 4221 "column": 1 4222 }, 4223 "end": { 4224 "line": 1, 4225 "column": 1 4226 } 4227 } 4228 }, 4229 "decorators": [], 4230 "loc": { 4231 "start": { 4232 "line": 1, 4233 "column": 1 4234 }, 4235 "end": { 4236 "line": 1, 4237 "column": 1 4238 } 4239 } 4240 }, 4241 "loc": { 4242 "start": { 4243 "line": 1, 4244 "column": 1 4245 }, 4246 "end": { 4247 "line": 1, 4248 "column": 1 4249 } 4250 } 4251 } 4252 ], 4253 "returnType": { 4254 "type": "ETSTypeReference", 4255 "part": { 4256 "type": "ETSTypeReferencePart", 4257 "name": { 4258 "type": "Identifier", 4259 "name": "#InvalidInitTypeEnum", 4260 "decorators": [], 4261 "loc": { 4262 "start": { 4263 "line": 1, 4264 "column": 1 4265 }, 4266 "end": { 4267 "line": 1, 4268 "column": 1 4269 } 4270 } 4271 }, 4272 "loc": { 4273 "start": { 4274 "line": 1, 4275 "column": 1 4276 }, 4277 "end": { 4278 "line": 1, 4279 "column": 1 4280 } 4281 } 4282 }, 4283 "loc": { 4284 "start": { 4285 "line": 1, 4286 "column": 1 4287 }, 4288 "end": { 4289 "line": 1, 4290 "column": 1 4291 } 4292 } 4293 }, 4294 "body": { 4295 "type": "BlockStatement", 4296 "statements": [ 4297 { 4298 "type": "IfStatement", 4299 "test": { 4300 "type": "BinaryExpression", 4301 "operator": "<", 4302 "left": { 4303 "type": "Identifier", 4304 "name": "ordinal", 4305 "decorators": [], 4306 "loc": { 4307 "start": { 4308 "line": 1, 4309 "column": 1 4310 }, 4311 "end": { 4312 "line": 1, 4313 "column": 1 4314 } 4315 } 4316 }, 4317 "right": { 4318 "type": "MemberExpression", 4319 "object": { 4320 "type": "Identifier", 4321 "name": "BoxedItemsArray", 4322 "decorators": [], 4323 "loc": { 4324 "start": { 4325 "line": 1, 4326 "column": 1 4327 }, 4328 "end": { 4329 "line": 1, 4330 "column": 1 4331 } 4332 } 4333 }, 4334 "property": { 4335 "type": "Identifier", 4336 "name": "length", 4337 "decorators": [], 4338 "loc": { 4339 "start": { 4340 "line": 1, 4341 "column": 1 4342 }, 4343 "end": { 4344 "line": 1, 4345 "column": 1 4346 } 4347 } 4348 }, 4349 "computed": false, 4350 "optional": false, 4351 "loc": { 4352 "start": { 4353 "line": 1, 4354 "column": 1 4355 }, 4356 "end": { 4357 "line": 1, 4358 "column": 1 4359 } 4360 } 4361 }, 4362 "loc": { 4363 "start": { 4364 "line": 1, 4365 "column": 1 4366 }, 4367 "end": { 4368 "line": 1, 4369 "column": 1 4370 } 4371 } 4372 }, 4373 "consequent": { 4374 "type": "ReturnStatement", 4375 "argument": { 4376 "type": "MemberExpression", 4377 "object": { 4378 "type": "Identifier", 4379 "name": "BoxedItemsArray", 4380 "decorators": [], 4381 "loc": { 4382 "start": { 4383 "line": 1, 4384 "column": 1 4385 }, 4386 "end": { 4387 "line": 1, 4388 "column": 1 4389 } 4390 } 4391 }, 4392 "property": { 4393 "type": "Identifier", 4394 "name": "ordinal", 4395 "decorators": [], 4396 "loc": { 4397 "start": { 4398 "line": 1, 4399 "column": 1 4400 }, 4401 "end": { 4402 "line": 1, 4403 "column": 1 4404 } 4405 } 4406 }, 4407 "computed": true, 4408 "optional": false, 4409 "loc": { 4410 "start": { 4411 "line": 1, 4412 "column": 1 4413 }, 4414 "end": { 4415 "line": 1, 4416 "column": 1 4417 } 4418 } 4419 }, 4420 "loc": { 4421 "start": { 4422 "line": 1, 4423 "column": 1 4424 }, 4425 "end": { 4426 "line": 1, 4427 "column": 1 4428 } 4429 } 4430 }, 4431 "alternate": null, 4432 "loc": { 4433 "start": { 4434 "line": 1, 4435 "column": 1 4436 }, 4437 "end": { 4438 "line": 1, 4439 "column": 1 4440 } 4441 } 4442 }, 4443 { 4444 "type": "ThrowStatement", 4445 "argument": { 4446 "type": "ETSNewClassInstanceExpression", 4447 "typeReference": { 4448 "type": "ETSTypeReference", 4449 "part": { 4450 "type": "ETSTypeReferencePart", 4451 "name": { 4452 "type": "Identifier", 4453 "name": "Exception", 4454 "decorators": [], 4455 "loc": { 4456 "start": { 4457 "line": 1, 4458 "column": 1 4459 }, 4460 "end": { 4461 "line": 1, 4462 "column": 1 4463 } 4464 } 4465 }, 4466 "loc": { 4467 "start": { 4468 "line": 1, 4469 "column": 1 4470 }, 4471 "end": { 4472 "line": 1, 4473 "column": 1 4474 } 4475 } 4476 }, 4477 "loc": { 4478 "start": { 4479 "line": 1, 4480 "column": 1 4481 }, 4482 "end": { 4483 "line": 1, 4484 "column": 1 4485 } 4486 } 4487 }, 4488 "arguments": [ 4489 { 4490 "type": "BinaryExpression", 4491 "operator": "+", 4492 "left": { 4493 "type": "StringLiteral", 4494 "value": "No enum constant in InvalidInitTypeEnum with ordinal value ", 4495 "loc": { 4496 "start": { 4497 "line": 1, 4498 "column": 1 4499 }, 4500 "end": { 4501 "line": 1, 4502 "column": 1 4503 } 4504 } 4505 }, 4506 "right": { 4507 "type": "Identifier", 4508 "name": "ordinal", 4509 "decorators": [], 4510 "loc": { 4511 "start": { 4512 "line": 1, 4513 "column": 1 4514 }, 4515 "end": { 4516 "line": 1, 4517 "column": 1 4518 } 4519 } 4520 }, 4521 "loc": { 4522 "start": { 4523 "line": 1, 4524 "column": 1 4525 }, 4526 "end": { 4527 "line": 1, 4528 "column": 1 4529 } 4530 } 4531 } 4532 ], 4533 "loc": { 4534 "start": { 4535 "line": 1, 4536 "column": 1 4537 }, 4538 "end": { 4539 "line": 1, 4540 "column": 1 4541 } 4542 } 4543 }, 4544 "loc": { 4545 "start": { 4546 "line": 1, 4547 "column": 1 4548 }, 4549 "end": { 4550 "line": 1, 4551 "column": 1 4552 } 4553 } 4554 } 4555 ], 4556 "loc": { 4557 "start": { 4558 "line": 1, 4559 "column": 1 4560 }, 4561 "end": { 4562 "line": 1, 4563 "column": 1 4564 } 4565 } 4566 } 4567 "throwMarker": "throws", 4568 "loc": { 4569 "start": { 4570 "line": 1, 4571 "column": 1 4572 }, 4573 "end": { 4574 "line": 1, 4575 "column": 1 4576 } 4577 } 4578 }, 4579 "loc": { 4580 "start": { 4581 "line": 1, 4582 "column": 1 4583 }, 4584 "end": { 4585 "line": 1, 4586 "column": 1 4587 } 4588 } 4589 }, 4590 "overloads": [], 4591 "decorators": [], 4592 "loc": { 4593 "start": { 4594 "line": 1, 4595 "column": 1 4596 }, 4597 "end": { 4598 "line": 1, 4599 "column": 1 4600 } 4601 } 4602 } 4603 ], 4604 "loc": { 4605 "start": { 4606 "line": 1, 4607 "column": 1 4608 }, 4609 "end": { 4610 "line": 1, 4611 "column": 1 4612 } 4613 } 4614 }, 4615 "loc": { 4616 "start": { 4617 "line": 1, 4618 "column": 1 4619 }, 4620 "end": { 4621 "line": 1, 4622 "column": 1 4623 } 4624 } 4625 } 4626 ], 4627 "loc": { 4628 "start": { 4629 "line": 1, 4630 "column": 1 4631 }, 4632 "end": { 4633 "line": 21, 4634 "column": 1 4635 } 4636 } 4637} 4638