Debian Codegraph @

tests/fixtures/ecma-version/11/optional-chaining/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": 13
11 }
12 },
13 "range": [
14 0,
15 13
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": 13
28 }
29 },
30 "range": [
31 0,
32 13
33 ],
34 "expression": {
35 "type": "ChainExpression",
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 "expression": {
51 "type": "MemberExpression",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 0
56 },
57 "end": {
58 "line": 1,
59 "column": 13
60 }
61 },
62 "range": [
63 0,
64 13
65 ],
66 "object": {
67 "type": "MemberExpression",
68 "loc": {
69 "start": {
70 "line": 1,
71 "column": 0
72 },
73 "end": {
74 "line": 1,
75 "column": 8
76 }
77 },
78 "range": [
79 0,
80 8
81 ],
82 "object": {
83 "type": "Identifier",
84 "loc": {
85 "start": {
86 "line": 1,
87 "column": 0
88 },
89 "end": {
90 "line": 1,
91 "column": 3
92 }
93 },
94 "range": [
95 0,
96 3
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": true
120 },
121 "property": {
122 "type": "Identifier",
123 "loc": {
124 "start": {
125 "line": 1,
126 "column": 10
127 },
128 "end": {
129 "line": 1,
130 "column": 13
131 }
132 },
133 "range": [
134 10,
135 13
136 ],
137 "name": "bbb"
138 },
139 "computed": false,
140 "optional": true
141 }
142 }
143 }
144 ],
145 "sourceType": "script",
146 "tokens": [
147 {
148 "type": "Identifier",
149 "value": "obj",
150 "loc": {
151 "start": {
152 "line": 1,
153 "column": 0
154 },
155 "end": {
156 "line": 1,
157 "column": 3
158 }
159 },
160 "range": [
161 0,
162 3
163 ]
164 },
165 {
166 "type": "Punctuator",
167 "value": "?.",
168 "loc": {
169 "start": {
170 "line": 1,
171 "column": 3
172 },
173 "end": {
174 "line": 1,
175 "column": 5
176 }
177 },
178 "range": [
179 3,
180 5
181 ]
182 },
183 {
184 "type": "Identifier",
185 "value": "aaa",
186 "loc": {
187 "start": {
188 "line": 1,
189 "column": 5
190 },
191 "end": {
192 "line": 1,
193 "column": 8
194 }
195 },
196 "range": [
197 5,
198 8
199 ]
200 },
201 {
202 "type": "Punctuator",
203 "value": "?.",
204 "loc": {
205 "start": {
206 "line": 1,
207 "column": 8
208 },
209 "end": {
210 "line": 1,
211 "column": 10
212 }
213 },
214 "range": [
215 8,
216 10
217 ]
218 },
219 {
220 "type": "Identifier",
221 "value": "bbb",
222 "loc": {
223 "start": {
224 "line": 1,
225 "column": 10
226 },
227 "end": {
228 "line": 1,
229 "column": 13
230 }
231 },
232 "range": [
233 10,
234 13
235 ]
236 }
237 ]
238 };