Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring/defaults-array.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": 10
11 }
12 },
13 "range": [
14 0,
15 10
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": 10
28 }
29 },
30 "range": [
31 0,
32 10
33 ],
34 "expression": {
35 "type": "AssignmentExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 10
44 }
45 },
46 "range": [
47 0,
48 10
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": "AssignmentPattern",
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 "left": {
85 "type": "Identifier",
86 "loc": {
87 "start": {
88 "line": 1,
89 "column": 1
90 },
91 "end": {
92 "line": 1,
93 "column": 2
94 }
95 },
96 "range": [
97 1,
98 2
99 ],
100 "name": "x"
101 },
102 "right": {
103 "type": "Literal",
104 "loc": {
105 "start": {
106 "line": 1,
107 "column": 3
108 },
109 "end": {
110 "line": 1,
111 "column": 5
112 }
113 },
114 "range": [
115 3,
116 5
117 ],
118 "value": 10,
119 "raw": "10"
120 }
121 }
122 ]
123 },
124 "right": {
125 "type": "Identifier",
126 "loc": {
127 "start": {
128 "line": 1,
129 "column": 9
130 },
131 "end": {
132 "line": 1,
133 "column": 10
134 }
135 },
136 "range": [
137 9,
138 10
139 ],
140 "name": "x"
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": "x",
168 "loc": {
169 "start": {
170 "line": 1,
171 "column": 1
172 },
173 "end": {
174 "line": 1,
175 "column": 2
176 }
177 },
178 "range": [
179 1,
180 2
181 ]
182 },
183 {
184 "type": "Punctuator",
185 "value": "=",
186 "loc": {
187 "start": {
188 "line": 1,
189 "column": 2
190 },
191 "end": {
192 "line": 1,
193 "column": 3
194 }
195 },
196 "range": [
197 2,
198 3
199 ]
200 },
201 {
202 "type": "Numeric",
203 "value": "10",
204 "loc": {
205 "start": {
206 "line": 1,
207 "column": 3
208 },
209 "end": {
210 "line": 1,
211 "column": 5
212 }
213 },
214 "range": [
215 3,
216 5
217 ]
218 },
219 {
220 "type": "Punctuator",
221 "value": "]",
222 "loc": {
223 "start": {
224 "line": 1,
225 "column": 5
226 },
227 "end": {
228 "line": 1,
229 "column": 6
230 }
231 },
232 "range": [
233 5,
234 6
235 ]
236 },
237 {
238 "type": "Punctuator",
239 "value": "=",
240 "loc": {
241 "start": {
242 "line": 1,
243 "column": 7
244 },
245 "end": {
246 "line": 1,
247 "column": 8
248 }
249 },
250 "range": [
251 7,
252 8
253 ]
254 },
255 {
256 "type": "Identifier",
257 "value": "x",
258 "loc": {
259 "start": {
260 "line": 1,
261 "column": 9
262 },
263 "end": {
264 "line": 1,
265 "column": 10
266 }
267 },
268 "range": [
269 9,
270 10
271 ]
272 }
273 ]
274 };