Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/declared-later-same-class/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":33}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":33}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":33}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
16 "name": "A"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":33,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":33}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":12,"end":25,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":15,"index":25}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
30 "id": {
31 "type": "Identifier",
32 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"x"},
33 "name": "x"
34 }
35 },
36 "value": {
37 "type": "MemberExpression",
38 "start":17,"end":24,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":14,"index":24}},
39 "object": {
40 "type": "ThisExpression",
41 "start":17,"end":21,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":11,"index":21}}
42 },
43 "computed": false,
44 "property": {
45 "type": "PrivateName",
46 "start":22,"end":24,"loc":{"start":{"line":2,"column":12,"index":22},"end":{"line":2,"column":14,"index":24}},
47 "id": {
48 "type": "Identifier",
49 "start":23,"end":24,"loc":{"start":{"line":2,"column":13,"index":23},"end":{"line":2,"column":14,"index":24},"identifierName":"y"},
50 "name": "y"
51 }
52 }
53 }
54 },
55 {
56 "type": "ClassPrivateProperty",
57 "start":28,"end":31,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":3,"column":5,"index":31}},
58 "static": false,
59 "key": {
60 "type": "PrivateName",
61 "start":28,"end":30,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":3,"column":4,"index":30}},
62 "id": {
63 "type": "Identifier",
64 "start":29,"end":30,"loc":{"start":{"line":3,"column":3,"index":29},"end":{"line":3,"column":4,"index":30},"identifierName":"y"},
65 "name": "y"
66 }
67 },
68 "value": null
69 }
70 ]
71 }
72 }
73 ],
74 "directives": []
75 }
76 }