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