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": "baz", 124 "decorators": [], 125 "loc": { 126 "start": { 127 "line": 16, 128 "column": 18 129 }, 130 "end": { 131 "line": 16, 132 "column": 21 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": "baz", 148 "decorators": [], 149 "loc": { 150 "start": { 151 "line": 16, 152 "column": 18 153 }, 154 "end": { 155 "line": 16, 156 "column": 21 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": "x", 169 "typeAnnotation": { 170 "type": "ETSUnionType", 171 "types": [ 172 { 173 "type": "ETSPrimitiveType", 174 "loc": { 175 "start": { 176 "line": 16, 177 "column": 27 178 }, 179 "end": { 180 "line": 16, 181 "column": 30 182 } 183 } 184 }, 185 { 186 "type": "ETSUndefinedType", 187 "loc": { 188 "start": { 189 "line": 16, 190 "column": 23 191 }, 192 "end": { 193 "line": 16, 194 "column": 24 195 } 196 } 197 } 198 ], 199 "loc": { 200 "start": { 201 "line": 16, 202 "column": 27 203 }, 204 "end": { 205 "line": 16, 206 "column": 30 207 } 208 } 209 }, 210 "decorators": [], 211 "loc": { 212 "start": { 213 "line": 16, 214 "column": 22 215 }, 216 "end": { 217 "line": 16, 218 "column": 30 219 } 220 } 221 }, 222 "loc": { 223 "start": { 224 "line": 16, 225 "column": 22 226 }, 227 "end": { 228 "line": 16, 229 "column": 30 230 } 231 } 232 }, 233 { 234 "type": "ETSParameterExpression", 235 "name": { 236 "type": "Identifier", 237 "name": "y", 238 "typeAnnotation": { 239 "type": "ETSUnionType", 240 "types": [ 241 { 242 "type": "ETSTypeReference", 243 "part": { 244 "type": "ETSTypeReferencePart", 245 "name": { 246 "type": "Identifier", 247 "name": "number", 248 "decorators": [], 249 "loc": { 250 "start": { 251 "line": 16, 252 "column": 36 253 }, 254 "end": { 255 "line": 16, 256 "column": 42 257 } 258 } 259 }, 260 "loc": { 261 "start": { 262 "line": 16, 263 "column": 36 264 }, 265 "end": { 266 "line": 16, 267 "column": 43 268 } 269 } 270 }, 271 "loc": { 272 "start": { 273 "line": 16, 274 "column": 36 275 }, 276 "end": { 277 "line": 16, 278 "column": 43 279 } 280 } 281 }, 282 { 283 "type": "ETSUndefinedType", 284 "loc": { 285 "start": { 286 "line": 16, 287 "column": 33 288 }, 289 "end": { 290 "line": 16, 291 "column": 34 292 } 293 } 294 } 295 ], 296 "loc": { 297 "start": { 298 "line": 16, 299 "column": 36 300 }, 301 "end": { 302 "line": 16, 303 "column": 43 304 } 305 } 306 }, 307 "decorators": [], 308 "loc": { 309 "start": { 310 "line": 16, 311 "column": 32 312 }, 313 "end": { 314 "line": 16, 315 "column": 43 316 } 317 } 318 }, 319 "loc": { 320 "start": { 321 "line": 16, 322 "column": 32 323 }, 324 "end": { 325 "line": 16, 326 "column": 43 327 } 328 } 329 } 330 ], 331 "returnType": { 332 "type": "ETSPrimitiveType", 333 "loc": { 334 "start": { 335 "line": 16, 336 "column": 46 337 }, 338 "end": { 339 "line": 16, 340 "column": 50 341 } 342 } 343 }, 344 "declare": true, 345 "loc": { 346 "start": { 347 "line": 16, 348 "column": 18 349 }, 350 "end": { 351 "line": 16, 352 "column": 21 353 } 354 } 355 }, 356 "loc": { 357 "start": { 358 "line": 16, 359 "column": 18 360 }, 361 "end": { 362 "line": 16, 363 "column": 21 364 } 365 } 366 }, 367 "overloads": [ 368 { 369 "type": "MethodDefinition", 370 "key": { 371 "type": "Identifier", 372 "name": "baz", 373 "decorators": [], 374 "loc": { 375 "start": { 376 "line": 16, 377 "column": 18 378 }, 379 "end": { 380 "line": 16, 381 "column": 21 382 } 383 } 384 }, 385 "kind": "method", 386 "accessibility": "public", 387 "static": true, 388 "optional": false, 389 "computed": false, 390 "value": { 391 "type": "FunctionExpression", 392 "function": { 393 "type": "ScriptFunction", 394 "id": { 395 "type": "Identifier", 396 "name": "baz", 397 "decorators": [], 398 "loc": { 399 "start": { 400 "line": 16, 401 "column": 18 402 }, 403 "end": { 404 "line": 16, 405 "column": 21 406 } 407 } 408 }, 409 "generator": false, 410 "async": false, 411 "expression": false, 412 "params": [ 413 { 414 "type": "ETSParameterExpression", 415 "name": { 416 "type": "Identifier", 417 "name": "x", 418 "typeAnnotation": { 419 "type": "ETSUnionType", 420 "types": [ 421 { 422 "type": "ETSPrimitiveType", 423 "loc": { 424 "start": { 425 "line": 16, 426 "column": 27 427 }, 428 "end": { 429 "line": 16, 430 "column": 30 431 } 432 } 433 }, 434 { 435 "type": "ETSUndefinedType", 436 "loc": { 437 "start": { 438 "line": 1, 439 "column": 1 440 }, 441 "end": { 442 "line": 1, 443 "column": 1 444 } 445 } 446 } 447 ], 448 "loc": { 449 "start": { 450 "line": 1, 451 "column": 1 452 }, 453 "end": { 454 "line": 1, 455 "column": 1 456 } 457 } 458 }, 459 "decorators": [], 460 "loc": { 461 "start": { 462 "line": 16, 463 "column": 22 464 }, 465 "end": { 466 "line": 16, 467 "column": 30 468 } 469 } 470 }, 471 "loc": { 472 "start": { 473 "line": 1, 474 "column": 1 475 }, 476 "end": { 477 "line": 1, 478 "column": 1 479 } 480 } 481 } 482 ], 483 "returnType": { 484 "type": "ETSPrimitiveType", 485 "loc": { 486 "start": { 487 "line": 16, 488 "column": 46 489 }, 490 "end": { 491 "line": 16, 492 "column": 50 493 } 494 } 495 }, 496 "declare": true, 497 "loc": { 498 "start": { 499 "line": 606, 500 "column": 1 501 }, 502 "end": { 503 "line": 606, 504 "column": 1 505 } 506 } 507 }, 508 "loc": { 509 "start": { 510 "line": 1, 511 "column": 1 512 }, 513 "end": { 514 "line": 1, 515 "column": 1 516 } 517 } 518 }, 519 "overloads": [], 520 "decorators": [], 521 "loc": { 522 "start": { 523 "line": 16, 524 "column": 1 525 }, 526 "end": { 527 "line": 1, 528 "column": 1 529 } 530 } 531 }, 532 { 533 "type": "MethodDefinition", 534 "key": { 535 "type": "Identifier", 536 "name": "baz", 537 "decorators": [], 538 "loc": { 539 "start": { 540 "line": 16, 541 "column": 18 542 }, 543 "end": { 544 "line": 16, 545 "column": 21 546 } 547 } 548 }, 549 "kind": "method", 550 "accessibility": "public", 551 "static": true, 552 "optional": false, 553 "computed": false, 554 "value": { 555 "type": "FunctionExpression", 556 "function": { 557 "type": "ScriptFunction", 558 "id": { 559 "type": "Identifier", 560 "name": "baz", 561 "decorators": [], 562 "loc": { 563 "start": { 564 "line": 16, 565 "column": 18 566 }, 567 "end": { 568 "line": 16, 569 "column": 21 570 } 571 } 572 }, 573 "generator": false, 574 "async": false, 575 "expression": false, 576 "params": [], 577 "returnType": { 578 "type": "ETSPrimitiveType", 579 "loc": { 580 "start": { 581 "line": 16, 582 "column": 46 583 }, 584 "end": { 585 "line": 16, 586 "column": 50 587 } 588 } 589 }, 590 "declare": true, 591 "loc": { 592 "start": { 593 "line": 606, 594 "column": 1 595 }, 596 "end": { 597 "line": 606, 598 "column": 1 599 } 600 } 601 }, 602 "loc": { 603 "start": { 604 "line": 1, 605 "column": 1 606 }, 607 "end": { 608 "line": 1, 609 "column": 1 610 } 611 } 612 }, 613 "overloads": [], 614 "decorators": [], 615 "loc": { 616 "start": { 617 "line": 16, 618 "column": 1 619 }, 620 "end": { 621 "line": 1, 622 "column": 1 623 } 624 } 625 } 626 ], 627 "decorators": [], 628 "loc": { 629 "start": { 630 "line": 16, 631 "column": 1 632 }, 633 "end": { 634 "line": 16, 635 "column": 21 636 } 637 } 638 }, 639 { 640 "type": "MethodDefinition", 641 "key": { 642 "type": "Identifier", 643 "name": "main", 644 "decorators": [], 645 "loc": { 646 "start": { 647 "line": 18, 648 "column": 10 649 }, 650 "end": { 651 "line": 18, 652 "column": 14 653 } 654 } 655 }, 656 "kind": "method", 657 "accessibility": "public", 658 "static": true, 659 "optional": false, 660 "computed": false, 661 "value": { 662 "type": "FunctionExpression", 663 "function": { 664 "type": "ScriptFunction", 665 "id": { 666 "type": "Identifier", 667 "name": "main", 668 "decorators": [], 669 "loc": { 670 "start": { 671 "line": 18, 672 "column": 10 673 }, 674 "end": { 675 "line": 18, 676 "column": 14 677 } 678 } 679 }, 680 "generator": false, 681 "async": false, 682 "expression": false, 683 "params": [], 684 "body": { 685 "type": "BlockStatement", 686 "statements": [], 687 "loc": { 688 "start": { 689 "line": 18, 690 "column": 17 691 }, 692 "end": { 693 "line": 19, 694 "column": 2 695 } 696 } 697 }, 698 "loc": { 699 "start": { 700 "line": 18, 701 "column": 10 702 }, 703 "end": { 704 "line": 19, 705 "column": 2 706 } 707 } 708 }, 709 "loc": { 710 "start": { 711 "line": 18, 712 "column": 10 713 }, 714 "end": { 715 "line": 19, 716 "column": 2 717 } 718 } 719 }, 720 "overloads": [], 721 "decorators": [], 722 "loc": { 723 "start": { 724 "line": 18, 725 "column": 1 726 }, 727 "end": { 728 "line": 19, 729 "column": 2 730 } 731 } 732 } 733 ], 734 "loc": { 735 "start": { 736 "line": 1, 737 "column": 1 738 }, 739 "end": { 740 "line": 1, 741 "column": 1 742 } 743 } 744 }, 745 "loc": { 746 "start": { 747 "line": 1, 748 "column": 1 749 }, 750 "end": { 751 "line": 1, 752 "column": 1 753 } 754 } 755 } 756 ], 757 "loc": { 758 "start": { 759 "line": 1, 760 "column": 1 761 }, 762 "end": { 763 "line": 20, 764 "column": 1 765 } 766 } 767} 768