(parentParticle, block, index)
| 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) |
| 15241 | const { particleBreakSymbol } = parentParticle |
| 15242 | const lines = block.split(particleBreakSymbol) |
| 15243 | const subparticles = lines |
| 15244 | .slice(1) |
| 15245 | .map(line => line.substr(1)) |
| 15246 | .join(particleBreakSymbol) |
| 15247 | return new parser(subparticles, lines[0], parentParticle, index) |
| 15248 | } |
| 15249 | } |
| 15250 | class Particle extends AbstractParticle { |
| 15251 | constructor(subparticles, line, parent, index) { |
no test coverage detected