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

Function ref

__tests__/cross-language-resolution.test.ts:127–130  ·  view source on GitHub ↗
(referenceName: string)

Source from the content-addressed store, hash-verified

125 };
126 const caller = graph.getNodesByName('caller')[0]!;
127 const ref = (referenceName: string): UnresolvedRef => ({
128 fromNodeId: caller.id, referenceName, referenceKind: 'calls',
129 filePath: caller.filePath, language: 'swift', line: 1, column: 0,
130 });
131 const method = graph.getNodesByName('act')[0]!;
132 expect(matchByQualifiedName(ref(method.qualifiedName), context)?.targetNodeId).toBe(method.id);
133 expect(matchReference(ref(method.qualifiedName), context)).toBeNull();

Calls

no outgoing calls

Tested by

no test coverage detected