Access all nodes of certain type in AST #1667
-
What is the prefered way to get access to all nodes of a certain type in an AST Is there an example for that? |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Sep 5, 2024
Replies: 1 comment
-
Hey @mnaderhirn, We have a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
msujew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @mnaderhirn,
We have a
AstUtils
object exported fromlangium
that exposes a fewstream...
methods. You should find one that fits your use case and filter the resulting stream using the generatedis<type>
functions.