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

Method _appendBlockAsync

external/.scrollLibs.js:16627–16632  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

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
16630 let parserPool = this._getParserPool()
16631 await parserPool.appendParticleAsync(this, block)
16632 }
16633 async _transformAndAppendBlockAsync(block) {
16634 block = block.replace(/\r/g, "") // I hate \r
16635 const rootParticle = this.root

Callers 1

Calls 2

_getParserPoolMethod · 0.95
appendParticleAsyncMethod · 0.80

Tested by

no test coverage detected