MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

packages/forms/signals/src/schema/logic_node.ts:356–363  ·  view source on GitHub ↗

* 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,
  )

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 1

createLogicFunction · 0.85

Tested by

no test coverage detected