Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-methods/async/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":60}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":60}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":60}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11},"identifierName":"Hotel"},
16 "name": "Hotel"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":12,"end":60,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":5,"column":1,"index":60}},
22 "body": [
23 {
24 "type": "ClassPrivateMethod",
25 "start":16,"end":58,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":4,"column":3,"index":58}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":22,"end":27,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":13,"index":27}},
30 "id": {
31 "type": "Identifier",
32 "start":23,"end":27,"loc":{"start":{"line":2,"column":9,"index":23},"end":{"line":2,"column":13,"index":27},"identifierName":"evil"},
33 "name": "evil"
34 }
35 },
36 "computed": false,
37 "kind": "method",
38 "id": null,
39 "generator": false,
40 "async": true,
41 "params": [],
42 "body": {
43 "type": "BlockStatement",
44 "start":30,"end":58,"loc":{"start":{"line":2,"column":16,"index":30},"end":{"line":4,"column":3,"index":58}},
45 "body": [
46 {
47 "type": "ExpressionStatement",
48 "start":36,"end":54,"loc":{"start":{"line":3,"column":4,"index":36},"end":{"line":3,"column":22,"index":54}},
49 "expression": {
50 "type": "AwaitExpression",
51 "start":36,"end":53,"loc":{"start":{"line":3,"column":4,"index":36},"end":{"line":3,"column":21,"index":53}},
52 "argument": {
53 "type": "CallExpression",
54 "start":42,"end":53,"loc":{"start":{"line":3,"column":10,"index":42},"end":{"line":3,"column":21,"index":53}},
55 "callee": {
56 "type": "Identifier",
57 "start":42,"end":51,"loc":{"start":{"line":3,"column":10,"index":42},"end":{"line":3,"column":19,"index":51},"identifierName":"notReally"},
58 "name": "notReally"
59 },
60 "arguments": []
61 }
62 }
63 }
64 ],
65 "directives": []
66 }
67 }
68 ]
69 }
70 }
71 ],
72 "directives": []
73 }
74 }