Skip to content

Macro expansion refactoring for preamble and body macros #70247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

DougGregor
Copy link
Member

No description provided.

Now that the macro expansion machinery is wrapping the contents of a
body macro in curly braces, parse it as a single brace statement. This
has the advantage of giving us real locations for `{` and `}` rather
than synthesizing them, and simplifies the implementation of macro
body expansion somewhat.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2384

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2384

@swift-ci please build toolchain

@xedin xedin removed their request for review December 6, 2023 01:07
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#2384

@swift-ci please build toolchain macOS

@DougGregor DougGregor merged commit fbd5cb4 into swiftlang:main Dec 6, 2023
@DougGregor DougGregor deleted the body-macro-as-brace-stmt branch December 6, 2023 05:47
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.

1 participant