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

Method parse

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

Source from the content-addressed store, hash-verified

61 }
62
63 parse(): XmlNode[] {
64 this.skipByteOrderMark();
65 while (this.index < this.xml.length) {
66 this.readNextToken();
67 }
68 this.assertFullyClosed();
69 return this.roots;
70 }
71
72 private readNextToken(): void {
73 if (this.xml[this.index] !== '<') {

Callers 15

rslib.config.tsFile · 0.45
parseCliJsonFunction · 0.45
readJsonBodyFunction · 0.45
readDaemonInfoFunction · 0.45
readDaemonInfoFunction · 0.45
readJsonBodyFunction · 0.45
runRecordingInspectFunction · 0.45
readJsonBodyFunction · 0.45
cliJsonResultFunction · 0.45
readJsonFunction · 0.45
linkRuntimeDependenciesFunction · 0.45

Calls 3

skipByteOrderMarkMethod · 0.95
readNextTokenMethod · 0.95
assertFullyClosedMethod · 0.95

Tested by 15

parseCliJsonFunction · 0.36
readJsonBodyFunction · 0.36
readDaemonInfoFunction · 0.36
readDaemonInfoFunction · 0.36
readJsonBodyFunction · 0.36
readJsonBodyFunction · 0.36
readJsonFunction · 0.36
linkRuntimeDependenciesFunction · 0.36
handleRpcFunction · 0.36
parseNdjsonFunction · 0.36
writeSocketRequestsFunction · 0.36