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

Method getUnresolvedReferences

src/db/queries.ts:4447–4460  ·  view source on GitHub ↗

* Get all unresolved references

()

Source from the content-addressed store, hash-verified

4445 * Get all unresolved references
4446 */
4447 getUnresolvedReferences(): UnresolvedReference[] {
4448 const rows = this.db.prepare('SELECT * FROM unresolved_refs').all() as UnresolvedRefRow[];
4449 return rows.map((row) => ({
4450 fromNodeId: row.from_node_id,
4451 referenceName: row.reference_name,
4452 referenceKind: row.reference_kind as EdgeKind,
4453 line: row.line,
4454 column: row.col,
4455 candidates: row.candidates ? safeJsonParse(row.candidates, undefined) : undefined,
4456 filePath: row.file_path,
4457 language: row.language as Language,
4458 rowId: row.id,
4459 }));
4460 }
4461
4462 /** The `#include`s of C and C++ files the graph holds: the file writing each, and the indexed file it names. */
4463 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