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