how 'deep' does .children go for a concept?...

This is an auto-generated question from the MPS Slack community: how 'deep' does .children go for a concept?
0
13 comments
suggests that .children does not recurse down in the ast, but the ancestor does?
0
Yes, sounds like .anchestors is the operation you are looking for. The children operation return's the children of the node but not children of children etc.
0
that's not nice :stuck_out_tongue:
0
Would you like to have the same behaviour for ancestors and children? What would you like to archive?
0
the level 2 children of a concept need to be updated by a listener
0
the listener has to find these children and update their properties
0
So something like . children<type>.select(it.children)
0
yes, but that's only two levels deep
0
There is .descendants
0
my bad! I mixed up ancestors and descendants:man-facepalming:
0
children = 1 level descendants = all levels I guess if you explicitly need children of the 2nd level, you have to implement a dedicated method or base language extension.
0
This is auto-generated question from the MPS Community Slack Workspace. If you want to comment on the question, do it from the Slack workspace
0

Post is closed for comments.