Debian Codegraph @

packages/babel-parser/test/fixtures/estree/object-property/basic/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":20,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":20}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"a"},
20 "name": "a"
21 },
22 "init": {
23 "type": "ObjectExpression",
24 "start":10,"end":20,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":20}},
25 "properties": [
26 {
27 "type": "Property",
28 "start":12,"end":18,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":18}},
29 "method": false,
30 "key": {
31 "type": "Identifier",
32 "start":12,"end":15,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":15},"identifierName":"foo"},
33 "name": "foo"
34 },
35 "computed": false,
36 "shorthand": false,
37 "value": {
38 "type": "Literal",
39 "start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
40 "value": 1,
41 "raw": "1"
42 },
43 "kind": "init"
44 }
45 ]
46 }
47 }
48 ],
49 "kind": "const"
50 }
51 ]
52 }
53 }