Commit c1f2afd
authored
Add typedef declaration space, unify typedef name gathering (microsoft#18172)
* Add typedef declaration space, unify typedef name gathering, strengthen errorUnusedLocal
* Bonus round: make jsdoc presence way mroe typesafe
* Be exhaustive in nameForNamelessJSDocTypedef
* Remove nonrequired casts
* Replace more casts with guards
* Cannot be internal
* Debug.fail returns never, assert never no longer needs unreachable throw to satisfy checker
* Rename type
* Add replacement message as in 182871 parent 39d0590 commit c1f2afd
17 files changed
Lines changed: 279 additions & 91 deletions
File tree
- src
- compiler
- services
- tests
- baselines/reference
- cases/compiler
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 285 | + | |
| 286 | + | |
296 | 287 | | |
297 | 288 | | |
298 | 289 | | |
| |||
598 | 589 | | |
599 | 590 | | |
600 | 591 | | |
601 | | - | |
| 592 | + | |
602 | 593 | | |
603 | 594 | | |
604 | 595 | | |
| |||
1931 | 1922 | | |
1932 | 1923 | | |
1933 | 1924 | | |
1934 | | - | |
| 1925 | + | |
1935 | 1926 | | |
1936 | 1927 | | |
1937 | 1928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19158 | 19158 | | |
19159 | 19159 | | |
19160 | 19160 | | |
| 19161 | + | |
| 19162 | + | |
19161 | 19163 | | |
19162 | 19164 | | |
19163 | 19165 | | |
| |||
19827 | 19829 | | |
19828 | 19830 | | |
19829 | 19831 | | |
19830 | | - | |
| 19832 | + | |
19831 | 19833 | | |
19832 | 19834 | | |
19833 | 19835 | | |
| |||
19842 | 19844 | | |
19843 | 19845 | | |
19844 | 19846 | | |
19845 | | - | |
| 19847 | + | |
| 19848 | + | |
19846 | 19849 | | |
19847 | 19850 | | |
19848 | 19851 | | |
| |||
19909 | 19912 | | |
19910 | 19913 | | |
19911 | 19914 | | |
19912 | | - | |
| 19915 | + | |
19913 | 19916 | | |
19914 | 19917 | | |
19915 | 19918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2441 | 2441 | | |
2442 | 2442 | | |
2443 | 2443 | | |
2444 | | - | |
| 2444 | + | |
2445 | 2445 | | |
2446 | 2446 | | |
2447 | 2447 | | |
| |||
2450 | 2450 | | |
2451 | 2451 | | |
2452 | 2452 | | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
2453 | 2457 | | |
2454 | 2458 | | |
2455 | 2459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
| 732 | + | |
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | | - | |
| 771 | + | |
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| |||
2158 | 2158 | | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | | - | |
| 2161 | + | |
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
| |||
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
2368 | | - | |
| 2368 | + | |
2369 | 2369 | | |
2370 | 2370 | | |
2371 | 2371 | | |
| |||
2445 | 2445 | | |
2446 | 2446 | | |
2447 | 2447 | | |
2448 | | - | |
| 2448 | + | |
2449 | 2449 | | |
2450 | 2450 | | |
2451 | 2451 | | |
| |||
2605 | 2605 | | |
2606 | 2606 | | |
2607 | 2607 | | |
2608 | | - | |
| 2608 | + | |
2609 | 2609 | | |
2610 | 2610 | | |
2611 | 2611 | | |
| |||
6182 | 6182 | | |
6183 | 6183 | | |
6184 | 6184 | | |
6185 | | - | |
| 6185 | + | |
6186 | 6186 | | |
6187 | 6187 | | |
6188 | 6188 | | |
| |||
6997 | 6997 | | |
6998 | 6998 | | |
6999 | 6999 | | |
7000 | | - | |
| 7000 | + | |
7001 | 7001 | | |
7002 | 7002 | | |
7003 | 7003 | | |
| |||
0 commit comments