Debian Codegraph @

tests/fixtures/ecma-version/11/optional-chaining/non-optional.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 2,
10 "column": 11
11 }
12 },
13 "range": [
14 0,
15 26
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 14
28 }
29 },
30 "range": [
31 0,
32 14
33 ],
34 "expression": {
35 "type": "MemberExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 13
44 }
45 },
46 "range": [
47 0,
48 13
49 ],
50 "object": {
51 "type": "MemberExpression",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 1
56 },
57 "end": {
58 "line": 1,
59 "column": 8
60 }
61 },
62 "range": [
63 1,
64 8
65 ],
66 "object": {
67 "type": "Identifier",
68 "loc": {
69 "start": {
70 "line": 1,
71 "column": 1
72 },
73 "end": {
74 "line": 1,
75 "column": 4
76 }
77 },
78 "range": [
79 1,
80 4
81 ],
82 "name": "obj"
83 },
84 "property": {
85 "type": "Identifier",
86 "loc": {
87 "start": {
88 "line": 1,
89 "column": 5
90 },
91 "end": {
92 "line": 1,
93 "column": 8
94 }
95 },
96 "range": [
97 5,
98 8
99 ],
100 "name": "aaa"
101 },
102 "computed": false,
103 "optional": false
104 },
105 "property": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 1,
110 "column": 10
111 },
112 "end": {
113 "line": 1,
114 "column": 13
115 }
116 },
117 "range": [
118 10,
119 13
120 ],
121 "name": "bbb"
122 },
123 "computed": false,
124 "optional": false
125 }
126 },
127 {
128 "type": "ExpressionStatement",
129 "loc": {
130 "start": {
131 "line": 2,
132 "column": 0
133 },
134 "end": {
135 "line": 2,
136 "column": 11
137 }
138 },
139 "range": [
140 15,
141 26
142 ],
143 "expression": {
144 "type": "CallExpression",
145 "loc": {
146 "start": {
147 "line": 2,
148 "column": 0
149 },
150 "end": {
151 "line": 2,
152 "column": 11
153 }
154 },
155 "range": [
156 15,
157 26
158 ],
159 "callee": {
160 "type": "MemberExpression",
161 "loc": {
162 "start": {
163 "line": 2,
164 "column": 1
165 },
166 "end": {
167 "line": 2,
168 "column": 8
169 }
170 },
171 "range": [
172 16,
173 23
174 ],
175 "object": {
176 "type": "Identifier",
177 "loc": {
178 "start": {
179 "line": 2,
180 "column": 1
181 },
182 "end": {
183 "line": 2,
184 "column": 4
185 }
186 },
187 "range": [
188 16,
189 19
190 ],
191 "name": "obj"
192 },
193 "property": {
194 "type": "Identifier",
195 "loc": {
196 "start": {
197 "line": 2,
198 "column": 5
199 },
200 "end": {
201 "line": 2,
202 "column": 8
203 }
204 },
205 "range": [
206 20,
207 23
208 ],
209 "name": "aaa"
210 },
211 "computed": false,
212 "optional": false
213 },
214 "arguments": [],
215 "optional": false
216 }
217 }
218 ],
219 "sourceType": "script",
220 "tokens": [
221 {
222 "type": "Punctuator",
223 "value": "(",
224 "loc": {
225 "start": {
226 "line": 1,
227 "column": 0
228 },
229 "end": {
230 "line": 1,
231 "column": 1
232 }
233 },
234 "range": [
235 0,
236 1
237 ]
238 },
239 {
240 "type": "Identifier",
241 "value": "obj",
242 "loc": {
243 "start": {
244 "line": 1,
245 "column": 1
246 },
247 "end": {
248 "line": 1,
249 "column": 4
250 }
251 },
252 "range": [
253 1,
254 4
255 ]
256 },
257 {
258 "type": "Punctuator",
259 "value": ".",
260 "loc": {
261 "start": {
262 "line": 1,
263 "column": 4
264 },
265 "end": {
266 "line": 1,
267 "column": 5
268 }
269 },
270 "range": [
271 4,
272 5
273 ]
274 },
275 {
276 "type": "Identifier",
277 "value": "aaa",
278 "loc": {
279 "start": {
280 "line": 1,
281 "column": 5
282 },
283 "end": {
284 "line": 1,
285 "column": 8
286 }
287 },
288 "range": [
289 5,
290 8
291 ]
292 },
293 {
294 "type": "Punctuator",
295 "value": ")",
296 "loc": {
297 "start": {
298 "line": 1,
299 "column": 8
300 },
301 "end": {
302 "line": 1,
303 "column": 9
304 }
305 },
306 "range": [
307 8,
308 9
309 ]
310 },
311 {
312 "type": "Punctuator",
313 "value": ".",
314 "loc": {
315 "start": {
316 "line": 1,
317 "column": 9
318 },
319 "end": {
320 "line": 1,
321 "column": 10
322 }
323 },
324 "range": [
325 9,
326 10
327 ]
328 },
329 {
330 "type": "Identifier",
331 "value": "bbb",
332 "loc": {
333 "start": {
334 "line": 1,
335 "column": 10
336 },
337 "end": {
338 "line": 1,
339 "column": 13
340 }
341 },
342 "range": [
343 10,
344 13
345 ]
346 },
347 {
348 "type": "Punctuator",
349 "value": ";",
350 "loc": {
351 "start": {
352 "line": 1,
353 "column": 13
354 },
355 "end": {
356 "line": 1,
357 "column": 14
358 }
359 },
360 "range": [
361 13,
362 14
363 ]
364 },
365 {
366 "type": "Punctuator",
367 "value": "(",
368 "loc": {
369 "start": {
370 "line": 2,
371 "column": 0
372 },
373 "end": {
374 "line": 2,
375 "column": 1
376 }
377 },
378 "range": [
379 15,
380 16
381 ]
382 },
383 {
384 "type": "Identifier",
385 "value": "obj",
386 "loc": {
387 "start": {
388 "line": 2,
389 "column": 1
390 },
391 "end": {
392 "line": 2,
393 "column": 4
394 }
395 },
396 "range": [
397 16,
398 19
399 ]
400 },
401 {
402 "type": "Punctuator",
403 "value": ".",
404 "loc": {
405 "start": {
406 "line": 2,
407 "column": 4
408 },
409 "end": {
410 "line": 2,
411 "column": 5
412 }
413 },
414 "range": [
415 19,
416 20
417 ]
418 },
419 {
420 "type": "Identifier",
421 "value": "aaa",
422 "loc": {
423 "start": {
424 "line": 2,
425 "column": 5
426 },
427 "end": {
428 "line": 2,
429 "column": 8
430 }
431 },
432 "range": [
433 20,
434 23
435 ]
436 },
437 {
438 "type": "Punctuator",
439 "value": ")",
440 "loc": {
441 "start": {
442 "line": 2,
443 "column": 8
444 },
445 "end": {
446 "line": 2,
447 "column": 9
448 }
449 },
450 "range": [
451 23,
452 24
453 ]
454 },
455 {
456 "type": "Punctuator",
457 "value": "(",
458 "loc": {
459 "start": {
460 "line": 2,
461 "column": 9
462 },
463 "end": {
464 "line": 2,
465 "column": 10
466 }
467 },
468 "range": [
469 24,
470 25
471 ]
472 },
473 {
474 "type": "Punctuator",
475 "value": ")",
476 "loc": {
477 "start": {
478 "line": 2,
479 "column": 10
480 },
481 "end": {
482 "line": 2,
483 "column": 11
484 }
485 },
486 "range": [
487 25,
488 26
489 ]
490 }
491 ]
492 };