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

Method insertAtom

external/.scrollLibs.js:17037–17043  ·  view source on GitHub ↗
(index, atom)

Source from the content-addressed store, hash-verified

17035 this._lineModifiedTime = this._getProcessTimeInMilliseconds()
17036 }
17037 insertAtom(index, atom) {
17038 const wi = this.atomBreakSymbol
17039 const atoms = this._getLine().split(wi)
17040 atoms.splice(index, 0, atom)
17041 this.setLine(atoms.join(wi))
17042 return this
17043 }
17044 deleteDuplicates() {
17045 const set = new Set()
17046 this.topDownArray.forEach(particle => {

Callers

nothing calls this directly

Calls 4

_getLineMethod · 0.95
setLineMethod · 0.95
splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected