Skip to content

Access all nodes of certain type in AST #1667

Closed Answered by msujew
mnaderhirn asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mnaderhirn,

We have a AstUtils object exported from langium that exposes a few stream... methods. You should find one that fits your use case and filter the resulting stream using the generated is<type> functions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by msujew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants