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

Function isStoreFile

src/resolution/callback-synthesizer.ts:2474–2488  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

2472 let scannedFiles = 0;
2473 const storeFileCache = new Map<string, boolean>();
2474 const isStoreFile = (file: string): boolean => {
2475 let v = storeFileCache.get(file);
2476 if (v === undefined) {
2477 const c = ctx.readFile(file);
2478 const seen = new Set<string>();
2479 if (c) {
2480 VUEX_STORE_SIGNAL.lastIndex = 0;
2481 let sm: RegExpExecArray | null;
2482 while ((sm = VUEX_STORE_SIGNAL.exec(c))) { seen.add(sm[0]); if (seen.size >= 2) break; }
2483 }
2484 v = seen.size >= 2;
2485 storeFileCache.set(file, v);
2486 }
2487 return v;
2488 };
2489
2490 const resolve = (key: string, dispatchFile: string): Node | null => {
2491 const segs = key.split('/');

Callers 1

resolveFunction · 0.85

Calls 4

readFileMethod · 0.80
getMethod · 0.65
execMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected