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