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