Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/super-private-member-access/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":59}},
4 "errors": [
5 "SyntaxError: Private fields can't be accessed on super. (5:4)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":59}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":59}},
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": {
22 "type": "Identifier",
23 "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"B"},
24 "name": "B"
25 },
26 "body": {
27 "type": "ClassBody",
28 "start":18,"end":59,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":7,"column":1,"index":59}},
29 "body": [
30 {
31 "type": "ClassPrivateProperty",
32 "start":22,"end":25,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":5,"index":25}},
33 "static": false,
34 "key": {
35 "type": "PrivateName",
36 "start":22,"end":24,"loc":{"start":{"line":2,"column":2,"index":22},"end":{"line":2,"column":4,"index":24}},
37 "id": {
38 "type": "Identifier",
39 "start":23,"end":24,"loc":{"start":{"line":2,"column":3,"index":23},"end":{"line":2,"column":4,"index":24},"identifierName":"x"},
40 "name": "x"
41 }
42 },
43 "value": null
44 },
45 {
46 "type": "ClassMethod",
47 "start":29,"end":57,"loc":{"start":{"line":4,"column":2,"index":29},"end":{"line":6,"column":3,"index":57}},
48 "static": false,
49 "key": {
50 "type": "Identifier",
51 "start":29,"end":35,"loc":{"start":{"line":4,"column":2,"index":29},"end":{"line":4,"column":8,"index":35},"identifierName":"method"},
52 "name": "method"
53 },
54 "computed": false,
55 "kind": "method",
56 "id": null,
57 "generator": false,
58 "async": false,
59 "params": [],
60 "body": {
61 "type": "BlockStatement",
62 "start":38,"end":57,"loc":{"start":{"line":4,"column":11,"index":38},"end":{"line":6,"column":3,"index":57}},
63 "body": [
64 {
65 "type": "ExpressionStatement",
66 "start":44,"end":53,"loc":{"start":{"line":5,"column":4,"index":44},"end":{"line":5,"column":13,"index":53}},
67 "expression": {
68 "type": "MemberExpression",
69 "start":44,"end":52,"loc":{"start":{"line":5,"column":4,"index":44},"end":{"line":5,"column":12,"index":52}},
70 "object": {
71 "type": "Super",
72 "start":44,"end":49,"loc":{"start":{"line":5,"column":4,"index":44},"end":{"line":5,"column":9,"index":49}}
73 },
74 "computed": false,
75 "property": {
76 "type": "PrivateName",
77 "start":50,"end":52,"loc":{"start":{"line":5,"column":10,"index":50},"end":{"line":5,"column":12,"index":52}},
78 "id": {
79 "type": "Identifier",
80 "start":51,"end":52,"loc":{"start":{"line":5,"column":11,"index":51},"end":{"line":5,"column":12,"index":52},"identifierName":"x"},
81 "name": "x"
82 }
83 }
84 }
85 }
86 ],
87 "directives": []
88 }
89 }
90 ]
91 }
92 }
93 ],
94 "directives": []
95 }
96 }