Debian Codegraph @

packages/babel-parser/test/fixtures/flow/class-properties/getter-setter/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":158,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":158}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":158,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":158}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareClass",
12 "start":0,"end":158,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":158}},
13 "id": {
14 "type": "Identifier",
15 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"B"},
16 "name": "B"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":16,"end":158,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":8,"column":1,"index":158}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35}},
30 "key": {
31 "type": "Identifier",
32 "start":24,"end":25,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":7,"index":25},"identifierName":"a"},
33 "name": "a"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "get",
38 "method": true,
39 "value": {
40 "type": "FunctionTypeAnnotation",
41 "start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35}},
42 "params": [],
43 "rest": null,
44 "typeParameters": null,
45 "this": null,
46 "returnType": {
47 "type": "NumberTypeAnnotation",
48 "start":29,"end":35,"loc":{"start":{"line":2,"column":11,"index":29},"end":{"line":2,"column":17,"index":35}}
49 }
50 },
51 "optional": false
52 },
53 {
54 "type": "ObjectTypeProperty",
55 "start":39,"end":61,"loc":{"start":{"line":3,"column":2,"index":39},"end":{"line":3,"column":24,"index":61}},
56 "key": {
57 "type": "Identifier",
58 "start":43,"end":44,"loc":{"start":{"line":3,"column":6,"index":43},"end":{"line":3,"column":7,"index":44},"identifierName":"b"},
59 "name": "b"
60 },
61 "static": false,
62 "proto": false,
63 "kind": "set",
64 "method": true,
65 "value": {
66 "type": "FunctionTypeAnnotation",
67 "start":39,"end":61,"loc":{"start":{"line":3,"column":2,"index":39},"end":{"line":3,"column":24,"index":61}},
68 "params": [
69 {
70 "type": "FunctionTypeParam",
71 "start":45,"end":54,"loc":{"start":{"line":3,"column":8,"index":45},"end":{"line":3,"column":17,"index":54}},
72 "name": {
73 "type": "Identifier",
74 "start":45,"end":46,"loc":{"start":{"line":3,"column":8,"index":45},"end":{"line":3,"column":9,"index":46},"identifierName":"a"},
75 "name": "a"
76 },
77 "optional": false,
78 "typeAnnotation": {
79 "type": "NumberTypeAnnotation",
80 "start":48,"end":54,"loc":{"start":{"line":3,"column":11,"index":48},"end":{"line":3,"column":17,"index":54}}
81 }
82 }
83 ],
84 "rest": null,
85 "typeParameters": null,
86 "this": null,
87 "returnType": {
88 "type": "VoidTypeAnnotation",
89 "start":57,"end":61,"loc":{"start":{"line":3,"column":20,"index":57},"end":{"line":3,"column":24,"index":61}}
90 }
91 },
92 "optional": false
93 },
94 {
95 "type": "ObjectTypeProperty",
96 "start":65,"end":82,"loc":{"start":{"line":4,"column":2,"index":65},"end":{"line":4,"column":19,"index":82}},
97 "key": {
98 "type": "StringLiteral",
99 "start":69,"end":72,"loc":{"start":{"line":4,"column":6,"index":69},"end":{"line":4,"column":9,"index":72}},
100 "extra": {
101 "rawValue": "c",
102 "raw": "\"c\""
103 },
104 "value": "c"
105 },
106 "static": false,
107 "proto": false,
108 "kind": "get",
109 "method": true,
110 "value": {
111 "type": "FunctionTypeAnnotation",
112 "start":65,"end":82,"loc":{"start":{"line":4,"column":2,"index":65},"end":{"line":4,"column":19,"index":82}},
113 "params": [],
114 "rest": null,
115 "typeParameters": null,
116 "this": null,
117 "returnType": {
118 "type": "NumberTypeAnnotation",
119 "start":76,"end":82,"loc":{"start":{"line":4,"column":13,"index":76},"end":{"line":4,"column":19,"index":82}}
120 }
121 },
122 "optional": false
123 },
124 {
125 "type": "ObjectTypeProperty",
126 "start":86,"end":110,"loc":{"start":{"line":5,"column":2,"index":86},"end":{"line":5,"column":26,"index":110}},
127 "key": {
128 "type": "StringLiteral",
129 "start":90,"end":93,"loc":{"start":{"line":5,"column":6,"index":90},"end":{"line":5,"column":9,"index":93}},
130 "extra": {
131 "rawValue": "d",
132 "raw": "\"d\""
133 },
134 "value": "d"
135 },
136 "static": false,
137 "proto": false,
138 "kind": "set",
139 "method": true,
140 "value": {
141 "type": "FunctionTypeAnnotation",
142 "start":86,"end":110,"loc":{"start":{"line":5,"column":2,"index":86},"end":{"line":5,"column":26,"index":110}},
143 "params": [
144 {
145 "type": "FunctionTypeParam",
146 "start":94,"end":103,"loc":{"start":{"line":5,"column":10,"index":94},"end":{"line":5,"column":19,"index":103}},
147 "name": {
148 "type": "Identifier",
149 "start":94,"end":95,"loc":{"start":{"line":5,"column":10,"index":94},"end":{"line":5,"column":11,"index":95},"identifierName":"a"},
150 "name": "a"
151 },
152 "optional": false,
153 "typeAnnotation": {
154 "type": "NumberTypeAnnotation",
155 "start":97,"end":103,"loc":{"start":{"line":5,"column":13,"index":97},"end":{"line":5,"column":19,"index":103}}
156 }
157 }
158 ],
159 "rest": null,
160 "typeParameters": null,
161 "this": null,
162 "returnType": {
163 "type": "VoidTypeAnnotation",
164 "start":106,"end":110,"loc":{"start":{"line":5,"column":22,"index":106},"end":{"line":5,"column":26,"index":110}}
165 }
166 },
167 "optional": false
168 },
169 {
170 "type": "ObjectTypeProperty",
171 "start":114,"end":129,"loc":{"start":{"line":6,"column":2,"index":114},"end":{"line":6,"column":17,"index":129}},
172 "key": {
173 "type": "NumericLiteral",
174 "start":118,"end":119,"loc":{"start":{"line":6,"column":6,"index":118},"end":{"line":6,"column":7,"index":119}},
175 "extra": {
176 "rawValue": 1,
177 "raw": "1"
178 },
179 "value": 1
180 },
181 "static": false,
182 "proto": false,
183 "kind": "get",
184 "method": true,
185 "value": {
186 "type": "FunctionTypeAnnotation",
187 "start":114,"end":129,"loc":{"start":{"line":6,"column":2,"index":114},"end":{"line":6,"column":17,"index":129}},
188 "params": [],
189 "rest": null,
190 "typeParameters": null,
191 "this": null,
192 "returnType": {
193 "type": "NumberTypeAnnotation",
194 "start":123,"end":129,"loc":{"start":{"line":6,"column":11,"index":123},"end":{"line":6,"column":17,"index":129}}
195 }
196 },
197 "optional": false
198 },
199 {
200 "type": "ObjectTypeProperty",
201 "start":133,"end":155,"loc":{"start":{"line":7,"column":2,"index":133},"end":{"line":7,"column":24,"index":155}},
202 "key": {
203 "type": "NumericLiteral",
204 "start":137,"end":138,"loc":{"start":{"line":7,"column":6,"index":137},"end":{"line":7,"column":7,"index":138}},
205 "extra": {
206 "rawValue": 2,
207 "raw": "2"
208 },
209 "value": 2
210 },
211 "static": false,
212 "proto": false,
213 "kind": "set",
214 "method": true,
215 "value": {
216 "type": "FunctionTypeAnnotation",
217 "start":133,"end":155,"loc":{"start":{"line":7,"column":2,"index":133},"end":{"line":7,"column":24,"index":155}},
218 "params": [
219 {
220 "type": "FunctionTypeParam",
221 "start":139,"end":148,"loc":{"start":{"line":7,"column":8,"index":139},"end":{"line":7,"column":17,"index":148}},
222 "name": {
223 "type": "Identifier",
224 "start":139,"end":140,"loc":{"start":{"line":7,"column":8,"index":139},"end":{"line":7,"column":9,"index":140},"identifierName":"a"},
225 "name": "a"
226 },
227 "optional": false,
228 "typeAnnotation": {
229 "type": "NumberTypeAnnotation",
230 "start":142,"end":148,"loc":{"start":{"line":7,"column":11,"index":142},"end":{"line":7,"column":17,"index":148}}
231 }
232 }
233 ],
234 "rest": null,
235 "typeParameters": null,
236 "this": null,
237 "returnType": {
238 "type": "VoidTypeAnnotation",
239 "start":151,"end":155,"loc":{"start":{"line":7,"column":20,"index":151},"end":{"line":7,"column":24,"index":155}}
240 }
241 },
242 "optional": false
243 }
244 ],
245 "indexers": [],
246 "internalSlots": [],
247 "exact": false
248 }
249 }
250 ],
251 "directives": []
252 }
253 }