Filter AstNode using Range #1785
-
Hi Team, Given that I have a Is there any smarter way other than iteratively check it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, did you checkout CstUtils? it should give you the cst node for the place and you then should be able to get to the ast node from there |
Beta Was this translation helpful? Give feedback.
-
Hey @kapishsingla, I believe you're looking for the |
Beta Was this translation helpful? Give feedback.
Hey @kapishsingla,
I believe you're looking for the
AstUtils.streamAllContents
function. More specifically, take a look at itsoptions
parameter.