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

Method addNode

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

Source from the content-addressed store, hash-verified

202 }
203
204 private addNode(node: XmlNode): void {
205 const parent = this.stack[this.stack.length - 1];
206 if (parent) {
207 parent.children.push(node);
208 } else {
209 this.roots.push(node);
210 }
211 }
212
213 private readName(): string {
214 const startIndex = this.index;

Callers 1

readOpeningTagMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected