Debian Codegraph @

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

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