(filePath: string, content: string)
| 2839 | * here on the main thread, where the codegraph.json overrides are loaded. |
| 2840 | */ |
| 2841 | const parseFile = (filePath: string, content: string): Promise<ExtractionResult> => { |
| 2842 | const language = detectLanguage(filePath, content, overrides, this.rootDir); |
| 2843 | const names = this.frameworksForFile(filePath, frameworkNames); |
| 2844 | if (!pool) return Promise.resolve(extractFromSource(filePath, content, language, names)); |
| 2845 | return pool.requestParse({ filePath, content, language, frameworkNames: names }); |
| 2846 | }; |
| 2847 | |
| 2848 | // --- Bounded rolling-window dispatch, ordered commit --- |
| 2849 | // Reads stay batched/parallel; parses run concurrently across the pool; the |
nothing calls this directly
no test coverage detected