MCPcopy
hub / github.com/colbymchenry/codegraph / parseFile

Method parseFile

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

Source from the content-addressed store, hash-verified

1313 * here on the main thread, where the codegraph.json overrides are loaded.
1314 */
1315 const parseFile = (filePath: string, content: string): Promise<ExtractionResult> => {
1316 const language = detectLanguage(filePath, content, overrides);
1317 if (!pool) return Promise.resolve(extractFromSource(filePath, content, language, frameworkNames));
1318 return pool.requestParse({ filePath, content, language, frameworkNames });
1319 };
1320
1321 // --- Bounded rolling-window dispatch, ordered commit ---
1322 // Reads stay batched/parallel; parses run concurrently across the pool; the

Callers

nothing calls this directly

Calls 4

detectLanguageFunction · 0.90
extractFromSourceFunction · 0.90
resolveMethod · 0.80
requestParseMethod · 0.80

Tested by

no test coverage detected