Commit 284fcb5
committed
[ASTPrinter] Use TypeLoc printing for extended types.
When the -module-interface-preserve-types-as-written flag is used,
the extended type should be printed similar to other types. The
checking for that flag happens in TypeLoc printing, not Type printing.
So we change extended type printing to use a TypeLoc instead.
Fixes rdar://79563937.1 parent 528764c commit 284fcb5
File tree
2 files changed
+34
-9
lines changed- lib/AST
- test/ModuleInterface
2 files changed
+34
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| 916 | + | |
916 | 917 | | |
917 | 918 | | |
918 | 919 | | |
| |||
2331 | 2332 | | |
2332 | 2333 | | |
2333 | 2334 | | |
2334 | | - | |
2335 | | - | |
| 2335 | + | |
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
| |||
2342 | 2342 | | |
2343 | 2343 | | |
2344 | 2344 | | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
| 2345 | + | |
| 2346 | + | |
2348 | 2347 | | |
2349 | 2348 | | |
2350 | 2349 | | |
| |||
2402 | 2401 | | |
2403 | 2402 | | |
2404 | 2403 | | |
2405 | | - | |
| 2404 | + | |
2406 | 2405 | | |
2407 | 2406 | | |
2408 | 2407 | | |
| |||
2453 | 2452 | | |
2454 | 2453 | | |
2455 | 2454 | | |
2456 | | - | |
| 2455 | + | |
2457 | 2456 | | |
2458 | 2457 | | |
2459 | 2458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
3 | 28 | | |
4 | 29 | | |
5 | 30 | | |
| |||
32 | 57 | | |
33 | 58 | | |
34 | 59 | | |
| 60 | + | |
0 commit comments