Debian Codegraph @

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

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