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

Method getUnresolvedReferencesFrom

src/db/queries.ts:3558–3576  ·  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

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

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