mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-06 02:49:56 +00:00
docs(swift): clarify target grouping parity scope
This commit is contained in:
parent
6a4e94993a
commit
4b300dd2f0
1 changed files with 6 additions and 4 deletions
|
|
@ -10,10 +10,12 @@
|
|||
* Module identity: Swift has no in-source `package X` marker. The SPM
|
||||
* target is a directory subtree (`Sources/<Target>/…`). Module membership
|
||||
* is threaded in via the SPM target map (`ctx.resolutionConfig` →
|
||||
* `coerceSwiftTargets`) and grouped by `groupSwiftFilesBySpmTarget`,
|
||||
* replicating legacy `wireSwiftImplicitImports`'s `groupSwiftFilesByTarget`:
|
||||
* files are grouped by SPM target subtree when a package config is present,
|
||||
* else ALL Swift files form one module (`__default__`,
|
||||
* `coerceSwiftTargets`) and grouped by `groupSwiftFilesBySpmTarget`.
|
||||
* The helper preserves the legacy `wireSwiftImplicitImports` bucketing
|
||||
* contract for ordinary layouts (first target wins and unmatched files use
|
||||
* `__default__`) but intentionally fixes #2931's repeated-prefix edge case.
|
||||
* When a package config is present, files are grouped by SPM target subtree;
|
||||
* otherwise ALL Swift files form one module (`__default__`,
|
||||
* single-Xcode-project assumption). Every `.swift` file in the same target
|
||||
* sees its siblings' top-level defs.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue