Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/class-methods/tricky-names/output.json

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