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": "foo", 124 "decorators": [], 125 "loc": { 126 "start": { 127 "line": 16, 128 "column": 10 129 }, 130 "end": { 131 "line": 16, 132 "column": 13 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": "foo", 148 "decorators": [], 149 "loc": { 150 "start": { 151 "line": 16, 152 "column": 10 153 }, 154 "end": { 155 "line": 16, 156 "column": 13 157 } 158 } 159 }, 160 "generator": false, 161 "async": false, 162 "expression": false, 163 "params": [ 164 { 165 "type": "ETSParameterExpression", 166 "name": { 167 "type": "Identifier", 168 "name": "callback", 169 "typeAnnotation": { 170 "type": "ETSFunctionType", 171 "params": [ 172 { 173 "type": "ETSParameterExpression", 174 "name": { 175 "type": "Identifier", 176 "name": "resolve", 177 "typeAnnotation": { 178 "type": "ETSFunctionType", 179 "params": [ 180 { 181 "type": "ETSParameterExpression", 182 "name": { 183 "type": "Identifier", 184 "name": "val", 185 "typeAnnotation": { 186 "type": "ETSPrimitiveType", 187 "loc": { 188 "start": { 189 "line": 16, 190 "column": 40 191 }, 192 "end": { 193 "line": 16, 194 "column": 43 195 } 196 } 197 }, 198 "decorators": [], 199 "loc": { 200 "start": { 201 "line": 16, 202 "column": 35 203 }, 204 "end": { 205 "line": 16, 206 "column": 43 207 } 208 } 209 }, 210 "loc": { 211 "start": { 212 "line": 16, 213 "column": 35 214 }, 215 "end": { 216 "line": 16, 217 "column": 43 218 } 219 } 220 } 221 ], 222 "returnType": { 223 "type": "ETSTypeReference", 224 "part": { 225 "type": "ETSTypeReferencePart", 226 "name": { 227 "type": "Identifier", 228 "name": "void", 229 "decorators": [], 230 "loc": { 231 "start": { 232 "line": 16, 233 "column": 48 234 }, 235 "end": { 236 "line": 16, 237 "column": 52 238 } 239 } 240 }, 241 "loc": { 242 "start": { 243 "line": 16, 244 "column": 48 245 }, 246 "end": { 247 "line": 16, 248 "column": 53 249 } 250 } 251 }, 252 "loc": { 253 "start": { 254 "line": 16, 255 "column": 48 256 }, 257 "end": { 258 "line": 16, 259 "column": 53 260 } 261 } 262 }, 263 "loc": { 264 "start": { 265 "line": 16, 266 "column": 34 267 }, 268 "end": { 269 "line": 16, 270 "column": 53 271 } 272 } 273 }, 274 "decorators": [], 275 "loc": { 276 "start": { 277 "line": 16, 278 "column": 25 279 }, 280 "end": { 281 "line": 16, 282 "column": 53 283 } 284 } 285 }, 286 "loc": { 287 "start": { 288 "line": 16, 289 "column": 25 290 }, 291 "end": { 292 "line": 16, 293 "column": 53 294 } 295 } 296 } 297 ], 298 "returnType": { 299 "type": "ETSTypeReference", 300 "part": { 301 "type": "ETSTypeReferencePart", 302 "name": { 303 "type": "Identifier", 304 "name": "void", 305 "decorators": [], 306 "loc": { 307 "start": { 308 "line": 16, 309 "column": 57 310 }, 311 "end": { 312 "line": 16, 313 "column": 61 314 } 315 } 316 }, 317 "loc": { 318 "start": { 319 "line": 16, 320 "column": 57 321 }, 322 "end": { 323 "line": 16, 324 "column": 62 325 } 326 } 327 }, 328 "loc": { 329 "start": { 330 "line": 16, 331 "column": 57 332 }, 333 "end": { 334 "line": 16, 335 "column": 62 336 } 337 } 338 }, 339 "loc": { 340 "start": { 341 "line": 16, 342 "column": 24 343 }, 344 "end": { 345 "line": 16, 346 "column": 62 347 } 348 } 349 }, 350 "decorators": [], 351 "loc": { 352 "start": { 353 "line": 16, 354 "column": 14 355 }, 356 "end": { 357 "line": 16, 358 "column": 62 359 } 360 } 361 }, 362 "loc": { 363 "start": { 364 "line": 16, 365 "column": 14 366 }, 367 "end": { 368 "line": 16, 369 "column": 62 370 } 371 } 372 } 373 ], 374 "returnType": { 375 "type": "ETSTypeReference", 376 "part": { 377 "type": "ETSTypeReferencePart", 378 "name": { 379 "type": "Identifier", 380 "name": "void", 381 "decorators": [], 382 "loc": { 383 "start": { 384 "line": 16, 385 "column": 64 386 }, 387 "end": { 388 "line": 16, 389 "column": 68 390 } 391 } 392 }, 393 "loc": { 394 "start": { 395 "line": 16, 396 "column": 64 397 }, 398 "end": { 399 "line": 16, 400 "column": 70 401 } 402 } 403 }, 404 "loc": { 405 "start": { 406 "line": 16, 407 "column": 64 408 }, 409 "end": { 410 "line": 16, 411 "column": 70 412 } 413 } 414 }, 415 "body": { 416 "type": "BlockStatement", 417 "statements": [], 418 "loc": { 419 "start": { 420 "line": 16, 421 "column": 69 422 }, 423 "end": { 424 "line": 17, 425 "column": 2 426 } 427 } 428 }, 429 "loc": { 430 "start": { 431 "line": 16, 432 "column": 13 433 }, 434 "end": { 435 "line": 17, 436 "column": 2 437 } 438 } 439 }, 440 "loc": { 441 "start": { 442 "line": 16, 443 "column": 13 444 }, 445 "end": { 446 "line": 17, 447 "column": 2 448 } 449 } 450 }, 451 "overloads": [], 452 "decorators": [], 453 "loc": { 454 "start": { 455 "line": 16, 456 "column": 1 457 }, 458 "end": { 459 "line": 17, 460 "column": 2 461 } 462 } 463 }, 464 { 465 "type": "MethodDefinition", 466 "key": { 467 "type": "Identifier", 468 "name": "main", 469 "decorators": [], 470 "loc": { 471 "start": { 472 "line": 19, 473 "column": 10 474 }, 475 "end": { 476 "line": 19, 477 "column": 14 478 } 479 } 480 }, 481 "kind": "method", 482 "accessibility": "public", 483 "static": true, 484 "optional": false, 485 "computed": false, 486 "value": { 487 "type": "FunctionExpression", 488 "function": { 489 "type": "ScriptFunction", 490 "id": { 491 "type": "Identifier", 492 "name": "main", 493 "decorators": [], 494 "loc": { 495 "start": { 496 "line": 19, 497 "column": 10 498 }, 499 "end": { 500 "line": 19, 501 "column": 14 502 } 503 } 504 }, 505 "generator": false, 506 "async": false, 507 "expression": false, 508 "params": [], 509 "returnType": { 510 "type": "ETSTypeReference", 511 "part": { 512 "type": "ETSTypeReferencePart", 513 "name": { 514 "type": "Identifier", 515 "name": "void", 516 "decorators": [], 517 "loc": { 518 "start": { 519 "line": 19, 520 "column": 18 521 }, 522 "end": { 523 "line": 19, 524 "column": 22 525 } 526 } 527 }, 528 "loc": { 529 "start": { 530 "line": 19, 531 "column": 18 532 }, 533 "end": { 534 "line": 19, 535 "column": 24 536 } 537 } 538 }, 539 "loc": { 540 "start": { 541 "line": 19, 542 "column": 18 543 }, 544 "end": { 545 "line": 19, 546 "column": 24 547 } 548 } 549 }, 550 "body": { 551 "type": "BlockStatement", 552 "statements": [ 553 { 554 "type": "ExpressionStatement", 555 "expression": { 556 "type": "CallExpression", 557 "callee": { 558 "type": "Identifier", 559 "name": "foo", 560 "decorators": [], 561 "loc": { 562 "start": { 563 "line": 20, 564 "column": 5 565 }, 566 "end": { 567 "line": 20, 568 "column": 8 569 } 570 } 571 }, 572 "arguments": [ 573 { 574 "type": "ArrowFunctionExpression", 575 "function": { 576 "type": "ScriptFunction", 577 "id": null, 578 "generator": false, 579 "async": false, 580 "expression": false, 581 "params": [ 582 { 583 "type": "ETSParameterExpression", 584 "name": { 585 "type": "Identifier", 586 "name": "resolve", 587 "typeAnnotation": { 588 "type": "ETSFunctionType", 589 "params": [ 590 { 591 "type": "ETSParameterExpression", 592 "name": { 593 "type": "Identifier", 594 "name": "val", 595 "typeAnnotation": { 596 "type": "ETSPrimitiveType", 597 "loc": { 598 "start": { 599 "line": 20, 600 "column": 25 601 }, 602 "end": { 603 "line": 20, 604 "column": 28 605 } 606 } 607 }, 608 "decorators": [], 609 "loc": { 610 "start": { 611 "line": 20, 612 "column": 20 613 }, 614 "end": { 615 "line": 20, 616 "column": 28 617 } 618 } 619 }, 620 "loc": { 621 "start": { 622 "line": 20, 623 "column": 20 624 }, 625 "end": { 626 "line": 20, 627 "column": 28 628 } 629 } 630 } 631 ], 632 "returnType": { 633 "type": "ETSTypeReference", 634 "part": { 635 "type": "ETSTypeReferencePart", 636 "name": { 637 "type": "Identifier", 638 "name": "void", 639 "decorators": [], 640 "loc": { 641 "start": { 642 "line": 20, 643 "column": 33 644 }, 645 "end": { 646 "line": 20, 647 "column": 37 648 } 649 } 650 }, 651 "loc": { 652 "start": { 653 "line": 20, 654 "column": 33 655 }, 656 "end": { 657 "line": 20, 658 "column": 38 659 } 660 } 661 }, 662 "loc": { 663 "start": { 664 "line": 20, 665 "column": 33 666 }, 667 "end": { 668 "line": 20, 669 "column": 38 670 } 671 } 672 }, 673 "loc": { 674 "start": { 675 "line": 20, 676 "column": 19 677 }, 678 "end": { 679 "line": 20, 680 "column": 38 681 } 682 } 683 }, 684 "decorators": [], 685 "loc": { 686 "start": { 687 "line": 20, 688 "column": 10 689 }, 690 "end": { 691 "line": 20, 692 "column": 38 693 } 694 } 695 }, 696 "loc": { 697 "start": { 698 "line": 20, 699 "column": 10 700 }, 701 "end": { 702 "line": 20, 703 "column": 38 704 } 705 } 706 } 707 ], 708 "returnType": { 709 "type": "ETSTypeReference", 710 "part": { 711 "type": "ETSTypeReferencePart", 712 "name": { 713 "type": "Identifier", 714 "name": "void", 715 "decorators": [], 716 "loc": { 717 "start": { 718 "line": 20, 719 "column": 40 720 }, 721 "end": { 722 "line": 20, 723 "column": 44 724 } 725 } 726 }, 727 "loc": { 728 "start": { 729 "line": 20, 730 "column": 40 731 }, 732 "end": { 733 "line": 20, 734 "column": 47 735 } 736 } 737 }, 738 "loc": { 739 "start": { 740 "line": 20, 741 "column": 40 742 }, 743 "end": { 744 "line": 20, 745 "column": 47 746 } 747 } 748 }, 749 "body": { 750 "type": "BlockStatement", 751 "statements": [], 752 "loc": { 753 "start": { 754 "line": 20, 755 "column": 48 756 }, 757 "end": { 758 "line": 21, 759 "column": 6 760 } 761 } 762 }, 763 "loc": { 764 "start": { 765 "line": 20, 766 "column": 9 767 }, 768 "end": { 769 "line": 21, 770 "column": 6 771 } 772 } 773 }, 774 "loc": { 775 "start": { 776 "line": 20, 777 "column": 9 778 }, 779 "end": { 780 "line": 21, 781 "column": 6 782 } 783 } 784 } 785 ], 786 "optional": false, 787 "loc": { 788 "start": { 789 "line": 20, 790 "column": 5 791 }, 792 "end": { 793 "line": 21, 794 "column": 7 795 } 796 } 797 }, 798 "loc": { 799 "start": { 800 "line": 20, 801 "column": 5 802 }, 803 "end": { 804 "line": 21, 805 "column": 8 806 } 807 } 808 } 809 ], 810 "loc": { 811 "start": { 812 "line": 19, 813 "column": 23 814 }, 815 "end": { 816 "line": 22, 817 "column": 2 818 } 819 } 820 }, 821 "loc": { 822 "start": { 823 "line": 19, 824 "column": 14 825 }, 826 "end": { 827 "line": 22, 828 "column": 2 829 } 830 } 831 }, 832 "loc": { 833 "start": { 834 "line": 19, 835 "column": 14 836 }, 837 "end": { 838 "line": 22, 839 "column": 2 840 } 841 } 842 }, 843 "overloads": [], 844 "decorators": [], 845 "loc": { 846 "start": { 847 "line": 19, 848 "column": 1 849 }, 850 "end": { 851 "line": 22, 852 "column": 2 853 } 854 } 855 } 856 ], 857 "loc": { 858 "start": { 859 "line": 1, 860 "column": 1 861 }, 862 "end": { 863 "line": 1, 864 "column": 1 865 } 866 } 867 }, 868 "loc": { 869 "start": { 870 "line": 1, 871 "column": 1 872 }, 873 "end": { 874 "line": 1, 875 "column": 1 876 } 877 } 878 } 879 ], 880 "loc": { 881 "start": { 882 "line": 1, 883 "column": 1 884 }, 885 "end": { 886 "line": 24, 887 "column": 1 888 } 889 } 890} 891