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

Method resolveReferences

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

1406 * - Name-based symbol matching
1407 */
1408 resolveReferences(onProgress?: (current: number, total: number) => void): ResolutionResult {
1409 // Get all unresolved references from the database
1410 const unresolvedRefs = this.queries.getUnresolvedReferences();
1411 return this.resolver.resolveAndPersist(unresolvedRefs, onProgress);
1412 }
1413
1414 /**
1415 * 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

Calls 2

resolveAndPersistMethod · 0.80

Tested by 4

reindexFunction · 0.64
calleesFunction · 0.64
calleesOfFunction · 0.64
callsFromMethodFunction · 0.64