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

Function nodeOf

__tests__/ts-interface-extends.test.ts:231–235  ·  view source on GitHub ↗
(file: string, name: string)

Source from the content-addressed store, hash-verified

229 });
230
231 const nodeOf = (file: string, name: string) => {
232 const node = cg.getNodesInFile(file).find((n) => n.name === name && n.kind !== 'file' && n.kind !== 'import');
233 expect(node, `${file} ${name}`).toBeDefined();
234 return node!;
235 };
236
237 /** `<kind> <file>:<qualified name>` of the supertype edges `name` in model.ts declares. */
238 const supertypes = (name: string): string[] =>

Callers 2

supertypesFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected