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

Method end

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

Source from the content-addressed store, hash-verified

2575 }
2576
2577 end(): void {
2578 if (this.stack.length > 0) throw invalidEvent(`unclosed element <${this.stack[this.stack.length - 1]}>`)
2579 if (this.state !== EPILOG) throw invalidEvent("no root element")
2580 }
2581
2582 private write(event: Event): string {
2583 if (event._tag === "EndElement") {

Callers

nothing calls this directly

Calls 1

invalidEventFunction · 0.85

Tested by

no test coverage detected