Debian Codegraph @

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