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