GitNexus/gitnexus/src
Abhigyan Patwari ab0b03846d
fix(go): type receivers through package-qualified declared types (#3651)
`normalizeGoTypeName` cuts the package qualifier from field, parameter and
local types, so `*models.User` is stored as `User` and the bare lookup either
refuses the name or binds the wrong package once two packages declare a
`User`. A new optional `ScopeResolver.qualifiedTypeLookupSpelling` hook
recovers `models.User` from the written spelling; receiver typing (compound
receivers, simple bindings and callable-value-flow method values) tries it
first, grounded on the qualifier's import with the unique-name fallback off,
and falls back to the bare lookup on any miss. The qualifier is read from the
module scope so `vault *vault.Vault` cannot shadow its import, and a chain
step keeps a binding's own written spelling so a binding whose type the step
replaced never borrows another binding's package.

Corpus A/B against main: no edge removed or retargeted outside the new
fixture; 19 Go edges added and 13 Go drops cleared. Receiver bench: call drops
153 -> 148, all kinds 221 -> 208.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 12:37:02 +00:00
..
cli fix(rename): apply the exact reviewed edit plan (#3617) 2026-10-17 19:38:01 +01:00
config fix(config): honor nested .gitignore files during repository walks (#3440) 2026-10-03 09:55:47 +00:00
core fix(go): type receivers through package-qualified declared types (#3651) 2026-10-21 12:37:02 +00:00
lib fix(mcp): stop scaling the detect_changes query with the diff's hunk count (#2915) (#2930) 2026-08-12 14:51:17 +01:00
mcp fix(routes): scope inline Express handlers and report api_impact lower bound (#3643) 2026-10-20 17:44:08 +01:00
server fix(embeddings): reuse completed vectors after interrupted analyze (#3463) 2026-10-04 09:26:02 +01:00
storage feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
types fix(resolution): label fallback guesses and preserve export visibility (#3190) 2026-09-10 11:38:19 +01:00
utils perf(lock): probe this process's own start time once (#3222) 2026-09-08 19:06:03 +01:00