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

Method _getCueIndex

external/.scrollLibs.js:16724–16729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16722 }
16723 }
16724 _getCueIndex() {
16725 // StringMap<int> {cue: index}
16726 // When there are multiple tails with the same cue, index stores the last content.
16727 // todo: change the above behavior: when a collision occurs, create an array.
16728 return this._cueIndex || this._makeCueIndex()
16729 }
16730 getContentsArray() {
16731 return this.map(particle => particle.content)
16732 }

Callers 3

_getParticleByPathMethod · 0.95
indexOfLastMethod · 0.95
_hasCueMethod · 0.95

Calls 1

_makeCueIndexMethod · 0.95

Tested by

no test coverage detected