Commit cb82a46
committed
[NFC] Stash Syntactic Information in EnumIsCaseExpr
After the TypeLocs were removed here, the TypeRepr from the IsExpr was
the only thing providing access to syntactic information from the parent
IsExpr. In order to support this, it was possible to construct a bizarre
ConditionalCheckedCastExpr that contained both semantic and syntactic
information. This doesn't comport with the rest of the casting nodes,
which force you to pick one or the other.
Since we're rewriting an IsExpr into a EnumIsCaseExpr, let's just stash
the syntactic information there. This unblocks a bit of cleanup.1 parent e9c3157 commit cb82a46
File tree
4 files changed
+38
-39
lines changed- include/swift/AST
- lib
- AST
- Sema
4 files changed
+38
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4704 | 4704 | | |
4705 | 4705 | | |
4706 | 4706 | | |
4707 | | - | |
| 4707 | + | |
4708 | 4708 | | |
4709 | 4709 | | |
4710 | 4710 | | |
| |||
4722 | 4722 | | |
4723 | 4723 | | |
4724 | 4724 | | |
4725 | | - | |
4726 | | - | |
4727 | | - | |
4728 | 4725 | | |
4729 | 4726 | | |
4730 | 4727 | | |
| |||
4911 | 4908 | | |
4912 | 4909 | | |
4913 | 4910 | | |
| 4911 | + | |
4914 | 4912 | | |
4915 | 4913 | | |
4916 | 4914 | | |
4917 | | - | |
4918 | | - | |
4919 | | - | |
4920 | | - | |
4921 | | - | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
4922 | 4919 | | |
4923 | 4920 | | |
4924 | | - | |
| 4921 | + | |
| 4922 | + | |
| 4923 | + | |
4925 | 4924 | | |
4926 | | - | |
4927 | | - | |
| 4925 | + | |
4928 | 4926 | | |
4929 | 4927 | | |
4930 | 4928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
954 | | - | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
955 | 959 | | |
956 | 960 | | |
957 | 961 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | 1811 | | |
1823 | 1812 | | |
1824 | 1813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
3577 | | - | |
3578 | | - | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
3579 | 3581 | | |
3580 | 3582 | | |
3581 | 3583 | | |
3582 | | - | |
| 3584 | + | |
3583 | 3585 | | |
3584 | 3586 | | |
3585 | 3587 | | |
| |||
3588 | 3590 | | |
3589 | 3591 | | |
3590 | 3592 | | |
3591 | | - | |
| 3593 | + | |
| 3594 | + | |
3592 | 3595 | | |
3593 | 3596 | | |
3594 | 3597 | | |
| |||
4010 | 4013 | | |
4011 | 4014 | | |
4012 | 4015 | | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
4013 | 4022 | | |
4014 | 4023 | | |
4015 | 4024 | | |
4016 | | - | |
| 4025 | + | |
4017 | 4026 | | |
4018 | 4027 | | |
4019 | 4028 | | |
4020 | 4029 | | |
4021 | 4030 | | |
4022 | 4031 | | |
4023 | 4032 | | |
4024 | | - | |
| 4033 | + | |
4025 | 4034 | | |
4026 | 4035 | | |
4027 | 4036 | | |
4028 | | - | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
4029 | 4041 | | |
4030 | 4042 | | |
4031 | 4043 | | |
4032 | 4044 | | |
4033 | 4045 | | |
4034 | 4046 | | |
4035 | | - | |
4036 | | - | |
4037 | 4047 | | |
4038 | | - | |
4039 | | - | |
4040 | | - | |
| 4048 | + | |
4041 | 4049 | | |
4042 | 4050 | | |
4043 | 4051 | | |
4044 | | - | |
4045 | | - | |
4046 | | - | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
4047 | 4055 | | |
4048 | 4056 | | |
4049 | 4057 | | |
| |||
0 commit comments