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

Method resolveReferences

src/index.ts:2328–2332  ·  view source on GitHub ↗

* Resolve unresolved references and create edges * * This method takes unresolved references from extraction and attempts * to resolve them using multiple strategies: * - Framework-specific patterns (React, Express, Laravel) * - Import-based resolution * - Name-based symbol matchin

(onProgress?: (current: number, total: number) => void)

Source from the content-addressed store, hash-verified

2326 * - Name-based symbol matching
2327 */
2328 resolveReferences(onProgress?: (current: number, total: number) => void): ResolutionResult {
2329 // Get all unresolved references from the database
2330 const unresolvedRefs = this.queries.getUnresolvedReferences();
2331 return this.resolver.resolveAndPersist(unresolvedRefs, onProgress);
2332 }
2333
2334 /**
2335 * Resolve references in batches to keep memory bounded on large codebases.

Callers 15

reindexFunction · 0.80
ui-trails.test.tsFile · 0.80
calleesFunction · 0.80
calleesOfFunction · 0.80
calleesFunction · 0.80
calleesInFunction · 0.80

Calls 2

resolveAndPersistMethod · 0.80

Tested by 15

reindexFunction · 0.64
calleesFunction · 0.64
calleesOfFunction · 0.64
calleesFunction · 0.64
calleesInFunction · 0.64
indexFunction · 0.64
indexFunction · 0.64
callsFunction · 0.64
callsFromMethodFunction · 0.64
callsFunction · 0.64
edgesFunction · 0.64
indexFunction · 0.64