(
otherTableRowHashes: RowHashes,
)
| 556 | }; |
| 557 | |
| 558 | const getMergeableCellHashes = ( |
| 559 | otherTableRowHashes: RowHashes, |
| 560 | ): CellHashes => { |
| 561 | const cellHashes: CellHashes = {}; |
| 562 | objForEach(otherTableRowHashes, (otherRowHashes, tableId) => |
| 563 | ifNotUndefined(mapGet(contentStampMap[0][0], tableId), ([rowStampMaps]) => |
| 564 | objForEach(otherRowHashes, (otherRowHash, rowId) => |
| 565 | ifNotUndefined( |
| 566 | mapGet(rowStampMaps, rowId), |
| 567 | ([cellStampMaps, , rowHash]) => |
| 568 | rowHash !== otherRowHash |
| 569 | ? mapForEach( |
| 570 | cellStampMaps, |
| 571 | (cellId, [, , cellHash]) => |
| 572 | (objEnsure( |
| 573 | objEnsure<CellHashes[Id]>(cellHashes, tableId, objNew), |
| 574 | rowId, |
| 575 | objNew, |
| 576 | )[cellId] = cellHash), |
| 577 | ) |
| 578 | : 0, |
| 579 | ), |
| 580 | ), |
| 581 | ), |
| 582 | ); |
| 583 | return cellHashes; |
| 584 | }; |
| 585 | |
| 586 | const getMergeableCellDiff = ( |
| 587 | otherTableRowCellHashes: CellHashes, |
nothing calls this directly
no test coverage detected
searching dependent graphs…