* Merges logic from another `Logic` instance into this one. * @param other The `Logic` instance to merge from.
(other: LogicContainer)
| 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 | } |
no test coverage detected