Skip to content

[AST] Update source module correction logic to support @_spiOnly imports #67970

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
Aug 17, 2023

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Aug 16, 2023

This logic may override the module considered as the source of a decl to ensure that only visible modules are printed in the swiftinterface. This change updates it to consider @_spiOnly imported modules from the local module as visible when printing the private swiftinterface only.

rdar://103325332

@xymus xymus requested review from elsh and tshortli August 16, 2023 21:22
@xymus
Copy link
Contributor Author

xymus commented Aug 16, 2023

@swift-ci Please smoke test

This logic may override the module considered as the source of a decl to
ensure that only visible modules are printed in the swiftinterface. This
change updates it to consider @_spiOnly imported modules from the local
module as visible when printing the private swiftinterface only.

rdar://103325332
@xymus xymus force-pushed the spi-only-printer branch from c2836bf to 011222d Compare August 16, 2023 23:41
@xymus
Copy link
Contributor Author

xymus commented Aug 16, 2023

@swift-ci Please smoke test

@xymus xymus merged commit be34921 into swiftlang:main Aug 17, 2023
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