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

Function flush

src/mcp/explore-diagnostics.ts:660–665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

658 let inFence = false;
659 let acc: string[] = [];
660 const flush = () => {
661 if (current && acc.length > 0) {
662 out.set(current, (out.get(current) ?? 0) + acc.join('\n').length);
663 }
664 acc = [];
665 };
666 for (const line of lines) {
667 if (!inFence) {
668 const header = /^\*\*`([^`]+)`\*\*/.exec(line);

Callers 2

attributeSourceBytesFunction · 0.70
extractRustRouteMacroMethod · 0.50

Calls 3

getMethod · 0.65
setMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected