Skip to content

feat: language expansion + cora callers/impact (#266, #268)#282

Merged
ajianaz merged 1 commit into
developfrom
feat/v0.7-batch
Jun 14, 2026
Merged

feat: language expansion + cora callers/impact (#266, #268)#282
ajianaz merged 1 commit into
developfrom
feat/v0.7-batch

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

v0.7 Batch — Languages + Call Graph

#268 — Language Expansion (6 → 13 languages)

Added 7 new language extractors for cora index:

Language Symbols Extracted
Ruby def (method), class, module
PHP function, class, interface
Swift func, class/struct/enum/protocol
Scala def, class/object/trait
Lua function
Zig fn, const

5 new tests (one per language).

#266cora callers / cora impact

cora callers execute_commit        # who calls this?
cora impact open_index --depth 3   # what breaks if I change this?
cora callers my_func --json        # JSON output

Infrastructure:

  • src/index/graph.rs — CallEdge, find_callers, find_callees, impact_analysis
  • SQLite call_graph table (schema v1)
  • Recursive reverse traversal with depth control

Note: Edge extraction wiring (populating call_graph during index) is a separate phase — currently the table exists and CLI works but returns empty until call edges are extracted at index time. This is intentional: call edge extraction needs cross-file reference resolution which builds on the v0.6 index foundation.

Tests

  • 552 total (+9 new: 5 language + 4 graph)
  • Clippy clean, fmt clean

#268 — Language expansion (6 → 13 languages):
- Ruby (def, class, module)
- PHP (function, class, interface)
- Swift (func, class/struct/enum/protocol)
- Scala (def, class/object/trait)
- Lua (function)
- Zig (fn, const)
- 5 new tests (ruby, php, swift, lua, zig)

#266 — cora callers / cora impact:
- src/index/graph.rs — CallEdge, find_callers, find_callees, impact_analysis
- SQLite call_graph table (schema v1)
- CLI: cora callers <symbol> [--json]
- CLI: cora impact <symbol> [--depth N] [--json]
- Recursive reverse traversal with depth control
- 4 unit tests (store/find/clear/impact)
- Note: edge extraction wiring to index pipeline = next phase

552 tests pass, clippy clean.
@ajianaz
ajianaz merged commit 83a5f99 into develop Jun 14, 2026
10 checks passed
@ajianaz
ajianaz deleted the feat/v0.7-batch branch June 14, 2026 06:38
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.

1 participant