1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 15x 15x 15x 15x 15x 15x 15x 15x 15x 15x 165x 165x | import Clause from "./Clause"; export default class DelayedClause extends Clause { constructor({ getFn }) { super({ type: "DELAYED", conformFn: function (x) { const Clause = this.get(); return Clause.conform(x); }, // TODO: exprs is superfluous. Fix inheritance hierarchy. exprs: [], opts: {}, generateFn: null, }); this.get = getFn; } get: () => Clause } |