Debian Codegraph @

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

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 15
11 }
12 },
13 "range": [
14 0,
15 15
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": 15
28 }
29 },
30 "range": [
31 0,
32 15
33 ],
34 "expression": {
35 "type": "ChainExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 15
44 }
45 },
46 "range": [
47 0,
48 15
49 ],
50 "expression": {
51 "type": "MemberExpression",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 0
56 },
57 "end": {
58 "line": 1,
59 "column": 15
60 }
61 },
62 "range": [
63 0,
64 15
65 ],
66 "object": {
67 "type": "ChainExpression",
68 "loc": {
69 "start": {
70 "line": 1,
71 "column": 1
72 },
73 "end": {
74 "line": 1,
75 "column": 9
76 }
77 },
78 "range": [
79 1,
80 9
81 ],
82 "expression": {
83 "type": "MemberExpression",
84 "loc": {
85 "start": {
86 "line": 1,
87 "column": 1
88 },
89 "end": {
90 "line": 1,
91 "column": 9
92 }
93 },
94 "range": [
95 1,
96 9
97 ],
98 "object": {
99 "type": "Identifier",
100 "loc": {
101 "start": {
102 "line": 1,
103 "column": 1
104 },
105 "end": {
106 "line": 1,
107 "column": 4
108 }
109 },
110 "range": [
111 1,
112 4
113 ],
114 "name": "obj"
115 },
116 "property": {
117 "type": "Identifier",
118 "loc": {
119 "start": {
120 "line": 1,
121 "column": 6
122 },
123 "end": {
124 "line": 1,
125 "column": 9
126 }
127 },
128 "range": [
129 6,
130 9
131 ],
132 "name": "aaa"
133 },
134 "computed": false,
135 "optional": true
136 }
137 },
138 "property": {
139 "type": "Identifier",
140 "loc": {
141 "start": {
142 "line": 1,
143 "column": 12
144 },
145 "end": {
146 "line": 1,
147 "column": 15
148 }
149 },
150 "range": [
151 12,
152 15
153 ],
154 "name": "bbb"
155 },
156 "computed": false,
157 "optional": true
158 }
159 }
160 }
161 ],
162 "sourceType": "script",
163 "tokens": [
164 {
165 "type": "Punctuator",
166 "value": "(",
167 "loc": {
168 "start": {
169 "line": 1,
170 "column": 0
171 },
172 "end": {
173 "line": 1,
174 "column": 1
175 }
176 },
177 "range": [
178 0,
179 1
180 ]
181 },
182 {
183 "type": "Identifier",
184 "value": "obj",
185 "loc": {
186 "start": {
187 "line": 1,
188 "column": 1
189 },
190 "end": {
191 "line": 1,
192 "column": 4
193 }
194 },
195 "range": [
196 1,
197 4
198 ]
199 },
200 {
201 "type": "Punctuator",
202 "value": "?.",
203 "loc": {
204 "start": {
205 "line": 1,
206 "column": 4
207 },
208 "end": {
209 "line": 1,
210 "column": 6
211 }
212 },
213 "range": [
214 4,
215 6
216 ]
217 },
218 {
219 "type": "Identifier",
220 "value": "aaa",
221 "loc": {
222 "start": {
223 "line": 1,
224 "column": 6
225 },
226 "end": {
227 "line": 1,
228 "column": 9
229 }
230 },
231 "range": [
232 6,
233 9
234 ]
235 },
236 {
237 "type": "Punctuator",
238 "value": ")",
239 "loc": {
240 "start": {
241 "line": 1,
242 "column": 9
243 },
244 "end": {
245 "line": 1,
246 "column": 10
247 }
248 },
249 "range": [
250 9,
251 10
252 ]
253 },
254 {
255 "type": "Punctuator",
256 "value": "?.",
257 "loc": {
258 "start": {
259 "line": 1,
260 "column": 10
261 },
262 "end": {
263 "line": 1,
264 "column": 12
265 }
266 },
267 "range": [
268 10,
269 12
270 ]
271 },
272 {
273 "type": "Identifier",
274 "value": "bbb",
275 "loc": {
276 "start": {
277 "line": 1,
278 "column": 12
279 },
280 "end": {
281 "line": 1,
282 "column": 15
283 }
284 },
285 "range": [
286 12,
287 15
288 ]
289 }
290 ]
291 };