Commit 5440dce
committed
AST: Make ExpandChildTypeRefinementContextsRequest a side effectful request.
While returning the actual child vector from
`ExpandChildTypeRefinementContextsRequest` is a nice idea, it is both
inefficient (the vector gets copied in and out) and kind of inaccurate, since
the vector remains mutable after the initial expansion and may gain additional
children as macros are lazily expanded.1 parent 3d40a8c commit 5440dce
File tree
3 files changed
+15
-17
lines changed- include/swift/AST
- lib
- AST
- Sema
3 files changed
+15
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4852 | 4852 | | |
4853 | 4853 | | |
4854 | 4854 | | |
4855 | | - | |
4856 | | - | |
| 4855 | + | |
4857 | 4856 | | |
4858 | 4857 | | |
4859 | 4858 | | |
4860 | 4859 | | |
4861 | 4860 | | |
4862 | 4861 | | |
4863 | 4862 | | |
4864 | | - | |
4865 | | - | |
| 4863 | + | |
| 4864 | + | |
4866 | 4865 | | |
4867 | 4866 | | |
4868 | 4867 | | |
4869 | 4868 | | |
4870 | | - | |
4871 | | - | |
| 4869 | + | |
| 4870 | + | |
4872 | 4871 | | |
4873 | 4872 | | |
4874 | 4873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
481 | | - | |
| 482 | + | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
486 | | - | |
| 487 | + | |
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
490 | | - | |
| 491 | + | |
491 | 492 | | |
492 | | - | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1384 | 1384 | | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | | - | |
1388 | | - | |
| 1387 | + | |
1389 | 1388 | | |
1390 | 1389 | | |
1391 | 1390 | | |
| |||
1394 | 1393 | | |
1395 | 1394 | | |
1396 | 1395 | | |
1397 | | - | |
| 1396 | + | |
1398 | 1397 | | |
1399 | 1398 | | |
1400 | 1399 | | |
| |||
0 commit comments