Skip to content

Add registry-backed language extraction - #29

Merged
andrew merged 2 commits into
mainfrom
registry-imports
Aug 11, 2026
Merged

Add registry-backed language extraction#29
andrew merged 2 commits into
mainfrom
registry-imports

Conversation

@andrew

@andrew andrew commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Extends the structured Imports and Refs APIs 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ref.go
Comment thread ref_registry.go Outdated
Comment thread import_registry.go
@andrew
andrew changed the base branch from imports-refs to main August 11, 2026 10:21
@andrew
andrew merged commit b0ef1e7 into main Aug 11, 2026
7 checks passed
@andrew
andrew deleted the registry-imports branch August 11, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants