Debian Codegraph @

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

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