Debian Codegraph @

packages/babel-core/test/fixtures/parse/output.json

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