• 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            "typeAnnotation": {
13              "type": "TSBooleanKeyword",
14              "loc": {
15                "start": {
16                  "line": 17,
17                  "column": 9
18                },
19                "end": {
20                  "line": 17,
21                  "column": 16
22                }
23              }
24            },
25            "loc": {
26              "start": {
27                "line": 17,
28                "column": 5
29              },
30              "end": {
31                "line": 17,
32                "column": 6
33              }
34            }
35          },
36          "init": {
37            "type": "BooleanLiteral",
38            "value": true,
39            "loc": {
40              "start": {
41                "line": 17,
42                "column": 19
43              },
44              "end": {
45                "line": 17,
46                "column": 23
47              }
48            }
49          },
50          "loc": {
51            "start": {
52              "line": 17,
53              "column": 5
54            },
55            "end": {
56              "line": 17,
57              "column": 23
58            }
59          }
60        }
61      ],
62      "kind": "var",
63      "loc": {
64        "start": {
65          "line": 17,
66          "column": 1
67        },
68        "end": {
69          "line": 17,
70          "column": 24
71        }
72      }
73    },
74    {
75      "type": "VariableDeclaration",
76      "declarations": [
77        {
78          "type": "VariableDeclarator",
79          "id": {
80            "type": "Identifier",
81            "name": "b",
82            "loc": {
83              "start": {
84                "line": 18,
85                "column": 5
86              },
87              "end": {
88                "line": 18,
89                "column": 6
90              }
91            }
92          },
93          "init": {
94            "type": "ConditionalExpression",
95            "test": {
96              "type": "Identifier",
97              "name": "a",
98              "loc": {
99                "start": {
100                  "line": 18,
101                  "column": 10
102                },
103                "end": {
104                  "line": 18,
105                  "column": 11
106                }
107              }
108            },
109            "consequent": {
110              "type": "NumberLiteral",
111              "value": 1,
112              "loc": {
113                "start": {
114                  "line": 18,
115                  "column": 14
116                },
117                "end": {
118                  "line": 18,
119                  "column": 15
120                }
121              }
122            },
123            "alternate": {
124              "type": "NumberLiteral",
125              "value": 2,
126              "loc": {
127                "start": {
128                  "line": 18,
129                  "column": 18
130                },
131                "end": {
132                  "line": 18,
133                  "column": 19
134                }
135              }
136            },
137            "loc": {
138              "start": {
139                "line": 18,
140                "column": 9
141              },
142              "end": {
143                "line": 18,
144                "column": 20
145              }
146            }
147          },
148          "loc": {
149            "start": {
150              "line": 18,
151              "column": 5
152            },
153            "end": {
154              "line": 18,
155              "column": 20
156            }
157          }
158        }
159      ],
160      "kind": "var",
161      "loc": {
162        "start": {
163          "line": 18,
164          "column": 1
165        },
166        "end": {
167          "line": 18,
168          "column": 20
169        }
170      }
171    },
172    {
173      "type": "VariableDeclaration",
174      "declarations": [
175        {
176          "type": "VariableDeclarator",
177          "id": {
178            "type": "Identifier",
179            "name": "c",
180            "loc": {
181              "start": {
182                "line": 19,
183                "column": 5
184              },
185              "end": {
186                "line": 19,
187                "column": 6
188              }
189            }
190          },
191          "init": {
192            "type": "ArrowFunctionExpression",
193            "function": {
194              "type": "ScriptFunction",
195              "id": null,
196              "generator": false,
197              "async": false,
198              "expression": false,
199              "params": [
200                {
201                  "type": "Identifier",
202                  "name": "a",
203                  "optional": true,
204                  "loc": {
205                    "start": {
206                      "line": 19,
207                      "column": 9
208                    },
209                    "end": {
210                      "line": 19,
211                      "column": 13
212                    }
213                  }
214                }
215              ],
216              "body": {
217                "type": "BlockStatement",
218                "statements": [],
219                "loc": {
220                  "start": {
221                    "line": 19,
222                    "column": 17
223                  },
224                  "end": {
225                    "line": 19,
226                    "column": 19
227                  }
228                }
229              },
230              "loc": {
231                "start": {
232                  "line": 19,
233                  "column": 9
234                },
235                "end": {
236                  "line": 19,
237                  "column": 19
238                }
239              }
240            },
241            "loc": {
242              "start": {
243                "line": 19,
244                "column": 9
245              },
246              "end": {
247                "line": 19,
248                "column": 19
249              }
250            }
251          },
252          "loc": {
253            "start": {
254              "line": 19,
255              "column": 5
256            },
257            "end": {
258              "line": 19,
259              "column": 19
260            }
261          }
262        }
263      ],
264      "kind": "var",
265      "loc": {
266        "start": {
267          "line": 19,
268          "column": 1
269        },
270        "end": {
271          "line": 19,
272          "column": 19
273        }
274      }
275    }
276  ],
277  "loc": {
278    "start": {
279      "line": 1,
280      "column": 1
281    },
282    "end": {
283      "line": 19,
284      "column": 19
285    }
286  }
287}
288