Skip to main content

Module builder

Module builder 

Source
Expand description

Builder: orchestrates parse → model → load phases.

Modules§

call_edges
CALLS edge resolution — scope-aware name matching with import context.
js_workspace
TS/JS workspace resolution table — tsconfig.json paths aliases and workspace package names.
load
Phase 3: load parsed entities into a KnowledgeGraph.
other_edges
USES_TYPE, CONTAINS, IMPORTS, FFI_EXPOSES edges.
routes
Web-framework route extraction.
semantic_edges
Exact-qualified semantic edges emitted by parsers with richer site models.
type_edges
IMPLEMENTS / EXTENDS / HAS_METHOD edges from TypeRelationships.

Functions§

run
Legacy entry — directory-only, used by the initial smoke test.
run_with_options
Public build() entry point matching the Python API — returns just the graph. Thin wrapper over run_with_options_stats; the stats it drops are the CALLS-resolution counters consumed by the code_tree_stats dev bin and the re-resolution phases. Single implementation, two entry points.
run_with_options_stats
Full build() implementation — also returns call_edges::CallResolutionStats.