Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":40}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":40}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":40}},
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":40,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":40}},
22 "body": [
23 {
24 "type": "ClassPrivateMethod",
25 "start":12,"end":23,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":13,"index":23}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":16,"end":18,"loc":{"start":{"line":2,"column":6,"index":16},"end":{"line":2,"column":8,"index":18}},
30 "id": {
31 "type": "Identifier",
32 "start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18},"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":21,"end":23,"loc":{"start":{"line":2,"column":11,"index":21},"end":{"line":2,"column":13,"index":23}},
45 "body": [],
46 "directives": []
47 }
48 },
49 {
50 "type": "ClassPrivateMethod",
51 "start":26,"end":38,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":14,"index":38}},
52 "static": false,
53 "key": {
54 "type": "PrivateName",
55 "start":30,"end":32,"loc":{"start":{"line":3,"column":6,"index":30},"end":{"line":3,"column":8,"index":32}},
56 "id": {
57 "type": "Identifier",
58 "start":31,"end":32,"loc":{"start":{"line":3,"column":7,"index":31},"end":{"line":3,"column":8,"index":32},"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":33,"end":34,"loc":{"start":{"line":3,"column":9,"index":33},"end":{"line":3,"column":10,"index":34},"identifierName":"_"},
71 "name": "_"
72 }
73 ],
74 "body": {
75 "type": "BlockStatement",
76 "start":36,"end":38,"loc":{"start":{"line":3,"column":12,"index":36},"end":{"line":3,"column":14,"index":38}},
77 "body": [],
78 "directives": []
79 }
80 }
81 ]
82 }
83 }
84 ],
85 "directives": []
86 }
87 }