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