Skip to content
Discussion options

You must be logged in to vote

Hey @luan-xiaokun,

for cases such as these, we do have a linkContentToContainer function in langium, which automatically sets the $container property on all its direct descendants (not it's transitive descendants!). You can ignore all the $container/$containerProperty/$containerIndex properties during construction and the mentioned function will take care of it.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@luan-xiaokun
Comment options

@msujew
Comment options

@luan-xiaokun
Comment options

@spoenemann
Comment options

Answer selected by luan-xiaokun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants