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

Method mergeIn

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

* Merges logic from another `Logic` instance into this one. * @param other The `Logic` instance to merge from.

(other: LogicContainer)

Source from the content-addressed store, hash-verified

338 * @param other The `Logic` instance to merge from.
339 */
340 mergeIn(other: LogicContainer) {
341 this.hidden.mergeIn(other.hidden);
342 this.disabledReasons.mergeIn(other.disabledReasons);
343 this.readonly.mergeIn(other.readonly);
344 this.syncErrors.mergeIn(other.syncErrors);
345 this.syncTreeErrors.mergeIn(other.syncTreeErrors);
346 this.asyncErrors.mergeIn(other.asyncErrors);
347 for (const key of other.getMetadataKeys()) {
348 const metadataLogic = other.metadata.get(key)!;
349 this.getMetadata(key).mergeIn(metadataLogic);
350 }
351 }
352}

Callers 4

createLogicFunction · 0.95
logic_node.spec.tsFile · 0.45
applyFunction · 0.45
applyWhenFunction · 0.45

Calls 3

getMetadataMethod · 0.95
getMetadataKeysMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected