Skip to content

[5.7] consider requirements of an underscored protocol to also be underscored #59487

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

Conversation

QuietMisdreavus
Copy link
Contributor

Explanation: SymbolGraphGen considered symbols whose names begin with an underscore to be internal or private, based on their actual access level. While this extends to direct children of the symbol (properties, methods, enum cases, etc), property requirements can slip through when the property conformance is defined in an extension. This PR updates the filtering logic to consider requirements of a protocol with an underscored name to have underscored names themselves.

Scope: Affects symbol graph generation when the "minimum access level" is set to public (the default).

Bug: rdar://94336558

Risk: Low. The changes are restricted to SymbolGraphGen, and should not affect normal compilation. The symbols that are filtered out because of this change can be viewed in a symbol graph by setting the minimum access level to internal or private.

Testing: The lit test SymbolGraph/Symbols/SkipsPublicUnderscore.swift has been updated to verify this behavior. Existing automated tests still pass.

@QuietMisdreavus QuietMisdreavus requested a review from a team as a code owner June 16, 2022 15:41
@QuietMisdreavus
Copy link
Contributor Author

@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