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