Debian Codegraph @

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

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