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
4b300dd2f0
commit
9a5637dcfe
1 changed files with 7 additions and 6 deletions
|
|
@ -14,12 +14,13 @@
|
|||
* Module identity: Swift has no in-source `package X` marker. Module
|
||||
* membership is the SPM target *subtree* (`Sources/<Target>/…`), threaded
|
||||
* in via the SPM target map (`resolutionConfig` → `coerceSwiftTargets`)
|
||||
* and grouped by `groupSwiftFilesBySpmTarget` — replicating legacy
|
||||
* `groupSwiftFilesByTarget`. With no scanned source dir the map is null
|
||||
* and all files form one `__default__` module (single-Xcode-project
|
||||
* assumption). Every pair of distinct `.swift` files in the same module
|
||||
* gets a directed IMPORTS edge in both directions (whole-module
|
||||
* visibility is symmetric).
|
||||
* and grouped by `groupSwiftFilesBySpmTarget`. The helper preserves the
|
||||
* legacy `groupSwiftFilesByTarget` bucketing contract for ordinary layouts
|
||||
* while intentionally fixing #2931's repeated-prefix edge case. With no
|
||||
* scanned source dir the map is null and all files form one `__default__`
|
||||
* module (single-Xcode-project assumption). Every pair of distinct `.swift`
|
||||
* files in the same module gets a directed IMPORTS edge in both directions
|
||||
* (whole-module visibility is symmetric).
|
||||
*
|
||||
* Node identity + edge construction mirror the generic `emitImportEdges`
|
||||
* convention (`graph-bridge/imports-to-edges.ts`): `generateId('File', path)`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue