Skip to content

remove duplicated logic #1286

Open
heckj wants to merge 1 commit into
swiftlang:mainfrom
heckj:remove-duplicate-logic
Open

remove duplicated logic #1286
heckj wants to merge 1 commit into
swiftlang:mainfrom
heckj:remove-duplicate-logic

Conversation

@heckj

@heckj heckj commented Aug 28, 2025

Copy link
Copy Markdown
Member

Originally found while debugging #1084, and recently updated the logic in swiftlang/swift-docc-symbolkit#101 to match this version, which was used in preference of the SymbolKit version.

Summary

This removes the logic from DocC, favoring the loading in SymbolKit, and consolidating the logic into a single place. This was originally opened at #1091, but the code had changed significantly since that update, so it was easier to create a new PR with the change after applying feedback from the earlier PR.

The equivalent logic that I'm consolidating towards is https://github.com/swiftlang/swift-docc-symbolkit/blob/main/Sources/SymbolKit/UnifiedSymbolGraph/GraphCollector.swift#L121-L178

Testing

The existing tests within DocC work this logic extensively.

Checklist

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

  • Added tests - no additional tests needed
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary - no documentation changes are relevant, internal implementation details only

@heckj heckj self-assigned this Aug 28, 2025
@heckj heckj added the code cleanup Code cleanup *without* user facing changes label Aug 28, 2025
@heckj

heckj commented Aug 28, 2025

Copy link
Copy Markdown
Member Author

@swift-ci please test

@d-ronnqvist

d-ronnqvist commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

If the SymbolKit logic for this was recently updated, does it make sense to also run swift package update swift-docc-symbolkit to update the commit of SymbolKit that DocC depends on or do you prefer to update that separately?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code cleanup Code cleanup *without* user facing changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants