Skip to content

[5.1] IDE: avoid merging extensions with @available attributes when synthesizing extensions #27047

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
Sep 6, 2019

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Sep 5, 2019

Explanation: When generating documentation using sourcekitd, we sometimes merge extensions with the identical constraint. This could lead to some information loss if two extensions of different availability attributes are merged. This simple fix checks if an extension has an explicit available attribute and avoids merge it with other extensions if so.

Scope: Only for document generation request of sourcekitd

Issue: rdar://54804607

Risk: Very Low since the changes are of no direct impacts on end users

Testing: local testing; unit testing; CI testing

Reviewed by: @jrose-apple

@nkcsgexi nkcsgexi requested a review from a team as a code owner September 5, 2019 23:28
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Sep 5, 2019

@swift-ci please test

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Sep 5, 2019

@swift-ci please nominate

@nkcsgexi nkcsgexi merged commit 28a0436 into swiftlang:swift-5.1-branch Sep 6, 2019
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