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