Repository navigation
Swift: a scoped import whose name is declared in several files of the target links each (Part of #3798) - #7005
Conversation
… target links each (Part of #3798) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #7005 @ a82b563: 1 failed check(s) == graph-accuracy-audit (failure) -- real |
…units (Part of #3798) Multi-file linking exposed nested types (struct BuildParameters inside an enum) as declarations: swift-package-manager precision 100 -> 98.0 (15 FP). Back to 100.0. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #3798. A Swift scoped import
import struct Mod.Namewhose name is declared in several files of targetMod(typicallyextension Namein other files) drew no edge, because_resolve_swift_scopedrefused any ambiguous hit. It now draws one edge per declaring file in the target.Changes
network_risk_sensor.py: hit collection split into_swift_scoped_hits(list);_resolve_swift_scopedkeeps the single-file contract for other callers;_resolve_edgeslinks every hit through its existing multi-target loop (one edge per file, weight 1.0 each, deduped).docs/import_rule_contract.md: Swift rule text updated.Class / Sibling gaps
Class: a Swift scoped import whose declaration spans several files of the named target. Handled here: direct name, nested-name owner fallback, file-named-after-type fallback, decoy filters. Golden masters (both legs) unchanged;
pr_gates --fastand--ratchetspass.Sibling gaps (not done): (1) the test-coverage mapper still uses the single-target resolve; (2) Swift
namespace_importsaliases stay single-target; (3) SwiftPM targets with a custompath:in Package.swift are not located.Remaining slices
None for this mechanism.
🤖 Generated with Claude Code