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