Debian Codegraph @

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