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