* Every resolution edge leaving a node of `language` — the re-resolution set * when a project-wide input to that language's import resolution changes * (Python package roots). Same exclusion as * getResolutionEdgesByTargetName: synthesized edges carry no refName * stamp and are l
(
language: Language
)
| 5351 | * stamp and are left alone. |
| 5352 | */ |
| 5353 | getResolutionEdgesBySourceLanguage( |
| 5354 | language: Language |
| 5355 | ): Array<Edge & { edgeId: number; sourceFilePath: string; sourceLanguage: Language }> { |
| 5356 | const rows = this.db |
| 5357 | .prepare( |
| 5358 | `SELECT e.*, src.file_path AS source_file_path, src.language AS source_language |
| 5359 | FROM edges e |
| 5360 | JOIN nodes src ON src.id = e.source |
| 5361 | WHERE src.language = ? |
| 5362 | AND e.kind != 'contains' |
| 5363 | AND (e.provenance IS NULL OR e.provenance != 'heuristic')` |
| 5364 | ) |
| 5365 | .all(language) as Array<EdgeRow & { source_file_path: string; source_language: Language }>; |
| 5366 | return rows.map((row) => ({ |
| 5367 | ...rowToEdge(row), |
| 5368 | edgeId: row.id, |
| 5369 | sourceFilePath: row.source_file_path, |
| 5370 | sourceLanguage: row.source_language, |
| 5371 | })); |
| 5372 | } |
| 5373 | |
| 5374 | /** |
| 5375 | * Resolution edges leaving a `language` node whose TARGET is in one of |
no test coverage detected