File: readonlyInDeclarationFile.types

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 (151 lines) | stat: -rw-r--r-- 2,622 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
=== tests/cases/compiler/readonlyInDeclarationFile.ts ===
interface Foo {
    readonly x: number;
>x : number

    readonly [x: string]: Object;
>x : string
}

class C {
>C : C

    readonly [x: string]: Object;
>x : string

    private readonly a1: number;
>a1 : number

    protected readonly a2: number;
>a2 : number

    public readonly a3: number;
>a3 : number

    private get b1() { return 1 }
>b1 : number
>1 : 1

    protected get b2() { return 1 }
>b2 : number
>1 : 1

    public get b3() { return 1 }
>b3 : number
>1 : 1

    private get c1() { return 1 }
>c1 : number
>1 : 1

    private set c1(value) { }
>c1 : number
>value : number

    protected get c2() { return 1 }
>c2 : number
>1 : 1

    protected set c2(value) { }
>c2 : number
>value : number

    public get c3() { return 1 }
>c3 : number
>1 : 1

    public set c3(value) { }
>c3 : number
>value : number

    private static readonly s1: number;
>s1 : number

    protected static readonly s2: number;
>s2 : number

    public static readonly s3: number;
>s3 : number

    private static get t1() { return 1 }
>t1 : number
>1 : 1

    protected static get t2() { return 1 }
>t2 : number
>1 : 1

    public static get t3() { return 1 }
>t3 : number
>1 : 1

    private static get u1() { return 1 }
>u1 : number
>1 : 1

    private static set u1(value) { }
>u1 : number
>value : number

    protected static get u2() { return 1 }
>u2 : number
>1 : 1

    protected static set u2(value) { }
>u2 : number
>value : number

    public static get u3() { return 1 }
>u3 : number
>1 : 1

    public static set u3(value) { }
>u3 : number
>value : number
}

var z: {
>z : { readonly [x: string]: Object; readonly a: string; }

    readonly a: string;
>a : string

    readonly [x: string]: Object;
>x : string
}

function f() {
>f : () => { readonly x: number; y: number; }

    return {
>{        get x() { return 1; },        get y() { return 1; },        set y(value) { }    } : { readonly x: number; y: number; }

        get x() { return 1; },
>x : number
>1 : 1

        get y() { return 1; },
>y : number
>1 : 1

        set y(value) { }
>y : number
>value : number
    }
}

function g() {
>g : () => { readonly [x: string]: Object; readonly a: string; }

    var x: {
>x : { readonly [x: string]: Object; readonly a: string; }

        readonly a: string;
>a : string

        readonly [x: string]: Object;
>x : string
    }
    return x;
>x : { readonly [x: string]: Object; readonly a: string; }
}