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

Method parseFile

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

Source from the content-addressed store, hash-verified

1737 * here on the main thread, where the codegraph.json overrides are loaded.
1738 */
1739 const parseFile = (filePath: string, content: string): Promise<ExtractionResult> => {
1740 const language = detectLanguage(filePath, content, overrides);
1741 if (!pool) return Promise.resolve(extractFromSource(filePath, content, language, frameworkNames));
1742 return pool.requestParse({ filePath, content, language, frameworkNames });
1743 };
1744
1745 // --- Bounded rolling-window dispatch, ordered commit ---
1746 // Reads stay batched/parallel; parses run concurrently across the pool; the

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected