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