MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / leadChain

Function leadChain

__tests__/flow-named-implementation.test.ts:143–146  ·  view source on GitHub ↗

The lead chain, each step as `qualifiedName@file`.

(query: string)

Source from the content-addressed store, hash-verified

141
142/** The lead chain, each step as `qualifiedName@file`. */
143function leadChain(query: string): string[] {
144 const flow = resolveNamedSymbolFlow(cg, query);
145 return (flow.chains[0]?.steps ?? []).map((s) => `${s.node.qualifiedName}@${s.node.filePath}`);
146}
147
148/** The numbered lines of explore's Flow section. */
149async function exploreFlow(query: string): Promise<string[]> {

Calls 2

resolveNamedSymbolFlowFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected