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

Function nodeId

__tests__/vbnet-shared-member-refs.test.ts:162–166  ·  view source on GitHub ↗
(qualifiedName: string)

Source from the content-addressed store, hash-verified

160});
161
162function nodeId(qualifiedName: string): string {
163 const found = cg.getNodesInFiles(Object.keys(files)).filter((n) => n.qualifiedName === qualifiedName);
164 if (found.length !== 1) throw new Error(`${found.length} nodes named ${qualifiedName}`);
165 return found[0]!.id;
166}
167
168/** The qualified names of what links to `qualifiedName` with an edge of `kind`. */
169function linkedFrom(qualifiedName: string, kind: 'references' | 'calls'): string[] {

Callers 2

linkedFromFunction · 0.70

Calls 1

getNodesInFilesMethod · 0.80

Tested by

no test coverage detected