]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/parsers/function-paren-newline/arrow-function-return-type.js
4 * Parser: @typescript-eslint/parser@5.10.1
12 * ] => [`a${abc}`, def];
13 * method6(3, () => {});
16 exports
.parse
= () => ({
20 type
: "VariableDeclaration",
23 type
: "VariableDeclarator",
29 start
: { line
: 1, column
: 6 },
30 end
: { line
: 1, column
: 13 },
34 type
: "ArrowFunctionExpression",
43 start
: { line
: 2, column
: 2 },
44 end
: { line
: 2, column
: 13 },
47 type
: "TSTypeAnnotation",
49 start
: { line
: 2, column
: 5 },
50 end
: { line
: 2, column
: 13 },
54 type
: "TSNumberKeyword",
57 start
: { line
: 2, column
: 7 },
58 end
: { line
: 2, column
: 13 },
68 start
: { line
: 3, column
: 2 },
69 end
: { line
: 3, column
: 17 },
72 type
: "TSTypeAnnotation",
74 start
: { line
: 3, column
: 5 },
75 end
: { line
: 3, column
: 17 },
79 type
: "TSFunctionType",
83 start
: { line
: 3, column
: 7 },
84 end
: { line
: 3, column
: 17 },
87 type
: "TSTypeAnnotation",
89 start
: { line
: 3, column
: 10 },
90 end
: { line
: 3, column
: 17 },
94 type
: "TSVoidKeyword",
113 type
: "ArrayExpression",
116 type
: "TemplateLiteral",
119 type
: "TemplateElement",
120 value
: { raw
: "a", cooked
: "a" },
124 start
: { line
: 7, column
: 6 },
125 end
: { line
: 7, column
: 10 },
129 type
: "TemplateElement",
130 value
: { raw
: "", cooked
: "" },
134 start
: { line
: 7, column
: 13 },
135 end
: { line
: 7, column
: 15 },
145 start
: { line
: 7, column
: 10 },
146 end
: { line
: 7, column
: 13 },
152 start
: { line
: 7, column
: 6 },
153 end
: { line
: 7, column
: 15 },
161 start
: { line
: 7, column
: 17 },
162 end
: { line
: 7, column
: 20 },
168 start
: { line
: 7, column
: 5 },
169 end
: { line
: 7, column
: 21 },
176 start
: { line
: 1, column
: 16 },
177 end
: { line
: 7, column
: 21 },
180 type
: "TSTypeAnnotation",
182 start
: { line
: 4, column
: 1 },
183 end
: { line
: 7, column
: 1 },
190 type
: "TSStringKeyword",
193 start
: { line
: 5, column
: 2 },
194 end
: { line
: 5, column
: 8 },
198 type
: "TSFunctionType",
202 start
: { line
: 6, column
: 2 },
203 end
: { line
: 6, column
: 12 },
206 type
: "TSTypeAnnotation",
208 start
: { line
: 6, column
: 5 },
209 end
: { line
: 6, column
: 12 },
213 type
: "TSVoidKeyword",
231 start
: { line
: 4, column
: 3 },
232 end
: { line
: 7, column
: 1 },
239 start
: { line
: 1, column
: 6 },
240 end
: { line
: 7, column
: 21 },
247 start
: { line
: 1, column
: 0 },
248 end
: { line
: 7, column
: 22 },
252 type
: "ExpressionStatement",
254 type
: "CallExpression",
260 start
: { line
: 8, column
: 0 },
261 end
: { line
: 8, column
: 7 },
271 start
: { line
: 8, column
: 8 },
272 end
: { line
: 8, column
: 9 },
276 type
: "ArrowFunctionExpression",
281 type
: "BlockStatement",
285 start
: { line
: 8, column
: 17 },
286 end
: { line
: 8, column
: 19 },
293 start
: { line
: 8, column
: 11 },
294 end
: { line
: 8, column
: 19 },
301 start
: { line
: 8, column
: 0 },
302 end
: { line
: 8, column
: 20 },
307 start
: { line
: 8, column
: 0 },
308 end
: { line
: 8, column
: 21 },
312 sourceType
: "script",
314 loc
: { start
: { line
: 1, column
: 0 }, end
: { line
: 9, column
: 0 } },
320 loc
: { start
: { line
: 1, column
: 0 }, end
: { line
: 1, column
: 5 } },
327 start
: { line
: 1, column
: 6 },
328 end
: { line
: 1, column
: 13 },
336 start
: { line
: 1, column
: 14 },
337 end
: { line
: 1, column
: 15 },
345 start
: { line
: 1, column
: 16 },
346 end
: { line
: 1, column
: 17 },
353 loc
: { start
: { line
: 2, column
: 2 }, end
: { line
: 2, column
: 5 } },
359 loc
: { start
: { line
: 2, column
: 5 }, end
: { line
: 2, column
: 6 } },
366 start
: { line
: 2, column
: 7 },
367 end
: { line
: 2, column
: 13 },
375 start
: { line
: 2, column
: 13 },
376 end
: { line
: 2, column
: 14 },
383 loc
: { start
: { line
: 3, column
: 2 }, end
: { line
: 3, column
: 5 } },
389 loc
: { start
: { line
: 3, column
: 5 }, end
: { line
: 3, column
: 6 } },
395 loc
: { start
: { line
: 3, column
: 7 }, end
: { line
: 3, column
: 8 } },
401 loc
: { start
: { line
: 3, column
: 8 }, end
: { line
: 3, column
: 9 } },
408 start
: { line
: 3, column
: 10 },
409 end
: { line
: 3, column
: 12 },
417 start
: { line
: 3, column
: 13 },
418 end
: { line
: 3, column
: 17 },
426 start
: { line
: 3, column
: 17 },
427 end
: { line
: 3, column
: 18 },
434 loc
: { start
: { line
: 4, column
: 0 }, end
: { line
: 4, column
: 1 } },
440 loc
: { start
: { line
: 4, column
: 1 }, end
: { line
: 4, column
: 2 } },
446 loc
: { start
: { line
: 4, column
: 3 }, end
: { line
: 4, column
: 4 } },
452 loc
: { start
: { line
: 5, column
: 2 }, end
: { line
: 5, column
: 8 } },
458 loc
: { start
: { line
: 5, column
: 8 }, end
: { line
: 5, column
: 9 } },
464 loc
: { start
: { line
: 6, column
: 2 }, end
: { line
: 6, column
: 3 } },
470 loc
: { start
: { line
: 6, column
: 3 }, end
: { line
: 6, column
: 4 } },
476 loc
: { start
: { line
: 6, column
: 5 }, end
: { line
: 6, column
: 7 } },
483 start
: { line
: 6, column
: 8 },
484 end
: { line
: 6, column
: 12 },
491 loc
: { start
: { line
: 7, column
: 0 }, end
: { line
: 7, column
: 1 } },
497 loc
: { start
: { line
: 7, column
: 2 }, end
: { line
: 7, column
: 4 } },
503 loc
: { start
: { line
: 7, column
: 5 }, end
: { line
: 7, column
: 6 } },
510 start
: { line
: 7, column
: 6 },
511 end
: { line
: 7, column
: 10 },
519 start
: { line
: 7, column
: 10 },
520 end
: { line
: 7, column
: 13 },
528 start
: { line
: 7, column
: 13 },
529 end
: { line
: 7, column
: 15 },
537 start
: { line
: 7, column
: 15 },
538 end
: { line
: 7, column
: 16 },
546 start
: { line
: 7, column
: 17 },
547 end
: { line
: 7, column
: 20 },
555 start
: { line
: 7, column
: 20 },
556 end
: { line
: 7, column
: 21 },
564 start
: { line
: 7, column
: 21 },
565 end
: { line
: 7, column
: 22 },
572 loc
: { start
: { line
: 8, column
: 0 }, end
: { line
: 8, column
: 7 } },
578 loc
: { start
: { line
: 8, column
: 7 }, end
: { line
: 8, column
: 8 } },
584 loc
: { start
: { line
: 8, column
: 8 }, end
: { line
: 8, column
: 9 } },
591 start
: { line
: 8, column
: 9 },
592 end
: { line
: 8, column
: 10 },
600 start
: { line
: 8, column
: 11 },
601 end
: { line
: 8, column
: 12 },
609 start
: { line
: 8, column
: 12 },
610 end
: { line
: 8, column
: 13 },
618 start
: { line
: 8, column
: 14 },
619 end
: { line
: 8, column
: 16 },
627 start
: { line
: 8, column
: 17 },
628 end
: { line
: 8, column
: 18 },
636 start
: { line
: 8, column
: 18 },
637 end
: { line
: 8, column
: 19 },
645 start
: { line
: 8, column
: 19 },
646 end
: { line
: 8, column
: 20 },
654 start
: { line
: 8, column
: 20 },
655 end
: { line
: 8, column
: 21 },