Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
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":21,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":21,"index":21}},
25 "properties": [
26 {
27 "type": "ObjectProperty",
28 "start":5,"end":19,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":19,"index":19}},
29 "method": false,
30 "key": {
31 "type": "StringLiteral",
32 "start":5,"end":16,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":16,"index":16}},
33 "extra": {
34 "rawValue": "__proto__",
35 "raw": "\"__proto__\""
36 },
37 "value": "__proto__"
38 },
39 "computed": false,
40 "shorthand": false,
41 "value": {
42 "type": "NumericLiteral",
43 "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19}},
44 "extra": {
45 "rawValue": 2,
46 "raw": "2"
47 },
48 "value": 2
49 }
50 }
51 ]
52 }
53 }
54 }
55 ],
56 "directives": []
57 }
58 }