Skip to main content

Module graph

Module graph 

Source
Expand description

Entity dependency graph — cross-file reference extraction.

Implements a two-pass approach inspired by arXiv:2601.08773 (Reliable Graph-RAG): Pass 1: Extract all entities, build a symbol table (name → entity ID). Pass 2: For each entity, extract identifier references from its AST subtree, resolve them against the symbol table to create edges.

This enables impact analysis: “if I change entity X, what else is affected?”

Structs§

EntityGraph
A complete entity dependency graph for a set of files.
EntityInfo
Minimal entity info stored in the graph.
EntityRef
A reference from one entity to another.

Enums§

RefType
Type of reference between entities.