UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

14 lines 507 B
import Mutation from "./Mutation.js"; /** * Abstract mutation class that implements .getMutants(), but makes function Mutation.mutate($jp) abstract. Allows more efficient, generator-based Mutation implementations. */ export default class IterativeMutation extends Mutation { getMutants($jp) { const mutations = []; for (const mutation of this.mutate($jp)) { mutations.push(mutation); } return mutations; } } //# sourceMappingURL=IterativeMutation.js.map