Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-names-duplicated/static-set-static-get/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":54}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":54}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":54}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
16 "name": "A"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":54,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":54}},
22 "body": [
23 {
24 "type": "ClassPrivateMethod",
25 "start":12,"end":31,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":21,"index":31}},
26 "static": true,
27 "key": {
28 "type": "PrivateName",
29 "start":23,"end":25,"loc":{"start":{"line":2,"column":13,"index":23},"end":{"line":2,"column":15,"index":25}},
30 "id": {
31 "type": "Identifier",
32 "start":24,"end":25,"loc":{"start":{"line":2,"column":14,"index":24},"end":{"line":2,"column":15,"index":25},"identifierName":"x"},
33 "name": "x"
34 }
35 },
36 "computed": false,
37 "kind": "set",
38 "id": null,
39 "generator": false,
40 "async": false,
41 "params": [
42 {
43 "type": "Identifier",
44 "start":26,"end":27,"loc":{"start":{"line":2,"column":16,"index":26},"end":{"line":2,"column":17,"index":27},"identifierName":"_"},
45 "name": "_"
46 }
47 ],
48 "body": {
49 "type": "BlockStatement",
50 "start":29,"end":31,"loc":{"start":{"line":2,"column":19,"index":29},"end":{"line":2,"column":21,"index":31}},
51 "body": [],
52 "directives": []
53 }
54 },
55 {
56 "type": "ClassPrivateMethod",
57 "start":34,"end":52,"loc":{"start":{"line":3,"column":2,"index":34},"end":{"line":3,"column":20,"index":52}},
58 "static": true,
59 "key": {
60 "type": "PrivateName",
61 "start":45,"end":47,"loc":{"start":{"line":3,"column":13,"index":45},"end":{"line":3,"column":15,"index":47}},
62 "id": {
63 "type": "Identifier",
64 "start":46,"end":47,"loc":{"start":{"line":3,"column":14,"index":46},"end":{"line":3,"column":15,"index":47},"identifierName":"x"},
65 "name": "x"
66 }
67 },
68 "computed": false,
69 "kind": "get",
70 "id": null,
71 "generator": false,
72 "async": false,
73 "params": [],
74 "body": {
75 "type": "BlockStatement",
76 "start":50,"end":52,"loc":{"start":{"line":3,"column":18,"index":50},"end":{"line":3,"column":20,"index":52}},
77 "body": [],
78 "directives": []
79 }
80 }
81 ]
82 }
83 }
84 ],
85 "directives": []
86 }
87 }