Skip to content

Conversation

mateusrodriguesxyz
Copy link
Contributor

@mateusrodriguesxyz mateusrodriguesxyz commented Aug 8, 2024

Fixes #2791

Maybe just let nodeInOriginalTree = sharedState.detachedNodes[Syntax(node.root)] is sufficient? I tried and no existing tests failed.

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mateusrodriguesxyz 🙏🏽

@ahoppen
Copy link
Member

ahoppen commented Aug 9, 2024

@swift-ci Please test

@ahoppen
Copy link
Member

ahoppen commented Aug 9, 2024

Thanks for fixing this @mateusrodriguesxyz! 🙏🏽

@AdamCmiel
Copy link

AdamCmiel commented Apr 15, 2025

@mateusrodriguesxyz still seeing this erroneous behavior for attributes of a functionDeclSyntax, I'll write up a test and see if I can't amend the context, see #3056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source location retrieving doesn't work in body macro expansion assertion

3 participants