Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}},
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":38,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":38,"index":38}},
25 "properties": [
26 {
27 "type": "ObjectMethod",
28 "start":6,"end":36,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":36,"index":36}},
29 "method": false,
30 "key": {
31 "type": "Identifier",
32 "start":10,"end":15,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":15,"index":15},"identifierName":"width"},
33 "name": "width"
34 },
35 "computed": false,
36 "kind": "get",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":18,"end":36,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":36,"index":36}},
44 "body": [
45 {
46 "type": "ReturnStatement",
47 "start":20,"end":34,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":34,"index":34}},
48 "argument": {
49 "type": "Identifier",
50 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34},"identifierName":"m_width"},
51 "name": "m_width"
52 }
53 }
54 ],
55 "directives": []
56 }
57 }
58 ]
59 }
60 }
61 }
62 ],
63 "directives": []
64 }
65 }