Skip to content

Better identify Swift default implementations#1423

Merged
johnfairh merged 1 commit into
masterfrom
jf-mixed-extensions
Oct 18, 2025
Merged

Better identify Swift default implementations#1423
johnfairh merged 1 commit into
masterfrom
jf-mixed-extensions

Conversation

@johnfairh

Copy link
Copy Markdown
Collaborator

This improves identification of default implementations for Swift protocols. This improves the spec projects’ documentation in a couple of ways, identifying a few methods that were skipped or wrongly identified as mentioned in #1420.

It does not work when type inference is required to make the method a default implementation as seen in AlamofireExtended - but the change is an overall improvement.

Does not work for SymbolGraph — we don’t have the type information (might be available by massaging the data) and SymGraph has the same bug as jazzy when it tries to actively spot default implementations (swiftlang/swift#61285). Which is a shame.

Fixes #1420.

@johnfairh johnfairh merged commit c286711 into master Oct 18, 2025
6 checks passed
@johnfairh johnfairh deleted the jf-mixed-extensions branch October 18, 2025 12:24
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.

Extension methods with same name mistaken with default implementations

1 participant