1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "loc": { 13 "start": { 14 "line": 17, 15 "column": 5 16 }, 17 "end": { 18 "line": 17, 19 "column": 6 20 } 21 } 22 }, 23 "init": { 24 "type": "NumberLiteral", 25 "value": 0, 26 "loc": { 27 "start": { 28 "line": 17, 29 "column": 9 30 }, 31 "end": { 32 "line": 17, 33 "column": 10 34 } 35 } 36 }, 37 "loc": { 38 "start": { 39 "line": 17, 40 "column": 5 41 }, 42 "end": { 43 "line": 17, 44 "column": 10 45 } 46 } 47 } 48 ], 49 "kind": "var", 50 "loc": { 51 "start": { 52 "line": 17, 53 "column": 1 54 }, 55 "end": { 56 "line": 17, 57 "column": 11 58 } 59 } 60 }, 61 { 62 "type": "WhileStatement", 63 "test": { 64 "type": "BinaryExpression", 65 "operator": "<", 66 "left": { 67 "type": "UpdateExpression", 68 "operator": "++", 69 "prefix": false, 70 "argument": { 71 "type": "Identifier", 72 "name": "a", 73 "loc": { 74 "start": { 75 "line": 19, 76 "column": 8 77 }, 78 "end": { 79 "line": 19, 80 "column": 9 81 } 82 } 83 }, 84 "loc": { 85 "start": { 86 "line": 19, 87 "column": 8 88 }, 89 "end": { 90 "line": 19, 91 "column": 11 92 } 93 } 94 }, 95 "right": { 96 "type": "NumberLiteral", 97 "value": 10, 98 "loc": { 99 "start": { 100 "line": 19, 101 "column": 14 102 }, 103 "end": { 104 "line": 19, 105 "column": 16 106 } 107 } 108 }, 109 "loc": { 110 "start": { 111 "line": 19, 112 "column": 8 113 }, 114 "end": { 115 "line": 19, 116 "column": 16 117 } 118 } 119 }, 120 "body": { 121 "type": "BlockStatement", 122 "statements": [ 123 { 124 "type": "VariableDeclaration", 125 "declarations": [ 126 { 127 "type": "VariableDeclarator", 128 "id": { 129 "type": "Identifier", 130 "name": "E", 131 "loc": { 132 "start": { 133 "line": 1, 134 "column": 1 135 }, 136 "end": { 137 "line": 1, 138 "column": 1 139 } 140 } 141 }, 142 "init": null, 143 "loc": { 144 "start": { 145 "line": 1, 146 "column": 1 147 }, 148 "end": { 149 "line": 1, 150 "column": 1 151 } 152 } 153 } 154 ], 155 "kind": "let", 156 "loc": { 157 "start": { 158 "line": 19, 159 "column": 18 160 }, 161 "end": { 162 "line": 19, 163 "column": 26 164 } 165 } 166 }, 167 { 168 "type": "ExpressionStatement", 169 "expression": { 170 "type": "CallExpression", 171 "callee": { 172 "type": "FunctionExpression", 173 "function": { 174 "type": "ScriptFunction", 175 "id": null, 176 "generator": false, 177 "async": false, 178 "expression": false, 179 "params": [ 180 { 181 "type": "Identifier", 182 "name": "E", 183 "loc": { 184 "start": { 185 "line": 1, 186 "column": 1 187 }, 188 "end": { 189 "line": 1, 190 "column": 1 191 } 192 } 193 } 194 ], 195 "body": { 196 "type": "BlockStatement", 197 "statements": [], 198 "loc": { 199 "start": { 200 "line": 1, 201 "column": 1 202 }, 203 "end": { 204 "line": 1, 205 "column": 1 206 } 207 } 208 }, 209 "loc": { 210 "start": { 211 "line": 1, 212 "column": 1 213 }, 214 "end": { 215 "line": 1, 216 "column": 1 217 } 218 } 219 }, 220 "loc": { 221 "start": { 222 "line": 1, 223 "column": 1 224 }, 225 "end": { 226 "line": 1, 227 "column": 1 228 } 229 } 230 }, 231 "arguments": [ 232 { 233 "type": "LogicalExpression", 234 "operator": "||", 235 "left": { 236 "type": "Identifier", 237 "name": "E", 238 "loc": { 239 "start": { 240 "line": 1, 241 "column": 1 242 }, 243 "end": { 244 "line": 1, 245 "column": 1 246 } 247 } 248 }, 249 "right": { 250 "type": "AssignmentExpression", 251 "operator": "=", 252 "left": { 253 "type": "Identifier", 254 "name": "E", 255 "loc": { 256 "start": { 257 "line": 1, 258 "column": 1 259 }, 260 "end": { 261 "line": 1, 262 "column": 1 263 } 264 } 265 }, 266 "right": { 267 "type": "ObjectExpression", 268 "properties": [], 269 "loc": { 270 "start": { 271 "line": 1, 272 "column": 1 273 }, 274 "end": { 275 "line": 1, 276 "column": 1 277 } 278 } 279 }, 280 "loc": { 281 "start": { 282 "line": 1, 283 "column": 1 284 }, 285 "end": { 286 "line": 1, 287 "column": 1 288 } 289 } 290 }, 291 "loc": { 292 "start": { 293 "line": 1, 294 "column": 1 295 }, 296 "end": { 297 "line": 1, 298 "column": 1 299 } 300 } 301 } 302 ], 303 "optional": false, 304 "loc": { 305 "start": { 306 "line": 1, 307 "column": 1 308 }, 309 "end": { 310 "line": 1, 311 "column": 1 312 } 313 } 314 }, 315 "loc": { 316 "start": { 317 "line": 19, 318 "column": 18 319 }, 320 "end": { 321 "line": 19, 322 "column": 26 323 } 324 } 325 } 326 ], 327 "loc": { 328 "start": { 329 "line": 1, 330 "column": 1 331 }, 332 "end": { 333 "line": 1, 334 "column": 1 335 } 336 } 337 }, 338 "loc": { 339 "start": { 340 "line": 19, 341 "column": 1 342 }, 343 "end": { 344 "line": 19, 345 "column": 26 346 } 347 } 348 }, 349 { 350 "type": "DoWhileStatement", 351 "body": { 352 "type": "BlockStatement", 353 "statements": [ 354 { 355 "type": "VariableDeclaration", 356 "declarations": [ 357 { 358 "type": "VariableDeclarator", 359 "id": { 360 "type": "Identifier", 361 "name": "E", 362 "loc": { 363 "start": { 364 "line": 1, 365 "column": 1 366 }, 367 "end": { 368 "line": 1, 369 "column": 1 370 } 371 } 372 }, 373 "init": null, 374 "loc": { 375 "start": { 376 "line": 1, 377 "column": 1 378 }, 379 "end": { 380 "line": 1, 381 "column": 1 382 } 383 } 384 } 385 ], 386 "kind": "let", 387 "loc": { 388 "start": { 389 "line": 21, 390 "column": 4 391 }, 392 "end": { 393 "line": 21, 394 "column": 12 395 } 396 } 397 }, 398 { 399 "type": "ExpressionStatement", 400 "expression": { 401 "type": "CallExpression", 402 "callee": { 403 "type": "FunctionExpression", 404 "function": { 405 "type": "ScriptFunction", 406 "id": null, 407 "generator": false, 408 "async": false, 409 "expression": false, 410 "params": [ 411 { 412 "type": "Identifier", 413 "name": "E", 414 "loc": { 415 "start": { 416 "line": 1, 417 "column": 1 418 }, 419 "end": { 420 "line": 1, 421 "column": 1 422 } 423 } 424 } 425 ], 426 "body": { 427 "type": "BlockStatement", 428 "statements": [], 429 "loc": { 430 "start": { 431 "line": 1, 432 "column": 1 433 }, 434 "end": { 435 "line": 1, 436 "column": 1 437 } 438 } 439 }, 440 "loc": { 441 "start": { 442 "line": 1, 443 "column": 1 444 }, 445 "end": { 446 "line": 1, 447 "column": 1 448 } 449 } 450 }, 451 "loc": { 452 "start": { 453 "line": 1, 454 "column": 1 455 }, 456 "end": { 457 "line": 1, 458 "column": 1 459 } 460 } 461 }, 462 "arguments": [ 463 { 464 "type": "LogicalExpression", 465 "operator": "||", 466 "left": { 467 "type": "Identifier", 468 "name": "E", 469 "loc": { 470 "start": { 471 "line": 1, 472 "column": 1 473 }, 474 "end": { 475 "line": 1, 476 "column": 1 477 } 478 } 479 }, 480 "right": { 481 "type": "AssignmentExpression", 482 "operator": "=", 483 "left": { 484 "type": "Identifier", 485 "name": "E", 486 "loc": { 487 "start": { 488 "line": 1, 489 "column": 1 490 }, 491 "end": { 492 "line": 1, 493 "column": 1 494 } 495 } 496 }, 497 "right": { 498 "type": "ObjectExpression", 499 "properties": [], 500 "loc": { 501 "start": { 502 "line": 1, 503 "column": 1 504 }, 505 "end": { 506 "line": 1, 507 "column": 1 508 } 509 } 510 }, 511 "loc": { 512 "start": { 513 "line": 1, 514 "column": 1 515 }, 516 "end": { 517 "line": 1, 518 "column": 1 519 } 520 } 521 }, 522 "loc": { 523 "start": { 524 "line": 1, 525 "column": 1 526 }, 527 "end": { 528 "line": 1, 529 "column": 1 530 } 531 } 532 } 533 ], 534 "optional": false, 535 "loc": { 536 "start": { 537 "line": 1, 538 "column": 1 539 }, 540 "end": { 541 "line": 1, 542 "column": 1 543 } 544 } 545 }, 546 "loc": { 547 "start": { 548 "line": 21, 549 "column": 4 550 }, 551 "end": { 552 "line": 21, 553 "column": 12 554 } 555 } 556 } 557 ], 558 "loc": { 559 "start": { 560 "line": 1, 561 "column": 1 562 }, 563 "end": { 564 "line": 1, 565 "column": 1 566 } 567 } 568 }, 569 "test": { 570 "type": "BinaryExpression", 571 "operator": "<", 572 "left": { 573 "type": "UpdateExpression", 574 "operator": "++", 575 "prefix": false, 576 "argument": { 577 "type": "Identifier", 578 "name": "a", 579 "loc": { 580 "start": { 581 "line": 21, 582 "column": 21 583 }, 584 "end": { 585 "line": 21, 586 "column": 22 587 } 588 } 589 }, 590 "loc": { 591 "start": { 592 "line": 21, 593 "column": 21 594 }, 595 "end": { 596 "line": 21, 597 "column": 24 598 } 599 } 600 }, 601 "right": { 602 "type": "NumberLiteral", 603 "value": 20, 604 "loc": { 605 "start": { 606 "line": 21, 607 "column": 27 608 }, 609 "end": { 610 "line": 21, 611 "column": 29 612 } 613 } 614 }, 615 "loc": { 616 "start": { 617 "line": 21, 618 "column": 21 619 }, 620 "end": { 621 "line": 21, 622 "column": 29 623 } 624 } 625 }, 626 "loc": { 627 "start": { 628 "line": 21, 629 "column": 1 630 }, 631 "end": { 632 "line": 21, 633 "column": 30 634 } 635 } 636 } 637 ], 638 "loc": { 639 "start": { 640 "line": 1, 641 "column": 1 642 }, 643 "end": { 644 "line": 22, 645 "column": 1 646 } 647 } 648} 649Transformed AST structure check passed. 650