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

Method getUnresolvedReferences

src/db/queries.ts:4558–4571  ·  view source on GitHub ↗

* Get all unresolved references

()

Source from the content-addressed store, hash-verified

4556 * Get all unresolved references
4557 */
4558 getUnresolvedReferences(): UnresolvedReference[] {
4559 const rows = this.db.prepare('SELECT * FROM unresolved_refs').all() as UnresolvedRefRow[];
4560 return rows.map((row) => ({
4561 fromNodeId: row.from_node_id,
4562 referenceName: row.reference_name,
4563 referenceKind: row.reference_kind as EdgeKind,
4564 line: row.line,
4565 column: row.col,
4566 candidates: row.candidates ? safeJsonParse(row.candidates, undefined) : undefined,
4567 filePath: row.file_path,
4568 language: row.language as Language,
4569 rowId: row.id,
4570 }));
4571 }
4572
4573 /** The `#include`s of C and C++ files the graph holds: the file writing each, and the indexed file it names. */
4574 getCppIncludeEdges(): Array<{ source: string; target: string }> {

Callers 3

resolveReferencesMethod · 0.80

Calls 4

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

Tested by

no test coverage detected