You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(sv): validate module and interface names without interface ports #1497
When a source contains both interface I and module I, but interfaces are used only as local instances, package setup can skip the shared namespace check. ParsedSource::analyze_packages_impl invokes plan_interfaces only if an InterfacePortHeader exists; its earlier insertion detects duplicate interfaces only. A declaration may consequently be published as a module while I i() is bound as the interface.
Code inspection at f3b6a2423e128d588afabf85c6c42806439435dd: the guard is in crates/celox-sv-analyzer/src/parsed.rs; shared declaration-name validation is in ast/interfaces.rs (Design::collect).
Acceptance criteria:
Validate the shared module/interface namespace whenever relevant interface declarations exist, including sources with no interface ports.
Add diagnostic regressions for both declaration orders and local-instance-only use.
Preserve selective analysis of unrequested interface semantics; namespace validation must not reintroduce eager rejection of unrelated unsupported interfaces.
Status: review finding checked against the current source; no new executable reproduction was run for this tracking task. Confirm the reproducer before implementing the fix.
Activity
fix(sv): validate module and interface names without interface ports
fix(sv): validate module and interface names without interface ports
fix(sv): validate module and interface names without interface ports