Skip to content

Commit b694ce5

Browse files
eugen-shulimovibbem
authored andcommitted
fix: handle endif lines in deep copies of variation trees
1 parent 22d5dea commit b694ce5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/org/variantsync/diffdetective/variation/tree/VariationNode.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ public VariationTreeNode<L> toVariationTree(final Map<? super T, VariationTreeNo
483483
getLineRange(),
484484
getLabel()
485485
);
486+
if (getEndIf() != null) {
487+
newNode.setEndIf(getEndIf());
488+
}
486489
oldToNew.put(this.upCast(), newNode);
487490

488491
for (var child : getChildren()) {

0 commit comments

Comments
 (0)