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

Method readNextToken

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

Source from the content-addressed store, hash-verified

70 }
71
72 private readNextToken(): void {
73 if (this.xml[this.index] !== '<') {
74 this.readText();
75 return;
76 }
77
78 const reader = this.resolveMarkupReader();
79 reader();
80 }
81
82 private resolveMarkupReader(): () => void {
83 if (this.startsWith('<!--')) return () => this.skipUntil('-->', 'Comment is not closed.');

Callers 1

parseMethod · 0.95

Calls 2

readTextMethod · 0.95
resolveMarkupReaderMethod · 0.95

Tested by

no test coverage detected