Expand description
Per-language entry-point detection for the find_dead_code MCP tool
(4.1.0).
The trait EntryPointDetector and its per-language implementors
(RustEntryDetector, PythonEntryDetector, GoEntryDetector)
identify the syntactic shapes that act as roots of the call graph: the
BFS reachability walk for dead-code detection seeds from the union of
all EntryPoints emitted across the indexed corpus.
This module is X1 of the 4.1.0 series; the actual reachability walk and
cluster discovery (RepoGraph::compute_dead_code) lands in X2. The MCP
tool wrapper lands in X3. The remaining language detectors land in X4.
See docs/FIND_DEAD_CODE_DESIGN.md Section 2 for the per-language
entry-point survey and Section 3 for the algorithm that consumes this
output.
§Type B (Wired-Stub) self-audit note
Until X2 lands, every public item in this module is consumed only from
the integration tests under crates/ripvec-core/tests/entry_points.rs.
scripts/check_wiring_gaps.sh will report these as Type B findings.
The findings are explicitly deferred to X2 — see the Section 9
PLAN.md entry — not silently dangling. Do not annotate with
#[doc(hidden)]: the doc-visibility surface is part of the X2 contract
and is the intended public API of the dead-code module.
Structs§
- Entry
Point - A single entry-point detection in one source file.
- GoEntry
Detector - Go entry-point detector.
- Python
Entry Detector - Python entry-point detector.
- Rust
Entry Detector - Rust entry-point detector.
Enums§
- Entry
Point Kind - Classification of why a
Definition-shaped item is treated as an entry point for the dead-code reachability walk.
Traits§
- Entry
Point Detector - Per-language entry-point detector.
Functions§
- detector_
for - Return the entry-point detector for a language identifier.