Skip to content

[Macros] Copy MacroSystem and related code to SwiftSyntaxMacroExpansion #1858

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 1 commit into from
Jun 29, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 27, 2023

And deprecate the original in SwiftSyntaxMacros module.

MacroSystem (i.e. SyntaxProtocol.expand(macros:in:)) is a syntactic macro expansion utility for testing macros (i.e. assertMacroExpansion()) It should be moved to SwiftSyntaxMacroExpansion module because it's a expansion utility, and should share the same code with other expansion functions including the actual compiler expansion.

This is basically a pure copy, without any functional changes. Integrating unified logic will be separate PRs.

@rintaro
Copy link
Member Author

rintaro commented Jun 27, 2023

@swift-ci Please test

@rintaro rintaro requested a review from bnbarham June 27, 2023 21:55
@rintaro rintaro force-pushed the macros-macrossystem-expansion branch from 2e558fc to 58b8e84 Compare June 28, 2023 00:01
@rintaro
Copy link
Member Author

rintaro commented Jun 28, 2023

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 28, 2023

@swift-ci Please test Windows

And deperecate the original in SwiftSyntaxMacros module.

'MacroSystem' (i.e. 'SyntaxProtocol.expand(macros:in:)') is a syntactic
macro expansion utility for testing macros (i.e. assertMacroExpansion())
It should be moved to `SwiftSyntaxMacroExpansion` module because it's a
_expansion_ utility, and should share the same code with other
expansion functions including the actual compiler expansion.
@rintaro rintaro force-pushed the macros-macrossystem-expansion branch from 58b8e84 to fabcf50 Compare June 29, 2023 21:10
@rintaro
Copy link
Member Author

rintaro commented Jun 29, 2023

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 29, 2023

@swift-ci Please test Windows

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.

3 participants