Debian Codegraph @

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