We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f05485 commit 1a7ef32Copy full SHA for 1a7ef32
mps-model-adapters/src/main/kotlin/org/modelix/model/mpsadapters/MPSNode.kt
@@ -70,10 +70,7 @@ data class MPSNode(val node: SNode) : IDeprecatedNodeDefaults {
70
71
override fun getChildren(link: IChildLink): Iterable<INode> {
72
return node.children.map { MPSNode(it) }.filter {
73
- val actualLink = it.getContainmentLink() ?: return@filter false
74
- actualLink.getUID() == link.getUID() ||
75
- actualLink.getSimpleName() == link.getSimpleName() ||
76
- link.getUID().contains(actualLink.getSimpleName())
+ it.getContainmentLink().conformsTo(link)
77
}
78
79
0 commit comments