(filePath: string, content: string)
| 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 |
nothing calls this directly
no test coverage detected