Debian Codegraph @

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