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

Function cacheFor

src/resolution/cpp-macro-visibility.ts:122–129  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

120}
121
122function cacheFor(context: ResolutionContext): Cache {
123 let cache = memo.get(context);
124 if (!cache) {
125 cache = { summaries: new Map(), includes: new Map(), byBasename: null, roots: new Map(), watched: new Map() };
126 memo.set(context, cache);
127 }
128 return cache;
129}
130
131/** Cache syntax, never conditional truth: an included file can change its flags. */
132function summarize(file: string, context: ResolutionContext, cache: Cache): FileEvent[] {

Callers 2

isVisibleCppMacroFunction · 0.85
isCppMacroDefinedAtFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected