Skip to content

SwiftExtract: record cross module extensions - #914

Merged
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:wip-primitive-extension-conformances-rebased
Sep 7, 2026
Merged

SwiftExtract: record cross module extensions#914
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:wip-primitive-extension-conformances-rebased

Conversation

@ktoso

@ktoso ktoso commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Adds CrossModuleExtensions to AnalysisResult, and populates it during analysis. We can later find them via typesConforming(to:) or by manually checking the cross module extensions.

This allows emitting methods/conformances in bindings of some adopter module that added methods to a type from another module.

SwiftJava itself doesn't act on these yet, but we need to think about how to handle them

Adds CrossModuleExtensions to AnalysisResult, and populates it during
analysis. We can later find them via typesConforming(to:) or by manually
checking the cross module extensions.

This allows emitting methods/conformances in bindings of some adopter
module that added methods to a type from another module.
@ktoso
ktoso merged commit 4a39c68 into swiftlang:main Sep 7, 2026
42 checks passed
@ktoso
ktoso deleted the wip-primitive-extension-conformances-rebased branch September 7, 2026 05:34
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.

1 participant