File: unusedDestructuringParameters.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (23 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (5)
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))