Skip to content

[SwiftExtract] Language-neutrality cleanup - #899

Merged
ktoso merged 1 commit into
swiftlang:mainfrom
kateinoigakukun:pr-66c49958f900c840852565ec62fee09d61f5fe22
Aug 21, 2026
Merged

[SwiftExtract] Language-neutrality cleanup#899
ktoso merged 1 commit into
swiftlang:mainfrom
kateinoigakukun:pr-66c49958f900c840852565ec62fee09d61f5fe22

Conversation

@kateinoigakukun

Copy link
Copy Markdown
Member

Remove the Java/JNI specifics that leaked into the language-neutral analysis layer so other consumers (e.g. JavaScriptKit's BridgeJS) can adopt it without inheriting swift-java concepts:

  • Move SwiftQualifiedTypeName.jniEscapedName into JExtractSwiftLib.
  • Make the 'unresolved type' hint text injectable via a new SwiftExtractConfiguration.unresolvedTypeHint requirement (default nil); the swift-java Configuration keeps the existing --depends-on wording, so jextract diagnostics are unchanged.
  • Drop the unused swift-log dependency from the SwiftExtract target and its dead import Logging statements; the module has its own logger.

Remove the Java/JNI specifics that leaked into the language-neutral
analysis layer so other consumers (e.g. JavaScriptKit's BridgeJS) can
adopt it without inheriting swift-java concepts:

- Move SwiftQualifiedTypeName.jniEscapedName into JExtractSwiftLib.
- Make the 'unresolved type' hint text injectable via a new
  SwiftExtractConfiguration.unresolvedTypeHint requirement (default
  nil); the swift-java Configuration keeps the existing --depends-on
  wording, so jextract diagnostics are unchanged.
- Drop the unused swift-log dependency from the SwiftExtract target and
  its dead 'import Logging' statements; the module has its own logger.
@kateinoigakukun
kateinoigakukun requested a review from ktoso as a code owner August 21, 2026 13:07
@ktoso

ktoso commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

All good changes, thank you! Really excited to start sharing the infra!

@ktoso
ktoso merged commit e8e3eb9 into swiftlang:main Aug 21, 2026
42 checks passed
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.

2 participants