• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "FunctionDeclaration",
6      "function": {
7        "type": "ScriptFunction",
8        "id": {
9          "type": "Identifier",
10          "name": "bar",
11          "loc": {
12            "start": {
13              "line": 17,
14              "column": 10
15            },
16            "end": {
17              "line": 17,
18              "column": 13
19            }
20          }
21        },
22        "generator": false,
23        "async": false,
24        "expression": false,
25        "params": [
26          {
27            "type": "AssignmentPattern",
28            "left": {
29              "type": "Identifier",
30              "name": "fn",
31              "loc": {
32                "start": {
33                  "line": 17,
34                  "column": 14
35                },
36                "end": {
37                  "line": 17,
38                  "column": 16
39                }
40              }
41            },
42            "right": {
43              "type": "ArrowFunctionExpression",
44              "function": {
45                "type": "ScriptFunction",
46                "id": null,
47                "generator": false,
48                "async": false,
49                "expression": true,
50                "params": [
51                  {
52                    "type": "Identifier",
53                    "name": "b",
54                    "typeAnnotation": {
55                      "type": "TSNumberKeyword",
56                      "loc": {
57                        "start": {
58                          "line": 17,
59                          "column": 23
60                        },
61                        "end": {
62                          "line": 17,
63                          "column": 29
64                        }
65                      }
66                    },
67                    "loc": {
68                      "start": {
69                        "line": 17,
70                        "column": 19
71                      },
72                      "end": {
73                        "line": 17,
74                        "column": 30
75                      }
76                    }
77                  }
78                ],
79                "body": {
80                  "type": "BinaryExpression",
81                  "operator": "+",
82                  "left": {
83                    "type": "Identifier",
84                    "name": "b",
85                    "loc": {
86                      "start": {
87                        "line": 17,
88                        "column": 34
89                      },
90                      "end": {
91                        "line": 17,
92                        "column": 35
93                      }
94                    }
95                  },
96                  "right": {
97                    "type": "NumberLiteral",
98                    "value": 1,
99                    "loc": {
100                      "start": {
101                        "line": 17,
102                        "column": 38
103                      },
104                      "end": {
105                        "line": 17,
106                        "column": 39
107                      }
108                    }
109                  },
110                  "loc": {
111                    "start": {
112                      "line": 17,
113                      "column": 34
114                    },
115                    "end": {
116                      "line": 17,
117                      "column": 39
118                    }
119                  }
120                },
121                "loc": {
122                  "start": {
123                    "line": 17,
124                    "column": 19
125                  },
126                  "end": {
127                    "line": 17,
128                    "column": 39
129                  }
130                }
131              },
132              "loc": {
133                "start": {
134                  "line": 17,
135                  "column": 19
136                },
137                "end": {
138                  "line": 17,
139                  "column": 39
140                }
141              }
142            },
143            "loc": {
144              "start": {
145                "line": 17,
146                "column": 14
147              },
148              "end": {
149                "line": 17,
150                "column": 39
151              }
152            }
153          },
154          {
155            "type": "Identifier",
156            "name": "a",
157            "typeAnnotation": {
158              "type": "TSStringKeyword",
159              "loc": {
160                "start": {
161                  "line": 17,
162                  "column": 44
163                },
164                "end": {
165                  "line": 17,
166                  "column": 50
167                }
168              }
169            },
170            "loc": {
171              "start": {
172                "line": 17,
173                "column": 41
174              },
175              "end": {
176                "line": 17,
177                "column": 42
178              }
179            }
180          }
181        ],
182        "body": {
183          "type": "BlockStatement",
184          "statements": [
185            {
186              "type": "ExpressionStatement",
187              "expression": {
188                "type": "CallExpression",
189                "callee": {
190                  "type": "MemberExpression",
191                  "object": {
192                    "type": "Identifier",
193                    "name": "console",
194                    "loc": {
195                      "start": {
196                        "line": 18,
197                        "column": 5
198                      },
199                      "end": {
200                        "line": 18,
201                        "column": 12
202                      }
203                    }
204                  },
205                  "property": {
206                    "type": "Identifier",
207                    "name": "log",
208                    "loc": {
209                      "start": {
210                        "line": 18,
211                        "column": 13
212                      },
213                      "end": {
214                        "line": 18,
215                        "column": 16
216                      }
217                    }
218                  },
219                  "computed": false,
220                  "optional": false,
221                  "loc": {
222                    "start": {
223                      "line": 18,
224                      "column": 5
225                    },
226                    "end": {
227                      "line": 18,
228                      "column": 16
229                    }
230                  }
231                },
232                "arguments": [
233                  {
234                    "type": "CallExpression",
235                    "callee": {
236                      "type": "Identifier",
237                      "name": "fn",
238                      "loc": {
239                        "start": {
240                          "line": 18,
241                          "column": 17
242                        },
243                        "end": {
244                          "line": 18,
245                          "column": 19
246                        }
247                      }
248                    },
249                    "arguments": [
250                      {
251                        "type": "NumberLiteral",
252                        "value": 5,
253                        "loc": {
254                          "start": {
255                            "line": 18,
256                            "column": 20
257                          },
258                          "end": {
259                            "line": 18,
260                            "column": 21
261                          }
262                        }
263                      }
264                    ],
265                    "optional": false,
266                    "loc": {
267                      "start": {
268                        "line": 18,
269                        "column": 17
270                      },
271                      "end": {
272                        "line": 18,
273                        "column": 22
274                      }
275                    }
276                  },
277                  {
278                    "type": "Identifier",
279                    "name": "a",
280                    "loc": {
281                      "start": {
282                        "line": 18,
283                        "column": 24
284                      },
285                      "end": {
286                        "line": 18,
287                        "column": 25
288                      }
289                    }
290                  }
291                ],
292                "optional": false,
293                "loc": {
294                  "start": {
295                    "line": 18,
296                    "column": 5
297                  },
298                  "end": {
299                    "line": 18,
300                    "column": 26
301                  }
302                }
303              },
304              "loc": {
305                "start": {
306                  "line": 18,
307                  "column": 5
308                },
309                "end": {
310                  "line": 18,
311                  "column": 27
312                }
313              }
314            }
315          ],
316          "loc": {
317            "start": {
318              "line": 17,
319              "column": 52
320            },
321            "end": {
322              "line": 19,
323              "column": 2
324            }
325          }
326        },
327        "loc": {
328          "start": {
329            "line": 17,
330            "column": 1
331          },
332          "end": {
333            "line": 19,
334            "column": 2
335          }
336        }
337      },
338      "loc": {
339        "start": {
340          "line": 17,
341          "column": 1
342        },
343        "end": {
344          "line": 19,
345          "column": 2
346        }
347      }
348    }
349  ],
350  "loc": {
351    "start": {
352      "line": 1,
353      "column": 1
354    },
355    "end": {
356      "line": 20,
357      "column": 1
358    }
359  }
360}
361