Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":73}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":73}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":73}},
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":"B"},
16 "name": "B"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":73,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":9,"column":1,"index":73}},
22 "body": [
23 {
24 "type": "ClassMethod",
25 "start":12,"end":64,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":6,"column":3,"index":64}},
26 "static": false,
27 "key": {
28 "type": "Identifier",
29 "start":12,"end":16,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":6,"index":16},"identifierName":"meth"},
30 "name": "meth"
31 },
32 "computed": false,
33 "kind": "method",
34 "id": null,
35 "generator": false,
36 "async": false,
37 "params": [],
38 "body": {
39 "type": "BlockStatement",
40 "start":19,"end":64,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":6,"column":3,"index":64}},
41 "body": [
42 {
43 "type": "ClassDeclaration",
44 "start":25,"end":60,"loc":{"start":{"line":3,"column":4,"index":25},"end":{"line":5,"column":5,"index":60}},
45 "id": {
46 "type": "Identifier",
47 "start":31,"end":32,"loc":{"start":{"line":3,"column":10,"index":31},"end":{"line":3,"column":11,"index":32},"identifierName":"A"},
48 "name": "A"
49 },
50 "superClass": null,
51 "body": {
52 "type": "ClassBody",
53 "start":33,"end":60,"loc":{"start":{"line":3,"column":12,"index":33},"end":{"line":5,"column":5,"index":60}},
54 "body": [
55 {
56 "type": "ClassPrivateProperty",
57 "start":41,"end":54,"loc":{"start":{"line":4,"column":6,"index":41},"end":{"line":4,"column":19,"index":54}},
58 "static": false,
59 "key": {
60 "type": "PrivateName",
61 "start":41,"end":43,"loc":{"start":{"line":4,"column":6,"index":41},"end":{"line":4,"column":8,"index":43}},
62 "id": {
63 "type": "Identifier",
64 "start":42,"end":43,"loc":{"start":{"line":4,"column":7,"index":42},"end":{"line":4,"column":8,"index":43},"identifierName":"x"},
65 "name": "x"
66 }
67 },
68 "value": {
69 "type": "MemberExpression",
70 "start":46,"end":53,"loc":{"start":{"line":4,"column":11,"index":46},"end":{"line":4,"column":18,"index":53}},
71 "object": {
72 "type": "ThisExpression",
73 "start":46,"end":50,"loc":{"start":{"line":4,"column":11,"index":46},"end":{"line":4,"column":15,"index":50}}
74 },
75 "computed": false,
76 "property": {
77 "type": "PrivateName",
78 "start":51,"end":53,"loc":{"start":{"line":4,"column":16,"index":51},"end":{"line":4,"column":18,"index":53}},
79 "id": {
80 "type": "Identifier",
81 "start":52,"end":53,"loc":{"start":{"line":4,"column":17,"index":52},"end":{"line":4,"column":18,"index":53},"identifierName":"y"},
82 "name": "y"
83 }
84 }
85 }
86 }
87 ]
88 }
89 }
90 ],
91 "directives": []
92 }
93 },
94 {
95 "type": "ClassPrivateProperty",
96 "start":68,"end":71,"loc":{"start":{"line":8,"column":2,"index":68},"end":{"line":8,"column":5,"index":71}},
97 "static": false,
98 "key": {
99 "type": "PrivateName",
100 "start":68,"end":70,"loc":{"start":{"line":8,"column":2,"index":68},"end":{"line":8,"column":4,"index":70}},
101 "id": {
102 "type": "Identifier",
103 "start":69,"end":70,"loc":{"start":{"line":8,"column":3,"index":69},"end":{"line":8,"column":4,"index":70},"identifierName":"y"},
104 "name": "y"
105 }
106 },
107 "value": null
108 }
109 ]
110 }
111 }
112 ],
113 "directives": []
114 }
115 }