Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/regression/issue-8891/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":153,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":3,"index":153}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":153,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":3,"index":153}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":153,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":3,"index":153}},
13 "expression": {
14 "type": "JSXFragment",
15 "start":0,"end":153,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":3,"index":153}},
16 "openingFragment": {
17 "type": "JSXOpeningFragment",
18 "start":0,"end":2,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":2,"index":2}}
19 },
20 "closingFragment": {
21 "type": "JSXClosingFragment",
22 "start":150,"end":153,"loc":{"start":{"line":6,"column":0,"index":150},"end":{"line":6,"column":3,"index":153}}
23 },
24 "children": [
25 {
26 "type": "JSXText",
27 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":2,"column":0,"index":3}},
28 "extra": {
29 "rawValue": "\n",
30 "raw": "\n"
31 },
32 "value": "\n"
33 },
34 {
35 "type": "JSXElement",
36 "start":3,"end":41,"loc":{"start":{"line":2,"column":0,"index":3},"end":{"line":2,"column":38,"index":41}},
37 "openingElement": {
38 "type": "JSXOpeningElement",
39 "start":3,"end":41,"loc":{"start":{"line":2,"column":0,"index":3},"end":{"line":2,"column":38,"index":41}},
40 "name": {
41 "type": "JSXIdentifier",
42 "start":4,"end":10,"loc":{"start":{"line":2,"column":1,"index":4},"end":{"line":2,"column":7,"index":10}},
43 "name": "Select"
44 },
45 "attributes": [
46 {
47 "type": "JSXAttribute",
48 "start":11,"end":38,"loc":{"start":{"line":2,"column":8,"index":11},"end":{"line":2,"column":35,"index":38}},
49 "name": {
50 "type": "JSXIdentifier",
51 "start":11,"end":15,"loc":{"start":{"line":2,"column":8,"index":11},"end":{"line":2,"column":12,"index":15}},
52 "name": "prop"
53 },
54 "value": {
55 "type": "JSXExpressionContainer",
56 "start":16,"end":38,"loc":{"start":{"line":2,"column":13,"index":16},"end":{"line":2,"column":35,"index":38}},
57 "expression": {
58 "type": "ObjectExpression",
59 "start":17,"end":37,"loc":{"start":{"line":2,"column":14,"index":17},"end":{"line":2,"column":34,"index":37}},
60 "properties": [
61 {
62 "type": "ObjectProperty",
63 "start":19,"end":35,"loc":{"start":{"line":2,"column":16,"index":19},"end":{"line":2,"column":32,"index":35}},
64 "method": false,
65 "key": {
66 "type": "Identifier",
67 "start":19,"end":27,"loc":{"start":{"line":2,"column":16,"index":19},"end":{"line":2,"column":24,"index":27},"identifierName":"function"},
68 "name": "function"
69 },
70 "computed": false,
71 "shorthand": false,
72 "value": {
73 "type": "StringLiteral",
74 "start":29,"end":35,"loc":{"start":{"line":2,"column":26,"index":29},"end":{"line":2,"column":32,"index":35}},
75 "extra": {
76 "rawValue": "test",
77 "raw": "'test'"
78 },
79 "value": "test"
80 }
81 }
82 ]
83 }
84 }
85 }
86 ],
87 "selfClosing": true
88 },
89 "closingElement": null,
90 "children": []
91 },
92 {
93 "type": "JSXText",
94 "start":41,"end":42,"loc":{"start":{"line":2,"column":38,"index":41},"end":{"line":3,"column":0,"index":42}},
95 "extra": {
96 "rawValue": "\n",
97 "raw": "\n"
98 },
99 "value": "\n"
100 },
101 {
102 "type": "JSXElement",
103 "start":42,"end":77,"loc":{"start":{"line":3,"column":0,"index":42},"end":{"line":3,"column":35,"index":77}},
104 "openingElement": {
105 "type": "JSXOpeningElement",
106 "start":42,"end":77,"loc":{"start":{"line":3,"column":0,"index":42},"end":{"line":3,"column":35,"index":77}},
107 "name": {
108 "type": "JSXIdentifier",
109 "start":43,"end":49,"loc":{"start":{"line":3,"column":1,"index":43},"end":{"line":3,"column":7,"index":49}},
110 "name": "Select"
111 },
112 "attributes": [
113 {
114 "type": "JSXAttribute",
115 "start":50,"end":74,"loc":{"start":{"line":3,"column":8,"index":50},"end":{"line":3,"column":32,"index":74}},
116 "name": {
117 "type": "JSXIdentifier",
118 "start":50,"end":54,"loc":{"start":{"line":3,"column":8,"index":50},"end":{"line":3,"column":12,"index":54}},
119 "name": "prop"
120 },
121 "value": {
122 "type": "JSXExpressionContainer",
123 "start":55,"end":74,"loc":{"start":{"line":3,"column":13,"index":55},"end":{"line":3,"column":32,"index":74}},
124 "expression": {
125 "type": "ObjectExpression",
126 "start":56,"end":73,"loc":{"start":{"line":3,"column":14,"index":56},"end":{"line":3,"column":31,"index":73}},
127 "properties": [
128 {
129 "type": "ObjectProperty",
130 "start":58,"end":71,"loc":{"start":{"line":3,"column":16,"index":58},"end":{"line":3,"column":29,"index":71}},
131 "method": false,
132 "key": {
133 "type": "Identifier",
134 "start":58,"end":63,"loc":{"start":{"line":3,"column":16,"index":58},"end":{"line":3,"column":21,"index":63},"identifierName":"class"},
135 "name": "class"
136 },
137 "computed": false,
138 "shorthand": false,
139 "value": {
140 "type": "StringLiteral",
141 "start":65,"end":71,"loc":{"start":{"line":3,"column":23,"index":65},"end":{"line":3,"column":29,"index":71}},
142 "extra": {
143 "rawValue": "test",
144 "raw": "'test'"
145 },
146 "value": "test"
147 }
148 }
149 ]
150 }
151 }
152 }
153 ],
154 "selfClosing": true
155 },
156 "closingElement": null,
157 "children": []
158 },
159 {
160 "type": "JSXText",
161 "start":77,"end":78,"loc":{"start":{"line":3,"column":35,"index":77},"end":{"line":4,"column":0,"index":78}},
162 "extra": {
163 "rawValue": "\n",
164 "raw": "\n"
165 },
166 "value": "\n"
167 },
168 {
169 "type": "JSXElement",
170 "start":78,"end":114,"loc":{"start":{"line":4,"column":0,"index":78},"end":{"line":4,"column":36,"index":114}},
171 "openingElement": {
172 "type": "JSXOpeningElement",
173 "start":78,"end":114,"loc":{"start":{"line":4,"column":0,"index":78},"end":{"line":4,"column":36,"index":114}},
174 "name": {
175 "type": "JSXIdentifier",
176 "start":79,"end":85,"loc":{"start":{"line":4,"column":1,"index":79},"end":{"line":4,"column":7,"index":85}},
177 "name": "Select"
178 },
179 "attributes": [
180 {
181 "type": "JSXAttribute",
182 "start":86,"end":111,"loc":{"start":{"line":4,"column":8,"index":86},"end":{"line":4,"column":33,"index":111}},
183 "name": {
184 "type": "JSXIdentifier",
185 "start":86,"end":90,"loc":{"start":{"line":4,"column":8,"index":86},"end":{"line":4,"column":12,"index":90}},
186 "name": "prop"
187 },
188 "value": {
189 "type": "JSXExpressionContainer",
190 "start":91,"end":111,"loc":{"start":{"line":4,"column":13,"index":91},"end":{"line":4,"column":33,"index":111}},
191 "expression": {
192 "type": "ObjectExpression",
193 "start":92,"end":110,"loc":{"start":{"line":4,"column":14,"index":92},"end":{"line":4,"column":32,"index":110}},
194 "properties": [
195 {
196 "type": "ObjectProperty",
197 "start":94,"end":108,"loc":{"start":{"line":4,"column":16,"index":94},"end":{"line":4,"column":30,"index":108}},
198 "method": false,
199 "key": {
200 "type": "Identifier",
201 "start":94,"end":100,"loc":{"start":{"line":4,"column":16,"index":94},"end":{"line":4,"column":22,"index":100},"identifierName":"delete"},
202 "name": "delete"
203 },
204 "computed": false,
205 "shorthand": false,
206 "value": {
207 "type": "StringLiteral",
208 "start":102,"end":108,"loc":{"start":{"line":4,"column":24,"index":102},"end":{"line":4,"column":30,"index":108}},
209 "extra": {
210 "rawValue": "test",
211 "raw": "'test'"
212 },
213 "value": "test"
214 }
215 }
216 ]
217 }
218 }
219 }
220 ],
221 "selfClosing": true
222 },
223 "closingElement": null,
224 "children": []
225 },
226 {
227 "type": "JSXText",
228 "start":114,"end":115,"loc":{"start":{"line":4,"column":36,"index":114},"end":{"line":5,"column":0,"index":115}},
229 "extra": {
230 "rawValue": "\n",
231 "raw": "\n"
232 },
233 "value": "\n"
234 },
235 {
236 "type": "JSXElement",
237 "start":115,"end":149,"loc":{"start":{"line":5,"column":0,"index":115},"end":{"line":5,"column":34,"index":149}},
238 "openingElement": {
239 "type": "JSXOpeningElement",
240 "start":115,"end":149,"loc":{"start":{"line":5,"column":0,"index":115},"end":{"line":5,"column":34,"index":149}},
241 "name": {
242 "type": "JSXIdentifier",
243 "start":116,"end":122,"loc":{"start":{"line":5,"column":1,"index":116},"end":{"line":5,"column":7,"index":122}},
244 "name": "Select"
245 },
246 "attributes": [
247 {
248 "type": "JSXAttribute",
249 "start":123,"end":146,"loc":{"start":{"line":5,"column":8,"index":123},"end":{"line":5,"column":31,"index":146}},
250 "name": {
251 "type": "JSXIdentifier",
252 "start":123,"end":127,"loc":{"start":{"line":5,"column":8,"index":123},"end":{"line":5,"column":12,"index":127}},
253 "name": "prop"
254 },
255 "value": {
256 "type": "JSXExpressionContainer",
257 "start":128,"end":146,"loc":{"start":{"line":5,"column":13,"index":128},"end":{"line":5,"column":31,"index":146}},
258 "expression": {
259 "type": "ObjectExpression",
260 "start":129,"end":145,"loc":{"start":{"line":5,"column":14,"index":129},"end":{"line":5,"column":30,"index":145}},
261 "properties": [
262 {
263 "type": "ObjectProperty",
264 "start":131,"end":143,"loc":{"start":{"line":5,"column":16,"index":131},"end":{"line":5,"column":28,"index":143}},
265 "method": false,
266 "key": {
267 "type": "Identifier",
268 "start":131,"end":135,"loc":{"start":{"line":5,"column":16,"index":131},"end":{"line":5,"column":20,"index":135},"identifierName":"enum"},
269 "name": "enum"
270 },
271 "computed": false,
272 "shorthand": false,
273 "value": {
274 "type": "StringLiteral",
275 "start":137,"end":143,"loc":{"start":{"line":5,"column":22,"index":137},"end":{"line":5,"column":28,"index":143}},
276 "extra": {
277 "rawValue": "test",
278 "raw": "'test'"
279 },
280 "value": "test"
281 }
282 }
283 ]
284 }
285 }
286 }
287 ],
288 "selfClosing": true
289 },
290 "closingElement": null,
291 "children": []
292 },
293 {
294 "type": "JSXText",
295 "start":149,"end":150,"loc":{"start":{"line":5,"column":34,"index":149},"end":{"line":6,"column":0,"index":150}},
296 "extra": {
297 "rawValue": "\n",
298 "raw": "\n"
299 },
300 "value": "\n"
301 }
302 ]
303 }
304 }
305 ],
306 "directives": []
307 }
308 }