Debian Codegraph @

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

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