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

Function nodesIn

src/graph/symbol-references.ts:296–303  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

294
295 const fileNodes = new Map<string, Node[]>();
296 const nodesIn = (filePath: string): Node[] => {
297 let nodes = fileNodes.get(filePath);
298 if (!nodes) {
299 try { nodes = cg.getNodesInFile(filePath); } catch { nodes = []; }
300 fileNodes.set(filePath, nodes);
301 }
302 return nodes;
303 };
304 /**
305 * The narrowest symbol holding `line` in `source`'s file: a call edge's
306 * source IS the caller, but a reference from a class may sit in one of its

Callers 2

ownerAtFunction · 0.85
collectReferenceSitesFunction · 0.85

Calls 3

getMethod · 0.65
getNodesInFileMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected