Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring-and-spread/single-destructured.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": 11
11 }
12 },
13 "range": [
14 0,
15 11
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": 11
28 }
29 },
30 "range": [
31 0,
32 11
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": "RestElement",
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 "argument": {
85 "type": "Identifier",
86 "loc": {
87 "start": {
88 "line": 1,
89 "column": 4
90 },
91 "end": {
92 "line": 1,
93 "column": 5
94 }
95 },
96 "range": [
97 4,
98 5
99 ],
100 "name": "a"
101 }
102 }
103 ]
104 },
105 "right": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 1,
110 "column": 9
111 },
112 "end": {
113 "line": 1,
114 "column": 10
115 }
116 },
117 "range": [
118 9,
119 10
120 ],
121 "name": "b"
122 }
123 }
124 }
125 ],
126 "sourceType": "script",
127 "tokens": [
128 {
129 "type": "Punctuator",
130 "value": "[",
131 "loc": {
132 "start": {
133 "line": 1,
134 "column": 0
135 },
136 "end": {
137 "line": 1,
138 "column": 1
139 }
140 },
141 "range": [
142 0,
143 1
144 ]
145 },
146 {
147 "type": "Punctuator",
148 "value": "...",
149 "loc": {
150 "start": {
151 "line": 1,
152 "column": 1
153 },
154 "end": {
155 "line": 1,
156 "column": 4
157 }
158 },
159 "range": [
160 1,
161 4
162 ]
163 },
164 {
165 "type": "Identifier",
166 "value": "a",
167 "loc": {
168 "start": {
169 "line": 1,
170 "column": 4
171 },
172 "end": {
173 "line": 1,
174 "column": 5
175 }
176 },
177 "range": [
178 4,
179 5
180 ]
181 },
182 {
183 "type": "Punctuator",
184 "value": "]",
185 "loc": {
186 "start": {
187 "line": 1,
188 "column": 5
189 },
190 "end": {
191 "line": 1,
192 "column": 6
193 }
194 },
195 "range": [
196 5,
197 6
198 ]
199 },
200 {
201 "type": "Punctuator",
202 "value": "=",
203 "loc": {
204 "start": {
205 "line": 1,
206 "column": 7
207 },
208 "end": {
209 "line": 1,
210 "column": 8
211 }
212 },
213 "range": [
214 7,
215 8
216 ]
217 },
218 {
219 "type": "Identifier",
220 "value": "b",
221 "loc": {
222 "start": {
223 "line": 1,
224 "column": 9
225 },
226 "end": {
227 "line": 1,
228 "column": 10
229 }
230 },
231 "range": [
232 9,
233 10
234 ]
235 },
236 {
237 "type": "Punctuator",
238 "value": ";",
239 "loc": {
240 "start": {
241 "line": 1,
242 "column": 10
243 },
244 "end": {
245 "line": 1,
246 "column": 11
247 }
248 },
249 "range": [
250 10,
251 11
252 ]
253 }
254 ]
255 };