Debian Codegraph @

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