Expand description
Call graph engine: cross-file call resolution and forward traversal.
Builds a lazy, worktree-scoped call graph that resolves calls across files using import chains. Supports depth-limited forward traversal with cycle detection.
Modules§
- python
- Python imports use lexical bindings and dotted module paths, not JS specifiers.
Structs§
- Call
Graph - Worktree-scoped call graph with lazy per-file construction.
- Call
Site - A call or function-value dependency site owned by a symbol.
- Call
Tree Node - A node in the forward call tree.
- Call
Tree Work Gap - Data
Flow Hop - A single hop in a data flow trace.
- File
Call Data - Per-file call data: call sites grouped by containing symbol, plus exported symbol names and parsed imports.
- Module
Resolution Memo - Snapshot-scoped filesystem memo used by the staged cold-build resolver.
- Rust
Crate Root Memo - Symbol
Meta - Per-symbol metadata for entry point detection (avoids re-parsing).
- Trace
Data Result - Result of a
trace_dataquery — tracks how an expression flows through variable assignments and function parameters. - Trace
Hop - A single hop in a trace path.
- Trace
Path - A complete path from an entry point to the target symbol (top-down).
- Trace
ToResult - Result of a
trace_toquery. - Trace
ToSymbol Candidate - Candidate target location for an ambiguous
trace_to_symbolrequest. - Trace
ToSymbol Hop - A single hop in a
trace_to_symbolpath. - Trace
ToSymbol Result - Result of a
trace_to_symbolquery.
Enums§
- Call
Site Kind - Edge
Resolution - Result of resolving a cross-file call edge.
Constants§
Functions§
- build_
file_ data - Build call data for a single file.
- build_
file_ data_ from_ index - Like
build_file_data_from_tree, withindex, the tree’s syntax index, answering every walk and parent or sibling lookup. Withoutline, also fills it with the file’s symbols as the parser extracts them, before the call graph qualifies, adds or merges any. - build_
file_ data_ from_ source - build_
file_ data_ from_ source_ with_ lang - build_
file_ data_ from_ tree - Reuse a caller-owned syntax tree and position index during blob extraction.
- clear_
workspace_ package_ cache - clear_
workspace_ package_ cache_ under - Drop the workspace and crate caches for one project root only. The caches are process-wide and the daemon serves dozens of roots that bind about ten times a minute; clearing everything on each configure gave the caches a lifetime of seconds, so every Tier-2 rescan re-walked every workspace under every root. A configure is a signal about its own root’s manifests, and the keys are canonical paths, so containment is the right scope.
- extract_
parameters - Extract parameter names from a function signature string.
- is_
bare_ callee - is_
entry_ point - Determine whether a symbol is an entry point.
- js_
workspace_ package_ map - Each JavaScript workspace package’s resolved member folder, by the key a
reader records for looking its name up (
js_package_key), for each ofcandidatesthat is a workspace root. A name several members share maps to the member [resolve_workspace_package] finds. Read throughfactswithout a memo, so a map built before and after a change compares what the resolver would find in each. - parse_
pnpm_ workspace_ patterns - project_
walk_ entry_ is_ included - resolve_
module_ path - Resolve a module path (e.g. ‘./utils’) relative to a directory.
- resolve_
module_ path_ with_ memo - resolve_
reexported_ symbol_ target - rust_
crate_ root_ file_ for_ caller - rust_
import_ local_ names - Reuse the resolver’s use-tree expansion when a caller only needs the names introduced into scope, without resolving or reading imported modules.
- rust_
import_ paths - The local name and full path of each explicit Rust use-tree leaf.
- rust_
module_ qualified_ name namequalified by the inline modules aroundnode.- rust_
trait_ members - walk_
could_ include - Whether
walk_project_filescan yield the file at this root-relative path (/or\separators), judged from the path alone: a supported source type, no hidden component, no always-excluded directory and no OS metadata file name. Ignore files are not consulted; callers pass paths that an ignore-respecting walk has already produced. - walk_
project_ files - Walk project files respecting .gitignore, excluding common non-source dirs.
- walk_
project_ files_ in_ scope_ while - Walk the requested project subtrees, stopping before the next raw walker advance when the caller’s budget expires. Starting at the project root preserves ignored-parent and nested ignore rules; pruning before descent avoids traversing unrelated subtrees.
- walk_
project_ files_ while - Stop before advancing the directory iterator, not just between source files. Unsupported files and directories still consume a caller’s walk budget.
- walk_
project_ paths_ while - Walk all non-excluded files under a root, using the same bounded iterator and ignore rules as the source-file census. Caller-excluded paths are pruned before descent.
- workspace_
patterns