/** * Per-function CFG / data-flow overlay helper — extracted from `call-graph.ts` * (change: modularize-call-graph-builder; analyzer: StableCallGraphBarrel). * * `buildCfgFor` wraps `buildFunctionCfg` (./cfg.js) with the body-resolution + * fail-soft policy the call-graph builder needs: it descends a declaration wrapper * (a `const f = () => {}`, a Python `@decorator`'d def) to the node that actually * owns the body, and swallows any CFG-builder surprise so the additive overlay can * never drop a function's base node/edge data. File-internal (never on * `call-graph.ts`'s public surface); imported back by the builder, so the surface * is unchanged. */ import { type FunctionCfg, type CfgNode } from './cfg.js'; /** * Build the per-function CFG + reaching-definitions overlay for one function * while its parse tree is still live. `fnNode` is the node captured as the * function (may be a declaration wrapper, e.g. a `const f = () => {}` * lexical_declaration); this resolves to the node that actually owns the body * so arrow/function-expression bodies and params are analyzed too. Fail-soft: * returns undefined for unsupported languages or any analysis surprise. */ export declare function buildCfgFor(fnNode: CfgNode, language: string): FunctionCfg | undefined; //# sourceMappingURL=call-graph-cfg.d.ts.map