File: declarationEmitDestructuring1.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 (33 lines) | stat: -rw-r--r-- 1,934 bytes parent folder | download | duplicates (7)
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
=== tests/cases/compiler/declarationEmitDestructuring1.ts ===
function foo([a, b, c]: [string, string, string]): void { }
>foo : Symbol(foo, Decl(declarationEmitDestructuring1.ts, 0, 0))
>a : Symbol(a, Decl(declarationEmitDestructuring1.ts, 0, 14))
>b : Symbol(b, Decl(declarationEmitDestructuring1.ts, 0, 16))
>c : Symbol(c, Decl(declarationEmitDestructuring1.ts, 0, 19))

function far([a, [b], [[c]]]: [number, boolean[], string[][]]): void { }
>far : Symbol(far, Decl(declarationEmitDestructuring1.ts, 0, 59))
>a : Symbol(a, Decl(declarationEmitDestructuring1.ts, 1, 14))
>b : Symbol(b, Decl(declarationEmitDestructuring1.ts, 1, 18))
>c : Symbol(c, Decl(declarationEmitDestructuring1.ts, 1, 24))

function bar({a1, b1, c1}: { a1: number, b1: boolean, c1: string }): void { }
>bar : Symbol(bar, Decl(declarationEmitDestructuring1.ts, 1, 72))
>a1 : Symbol(a1, Decl(declarationEmitDestructuring1.ts, 2, 14))
>b1 : Symbol(b1, Decl(declarationEmitDestructuring1.ts, 2, 17))
>c1 : Symbol(c1, Decl(declarationEmitDestructuring1.ts, 2, 21))
>a1 : Symbol(a1, Decl(declarationEmitDestructuring1.ts, 2, 28))
>b1 : Symbol(b1, Decl(declarationEmitDestructuring1.ts, 2, 40))
>c1 : Symbol(c1, Decl(declarationEmitDestructuring1.ts, 2, 53))

function baz({a2, b2: {b1, c1}}: { a2: number, b2: { b1: boolean, c1: string } }): void { } 
>baz : Symbol(baz, Decl(declarationEmitDestructuring1.ts, 2, 77))
>a2 : Symbol(a2, Decl(declarationEmitDestructuring1.ts, 3, 14))
>b2 : Symbol(b2, Decl(declarationEmitDestructuring1.ts, 3, 46))
>b1 : Symbol(b1, Decl(declarationEmitDestructuring1.ts, 3, 23))
>c1 : Symbol(c1, Decl(declarationEmitDestructuring1.ts, 3, 26))
>a2 : Symbol(a2, Decl(declarationEmitDestructuring1.ts, 3, 34))
>b2 : Symbol(b2, Decl(declarationEmitDestructuring1.ts, 3, 46))
>b1 : Symbol(b1, Decl(declarationEmitDestructuring1.ts, 3, 52))
>c1 : Symbol(c1, Decl(declarationEmitDestructuring1.ts, 3, 65))