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": "labeledWhileTest01", 124 "decorators": [], 125 "loc": { 126 "start": { 127 "line": 16, 128 "column": 10 129 }, 130 "end": { 131 "line": 16, 132 "column": 28 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": "labeledWhileTest01", 148 "decorators": [], 149 "loc": { 150 "start": { 151 "line": 16, 152 "column": 10 153 }, 154 "end": { 155 "line": 16, 156 "column": 28 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": 32 170 }, 171 "end": { 172 "line": 16, 173 "column": 36 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": "i", 188 "decorators": [], 189 "loc": { 190 "start": { 191 "line": 17, 192 "column": 7 193 }, 194 "end": { 195 "line": 17, 196 "column": 8 197 } 198 } 199 }, 200 "init": { 201 "type": "NumberLiteral", 202 "value": 0, 203 "loc": { 204 "start": { 205 "line": 17, 206 "column": 11 207 }, 208 "end": { 209 "line": 17, 210 "column": 12 211 } 212 } 213 }, 214 "loc": { 215 "start": { 216 "line": 17, 217 "column": 7 218 }, 219 "end": { 220 "line": 17, 221 "column": 12 222 } 223 } 224 } 225 ], 226 "kind": "let", 227 "loc": { 228 "start": { 229 "line": 17, 230 "column": 3 231 }, 232 "end": { 233 "line": 17, 234 "column": 13 235 } 236 } 237 }, 238 { 239 "type": "VariableDeclaration", 240 "declarations": [ 241 { 242 "type": "VariableDeclarator", 243 "id": { 244 "type": "Identifier", 245 "name": "j", 246 "decorators": [], 247 "loc": { 248 "start": { 249 "line": 18, 250 "column": 7 251 }, 252 "end": { 253 "line": 18, 254 "column": 8 255 } 256 } 257 }, 258 "init": { 259 "type": "NumberLiteral", 260 "value": 0, 261 "loc": { 262 "start": { 263 "line": 18, 264 "column": 11 265 }, 266 "end": { 267 "line": 18, 268 "column": 12 269 } 270 } 271 }, 272 "loc": { 273 "start": { 274 "line": 18, 275 "column": 7 276 }, 277 "end": { 278 "line": 18, 279 "column": 12 280 } 281 } 282 } 283 ], 284 "kind": "let", 285 "loc": { 286 "start": { 287 "line": 18, 288 "column": 3 289 }, 290 "end": { 291 "line": 18, 292 "column": 13 293 } 294 } 295 }, 296 { 297 "type": "VariableDeclaration", 298 "declarations": [ 299 { 300 "type": "VariableDeclarator", 301 "id": { 302 "type": "Identifier", 303 "name": "k", 304 "decorators": [], 305 "loc": { 306 "start": { 307 "line": 19, 308 "column": 7 309 }, 310 "end": { 311 "line": 19, 312 "column": 8 313 } 314 } 315 }, 316 "init": { 317 "type": "NumberLiteral", 318 "value": 0, 319 "loc": { 320 "start": { 321 "line": 19, 322 "column": 11 323 }, 324 "end": { 325 "line": 19, 326 "column": 12 327 } 328 } 329 }, 330 "loc": { 331 "start": { 332 "line": 19, 333 "column": 7 334 }, 335 "end": { 336 "line": 19, 337 "column": 12 338 } 339 } 340 } 341 ], 342 "kind": "let", 343 "loc": { 344 "start": { 345 "line": 19, 346 "column": 3 347 }, 348 "end": { 349 "line": 19, 350 "column": 13 351 } 352 } 353 }, 354 { 355 "type": "LabelledStatement", 356 "label": { 357 "type": "Identifier", 358 "name": "label1", 359 "decorators": [], 360 "loc": { 361 "start": { 362 "line": 21, 363 "column": 3 364 }, 365 "end": { 366 "line": 21, 367 "column": 9 368 } 369 } 370 }, 371 "body": { 372 "type": "WhileStatement", 373 "test": { 374 "type": "BinaryExpression", 375 "operator": "<", 376 "left": { 377 "type": "Identifier", 378 "name": "i", 379 "decorators": [], 380 "loc": { 381 "start": { 382 "line": 22, 383 "column": 10 384 }, 385 "end": { 386 "line": 22, 387 "column": 11 388 } 389 } 390 }, 391 "right": { 392 "type": "NumberLiteral", 393 "value": 10, 394 "loc": { 395 "start": { 396 "line": 22, 397 "column": 14 398 }, 399 "end": { 400 "line": 22, 401 "column": 16 402 } 403 } 404 }, 405 "loc": { 406 "start": { 407 "line": 22, 408 "column": 10 409 }, 410 "end": { 411 "line": 22, 412 "column": 16 413 } 414 } 415 }, 416 "body": { 417 "type": "BlockStatement", 418 "statements": [ 419 { 420 "type": "IfStatement", 421 "test": { 422 "type": "BinaryExpression", 423 "operator": "!=", 424 "left": { 425 "type": "BinaryExpression", 426 "operator": "/", 427 "left": { 428 "type": "Identifier", 429 "name": "i", 430 "decorators": [], 431 "loc": { 432 "start": { 433 "line": 23, 434 "column": 9 435 }, 436 "end": { 437 "line": 23, 438 "column": 10 439 } 440 } 441 }, 442 "right": { 443 "type": "NumberLiteral", 444 "value": 2, 445 "loc": { 446 "start": { 447 "line": 23, 448 "column": 13 449 }, 450 "end": { 451 "line": 23, 452 "column": 14 453 } 454 } 455 }, 456 "loc": { 457 "start": { 458 "line": 23, 459 "column": 9 460 }, 461 "end": { 462 "line": 23, 463 "column": 14 464 } 465 } 466 }, 467 "right": { 468 "type": "NumberLiteral", 469 "value": 0, 470 "loc": { 471 "start": { 472 "line": 23, 473 "column": 18 474 }, 475 "end": { 476 "line": 23, 477 "column": 19 478 } 479 } 480 }, 481 "loc": { 482 "start": { 483 "line": 23, 484 "column": 9 485 }, 486 "end": { 487 "line": 23, 488 "column": 19 489 } 490 } 491 }, 492 "consequent": { 493 "type": "BlockStatement", 494 "statements": [ 495 { 496 "type": "ExpressionStatement", 497 "expression": { 498 "type": "UpdateExpression", 499 "operator": "++", 500 "prefix": false, 501 "argument": { 502 "type": "Identifier", 503 "name": "i", 504 "decorators": [], 505 "loc": { 506 "start": { 507 "line": 24, 508 "column": 7 509 }, 510 "end": { 511 "line": 24, 512 "column": 8 513 } 514 } 515 }, 516 "loc": { 517 "start": { 518 "line": 24, 519 "column": 7 520 }, 521 "end": { 522 "line": 24, 523 "column": 10 524 } 525 } 526 }, 527 "loc": { 528 "start": { 529 "line": 24, 530 "column": 7 531 }, 532 "end": { 533 "line": 24, 534 "column": 11 535 } 536 } 537 }, 538 { 539 "type": "ContinueStatement", 540 "label": { 541 "type": "Identifier", 542 "name": "label1", 543 "decorators": [], 544 "loc": { 545 "start": { 546 "line": 25, 547 "column": 16 548 }, 549 "end": { 550 "line": 25, 551 "column": 22 552 } 553 } 554 }, 555 "loc": { 556 "start": { 557 "line": 25, 558 "column": 7 559 }, 560 "end": { 561 "line": 25, 562 "column": 23 563 } 564 } 565 } 566 ], 567 "loc": { 568 "start": { 569 "line": 23, 570 "column": 21 571 }, 572 "end": { 573 "line": 26, 574 "column": 6 575 } 576 } 577 }, 578 "alternate": { 579 "type": "BlockStatement", 580 "statements": [ 581 { 582 "type": "BreakStatement", 583 "label": { 584 "type": "Identifier", 585 "name": "label1", 586 "decorators": [], 587 "loc": { 588 "start": { 589 "line": 27, 590 "column": 13 591 }, 592 "end": { 593 "line": 27, 594 "column": 19 595 } 596 } 597 }, 598 "loc": { 599 "start": { 600 "line": 27, 601 "column": 7 602 }, 603 "end": { 604 "line": 27, 605 "column": 20 606 } 607 } 608 } 609 ], 610 "loc": { 611 "start": { 612 "line": 26, 613 "column": 12 614 }, 615 "end": { 616 "line": 28, 617 "column": 6 618 } 619 } 620 }, 621 "loc": { 622 "start": { 623 "line": 23, 624 "column": 5 625 }, 626 "end": { 627 "line": 28, 628 "column": 6 629 } 630 } 631 } 632 ], 633 "loc": { 634 "start": { 635 "line": 22, 636 "column": 18 637 }, 638 "end": { 639 "line": 29, 640 "column": 4 641 } 642 } 643 }, 644 "loc": { 645 "start": { 646 "line": 22, 647 "column": 3 648 }, 649 "end": { 650 "line": 29, 651 "column": 4 652 } 653 } 654 }, 655 "loc": { 656 "start": { 657 "line": 21, 658 "column": 3 659 }, 660 "end": { 661 "line": 29, 662 "column": 4 663 } 664 } 665 }, 666 { 667 "type": "LabelledStatement", 668 "label": { 669 "type": "Identifier", 670 "name": "label2", 671 "decorators": [], 672 "loc": { 673 "start": { 674 "line": 31, 675 "column": 3 676 }, 677 "end": { 678 "line": 31, 679 "column": 9 680 } 681 } 682 }, 683 "body": { 684 "type": "WhileStatement", 685 "test": { 686 "type": "BinaryExpression", 687 "operator": "<", 688 "left": { 689 "type": "Identifier", 690 "name": "j", 691 "decorators": [], 692 "loc": { 693 "start": { 694 "line": 32, 695 "column": 10 696 }, 697 "end": { 698 "line": 32, 699 "column": 11 700 } 701 } 702 }, 703 "right": { 704 "type": "NumberLiteral", 705 "value": 10, 706 "loc": { 707 "start": { 708 "line": 32, 709 "column": 14 710 }, 711 "end": { 712 "line": 32, 713 "column": 16 714 } 715 } 716 }, 717 "loc": { 718 "start": { 719 "line": 32, 720 "column": 10 721 }, 722 "end": { 723 "line": 32, 724 "column": 16 725 } 726 } 727 }, 728 "body": { 729 "type": "BlockStatement", 730 "statements": [ 731 { 732 "type": "IfStatement", 733 "test": { 734 "type": "BinaryExpression", 735 "operator": "==", 736 "left": { 737 "type": "Identifier", 738 "name": "j", 739 "decorators": [], 740 "loc": { 741 "start": { 742 "line": 33, 743 "column": 9 744 }, 745 "end": { 746 "line": 33, 747 "column": 10 748 } 749 } 750 }, 751 "right": { 752 "type": "NumberLiteral", 753 "value": 4, 754 "loc": { 755 "start": { 756 "line": 33, 757 "column": 14 758 }, 759 "end": { 760 "line": 33, 761 "column": 15 762 } 763 } 764 }, 765 "loc": { 766 "start": { 767 "line": 33, 768 "column": 9 769 }, 770 "end": { 771 "line": 33, 772 "column": 15 773 } 774 } 775 }, 776 "consequent": { 777 "type": "BlockStatement", 778 "statements": [ 779 { 780 "type": "BreakStatement", 781 "label": null, 782 "loc": { 783 "start": { 784 "line": 34, 785 "column": 7 786 }, 787 "end": { 788 "line": 34, 789 "column": 13 790 } 791 } 792 } 793 ], 794 "loc": { 795 "start": { 796 "line": 33, 797 "column": 17 798 }, 799 "end": { 800 "line": 35, 801 "column": 6 802 } 803 } 804 }, 805 "alternate": null, 806 "loc": { 807 "start": { 808 "line": 33, 809 "column": 5 810 }, 811 "end": { 812 "line": 35, 813 "column": 6 814 } 815 } 816 }, 817 { 818 "type": "WhileStatement", 819 "test": { 820 "type": "BinaryExpression", 821 "operator": "<", 822 "left": { 823 "type": "Identifier", 824 "name": "k", 825 "decorators": [], 826 "loc": { 827 "start": { 828 "line": 37, 829 "column": 12 830 }, 831 "end": { 832 "line": 37, 833 "column": 13 834 } 835 } 836 }, 837 "right": { 838 "type": "Identifier", 839 "name": "j", 840 "decorators": [], 841 "loc": { 842 "start": { 843 "line": 37, 844 "column": 16 845 }, 846 "end": { 847 "line": 37, 848 "column": 17 849 } 850 } 851 }, 852 "loc": { 853 "start": { 854 "line": 37, 855 "column": 12 856 }, 857 "end": { 858 "line": 37, 859 "column": 17 860 } 861 } 862 }, 863 "body": { 864 "type": "BlockStatement", 865 "statements": [ 866 { 867 "type": "IfStatement", 868 "test": { 869 "type": "BinaryExpression", 870 "operator": "==", 871 "left": { 872 "type": "Identifier", 873 "name": "k", 874 "decorators": [], 875 "loc": { 876 "start": { 877 "line": 38, 878 "column": 11 879 }, 880 "end": { 881 "line": 38, 882 "column": 12 883 } 884 } 885 }, 886 "right": { 887 "type": "NumberLiteral", 888 "value": 7, 889 "loc": { 890 "start": { 891 "line": 38, 892 "column": 16 893 }, 894 "end": { 895 "line": 38, 896 "column": 17 897 } 898 } 899 }, 900 "loc": { 901 "start": { 902 "line": 38, 903 "column": 11 904 }, 905 "end": { 906 "line": 38, 907 "column": 17 908 } 909 } 910 }, 911 "consequent": { 912 "type": "BlockStatement", 913 "statements": [ 914 { 915 "type": "BreakStatement", 916 "label": { 917 "type": "Identifier", 918 "name": "label2", 919 "decorators": [], 920 "loc": { 921 "start": { 922 "line": 39, 923 "column": 15 924 }, 925 "end": { 926 "line": 39, 927 "column": 21 928 } 929 } 930 }, 931 "loc": { 932 "start": { 933 "line": 39, 934 "column": 9 935 }, 936 "end": { 937 "line": 39, 938 "column": 22 939 } 940 } 941 } 942 ], 943 "loc": { 944 "start": { 945 "line": 38, 946 "column": 19 947 }, 948 "end": { 949 "line": 40, 950 "column": 8 951 } 952 } 953 }, 954 "alternate": { 955 "type": "BlockStatement", 956 "statements": [ 957 { 958 "type": "ExpressionStatement", 959 "expression": { 960 "type": "AssignmentExpression", 961 "operator": "+=", 962 "left": { 963 "type": "Identifier", 964 "name": "k", 965 "decorators": [], 966 "loc": { 967 "start": { 968 "line": 41, 969 "column": 9 970 }, 971 "end": { 972 "line": 41, 973 "column": 10 974 } 975 } 976 }, 977 "right": { 978 "type": "Identifier", 979 "name": "j", 980 "decorators": [], 981 "loc": { 982 "start": { 983 "line": 41, 984 "column": 14 985 }, 986 "end": { 987 "line": 41, 988 "column": 15 989 } 990 } 991 }, 992 "loc": { 993 "start": { 994 "line": 41, 995 "column": 9 996 }, 997 "end": { 998 "line": 41, 999 "column": 15 1000 } 1001 } 1002 }, 1003 "loc": { 1004 "start": { 1005 "line": 41, 1006 "column": 9 1007 }, 1008 "end": { 1009 "line": 41, 1010 "column": 16 1011 } 1012 } 1013 }, 1014 { 1015 "type": "ExpressionStatement", 1016 "expression": { 1017 "type": "UpdateExpression", 1018 "operator": "++", 1019 "prefix": false, 1020 "argument": { 1021 "type": "Identifier", 1022 "name": "j", 1023 "decorators": [], 1024 "loc": { 1025 "start": { 1026 "line": 42, 1027 "column": 9 1028 }, 1029 "end": { 1030 "line": 42, 1031 "column": 10 1032 } 1033 } 1034 }, 1035 "loc": { 1036 "start": { 1037 "line": 42, 1038 "column": 9 1039 }, 1040 "end": { 1041 "line": 42, 1042 "column": 12 1043 } 1044 } 1045 }, 1046 "loc": { 1047 "start": { 1048 "line": 42, 1049 "column": 9 1050 }, 1051 "end": { 1052 "line": 42, 1053 "column": 13 1054 } 1055 } 1056 }, 1057 { 1058 "type": "ContinueStatement", 1059 "label": { 1060 "type": "Identifier", 1061 "name": "label2", 1062 "decorators": [], 1063 "loc": { 1064 "start": { 1065 "line": 43, 1066 "column": 18 1067 }, 1068 "end": { 1069 "line": 43, 1070 "column": 24 1071 } 1072 } 1073 }, 1074 "loc": { 1075 "start": { 1076 "line": 43, 1077 "column": 9 1078 }, 1079 "end": { 1080 "line": 43, 1081 "column": 25 1082 } 1083 } 1084 } 1085 ], 1086 "loc": { 1087 "start": { 1088 "line": 40, 1089 "column": 14 1090 }, 1091 "end": { 1092 "line": 44, 1093 "column": 8 1094 } 1095 } 1096 }, 1097 "loc": { 1098 "start": { 1099 "line": 38, 1100 "column": 7 1101 }, 1102 "end": { 1103 "line": 44, 1104 "column": 8 1105 } 1106 } 1107 } 1108 ], 1109 "loc": { 1110 "start": { 1111 "line": 37, 1112 "column": 19 1113 }, 1114 "end": { 1115 "line": 45, 1116 "column": 6 1117 } 1118 } 1119 }, 1120 "loc": { 1121 "start": { 1122 "line": 37, 1123 "column": 5 1124 }, 1125 "end": { 1126 "line": 45, 1127 "column": 6 1128 } 1129 } 1130 }, 1131 { 1132 "type": "ExpressionStatement", 1133 "expression": { 1134 "type": "UpdateExpression", 1135 "operator": "++", 1136 "prefix": true, 1137 "argument": { 1138 "type": "Identifier", 1139 "name": "j", 1140 "decorators": [], 1141 "loc": { 1142 "start": { 1143 "line": 47, 1144 "column": 7 1145 }, 1146 "end": { 1147 "line": 47, 1148 "column": 8 1149 } 1150 } 1151 }, 1152 "loc": { 1153 "start": { 1154 "line": 47, 1155 "column": 5 1156 }, 1157 "end": { 1158 "line": 47, 1159 "column": 8 1160 } 1161 } 1162 }, 1163 "loc": { 1164 "start": { 1165 "line": 47, 1166 "column": 5 1167 }, 1168 "end": { 1169 "line": 47, 1170 "column": 9 1171 } 1172 } 1173 } 1174 ], 1175 "loc": { 1176 "start": { 1177 "line": 32, 1178 "column": 18 1179 }, 1180 "end": { 1181 "line": 48, 1182 "column": 4 1183 } 1184 } 1185 }, 1186 "loc": { 1187 "start": { 1188 "line": 32, 1189 "column": 3 1190 }, 1191 "end": { 1192 "line": 48, 1193 "column": 4 1194 } 1195 } 1196 }, 1197 "loc": { 1198 "start": { 1199 "line": 31, 1200 "column": 3 1201 }, 1202 "end": { 1203 "line": 48, 1204 "column": 4 1205 } 1206 } 1207 } 1208 ], 1209 "loc": { 1210 "start": { 1211 "line": 16, 1212 "column": 37 1213 }, 1214 "end": { 1215 "line": 49, 1216 "column": 2 1217 } 1218 } 1219 }, 1220 "loc": { 1221 "start": { 1222 "line": 16, 1223 "column": 28 1224 }, 1225 "end": { 1226 "line": 49, 1227 "column": 2 1228 } 1229 } 1230 }, 1231 "loc": { 1232 "start": { 1233 "line": 16, 1234 "column": 28 1235 }, 1236 "end": { 1237 "line": 49, 1238 "column": 2 1239 } 1240 } 1241 }, 1242 "overloads": [], 1243 "decorators": [], 1244 "loc": { 1245 "start": { 1246 "line": 16, 1247 "column": 1 1248 }, 1249 "end": { 1250 "line": 49, 1251 "column": 2 1252 } 1253 } 1254 } 1255 ], 1256 "loc": { 1257 "start": { 1258 "line": 1, 1259 "column": 1 1260 }, 1261 "end": { 1262 "line": 1, 1263 "column": 1 1264 } 1265 } 1266 }, 1267 "loc": { 1268 "start": { 1269 "line": 1, 1270 "column": 1 1271 }, 1272 "end": { 1273 "line": 1, 1274 "column": 1 1275 } 1276 } 1277 } 1278 ], 1279 "loc": { 1280 "start": { 1281 "line": 1, 1282 "column": 1 1283 }, 1284 "end": { 1285 "line": 50, 1286 "column": 1 1287 } 1288 } 1289} 1290