* 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)
| 3660 | * call sites, which reads as "nothing else happens here". |
| 3661 | */ |
| 3662 | getUnresolvedReferencesFrom(fromNodeId: string): UnresolvedReference[] { |
| 3663 | if (!this.stmts.getUnresolvedFromNode) { |
| 3664 | this.stmts.getUnresolvedFromNode = this.db.prepare( |
| 3665 | 'SELECT * FROM unresolved_refs WHERE from_node_id = ?' |
| 3666 | ); |
| 3667 | } |
| 3668 | const rows = this.stmts.getUnresolvedFromNode.all(fromNodeId) as UnresolvedRefRow[]; |
| 3669 | return rows.map((row) => ({ |
| 3670 | fromNodeId: row.from_node_id, |
| 3671 | referenceName: row.reference_name, |
| 3672 | referenceKind: row.reference_kind as EdgeKind, |
| 3673 | line: row.line, |
| 3674 | column: row.col, |
| 3675 | candidates: row.candidates ? safeJsonParse(row.candidates, undefined) : undefined, |
| 3676 | filePath: row.file_path, |
| 3677 | language: row.language as Language, |
| 3678 | rowId: row.id, |
| 3679 | })); |
| 3680 | } |
| 3681 | |
| 3682 | /** |
| 3683 | * {@link getUnresolvedReferencesFrom} for many nodes at once, limited to |
no test coverage detected