Debian Codegraph @

tests/fixtures/ecma-version/11/optional-chaining/parenthesized-chaining1.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": "MemberExpression",
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 "object": {
51 "type": "ChainExpression",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 1
56 },
57 "end": {
58 "line": 1,
59 "column": 9
60 }
61 },
62 "range": [
63 1,
64 9
65 ],
66 "expression": {
67 "type": "MemberExpression",
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 "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": 6
106 },
107 "end": {
108 "line": 1,
109 "column": 9
110 }
111 },
112 "range": [
113 6,
114 9
115 ],
116 "name": "aaa"
117 },
118 "computed": false,
119 "optional": true
120 }
121 },
122 "property": {
123 "type": "Identifier",
124 "loc": {
125 "start": {
126 "line": 1,
127 "column": 11
128 },
129 "end": {
130 "line": 1,
131 "column": 14
132 }
133 },
134 "range": [
135 11,
136 14
137 ],
138 "name": "bbb"
139 },
140 "computed": false,
141 "optional": false
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": 6
194 }
195 },
196 "range": [
197 4,
198 6
199 ]
200 },
201 {
202 "type": "Identifier",
203 "value": "aaa",
204 "loc": {
205 "start": {
206 "line": 1,
207 "column": 6
208 },
209 "end": {
210 "line": 1,
211 "column": 9
212 }
213 },
214 "range": [
215 6,
216 9
217 ]
218 },
219 {
220 "type": "Punctuator",
221 "value": ")",
222 "loc": {
223 "start": {
224 "line": 1,
225 "column": 9
226 },
227 "end": {
228 "line": 1,
229 "column": 10
230 }
231 },
232 "range": [
233 9,
234 10
235 ]
236 },
237 {
238 "type": "Punctuator",
239 "value": ".",
240 "loc": {
241 "start": {
242 "line": 1,
243 "column": 10
244 },
245 "end": {
246 "line": 1,
247 "column": 11
248 }
249 },
250 "range": [
251 10,
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 };