* Constructs a `LeafLogicNode`. * @param builder The `AbstractLogicNodeBuilder` from which to derive the logic. * If undefined, an empty `Logic` instance is created. * @param predicates An array of predicates that gate the logic from the builder.
(
private builder: AbstractLogicNodeBuilder | undefined,
private predicates: BoundPredicate[],
/** The depth of this node in the field tree. */
private depth: number,
)
| 354 | * @param predicates An array of predicates that gate the logic from the builder. |
| 355 | */ |
| 356 | constructor( |
| 357 | private builder: AbstractLogicNodeBuilder | undefined, |
| 358 | private predicates: BoundPredicate[], |
| 359 | /** The depth of this node in the field tree. */ |
| 360 | private depth: number, |
| 361 | ) { |
| 362 | this.logic = builder ? createLogic(builder, predicates, depth) : new LogicContainer([]); |
| 363 | } |
| 364 | |
| 365 | // TODO: cache here, or just rely on the user of this API to do caching? |
| 366 | /** |
nothing calls this directly
no test coverage detected