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

Method readRequiredName

src/utils/xml.ts:221–225  ·  view source on GitHub ↗
(errorMessage: string)

Source from the content-addressed store, hash-verified

219 }
220
221 private readRequiredName(errorMessage: string): string {
222 const name = this.readName();
223 if (!name) throw new Error(errorMessage);
224 return name;
225 }
226
227 private readAttributeValue(attributeName: string): string {
228 const quote = this.xml[this.index];

Callers 2

readOpeningTagMethod · 0.95
readAttributeMethod · 0.95

Calls 1

readNameMethod · 0.95

Tested by

no test coverage detected