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

Method shiftRight

external/.scrollLibs.js:17520–17526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17518 return particle.toString()
17519 }
17520 shiftRight() {
17521 const olderSibling = this._getClosestOlderSibling()
17522 if (!olderSibling) return this
17523 const newParticle = olderSibling.appendLineAndSubparticles(this.getLine(), this.length ? this.subparticlesToString() : undefined)
17524 this.destroy()
17525 return newParticle
17526 }
17527 shiftYoungerSibsRight() {
17528 const particles = this.getYoungerSiblings()
17529 particles.forEach(particle => particle.shiftRight())

Callers

nothing calls this directly

Calls 5

getLineMethod · 0.95
subparticlesToStringMethod · 0.95
destroyMethod · 0.95

Tested by

no test coverage detected