Skip to main content

walk_source

Function walk_source 

Source
pub fn walk_source(path: &Path, source: &str) -> Vec<InventoryEntry>
Expand description

Parse source at path and return every function as an InventoryEntry.

Only plain JS/TS/JSX/TSX sources are supported. Callers should skip SFC, Astro, MDX, CSS, HTML, and other non-JS inputs; those use different instrumentation paths and are out of scope for the first inventory release.

Errors are swallowed: the returned vector covers whatever could be parsed. This mirrors how the rest of the extract pipeline handles partial parse results.