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

Method flushText

packages/effect/src/encoding/Xml.ts:1609–1615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1607 }
1608
1609 private flushText(): void {
1610 if (this.text.length > 0) {
1611 this.out.push({ _tag: "Text", text: this.text })
1612 this.text = ""
1613 }
1614 this.textSize = 0
1615 }
1616
1617 // Adds the size of the text run or CDATA section at `i`. Exceeding the limit
1618 // is reported there, rather than at the start of the text.

Callers 4

startTagMethod · 0.95
endTagMethod · 0.95
commentMethod · 0.95
processingInstructionMethod · 0.95

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected