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

Method nodeById

src/resolution/index.ts:805–811  ·  view source on GitHub ↗

`queries.getNodeById` through the resolver's own id → node cache.

(id: string)

Source from the content-addressed store, hash-verified

803
804 /** `queries.getNodeById` through the resolver's own id → node cache. */
805 private nodeById(id: string): Node | null {
806 const cached = this.nodeByIdCache.get(id);
807 if (cached !== undefined) return cached;
808 const node = this.queries.getNodeById(id);
809 if (node) this.nodeByIdCache.set(id, node);
810 return node;
811 }
812
813 /**
814 * Clear internal caches

Callers 15

createContextMethod · 0.95
resolveOneInMethod · 0.95
resolveRustPathValueMethod · 0.95
resolveOneInnerMethod · 0.95
createEdgesMethod · 0.95
couldNameAnyOfMethod · 0.95
getFilePathFromNodeIdMethod · 0.95
getLanguageFromNodeIdMethod · 0.95
callableMembersOfMethod · 0.95

Calls 3

getMethod · 0.65
getNodeByIdMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected