| 17014 | const uses = allUses.filter(particle => particle.hasAtom(1, macroName)) |
| 17015 | const params = def.getAtomsFrom(2) |
| 17016 | const replaceFn = str => { |
| 17017 | const paramValues = str.split(atomBreakSymbol).slice(2) |
| 17018 | let newParticle = def.subparticlesToString() |
| 17019 | params.forEach((param, index) => { |
| 17020 | newParticle = newParticle.replace(new RegExp(param, "g"), paramValues[index]) |
| 17021 | }) |
| 17022 | return newParticle |
| 17023 | } |
| 17024 | uses.forEach(particle => { |
| 17025 | particle.replaceParticle(replaceFn) |
| 17026 | }) |
nothing calls this directly
no test coverage detected