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

Function memberTypesOf

src/ui-server/api/steps.ts:518–526  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

516 return types.get(first) ?? null;
517 };
518 const memberTypesOf = async (node: Node): Promise<Map<string, string>> => {
519 const key = `${node.filePath}:${node.startLine}`;
520 let types = classTypes.get(key);
521 if (!types) {
522 types = await calls.memberTypes(node);
523 classTypes.set(key, types);
524 }
525 return types;
526 };
527
528 // Where a member call really goes, by the receiver's declared type: the
529 // class named by the type, and its method of the call's name. Null when the

Callers 1

receiverTypeForFunction · 0.85

Calls 3

memberTypesMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected