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

Function read

src/graph/dead-code.ts:610–615  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

608 if (readSource) {
609 const sources = new Map<string, string | null>();
610 const read = (file: string): string | null => {
611 if (!sources.has(file)) {
612 sources.set(file, sources.size >= MAX_CORROBORATION_FILES ? null : readSource(file));
613 }
614 return sources.get(file) ?? null;
615 };
616 // The set to search is the declaring file plus everything the index says
617 // reaches into it — the same set a call could have come from. Computed once
618 // per file, not once per candidate.

Callers 3

buildDeadCodeReportFunction · 0.70
fuzzyNamesMethod · 0.50
loweredNodePathsMethod · 0.50

Calls 3

hasMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected