Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-get.result.js

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