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

Method shiftLeft

external/.scrollLibs.js:17480–17487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17478 return this
17479 }
17480 shiftLeft() {
17481 const grandParent = this._getGrandParent()
17482 if (!grandParent) return this
17483 const parentIndex = this.parent.index
17484 const newParticle = grandParent.insertLineAndSubparticles(this.getLine(), this.length ? this.subparticlesToString() : undefined, parentIndex + 1)
17485 this.destroy()
17486 return newParticle
17487 }
17488 pasteText(text) {
17489 const parent = this.parent
17490 const index = this.index

Callers

nothing calls this directly

Calls 5

_getGrandParentMethod · 0.95
getLineMethod · 0.95
subparticlesToStringMethod · 0.95
destroyMethod · 0.95

Tested by

no test coverage detected