Debian Codegraph @

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

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