Skip to main content

Module callgraph

Module callgraph 

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

CallGraph
Worktree-scoped call graph with lazy per-file construction.
CallSite
A call or function-value dependency site owned by a symbol.
CallTreeNode
A node in the forward call tree.
CallTreeWorkGap
DataFlowHop
A single hop in a data flow trace.
FileCallData
Per-file call data: call sites grouped by containing symbol, plus exported symbol names and parsed imports.
ModuleResolutionMemo
Snapshot-scoped filesystem memo used by the staged cold-build resolver.
RustCrateRootMemo
SymbolMeta
Per-symbol metadata for entry point detection (avoids re-parsing).
TraceDataResult
Result of a trace_data query — tracks how an expression flows through variable assignments and function parameters.
TraceHop
A single hop in a trace path.
TracePath
A complete path from an entry point to the target symbol (top-down).
TraceToResult
Result of a trace_to query.
TraceToSymbolCandidate
Candidate target location for an ambiguous trace_to_symbol request.
TraceToSymbolHop
A single hop in a trace_to_symbol path.
TraceToSymbolResult
Result of a trace_to_symbol query.

Enums§

CallSiteKind
EdgeResolution
Result of resolving a cross-file call edge.

Constants§

CALL_TREE_NODE_BUDGET
CALL_TREE_WORK_GAP

Functions§

build_file_data
Build call data for a single file.
build_file_data_from_index
Like build_file_data_from_tree, with index, the tree’s syntax index, answering every walk and parent or sibling lookup. With outline, 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 of candidates that is a workspace root. A name several members share maps to the member [resolve_workspace_package] finds. Read through facts without 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
name qualified by the inline modules around node.
rust_trait_members
walk_could_include
Whether walk_project_files can 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