File: convertClassExpressionToFunctionFromObjectProperty2.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (477 lines) | stat: -rw-r--r-- 21,927 bytes parent folder | download | duplicates (4)
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
=== tests/cases/compiler/convertClassExpressionToFunctionFromObjectProperty2.ts ===
({
>({    x: class {        constructor() { }    },    y: class {        constructor() { }    },    // keywords    break: class {        constructor() { }    },    case: class {        constructor() { }    },    catch: class {        constructor() { }    },    class: class {        constructor() { }    },    const: class {        constructor() { }    },    continue: class {        constructor() { }    },    debugger: class {        constructor() { }    },    default: class {        constructor() { }    },    delete: class {        constructor() { }    },    do: class {        constructor() { }    },    else: class {        constructor() { }    },    enum: class {        constructor() { }    },    export: class {        constructor() { }    },    extends: class {        constructor() { }    },    false: class {        constructor() { }    },    finally: class {        constructor() { }    },    for: class {        constructor() { }    },    function: class {        constructor() { }    },    if: class {        constructor() { }    },    import: class {        constructor() { }    },    in: class {        constructor() { }    },    instanceof: class {        constructor() { }    },    new: class {        constructor() { }    },    null: class {        constructor() { }    },    return: class {        constructor() { }    },    super: class {        constructor() { }    },    switch: class {        constructor() { }    },    this: class {        constructor() { }    },    throw: class {        constructor() { }    },    true: class {        constructor() { }    },    try: class {        constructor() { }    },    typeof: class {        constructor() { }    },    var: class {        constructor() { }    },    void: class {        constructor() { }    },    while: class {        constructor() { }    },    with: class {        constructor() { }    },    implements: class {        constructor() { }    },    interface: class {        constructor() { }    },    let: class {        constructor() { }    },    package: class {        constructor() { }    },    private: class {        constructor() { }    },    protected: class {        constructor() { }    },    public: class {        constructor() { }    },    static: class {        constructor() { }    },    yield: class {        constructor() { }    },    abstract: class {        constructor() { }    },    as: class {        constructor() { }    },    asserts: class {        constructor() { }    },    any: class {        constructor() { }    },    async: class {        constructor() { }    },    await: class {        constructor() { }    },    boolean: class {        constructor() { }    },    constructor: class {        constructor() { }    },    declare: class {        constructor() { }    },    get: class {        constructor() { }    },    infer: class {        constructor() { }    },    is: class {        constructor() { }    },    keyof: class {        constructor() { }    },    module: class {        constructor() { }    },    namespace: class {        constructor() { }    },    never: class {        constructor() { }    },    readonly: class {        constructor() { }    },    require: class {        constructor() { }    },    number: class {        constructor() { }    },    object: class {        constructor() { }    },    set: class {        constructor() { }    },    string: class {        constructor() { }    },    symbol: class {        constructor() { }    },    type: class {        constructor() { }    },    undefined: class {        constructor() { }    },    unique: class {        constructor() { }    },    unknown: class {        constructor() { }    },    from: class {        constructor() { }    },    global: class {        constructor() { }    },    bigint: class {        constructor() { }    },    of: class {        constructor() { }    }}) : { x: typeof x; y: typeof y; break: typeof break; case: typeof case; catch: typeof catch; class: typeof class; const: typeof const; continue: typeof continue; debugger: typeof debugger; default: typeof default; delete: typeof delete; do: typeof do; else: typeof else; enum: typeof enum; export: typeof export; extends: typeof extends; false: typeof false; finally: typeof finally; for: typeof for; function: typeof function; if: typeof if; import: typeof import; in: typeof in; instanceof: typeof instanceof; new: typeof new; null: typeof null; return: typeof return; super: typeof super; switch: typeof switch; this: typeof this; throw: typeof throw; true: typeof true; try: typeof try; typeof: typeof typeof; var: typeof var; void: typeof void; while: typeof while; with: typeof with; implements: typeof implements; interface: typeof interface; let: typeof let; package: typeof package; private: typeof private; protected: typeof protected; public: typeof public; static: typeof static; yield: typeof yield; abstract: typeof abstract; as: typeof as; asserts: typeof asserts; any: typeof any; async: typeof async; await: typeof await; boolean: typeof boolean; constructor: typeof constructor; declare: typeof declare; get: typeof get; infer: typeof infer; is: typeof is; keyof: typeof keyof; module: typeof module; namespace: typeof namespace; never: typeof never; readonly: typeof readonly; require: typeof require; number: typeof number; object: typeof object; set: typeof set; string: typeof string; symbol: typeof symbol; type: typeof type; undefined: typeof undefined; unique: typeof unique; unknown: typeof unknown; from: typeof from; global: typeof global; bigint: typeof bigint; of: typeof of; }
>{    x: class {        constructor() { }    },    y: class {        constructor() { }    },    // keywords    break: class {        constructor() { }    },    case: class {        constructor() { }    },    catch: class {        constructor() { }    },    class: class {        constructor() { }    },    const: class {        constructor() { }    },    continue: class {        constructor() { }    },    debugger: class {        constructor() { }    },    default: class {        constructor() { }    },    delete: class {        constructor() { }    },    do: class {        constructor() { }    },    else: class {        constructor() { }    },    enum: class {        constructor() { }    },    export: class {        constructor() { }    },    extends: class {        constructor() { }    },    false: class {        constructor() { }    },    finally: class {        constructor() { }    },    for: class {        constructor() { }    },    function: class {        constructor() { }    },    if: class {        constructor() { }    },    import: class {        constructor() { }    },    in: class {        constructor() { }    },    instanceof: class {        constructor() { }    },    new: class {        constructor() { }    },    null: class {        constructor() { }    },    return: class {        constructor() { }    },    super: class {        constructor() { }    },    switch: class {        constructor() { }    },    this: class {        constructor() { }    },    throw: class {        constructor() { }    },    true: class {        constructor() { }    },    try: class {        constructor() { }    },    typeof: class {        constructor() { }    },    var: class {        constructor() { }    },    void: class {        constructor() { }    },    while: class {        constructor() { }    },    with: class {        constructor() { }    },    implements: class {        constructor() { }    },    interface: class {        constructor() { }    },    let: class {        constructor() { }    },    package: class {        constructor() { }    },    private: class {        constructor() { }    },    protected: class {        constructor() { }    },    public: class {        constructor() { }    },    static: class {        constructor() { }    },    yield: class {        constructor() { }    },    abstract: class {        constructor() { }    },    as: class {        constructor() { }    },    asserts: class {        constructor() { }    },    any: class {        constructor() { }    },    async: class {        constructor() { }    },    await: class {        constructor() { }    },    boolean: class {        constructor() { }    },    constructor: class {        constructor() { }    },    declare: class {        constructor() { }    },    get: class {        constructor() { }    },    infer: class {        constructor() { }    },    is: class {        constructor() { }    },    keyof: class {        constructor() { }    },    module: class {        constructor() { }    },    namespace: class {        constructor() { }    },    never: class {        constructor() { }    },    readonly: class {        constructor() { }    },    require: class {        constructor() { }    },    number: class {        constructor() { }    },    object: class {        constructor() { }    },    set: class {        constructor() { }    },    string: class {        constructor() { }    },    symbol: class {        constructor() { }    },    type: class {        constructor() { }    },    undefined: class {        constructor() { }    },    unique: class {        constructor() { }    },    unknown: class {        constructor() { }    },    from: class {        constructor() { }    },    global: class {        constructor() { }    },    bigint: class {        constructor() { }    },    of: class {        constructor() { }    }} : { x: typeof x; y: typeof y; break: typeof break; case: typeof case; catch: typeof catch; class: typeof class; const: typeof const; continue: typeof continue; debugger: typeof debugger; default: typeof default; delete: typeof delete; do: typeof do; else: typeof else; enum: typeof enum; export: typeof export; extends: typeof extends; false: typeof false; finally: typeof finally; for: typeof for; function: typeof function; if: typeof if; import: typeof import; in: typeof in; instanceof: typeof instanceof; new: typeof new; null: typeof null; return: typeof return; super: typeof super; switch: typeof switch; this: typeof this; throw: typeof throw; true: typeof true; try: typeof try; typeof: typeof typeof; var: typeof var; void: typeof void; while: typeof while; with: typeof with; implements: typeof implements; interface: typeof interface; let: typeof let; package: typeof package; private: typeof private; protected: typeof protected; public: typeof public; static: typeof static; yield: typeof yield; abstract: typeof abstract; as: typeof as; asserts: typeof asserts; any: typeof any; async: typeof async; await: typeof await; boolean: typeof boolean; constructor: typeof constructor; declare: typeof declare; get: typeof get; infer: typeof infer; is: typeof is; keyof: typeof keyof; module: typeof module; namespace: typeof namespace; never: typeof never; readonly: typeof readonly; require: typeof require; number: typeof number; object: typeof object; set: typeof set; string: typeof string; symbol: typeof symbol; type: typeof type; undefined: typeof undefined; unique: typeof unique; unknown: typeof unknown; from: typeof from; global: typeof global; bigint: typeof bigint; of: typeof of; }

    x: class {
>x : typeof x
>class {        constructor() { }    } : typeof x

        constructor() { }
    },
    y: class {
>y : typeof y
>class {        constructor() { }    } : typeof y

        constructor() { }
    },

    // keywords
    break: class {
>break : typeof break
>class {        constructor() { }    } : typeof break

        constructor() { }
    },
    case: class {
>case : typeof case
>class {        constructor() { }    } : typeof case

        constructor() { }
    },
    catch: class {
>catch : typeof catch
>class {        constructor() { }    } : typeof catch

        constructor() { }
    },
    class: class {
>class : typeof class
>class {        constructor() { }    } : typeof class

        constructor() { }
    },
    const: class {
>const : typeof const
>class {        constructor() { }    } : typeof const

        constructor() { }
    },
    continue: class {
>continue : typeof continue
>class {        constructor() { }    } : typeof continue

        constructor() { }
    },
    debugger: class {
>debugger : typeof debugger
>class {        constructor() { }    } : typeof debugger

        constructor() { }
    },
    default: class {
>default : typeof default
>class {        constructor() { }    } : typeof default

        constructor() { }
    },
    delete: class {
>delete : typeof delete
>class {        constructor() { }    } : typeof delete

        constructor() { }
    },
    do: class {
>do : typeof do
>class {        constructor() { }    } : typeof do

        constructor() { }
    },
    else: class {
>else : typeof else
>class {        constructor() { }    } : typeof else

        constructor() { }
    },
    enum: class {
>enum : typeof enum
>class {        constructor() { }    } : typeof enum

        constructor() { }
    },
    export: class {
>export : typeof export
>class {        constructor() { }    } : typeof export

        constructor() { }
    },
    extends: class {
>extends : typeof extends
>class {        constructor() { }    } : typeof extends

        constructor() { }
    },
    false: class {
>false : typeof false
>class {        constructor() { }    } : typeof false

        constructor() { }
    },
    finally: class {
>finally : typeof finally
>class {        constructor() { }    } : typeof finally

        constructor() { }
    },
    for: class {
>for : typeof for
>class {        constructor() { }    } : typeof for

        constructor() { }
    },
    function: class {
>function : typeof function
>class {        constructor() { }    } : typeof function

        constructor() { }
    },
    if: class {
>if : typeof if
>class {        constructor() { }    } : typeof if

        constructor() { }
    },
    import: class {
>import : typeof import
>class {        constructor() { }    } : typeof import

        constructor() { }
    },
    in: class {
>in : typeof in
>class {        constructor() { }    } : typeof in

        constructor() { }
    },
    instanceof: class {
>instanceof : typeof instanceof
>class {        constructor() { }    } : typeof instanceof

        constructor() { }
    },
    new: class {
>new : typeof new
>class {        constructor() { }    } : typeof new

        constructor() { }
    },
    null: class {
>null : typeof null
>class {        constructor() { }    } : typeof null

        constructor() { }
    },
    return: class {
>return : typeof return
>class {        constructor() { }    } : typeof return

        constructor() { }
    },
    super: class {
>super : typeof super
>class {        constructor() { }    } : typeof super

        constructor() { }
    },
    switch: class {
>switch : typeof switch
>class {        constructor() { }    } : typeof switch

        constructor() { }
    },
    this: class {
>this : typeof this
>class {        constructor() { }    } : typeof this

        constructor() { }
    },
    throw: class {
>throw : typeof throw
>class {        constructor() { }    } : typeof throw

        constructor() { }
    },
    true: class {
>true : typeof true
>class {        constructor() { }    } : typeof true

        constructor() { }
    },
    try: class {
>try : typeof try
>class {        constructor() { }    } : typeof try

        constructor() { }
    },
    typeof: class {
>typeof : typeof typeof
>class {        constructor() { }    } : typeof typeof

        constructor() { }
    },
    var: class {
>var : typeof var
>class {        constructor() { }    } : typeof var

        constructor() { }
    },
    void: class {
>void : typeof void
>class {        constructor() { }    } : typeof void

        constructor() { }
    },
    while: class {
>while : typeof while
>class {        constructor() { }    } : typeof while

        constructor() { }
    },
    with: class {
>with : typeof with
>class {        constructor() { }    } : typeof with

        constructor() { }
    },
    implements: class {
>implements : typeof implements
>class {        constructor() { }    } : typeof implements

        constructor() { }
    },
    interface: class {
>interface : typeof interface
>class {        constructor() { }    } : typeof interface

        constructor() { }
    },
    let: class {
>let : typeof let
>class {        constructor() { }    } : typeof let

        constructor() { }
    },
    package: class {
>package : typeof package
>class {        constructor() { }    } : typeof package

        constructor() { }
    },
    private: class {
>private : typeof private
>class {        constructor() { }    } : typeof private

        constructor() { }
    },
    protected: class {
>protected : typeof protected
>class {        constructor() { }    } : typeof protected

        constructor() { }
    },
    public: class {
>public : typeof public
>class {        constructor() { }    } : typeof public

        constructor() { }
    },
    static: class {
>static : typeof static
>class {        constructor() { }    } : typeof static

        constructor() { }
    },
    yield: class {
>yield : typeof yield
>class {        constructor() { }    } : typeof yield

        constructor() { }
    },
    abstract: class {
>abstract : typeof abstract
>class {        constructor() { }    } : typeof abstract

        constructor() { }
    },
    as: class {
>as : typeof as
>class {        constructor() { }    } : typeof as

        constructor() { }
    },
    asserts: class {
>asserts : typeof asserts
>class {        constructor() { }    } : typeof asserts

        constructor() { }
    },
    any: class {
>any : typeof any
>class {        constructor() { }    } : typeof any

        constructor() { }
    },
    async: class {
>async : typeof async
>class {        constructor() { }    } : typeof async

        constructor() { }
    },
    await: class {
>await : typeof await
>class {        constructor() { }    } : typeof await

        constructor() { }
    },
    boolean: class {
>boolean : typeof boolean
>class {        constructor() { }    } : typeof boolean

        constructor() { }
    },
    constructor: class {
>constructor : typeof constructor
>class {        constructor() { }    } : typeof constructor

        constructor() { }
    },
    declare: class {
>declare : typeof declare
>class {        constructor() { }    } : typeof declare

        constructor() { }
    },
    get: class {
>get : typeof get
>class {        constructor() { }    } : typeof get

        constructor() { }
    },
    infer: class {
>infer : typeof infer
>class {        constructor() { }    } : typeof infer

        constructor() { }
    },
    is: class {
>is : typeof is
>class {        constructor() { }    } : typeof is

        constructor() { }
    },
    keyof: class {
>keyof : typeof keyof
>class {        constructor() { }    } : typeof keyof

        constructor() { }
    },
    module: class {
>module : typeof module
>class {        constructor() { }    } : typeof module

        constructor() { }
    },
    namespace: class {
>namespace : typeof namespace
>class {        constructor() { }    } : typeof namespace

        constructor() { }
    },
    never: class {
>never : typeof never
>class {        constructor() { }    } : typeof never

        constructor() { }
    },
    readonly: class {
>readonly : typeof readonly
>class {        constructor() { }    } : typeof readonly

        constructor() { }
    },
    require: class {
>require : typeof require
>class {        constructor() { }    } : typeof require

        constructor() { }
    },
    number: class {
>number : typeof number
>class {        constructor() { }    } : typeof number

        constructor() { }
    },
    object: class {
>object : typeof object
>class {        constructor() { }    } : typeof object

        constructor() { }
    },
    set: class {
>set : typeof set
>class {        constructor() { }    } : typeof set

        constructor() { }
    },
    string: class {
>string : typeof string
>class {        constructor() { }    } : typeof string

        constructor() { }
    },
    symbol: class {
>symbol : typeof symbol
>class {        constructor() { }    } : typeof symbol

        constructor() { }
    },
    type: class {
>type : typeof type
>class {        constructor() { }    } : typeof type

        constructor() { }
    },
    undefined: class {
>undefined : typeof undefined
>class {        constructor() { }    } : typeof undefined

        constructor() { }
    },
    unique: class {
>unique : typeof unique
>class {        constructor() { }    } : typeof unique

        constructor() { }
    },
    unknown: class {
>unknown : typeof unknown
>class {        constructor() { }    } : typeof unknown

        constructor() { }
    },
    from: class {
>from : typeof from
>class {        constructor() { }    } : typeof from

        constructor() { }
    },
    global: class {
>global : typeof global
>class {        constructor() { }    } : typeof global

        constructor() { }
    },
    bigint: class {
>bigint : typeof bigint
>class {        constructor() { }    } : typeof bigint

        constructor() { }
    },
    of: class {
>of : typeof of
>class {        constructor() { }    } : typeof of

        constructor() { }
    }
})