ayushcodes10
c5ad8d6852
Add a regression test for unexported require destructures
...
Pins the exact interaction the fix commit already describes: a
CommonJS const equals require of a module destructure must still
resolve to exactly one EXTRACTED calls edge, not zero, confirming
the export only gate keeps it out of the per name split entirely.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017qfdzgbA5KedGEjD1AayNh
(cherry picked from commit e9c10258a7 )
2026-09-14 18:49:19 +01:00
ayushcodes10
93820c9c01
Add a test for rest pattern skip in destructured exports
...
A rest element does not correspond to one discrete exported name, so
it must be skipped rather than mangled into a bogus node, and its
sibling names must still extract cleanly.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017qfdzgbA5KedGEjD1AayNh
(cherry picked from commit 7091925a3a )
2026-09-14 18:49:19 +01:00
ayushcodes10
7be28b1ca7
Add a test for renamed property export naming
...
A renamed destructured property must export under its property key,
never under the local alias it is bound to, since that alias is not
what an importer would ever bind by.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017qfdzgbA5KedGEjD1AayNh
(cherry picked from commit 8fae543236 )
2026-09-14 18:49:19 +01:00
ayushcodes10
37b3db9654
Add a test for cross file resolution through a split export
...
A single name import must resolve to its own split node, and a call
made through it must resolve too, not just the import edge on its
own.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017qfdzgbA5KedGEjD1AayNh
(cherry picked from commit 78a3ca4bf7 )
2026-09-14 18:49:19 +01:00
ayushcodes10
025caeaa93
Add a test for the per name destructured export split
...
Four destructured names on one export statement must each get their
own node, and the old combined pattern syntax label must not survive
anywhere in the output.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017qfdzgbA5KedGEjD1AayNh
(cherry picked from commit 3f62c3d85c )
2026-09-14 18:49:19 +01:00