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

Method _appendSubparticlesFromString

external/.scrollLibs.js:16621–16626  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

16619 return this.parent._insertLines(lines, this.index + 1)
16620 }
16621 _appendSubparticlesFromString(str) {
16622 const { edgeSymbol, particleBreakSymbol } = this
16623 const blocks = splitBlocks(str, edgeSymbol, particleBreakSymbol)
16624 const parserPool = this._getParserPool()
16625 return blocks.map((block, index) => parserPool.createParticle(this, block))
16626 }
16627 async _appendBlockAsync(block) {
16628 // We need to keep grapping the parserPool in case it changed.
16629 // todo: cleanup and perf optimize

Callers 3

_setSubparticlesMethod · 0.95
appendBlocksMethod · 0.95
_insertLinesMethod · 0.80

Calls 4

_getParserPoolMethod · 0.95
splitBlocksFunction · 0.85
mapMethod · 0.80
createParticleMethod · 0.80

Tested by

no test coverage detected