MCPcopy
hub / github.com/callstack/agent-device / assertFullyClosed

Method assertFullyClosed

src/utils/xml.ts:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 private assertFullyClosed(): void {
93 if (this.stack.length > 0) {
94 const node = this.stack[this.stack.length - 1];
95 throw new Error(`Unclosed XML tag <${node?.name ?? 'unknown'}>.`);
96 }
97 }
98
99 private skipByteOrderMark(): void {
100 if (this.xml.charCodeAt(0) === 0xfeff) {

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected