1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "ETSGLOBAL", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 1, 14 "column": 1 15 }, 16 "end": { 17 "line": 1, 18 "column": 1 19 } 20 } 21 }, 22 "superClass": null, 23 "implements": [], 24 "body": [ 25 { 26 "type": "MethodDefinition", 27 "key": { 28 "type": "Identifier", 29 "name": "_$init$_", 30 "decorators": [], 31 "loc": { 32 "start": { 33 "line": 1, 34 "column": 1 35 }, 36 "end": { 37 "line": 1, 38 "column": 1 39 } 40 } 41 }, 42 "kind": "method", 43 "accessibility": "public", 44 "static": true, 45 "optional": false, 46 "computed": false, 47 "value": { 48 "type": "FunctionExpression", 49 "function": { 50 "type": "ScriptFunction", 51 "id": { 52 "type": "Identifier", 53 "name": "_$init$_", 54 "decorators": [], 55 "loc": { 56 "start": { 57 "line": 1, 58 "column": 1 59 }, 60 "end": { 61 "line": 1, 62 "column": 1 63 } 64 } 65 }, 66 "generator": false, 67 "async": false, 68 "expression": false, 69 "params": [], 70 "body": { 71 "type": "BlockStatement", 72 "statements": [], 73 "loc": { 74 "start": { 75 "line": 1, 76 "column": 1 77 }, 78 "end": { 79 "line": 1, 80 "column": 1 81 } 82 } 83 }, 84 "loc": { 85 "start": { 86 "line": 1, 87 "column": 1 88 }, 89 "end": { 90 "line": 1, 91 "column": 1 92 } 93 } 94 }, 95 "loc": { 96 "start": { 97 "line": 1, 98 "column": 1 99 }, 100 "end": { 101 "line": 1, 102 "column": 1 103 } 104 } 105 }, 106 "overloads": [], 107 "decorators": [], 108 "loc": { 109 "start": { 110 "line": 1, 111 "column": 1 112 }, 113 "end": { 114 "line": 1, 115 "column": 1 116 } 117 } 118 }, 119 { 120 "type": "MethodDefinition", 121 "key": { 122 "type": "Identifier", 123 "name": "main", 124 "decorators": [], 125 "loc": { 126 "start": { 127 "line": 16, 128 "column": 10 129 }, 130 "end": { 131 "line": 16, 132 "column": 14 133 } 134 } 135 }, 136 "kind": "method", 137 "accessibility": "public", 138 "static": true, 139 "optional": false, 140 "computed": false, 141 "value": { 142 "type": "FunctionExpression", 143 "function": { 144 "type": "ScriptFunction", 145 "id": { 146 "type": "Identifier", 147 "name": "main", 148 "decorators": [], 149 "loc": { 150 "start": { 151 "line": 16, 152 "column": 10 153 }, 154 "end": { 155 "line": 16, 156 "column": 14 157 } 158 } 159 }, 160 "generator": false, 161 "async": false, 162 "expression": false, 163 "params": [], 164 "returnType": { 165 "type": "ETSPrimitiveType", 166 "loc": { 167 "start": { 168 "line": 16, 169 "column": 18 170 }, 171 "end": { 172 "line": 16, 173 "column": 21 174 } 175 } 176 }, 177 "body": { 178 "type": "BlockStatement", 179 "statements": [ 180 { 181 "type": "VariableDeclaration", 182 "declarations": [ 183 { 184 "type": "VariableDeclarator", 185 "id": { 186 "type": "Identifier", 187 "name": "res", 188 "decorators": [], 189 "loc": { 190 "start": { 191 "line": 17, 192 "column": 9 193 }, 194 "end": { 195 "line": 17, 196 "column": 12 197 } 198 } 199 }, 200 "init": { 201 "type": "StringLiteral", 202 "value": "", 203 "loc": { 204 "start": { 205 "line": 17, 206 "column": 15 207 }, 208 "end": { 209 "line": 17, 210 "column": 17 211 } 212 } 213 }, 214 "loc": { 215 "start": { 216 "line": 17, 217 "column": 9 218 }, 219 "end": { 220 "line": 17, 221 "column": 17 222 } 223 } 224 } 225 ], 226 "kind": "let", 227 "loc": { 228 "start": { 229 "line": 17, 230 "column": 5 231 }, 232 "end": { 233 "line": 17, 234 "column": 17 235 } 236 } 237 }, 238 { 239 "type": "VariableDeclaration", 240 "declarations": [ 241 { 242 "type": "VariableDeclarator", 243 "id": { 244 "type": "Identifier", 245 "name": "arr", 246 "typeAnnotation": { 247 "type": "TSArrayType", 248 "elementType": { 249 "type": "ETSTypeReference", 250 "part": { 251 "type": "ETSTypeReferencePart", 252 "name": { 253 "type": "Identifier", 254 "name": "Long", 255 "decorators": [], 256 "loc": { 257 "start": { 258 "line": 18, 259 "column": 14 260 }, 261 "end": { 262 "line": 18, 263 "column": 18 264 } 265 } 266 }, 267 "loc": { 268 "start": { 269 "line": 18, 270 "column": 14 271 }, 272 "end": { 273 "line": 18, 274 "column": 19 275 } 276 } 277 }, 278 "loc": { 279 "start": { 280 "line": 18, 281 "column": 14 282 }, 283 "end": { 284 "line": 18, 285 "column": 19 286 } 287 } 288 }, 289 "loc": { 290 "start": { 291 "line": 18, 292 "column": 21 293 }, 294 "end": { 295 "line": 18, 296 "column": 22 297 } 298 } 299 }, 300 "decorators": [], 301 "loc": { 302 "start": { 303 "line": 18, 304 "column": 9 305 }, 306 "end": { 307 "line": 18, 308 "column": 12 309 } 310 } 311 }, 312 "init": { 313 "type": "ArrayExpression", 314 "elements": [ 315 { 316 "type": "ETSNewClassInstanceExpression", 317 "typeReference": { 318 "type": "ETSTypeReference", 319 "part": { 320 "type": "ETSTypeReferencePart", 321 "name": { 322 "type": "Identifier", 323 "name": "Long", 324 "decorators": [], 325 "loc": { 326 "start": { 327 "line": 18, 328 "column": 28 329 }, 330 "end": { 331 "line": 18, 332 "column": 32 333 } 334 } 335 }, 336 "loc": { 337 "start": { 338 "line": 18, 339 "column": 28 340 }, 341 "end": { 342 "line": 18, 343 "column": 33 344 } 345 } 346 }, 347 "loc": { 348 "start": { 349 "line": 18, 350 "column": 28 351 }, 352 "end": { 353 "line": 18, 354 "column": 33 355 } 356 } 357 }, 358 "arguments": [ 359 { 360 "type": "TSAsExpression", 361 "expression": { 362 "type": "NumberLiteral", 363 "value": 10, 364 "loc": { 365 "start": { 366 "line": 18, 367 "column": 33 368 }, 369 "end": { 370 "line": 18, 371 "column": 35 372 } 373 } 374 }, 375 "typeAnnotation": { 376 "type": "ETSPrimitiveType", 377 "loc": { 378 "start": { 379 "line": 18, 380 "column": 39 381 }, 382 "end": { 383 "line": 18, 384 "column": 43 385 } 386 } 387 }, 388 "loc": { 389 "start": { 390 "line": 18, 391 "column": 33 392 }, 393 "end": { 394 "line": 18, 395 "column": 35 396 } 397 } 398 } 399 ], 400 "loc": { 401 "start": { 402 "line": 18, 403 "column": 24 404 }, 405 "end": { 406 "line": 18, 407 "column": 45 408 } 409 } 410 }, 411 { 412 "type": "ETSNewClassInstanceExpression", 413 "typeReference": { 414 "type": "ETSTypeReference", 415 "part": { 416 "type": "ETSTypeReferencePart", 417 "name": { 418 "type": "Identifier", 419 "name": "Long", 420 "decorators": [], 421 "loc": { 422 "start": { 423 "line": 18, 424 "column": 50 425 }, 426 "end": { 427 "line": 18, 428 "column": 54 429 } 430 } 431 }, 432 "loc": { 433 "start": { 434 "line": 18, 435 "column": 50 436 }, 437 "end": { 438 "line": 18, 439 "column": 55 440 } 441 } 442 }, 443 "loc": { 444 "start": { 445 "line": 18, 446 "column": 50 447 }, 448 "end": { 449 "line": 18, 450 "column": 55 451 } 452 } 453 }, 454 "arguments": [ 455 { 456 "type": "TSAsExpression", 457 "expression": { 458 "type": "NumberLiteral", 459 "value": 12, 460 "loc": { 461 "start": { 462 "line": 18, 463 "column": 55 464 }, 465 "end": { 466 "line": 18, 467 "column": 57 468 } 469 } 470 }, 471 "typeAnnotation": { 472 "type": "ETSPrimitiveType", 473 "loc": { 474 "start": { 475 "line": 18, 476 "column": 61 477 }, 478 "end": { 479 "line": 18, 480 "column": 65 481 } 482 } 483 }, 484 "loc": { 485 "start": { 486 "line": 18, 487 "column": 55 488 }, 489 "end": { 490 "line": 18, 491 "column": 57 492 } 493 } 494 } 495 ], 496 "loc": { 497 "start": { 498 "line": 18, 499 "column": 46 500 }, 501 "end": { 502 "line": 18, 503 "column": 67 504 } 505 } 506 }, 507 { 508 "type": "ETSNewClassInstanceExpression", 509 "typeReference": { 510 "type": "ETSTypeReference", 511 "part": { 512 "type": "ETSTypeReferencePart", 513 "name": { 514 "type": "Identifier", 515 "name": "Long", 516 "decorators": [], 517 "loc": { 518 "start": { 519 "line": 18, 520 "column": 72 521 }, 522 "end": { 523 "line": 18, 524 "column": 76 525 } 526 } 527 }, 528 "loc": { 529 "start": { 530 "line": 18, 531 "column": 72 532 }, 533 "end": { 534 "line": 18, 535 "column": 77 536 } 537 } 538 }, 539 "loc": { 540 "start": { 541 "line": 18, 542 "column": 72 543 }, 544 "end": { 545 "line": 18, 546 "column": 77 547 } 548 } 549 }, 550 "arguments": [ 551 { 552 "type": "TSAsExpression", 553 "expression": { 554 "type": "NumberLiteral", 555 "value": 33, 556 "loc": { 557 "start": { 558 "line": 18, 559 "column": 77 560 }, 561 "end": { 562 "line": 18, 563 "column": 79 564 } 565 } 566 }, 567 "typeAnnotation": { 568 "type": "ETSPrimitiveType", 569 "loc": { 570 "start": { 571 "line": 18, 572 "column": 83 573 }, 574 "end": { 575 "line": 18, 576 "column": 87 577 } 578 } 579 }, 580 "loc": { 581 "start": { 582 "line": 18, 583 "column": 77 584 }, 585 "end": { 586 "line": 18, 587 "column": 79 588 } 589 } 590 } 591 ], 592 "loc": { 593 "start": { 594 "line": 18, 595 "column": 68 596 }, 597 "end": { 598 "line": 18, 599 "column": 89 600 } 601 } 602 } 603 ], 604 "loc": { 605 "start": { 606 "line": 18, 607 "column": 23 608 }, 609 "end": { 610 "line": 18, 611 "column": 89 612 } 613 } 614 }, 615 "loc": { 616 "start": { 617 "line": 18, 618 "column": 9 619 }, 620 "end": { 621 "line": 18, 622 "column": 89 623 } 624 } 625 } 626 ], 627 "kind": "let", 628 "loc": { 629 "start": { 630 "line": 18, 631 "column": 5 632 }, 633 "end": { 634 "line": 18, 635 "column": 89 636 } 637 } 638 }, 639 { 640 "type": "ForOfStatement", 641 "await": false, 642 "left": { 643 "type": "VariableDeclaration", 644 "declarations": [ 645 { 646 "type": "VariableDeclarator", 647 "id": { 648 "type": "Identifier", 649 "name": "i", 650 "typeAnnotation": { 651 "type": "ETSPrimitiveType", 652 "loc": { 653 "start": { 654 "line": 19, 655 "column": 17 656 }, 657 "end": { 658 "line": 19, 659 "column": 21 660 } 661 } 662 }, 663 "decorators": [], 664 "loc": { 665 "start": { 666 "line": 19, 667 "column": 14 668 }, 669 "end": { 670 "line": 19, 671 "column": 15 672 } 673 } 674 }, 675 "init": null, 676 "loc": { 677 "start": { 678 "line": 19, 679 "column": 14 680 }, 681 "end": { 682 "line": 19, 683 "column": 15 684 } 685 } 686 } 687 ], 688 "kind": "let", 689 "loc": { 690 "start": { 691 "line": 19, 692 "column": 10 693 }, 694 "end": { 695 "line": 19, 696 "column": 15 697 } 698 } 699 }, 700 "right": { 701 "type": "Identifier", 702 "name": "arr", 703 "decorators": [], 704 "loc": { 705 "start": { 706 "line": 19, 707 "column": 25 708 }, 709 "end": { 710 "line": 19, 711 "column": 28 712 } 713 } 714 }, 715 "body": { 716 "type": "ExpressionStatement", 717 "expression": { 718 "type": "AssignmentExpression", 719 "operator": "+=", 720 "left": { 721 "type": "Identifier", 722 "name": "res", 723 "decorators": [], 724 "loc": { 725 "start": { 726 "line": 19, 727 "column": 30 728 }, 729 "end": { 730 "line": 19, 731 "column": 33 732 } 733 } 734 }, 735 "right": { 736 "type": "Identifier", 737 "name": "i", 738 "decorators": [], 739 "loc": { 740 "start": { 741 "line": 19, 742 "column": 37 743 }, 744 "end": { 745 "line": 19, 746 "column": 38 747 } 748 } 749 }, 750 "loc": { 751 "start": { 752 "line": 19, 753 "column": 30 754 }, 755 "end": { 756 "line": 19, 757 "column": 38 758 } 759 } 760 }, 761 "loc": { 762 "start": { 763 "line": 19, 764 "column": 30 765 }, 766 "end": { 767 "line": 19, 768 "column": 38 769 } 770 } 771 }, 772 "loc": { 773 "start": { 774 "line": 19, 775 "column": 5 776 }, 777 "end": { 778 "line": 19, 779 "column": 38 780 } 781 } 782 }, 783 { 784 "type": "IfStatement", 785 "test": { 786 "type": "BinaryExpression", 787 "operator": "==", 788 "left": { 789 "type": "Identifier", 790 "name": "res", 791 "decorators": [], 792 "loc": { 793 "start": { 794 "line": 20, 795 "column": 9 796 }, 797 "end": { 798 "line": 20, 799 "column": 12 800 } 801 } 802 }, 803 "right": { 804 "type": "StringLiteral", 805 "value": "101233", 806 "loc": { 807 "start": { 808 "line": 20, 809 "column": 16 810 }, 811 "end": { 812 "line": 20, 813 "column": 24 814 } 815 } 816 }, 817 "loc": { 818 "start": { 819 "line": 20, 820 "column": 9 821 }, 822 "end": { 823 "line": 20, 824 "column": 24 825 } 826 } 827 }, 828 "consequent": { 829 "type": "ReturnStatement", 830 "argument": { 831 "type": "NumberLiteral", 832 "value": 0, 833 "loc": { 834 "start": { 835 "line": 20, 836 "column": 33 837 }, 838 "end": { 839 "line": 20, 840 "column": 34 841 } 842 } 843 }, 844 "loc": { 845 "start": { 846 "line": 20, 847 "column": 26 848 }, 849 "end": { 850 "line": 20, 851 "column": 35 852 } 853 } 854 }, 855 "alternate": null, 856 "loc": { 857 "start": { 858 "line": 20, 859 "column": 5 860 }, 861 "end": { 862 "line": 20, 863 "column": 35 864 } 865 } 866 }, 867 { 868 "type": "ReturnStatement", 869 "argument": { 870 "type": "NumberLiteral", 871 "value": 1, 872 "loc": { 873 "start": { 874 "line": 21, 875 "column": 12 876 }, 877 "end": { 878 "line": 21, 879 "column": 13 880 } 881 } 882 }, 883 "loc": { 884 "start": { 885 "line": 21, 886 "column": 5 887 }, 888 "end": { 889 "line": 21, 890 "column": 14 891 } 892 } 893 } 894 ], 895 "loc": { 896 "start": { 897 "line": 16, 898 "column": 22 899 }, 900 "end": { 901 "line": 22, 902 "column": 2 903 } 904 } 905 }, 906 "loc": { 907 "start": { 908 "line": 16, 909 "column": 14 910 }, 911 "end": { 912 "line": 22, 913 "column": 2 914 } 915 } 916 }, 917 "loc": { 918 "start": { 919 "line": 16, 920 "column": 14 921 }, 922 "end": { 923 "line": 22, 924 "column": 2 925 } 926 } 927 }, 928 "overloads": [], 929 "decorators": [], 930 "loc": { 931 "start": { 932 "line": 16, 933 "column": 1 934 }, 935 "end": { 936 "line": 22, 937 "column": 2 938 } 939 } 940 } 941 ], 942 "loc": { 943 "start": { 944 "line": 1, 945 "column": 1 946 }, 947 "end": { 948 "line": 1, 949 "column": 1 950 } 951 } 952 }, 953 "loc": { 954 "start": { 955 "line": 1, 956 "column": 1 957 }, 958 "end": { 959 "line": 1, 960 "column": 1 961 } 962 } 963 } 964 ], 965 "loc": { 966 "start": { 967 "line": 1, 968 "column": 1 969 }, 970 "end": { 971 "line": 23, 972 "column": 1 973 } 974 } 975} 976