Debian Codegraph @

tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-object.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": "ArrowFunctionExpression",
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 "id": null,
51 "generator": false,
52 "expression": true,
53 "params": [
54 {
55 "type": "ObjectPattern",
56 "loc": {
57 "start": {
58 "line": 1,
59 "column": 1
60 },
61 "end": {
62 "line": 1,
63 "column": 4
64 }
65 },
66 "range": [
67 1,
68 4
69 ],
70 "properties": [
71 {
72 "type": "Property",
73 "loc": {
74 "start": {
75 "line": 1,
76 "column": 2
77 },
78 "end": {
79 "line": 1,
80 "column": 3
81 }
82 },
83 "range": [
84 2,
85 3
86 ],
87 "method": false,
88 "shorthand": true,
89 "computed": false,
90 "key": {
91 "type": "Identifier",
92 "loc": {
93 "start": {
94 "line": 1,
95 "column": 2
96 },
97 "end": {
98 "line": 1,
99 "column": 3
100 }
101 },
102 "range": [
103 2,
104 3
105 ],
106 "name": "y"
107 },
108 "kind": "init",
109 "value": {
110 "type": "Identifier",
111 "loc": {
112 "start": {
113 "line": 1,
114 "column": 2
115 },
116 "end": {
117 "line": 1,
118 "column": 3
119 }
120 },
121 "range": [
122 2,
123 3
124 ],
125 "name": "y"
126 }
127 }
128 ]
129 }
130 ],
131 "body": {
132 "type": "Identifier",
133 "loc": {
134 "start": {
135 "line": 1,
136 "column": 9
137 },
138 "end": {
139 "line": 1,
140 "column": 10
141 }
142 },
143 "range": [
144 9,
145 10
146 ],
147 "name": "x"
148 }
149 }
150 }
151 ],
152 "sourceType": "script",
153 "tokens": [
154 {
155 "type": "Punctuator",
156 "value": "(",
157 "loc": {
158 "start": {
159 "line": 1,
160 "column": 0
161 },
162 "end": {
163 "line": 1,
164 "column": 1
165 }
166 },
167 "range": [
168 0,
169 1
170 ]
171 },
172 {
173 "type": "Punctuator",
174 "value": "{",
175 "loc": {
176 "start": {
177 "line": 1,
178 "column": 1
179 },
180 "end": {
181 "line": 1,
182 "column": 2
183 }
184 },
185 "range": [
186 1,
187 2
188 ]
189 },
190 {
191 "type": "Identifier",
192 "value": "y",
193 "loc": {
194 "start": {
195 "line": 1,
196 "column": 2
197 },
198 "end": {
199 "line": 1,
200 "column": 3
201 }
202 },
203 "range": [
204 2,
205 3
206 ]
207 },
208 {
209 "type": "Punctuator",
210 "value": "}",
211 "loc": {
212 "start": {
213 "line": 1,
214 "column": 3
215 },
216 "end": {
217 "line": 1,
218 "column": 4
219 }
220 },
221 "range": [
222 3,
223 4
224 ]
225 },
226 {
227 "type": "Punctuator",
228 "value": ")",
229 "loc": {
230 "start": {
231 "line": 1,
232 "column": 4
233 },
234 "end": {
235 "line": 1,
236 "column": 5
237 }
238 },
239 "range": [
240 4,
241 5
242 ]
243 },
244 {
245 "type": "Punctuator",
246 "value": "=>",
247 "loc": {
248 "start": {
249 "line": 1,
250 "column": 6
251 },
252 "end": {
253 "line": 1,
254 "column": 8
255 }
256 },
257 "range": [
258 6,
259 8
260 ]
261 },
262 {
263 "type": "Identifier",
264 "value": "x",
265 "loc": {
266 "start": {
267 "line": 1,
268 "column": 9
269 },
270 "end": {
271 "line": 1,
272 "column": 10
273 }
274 },
275 "range": [
276 9,
277 10
278 ]
279 },
280 {
281 "type": "Punctuator",
282 "value": ";",
283 "loc": {
284 "start": {
285 "line": 1,
286 "column": 10
287 },
288 "end": {
289 "line": 1,
290 "column": 11
291 }
292 },
293 "range": [
294 10,
295 11
296 ]
297 }
298 ]
299 };