* Resolution edges whose answer was read from other files * (`metadata.typeFrom` — python attribute types, see * `resurrectTypeDependentEdges`), with the source file context a * resurrection needs. One scan; only python attribute calls carry the key.
()
| 5573 | * resurrection needs. One scan; only python attribute calls carry the key. |
| 5574 | */ |
| 5575 | getEdgesWithTypeFrom(): Array<Edge & { edgeId: number; sourceFilePath: string; sourceLanguage: Language }> { |
| 5576 | const rows = this.db |
| 5577 | .prepare( |
| 5578 | `SELECT e.*, src.file_path AS source_file_path, src.language AS source_language |
| 5579 | FROM edges e |
| 5580 | JOIN nodes src ON src.id = e.source |
| 5581 | WHERE e.metadata LIKE '%"typeFrom"%'` |
| 5582 | ) |
| 5583 | .all() as Array<EdgeRow & { source_file_path: string; source_language: Language }>; |
| 5584 | return rows.map((row) => ({ |
| 5585 | ...rowToEdge(row), |
| 5586 | edgeId: row.id, |
| 5587 | sourceFilePath: row.source_file_path, |
| 5588 | sourceLanguage: row.source_language, |
| 5589 | })); |
| 5590 | } |
| 5591 | |
| 5592 | /** What the parameter-flow pass reads and writes. */ |
| 5593 | get parameterFlows(): ParameterFlowQueries { |
no test coverage detected