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

Method resolveReferences

src/index.ts:2272–2276  ·  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

2270 * - Name-based symbol matching
2271 */
2272 resolveReferences(onProgress?: (current: number, total: number) => void): ResolutionResult {
2273 // Get all unresolved references from the database
2274 const unresolvedRefs = this.queries.getUnresolvedReferences();
2275 return this.resolver.resolveAndPersist(unresolvedRefs, onProgress);
2276 }
2277
2278 /**
2279 * 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
callsFunction · 0.64
callsFromMethodFunction · 0.64
callsFunction · 0.64
edgesFunction · 0.64
indexFunction · 0.64
indexFunction · 0.64