Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralComputedProperties/standalone-expression-with-method.result.js

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