Repository navigation
Conversation
code-review-graph reviewOverall risk: 0.30 (LOW) — 3 changed function(s)/class(es), 0 affected flow(s), 1 test gap(s) Risk-scored changes
Test gaps
Token savings: this graph-backed report used ~164,026 fewer tokens (~100%) than reading every changed file in full (estimated, chars/4 approximation). Powered by code-review-graph — local-first analysis; no code leaves the CI runner. |
|
Integrated on |
|
Merged into |
Port the reviewed token-efficiency implementation with targeted regression coverage. Source-PR: tirth8205#873 Maintainer corrections and scope extraction applied where needed.
Summary
_extract_importwas fixed to read a Kotlinimport_headeridentifier child instead of folded node text, but_collect_import_namesstill parsed raw text. When tree-sitter folded a trailing KDoc into the final import, the per-name import map stored a key containing the comment, so calls to that imported function remained unresolved.The Kotlin branch now builds import bindings from AST children:
import_alias→ local alias;Java import handling remains unchanged.
Fixes #862.
Testing
import dep.helper, a trailing KDoc, and ahelper()call.main, the call target stayed unresolved ashelper; with the fix it resolves todep/Helper.kt::helper.pytest tests/test_pr862_edges.py tests/test_kotlin_imports.py tests/test_pr824_edges.py -q— 23 passedruff checkon changed files — passesgit diff --check— passes