Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/expression-primary-object/migrated_0008/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
16 "operator": "=",
17 "left": {
18 "type": "Identifier",
19 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
20 "name": "x"
21 },
22 "right": {
23 "type": "ObjectExpression",
24 "start":4,"end":18,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":18,"index":18}},
25 "properties": [
26 {
27 "type": "ObjectProperty",
28 "start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10}},
29 "method": false,
30 "key": {
31 "type": "Identifier",
32 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"x"},
33 "name": "x"
34 },
35 "computed": false,
36 "shorthand": false,
37 "value": {
38 "type": "NumericLiteral",
39 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
40 "extra": {
41 "rawValue": 1,
42 "raw": "1"
43 },
44 "value": 1
45 }
46 },
47 {
48 "type": "ObjectProperty",
49 "start":12,"end":16,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":16,"index":16}},
50 "method": false,
51 "key": {
52 "type": "Identifier",
53 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"x"},
54 "name": "x"
55 },
56 "computed": false,
57 "shorthand": false,
58 "value": {
59 "type": "NumericLiteral",
60 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16}},
61 "extra": {
62 "rawValue": 2,
63 "raw": "2"
64 },
65 "value": 2
66 }
67 }
68 ]
69 }
70 }
71 }
72 ],
73 "directives": []
74 }
75 }