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

Method pushContentAndSubparticles

external/.scrollLibs.js:17305–17312  ·  view source on GitHub ↗
(content, subparticles)

Source from the content-addressed store, hash-verified

17303 return this.insertLine(line, 0)
17304 }
17305 pushContentAndSubparticles(content, subparticles) {
17306 let index = this.length
17307 while (this.has(index.toString())) {
17308 index++
17309 }
17310 const line = index.toString() + (content === undefined ? "" : this.atomBreakSymbol + content)
17311 return this.appendLineAndSubparticles(line, subparticles)
17312 }
17313 deleteBlanks() {
17314 this.getSubparticles()
17315 .filter(particle => particle.isBlankLine())

Callers 2

_rowsToParticleMethod · 0.95
_particleFromXmlMethod · 0.95

Calls 3

hasMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected