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

Method nodeById

src/resolution/index.ts:716–722  ·  view source on GitHub ↗

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

(id: string)

Source from the content-addressed store, hash-verified

714
715 /** `queries.getNodeById` through the resolver's own id → node cache. */
716 private nodeById(id: string): Node | null {
717 const cached = this.nodeByIdCache.get(id);
718 if (cached !== undefined) return cached;
719 const node = this.queries.getNodeById(id);
720 if (node) this.nodeByIdCache.set(id, node);
721 return node;
722 }
723
724 /**
725 * Clear internal caches

Callers 14

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

Calls 3

getMethod · 0.65
getNodeByIdMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected