Skip to content

[SwiftExtract] Record the source file path on ExtractedFunc - #902

Draft
kateinoigakukun wants to merge 1 commit into
swiftlang:mainfrom
kateinoigakukun:pr-1d9f14ffc242fc8c0f12f4accca7ee470337c1f1
Draft

[SwiftExtract] Record the source file path on ExtractedFunc#902
kateinoigakukun wants to merge 1 commit into
swiftlang:mainfrom
kateinoigakukun:pr-1d9f14ffc242fc8c0f12f4accca7ee470337c1f1

Conversation

@kateinoigakukun

@kateinoigakukun kateinoigakukun commented Aug 21, 2026

Copy link
Copy Markdown
Member

ExtractedNominalType already exposes sourceFilePath, but functions did not carry theirs, so a consumer that groups output by input file (e.g. BridgeJS's per-file imported-API skeletons) could not attribute global functions or accessors to a file. Thread the path through the visitor into every ExtractedFunc; synthesized declarations keep nil.

Depends on #900

ExtractedNominalType already exposes sourceFilePath, but functions did
not carry theirs, so a consumer that groups output by input file (e.g.
BridgeJS's per-file imported-API skeletons) could not attribute global
functions or accessors to a file. Thread the path through the visitor
into every ExtractedFunc; synthesized declarations keep nil.
@kateinoigakukun
kateinoigakukun requested a review from ktoso as a code owner August 21, 2026 13:34
@kateinoigakukun
kateinoigakukun marked this pull request as draft August 21, 2026 13:47
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