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

Method nodeById

src/resolution/index.ts:816–822  ·  view source on GitHub ↗

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

(id: string)

Source from the content-addressed store, hash-verified

814
815 /** `queries.getNodeById` through the resolver's own id → node cache. */
816 private nodeById(id: string): Node | null {
817 const cached = this.nodeByIdCache.get(id);
818 if (cached !== undefined) return cached;
819 const node = this.queries.getNodeById(id);
820 if (node) this.nodeByIdCache.set(id, node);
821 return node;
822 }
823
824 /**
825 * 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