MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / flushSeg

Function flushSeg

source code/utils/bash/bashParser.ts:2928–2932  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2926 let segStart = P.L.b
2927 let braceDepth = 0
2928 const flushSeg = (): void => {
2929 if (P.L.b > segStart) {
2930 parts.push(mk(P, 'word', segStart, P.L.b, []))
2931 }
2932 }
2933 while (P.L.i < P.L.len) {
2934 const c = peek(P.L)
2935 if (c === '\n') break

Callers 3

parseExpansionRestFunction · 0.85
parseTestExtglobRhsFunction · 0.85

Calls 1

mkFunction · 0.85

Tested by

no test coverage detected