Skip to content

fix: exclude localparams from parameter overrides#218

Merged
hongjr03 merged 1 commit into
masterfrom
fix/parameter-localparam-overrides
Jun 12, 2026
Merged

fix: exclude localparams from parameter overrides#218
hongjr03 merged 1 commit into
masterfrom
fix/parameter-localparam-overrides

Conversation

@hongjr03

@hongjr03 hongjr03 commented Jun 2, 2026

Copy link
Copy Markdown
Member

Summary

This change models SystemVerilog parameter overridability in HIR instead of filtering only at individual IDE call sites.

HIR now records whether a parameter declaration is semantic parameter or localparam, keeps parameter-port context, and mirrors the slang rule that body parameter declarations become local when the module has a parameter port list. Code actions, completion, signature help, inlay hints, rendering, and named parameter resolution now consume that shared overridability fact.

Validation

  • cargo fmt --all -- --check
  • cargo xtask check-config-artifacts
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • git diff --check origin/master..HEAD

@hongjr03 hongjr03 marked this pull request as ready for review June 2, 2026 14:14
@hongjr03 hongjr03 requested a review from roife June 2, 2026 14:14
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Docs preview: https://vide.pascal-lab.net/preview/pr-218/

@hongjr03 hongjr03 marked this pull request as draft June 4, 2026 05:37
@hongjr03 hongjr03 force-pushed the fix/parameter-localparam-overrides branch from 9693ecc to 0471877 Compare June 12, 2026 12:58
@hongjr03 hongjr03 marked this pull request as ready for review June 12, 2026 13:00
@hongjr03 hongjr03 merged commit 21a4ac7 into master Jun 12, 2026
12 checks passed
@hongjr03 hongjr03 deleted the fix/parameter-localparam-overrides branch June 12, 2026 13:01
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.

1 participant