Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-argument.result.js

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