MCPcopy
hub / github.com/angular/angular / mergeIn

Function mergeIn

packages/forms/signals/src/schema/logic.ts:109–114  ·  view source on GitHub ↗

* Merges in the logic from another logic instance, subject to the predicates of both the other * instance and this instance.

(other: AbstractLogic<TReturn, TValue>)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

wrapWithPredicatesFunction · 0.85
mapMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…