Skip to content
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

Adapt memberOf Relationships Stemming from Default Implementations to Extension Block Symbol Format #61406

Conversation

theMomax
Copy link
Contributor

@theMomax theMomax commented Oct 2, 2022

This is a follow-up PR to #59047. It completes the implementation of the Extension Block Symbol Format by moving the target of memberOf that stem from default implementations to the extension block symbol. Of course, this only applies if the -emit-extension-block-symbols flag is used.

As memberOf relationships could already appear on swift.extension symbols prior to this commit, the Symbol Graph Format Version does not need to be increased and no change to apple/swift-docc is required.

This is the last change to the actual symbol graph generation logic required to resolve apple/swift-docc#210.
A first follow-up PR will add a CLI flag for explicitly disabling the Extension Block Symbol Format and list the feature in lib/Option/features.json. A second and final follow-up PR will eventually make the Extension Block Symbol Format the default behavior.

…tension block symbol if extension block symbol format is used
@theMomax theMomax force-pushed the extension-block-symbols-default-implementation-relationship branch from 15c8045 to 00584ce Compare November 15, 2022 16:19
Copy link
Contributor

@QuietMisdreavus QuietMisdreavus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thanks!

@QuietMisdreavus
Copy link
Contributor

@swift-ci Please smoke test

@QuietMisdreavus QuietMisdreavus merged commit 429f15f into swiftlang:main Nov 15, 2022
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.

[SR-15410] Can't document extensions with DocC
2 participants