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

Method sizeOf

src/mcp/tools.ts:7179–7180  ·  view source on GitHub ↗
(r: ExploreRange)

Source from the content-addressed store, hash-verified

7177 // windows it wherever it lands. Charging the full body kept it as the
7178 // most important member and then had no room left for anything beside it.
7179 const sizeOf = (r: ExploreRange) => (oversizeSpineSet.has(r) ? spineWindowOf(r) : [r])
7180 .reduce((n, w) => n + fileLines.slice(w.start - 1, w.end).join('\n').length, 0);
7181 let kept = 0;
7182 // Rendered size of what is kept so far, once the first incidental member
7183 // is weighed. Every protected member sorts ahead of it, so this is the

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected