Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/simple-parameter-list/arrow-function-concise-body/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":33,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":33,"index":33}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
20 "name": "a"
21 },
22 "init": {
23 "type": "ArrowFunctionExpression",
24 "start":8,"end":33,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":33,"index":33}},
25 "id": null,
26 "generator": false,
27 "async": false,
28 "params": [
29 {
30 "type": "AssignmentPattern",
31 "start":9,"end":21,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":21,"index":21}},
32 "left": {
33 "type": "Identifier",
34 "start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"options"},
35 "name": "options"
36 },
37 "right": {
38 "type": "ObjectExpression",
39 "start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
40 "properties": []
41 }
42 }
43 ],
44 "body": {
45 "type": "Identifier",
46 "start":26,"end":33,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":33,"index":33},"identifierName":"options"},
47 "name": "options"
48 }
49 }
50 }
51 ],
52 "kind": "var"
53 }
54 ],
55 "directives": []
56 }
57 }