(filePath: string, content: string)
| 2668 | * here on the main thread, where the codegraph.json overrides are loaded. |
| 2669 | */ |
| 2670 | const parseFile = (filePath: string, content: string): Promise<ExtractionResult> => { |
| 2671 | const language = detectLanguage(filePath, content, overrides, this.rootDir); |
| 2672 | const names = this.frameworksForFile(filePath, frameworkNames); |
| 2673 | if (!pool) return Promise.resolve(extractFromSource(filePath, content, language, names)); |
| 2674 | return pool.requestParse({ filePath, content, language, frameworkNames: names }); |
| 2675 | }; |
| 2676 | |
| 2677 | // --- Bounded rolling-window dispatch, ordered commit --- |
| 2678 | // Reads stay batched/parallel; parses run concurrently across the pool; the |
nothing calls this directly
no test coverage detected