MCPcopy Create free account
hub / github.com/breck7/scroll / _toXml

Method _toXml

external/.scrollLibs.js:15740–15744  ·  view source on GitHub ↗
(indentCount)

Source from the content-addressed store, hash-verified

15738 return this.length ? `${indentCount === -1 ? "" : "\n"}${this._subparticlesToXml(indentCount > -1 ? indentCount + 2 : -1)}${" ".repeat(indentCount)}` : ""
15739 }
15740 _toXml(indentCount) {
15741 const indent = " ".repeat(indentCount)
15742 const tag = this.cue
15743 return `${indent}<${tag}>${this._getXmlContent(indentCount)}</${tag}>${indentCount === -1 ? "" : "\n"}`
15744 }
15745 _toObjectTuple() {
15746 const content = this.content
15747 const length = this.length

Callers 1

_subparticlesToXmlMethod · 0.80

Calls 1

_getXmlContentMethod · 0.95

Tested by

no test coverage detected