* Merges in the logic from another logic instance, subject to the predicates of both the other * instance and this instance.
(other: AbstractLogic<TReturn, TValue>)
| 107 | * instance and this instance. |
| 108 | */ |
| 109 | mergeIn(other: AbstractLogic<TReturn, TValue>) { |
| 110 | const fns = this.predicates |
| 111 | ? other.fns.map((fn) => wrapWithPredicates(this.predicates, fn)) |
| 112 | : other.fns; |
| 113 | this.fns.push(...fns); |
| 114 | } |
| 115 | |
| 116 | /** Checks if any logic rules are registered in this instance. */ |
| 117 | hasRules(): boolean { |
nothing calls this directly
no test coverage detected
searching dependent graphs…