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