Commit 462e37b
committed
[Effects handling] Move "illegal context" strings into diagnostic text.
The "illegal context" diagnostics were passing strings from the C++
code directly into diagnostic text for things like "a default
argument". That causes a bunch of duplicated code and defeats
localization of diagnostics, so move to a %select in the diagnostic.1 parent 90e42bb commit 462e37b
File tree
2 files changed
+11
-24
lines changed- include/swift/AST
- lib/Sema
2 files changed
+11
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4008 | 4008 | | |
4009 | 4009 | | |
4010 | 4010 | | |
4011 | | - | |
4012 | | - | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
4013 | 4014 | | |
4014 | | - | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
4015 | 4018 | | |
4016 | 4019 | | |
4017 | 4020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | | - | |
| 1033 | + | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
| 1037 | + | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | | - | |
| 1043 | + | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | 1177 | | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | 1178 | | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | 1179 | | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | 1180 | | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | 1181 | | |
1197 | | - | |
1198 | | - | |
1199 | 1182 | | |
1200 | | - | |
| 1183 | + | |
1201 | 1184 | | |
| 1185 | + | |
1202 | 1186 | | |
1203 | 1187 | | |
1204 | 1188 | | |
| |||
0 commit comments