* References recorded against a symbol that never resolved to a node — the * calls and type mentions that leave the index (a third-party package, a * runtime builtin, a language construct extraction doesn't model). * * Read-only. It exists so a reader can say "N calls into symbols outsid
(fromNodeId: string)
| 3556 | * call sites, which reads as "nothing else happens here". |
| 3557 | */ |
| 3558 | getUnresolvedReferencesFrom(fromNodeId: string): UnresolvedReference[] { |
| 3559 | if (!this.stmts.getUnresolvedFromNode) { |
| 3560 | this.stmts.getUnresolvedFromNode = this.db.prepare( |
| 3561 | 'SELECT * FROM unresolved_refs WHERE from_node_id = ?' |
| 3562 | ); |
| 3563 | } |
| 3564 | const rows = this.stmts.getUnresolvedFromNode.all(fromNodeId) as UnresolvedRefRow[]; |
| 3565 | return rows.map((row) => ({ |
| 3566 | fromNodeId: row.from_node_id, |
| 3567 | referenceName: row.reference_name, |
| 3568 | referenceKind: row.reference_kind as EdgeKind, |
| 3569 | line: row.line, |
| 3570 | column: row.col, |
| 3571 | candidates: row.candidates ? safeJsonParse(row.candidates, undefined) : undefined, |
| 3572 | filePath: row.file_path, |
| 3573 | language: row.language as Language, |
| 3574 | rowId: row.id, |
| 3575 | })); |
| 3576 | } |
| 3577 | |
| 3578 | /** |
| 3579 | * {@link getUnresolvedReferencesFrom} for many nodes at once, limited to |
no test coverage detected