Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/failure-name-constructor/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
4 "errors": [
5 "SyntaxError: Classes may not have a private field named '#constructor'. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
19 "name": "Foo"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":10,"end":29,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":29}},
25 "body": [
26 {
27 "type": "ClassPrivateProperty",
28 "start":14,"end":27,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":15,"index":27}},
29 "static": false,
30 "key": {
31 "type": "PrivateName",
32 "start":14,"end":26,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":14,"index":26}},
33 "id": {
34 "type": "Identifier",
35 "start":15,"end":26,"loc":{"start":{"line":2,"column":3,"index":15},"end":{"line":2,"column":14,"index":26},"identifierName":"constructor"},
36 "name": "constructor"
37 }
38 },
39 "value": null
40 }
41 ]
42 }
43 }
44 ],
45 "directives": []
46 }
47 }