Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-names-duplicated/instance-set-instance-get/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":24,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":14,"index":24}},
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": "set",
38 "id": null,
39 "generator": false,
40 "async": false,
41 "params": [
42 {
43 "type": "Identifier",
44 "start":19,"end":20,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":10,"index":20},"identifierName":"_"},
45 "name": "_"
46 }
47 ],
48 "body": {
49 "type": "BlockStatement",
50 "start":22,"end":24,"loc":{"start":{"line":2,"column":12,"index":22},"end":{"line":2,"column":14,"index":24}},
51 "body": [],
52 "directives": []
53 }
54 },
55 {
56 "type": "ClassPrivateMethod",
57 "start":27,"end":38,"loc":{"start":{"line":3,"column":2,"index":27},"end":{"line":3,"column":13,"index":38}},
58 "static": false,
59 "key": {
60 "type": "PrivateName",
61 "start":31,"end":33,"loc":{"start":{"line":3,"column":6,"index":31},"end":{"line":3,"column":8,"index":33}},
62 "id": {
63 "type": "Identifier",
64 "start":32,"end":33,"loc":{"start":{"line":3,"column":7,"index":32},"end":{"line":3,"column":8,"index":33},"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":36,"end":38,"loc":{"start":{"line":3,"column":11,"index":36},"end":{"line":3,"column":13,"index":38}},
77 "body": [],
78 "directives": []
79 }
80 }
81 ]
82 }
83 }
84 ],
85 "directives": []
86 }
87 }