Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-string-name.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 32
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 31
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 30
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 30
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 28
101 ],
102 "method": true,
103 "shorthand": false,
104 "computed": false,
105 "key": {
106 "type": "Literal",
107 "loc": {
108 "start": {
109 "line": 2,
110 "column": 4
111 },
112 "end": {
113 "line": 2,
114 "column": 12
115 }
116 },
117 "range": [
118 10,
119 18
120 ],
121 "value": "method",
122 "raw": "\"method\""
123 },
124 "kind": "init",
125 "value": {
126 "type": "FunctionExpression",
127 "loc": {
128 "start": {
129 "line": 2,
130 "column": 12
131 },
132 "end": {
133 "line": 3,
134 "column": 5
135 }
136 },
137 "range": [
138 18,
139 28
140 ],
141 "id": null,
142 "generator": false,
143 "expression": false,
144 "params": [],
145 "body": {
146 "type": "BlockStatement",
147 "loc": {
148 "start": {
149 "line": 2,
150 "column": 15
151 },
152 "end": {
153 "line": 3,
154 "column": 5
155 }
156 },
157 "range": [
158 21,
159 28
160 ],
161 "body": []
162 }
163 }
164 }
165 ]
166 }
167 }
168 },
169 {
170 "type": "EmptyStatement",
171 "loc": {
172 "start": {
173 "line": 4,
174 "column": 2
175 },
176 "end": {
177 "line": 4,
178 "column": 3
179 }
180 },
181 "range": [
182 31,
183 32
184 ]
185 }
186 ],
187 "sourceType": "script",
188 "tokens": [
189 {
190 "type": "Identifier",
191 "value": "x",
192 "loc": {
193 "start": {
194 "line": 1,
195 "column": 0
196 },
197 "end": {
198 "line": 1,
199 "column": 1
200 }
201 },
202 "range": [
203 0,
204 1
205 ]
206 },
207 {
208 "type": "Punctuator",
209 "value": "=",
210 "loc": {
211 "start": {
212 "line": 1,
213 "column": 2
214 },
215 "end": {
216 "line": 1,
217 "column": 3
218 }
219 },
220 "range": [
221 2,
222 3
223 ]
224 },
225 {
226 "type": "Punctuator",
227 "value": "{",
228 "loc": {
229 "start": {
230 "line": 1,
231 "column": 4
232 },
233 "end": {
234 "line": 1,
235 "column": 5
236 }
237 },
238 "range": [
239 4,
240 5
241 ]
242 },
243 {
244 "type": "String",
245 "value": "\"method\"",
246 "loc": {
247 "start": {
248 "line": 2,
249 "column": 4
250 },
251 "end": {
252 "line": 2,
253 "column": 12
254 }
255 },
256 "range": [
257 10,
258 18
259 ]
260 },
261 {
262 "type": "Punctuator",
263 "value": "(",
264 "loc": {
265 "start": {
266 "line": 2,
267 "column": 12
268 },
269 "end": {
270 "line": 2,
271 "column": 13
272 }
273 },
274 "range": [
275 18,
276 19
277 ]
278 },
279 {
280 "type": "Punctuator",
281 "value": ")",
282 "loc": {
283 "start": {
284 "line": 2,
285 "column": 13
286 },
287 "end": {
288 "line": 2,
289 "column": 14
290 }
291 },
292 "range": [
293 19,
294 20
295 ]
296 },
297 {
298 "type": "Punctuator",
299 "value": "{",
300 "loc": {
301 "start": {
302 "line": 2,
303 "column": 15
304 },
305 "end": {
306 "line": 2,
307 "column": 16
308 }
309 },
310 "range": [
311 21,
312 22
313 ]
314 },
315 {
316 "type": "Punctuator",
317 "value": "}",
318 "loc": {
319 "start": {
320 "line": 3,
321 "column": 4
322 },
323 "end": {
324 "line": 3,
325 "column": 5
326 }
327 },
328 "range": [
329 27,
330 28
331 ]
332 },
333 {
334 "type": "Punctuator",
335 "value": "}",
336 "loc": {
337 "start": {
338 "line": 4,
339 "column": 0
340 },
341 "end": {
342 "line": 4,
343 "column": 1
344 }
345 },
346 "range": [
347 29,
348 30
349 ]
350 },
351 {
352 "type": "Punctuator",
353 "value": ";",
354 "loc": {
355 "start": {
356 "line": 4,
357 "column": 1
358 },
359 "end": {
360 "line": 4,
361 "column": 2
362 }
363 },
364 "range": [
365 30,
366 31
367 ]
368 },
369 {
370 "type": "Punctuator",
371 "value": ";",
372 "loc": {
373 "start": {
374 "line": 4,
375 "column": 2
376 },
377 "end": {
378 "line": 4,
379 "column": 3
380 }
381 },
382 "range": [
383 31,
384 32
385 ]
386 }
387 ]
388 };