Debian Codegraph @

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

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