Debian Codegraph @

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

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