Files
swift-mirror/test/Macros/Inputs
Doug Gregor 7e4acfaa02 [Macros] Put the insertion location for freestanding macros at the beginning
When building the ASTScope tree, we set the insertion location for the
macro expansion just before the end of the macro use. This is the right
approach for attached macros, because we need to put the entities
after the macro.

However, for freestanding macros, which can have trailing closures,
this location is a problem, because the scope for the macro
expansion ends up inside the scope for the trailing closure. Use the
start location of the freestanding macro instead.

Fixes rdar://130923190.
2024-07-02 20:47:40 -07:00
..
2022-11-13 20:47:17 -08:00