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

Function node

__tests__/import-default-as.test.ts:166–170  ·  view source on GitHub ↗
(file: string, name: string)

Source from the content-addressed store, hash-verified

164 });
165
166 const node = (file: string, name: string) => {
167 const found = cg.getNodesInFile(file).find((n) => n.name === name && n.kind !== 'import');
168 expect(found, `${file}: ${name}`).toBeDefined();
169 return found!;
170 };
171 /** The edges into `target`, as `kind source-name resolvedBy`. */
172 const into = (target: { id: string }, kinds: Edge['kind'][]) =>
173 cg

Callers 1

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected