Debian Codegraph @

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