MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getUnresolvedReferencesFrom

Method getUnresolvedReferencesFrom

src/db/queries.ts:3662–3680  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 4

summarizeOutsideIndexFunction · 0.45
unresolvedImportsOfFunction · 0.45
buildStepsFunction · 0.45
fileScopeRefsWithinFunction · 0.45

Calls 4

safeJsonParseFunction · 0.90
mapMethod · 0.80
prepareMethod · 0.65
allMethod · 0.65

Tested by

no test coverage detected