Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/object-default-params/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":37,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":37,"index":37}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"b"},
20 "name": "b"
21 },
22 "init": {
23 "type": "ArrowFunctionExpression",
24 "start":10,"end":37,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":37,"index":37}},
25 "id": null,
26 "generator": false,
27 "async": true,
28 "params": [
29 {
30 "type": "ObjectPattern",
31 "start":17,"end":30,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":30,"index":30}},
32 "properties": [
33 {
34 "type": "ObjectProperty",
35 "start":18,"end":29,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":29,"index":29}},
36 "method": false,
37 "key": {
38 "type": "Identifier",
39 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"bar"},
40 "name": "bar"
41 },
42 "computed": false,
43 "shorthand": true,
44 "value": {
45 "type": "AssignmentPattern",
46 "start":18,"end":29,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":29,"index":29}},
47 "left": {
48 "type": "Identifier",
49 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"bar"},
50 "name": "bar"
51 },
52 "right": {
53 "type": "StringLiteral",
54 "start":24,"end":29,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":29,"index":29}},
55 "extra": {
56 "rawValue": "bar",
57 "raw": "\"bar\""
58 },
59 "value": "bar"
60 }
61 },
62 "extra": {
63 "shorthand": true
64 }
65 }
66 ]
67 }
68 ],
69 "body": {
70 "type": "BlockStatement",
71 "start":35,"end":37,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":37,"index":37}},
72 "body": [],
73 "directives": []
74 }
75 }
76 }
77 ],
78 "kind": "const"
79 }
80 ],
81 "directives": []
82 }
83 }