Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-names-duplicated/static-get-static-set/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":30,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":20,"index":30}},
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": "get",
38 "id": null,
39 "generator": false,
40 "async": false,
41 "params": [],
42 "body": {
43 "type": "BlockStatement",
44 "start":28,"end":30,"loc":{"start":{"line":2,"column":18,"index":28},"end":{"line":2,"column":20,"index":30}},
45 "body": [],
46 "directives": []
47 }
48 },
49 {
50 "type": "ClassPrivateMethod",
51 "start":33,"end":52,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":21,"index":52}},
52 "static": true,
53 "key": {
54 "type": "PrivateName",
55 "start":44,"end":46,"loc":{"start":{"line":3,"column":13,"index":44},"end":{"line":3,"column":15,"index":46}},
56 "id": {
57 "type": "Identifier",
58 "start":45,"end":46,"loc":{"start":{"line":3,"column":14,"index":45},"end":{"line":3,"column":15,"index":46},"identifierName":"x"},
59 "name": "x"
60 }
61 },
62 "computed": false,
63 "kind": "set",
64 "id": null,
65 "generator": false,
66 "async": false,
67 "params": [
68 {
69 "type": "Identifier",
70 "start":47,"end":48,"loc":{"start":{"line":3,"column":16,"index":47},"end":{"line":3,"column":17,"index":48},"identifierName":"_"},
71 "name": "_"
72 }
73 ],
74 "body": {
75 "type": "BlockStatement",
76 "start":50,"end":52,"loc":{"start":{"line":3,"column":19,"index":50},"end":{"line":3,"column":21,"index":52}},
77 "body": [],
78 "directives": []
79 }
80 }
81 ]
82 }
83 }
84 ],
85 "directives": []
86 }
87 }