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