• 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": "Foo",
10          "loc": {
11            "start": {
12              "line": 17,
13              "column": 7
14            },
15            "end": {
16              "line": 17,
17              "column": 10
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": 20,
97              "column": 2
98            }
99          }
100        },
101        "body": [
102          {
103            "type": "MethodDefinition",
104            "key": {
105              "type": "Identifier",
106              "name": "bar",
107              "loc": {
108                "start": {
109                  "line": 18,
110                  "column": 5
111                },
112                "end": {
113                  "line": 18,
114                  "column": 8
115                }
116              }
117            },
118            "kind": "method",
119            "static": false,
120            "optional": false,
121            "computed": false,
122            "value": {
123              "type": "FunctionExpression",
124              "function": {
125                "type": "ScriptFunction",
126                "id": null,
127                "generator": false,
128                "async": false,
129                "expression": false,
130                "params": [],
131                "body": {
132                  "type": "BlockStatement",
133                  "statements": [],
134                  "loc": {
135                    "start": {
136                      "line": 18,
137                      "column": 11
138                    },
139                    "end": {
140                      "line": 18,
141                      "column": 14
142                    }
143                  }
144                },
145                "loc": {
146                  "start": {
147                    "line": 18,
148                    "column": 8
149                  },
150                  "end": {
151                    "line": 18,
152                    "column": 14
153                  }
154                }
155              },
156              "loc": {
157                "start": {
158                  "line": 18,
159                  "column": 8
160                },
161                "end": {
162                  "line": 18,
163                  "column": 14
164                }
165              }
166            },
167            "overloads": [],
168            "decorators": [],
169            "loc": {
170              "start": {
171                "line": 18,
172                "column": 5
173              },
174              "end": {
175                "line": 18,
176                "column": 14
177              }
178            }
179          },
180          {
181            "type": "MethodDefinition",
182            "key": {
183              "type": "Identifier",
184              "name": "bar",
185              "loc": {
186                "start": {
187                  "line": 19,
188                  "column": 5
189                },
190                "end": {
191                  "line": 19,
192                  "column": 8
193                }
194              }
195            },
196            "kind": "method",
197            "static": false,
198            "optional": false,
199            "computed": false,
200            "value": {
201              "type": "FunctionExpression",
202              "function": {
203                "type": "ScriptFunction",
204                "id": null,
205                "generator": false,
206                "async": false,
207                "expression": false,
208                "params": [],
209                "body": {
210                  "type": "BlockStatement",
211                  "statements": [],
212                  "loc": {
213                    "start": {
214                      "line": 19,
215                      "column": 11
216                    },
217                    "end": {
218                      "line": 19,
219                      "column": 14
220                    }
221                  }
222                },
223                "loc": {
224                  "start": {
225                    "line": 19,
226                    "column": 8
227                  },
228                  "end": {
229                    "line": 19,
230                    "column": 14
231                  }
232                }
233              },
234              "loc": {
235                "start": {
236                  "line": 19,
237                  "column": 8
238                },
239                "end": {
240                  "line": 19,
241                  "column": 14
242                }
243              }
244            },
245            "overloads": [],
246            "decorators": [],
247            "loc": {
248              "start": {
249                "line": 19,
250                "column": 5
251              },
252              "end": {
253                "line": 19,
254                "column": 14
255              }
256            }
257          }
258        ],
259        "indexSignatures": [],
260        "loc": {
261          "start": {
262            "line": 17,
263            "column": 11
264          },
265          "end": {
266            "line": 20,
267            "column": 2
268          }
269        }
270      },
271      "decorators": [],
272      "loc": {
273        "start": {
274          "line": 17,
275          "column": 1
276        },
277        "end": {
278          "line": 20,
279          "column": 2
280        }
281      }
282    }
283  ],
284  "loc": {
285    "start": {
286      "line": 1,
287      "column": 1
288    },
289    "end": {
290      "line": 20,
291      "column": 2
292    }
293  }
294}
295