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