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

Function memoFor

src/resolution/cpp-includers.ts:50–54  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

48}
49
50function memoFor(context: ResolutionContext): Memo {
51 let memo = MEMO.get(context);
52 if (!memo) MEMO.set(context, (memo = { byName: null, byStem: null, targets: new Map(), includers: new Map() }));
53 return memo;
54}
55
56const isCFamily = (language: string): boolean => language === 'c' || language === 'cpp';
57const fileName = (filePath: string): string => filePath.slice(Math.max(filePath.lastIndexOf('/'), filePath.lastIndexOf('\\')) + 1);

Callers 6

cppIncludeTargetsFunction · 0.70
adoptCppIncludeTargetsFunction · 0.70
cppIncludedHeadersBesideFunction · 0.70
cppIncludedFileFunction · 0.70
cppIncludedSourcesFunction · 0.70
cppIncludersFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected