vlog_semantic: type-position misses reach the workspace overlay
Delivers the Handshake docs/features/type-definition/README.md filed: an unqualified lexical miss written where a TYPE goes — bus_if bus;, my_cls h;, a cross-file typedef — now carries its bare name to the workspace overlay (last, so imports still win), in both spellings: ExternalCandidate, and InheritedCandidate inside extending classes, whose base and count (7,841, bit-identical) are untouched. The mechanism is a new Target::Type emitted only by bind_data_type's unqualified arm; value-position identifiers, disable labels and redeclarations keep their pre-round Target::Lexical behavior — NotFound stays NotFound, and rename keeps refusing them. That value/type split is the round's story: QA rejected the first cut with a kept repro proving a value-position typo could rename an unrelated same-named module cross-file (write-by-coincidence, pre-round refused), and disproved the work log's exposure claim against the pre-round source. The fix is a four-line behavior delta; QA re-killed the regression from three angles and reproduced every corpus figure to the digit. Result over the 860-file corpus: NotFound 1,418 -> 1,256, 418 clean-file references gained a jump target, none lost one, 141 coincidence-answers deliberately given back. The server's stopgap is deleted whole: type_def.rs::indexed_type, qualifier guard included — all 45 type-definition tests green unchanged, and cross-file interface rename from a type window is newly possible and pinned. Corpus formatter results byte-identical (813/820 both trees). New docs/features/overlay-promotion/README.md; the vlog-semantic and workspace-index tables re-measured (the committed baselines had gone stale several rounds ago; both READMEs now carry the three-state table). Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
3bc61f9eab
commit
0e740d77ec
15 files changed
+1686
-182
No files matched your search
@@ -48,10 +48,14 @@ the deviations are stated where they happen.
|
||||
`Resolution::InheritedCandidate { base, paths }` — `base` is the extends
|
||||
path as written (`uvm_component`, `pkg::base`), `paths` are the import
|
||||
paths the lexical walk collected on the way out (both could supply the
|
||||
name; recording both is the honest answer). Nothing chases `base`, in
|
||||
name; recording both is the honest answer), **plus, since 2026-08-26, the
|
||||
use's own name last** (`docs/features/overlay-promotion/README.md`), so a
|
||||
cross-file `interface` or class written as the type of a member of a UVM
|
||||
class reaches the workspace's unit table. Nothing chases `base`, in
|
||||
this file or out of it: a future hover/index round can, without this
|
||||
crate pretending it did inheritance resolution. The fallback applies to
|
||||
*member* uses only — a **unit-name** miss (a `p::x` head, an
|
||||
crate pretending it did inheritance resolution. The overlay may now answer
|
||||
such a reference from `paths` — it never rewrites it, and `base` stays.
|
||||
The fallback applies to *member* uses only — a **unit-name** miss (a `p::x` head, an
|
||||
`extends`/`implements` base) stays `ExternalCandidate` even inside an
|
||||
extending class, because a base class supplies members, not package or
|
||||
class names (QA-found, lead-ruled; pinned by
|
||||
|
||||
Reference in new issue
Block a user