[Commonizer] Implement AbstractInlineSourcesCommonizationTest and hierarchical commonization tests

This commit is contained in:
sebastian.sellmair
2021-03-30 14:33:19 +02:00
parent a2436699ea
commit 250915f377
26 changed files with 1019 additions and 132 deletions
@@ -122,6 +122,10 @@ public infix fun CommonizerTarget.isAncestorOf(other: CommonizerTarget): Boolean
return false
}
public infix fun CommonizerTarget.isEqualOrAncestorOf(other: CommonizerTarget): Boolean {
return this == other || this.isAncestorOf(other)
}
public infix fun CommonizerTarget.isDescendentOf(other: CommonizerTarget): Boolean {
return other.isAncestorOf(this)
}