Skip to content

[Macros] Accept "freeStandingDeclaration" as 'MacroRole.declaration' #1838

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 24, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 24, 2023

Due to diverged PluginMessage.MacroRole between swift and swift-syntax repo, the compiler mistakingly sends "freeStandingDeclaration" as .declaration via serialized IPC message. To keep the compatibility, accept it as a valid value.

Also add executable plugin tests for every macro role.

@rintaro rintaro requested a review from ahoppen as a code owner June 24, 2023 05:42
@rintaro
Copy link
Member Author

rintaro commented Jun 24, 2023

@swift-ci Please test

Also add actual plugin test for every macro role.
@rintaro rintaro force-pushed the macros-macrorole-legacydeclaration branch from a79a70a to 7d864db Compare June 24, 2023 07:37
@rintaro
Copy link
Member Author

rintaro commented Jun 24, 2023

@swift-ci Please test

2 similar comments
@rintaro
Copy link
Member Author

rintaro commented Jun 24, 2023

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 24, 2023

@swift-ci Please test

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.

2 participants