Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/30/output.json

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