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