Commit fa4f7dd
committed
Parse: Don't create PatternBindingDecls with overlapping source ranges
This was happening in the error recovery path when parsing accessors
on a pattern binding declaration that does not bind any variables, eg
let _: Int { 0 }1 parent 4d875ee commit fa4f7dd
File tree
7 files changed
+18
-27
lines changed- include/swift/Parse
- lib
- IDE
- Parse
- test
- Index
- Parse
- SourceKit/DocumentStructure
7 files changed
+18
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
1119 | | - | |
| 1119 | + | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
994 | 996 | | |
995 | 997 | | |
996 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5680 | 5680 | | |
5681 | 5681 | | |
5682 | 5682 | | |
5683 | | - | |
| 5683 | + | |
5684 | 5684 | | |
5685 | 5685 | | |
5686 | 5686 | | |
5687 | 5687 | | |
5688 | 5688 | | |
5689 | 5689 | | |
5690 | | - | |
| 5690 | + | |
| 5691 | + | |
| 5692 | + | |
5691 | 5693 | | |
5692 | 5694 | | |
5693 | 5695 | | |
| |||
5730 | 5732 | | |
5731 | 5733 | | |
5732 | 5734 | | |
5733 | | - | |
5734 | 5735 | | |
5735 | 5736 | | |
5736 | | - | |
| 5737 | + | |
5737 | 5738 | | |
5738 | 5739 | | |
5739 | | - | |
5740 | | - | |
5741 | | - | |
5742 | | - | |
5743 | | - | |
5744 | | - | |
5745 | | - | |
5746 | | - | |
5747 | | - | |
5748 | | - | |
| 5740 | + | |
5749 | 5741 | | |
5750 | 5742 | | |
5751 | 5743 | | |
| |||
6157 | 6149 | | |
6158 | 6150 | | |
6159 | 6151 | | |
6160 | | - | |
| 6152 | + | |
| 6153 | + | |
6161 | 6154 | | |
6162 | 6155 | | |
6163 | 6156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | 576 | | |
578 | | - | |
579 | | - | |
580 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
581 | 580 | | |
582 | 581 | | |
583 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | 576 | | |
578 | | - | |
579 | | - | |
580 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
581 | 580 | | |
582 | 581 | | |
583 | 582 | | |
| |||
0 commit comments