Debian Codegraph @

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

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