All files / src/models DelayedClause.ts

72.73% Statements 16/22
53.85% Branches 7/13
62.5% Functions 5/8
80% Lines 16/20
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
}