MCPcopy Index your code
hub / github.com/callstack/agent-device / pushOpenNode

Method pushOpenNode

src/utils/xml.ts:154–159  ·  view source on GitHub ↗
(node: XmlNode)

Source from the content-addressed store, hash-verified

152 }
153
154 private pushOpenNode(node: XmlNode): void {
155 if (this.stack.length >= MAX_XML_NESTING_DEPTH) {
156 throw new Error(`Maximum XML nesting depth of ${MAX_XML_NESTING_DEPTH} exceeded.`);
157 }
158 this.stack.push(node);
159 }
160
161 private readClosingTag(): void {
162 this.index += 2;

Callers 1

readOpeningTagMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected