Check if the morphs of r are equal to those of this node
(r: MorphNode)
| 278 | |
| 279 | /** Check if the morphs of r are equal to those of this node */ |
| 280 | override sameMorphs(r: MorphNode): boolean { |
| 281 | return ( |
| 282 | this.inverse === r.inverse && |
| 283 | arrayEquals(this.piped, r.piped, { |
| 284 | isEqual: (lMorph, rMorph) => |
| 285 | lMorph === rMorph || |
| 286 | (hasArkKind(lMorph, "root") && |
| 287 | hasArkKind(rMorph, "root") && |
| 288 | lMorph.equals(rMorph)) |
| 289 | }) |
| 290 | ) |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | export const Morph = { |
no test coverage detected