Expand description
Shared call-graph resolution and query contracts.
The index store binds extracted facts through this resolver and implements the reader contract used by navigation commands. The retired SQLite store no longer owns builds, generations, readers, or refresh workers here.
Re-exports§
pub use dead_code_projection::ProjectionCostEstimates;pub use dead_code_projection::ProjectionKind;pub use dead_code_projection::ProjectionVerdict;pub use dead_code_projection::MAX_DELTA_BYTES;
Modules§
- access
- dead_
code_ projection - Work counters for measurement tests: source parses by the store and
resolution-config reads (
package.json,tsconfig.json,Cargo.toml). They are keyed by absolute path because the work runs on build-pool threads, and tests running in parallel must each count only the files under their own fixture root. - disk_
facts - Live-checkout implementation of the resolver’s project-facts seam.
- fact_
answers - Path and configuration facts a resolution consulted, with the answers it got.
- facts
- Membership, configuration and identity inputs for the existing resolver.
- join
- Path-free callgraph extraction and checkout-backed reference resolution.
- method_
call_ facts - What method-call resolution reads about one file: its
FileFacts. - resolution_
facts - Resolver input projections. Digests describe consumed fields, never file bytes.
Structs§
- DbFile
Index - Entry
Facts - What extraction recorded about where execution can start at a symbol.
trace_toandimpactlabel the roots they reach with these facts. The data layer’s call graph records them; today’s database does not, so its nodes carry the defaults. - Line
Index - Project
Index - Reexport
Index - Store
Call Site - Store
Callers Result - Store
Impact Caller - Store
Impact Result - Store
Node - Store
RefSite - One raw ref row located by name; see
CallGraphRead::ref_sites_named. - Store
Unresolved Call - Stored
Edge - Workspace
Crate Prefix Cache
Enums§
- Call
Graph Store Error - Loaded
Index - A file index loaded on demand and shared across resolver threads.
Constants§
- MACRO_
BODY_ CALL_ REF_ KIND - Ref kind for a call written directly in a
macro_rules!template; the macro name is stored inlocal_name. Never resolved into an edge. - MACRO_
MENTION_ REF_ KIND - Ref kind for an identifier inside a Rust macro token tree that could not be parsed as Rust. Never resolved into an edge.
- PROVENANCE_
NAME_ MATCH - PROVENANCE_
TREESITTER - PROVENANCE_
TYPE_ MATCH - PROVENANCE_
VALUE_ REF - TOP_
LEVEL_ SYMBOL - UNRESOLVED_
CALL_ SITE_ COUNT_ LIMIT - Bound the work spent counting unresolved possible callers.
Traits§
- Call
Graph Read - Loaded
File Indexes - File indexes a
ProjectIndexloads when resolution first reaches them, rather than binding every file eagerly. - Resolver
Index - Resolution reads symbols and exports through one interface. Incremental refreshes use the in-memory index, while cold builds query only the rows needed by the active caller from SQLite.
Functions§
- go_
module_ map - The Go module map: each
go.mod’s module path, by the folder it names, from a walk of every folder of the checkout. Every reader of a Go import path depends on it as a whole, through its domain key. - lang_
from_ label - lang_
label - normalize_
file_ path - note_
module_ parents - Notes in
parentsevery moduleindex, the index offile, declares with a target, keeping each target’s smallest parent. - refresh_
lease_ release_ event - relative_
path - rust_
crate_ map - The Rust crate map: each workspace crate’s name, by the prefix of its
source folder, from every
Cargo.tomlof the checkout. Every reader of a crate path depends on it as a whole, through its domain key. - rust_
manifest_ name_ fields - Preserve the manifest resolver’s line-oriented extraction, including its first non-lib name and last lib name semantics; this is not a TOML parser.
- rust_
module_ aliases_ of - [
rust_module_alias_segments] for each import ofdata, in order. - unix_
millis_ now - view_
node_ id - A views store’s node id:
vpplus 16 hex digits for a symbol,vtplus 16 hex digits for a file’s top level. - watch_
readiness_ directory - Watches
dir, without its subdirectories, and hands every event tohandleruntil the returned watcher is dropped.
Type Aliases§
- Module
Parents - Each declared module target’s parent,
(declaring file, module name). - Readiness
Watcher - Readiness notifications for one cache directory. macOS uses a vnode watch so unlinking a lease wakes the waiter even if FSEvents coalesces it away. Windows uses AFT’s directory watcher to avoid re-arming notify reads on closed handles. Other platforms keep notify’s watcher.
- Result
- Rust
Module Aliases - What [
rust_module_alias_segments] returns for one import: each local module name it binds, with the path it names.