Skip to main content

Module callgraph_store

Module callgraph_store 

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

DbFileIndex
EntryFacts
What extraction recorded about where execution can start at a symbol. trace_to and impact label 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.
LineIndex
ProjectIndex
ReexportIndex
StoreCallSite
StoreCallersResult
StoreImpactCaller
StoreImpactResult
StoreNode
StoreRefSite
One raw ref row located by name; see CallGraphRead::ref_sites_named.
StoreUnresolvedCall
StoredEdge
WorkspaceCratePrefixCache

Enums§

CallGraphStoreError
LoadedIndex
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 in local_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§

CallGraphRead
LoadedFileIndexes
File indexes a ProjectIndex loads when resolution first reaches them, rather than binding every file eagerly.
ResolverIndex
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 parents every module index, the index of file, 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.toml of 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 of data, in order.
unix_millis_now
view_node_id
A views store’s node id: vp plus 16 hex digits for a symbol, vt plus 16 hex digits for a file’s top level.
watch_readiness_directory
Watches dir, without its subdirectories, and hands every event to handler until the returned watcher is dropped.

Type Aliases§

ModuleParents
Each declared module target’s parent, (declaring file, module name).
ReadinessWatcher
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
RustModuleAliases
What [rust_module_alias_segments] returns for one import: each local module name it binds, with the path it names.