Debian Codegraph @

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

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