1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
=== tests/cases/compiler/unusedDestructuringParameters.ts ===
const f = ([a]) => { };
>f : Symbol(f, Decl(unusedDestructuringParameters.ts, 0, 5))
>a : Symbol(a, Decl(unusedDestructuringParameters.ts, 0, 12))
f([1]);
>f : Symbol(f, Decl(unusedDestructuringParameters.ts, 0, 5))
const f2 = ({a}) => { };
>f2 : Symbol(f2, Decl(unusedDestructuringParameters.ts, 2, 5))
>a : Symbol(a, Decl(unusedDestructuringParameters.ts, 2, 13))
f2({ a: 10 });
>f2 : Symbol(f2, Decl(unusedDestructuringParameters.ts, 2, 5))
>a : Symbol(a, Decl(unusedDestructuringParameters.ts, 3, 4))
const f3 = ([_]) => { };
>f3 : Symbol(f3, Decl(unusedDestructuringParameters.ts, 4, 5))
>_ : Symbol(_, Decl(unusedDestructuringParameters.ts, 4, 13))
f3([10]);
>f3 : Symbol(f3, Decl(unusedDestructuringParameters.ts, 4, 5))
|