Add scientific and native-extension reference graphs - #4802
Merged
Conversation
# Conflicts: # USER_GUIDE.md # src/CodeIndex/Indexer/References/ReferenceExtractor.CoreExtraction.cs # src/CodeIndex/Indexer/References/ReferenceExtractor.cs # tests/CodeIndex.Tests/QueryCommandRunnerTests.cs # tests/CodeIndex.Tests/golden/status.json
# Conflicts: # DEVELOPER_GUIDE.md # src/CodeIndex/Database/DbContext.cs # src/CodeIndex/Indexer/References/ReferenceExtractor.State.cs
# Conflicts: # src/CodeIndex/Indexer/Symbols/SymbolExtractor.cs # tests/CodeIndex.Tests/golden/status.json
Widthdom
marked this pull request as ready for review
July 24, 2026 14:59
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
.mfileschangelog.d/unreleased/4738.added.mdWhy
These languages were recognized by CodeIndex but did not have complete reference-graph contracts, so calls, imports, type relationships, and module relationships were unavailable or inconsistently resolved. This change adds deterministic, bounded extraction and persistence behavior while keeping ambiguous
.mhandling safe across MATLAB and Objective-C syntax.User impact
references,callers,callees,impact, and related graph queries can now follow supported relationships in these scientific and native-extension languages. Nim identifier identity, Julia index sentinels, D receivers, Ada ranges and forward declarations, and ambiguous.mclassification retain their language-specific semantics.Validation
dotnet build CodeIndex.sln -c Release --no-restore -p:UseSharedCompilation=falsedotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --no-build --no-restore -f net8.0 -p:UseSharedCompilation=false --filter "FullyQualifiedName~Issue4738"— 132 passedmake lintdotnet format CodeIndex.sln --no-restore --verify-no-changes --verbosity minimaldotnet run --project tools/CodeIndex.Changelog -- checkstatus --check --jsoncodex review --base origin/mainadversarial-review rounds; all actionable findings addressed and regression-testedFollow-ups
Fixes #4738