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

MergeStrategy with ExtensionGraphAssociation Option for GraphCollector #48

Merged
merged 4 commits into from
Aug 11, 2022

Conversation

theMomax
Copy link
Contributor

@theMomax theMomax commented Jul 11, 2022

This adaption is required to fix apple/swift-docc#210

Summary

Adds a strategy option to GraphCollector's init. The ExtensionGraphAssociation option decides if extension graphs are merged with the extending or extended graph.

Dependencies

This PR does not introduce a breaking change and can be merged independently.

Testing

I added a new unit test to test the merging behavior for both ExtensionGraphAssociation options.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

@theMomax theMomax changed the title add MergeStrategy to GraphCollector MergeStrategy with ExtensionGraphAssociation Option for GraphCollector Jul 11, 2022
 - introduce ExtensionGraphAssociation option defining if extension graphs are merged with the extending or extended graph
 - add unit-test testing ExtensionGraphAssociation behavior
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 great, thanks! I just have a couple questions.

@QuietMisdreavus
Copy link
Contributor

@swift-ci Please test

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 great, thanks!

@QuietMisdreavus
Copy link
Contributor

@swift-ci Please test

@QuietMisdreavus
Copy link
Contributor

@swift-ci Please test

@QuietMisdreavus
Copy link
Contributor

@swift-ci Please test macOS

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