Commit b12b70c
committed
Fix a string interpolation error in CodeGeneration
`leafProtocolDecl` placed two declarations within the same `DeclSyntax`, which didn’t parse correctly, triggering `logStringInterpolationParsingError`. Split the function so that one returns the protocol declaration and the other returns the extension.1 parent 86f50c2 commit b12b70c
File tree
2 files changed
+22
-2
lines changed- CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntax
- Sources/SwiftSyntax/generated
2 files changed
+22
-2
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| 354 | + | |
353 | 355 | | |
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
357 | | - | |
| 359 | + | |
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
363 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
364 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
365 | 373 | | |
366 | 374 | | |
367 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
591 | 593 | | |
592 | 594 | | |
593 | 595 | | |
| 596 | + | |
594 | 597 | | |
595 | 598 | | |
596 | 599 | | |
| |||
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
| 608 | + | |
605 | 609 | | |
606 | 610 | | |
607 | 611 | | |
| |||
862 | 866 | | |
863 | 867 | | |
864 | 868 | | |
| 869 | + | |
865 | 870 | | |
866 | 871 | | |
867 | 872 | | |
| |||
873 | 878 | | |
874 | 879 | | |
875 | 880 | | |
| 881 | + | |
876 | 882 | | |
877 | 883 | | |
878 | 884 | | |
| |||
1143 | 1149 | | |
1144 | 1150 | | |
1145 | 1151 | | |
| 1152 | + | |
1146 | 1153 | | |
1147 | 1154 | | |
1148 | 1155 | | |
| |||
1154 | 1161 | | |
1155 | 1162 | | |
1156 | 1163 | | |
| 1164 | + | |
1157 | 1165 | | |
1158 | 1166 | | |
1159 | 1167 | | |
| |||
1425 | 1433 | | |
1426 | 1434 | | |
1427 | 1435 | | |
| 1436 | + | |
1428 | 1437 | | |
1429 | 1438 | | |
1430 | 1439 | | |
| |||
1436 | 1445 | | |
1437 | 1446 | | |
1438 | 1447 | | |
| 1448 | + | |
1439 | 1449 | | |
1440 | 1450 | | |
1441 | 1451 | | |
| |||
1754 | 1764 | | |
1755 | 1765 | | |
1756 | 1766 | | |
| 1767 | + | |
1757 | 1768 | | |
1758 | 1769 | | |
1759 | 1770 | | |
| |||
1765 | 1776 | | |
1766 | 1777 | | |
1767 | 1778 | | |
| 1779 | + | |
1768 | 1780 | | |
1769 | 1781 | | |
1770 | 1782 | | |
| |||
0 commit comments