@@ -386,86 +386,122 @@ getExprType
386386| tst.ts:293:7:293:21 | payload.toFixed | (fractionDigits?: number) => string |
387387| tst.ts:293:7:293:23 | payload.toFixed() | string |
388388| tst.ts:293:15:293:21 | toFixed | (fractionDigits?: number) => string |
389- | tst.ts:298:10:298:15 | foo_47 | () => void |
390- | tst.ts:299:9:299:11 | key | typeof key |
391- | tst.ts:299:15:299:20 | Symbol | SymbolConstructor |
392- | tst.ts:299:15:299:22 | Symbol() | typeof key |
393- | tst.ts:301:9:301:22 | numberOrString | "hello" \| 42 |
394- | tst.ts:301:26:301:29 | Math | Math |
395- | tst.ts:301:26:301:36 | Math.random | () => number |
396- | tst.ts:301:26:301:38 | Math.random() | number |
397- | tst.ts:301:26:301:44 | Math.random() < 0.5 | boolean |
398- | tst.ts:301:26:301:59 | Math.ra ... "hello" | "hello" \| 42 |
399- | tst.ts:301:31:301:36 | random | () => number |
400- | tst.ts:301:42:301:44 | 0.5 | 0.5 |
401- | tst.ts:301:48:301:49 | 42 | 42 |
402- | tst.ts:301:53:301:59 | "hello" | "hello" |
403- | tst.ts:303:7:303:9 | obj | { [key]: string \| number; } |
404- | tst.ts:303:13:305:3 | {\\n [ ... ng,\\n } | { [key]: string \| number; } |
405- | tst.ts:304:6:304:8 | key | typeof key |
406- | tst.ts:304:12:304:25 | numberOrString | "hello" \| 42 |
407- | tst.ts:307:7:307:21 | typeof obj[key] | "string" \| "number" \| "bigint" \| "boolean" \| "s... |
408- | tst.ts:307:7:307:34 | typeof ... string" | boolean |
409- | tst.ts:307:14:307:16 | obj | { [key]: string \| number; } |
410- | tst.ts:307:14:307:21 | obj[key] | string \| number |
411- | tst.ts:307:18:307:20 | key | typeof key |
412- | tst.ts:307:27:307:34 | "string" | "string" |
413- | tst.ts:308:9:308:11 | str | string |
414- | tst.ts:308:15:308:17 | obj | { [key]: string \| number; } |
415- | tst.ts:308:15:308:22 | obj[key] | string |
416- | tst.ts:308:19:308:21 | key | typeof key |
417- | tst.ts:309:5:309:7 | str | string |
418- | tst.ts:309:5:309:19 | str.toUpperCase | () => string |
419- | tst.ts:309:5:309:21 | str.toUpperCase() | string |
420- | tst.ts:309:9:309:19 | toUpperCase | () => string |
421- | tst.ts:314:12:314:12 | f | <T>(arg: { produce: (n: string) => T; consume: ... |
422- | tst.ts:314:17:314:19 | arg | { produce: (n: string) => T; consume: (x: T) =>... |
423- | tst.ts:315:5:315:11 | produce | (n: string) => T |
424- | tst.ts:315:14:315:29 | (n: string) => T | (n: string) => T |
425- | tst.ts:315:15:315:15 | n | string |
426- | tst.ts:316:5:316:11 | consume | (x: T) => void |
427- | tst.ts:316:14:316:27 | (x: T) => void | (x: T) => void |
428- | tst.ts:316:15:316:15 | x | T |
429- | tst.ts:319:3:319:3 | f | <T>(arg: { produce: (n: string) => T; consume: ... |
430- | tst.ts:319:3:322:4 | f({\\n ... ()\\n }) | void |
431- | tst.ts:319:5:322:3 | {\\n p ... e()\\n } | { produce: (n: string) => string; consume: (x: ... |
432- | tst.ts:320:5:320:11 | produce | (n: string) => string |
433- | tst.ts:320:14:320:14 | n | string |
434- | tst.ts:320:14:320:19 | n => n | (n: string) => string |
435- | tst.ts:320:19:320:19 | n | string |
436- | tst.ts:321:5:321:11 | consume | (x: string) => string |
437- | tst.ts:321:14:321:14 | x | string |
438- | tst.ts:321:14:321:33 | x => x.toLowerCase() | (x: string) => string |
439- | tst.ts:321:19:321:19 | x | string |
440- | tst.ts:321:19:321:31 | x.toLowerCase | () => string |
441- | tst.ts:321:19:321:33 | x.toLowerCase() | string |
442- | tst.ts:321:21:321:31 | toLowerCase | () => string |
443- | tst.ts:326:9:326:16 | ErrorMap | { new (entries?: readonly (readonly [string, Er... |
444- | tst.ts:326:20:326:22 | Map | MapConstructor |
445- | tst.ts:326:20:326:37 | Map<string, Error> | any |
446- | tst.ts:328:9:328:16 | errorMap | Map<string, Error> |
447- | tst.ts:328:20:328:33 | new ErrorMap() | Map<string, Error> |
448- | tst.ts:328:24:328:31 | ErrorMap | { new (entries?: readonly (readonly [string, Er... |
449- | tst.ts:339:9:339:9 | a | "a" \| "b" |
450- | tst.ts:339:16:339:18 | 'a' | "a" |
451- | tst.ts:344:5:344:7 | get | () => T |
452- | tst.ts:344:10:344:16 | () => T | () => T |
453- | tst.ts:345:5:345:7 | set | (value: T) => void |
454- | tst.ts:345:10:345:27 | (value: T) => void | (value: T) => void |
455- | tst.ts:345:11:345:15 | value | T |
456- | tst.ts:348:9:348:13 | state | State<number> |
457- | tst.ts:348:32:351:3 | {\\n g ... { }\\n } | State<number> |
458- | tst.ts:349:5:349:7 | get | () => number |
459- | tst.ts:349:10:349:17 | () => 42 | () => number |
460- | tst.ts:349:16:349:17 | 42 | 42 |
461- | tst.ts:350:5:350:7 | set | (value: number) => void |
462- | tst.ts:350:10:350:23 | (value) => { } | (value: number) => void |
463- | tst.ts:350:11:350:15 | value | number |
464- | tst.ts:353:9:353:16 | fortyTwo | number |
465- | tst.ts:353:20:353:24 | state | State<number> |
466- | tst.ts:353:20:353:28 | state.get | () => number |
467- | tst.ts:353:20:353:30 | state.get() | number |
468- | tst.ts:353:26:353:28 | get | () => number |
389+ | tst.ts:298:7:298:9 | key | typeof key |
390+ | tst.ts:298:13:298:18 | Symbol | SymbolConstructor |
391+ | tst.ts:298:13:298:20 | Symbol() | typeof key |
392+ | tst.ts:300:7:300:20 | numberOrString | "hello" \| 42 |
393+ | tst.ts:300:24:300:27 | Math | Math |
394+ | tst.ts:300:24:300:34 | Math.random | () => number |
395+ | tst.ts:300:24:300:36 | Math.random() | number |
396+ | tst.ts:300:24:300:42 | Math.random() < 0.5 | boolean |
397+ | tst.ts:300:24:300:57 | Math.ra ... "hello" | "hello" \| 42 |
398+ | tst.ts:300:29:300:34 | random | () => number |
399+ | tst.ts:300:40:300:42 | 0.5 | 0.5 |
400+ | tst.ts:300:46:300:47 | 42 | 42 |
401+ | tst.ts:300:51:300:57 | "hello" | "hello" |
402+ | tst.ts:302:5:302:7 | obj | { [key]: string \| number; } |
403+ | tst.ts:302:11:304:1 | {\\n [ke ... ring,\\n} | { [key]: string \| number; } |
404+ | tst.ts:303:4:303:6 | key | typeof key |
405+ | tst.ts:303:10:303:23 | numberOrString | "hello" \| 42 |
406+ | tst.ts:306:5:306:19 | typeof obj[key] | "string" \| "number" \| "bigint" \| "boolean" \| "s... |
407+ | tst.ts:306:5:306:32 | typeof ... string" | boolean |
408+ | tst.ts:306:12:306:14 | obj | { [key]: string \| number; } |
409+ | tst.ts:306:12:306:19 | obj[key] | string \| number |
410+ | tst.ts:306:16:306:18 | key | typeof key |
411+ | tst.ts:306:25:306:32 | "string" | "string" |
412+ | tst.ts:307:7:307:9 | str | string |
413+ | tst.ts:307:13:307:15 | obj | { [key]: string \| number; } |
414+ | tst.ts:307:13:307:20 | obj[key] | string |
415+ | tst.ts:307:17:307:19 | key | typeof key |
416+ | tst.ts:308:3:308:5 | str | string |
417+ | tst.ts:308:3:308:17 | str.toUpperCase | () => string |
418+ | tst.ts:308:3:308:19 | str.toUpperCase() | string |
419+ | tst.ts:308:7:308:17 | toUpperCase | () => string |
420+ | tst.ts:313:10:313:10 | f | <T>(arg: { produce: (n: string) => T; consume: ... |
421+ | tst.ts:313:15:313:17 | arg | { produce: (n: string) => T; consume: (x: T) =>... |
422+ | tst.ts:314:3:314:9 | produce | (n: string) => T |
423+ | tst.ts:314:12:314:27 | (n: string) => T | (n: string) => T |
424+ | tst.ts:314:13:314:13 | n | string |
425+ | tst.ts:315:3:315:9 | consume | (x: T) => void |
426+ | tst.ts:315:12:315:25 | (x: T) => void | (x: T) => void |
427+ | tst.ts:315:13:315:13 | x | T |
428+ | tst.ts:318:1:318:1 | f | <T>(arg: { produce: (n: string) => T; consume: ... |
429+ | tst.ts:318:1:321:2 | f({\\n p ... se()\\n}) | void |
430+ | tst.ts:318:3:321:1 | {\\n pro ... ase()\\n} | { produce: (n: string) => string; consume: (x: ... |
431+ | tst.ts:319:3:319:9 | produce | (n: string) => string |
432+ | tst.ts:319:12:319:12 | n | string |
433+ | tst.ts:319:12:319:17 | n => n | (n: string) => string |
434+ | tst.ts:319:17:319:17 | n | string |
435+ | tst.ts:320:3:320:9 | consume | (x: string) => string |
436+ | tst.ts:320:12:320:12 | x | string |
437+ | tst.ts:320:12:320:31 | x => x.toLowerCase() | (x: string) => string |
438+ | tst.ts:320:17:320:17 | x | string |
439+ | tst.ts:320:17:320:29 | x.toLowerCase | () => string |
440+ | tst.ts:320:17:320:31 | x.toLowerCase() | string |
441+ | tst.ts:320:19:320:29 | toLowerCase | () => string |
442+ | tst.ts:325:7:325:14 | ErrorMap | { new (entries?: readonly (readonly [string, Er... |
443+ | tst.ts:325:18:325:20 | Map | MapConstructor |
444+ | tst.ts:325:18:325:35 | Map<string, Error> | any |
445+ | tst.ts:327:7:327:14 | errorMap | Map<string, Error> |
446+ | tst.ts:327:18:327:31 | new ErrorMap() | Map<string, Error> |
447+ | tst.ts:327:22:327:29 | ErrorMap | { new (entries?: readonly (readonly [string, Er... |
448+ | tst.ts:338:7:338:7 | a | "a" \| "b" |
449+ | tst.ts:338:14:338:16 | 'a' | "a" |
450+ | tst.ts:343:3:343:5 | get | () => T |
451+ | tst.ts:343:8:343:14 | () => T | () => T |
452+ | tst.ts:344:3:344:5 | set | (value: T) => void |
453+ | tst.ts:344:8:344:25 | (value: T) => void | (value: T) => void |
454+ | tst.ts:344:9:344:13 | value | T |
455+ | tst.ts:347:7:347:11 | state | State<number> |
456+ | tst.ts:347:30:350:1 | {\\n get ... > { }\\n} | State<number> |
457+ | tst.ts:348:3:348:5 | get | () => number |
458+ | tst.ts:348:8:348:15 | () => 42 | () => number |
459+ | tst.ts:348:14:348:15 | 42 | 42 |
460+ | tst.ts:349:3:349:5 | set | (value: number) => void |
461+ | tst.ts:349:8:349:21 | (value) => { } | (value: number) => void |
462+ | tst.ts:349:9:349:13 | value | number |
463+ | tst.ts:352:7:352:14 | fortyTwo | number |
464+ | tst.ts:352:18:352:22 | state | State<number> |
465+ | tst.ts:352:18:352:26 | state.get | () => number |
466+ | tst.ts:352:18:352:28 | state.get() | number |
467+ | tst.ts:352:24:352:26 | get | () => number |
468+ | tst.ts:377:8:377:18 | tstModuleES | () => "a" \| "b" |
469+ | tst.ts:377:25:377:43 | './tstModuleES.mjs' | any |
470+ | tst.ts:379:1:379:7 | console | Console |
471+ | tst.ts:379:1:379:11 | console.log | (...data: any[]) => void |
472+ | tst.ts:379:1:379:26 | console ... leES()) | void |
473+ | tst.ts:379:9:379:11 | log | (...data: any[]) => void |
474+ | tst.ts:379:13:379:23 | tstModuleES | () => "a" \| "b" |
475+ | tst.ts:379:13:379:25 | tstModuleES() | "a" \| "b" |
476+ | tst.ts:381:10:381:21 | tstModuleCJS | () => "a" \| "b" |
477+ | tst.ts:381:10:381:21 | tstModuleCJS | () => "a" \| "b" |
478+ | tst.ts:381:30:381:49 | './tstModuleCJS.cjs' | any |
479+ | tst.ts:383:1:383:7 | console | Console |
480+ | tst.ts:383:1:383:11 | console.log | (...data: any[]) => void |
481+ | tst.ts:383:1:383:27 | console ... eCJS()) | void |
482+ | tst.ts:383:9:383:11 | log | (...data: any[]) => void |
483+ | tst.ts:383:13:383:24 | tstModuleCJS | () => "a" \| "b" |
484+ | tst.ts:383:13:383:26 | tstModuleCJS() | "a" \| "b" |
485+ | tstModuleCJS.cts:1:17:1:28 | tstModuleCJS | () => "a" \| "b" |
486+ | tstModuleCJS.cts:2:12:2:15 | Math | Math |
487+ | tstModuleCJS.cts:2:12:2:22 | Math.random | () => number |
488+ | tstModuleCJS.cts:2:12:2:24 | Math.random() | number |
489+ | tstModuleCJS.cts:2:12:2:30 | Math.random() > 0.5 | boolean |
490+ | tstModuleCJS.cts:2:12:2:42 | Math.ra ... ' : 'b' | "a" \| "b" |
491+ | tstModuleCJS.cts:2:17:2:22 | random | () => number |
492+ | tstModuleCJS.cts:2:28:2:30 | 0.5 | 0.5 |
493+ | tstModuleCJS.cts:2:34:2:36 | 'a' | "a" |
494+ | tstModuleCJS.cts:2:40:2:42 | 'b' | "b" |
495+ | tstModuleES.mts:1:25:1:35 | tstModuleES | () => "a" \| "b" |
496+ | tstModuleES.mts:2:12:2:15 | Math | Math |
497+ | tstModuleES.mts:2:12:2:22 | Math.random | () => number |
498+ | tstModuleES.mts:2:12:2:24 | Math.random() | number |
499+ | tstModuleES.mts:2:12:2:30 | Math.random() > 0.5 | boolean |
500+ | tstModuleES.mts:2:12:2:42 | Math.ra ... ' : 'b' | "a" \| "b" |
501+ | tstModuleES.mts:2:17:2:22 | random | () => number |
502+ | tstModuleES.mts:2:28:2:30 | 0.5 | 0.5 |
503+ | tstModuleES.mts:2:34:2:36 | 'a' | "a" |
504+ | tstModuleES.mts:2:40:2:42 | 'b' | "b" |
469505| type_alias.ts:3:5:3:5 | b | boolean |
470506| type_alias.ts:7:5:7:5 | c | ValueOrArray<number> |
471507| type_alias.ts:14:9:14:32 | [proper ... ]: Json | any |
@@ -541,9 +577,9 @@ getTypeDefinitionType
541577| tst.ts:265:3:269:3 | interfa ... an;\\n } | TypeMap |
542578| tst.ts:271:3:276:7 | type Un ... }[P]; | UnionRecord<P> |
543579| tst.ts:289:3:289:63 | type Fu ... > void; | Func |
544- | tst.ts:332:3:335:16 | type Fi ... never; | FirstString<T> |
545- | tst.ts:337:3:337:53 | type F ... lean]>; | "a" \| "b" |
546- | tst.ts:343:3:346:3 | interfa ... id ;\\n } | State<T> |
580+ | tst.ts:331:1:334:14 | type Fi ... never; | FirstString<T> |
581+ | tst.ts:336:1:336:51 | type F ... lean]>; | "a" \| "b" |
582+ | tst.ts:342:1:345:1 | interfa ... void ;\\n} | State<T> |
547583| type_alias.ts:1:1:1:17 | type B = boolean; | boolean |
548584| type_alias.ts:5:1:5:50 | type Va ... ay<T>>; | ValueOrArray<T> |
549585| type_alias.ts:9:1:15:13 | type Js ... Json[]; | Json |
@@ -786,39 +822,45 @@ getTypeExprType
786822| tst.ts:289:47:289:52 | string | string |
787823| tst.ts:289:59:289:62 | void | void |
788824| tst.ts:291:13:291:16 | Func | Func |
789- | tst.ts:314:14:314:14 | T | T |
790- | tst.ts:314:22:316:29 | {\\n p ... void } | { produce: (n: string) => T; consume: (x: T) =>... |
791- | tst.ts:315:14:315:29 | (n: string) => T | (n: string) => T |
792- | tst.ts:315:18:315:23 | string | string |
793- | tst.ts:315:29:315:29 | T | T |
794- | tst.ts:316:14:316:27 | (x: T) => void | (x: T) => void |
795- | tst.ts:316:18:316:18 | T | T |
796- | tst.ts:316:24:316:27 | void | void |
797- | tst.ts:317:6:317:9 | void | void |
798- | tst.ts:326:24:326:29 | string | string |
799- | tst.ts:326:32:326:36 | Error | Error |
800- | tst.ts:332:8:332:18 | FirstString | FirstString<T> |
801- | tst.ts:332:20:332:20 | T | T |
802- | tst.ts:337:8:337:8 | F | "a" \| "b" |
803- | tst.ts:337:12:337:22 | FirstString | FirstString<T> |
804- | tst.ts:337:12:337:52 | FirstSt ... olean]> | "a" \| "b" |
805- | tst.ts:337:24:337:51 | ['a' \| ... oolean] | ["a" \| "b", number, boolean] |
806- | tst.ts:337:25:337:27 | 'a' | "a" |
807- | tst.ts:337:25:337:33 | 'a' \| 'b' | "a" \| "b" |
808- | tst.ts:337:31:337:33 | 'b' | "b" |
809- | tst.ts:337:36:337:41 | number | number |
810- | tst.ts:337:44:337:50 | boolean | boolean |
811- | tst.ts:339:12:339:12 | F | "a" \| "b" |
812- | tst.ts:343:13:343:17 | State | State<T> |
813- | tst.ts:343:26:343:26 | T | T |
814- | tst.ts:344:10:344:16 | () => T | () => T |
825+ | tst.ts:313:12:313:12 | T | T |
826+ | tst.ts:313:20:315:27 | {\\n pro ... void } | { produce: (n: string) => T; consume: (x: T) =>... |
827+ | tst.ts:314:12:314:27 | (n: string) => T | (n: string) => T |
828+ | tst.ts:314:16:314:21 | string | string |
829+ | tst.ts:314:27:314:27 | T | T |
830+ | tst.ts:315:12:315:25 | (x: T) => void | (x: T) => void |
831+ | tst.ts:315:16:315:16 | T | T |
832+ | tst.ts:315:22:315:25 | void | void |
833+ | tst.ts:316:4:316:7 | void | void |
834+ | tst.ts:325:22:325:27 | string | string |
835+ | tst.ts:325:30:325:34 | Error | Error |
836+ | tst.ts:331:6:331:16 | FirstString | FirstString<T> |
837+ | tst.ts:331:18:331:18 | T | T |
838+ | tst.ts:336:6:336:6 | F | "a" \| "b" |
839+ | tst.ts:336:10:336:20 | FirstString | FirstString<T> |
840+ | tst.ts:336:10:336:50 | FirstSt ... olean]> | "a" \| "b" |
841+ | tst.ts:336:22:336:49 | ['a' \| ... oolean] | ["a" \| "b", number, boolean] |
842+ | tst.ts:336:23:336:25 | 'a' | "a" |
843+ | tst.ts:336:23:336:31 | 'a' \| 'b' | "a" \| "b" |
844+ | tst.ts:336:29:336:31 | 'b' | "b" |
845+ | tst.ts:336:34:336:39 | number | number |
846+ | tst.ts:336:42:336:48 | boolean | boolean |
847+ | tst.ts:338:10:338:10 | F | "a" \| "b" |
848+ | tst.ts:342:11:342:15 | State | State<T> |
849+ | tst.ts:342:24:342:24 | T | T |
850+ | tst.ts:343:8:343:14 | () => T | () => T |
851+ | tst.ts:343:14:343:14 | T | T |
852+ | tst.ts:344:8:344:25 | (value: T) => void | (value: T) => void |
815853| tst.ts:344:16:344:16 | T | T |
816- | tst.ts:345:10:345:27 | (value: T) => void | (value: T) => void |
817- | tst.ts:345:18:345:18 | T | T |
818- | tst.ts:345:24:345:27 | void | void |
819- | tst.ts:348:16:348:20 | State | State<T> |
820- | tst.ts:348:16:348:28 | State<number> | State<number> |
821- | tst.ts:348:22:348:27 | number | number |
854+ | tst.ts:344:22:344:25 | void | void |
855+ | tst.ts:347:14:347:18 | State | State<T> |
856+ | tst.ts:347:14:347:26 | State<number> | State<number> |
857+ | tst.ts:347:20:347:25 | number | number |
858+ | tstModuleCJS.cts:1:33:1:35 | 'a' | "a" |
859+ | tstModuleCJS.cts:1:33:1:41 | 'a' \| 'b' | "a" \| "b" |
860+ | tstModuleCJS.cts:1:39:1:41 | 'b' | "b" |
861+ | tstModuleES.mts:1:40:1:42 | 'a' | "a" |
862+ | tstModuleES.mts:1:40:1:48 | 'a' \| 'b' | "a" \| "b" |
863+ | tstModuleES.mts:1:46:1:48 | 'b' | "b" |
822864| type_alias.ts:1:6:1:6 | B | boolean |
823865| type_alias.ts:1:10:1:16 | boolean | boolean |
824866| type_alias.ts:3:8:3:8 | B | boolean |
@@ -899,7 +941,7 @@ referenceDefinition
899941| E | type_definition_objects.ts:6:8:6:16 | enum E {} |
900942| EnumWithOneMember | type_definitions.ts:18:26:18:31 | member |
901943| Error | tst.ts:210:10:213:3 | interfa ... ng;\\n } |
902- | FirstString<T> | tst.ts:332:3:335:16 | type Fi ... never; |
944+ | FirstString<T> | tst.ts:331:1:334:14 | type Fi ... never; |
903945| Foo | tst.ts:116:3:129:3 | class F ... }\\n } |
904946| Foo | tst.ts:165:5:167:5 | interfa ... ;\\n } |
905947| Foo | tst.ts:179:3:192:3 | class F ... \\n } |
@@ -913,8 +955,8 @@ referenceDefinition
913955| NonAbstractDummy | tst.ts:54:1:56:1 | interfa ... mber;\\n} |
914956| Person | tst.ts:222:3:234:3 | class P ... }\\n } |
915957| Shape | tst.ts:140:3:142:47 | type Sh ... mber }; |
916- | State<T> | tst.ts:343:3:346:3 | interfa ... id ;\\n } |
917- | State<number> | tst.ts:343:3:346:3 | interfa ... id ;\\n } |
958+ | State<T> | tst.ts:342:1:345:1 | interfa ... void ;\\n} |
959+ | State<number> | tst.ts:342:1:345:1 | interfa ... void ;\\n} |
918960| Sub | tst.ts:97:3:101:3 | class S ... }\\n } |
919961| Success | tst.ts:205:10:208:3 | interfa ... ng;\\n } |
920962| Super | tst.ts:91:3:95:3 | class S ... }\\n } |
0 commit comments