Skip to content

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

Merged
ktoso merged 2 commits into
swiftlang:mainfrom
kateinoigakukun:pr-1d9f14ffc242fc8c0f12f4accca7ee470337c1f1
Aug 24, 2026
Merged

[SwiftExtract] Record the source file path on ExtractedFunc#902
ktoso merged 2 commits 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

@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
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 force-pushed the pr-1d9f14ffc242fc8c0f12f4accca7ee470337c1f1 branch from d22cde7 to f54168e Compare August 24, 2026 05:15
@kateinoigakukun
kateinoigakukun marked this pull request as ready for review August 24, 2026 05:15
Comment thread Sources/SwiftExtract/ExtractedDecls.swift Outdated
Comment thread Sources/SwiftExtract/ExtractedDecls.swift Outdated

@ktoso ktoso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@ktoso
ktoso merged commit 1d24b61 into swiftlang:main Aug 24, 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