Expand description
Path-free callgraph extraction and checkout-backed reference resolution.
The index store keeps immutable parse payloads. Binding a payload to its
checkout path and resolving cross-file references uses the checkout’s
ProjectFacts, not a separate manifest or artifact store.
Modules§
- dispatch
- Source-independent method linking for manifest views. Extraction records only syntactic receiver evidence; joining never reparses or opens checkout files.
- record
- The stored form of what one file’s resolution recorded: its binding and its dispatch type targets, with the surface queries and answers that decide whether the resolution can be reused.
- single_
walk - The call-graph extractor: one walk over each file’s syntax tree.
- syntax_
index - One walk over a file’s syntax tree, shared by every extraction pass.
Structs§
- AstPreorder
Node - Tree-sitter node position in canonical pre-order traversal order.
- Blob
Import - A parsed import retained in the blob so binding can resolve aliases without re-reading source text.
- BlobRef
- An unresolved reference extracted from one source blob.
- Blob
Symbol - A symbol captured by extraction. Its ordinal is the source AST node’s pre-order position, not a per-path or database-generated identifier.
- Caller
RefKey - The stable identity of one bound blob reference. The path breaks ties when identical content is bound at more than one manifest path.
- Config
Blob - Raw source is retained only for configuration files and ignore-list members. These blobs are parsed during joining because their interpretation depends on the manifest view they configure.
- Derived
Row - A logical derived row. It is intentionally independent of SQLite rowids and other physical database details.
- Dispatch
Type Target Trace - What resolving one Rust file’s receiver type names consulted: every resolver index answer it read, and every path whose presence it probed. While each recorded answer is unchanged and no probed path was added or removed, the file’s receiver type targets are unchanged too, because the file’s own parse blob is the only other input.
- Dispatch
Type Targets - One Rust file’s receiver type targets, keyed by the type name as written.
- Parse
Blob - Path-free parse output stored for a regular source file.
- View
Binding Dependencies - Bound reference dependencies and resolver probes are generation-specific, unlike parse blobs. The owner must invalidate these whenever a probed path changes.
- View
Binding Facts - Memo answers and their provenance belong to one immutable manifest join. Replaying provenance on hits keeps missing candidates and facts attributable.
Enums§
- Blob
RefKind - The parse-level class of a reference. No target path is present in a blob.
- Callgraph
Blob - The immutable callgraph blob payload. A regular source blob has parse output only; a configuration blob is intentionally raw so its manifest-scoped resolver settings can be interpreted during assembly.
- Manifest
Join Error - An error raised while decoding parse payloads or resolving checkout references.
- Resolution
Status - The manifest-derived resolution state for one reference.
- View
Surface Query - Consumer-specific export surface: record the answers the resolver actually used, rather than invalidating every caller when an unrelated export changes. Querying these answers against a new index is cheaper than walking references and is sound only while the caller’s immutable parse blob remains unchanged.
Constants§
- SUPERSEDED_
PUBLISH - The reason a view publication fence gives when it refuses a publication
because the checkout’s view owner was superseded. A cancelled join
(
ManifestJoinError::Cancelled) reports the same text. - VIEW_
CONFIG_ MEMBERSHIP_ DOMAIN - Recorded by today’s views for every config file a resolution found, and by every JavaScript workspace member list; set when any config file is added or removed.
- VIEW_
GO_ MODULES_ DOMAIN - The Go module map: every
go.modand the module path it declares. A reader records this one key instead of the map’s inputs, so its recorded inputs are the same whichever reader built the map, and an edit that changes the map (ago.modadded, removed or rewritten) re-checks every reader through theGoPackageanswers they recorded. - VIEW_
GO_ PACKAGE_ DOMAIN - Recorded by every Go package file listing. A listing reads the directory,
not the files in it, so a file added to the package is no recorded
dependency of the callers that listed it; the owner rechecks this domain
whenever a
.gofile is added or removed. - VIEW_
JS_ WORKSPACES_ DOMAIN - The prefix of the data layer’s JavaScript workspace package keys
(
js_package_key). The data layer keeps every other config probe as a path and a recorded answer, so it does not useVIEW_CONFIG_MEMBERSHIP_DOMAIN. - VIEW_
RUST_ CRATES_ DOMAIN - The Rust workspace’s crate names and source folders, read from every
Cargo.toml. Recorded likeVIEW_GO_MODULES_DOMAIN: one key for the map, set by anyCargo.tomladded, removed or rewritten, with the answers each reader used kept asCratequeries. Today’s views set this key; the data layer setsrust_crate_keyfor each crate name whose entry changed instead.
Functions§
- bind_
file - Binds one file’s parse against its checkout’s path facts. Returns the
file’s resolver surface, and its binding: which paths each reference’s
binding probed, and the paths and configuration fields binding consulted.
With
cache, reference dependencies come from that earlier binding of the same parse instead of being recorded again. - dispatch_
type_ targets_ for - The project files the type names of one Rust, TypeScript or JavaScript file resolve to, for method-call resolution, with the surface queries and path probes they consulted.
- extraction_
error - Keep grammar availability typed across the index-store extraction boundary; it is neither a malformed source file nor a successful empty record.
- finish_
binding - Fills a binding’s summary fields once binding and resolution are done: every configuration field it consulted, whether any configuration read was opaque, and every path its answers depend on.
- js_
package_ key - The key a reader records for looking up the package
nameamong the members of the JavaScript workspace atroot(checkout-relative,/separators), found or not. Finding it walks the workspace’s member folders and reads each member’spackage.jsonname; recording those reads in every file with a bare import cost a monorepo about 1,300 recorded reads per file. The key replaces them: apackage.jsonorpnpm-workspace.yamladded, removed or edited, or a symlink changed, sets the key of each name whose resolved member changed, so only the files that looked that name up are bound again. - language_
id - resolve_
file - Resolves every reference of one caller against
index, adding one row per reference torows. Records inbindingthe surface queries resolution asked with their answers, the paths it consulted beyond binding’s, and the configuration fields it read. Returns how many distinct bindings it resolved (references sharing a binding are resolved once). - rust_
crate_ key - The key a reader records for looking up the workspace crate
name, found or not. ACargo.tomledit that adds, removes, renames or moves a crate then reaches only the files that looked that name up, instead of every Rust file: adding a crate nothing imports rebinds nothing, and a file whoseusenamed a crate that did not exist yet is rebound when it appears. - rust_
module_ key - The key of what Rust files at
segmentsundersrc_prefixcontain, for inline module lookups that consult those files. A Rust file added, removed or edited sets the key of its own module path. - rust_
module_ key_ for_ file rust_module_keyfor the Rust file atpath: the key its surface changes set.- rust_
module_ name_ key - One module-name lookup in its declaring file, including an absent name.
- view_
resolution_ config - Configuration files read by the manifest resolver’s workspace/package and tsconfig lookup (callgraph.rs), and Rust crate lookup (callgraph_store). Directory discovery uses a compact membership domain for these names. Their content changes invalidate only callers that consulted changed fields.