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

Method parseFile

src/extraction/index.ts:2707–2712  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

2705 * here on the main thread, where the codegraph.json overrides are loaded.
2706 */
2707 const parseFile = (filePath: string, content: string): Promise<ExtractionResult> => {
2708 const language = detectLanguage(filePath, content, overrides, this.rootDir);
2709 const names = this.frameworksForFile(filePath, frameworkNames);
2710 if (!pool) return Promise.resolve(extractFromSource(filePath, content, language, names));
2711 return pool.requestParse({ filePath, content, language, frameworkNames: names });
2712 };
2713
2714 // --- Bounded rolling-window dispatch, ordered commit ---
2715 // Reads stay batched/parallel; parses run concurrently across the pool; the

Callers

nothing calls this directly

Calls 5

frameworksForFileMethod · 0.95
detectLanguageFunction · 0.90
extractFromSourceFunction · 0.90
requestParseMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected