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

Function nodeId

__tests__/vbnet-instance-member-refs.test.ts:242–246  ·  view source on GitHub ↗
(qualifiedName: string)

Source from the content-addressed store, hash-verified

240});
241
242function nodeId(qualifiedName: string): string {
243 const found = cg.getNodesInFiles(Object.keys(files)).filter((n) => n.qualifiedName === qualifiedName);
244 if (found.length !== 1) throw new Error(`${found.length} nodes named ${qualifiedName}`);
245 return found[0]!.id;
246}
247
248/** The qualified names of what links to `qualifiedName` with an edge of `kind`, one per edge. */
249function linkedFrom(qualifiedName: string, kind: 'references' | 'calls'): string[] {

Callers 2

linkedFromFunction · 0.70

Calls 1

getNodesInFilesMethod · 0.80

Tested by

no test coverage detected