Skip to main content

Module entry_points

Module entry_points 

Source
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§

EntryPoint
A single entry-point detection in one source file.
GoEntryDetector
Go entry-point detector.
PythonEntryDetector
Python entry-point detector.
RustEntryDetector
Rust entry-point detector.

Enums§

EntryPointKind
Classification of why a Definition-shaped item is treated as an entry point for the dead-code reachability walk.

Traits§

EntryPointDetector
Per-language entry-point detector.

Functions§

detector_for
Return the entry-point detector for a language identifier.