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