Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-string-properties.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 6,
10 "column": 2
11 }
12 },
13 "range": [
14 0,
15 57
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": 13
28 }
29 },
30 "range": [
31 0,
32 13
33 ],
34 "directive": "use strict",
35 "expression": {
36 "type": "Literal",
37 "loc": {
38 "start": {
39 "line": 1,
40 "column": 0
41 },
42 "end": {
43 "line": 1,
44 "column": 12
45 }
46 },
47 "range": [
48 0,
49 12
50 ],
51 "value": "use strict",
52 "raw": "\"use strict\""
53 }
54 },
55 {
56 "type": "VariableDeclaration",
57 "loc": {
58 "start": {
59 "line": 3,
60 "column": 0
61 },
62 "end": {
63 "line": 6,
64 "column": 2
65 }
66 },
67 "range": [
68 15,
69 57
70 ],
71 "declarations": [
72 {
73 "type": "VariableDeclarator",
74 "loc": {
75 "start": {
76 "line": 3,
77 "column": 4
78 },
79 "end": {
80 "line": 6,
81 "column": 1
82 }
83 },
84 "range": [
85 19,
86 56
87 ],
88 "id": {
89 "type": "Identifier",
90 "loc": {
91 "start": {
92 "line": 3,
93 "column": 4
94 },
95 "end": {
96 "line": 3,
97 "column": 5
98 }
99 },
100 "range": [
101 19,
102 20
103 ],
104 "name": "x"
105 },
106 "init": {
107 "type": "ObjectExpression",
108 "loc": {
109 "start": {
110 "line": 3,
111 "column": 8
112 },
113 "end": {
114 "line": 6,
115 "column": 1
116 }
117 },
118 "range": [
119 23,
120 56
121 ],
122 "properties": [
123 {
124 "type": "Property",
125 "loc": {
126 "start": {
127 "line": 4,
128 "column": 1
129 },
130 "end": {
131 "line": 4,
132 "column": 13
133 }
134 },
135 "range": [
136 26,
137 38
138 ],
139 "method": false,
140 "shorthand": false,
141 "computed": false,
142 "key": {
143 "type": "Literal",
144 "loc": {
145 "start": {
146 "line": 4,
147 "column": 1
148 },
149 "end": {
150 "line": 4,
151 "column": 4
152 }
153 },
154 "range": [
155 26,
156 29
157 ],
158 "value": "y",
159 "raw": "\"y\""
160 },
161 "value": {
162 "type": "Literal",
163 "loc": {
164 "start": {
165 "line": 4,
166 "column": 6
167 },
168 "end": {
169 "line": 4,
170 "column": 13
171 }
172 },
173 "range": [
174 31,
175 38
176 ],
177 "value": "first",
178 "raw": "\"first\""
179 },
180 "kind": "init"
181 },
182 {
183 "type": "Property",
184 "loc": {
185 "start": {
186 "line": 5,
187 "column": 1
188 },
189 "end": {
190 "line": 5,
191 "column": 14
192 }
193 },
194 "range": [
195 41,
196 54
197 ],
198 "method": false,
199 "shorthand": false,
200 "computed": false,
201 "key": {
202 "type": "Literal",
203 "loc": {
204 "start": {
205 "line": 5,
206 "column": 1
207 },
208 "end": {
209 "line": 5,
210 "column": 4
211 }
212 },
213 "range": [
214 41,
215 44
216 ],
217 "value": "y",
218 "raw": "\"y\""
219 },
220 "value": {
221 "type": "Literal",
222 "loc": {
223 "start": {
224 "line": 5,
225 "column": 6
226 },
227 "end": {
228 "line": 5,
229 "column": 14
230 }
231 },
232 "range": [
233 46,
234 54
235 ],
236 "value": "second",
237 "raw": "\"second\""
238 },
239 "kind": "init"
240 }
241 ]
242 }
243 }
244 ],
245 "kind": "var"
246 }
247 ],
248 "sourceType": "script",
249 "tokens": [
250 {
251 "type": "String",
252 "value": "\"use strict\"",
253 "loc": {
254 "start": {
255 "line": 1,
256 "column": 0
257 },
258 "end": {
259 "line": 1,
260 "column": 12
261 }
262 },
263 "range": [
264 0,
265 12
266 ]
267 },
268 {
269 "type": "Punctuator",
270 "value": ";",
271 "loc": {
272 "start": {
273 "line": 1,
274 "column": 12
275 },
276 "end": {
277 "line": 1,
278 "column": 13
279 }
280 },
281 "range": [
282 12,
283 13
284 ]
285 },
286 {
287 "type": "Keyword",
288 "value": "var",
289 "loc": {
290 "start": {
291 "line": 3,
292 "column": 0
293 },
294 "end": {
295 "line": 3,
296 "column": 3
297 }
298 },
299 "range": [
300 15,
301 18
302 ]
303 },
304 {
305 "type": "Identifier",
306 "value": "x",
307 "loc": {
308 "start": {
309 "line": 3,
310 "column": 4
311 },
312 "end": {
313 "line": 3,
314 "column": 5
315 }
316 },
317 "range": [
318 19,
319 20
320 ]
321 },
322 {
323 "type": "Punctuator",
324 "value": "=",
325 "loc": {
326 "start": {
327 "line": 3,
328 "column": 6
329 },
330 "end": {
331 "line": 3,
332 "column": 7
333 }
334 },
335 "range": [
336 21,
337 22
338 ]
339 },
340 {
341 "type": "Punctuator",
342 "value": "{",
343 "loc": {
344 "start": {
345 "line": 3,
346 "column": 8
347 },
348 "end": {
349 "line": 3,
350 "column": 9
351 }
352 },
353 "range": [
354 23,
355 24
356 ]
357 },
358 {
359 "type": "String",
360 "value": "\"y\"",
361 "loc": {
362 "start": {
363 "line": 4,
364 "column": 1
365 },
366 "end": {
367 "line": 4,
368 "column": 4
369 }
370 },
371 "range": [
372 26,
373 29
374 ]
375 },
376 {
377 "type": "Punctuator",
378 "value": ":",
379 "loc": {
380 "start": {
381 "line": 4,
382 "column": 4
383 },
384 "end": {
385 "line": 4,
386 "column": 5
387 }
388 },
389 "range": [
390 29,
391 30
392 ]
393 },
394 {
395 "type": "String",
396 "value": "\"first\"",
397 "loc": {
398 "start": {
399 "line": 4,
400 "column": 6
401 },
402 "end": {
403 "line": 4,
404 "column": 13
405 }
406 },
407 "range": [
408 31,
409 38
410 ]
411 },
412 {
413 "type": "Punctuator",
414 "value": ",",
415 "loc": {
416 "start": {
417 "line": 4,
418 "column": 13
419 },
420 "end": {
421 "line": 4,
422 "column": 14
423 }
424 },
425 "range": [
426 38,
427 39
428 ]
429 },
430 {
431 "type": "String",
432 "value": "\"y\"",
433 "loc": {
434 "start": {
435 "line": 5,
436 "column": 1
437 },
438 "end": {
439 "line": 5,
440 "column": 4
441 }
442 },
443 "range": [
444 41,
445 44
446 ]
447 },
448 {
449 "type": "Punctuator",
450 "value": ":",
451 "loc": {
452 "start": {
453 "line": 5,
454 "column": 4
455 },
456 "end": {
457 "line": 5,
458 "column": 5
459 }
460 },
461 "range": [
462 44,
463 45
464 ]
465 },
466 {
467 "type": "String",
468 "value": "\"second\"",
469 "loc": {
470 "start": {
471 "line": 5,
472 "column": 6
473 },
474 "end": {
475 "line": 5,
476 "column": 14
477 }
478 },
479 "range": [
480 46,
481 54
482 ]
483 },
484 {
485 "type": "Punctuator",
486 "value": "}",
487 "loc": {
488 "start": {
489 "line": 6,
490 "column": 0
491 },
492 "end": {
493 "line": 6,
494 "column": 1
495 }
496 },
497 "range": [
498 55,
499 56
500 ]
501 },
502 {
503 "type": "Punctuator",
504 "value": ";",
505 "loc": {
506 "start": {
507 "line": 6,
508 "column": 1
509 },
510 "end": {
511 "line": 6,
512 "column": 2
513 }
514 },
515 "range": [
516 56,
517 57
518 ]
519 }
520 ]
521 };