(parentParticle, block, index)
| 15227 | return particle |
| 15228 | } |
| 15229 | createParticle(parentParticle, block, index) { |
| 15230 | const rootParticle = parentParticle.root |
| 15231 | if (rootParticle.particleTransformers) { |
| 15232 | // A macro may return multiple new blocks. |
| 15233 | const blocks = splitBlocks(rootParticle._transformBlock(block), SUBPARTICLE_MEMBRANE, PARTICLE_MEMBRANE) |
| 15234 | const newParticles = blocks.map((block, newBlockIndex) => this._createParticle(parentParticle, block, index === undefined ? undefined : index + newBlockIndex)) |
| 15235 | return newParticles[0] |
| 15236 | } else return this._createParticle(parentParticle, block, index) |
| 15237 | } |
| 15238 | _createParticle(parentParticle, block, index) { |
| 15239 | index = index === undefined ? parentParticle.length : index |
| 15240 | const parser = this._getMatchingParser(block, parentParticle, index) |
no test coverage detected