@@ -20,6 +20,15 @@ class C {
20
20
this . inMethod = "string"
21
21
}
22
22
this . inMultiple = "string" ;
23
+
24
+ var action = ( ) => {
25
+ if ( Math . random ( ) ) {
26
+ this . inNestedArrowFunction = 0 ;
27
+ }
28
+ else {
29
+ this . inNestedArrowFunction = "string"
30
+ }
31
+ } ;
23
32
}
24
33
get ( ) {
25
34
if ( Math . random ( ) ) {
@@ -38,13 +47,30 @@ class C {
38
47
this . inSetter = "string"
39
48
}
40
49
}
50
+ prop = ( ) => {
51
+ if ( Math . random ( ) ) {
52
+ this . inPropertyDeclaration = 0 ;
53
+ }
54
+ else {
55
+ this . inPropertyDeclaration = "string"
56
+ }
57
+ }
41
58
static method ( ) {
42
59
if ( Math . random ( ) ) {
43
60
this . inStaticMethod = 0 ;
44
61
}
45
62
else {
46
63
this . inStaticMethod = "string"
47
64
}
65
+
66
+ var action = ( ) => {
67
+ if ( Math . random ( ) ) {
68
+ this . inStaticNestedArrowFunction = 0 ;
69
+ }
70
+ else {
71
+ this . inStaticNestedArrowFunction = "string"
72
+ }
73
+ } ;
48
74
}
49
75
static get ( ) {
50
76
if ( Math . random ( ) ) {
@@ -62,6 +88,14 @@ class C {
62
88
this . inStaticSetter = "string"
63
89
}
64
90
}
91
+ static prop = ( ) => {
92
+ if ( Math . random ( ) ) {
93
+ this . inStaticPropertyDeclaration = 0 ;
94
+ }
95
+ else {
96
+ this . inStaticPropertyDeclaration = "string"
97
+ }
98
+ }
65
99
}
66
100
67
101
//// [b.ts]
@@ -75,6 +109,8 @@ var stringOrNumberOrUndefined: string | number | undefined;
75
109
var stringOrNumberOrUndefined = c . inMethod ;
76
110
var stringOrNumberOrUndefined = c . inGetter ;
77
111
var stringOrNumberOrUndefined = c . inSetter ;
112
+ var stringOrNumberOrUndefined = c . inPropertyDeclaration ;
113
+ var stringOrNumberOrUndefined = c . inNestedArrowFunction
78
114
79
115
var stringOrNumberOrBoolean : string | number | boolean ;
80
116
@@ -84,11 +120,23 @@ var stringOrNumberOrBoolean = c.inMultiple;
84
120
var stringOrNumberOrUndefined = C . inStaticMethod ;
85
121
var stringOrNumberOrUndefined = C . inStaticGetter ;
86
122
var stringOrNumberOrUndefined = C . inStaticSetter ;
123
+ var stringOrNumberOrUndefined = C . inStaticPropertyDeclaration ;
124
+ var stringOrNumberOrUndefined = C . inStaticNestedArrowFunction ;
87
125
88
126
89
127
//// [output.js]
128
+ var _this = this ;
90
129
var C = ( function ( ) {
91
130
function C ( ) {
131
+ var _this = this ;
132
+ this . prop = function ( ) {
133
+ if ( Math . random ( ) ) {
134
+ _this . inPropertyDeclaration = 0 ;
135
+ }
136
+ else {
137
+ _this . inPropertyDeclaration = "string" ;
138
+ }
139
+ } ;
92
140
if ( Math . random ( ) ) {
93
141
this . inConstructor = 0 ;
94
142
}
@@ -98,13 +146,22 @@ var C = (function () {
98
146
this . inMultiple = 0 ;
99
147
}
100
148
C . prototype . method = function ( ) {
149
+ var _this = this ;
101
150
if ( Math . random ( ) ) {
102
151
this . inMethod = 0 ;
103
152
}
104
153
else {
105
154
this . inMethod = "string" ;
106
155
}
107
156
this . inMultiple = "string" ;
157
+ var action = function ( ) {
158
+ if ( Math . random ( ) ) {
159
+ _this . inNestedArrowFunction = 0 ;
160
+ }
161
+ else {
162
+ _this . inNestedArrowFunction = "string" ;
163
+ }
164
+ } ;
108
165
} ;
109
166
C . prototype . get = function ( ) {
110
167
if ( Math . random ( ) ) {
@@ -124,12 +181,21 @@ var C = (function () {
124
181
}
125
182
} ;
126
183
C . method = function ( ) {
184
+ var _this = this ;
127
185
if ( Math . random ( ) ) {
128
186
this . inStaticMethod = 0 ;
129
187
}
130
188
else {
131
189
this . inStaticMethod = "string" ;
132
190
}
191
+ var action = function ( ) {
192
+ if ( Math . random ( ) ) {
193
+ _this . inStaticNestedArrowFunction = 0 ;
194
+ }
195
+ else {
196
+ _this . inStaticNestedArrowFunction = "string" ;
197
+ }
198
+ } ;
133
199
} ;
134
200
C . get = function ( ) {
135
201
if ( Math . random ( ) ) {
@@ -149,15 +215,27 @@ var C = (function () {
149
215
} ;
150
216
return C ;
151
217
} ( ) ) ;
218
+ C . prop = function ( ) {
219
+ if ( Math . random ( ) ) {
220
+ _this . inStaticPropertyDeclaration = 0 ;
221
+ }
222
+ else {
223
+ _this . inStaticPropertyDeclaration = "string" ;
224
+ }
225
+ } ;
152
226
var c = new C ( ) ;
153
227
var stringOrNumber ;
154
228
var stringOrNumber = c . inConstructor ;
155
229
var stringOrNumberOrUndefined ;
156
230
var stringOrNumberOrUndefined = c . inMethod ;
157
231
var stringOrNumberOrUndefined = c . inGetter ;
158
232
var stringOrNumberOrUndefined = c . inSetter ;
233
+ var stringOrNumberOrUndefined = c . inPropertyDeclaration ;
234
+ var stringOrNumberOrUndefined = c . inNestedArrowFunction ;
159
235
var stringOrNumberOrBoolean ;
160
236
var stringOrNumberOrBoolean = c . inMultiple ;
161
237
var stringOrNumberOrUndefined = C . inStaticMethod ;
162
238
var stringOrNumberOrUndefined = C . inStaticGetter ;
163
239
var stringOrNumberOrUndefined = C . inStaticSetter ;
240
+ var stringOrNumberOrUndefined = C . inStaticPropertyDeclaration ;
241
+ var stringOrNumberOrUndefined = C . inStaticNestedArrowFunction ;
0 commit comments