Repository navigation
fix(extract): rewrite alias re-export targets - #1984
Closed
oleksii-tumanov wants to merge 1 commit into
Closed
oleksii-tumanov wants to merge 1 commit into
oleksii-tumanov wants to merge 1 commit into
Conversation
Member
|
Landed on v8 and shipped in 0.9.20 (e5a4b51), cherry-picked to preserve your authorship. Thanks @oleksii-tumanov — aliased named re-exports (export { X as Y } from ...) now rewrite to the canonical symbol node instead of a dangling absolute-path target; external re-exports and owned ids are left untouched. This is the symbol-level residual after #1967/#1976. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
re_exportssymbol targets to their canonical owned nodeFixes #1983
Result
For the issue fixture, path-normalized
re_exportstargets now resolve as:The symbol-level and file-level provenance edges both remain present.
Testing
python -m pytest tests/test_js_import_resolution.py tests/test_import_extension_resolution.py tests/test_extract.py tests/test_extraction_spec_ids.py -q(277 passed, 1 skipped)python -m pytest tests/ -q --tb=short --ignore=tests/test_ollama_retry_cap.py(3357 passed, 33 skipped; optional OpenAI SDK tests were unavailable locally)python -m ruff check graphify/extract.py tests/test_js_import_resolution.py(passed)