Debian Codegraph @

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