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

Function pushLine

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

Source from the content-addressed store, hash-verified

6898 const chunkBuilder: Array<string> = []
6899
6900 function pushLine(segment: string): void {
6901 if (stringBuilder.length === 0) {
6902 chunkBuilder.push(segment)
6903 } else {
6904 chunkBuilder.push(stringBuilder + segment)
6905 stringBuilder = ""
6906 }
6907 }
6908
6909 for (let i = 0; i < chunk.length; i++) {
6910 const str = chunk[i]

Callers 1

splitLinesArrayFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected