Add registry-backed language extraction - #29
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Extends the existing structured Imports and Refs extraction APIs to support additional languages by adding registry-backed import/reference extractors and wiring them into the existing dispatch logic.
Changes:
- Adds language-specific import extraction for Dart, Swift, Haskell, Perl, Lua, R, Julia, OCaml, Crystal, Nim, Zig, and D.
- Adds language-specific reference extraction for the same set (plus some via shared member-access helpers).
- Adds test coverage for the new registry-backed import/ref extractors and updates README language coverage.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| ref.go | Adds new language cases for Refs and generalizes member-ref extraction via memberRefsWithFields. |
| ref_registry.go | Implements registry-backed reference extraction for Dart, Swift, Haskell, OCaml, and D. |
| ref_registry_test.go | Adds tests validating Refs behavior for the newly supported languages. |
| import.go | Adds new language cases for Imports and introduces shared importStatement constant. |
| import_registry.go | Implements registry-backed import extraction for Dart, Swift, Haskell, Perl, Lua, R, Julia, OCaml, Crystal, Nim, Zig, and D. |
| import_registry_test.go | Adds tests validating Imports behavior for the newly supported languages. |
| README.md | Updates documented language coverage for import + reference extraction. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
andrew
force-pushed
the
registry-imports
branch
from
August 11, 2026 10:20
551d32a to
093dae6
Compare
andrew
force-pushed
the
registry-imports
branch
from
August 11, 2026 10:35
093dae6 to
518a507
Compare
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.
Extends the structured
ImportsandRefsAPIs from #28 to Dart, Swift, Haskell, Perl, Lua, R, Julia, OCaml, Crystal, Nim, Zig, and D.Covers module aliases, selected imports, side-effect forms, and each language's qualified member access.
Depends on #28.