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