Commit Graph
4 Commits
Author SHA1 Message Date
ayushcodes10 7dbc668933 Add a regression test for a genuinely external module reference
A module with no matching definition anywhere in the corpus, stdlib
or a hex dependency, must stay an external reference rather than
getting fabricated.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit da5e23a921)
2026-09-16 14:47:21 +01:00
ayushcodes10 50a65891f4 Add a regression test for the god node guard on a duplicate name
Two different files each declaring a module with the same bare name
must leave the reference exactly as extracted rather than guessing
which one the caller meant.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit 690d387626)
2026-09-16 14:47:21 +01:00
ayushcodes10 9a5b2dd7f9 Add a same file negative control test
A module importing something declared in the same file already
resolved before this fix, since both ids share the same stem, and
must keep working exactly as before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit 8320da005a)
2026-09-16 14:47:21 +01:00
ayushcodes10 7406aae5e6 Add a regression test for the issue's own repro
A module aliased from a different file now resolves to that module's
real, non dangling node.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit 53877c6874)
2026-09-16 14:47:21 +01:00