Repository navigation
Commit 9b17880
committed
Order members of types implied by binding patterns by their elements
The members of a type implied by a binding pattern have no
declarations, so types implied by two patterns with the same names,
and their widened copies, could be told apart only by their member
symbols, which were ordered by symbol id (seen in vscode). Each member
now records the binding element declaring it, as TypeScript records
it, and is ordered by that element. Types implied by different patterns
that record them are also ordered by their patterns before their
members.1 parent cd8efe5 commit 9b17880
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
683 | 684 | | |
684 | 685 | | |
685 | 686 | | |
| |||
1029 | 1030 | | |
1030 | 1031 | | |
1031 | 1032 | | |
| 1033 | + | |
1032 | 1034 | | |
1033 | 1035 | | |
1034 | 1036 | | |
| |||
18666 | 18668 | | |
18667 | 18669 | | |
18668 | 18670 | | |
| 18671 | + | |
18669 | 18672 | | |
18670 | 18673 | | |
18671 | 18674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
| |||
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
693 | 701 | | |
694 | 702 | | |
695 | 703 | | |
| |||
0 commit comments