MCPcopy Create free account
hub / github.com/Effect-TS/effect / pushLine

Function pushLine

packages/effect/src/Channel.ts:6517–6524  ·  view source on GitHub ↗
(segment: string)

Source from the content-addressed store, hash-verified

6515 const chunkBuilder: Array<string> = []
6516
6517 function pushLine(segment: string): void {
6518 if (stringBuilder.length === 0) {
6519 chunkBuilder.push(segment)
6520 } else {
6521 chunkBuilder.push(stringBuilder + segment)
6522 stringBuilder = ""
6523 }
6524 }
6525
6526 for (let i = 0; i < chunk.length; i++) {
6527 const str = chunk[i]

Callers 1

splitLinesArrayFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected