File: declarationEmitDestructuringParameterProperties.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 (41 lines) | stat: -rw-r--r-- 2,016 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
=== tests/cases/compiler/declarationEmitDestructuringParameterProperties.ts ===
class C1 {
>C1 : Symbol(C1, Decl(declarationEmitDestructuringParameterProperties.ts, 0, 0))

    constructor(public [x, y, z]: string[]) {
>x : Symbol(x, Decl(declarationEmitDestructuringParameterProperties.ts, 1, 24))
>y : Symbol(y, Decl(declarationEmitDestructuringParameterProperties.ts, 1, 26))
>z : Symbol(z, Decl(declarationEmitDestructuringParameterProperties.ts, 1, 29))
    }
}

type TupleType1 =[string, number, boolean];
>TupleType1 : Symbol(TupleType1, Decl(declarationEmitDestructuringParameterProperties.ts, 3, 1))

class C2 {
>C2 : Symbol(C2, Decl(declarationEmitDestructuringParameterProperties.ts, 5, 43))

    constructor(public [x, y, z]: TupleType1) {
>x : Symbol(x, Decl(declarationEmitDestructuringParameterProperties.ts, 7, 24))
>y : Symbol(y, Decl(declarationEmitDestructuringParameterProperties.ts, 7, 26))
>z : Symbol(z, Decl(declarationEmitDestructuringParameterProperties.ts, 7, 29))
>TupleType1 : Symbol(TupleType1, Decl(declarationEmitDestructuringParameterProperties.ts, 3, 1))
    }
}

type ObjType1 = { x: number; y: string; z: boolean }
>ObjType1 : Symbol(ObjType1, Decl(declarationEmitDestructuringParameterProperties.ts, 9, 1))
>x : Symbol(x, Decl(declarationEmitDestructuringParameterProperties.ts, 11, 17))
>y : Symbol(y, Decl(declarationEmitDestructuringParameterProperties.ts, 11, 28))
>z : Symbol(z, Decl(declarationEmitDestructuringParameterProperties.ts, 11, 39))

class C3 {
>C3 : Symbol(C3, Decl(declarationEmitDestructuringParameterProperties.ts, 11, 52))

    constructor(public { x, y, z }: ObjType1) {
>x : Symbol(x, Decl(declarationEmitDestructuringParameterProperties.ts, 13, 24))
>y : Symbol(y, Decl(declarationEmitDestructuringParameterProperties.ts, 13, 27))
>z : Symbol(z, Decl(declarationEmitDestructuringParameterProperties.ts, 13, 30))
>ObjType1 : Symbol(ObjType1, Decl(declarationEmitDestructuringParameterProperties.ts, 9, 1))
    }
}