Debian Codegraph @

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