1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
=== tests/cases/compiler/unusedDestructuring.ts ===
export {};
declare const o: any;
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
const { a, b } = o;
>a : Symbol(a, Decl(unusedDestructuring.ts, 2, 7))
>b : Symbol(b, Decl(unusedDestructuring.ts, 2, 10))
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
const { c, d } = o;
>c : Symbol(c, Decl(unusedDestructuring.ts, 3, 7))
>d : Symbol(d, Decl(unusedDestructuring.ts, 3, 10))
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
d;
>d : Symbol(d, Decl(unusedDestructuring.ts, 3, 10))
const { e } = o;
>e : Symbol(e, Decl(unusedDestructuring.ts, 5, 7))
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
const { f: g } = o;
>g : Symbol(g, Decl(unusedDestructuring.ts, 6, 7))
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
const { h } = o, { i } = o;
>h : Symbol(h, Decl(unusedDestructuring.ts, 7, 7))
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
>i : Symbol(i, Decl(unusedDestructuring.ts, 7, 18))
>o : Symbol(o, Decl(unusedDestructuring.ts, 1, 13))
function f({ a, b }, { c, d }, { e }) {
>f : Symbol(f, Decl(unusedDestructuring.ts, 7, 27))
>a : Symbol(a, Decl(unusedDestructuring.ts, 9, 12))
>b : Symbol(b, Decl(unusedDestructuring.ts, 9, 15))
>c : Symbol(c, Decl(unusedDestructuring.ts, 9, 22))
>d : Symbol(d, Decl(unusedDestructuring.ts, 9, 25))
>e : Symbol(e, Decl(unusedDestructuring.ts, 9, 32))
d;
>d : Symbol(d, Decl(unusedDestructuring.ts, 9, 25))
}
|